2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
902 HAVE_FREEBSD_OS_FALSE
906 HAVE_OPENBSD_OS_FALSE
937 BUILD_INCLUDED_LIBINTL
944 INTL_LIBTOOL_SUFFIX_PREFIX
958 TRAY_MONITOR_CPPFLAGS
1045 ac_subst_files='MCOMMON'
1046 ac_precious_vars='build_alias
1064 # Initialize some variables set by options.
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1076 program_transform_name=s,x,x,
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1114 # If the previous option needs an argument, assign it.
1115 if test -n "$ac_prev"; then
1116 eval $ac_prev=\$ac_option
1122 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126 # Accept the important Cygnus configure options, so we can diagnose typos.
1128 case $ac_dashdash$ac_option in
1132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135 bindir=$ac_optarg ;;
1137 -build | --build | --buil | --bui | --bu)
1138 ac_prev=build_alias ;;
1139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140 build_alias=$ac_optarg ;;
1142 -cache-file | --cache-file | --cache-fil | --cache-fi \
1143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144 ac_prev=cache_file ;;
1145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147 cache_file=$ac_optarg ;;
1149 --config-cache | -C)
1150 cache_file=config.cache ;;
1152 -datadir | --datadir | --datadi | --datad)
1154 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155 datadir=$ac_optarg ;;
1157 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158 | --dataroo | --dataro | --datar)
1159 ac_prev=datarootdir ;;
1160 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162 datarootdir=$ac_optarg ;;
1164 -disable-* | --disable-*)
1165 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171 eval enable_$ac_feature=no ;;
1173 -docdir | --docdir | --docdi | --doc | --do)
1175 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176 docdir=$ac_optarg ;;
1178 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181 dvidir=$ac_optarg ;;
1183 -enable-* | --enable-*)
1184 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190 eval enable_$ac_feature=\$ac_optarg ;;
1192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194 | --exec | --exe | --ex)
1195 ac_prev=exec_prefix ;;
1196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198 | --exec=* | --exe=* | --ex=*)
1199 exec_prefix=$ac_optarg ;;
1201 -gas | --gas | --ga | --g)
1202 # Obsolete; use --with-gas.
1205 -help | --help | --hel | --he | -h)
1206 ac_init_help=long ;;
1207 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208 ac_init_help=recursive ;;
1209 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210 ac_init_help=short ;;
1212 -host | --host | --hos | --ho)
1213 ac_prev=host_alias ;;
1214 -host=* | --host=* | --hos=* | --ho=*)
1215 host_alias=$ac_optarg ;;
1217 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1219 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1221 htmldir=$ac_optarg ;;
1223 -includedir | --includedir | --includedi | --included | --include \
1224 | --includ | --inclu | --incl | --inc)
1225 ac_prev=includedir ;;
1226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227 | --includ=* | --inclu=* | --incl=* | --inc=*)
1228 includedir=$ac_optarg ;;
1230 -infodir | --infodir | --infodi | --infod | --info | --inf)
1232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233 infodir=$ac_optarg ;;
1235 -libdir | --libdir | --libdi | --libd)
1237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238 libdir=$ac_optarg ;;
1240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241 | --libexe | --libex | --libe)
1242 ac_prev=libexecdir ;;
1243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244 | --libexe=* | --libex=* | --libe=*)
1245 libexecdir=$ac_optarg ;;
1247 -localedir | --localedir | --localedi | --localed | --locale)
1248 ac_prev=localedir ;;
1249 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250 localedir=$ac_optarg ;;
1252 -localstatedir | --localstatedir | --localstatedi | --localstated \
1253 | --localstate | --localstat | --localsta | --localst | --locals)
1254 ac_prev=localstatedir ;;
1255 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257 localstatedir=$ac_optarg ;;
1259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262 mandir=$ac_optarg ;;
1264 -nfp | --nfp | --nf)
1265 # Obsolete; use --without-fp.
1268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269 | --no-cr | --no-c | -n)
1272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278 | --oldin | --oldi | --old | --ol | --o)
1279 ac_prev=oldincludedir ;;
1280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283 oldincludedir=$ac_optarg ;;
1285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288 prefix=$ac_optarg ;;
1290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291 | --program-pre | --program-pr | --program-p)
1292 ac_prev=program_prefix ;;
1293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295 program_prefix=$ac_optarg ;;
1297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298 | --program-suf | --program-su | --program-s)
1299 ac_prev=program_suffix ;;
1300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302 program_suffix=$ac_optarg ;;
1304 -program-transform-name | --program-transform-name \
1305 | --program-transform-nam | --program-transform-na \
1306 | --program-transform-n | --program-transform- \
1307 | --program-transform | --program-transfor \
1308 | --program-transfo | --program-transf \
1309 | --program-trans | --program-tran \
1310 | --progr-tra | --program-tr | --program-t)
1311 ac_prev=program_transform_name ;;
1312 -program-transform-name=* | --program-transform-name=* \
1313 | --program-transform-nam=* | --program-transform-na=* \
1314 | --program-transform-n=* | --program-transform-=* \
1315 | --program-transform=* | --program-transfor=* \
1316 | --program-transfo=* | --program-transf=* \
1317 | --program-trans=* | --program-tran=* \
1318 | --progr-tra=* | --program-tr=* | --program-t=*)
1319 program_transform_name=$ac_optarg ;;
1321 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1323 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324 pdfdir=$ac_optarg ;;
1326 -psdir | --psdir | --psdi | --psd | --ps)
1328 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332 | -silent | --silent | --silen | --sile | --sil)
1335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1339 sbindir=$ac_optarg ;;
1341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343 | --sharedst | --shareds | --shared | --share | --shar \
1345 ac_prev=sharedstatedir ;;
1346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1350 sharedstatedir=$ac_optarg ;;
1352 -site | --site | --sit)
1354 -site=* | --site=* | --sit=*)
1357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360 srcdir=$ac_optarg ;;
1362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363 | --syscon | --sysco | --sysc | --sys | --sy)
1364 ac_prev=sysconfdir ;;
1365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367 sysconfdir=$ac_optarg ;;
1369 -target | --target | --targe | --targ | --tar | --ta | --t)
1370 ac_prev=target_alias ;;
1371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372 target_alias=$ac_optarg ;;
1374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377 -version | --version | --versio | --versi | --vers | -V)
1378 ac_init_version=: ;;
1381 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 { echo "$as_me: error: invalid package name: $ac_package" >&2
1385 { (exit 1); exit 1; }; }
1386 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387 eval with_$ac_package=\$ac_optarg ;;
1389 -without-* | --without-*)
1390 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 { echo "$as_me: error: invalid package name: $ac_package" >&2
1394 { (exit 1); exit 1; }; }
1395 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396 eval with_$ac_package=no ;;
1399 # Obsolete; use --with-x.
1402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403 | --x-incl | --x-inc | --x-in | --x-i)
1404 ac_prev=x_includes ;;
1405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407 x_includes=$ac_optarg ;;
1409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411 ac_prev=x_libraries ;;
1412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414 x_libraries=$ac_optarg ;;
1416 -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418 { (exit 1); exit 1; }; }
1422 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423 # Reject names that are not valid shell variable names.
1424 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426 { (exit 1); exit 1; }; }
1427 eval $ac_envvar=\$ac_optarg
1428 export $ac_envvar ;;
1431 # FIXME: should be removed in autoconf 3.0.
1432 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1441 if test -n "$ac_prev"; then
1442 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443 { echo "$as_me: error: missing argument to $ac_option" >&2
1444 { (exit 1); exit 1; }; }
1447 # Be sure to have absolute directory names.
1448 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449 datadir sysconfdir sharedstatedir localstatedir includedir \
1450 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451 libdir localedir mandir
1453 eval ac_val=\$$ac_var
1455 [\\/$]* | ?:[\\/]* ) continue;;
1456 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1458 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459 { (exit 1); exit 1; }; }
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1467 target=$target_alias
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471 if test "x$build_alias" = x; then
1472 cross_compiling=maybe
1473 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474 If a cross compiler is detected then cross compile mode will be used." >&2
1475 elif test "x$build_alias" != "x$host_alias"; then
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483 test "$silent" = yes && exec 6>/dev/null
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489 { echo "$as_me: error: Working directory cannot be determined" >&2
1490 { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492 { echo "$as_me: error: pwd does not report name of working directory" >&2
1493 { (exit 1); exit 1; }; }
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$0" : 'X\(//\)[^/]' \| \
1503 X"$0" : 'X\(//\)$' \| \
1504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533 { (exit 1); exit 1; }; }
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538 { (exit 1); exit 1; }; }
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 for ac_var in $ac_precious_vars; do
1551 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_env_${ac_var}_value=\$${ac_var}
1553 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 # Report the --help message.
1560 if test "$ac_init_help" = "long"; then
1561 # Omit some internal or obsolete options to make the list less imposing.
1562 # This message is too long to be a string in the A/UX 3.1 sh.
1564 \`configure' configures this package to adapt to many kinds of systems.
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE. See below for descriptions of some of the useful variables.
1571 Defaults for the options are specified in brackets.
1574 -h, --help display this help and exit
1575 --help=short display options specific to this package
1576 --help=recursive display the short help of all the included packages
1577 -V, --version display version information and exit
1578 -q, --quiet, --silent do not print \`checking...' messages
1579 --cache-file=FILE cache test results in FILE [disabled]
1580 -C, --config-cache alias for \`--cache-file=config.cache'
1581 -n, --no-create do not create output files
1582 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1584 Installation directories:
1585 --prefix=PREFIX install architecture-independent files in PREFIX
1586 [$ac_default_prefix]
1587 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1595 For better control, use the options below.
1597 Fine tuning of the installation directories:
1598 --bindir=DIR user executables [EPREFIX/bin]
1599 --sbindir=DIR system admin executables [EPREFIX/sbin]
1600 --libexecdir=DIR program executables [EPREFIX/libexec]
1601 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1602 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1603 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1604 --libdir=DIR object code libraries [EPREFIX/lib]
1605 --includedir=DIR C header files [PREFIX/include]
1606 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1607 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1608 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1609 --infodir=DIR info documentation [DATAROOTDIR/info]
1610 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1611 --mandir=DIR man documentation [DATAROOTDIR/man]
1612 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1613 --htmldir=DIR html documentation [DOCDIR]
1614 --dvidir=DIR dvi documentation [DOCDIR]
1615 --pdfdir=DIR pdf documentation [DOCDIR]
1616 --psdir=DIR ps documentation [DOCDIR]
1622 --x-includes=DIR X include files are in DIR
1623 --x-libraries=DIR X library files are in DIR
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 if test -n "$ac_init_help"; then
1636 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1637 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1638 --enable-libtool enable building using GNU libtool [default=yes]
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=no]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-includes enable installing of include files [default=no]
1645 --disable-nls do not use Native Language Support
1646 --disable-rpath do not hardcode runtime library paths
1647 --enable-gnome enable build of bgnome-console GUI [default=no]
1648 --enable-bat enable build of bat Qt4 GUI [default=no]
1649 --enable-bwx-console enable build of wxWidgets console [default=no]
1650 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1652 --enable-smartalloc enable smartalloc debugging support [default=no]
1653 --enable-static-tools enable static tape tools [default=no]
1654 --enable-static-fd enable static File daemon [default=no]
1655 --enable-static-sd enable static Storage daemon [default=no]
1656 --enable-static-dir enable static Director [default=no]
1657 --enable-static-cons enable static Console [default=no]
1658 --enable-client-only build client (File daemon) only [default=no]
1659 --enable-build-dird enable building of dird (Director) [default=yes]
1660 --enable-build-stored enable building of stored (Storage daemon)
1662 --disable-conio disable conio support [default=no]
1663 --enable-ipv6 enable ipv6 support [default=yes]
1664 --disable-readline disable readline support [default=yes]
1665 --enable-batch-insert enable the DB batch insert code [default=no]
1666 --disable-largefile omit support for large files
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
18280 if test `eval echo ${includedir}` = NONE/include ; then
18281 includedir=/usr/include
18287 if test x${exec_prefix} = xNONE ; then
18288 exec_prefix=${prefix}
18291 sysconfdir=`eval echo ${sysconfdir}`
18292 datarootdir=`eval echo ${datarootdir}`
18293 libdir=`eval echo ${libdir}`
18294 includedir=`eval echo ${includedir}`
18295 localedir=`eval echo ${datarootdir}/locale`
18296 cat >>confdefs.h <<_ACEOF
18297 #define SYSCONFDIR "$sysconfdir"
18300 cat >>confdefs.h <<_ACEOF
18301 #define LOCALEDIR "$localedir"
18305 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18306 sbindir=${exec_prefix}/sbin
18308 sbindir=`eval echo ${sbindir}`
18310 if test x$mandir = x'${prefix}/man' ; then
18311 mandir=/usr/share/man
18314 for ac_prog in msgfmt
18316 # Extract the first word of "$ac_prog", so it can be a program name with args.
18317 set dummy $ac_prog; ac_word=$2
18318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18320 if test "${ac_cv_path_MSGFMT+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18325 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18329 for as_dir in $PATH
18332 test -z "$as_dir" && as_dir=.
18333 for ac_exec_ext in '' $ac_executable_extensions; do
18334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18335 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18346 MSGFMT=$ac_cv_path_MSGFMT
18347 if test -n "$MSGFMT"; then
18348 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18349 echo "${ECHO_T}$MSGFMT" >&6; }
18351 { echo "$as_me:$LINENO: result: no" >&5
18352 echo "${ECHO_T}no" >&6; }
18356 test -n "$MSGFMT" && break
18358 test -n "$MSGFMT" || MSGFMT="no"
18360 if test "$MSGFMT" = "no"
18362 echo 'msgfmt program not found, disabling NLS !'
18364 USE_INCLUDED_LIBINTL=no
18367 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18368 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18369 if test "${ac_cv_gnu_library_2+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18379 #include <features.h>
18380 #ifdef __GNU_LIBRARY__
18381 #if (__GLIBC__ >= 2)
18387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18388 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18389 ac_cv_gnu_library_2=yes
18391 ac_cv_gnu_library_2=no
18398 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18399 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18401 GLIBC2="$ac_cv_gnu_library_2"
18404 if test -n "$ac_tool_prefix"; then
18405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18409 if test "${ac_cv_prog_RANLIB+set}" = set; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 if test -n "$RANLIB"; then
18413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18416 for as_dir in $PATH
18419 test -z "$as_dir" && as_dir=.
18420 for ac_exec_ext in '' $ac_executable_extensions; do
18421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18432 RANLIB=$ac_cv_prog_RANLIB
18433 if test -n "$RANLIB"; then
18434 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18435 echo "${ECHO_T}$RANLIB" >&6; }
18437 { echo "$as_me:$LINENO: result: no" >&5
18438 echo "${ECHO_T}no" >&6; }
18443 if test -z "$ac_cv_prog_RANLIB"; then
18444 ac_ct_RANLIB=$RANLIB
18445 # Extract the first word of "ranlib", so it can be a program name with args.
18446 set dummy ranlib; ac_word=$2
18447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18452 if test -n "$ac_ct_RANLIB"; then
18453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18456 for as_dir in $PATH
18459 test -z "$as_dir" && as_dir=.
18460 for ac_exec_ext in '' $ac_executable_extensions; do
18461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18462 ac_cv_prog_ac_ct_RANLIB="ranlib"
18463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18473 if test -n "$ac_ct_RANLIB"; then
18474 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18475 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18477 { echo "$as_me:$LINENO: result: no" >&5
18478 echo "${ECHO_T}no" >&6; }
18481 if test "x$ac_ct_RANLIB" = x; then
18484 case $cross_compiling:$ac_tool_warned in
18486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18487 whose name does not start with the host triplet. If you think this
18488 configuration is useful to you, please write to autoconf@gnu.org." >&5
18489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18490 whose name does not start with the host triplet. If you think this
18491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18492 ac_tool_warned=yes ;;
18494 RANLIB=$ac_ct_RANLIB
18497 RANLIB="$ac_cv_prog_RANLIB"
18501 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18502 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18503 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 ac_check_lib_save_LIBS=$LIBS
18507 LIBS="-lcposix $LIBS"
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18515 /* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18525 return strerror ();
18530 rm -f conftest.$ac_objext conftest$ac_exeext
18531 if { (ac_try="$ac_link"
18532 case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_link") 2>conftest.er1
18539 grep -v '^ *+' conftest.er1 >conftest.err
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } && {
18544 test -z "$ac_c_werror_flag" ||
18545 test ! -s conftest.err
18546 } && test -s conftest$ac_exeext &&
18547 $as_test_x conftest$ac_exeext; then
18548 ac_cv_lib_cposix_strerror=yes
18550 echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18553 ac_cv_lib_cposix_strerror=no
18556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18557 conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_lib_save_LIBS
18560 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18561 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18562 if test $ac_cv_lib_cposix_strerror = yes; then
18563 LIBS="$LIBS -lcposix"
18568 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18569 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18570 if test "${ac_cv_c_const+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 cat >conftest.$ac_ext <<_ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18583 /* FIXME: Include the comments suggested by Paul. */
18584 #ifndef __cplusplus
18585 /* Ultrix mips cc rejects this. */
18586 typedef int charset[2];
18588 /* SunOS 4.1.1 cc rejects this. */
18589 char const *const *pcpcc;
18591 /* NEC SVR4.0.2 mips cc rejects this. */
18592 struct point {int x, y;};
18593 static struct point const zero = {0,0};
18594 /* AIX XL C 1.02.0.0 rejects this.
18595 It does not let you subtract one const X* pointer from another in
18596 an arm of an if-expression whose if-part is not a constant
18598 const char *g = "string";
18599 pcpcc = &g + (g ? g-g : 0);
18600 /* HPUX 7.0 cc rejects these. */
18602 ppc = (char**) pcpcc;
18603 pcpcc = (char const *const *) ppc;
18604 { /* SCO 3.2v4 cc rejects this. */
18606 char const *s = 0 ? (char *) 0 : (char const *) 0;
18611 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18612 int x[] = {25, 17};
18613 const int *foo = &x[0];
18616 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18617 typedef const int *iptr;
18621 { /* AIX XL C 1.02.0.0 rejects this saying
18622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18623 struct s { int j; const int *ap[3]; };
18624 struct s *b; b->j = 5;
18626 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18627 const int foo = 10;
18628 if (!foo) return 0;
18630 return !cs[0] && !zero.x;
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_compile") 2>conftest.er1
18646 grep -v '^ *+' conftest.er1 >conftest.err
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } && {
18651 test -z "$ac_c_werror_flag" ||
18652 test ! -s conftest.err
18653 } && test -s conftest.$ac_objext; then
18656 echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18665 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18666 if test $ac_cv_c_const = no; then
18668 cat >>confdefs.h <<\_ACEOF
18675 { echo "$as_me:$LINENO: checking for signed" >&5
18676 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18677 if test "${bh_cv_c_signed+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 cat >conftest.$ac_ext <<_ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18695 rm -f conftest.$ac_objext
18696 if { (ac_try="$ac_compile"
18697 case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_compile") 2>conftest.er1
18704 grep -v '^ *+' conftest.er1 >conftest.err
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } && {
18709 test -z "$ac_c_werror_flag" ||
18710 test ! -s conftest.err
18711 } && test -s conftest.$ac_objext; then
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18722 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18723 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18724 if test $bh_cv_c_signed = no; then
18726 cat >>confdefs.h <<\_ACEOF
18732 { echo "$as_me:$LINENO: checking for inline" >&5
18733 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18734 if test "${ac_cv_c_inline+set}" = set; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 for ac_kw in inline __inline__ __inline; do
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 #ifndef __cplusplus
18747 static $ac_kw foo_t static_foo () {return 0; }
18748 $ac_kw foo_t foo () {return 0; }
18752 rm -f conftest.$ac_objext
18753 if { (ac_try="$ac_compile"
18754 case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_compile") 2>conftest.er1
18761 grep -v '^ *+' conftest.er1 >conftest.err
18763 cat conftest.err >&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } && {
18766 test -z "$ac_c_werror_flag" ||
18767 test ! -s conftest.err
18768 } && test -s conftest.$ac_objext; then
18769 ac_cv_c_inline=$ac_kw
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 test "$ac_cv_c_inline" != no && break
18782 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18783 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18786 case $ac_cv_c_inline in
18789 case $ac_cv_c_inline in
18791 *) ac_val=$ac_cv_c_inline;;
18793 cat >>confdefs.h <<_ACEOF
18794 #ifndef __cplusplus
18795 #define inline $ac_val
18801 { echo "$as_me:$LINENO: checking for off_t" >&5
18802 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18803 if test "${ac_cv_type_off_t+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 cat >conftest.$ac_ext <<_ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 $ac_includes_default
18813 typedef off_t ac__type_new_;
18817 if ((ac__type_new_ *) 0)
18819 if (sizeof (ac__type_new_))
18825 rm -f conftest.$ac_objext
18826 if { (ac_try="$ac_compile"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_compile") 2>conftest.er1
18834 grep -v '^ *+' conftest.er1 >conftest.err
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest.$ac_objext; then
18842 ac_cv_type_off_t=yes
18844 echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18847 ac_cv_type_off_t=no
18850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18852 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18853 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18854 if test $ac_cv_type_off_t = yes; then
18858 cat >>confdefs.h <<_ACEOF
18859 #define off_t long int
18864 { echo "$as_me:$LINENO: checking for size_t" >&5
18865 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18866 if test "${ac_cv_type_size_t+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 $ac_includes_default
18876 typedef size_t ac__type_new_;
18880 if ((ac__type_new_ *) 0)
18882 if (sizeof (ac__type_new_))
18888 rm -f conftest.$ac_objext
18889 if { (ac_try="$ac_compile"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_compile") 2>conftest.er1
18897 grep -v '^ *+' conftest.er1 >conftest.err
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest.$ac_objext; then
18905 ac_cv_type_size_t=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_type_size_t=no
18913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18915 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18916 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18917 if test $ac_cv_type_size_t = yes; then
18921 cat >>confdefs.h <<_ACEOF
18922 #define size_t unsigned int
18928 { echo "$as_me:$LINENO: checking for long long" >&5
18929 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18930 if test "${ac_cv_type_long_long+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 cat >conftest.$ac_ext <<_ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 long long ll = 1LL; int i = 63;
18943 long long llmax = (long long) -1;
18944 return ll << i | ll >> i | llmax / ll | llmax % ll;
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_link") 2>conftest.er1
18958 grep -v '^ *+' conftest.er1 >conftest.err
18960 cat conftest.err >&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } && {
18963 test -z "$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 } && test -s conftest$ac_exeext &&
18966 $as_test_x conftest$ac_exeext; then
18967 ac_cv_type_long_long=yes
18969 echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18972 ac_cv_type_long_long=no
18975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18976 conftest$ac_exeext conftest.$ac_ext
18978 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18979 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18980 if test $ac_cv_type_long_long = yes; then
18982 cat >>confdefs.h <<\_ACEOF
18983 #define HAVE_LONG_LONG 1
18989 { echo "$as_me:$LINENO: checking for long double" >&5
18990 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18991 if test "${gt_cv_c_long_double+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 if test "$GCC" = yes; then
18995 gt_cv_c_long_double=yes
18997 cat >conftest.$ac_ext <<_ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19004 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19005 long double foo = 0.0;
19006 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19007 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19017 rm -f conftest.$ac_objext
19018 if { (ac_try="$ac_compile"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_compile") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest.$ac_objext; then
19034 gt_cv_c_long_double=yes
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 gt_cv_c_long_double=no
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19046 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19047 if test $gt_cv_c_long_double = yes; then
19049 cat >>confdefs.h <<\_ACEOF
19050 #define HAVE_LONG_DOUBLE 1
19056 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19057 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19058 if test "${gt_cv_c_wchar_t+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 cat >conftest.$ac_ext <<_ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 #include <stddef.h>
19068 wchar_t foo = (wchar_t)'\0';
19077 rm -f conftest.$ac_objext
19078 if { (ac_try="$ac_compile"
19079 case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest.$ac_objext; then
19094 gt_cv_c_wchar_t=yes
19096 echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19104 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19105 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19106 if test $gt_cv_c_wchar_t = yes; then
19108 cat >>confdefs.h <<\_ACEOF
19109 #define HAVE_WCHAR_T 1
19115 { echo "$as_me:$LINENO: checking for wint_t" >&5
19116 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19117 if test "${gt_cv_c_wint_t+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 cat >conftest.$ac_ext <<_ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19127 wint_t foo = (wchar_t)'\0';
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_compile") 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest.$ac_objext; then
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19164 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19165 if test $gt_cv_c_wint_t = yes; then
19167 cat >>confdefs.h <<\_ACEOF
19168 #define HAVE_WINT_T 1
19174 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19175 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19176 if test "${gl_cv_header_inttypes_h+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 #include <sys/types.h>
19186 #include <inttypes.h>
19190 uintmax_t i = (uintmax_t) -1;
19195 rm -f conftest.$ac_objext
19196 if { (ac_try="$ac_compile"
19197 case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202 (eval "$ac_compile") 2>conftest.er1
19204 grep -v '^ *+' conftest.er1 >conftest.err
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } && {
19209 test -z "$ac_c_werror_flag" ||
19210 test ! -s conftest.err
19211 } && test -s conftest.$ac_objext; then
19212 gl_cv_header_inttypes_h=yes
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 gl_cv_header_inttypes_h=no
19220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19223 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19224 if test $gl_cv_header_inttypes_h = yes; then
19226 cat >>confdefs.h <<_ACEOF
19227 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19233 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19234 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19235 if test "${gl_cv_header_stdint_h+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <sys/types.h>
19245 #include <stdint.h>
19249 uintmax_t i = (uintmax_t) -1;
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 gl_cv_header_stdint_h=yes
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 gl_cv_header_stdint_h=no
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19282 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19283 if test $gl_cv_header_stdint_h = yes; then
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_STDINT_H_WITH_UINTMAX 1
19294 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19295 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19296 if test "${gt_cv_c_intmax_t+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19306 #include <stddef.h>
19307 #include <stdlib.h>
19308 #if HAVE_STDINT_H_WITH_UINTMAX
19309 #include <stdint.h>
19311 #if HAVE_INTTYPES_H_WITH_UINTMAX
19312 #include <inttypes.h>
19323 rm -f conftest.$ac_objext
19324 if { (ac_try="$ac_compile"
19325 case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_compile") 2>conftest.er1
19332 grep -v '^ *+' conftest.er1 >conftest.err
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } && {
19337 test -z "$ac_c_werror_flag" ||
19338 test ! -s conftest.err
19339 } && test -s conftest.$ac_objext; then
19340 gt_cv_c_intmax_t=yes
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 gt_cv_c_intmax_t=no
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19351 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19352 if test $gt_cv_c_intmax_t = yes; then
19354 cat >>confdefs.h <<\_ACEOF
19355 #define HAVE_INTMAX_T 1
19362 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19363 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19364 if test "${gt_cv_func_printf_posix+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19368 if test "$cross_compiling" = yes; then
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19377 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19383 $EGREP "notposix" >/dev/null 2>&1; then
19384 gt_cv_func_printf_posix="guessing no"
19386 gt_cv_func_printf_posix="guessing yes"
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19400 #include <string.h>
19401 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19402 dollar expansion (possibly an autoconf bug). */
19403 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19404 static char buf[100];
19407 sprintf (buf, format, 33, 55);
19408 return (strcmp (buf, "55 33") != 0);
19411 rm -f conftest$ac_exeext
19412 if { (ac_try="$ac_link"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_link") 2>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; }; then
19431 gt_cv_func_printf_posix=yes
19433 echo "$as_me: program exited with status $ac_status" >&5
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ( exit $ac_status )
19438 gt_cv_func_printf_posix=no
19440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19446 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19447 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19448 case $gt_cv_func_printf_posix in
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_POSIX_PRINTF 1
19458 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19459 # for constant arguments. Useless!
19460 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19461 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19462 if test "${ac_cv_working_alloca_h+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 cat >conftest.$ac_ext <<_ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h. */
19471 #include <alloca.h>
19475 char *p = (char *) alloca (2 * sizeof (int));
19481 rm -f conftest.$ac_objext conftest$ac_exeext
19482 if { (ac_try="$ac_link"
19483 case "(($ac_try" in
19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485 *) ac_try_echo=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_link") 2>conftest.er1
19490 grep -v '^ *+' conftest.er1 >conftest.err
19492 cat conftest.err >&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } && {
19495 test -z "$ac_c_werror_flag" ||
19496 test ! -s conftest.err
19497 } && test -s conftest$ac_exeext &&
19498 $as_test_x conftest$ac_exeext; then
19499 ac_cv_working_alloca_h=yes
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19504 ac_cv_working_alloca_h=no
19507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19508 conftest$ac_exeext conftest.$ac_ext
19510 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19511 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19512 if test $ac_cv_working_alloca_h = yes; then
19514 cat >>confdefs.h <<\_ACEOF
19515 #define HAVE_ALLOCA_H 1
19520 { echo "$as_me:$LINENO: checking for alloca" >&5
19521 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19522 if test "${ac_cv_func_alloca_works+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 cat >conftest.$ac_ext <<_ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 # define alloca __builtin_alloca
19535 # include <malloc.h>
19536 # define alloca _alloca
19538 # ifdef HAVE_ALLOCA_H
19539 # include <alloca.h>
19544 # ifndef alloca /* predefined by HP cc +Olibcalls */
19555 char *p = (char *) alloca (1);
19561 rm -f conftest.$ac_objext conftest$ac_exeext
19562 if { (ac_try="$ac_link"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_link") 2>conftest.er1
19570 grep -v '^ *+' conftest.er1 >conftest.err
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest$ac_exeext &&
19578 $as_test_x conftest$ac_exeext; then
19579 ac_cv_func_alloca_works=yes
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ac_cv_func_alloca_works=no
19587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19588 conftest$ac_exeext conftest.$ac_ext
19590 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19591 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19593 if test $ac_cv_func_alloca_works = yes; then
19595 cat >>confdefs.h <<\_ACEOF
19596 #define HAVE_ALLOCA 1
19600 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19601 # that cause trouble. Some versions do not even contain alloca or
19602 # contain a buggy version. If you still want to use their alloca,
19603 # use ar to extract alloca.o from them instead of compiling alloca.c.
19605 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19607 cat >>confdefs.h <<\_ACEOF
19612 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19613 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19614 if test "${ac_cv_os_cray+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 cat >conftest.$ac_ext <<_ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19623 #if defined CRAY && ! defined CRAY2
19630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19631 $EGREP "webecray" >/dev/null 2>&1; then
19639 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19640 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19641 if test $ac_cv_os_cray = yes; then
19642 for ac_func in _getb67 GETB67 getb67; do
19643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19657 #define $ac_func innocuous_$ac_func
19659 /* System header to define __stub macros and hopefully few prototypes,
19660 which can conflict with char $ac_func (); below.
19661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662 <limits.h> exists even on freestanding compilers. */
19665 # include <limits.h>
19667 # include <assert.h>
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19679 /* The GNU C library defines this for functions which it implements
19680 to always fail with ENOSYS. Some functions are actually named
19681 something starting with __ and the normal name is an alias. */
19682 #if defined __stub_$ac_func || defined __stub___$ac_func
19689 return $ac_func ();
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext &&
19711 $as_test_x conftest$ac_exeext; then
19712 eval "$as_ac_var=yes"
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 eval "$as_ac_var=no"
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721 conftest$ac_exeext conftest.$ac_ext
19723 ac_res=`eval echo '${'$as_ac_var'}'`
19724 { echo "$as_me:$LINENO: result: $ac_res" >&5
19725 echo "${ECHO_T}$ac_res" >&6; }
19726 if test `eval echo '${'$as_ac_var'}'` = yes; then
19728 cat >>confdefs.h <<_ACEOF
19729 #define CRAY_STACKSEG_END $ac_func
19738 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19739 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19740 if test "${ac_cv_c_stack_direction+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 if test "$cross_compiling" = yes; then
19744 ac_cv_c_stack_direction=0
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 $ac_includes_default
19754 find_stack_direction ()
19756 static char *addr = 0;
19761 return find_stack_direction ();
19764 return (&dummy > addr) ? 1 : -1;
19770 return find_stack_direction () < 0;
19773 rm -f conftest$ac_exeext
19774 if { (ac_try="$ac_link"
19775 case "(($ac_try" in
19776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19777 *) ac_try_echo=$ac_try;;
19779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19780 (eval "$ac_link") 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19784 { (case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_try") 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
19793 ac_cv_c_stack_direction=1
19795 echo "$as_me: program exited with status $ac_status" >&5
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ( exit $ac_status )
19800 ac_cv_c_stack_direction=-1
19802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19807 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19808 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19810 cat >>confdefs.h <<_ACEOF
19811 #define STACK_DIRECTION $ac_cv_c_stack_direction
19819 for ac_header in stdlib.h unistd.h
19821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 ac_res=`eval echo '${'$as_ac_Header'}'`
19829 { echo "$as_me:$LINENO: result: $ac_res" >&5
19830 echo "${ECHO_T}$ac_res" >&6; }
19832 # Is the header compilable?
19833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 $ac_includes_default
19842 #include <$ac_header>
19844 rm -f conftest.$ac_objext
19845 if { (ac_try="$ac_compile"
19846 case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_compile") 2>conftest.er1
19853 grep -v '^ *+' conftest.er1 >conftest.err
19855 cat conftest.err >&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); } && {
19858 test -z "$ac_c_werror_flag" ||
19859 test ! -s conftest.err
19860 } && test -s conftest.$ac_objext; then
19861 ac_header_compiler=yes
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_header_compiler=no
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19871 echo "${ECHO_T}$ac_header_compiler" >&6; }
19873 # Is the header present?
19874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 #include <$ac_header>
19884 if { (ac_try="$ac_cpp conftest.$ac_ext"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19892 grep -v '^ *+' conftest.er1 >conftest.err
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } >/dev/null && {
19897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19898 test ! -s conftest.err
19900 ac_header_preproc=yes
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 ac_header_preproc=no
19908 rm -f conftest.err conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19910 echo "${ECHO_T}$ac_header_preproc" >&6; }
19912 # So? What about this header?
19913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19919 ac_header_preproc=yes
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 eval "$as_ac_Header=\$ac_header_preproc"
19944 ac_res=`eval echo '${'$as_ac_Header'}'`
19945 { echo "$as_me:$LINENO: result: $ac_res" >&5
19946 echo "${ECHO_T}$ac_res" >&6; }
19949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19950 cat >>confdefs.h <<_ACEOF
19951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19959 for ac_func in getpagesize
19961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19975 #define $ac_func innocuous_$ac_func
19977 /* System header to define __stub macros and hopefully few prototypes,
19978 which can conflict with char $ac_func (); below.
19979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19980 <limits.h> exists even on freestanding compilers. */
19983 # include <limits.h>
19985 # include <assert.h>
19990 /* Override any GCC internal prototype to avoid an error.
19991 Use char because int might match the return type of a GCC
19992 builtin and then its argument prototype would still apply. */
19997 /* The GNU C library defines this for functions which it implements
19998 to always fail with ENOSYS. Some functions are actually named
19999 something starting with __ and the normal name is an alias. */
20000 #if defined __stub_$ac_func || defined __stub___$ac_func
20007 return $ac_func ();
20012 rm -f conftest.$ac_objext conftest$ac_exeext
20013 if { (ac_try="$ac_link"
20014 case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_link") 2>conftest.er1
20021 grep -v '^ *+' conftest.er1 >conftest.err
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && {
20026 test -z "$ac_c_werror_flag" ||
20027 test ! -s conftest.err
20028 } && test -s conftest$ac_exeext &&
20029 $as_test_x conftest$ac_exeext; then
20030 eval "$as_ac_var=yes"
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 eval "$as_ac_var=no"
20038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20039 conftest$ac_exeext conftest.$ac_ext
20041 ac_res=`eval echo '${'$as_ac_var'}'`
20042 { echo "$as_me:$LINENO: result: $ac_res" >&5
20043 echo "${ECHO_T}$ac_res" >&6; }
20044 if test `eval echo '${'$as_ac_var'}'` = yes; then
20045 cat >>confdefs.h <<_ACEOF
20046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20052 { echo "$as_me:$LINENO: checking for working mmap" >&5
20053 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20054 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 if test "$cross_compiling" = yes; then
20058 ac_cv_func_mmap_fixed_mapped=no
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 $ac_includes_default
20067 /* malloc might have been renamed as rpl_malloc. */
20070 /* Thanks to Mike Haertel and Jim Avera for this test.
20071 Here is a matrix of mmap possibilities:
20072 mmap private not fixed
20073 mmap private fixed at somewhere currently unmapped
20074 mmap private fixed at somewhere already mapped
20075 mmap shared not fixed
20076 mmap shared fixed at somewhere currently unmapped
20077 mmap shared fixed at somewhere already mapped
20078 For private mappings, we should verify that changes cannot be read()
20079 back from the file, nor mmap's back from the file at a different
20080 address. (There have been systems where private was not correctly
20081 implemented like the infamous i386 svr4.0, and systems where the
20082 VM page cache was not coherent with the file system buffer cache
20083 like early versions of FreeBSD and possibly contemporary NetBSD.)
20084 For shared mappings, we should conversely verify that changes get
20085 propagated back to all the places they're supposed to be.
20087 Grep wants private fixed already mapped.
20088 The main things grep needs to know about mmap are:
20089 * does it exist and is it safe to write into the mmap'd area
20090 * how to use it (BSD variants) */
20093 #include <sys/mman.h>
20095 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20099 /* This mess was copied from the GNU getpagesize.h. */
20100 #ifndef HAVE_GETPAGESIZE
20101 /* Assume that all systems that can run configure have sys/param.h. */
20102 # ifndef HAVE_SYS_PARAM_H
20103 # define HAVE_SYS_PARAM_H 1
20106 # ifdef _SC_PAGESIZE
20107 # define getpagesize() sysconf(_SC_PAGESIZE)
20108 # else /* no _SC_PAGESIZE */
20109 # ifdef HAVE_SYS_PARAM_H
20110 # include <sys/param.h>
20111 # ifdef EXEC_PAGESIZE
20112 # define getpagesize() EXEC_PAGESIZE
20113 # else /* no EXEC_PAGESIZE */
20115 # define getpagesize() NBPG * CLSIZE
20118 # endif /* no CLSIZE */
20119 # else /* no NBPG */
20121 # define getpagesize() NBPC
20122 # else /* no NBPC */
20124 # define getpagesize() PAGESIZE
20125 # endif /* PAGESIZE */
20126 # endif /* no NBPC */
20127 # endif /* no NBPG */
20128 # endif /* no EXEC_PAGESIZE */
20129 # else /* no HAVE_SYS_PARAM_H */
20130 # define getpagesize() 8192 /* punt totally */
20131 # endif /* no HAVE_SYS_PARAM_H */
20132 # endif /* no _SC_PAGESIZE */
20134 #endif /* no HAVE_GETPAGESIZE */
20139 char *data, *data2, *data3;
20143 pagesize = getpagesize ();
20145 /* First, make a file with some known garbage in it. */
20146 data = (char *) malloc (pagesize);
20149 for (i = 0; i < pagesize; ++i)
20150 *(data + i) = rand ();
20152 fd = creat ("conftest.mmap", 0600);
20155 if (write (fd, data, pagesize) != pagesize)
20159 /* Next, try to mmap the file at a fixed address which already has
20160 something else allocated at it. If we can, also make sure that
20161 we see the same garbage. */
20162 fd = open ("conftest.mmap", O_RDWR);
20165 data2 = (char *) malloc (2 * pagesize);
20168 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20169 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20170 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20172 for (i = 0; i < pagesize; ++i)
20173 if (*(data + i) != *(data2 + i))
20176 /* Finally, make sure that changes to the mapped area do not
20177 percolate back to the file as seen by read(). (This is a bug on
20178 some variants of i386 svr4.0.) */
20179 for (i = 0; i < pagesize; ++i)
20180 *(data2 + i) = *(data2 + i) + 1;
20181 data3 = (char *) malloc (pagesize);
20184 if (read (fd, data3, pagesize) != pagesize)
20186 for (i = 0; i < pagesize; ++i)
20187 if (*(data + i) != *(data3 + i))
20193 rm -f conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_link") 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_func_mmap_fixed_mapped=yes
20215 echo "$as_me: program exited with status $ac_status" >&5
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 ( exit $ac_status )
20220 ac_cv_func_mmap_fixed_mapped=no
20222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20227 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20228 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20229 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20231 cat >>confdefs.h <<\_ACEOF
20232 #define HAVE_MMAP 1
20236 rm -f conftest.mmap
20239 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20240 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20241 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 cat >conftest.$ac_ext <<_ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20251 #include <features.h>
20252 #ifdef __GNU_LIBRARY__
20253 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20260 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20261 ac_cv_gnu_library_2_1=yes
20263 ac_cv_gnu_library_2_1=no
20270 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20271 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20273 GLIBC21="$ac_cv_gnu_library_2_1"
20278 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20279 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20280 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 if test "$cross_compiling" = yes; then
20286 # Guess based on the CPU.
20287 case "$host_cpu" in
20288 alpha* | i3456786 | m68k | s390*)
20289 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20291 gt_cv_int_divbyzero_sigfpe="guessing no";;
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20302 #include <stdlib.h>
20303 #include <signal.h>
20307 sigfpe_handler (int sig)
20309 sigfpe_handler (sig) int sig;
20312 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20313 exit (sig != SIGFPE);
20323 signal (SIGFPE, sigfpe_handler);
20324 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20325 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20326 signal (SIGTRAP, sigfpe_handler);
20328 /* Linux/SPARC yields signal SIGILL. */
20329 #if defined (__sparc__) && defined (__linux__)
20330 signal (SIGILL, sigfpe_handler);
20339 rm -f conftest$ac_exeext
20340 if { (ac_try="$ac_link"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_link") 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20350 { (case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_try") 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 gt_cv_int_divbyzero_sigfpe=yes
20361 echo "$as_me: program exited with status $ac_status" >&5
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 ( exit $ac_status )
20366 gt_cv_int_divbyzero_sigfpe=no
20368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20374 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20375 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20376 case "$gt_cv_int_divbyzero_sigfpe" in
20381 cat >>confdefs.h <<_ACEOF
20382 #define INTDIV0_RAISES_SIGFPE $value
20387 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20388 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20389 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 cat >conftest.$ac_ext <<_ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20398 unsigned long long ull = 1ULL; int i = 63;
20402 unsigned long long ullmax = (unsigned long long) -1;
20403 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest$ac_exeext &&
20425 $as_test_x conftest$ac_exeext; then
20426 ac_cv_type_unsigned_long_long=yes
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_cv_type_unsigned_long_long=no
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435 conftest$ac_exeext conftest.$ac_ext
20437 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20438 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20439 if test $ac_cv_type_unsigned_long_long = yes; then
20441 cat >>confdefs.h <<\_ACEOF
20442 #define HAVE_UNSIGNED_LONG_LONG 1
20450 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20452 test $ac_cv_type_unsigned_long_long = yes \
20453 && ac_type='unsigned long long' \
20454 || ac_type='unsigned long'
20456 cat >>confdefs.h <<_ACEOF
20457 #define uintmax_t $ac_type
20462 cat >>confdefs.h <<\_ACEOF
20463 #define HAVE_UINTMAX_T 1
20469 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20470 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20471 if test "${gt_cv_header_inttypes_h+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 #include <sys/types.h>
20482 #include <inttypes.h>
20491 rm -f conftest.$ac_objext
20492 if { (ac_try="$ac_compile"
20493 case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_compile") 2>conftest.er1
20500 grep -v '^ *+' conftest.er1 >conftest.err
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest.$ac_objext; then
20508 gt_cv_header_inttypes_h=yes
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 gt_cv_header_inttypes_h=no
20516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20519 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20520 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20521 if test $gt_cv_header_inttypes_h = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_INTTYPES_H 1
20531 if test $gt_cv_header_inttypes_h = yes; then
20532 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20533 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20534 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 #include <inttypes.h>
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_compile") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest.$ac_objext; then
20574 gt_cv_inttypes_pri_broken=no
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 gt_cv_inttypes_pri_broken=yes
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20585 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20586 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20588 if test "$gt_cv_inttypes_pri_broken" = yes; then
20590 cat >>confdefs.h <<_ACEOF
20591 #define PRI_MACROS_BROKEN 1
20598 for ac_header in stdint.h
20600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 ac_res=`eval echo '${'$as_ac_Header'}'`
20608 { echo "$as_me:$LINENO: result: $ac_res" >&5
20609 echo "${ECHO_T}$ac_res" >&6; }
20611 # Is the header compilable?
20612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20620 $ac_includes_default
20621 #include <$ac_header>
20623 rm -f conftest.$ac_objext
20624 if { (ac_try="$ac_compile"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_compile") 2>conftest.er1
20632 grep -v '^ *+' conftest.er1 >conftest.err
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } && {
20637 test -z "$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 } && test -s conftest.$ac_objext; then
20640 ac_header_compiler=yes
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_header_compiler=no
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20650 echo "${ECHO_T}$ac_header_compiler" >&6; }
20652 # Is the header present?
20653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20655 cat >conftest.$ac_ext <<_ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20661 #include <$ac_header>
20663 if { (ac_try="$ac_cpp conftest.$ac_ext"
20664 case "(($ac_try" in
20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20666 *) ac_try_echo=$ac_try;;
20668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20671 grep -v '^ *+' conftest.er1 >conftest.err
20673 cat conftest.err >&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } >/dev/null && {
20676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20677 test ! -s conftest.err
20679 ac_header_preproc=yes
20681 echo "$as_me: failed program was:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20684 ac_header_preproc=no
20687 rm -f conftest.err conftest.$ac_ext
20688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20689 echo "${ECHO_T}$ac_header_preproc" >&6; }
20691 # So? What about this header?
20692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20698 ac_header_preproc=yes
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 eval "$as_ac_Header=\$ac_header_preproc"
20723 ac_res=`eval echo '${'$as_ac_Header'}'`
20724 { echo "$as_me:$LINENO: result: $ac_res" >&5
20725 echo "${ECHO_T}$ac_res" >&6; }
20728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20729 cat >>confdefs.h <<_ACEOF
20730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20737 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20738 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20747 #include <limits.h>
20749 #include <stdint.h>
20756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20757 $EGREP "Found it" >/dev/null 2>&1; then
20762 if test -z "$result"; then
20763 if test "$cross_compiling" = yes; then
20764 # Depending upon the size, compute the lo and hi bounds.
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <stddef.h>
20775 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_compile") 2>conftest.er1
20791 grep -v '^ *+' conftest.er1 >conftest.err
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } && {
20796 test -z "$ac_c_werror_flag" ||
20797 test ! -s conftest.err
20798 } && test -s conftest.$ac_objext; then
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 #include <stddef.h>
20811 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20818 rm -f conftest.$ac_objext
20819 if { (ac_try="$ac_compile"
20820 case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_compile") 2>conftest.er1
20827 grep -v '^ *+' conftest.er1 >conftest.err
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && {
20832 test -z "$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20834 } && test -s conftest.$ac_objext; then
20835 ac_hi=$ac_mid; break
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ac_lo=`expr $ac_mid + 1`
20841 if test $ac_lo -le $ac_mid; then
20845 ac_mid=`expr 2 '*' $ac_mid + 1`
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 #include <stddef.h>
20864 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_compile") 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && {
20885 test -z "$ac_c_werror_flag" ||
20886 test ! -s conftest.err
20887 } && test -s conftest.$ac_objext; then
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 #include <stddef.h>
20900 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_compile") 2>conftest.er1
20916 grep -v '^ *+' conftest.er1 >conftest.err
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } && {
20921 test -z "$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest.$ac_objext; then
20924 ac_lo=$ac_mid; break
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_hi=`expr '(' $ac_mid ')' - 1`
20930 if test $ac_mid -le $ac_hi; then
20934 ac_mid=`expr 2 '*' $ac_mid`
20937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 echo "$as_me: failed program was:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950 # Binary search between lo and hi bounds.
20951 while test "x$ac_lo" != "x$ac_hi"; do
20952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20953 cat >conftest.$ac_ext <<_ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20959 #include <stddef.h>
20963 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20970 rm -f conftest.$ac_objext
20971 if { (ac_try="$ac_compile"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_compile") 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } && {
20984 test -z "$ac_c_werror_flag" ||
20985 test ! -s conftest.err
20986 } && test -s conftest.$ac_objext; then
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ac_lo=`expr '(' $ac_mid ')' + 1`
20995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20998 ?*) res_hi=$ac_lo;;
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <stddef.h>
21009 static long int longval () { return ~(size_t)0 / 10; }
21010 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21012 #include <stdlib.h>
21017 FILE *f = fopen ("conftest.val", "w");
21020 if ((~(size_t)0 / 10) < 0)
21022 long int i = longval ();
21023 if (i != (~(size_t)0 / 10))
21025 fprintf (f, "%ld\n", i);
21029 unsigned long int i = ulongval ();
21030 if (i != (~(size_t)0 / 10))
21032 fprintf (f, "%lu\n", i);
21034 return ferror (f) || fclose (f) != 0;
21040 rm -f conftest$ac_exeext
21041 if { (ac_try="$ac_link"
21042 case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_link") 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21051 { (case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_try") 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 res_hi=`cat conftest.val`
21062 echo "$as_me: program exited with status $ac_status" >&5
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 ( exit $ac_status )
21069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21073 if test "$cross_compiling" = yes; then
21074 # Depending upon the size, compute the lo and hi bounds.
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 #include <stddef.h>
21085 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_compile") 2>conftest.er1
21101 grep -v '^ *+' conftest.er1 >conftest.err
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } && {
21106 test -z "$ac_c_werror_flag" ||
21107 test ! -s conftest.err
21108 } && test -s conftest.$ac_objext; then
21111 cat >conftest.$ac_ext <<_ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 #include <stddef.h>
21121 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_compile") 2>conftest.er1
21137 grep -v '^ *+' conftest.er1 >conftest.err
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } && {
21142 test -z "$ac_c_werror_flag" ||
21143 test ! -s conftest.err
21144 } && test -s conftest.$ac_objext; then
21145 ac_hi=$ac_mid; break
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_lo=`expr $ac_mid + 1`
21151 if test $ac_lo -le $ac_mid; then
21155 ac_mid=`expr 2 '*' $ac_mid + 1`
21158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21161 echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21164 cat >conftest.$ac_ext <<_ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21170 #include <stddef.h>
21174 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21181 rm -f conftest.$ac_objext
21182 if { (ac_try="$ac_compile"
21183 case "(($ac_try" in
21184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185 *) ac_try_echo=$ac_try;;
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188 (eval "$ac_compile") 2>conftest.er1
21190 grep -v '^ *+' conftest.er1 >conftest.err
21192 cat conftest.err >&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } && {
21195 test -z "$ac_c_werror_flag" ||
21196 test ! -s conftest.err
21197 } && test -s conftest.$ac_objext; then
21200 cat >conftest.$ac_ext <<_ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21206 #include <stddef.h>
21210 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_compile") 2>conftest.er1
21226 grep -v '^ *+' conftest.er1 >conftest.err
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } && {
21231 test -z "$ac_c_werror_flag" ||
21232 test ! -s conftest.err
21233 } && test -s conftest.$ac_objext; then
21234 ac_lo=$ac_mid; break
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_hi=`expr '(' $ac_mid ')' - 1`
21240 if test $ac_mid -le $ac_hi; then
21244 ac_mid=`expr 2 '*' $ac_mid`
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 # Binary search between lo and hi bounds.
21261 while test "x$ac_lo" != "x$ac_hi"; do
21262 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21263 cat >conftest.$ac_ext <<_ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 #include <stddef.h>
21273 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_compile") 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } && {
21294 test -z "$ac_c_werror_flag" ||
21295 test ! -s conftest.err
21296 } && test -s conftest.$ac_objext; then
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21302 ac_lo=`expr '(' $ac_mid ')' + 1`
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21308 ?*) res_lo=$ac_lo;;
21312 cat >conftest.$ac_ext <<_ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h. */
21318 #include <stddef.h>
21319 static long int longval () { return ~(size_t)0 % 10; }
21320 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21322 #include <stdlib.h>
21327 FILE *f = fopen ("conftest.val", "w");
21330 if ((~(size_t)0 % 10) < 0)
21332 long int i = longval ();
21333 if (i != (~(size_t)0 % 10))
21335 fprintf (f, "%ld\n", i);
21339 unsigned long int i = ulongval ();
21340 if (i != (~(size_t)0 % 10))
21342 fprintf (f, "%lu\n", i);
21344 return ferror (f) || fclose (f) != 0;
21350 rm -f conftest$ac_exeext
21351 if { (ac_try="$ac_link"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_link") 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21361 { (case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_try") 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370 res_lo=`cat conftest.val`
21372 echo "$as_me: program exited with status $ac_status" >&5
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21376 ( exit $ac_status )
21379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21383 if test "$cross_compiling" = yes; then
21384 # Depending upon the size, compute the lo and hi bounds.
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 #include <stddef.h>
21395 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_compile") 2>conftest.er1
21411 grep -v '^ *+' conftest.er1 >conftest.err
21413 cat conftest.err >&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest.$ac_objext; then
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <stddef.h>
21431 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21438 rm -f conftest.$ac_objext
21439 if { (ac_try="$ac_compile"
21440 case "(($ac_try" in
21441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21447 grep -v '^ *+' conftest.er1 >conftest.err
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest.$ac_objext; then
21455 ac_hi=$ac_mid; break
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21460 ac_lo=`expr $ac_mid + 1`
21461 if test $ac_lo -le $ac_mid; then
21465 ac_mid=`expr 2 '*' $ac_mid + 1`
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 #include <stddef.h>
21484 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21491 rm -f conftest.$ac_objext
21492 if { (ac_try="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && {
21505 test -z "$ac_c_werror_flag" ||
21506 test ! -s conftest.err
21507 } && test -s conftest.$ac_objext; then
21510 cat >conftest.$ac_ext <<_ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 #include <stddef.h>
21520 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21527 rm -f conftest.$ac_objext
21528 if { (ac_try="$ac_compile"
21529 case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_compile") 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } && {
21541 test -z "$ac_c_werror_flag" ||
21542 test ! -s conftest.err
21543 } && test -s conftest.$ac_objext; then
21544 ac_lo=$ac_mid; break
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21549 ac_hi=`expr '(' $ac_mid ')' - 1`
21550 if test $ac_mid -le $ac_hi; then
21554 ac_mid=`expr 2 '*' $ac_mid`
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 # Binary search between lo and hi bounds.
21571 while test "x$ac_lo" != "x$ac_hi"; do
21572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21573 cat >conftest.$ac_ext <<_ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21579 #include <stddef.h>
21583 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_compile") 2>conftest.er1
21599 grep -v '^ *+' conftest.er1 >conftest.err
21601 cat conftest.err >&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } && {
21604 test -z "$ac_c_werror_flag" ||
21605 test ! -s conftest.err
21606 } && test -s conftest.$ac_objext; then
21609 echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 ac_lo=`expr '(' $ac_mid ')' + 1`
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618 ?*) fits_in_uint=$ac_lo;;
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 #include <stddef.h>
21629 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21630 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21632 #include <stdlib.h>
21637 FILE *f = fopen ("conftest.val", "w");
21640 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21642 long int i = longval ();
21643 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21645 fprintf (f, "%ld\n", i);
21649 unsigned long int i = ulongval ();
21650 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21652 fprintf (f, "%lu\n", i);
21654 return ferror (f) || fclose (f) != 0;
21660 rm -f conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_link") 2>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21671 { (case "(($ac_try" in
21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673 *) ac_try_echo=$ac_try;;
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676 (eval "$ac_try") 2>&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; }; then
21680 fits_in_uint=`cat conftest.val`
21682 echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21686 ( exit $ac_status )
21689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21693 if test "$fits_in_uint" = 1; then
21694 cat >conftest.$ac_ext <<_ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 #include <stddef.h>
21702 extern unsigned long foo;
21712 rm -f conftest.$ac_objext
21713 if { (ac_try="$ac_compile"
21714 case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_compile") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1 >conftest.err
21723 cat conftest.err >&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest.$ac_objext; then
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21739 if test -z "$result"; then
21740 if test "$fits_in_uint" = 1; then
21741 result="$res_hi$res_lo"U
21743 result="$res_hi$res_lo"UL
21746 result='~(size_t)0'
21749 { echo "$as_me:$LINENO: result: $result" >&5
21750 echo "${ECHO_T}$result" >&6; }
21751 if test "$result" != yes; then
21753 cat >>confdefs.h <<_ACEOF
21754 #define SIZE_MAX $result
21763 for ac_header in stdint.h
21765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 ac_res=`eval echo '${'$as_ac_Header'}'`
21773 { echo "$as_me:$LINENO: result: $ac_res" >&5
21774 echo "${ECHO_T}$ac_res" >&6; }
21776 # Is the header compilable?
21777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21779 cat >conftest.$ac_ext <<_ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 $ac_includes_default
21786 #include <$ac_header>
21788 rm -f conftest.$ac_objext
21789 if { (ac_try="$ac_compile"
21790 case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_compile") 2>conftest.er1
21797 grep -v '^ *+' conftest.er1 >conftest.err
21799 cat conftest.err >&5
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); } && {
21802 test -z "$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 } && test -s conftest.$ac_objext; then
21805 ac_header_compiler=yes
21807 echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 ac_header_compiler=no
21813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21815 echo "${ECHO_T}$ac_header_compiler" >&6; }
21817 # Is the header present?
21818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 #include <$ac_header>
21828 if { (ac_try="$ac_cpp conftest.$ac_ext"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21836 grep -v '^ *+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } >/dev/null && {
21841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21844 ac_header_preproc=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_header_preproc=no
21852 rm -f conftest.err conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21854 echo "${ECHO_T}$ac_header_preproc" >&6; }
21856 # So? What about this header?
21857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21863 ac_header_preproc=yes
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 eval "$as_ac_Header=\$ac_header_preproc"
21888 ac_res=`eval echo '${'$as_ac_Header'}'`
21889 { echo "$as_me:$LINENO: result: $ac_res" >&5
21890 echo "${ECHO_T}$ac_res" >&6; }
21893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21894 cat >>confdefs.h <<_ACEOF
21895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21909 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21910 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21911 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21914 cat >conftest.$ac_ext <<_ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920 $ac_includes_default
21921 typedef ptrdiff_t ac__type_new_;
21925 if ((ac__type_new_ *) 0)
21927 if (sizeof (ac__type_new_))
21933 rm -f conftest.$ac_objext
21934 if { (ac_try="$ac_compile"
21935 case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21940 (eval "$ac_compile") 2>conftest.er1
21942 grep -v '^ *+' conftest.er1 >conftest.err
21944 cat conftest.err >&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } && {
21947 test -z "$ac_c_werror_flag" ||
21948 test ! -s conftest.err
21949 } && test -s conftest.$ac_objext; then
21950 ac_cv_type_ptrdiff_t=yes
21952 echo "$as_me: failed program was:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ac_cv_type_ptrdiff_t=no
21958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21961 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21962 if test $ac_cv_type_ptrdiff_t = yes; then
21966 cat >>confdefs.h <<\_ACEOF
21967 #define ptrdiff_t long
21983 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21984 stdlib.h string.h unistd.h sys/param.h
21986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 ac_res=`eval echo '${'$as_ac_Header'}'`
21994 { echo "$as_me:$LINENO: result: $ac_res" >&5
21995 echo "${ECHO_T}$ac_res" >&6; }
21997 # Is the header compilable?
21998 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22000 cat >conftest.$ac_ext <<_ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22006 $ac_includes_default
22007 #include <$ac_header>
22009 rm -f conftest.$ac_objext
22010 if { (ac_try="$ac_compile"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22016 (eval "$ac_compile") 2>conftest.er1
22018 grep -v '^ *+' conftest.er1 >conftest.err
22020 cat conftest.err >&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } && {
22023 test -z "$ac_c_werror_flag" ||
22024 test ! -s conftest.err
22025 } && test -s conftest.$ac_objext; then
22026 ac_header_compiler=yes
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 ac_header_compiler=no
22034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22036 echo "${ECHO_T}$ac_header_compiler" >&6; }
22038 # Is the header present?
22039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22041 cat >conftest.$ac_ext <<_ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22047 #include <$ac_header>
22049 if { (ac_try="$ac_cpp conftest.$ac_ext"
22050 case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22057 grep -v '^ *+' conftest.er1 >conftest.err
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } >/dev/null && {
22062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22063 test ! -s conftest.err
22065 ac_header_preproc=yes
22067 echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22070 ac_header_preproc=no
22073 rm -f conftest.err conftest.$ac_ext
22074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22075 echo "${ECHO_T}$ac_header_preproc" >&6; }
22077 # So? What about this header?
22078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22084 ac_header_preproc=yes
22087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22105 echo $ECHO_N "(cached) $ECHO_C" >&6
22107 eval "$as_ac_Header=\$ac_header_preproc"
22109 ac_res=`eval echo '${'$as_ac_Header'}'`
22110 { echo "$as_me:$LINENO: result: $ac_res" >&5
22111 echo "${ECHO_T}$ac_res" >&6; }
22114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22115 cat >>confdefs.h <<_ACEOF
22116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22146 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22147 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22148 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22155 echo $ECHO_N "(cached) $ECHO_C" >&6
22157 cat >conftest.$ac_ext <<_ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22165 #define $ac_func innocuous_$ac_func
22167 /* System header to define __stub macros and hopefully few prototypes,
22168 which can conflict with char $ac_func (); below.
22169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22170 <limits.h> exists even on freestanding compilers. */
22173 # include <limits.h>
22175 # include <assert.h>
22180 /* Override any GCC internal prototype to avoid an error.
22181 Use char because int might match the return type of a GCC
22182 builtin and then its argument prototype would still apply. */
22187 /* The GNU C library defines this for functions which it implements
22188 to always fail with ENOSYS. Some functions are actually named
22189 something starting with __ and the normal name is an alias. */
22190 #if defined __stub_$ac_func || defined __stub___$ac_func
22197 return $ac_func ();
22202 rm -f conftest.$ac_objext conftest$ac_exeext
22203 if { (ac_try="$ac_link"
22204 case "(($ac_try" in
22205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206 *) ac_try_echo=$ac_try;;
22208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209 (eval "$ac_link") 2>conftest.er1
22211 grep -v '^ *+' conftest.er1 >conftest.err
22213 cat conftest.err >&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } && {
22216 test -z "$ac_c_werror_flag" ||
22217 test ! -s conftest.err
22218 } && test -s conftest$ac_exeext &&
22219 $as_test_x conftest$ac_exeext; then
22220 eval "$as_ac_var=yes"
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22225 eval "$as_ac_var=no"
22228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22229 conftest$ac_exeext conftest.$ac_ext
22231 ac_res=`eval echo '${'$as_ac_var'}'`
22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22234 if test `eval echo '${'$as_ac_var'}'` = yes; then
22235 cat >>confdefs.h <<_ACEOF
22236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22244 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22245 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22246 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22261 char *p = (char *) _snprintf;
22268 rm -f conftest.$ac_objext
22269 if { (ac_try="$ac_compile"
22270 case "(($ac_try" in
22271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272 *) ac_try_echo=$ac_try;;
22274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22275 (eval "$ac_compile") 2>conftest.er1
22277 grep -v '^ *+' conftest.er1 >conftest.err
22279 cat conftest.err >&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } && {
22282 test -z "$ac_c_werror_flag" ||
22283 test ! -s conftest.err
22284 } && test -s conftest.$ac_objext; then
22285 ac_cv_have_decl__snprintf=yes
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 ac_cv_have_decl__snprintf=no
22293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22296 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22297 if test $ac_cv_have_decl__snprintf = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define HAVE_DECL__SNPRINTF $gt_value
22309 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22310 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22311 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22326 char *p = (char *) _snwprintf;
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_compile") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1 >conftest.err
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && {
22347 test -z "$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 } && test -s conftest.$ac_objext; then
22350 ac_cv_have_decl__snwprintf=yes
22352 echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_have_decl__snwprintf=no
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22361 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22362 if test $ac_cv_have_decl__snwprintf = yes; then
22368 cat >>confdefs.h <<_ACEOF
22369 #define HAVE_DECL__SNWPRINTF $gt_value
22375 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22376 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22377 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22391 #ifndef feof_unlocked
22392 char *p = (char *) feof_unlocked;
22399 rm -f conftest.$ac_objext
22400 if { (ac_try="$ac_compile"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_compile") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest.$ac_objext; then
22416 ac_cv_have_decl_feof_unlocked=yes
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 ac_cv_have_decl_feof_unlocked=no
22424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22427 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22428 if test $ac_cv_have_decl_feof_unlocked = yes; then
22434 cat >>confdefs.h <<_ACEOF
22435 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22440 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22441 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22442 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 cat >conftest.$ac_ext <<_ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22456 #ifndef fgets_unlocked
22457 char *p = (char *) fgets_unlocked;
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_compile") 2>conftest.er1
22473 grep -v '^ *+' conftest.er1 >conftest.err
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest.$ac_objext; then
22481 ac_cv_have_decl_fgets_unlocked=yes
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_cv_have_decl_fgets_unlocked=no
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22492 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22493 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22499 cat >>confdefs.h <<_ACEOF
22500 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22505 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22506 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22507 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22508 echo $ECHO_N "(cached) $ECHO_C" >&6
22510 cat >conftest.$ac_ext <<_ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22521 #ifndef getc_unlocked
22522 char *p = (char *) getc_unlocked;
22529 rm -f conftest.$ac_objext
22530 if { (ac_try="$ac_compile"
22531 case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_compile") 2>conftest.er1
22538 grep -v '^ *+' conftest.er1 >conftest.err
22540 cat conftest.err >&5
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } && {
22543 test -z "$ac_c_werror_flag" ||
22544 test ! -s conftest.err
22545 } && test -s conftest.$ac_objext; then
22546 ac_cv_have_decl_getc_unlocked=yes
22548 echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22551 ac_cv_have_decl_getc_unlocked=no
22554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22557 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22558 if test $ac_cv_have_decl_getc_unlocked = yes; then
22564 cat >>confdefs.h <<_ACEOF
22565 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22570 case $gt_cv_func_printf_posix in
22571 *yes) HAVE_POSIX_PRINTF=1 ;;
22572 *) HAVE_POSIX_PRINTF=0 ;;
22575 if test "$ac_cv_func_asprintf" = yes; then
22581 if test "$ac_cv_func_snprintf" = yes; then
22587 if test "$ac_cv_func_wprintf" = yes; then
22599 am_save_CPPFLAGS="$CPPFLAGS"
22601 for element in $INCICONV; do
22603 for x in $CPPFLAGS; do
22605 acl_save_prefix="$prefix"
22606 prefix="$acl_final_prefix"
22607 acl_save_exec_prefix="$exec_prefix"
22608 exec_prefix="$acl_final_exec_prefix"
22610 exec_prefix="$acl_save_exec_prefix"
22611 prefix="$acl_save_prefix"
22613 if test "X$x" = "X$element"; then
22618 if test -z "$haveit"; then
22619 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22624 { echo "$as_me:$LINENO: checking for iconv" >&5
22625 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22626 if test "${am_cv_func_iconv+set}" = set; then
22627 echo $ECHO_N "(cached) $ECHO_C" >&6
22630 am_cv_func_iconv="no, consider installing GNU libiconv"
22632 cat >conftest.$ac_ext <<_ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 #include <stdlib.h>
22643 iconv_t cd = iconv_open("","");
22644 iconv(cd,NULL,NULL,NULL,NULL);
22650 rm -f conftest.$ac_objext conftest$ac_exeext
22651 if { (ac_try="$ac_link"
22652 case "(($ac_try" in
22653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_link") 2>conftest.er1
22659 grep -v '^ *+' conftest.er1 >conftest.err
22661 cat conftest.err >&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } && {
22664 test -z "$ac_c_werror_flag" ||
22665 test ! -s conftest.err
22666 } && test -s conftest$ac_exeext &&
22667 $as_test_x conftest$ac_exeext; then
22668 am_cv_func_iconv=yes
22670 echo "$as_me: failed program was:" >&5
22671 sed 's/^/| /' conftest.$ac_ext >&5
22676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677 conftest$ac_exeext conftest.$ac_ext
22678 if test "$am_cv_func_iconv" != yes; then
22679 am_save_LIBS="$LIBS"
22680 LIBS="$LIBS $LIBICONV"
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 #include <stdlib.h>
22692 iconv_t cd = iconv_open("","");
22693 iconv(cd,NULL,NULL,NULL,NULL);
22699 rm -f conftest.$ac_objext conftest$ac_exeext
22700 if { (ac_try="$ac_link"
22701 case "(($ac_try" in
22702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703 *) ac_try_echo=$ac_try;;
22705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22706 (eval "$ac_link") 2>conftest.er1
22708 grep -v '^ *+' conftest.er1 >conftest.err
22710 cat conftest.err >&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); } && {
22713 test -z "$ac_c_werror_flag" ||
22714 test ! -s conftest.err
22715 } && test -s conftest$ac_exeext &&
22716 $as_test_x conftest$ac_exeext; then
22717 am_cv_lib_iconv=yes
22718 am_cv_func_iconv=yes
22720 echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22727 conftest$ac_exeext conftest.$ac_ext
22728 LIBS="$am_save_LIBS"
22732 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22733 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22734 if test "$am_cv_func_iconv" = yes; then
22736 cat >>confdefs.h <<\_ACEOF
22737 #define HAVE_ICONV 1
22741 if test "$am_cv_lib_iconv" = yes; then
22742 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22743 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22744 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22745 echo "${ECHO_T}$LIBICONV" >&6; }
22747 CPPFLAGS="$am_save_CPPFLAGS"
22754 if test "$am_cv_func_iconv" = yes; then
22755 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22756 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22757 if test "${am_cv_proto_iconv+set}" = set; then
22758 echo $ECHO_N "(cached) $ECHO_C" >&6
22761 cat >conftest.$ac_ext <<_ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22768 #include <stdlib.h>
22774 #if defined(__STDC__) || defined(__cplusplus)
22775 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_compile") 2>conftest.er1
22797 grep -v '^ *+' conftest.er1 >conftest.err
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } && {
22802 test -z "$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22804 } && test -s conftest.$ac_objext; then
22805 am_cv_proto_iconv_arg1=""
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22810 am_cv_proto_iconv_arg1="const"
22813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22814 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);"
22817 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22818 { echo "$as_me:$LINENO: result: ${ac_t:-
22819 }$am_cv_proto_iconv" >&5
22820 echo "${ECHO_T}${ac_t:-
22821 }$am_cv_proto_iconv" >&6; }
22823 cat >>confdefs.h <<_ACEOF
22824 #define ICONV_CONST $am_cv_proto_iconv_arg1
22830 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22831 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22832 if test "${am_cv_langinfo_codeset+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 cat >conftest.$ac_ext <<_ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 #include <langinfo.h>
22845 char* cs = nl_langinfo(CODESET);
22850 rm -f conftest.$ac_objext conftest$ac_exeext
22851 if { (ac_try="$ac_link"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_link") 2>conftest.er1
22859 grep -v '^ *+' conftest.er1 >conftest.err
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && {
22864 test -z "$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 } && test -s conftest$ac_exeext &&
22867 $as_test_x conftest$ac_exeext; then
22868 am_cv_langinfo_codeset=yes
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 am_cv_langinfo_codeset=no
22876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22877 conftest$ac_exeext conftest.$ac_ext
22880 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22881 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22882 if test $am_cv_langinfo_codeset = yes; then
22884 cat >>confdefs.h <<\_ACEOF
22885 #define HAVE_LANGINFO_CODESET 1
22890 if test $ac_cv_header_locale_h = yes; then
22892 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22893 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22894 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <locale.h>
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_link") 2>conftest.er1
22921 grep -v '^ *+' conftest.er1 >conftest.err
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest$ac_exeext &&
22929 $as_test_x conftest$ac_exeext; then
22930 gt_cv_val_LC_MESSAGES=yes
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 gt_cv_val_LC_MESSAGES=no
22938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939 conftest$ac_exeext conftest.$ac_ext
22941 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22942 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22943 if test $gt_cv_val_LC_MESSAGES = yes; then
22945 cat >>confdefs.h <<\_ACEOF
22946 #define HAVE_LC_MESSAGES 1
22953 if test -n "$INTL_MACOSX_LIBS"; then
22954 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22957 for ac_prog in bison
22959 # Extract the first word of "$ac_prog", so it can be a program name with args.
22960 set dummy $ac_prog; ac_word=$2
22961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22963 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 if test -n "$INTLBISON"; then
22967 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22970 for as_dir in $PATH
22973 test -z "$as_dir" && as_dir=.
22974 for ac_exec_ext in '' $ac_executable_extensions; do
22975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22976 ac_cv_prog_INTLBISON="$ac_prog"
22977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22986 INTLBISON=$ac_cv_prog_INTLBISON
22987 if test -n "$INTLBISON"; then
22988 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22989 echo "${ECHO_T}$INTLBISON" >&6; }
22991 { echo "$as_me:$LINENO: result: no" >&5
22992 echo "${ECHO_T}no" >&6; }
22996 test -n "$INTLBISON" && break
22999 if test -z "$INTLBISON"; then
23002 { echo "$as_me:$LINENO: checking version of bison" >&5
23003 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23004 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23005 case $ac_prog_version in
23006 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23007 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23008 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23009 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23011 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23012 echo "${ECHO_T}$ac_prog_version" >&6; }
23014 if test $ac_verc_fail = yes; then
23033 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23034 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23035 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
23038 gt_save_CPPFLAGS="$CPPFLAGS"
23039 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23040 gt_save_LIBS="$LIBS"
23041 LIBS="$LIBS -framework CoreFoundation"
23042 cat >conftest.$ac_ext <<_ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23048 #include <CFPreferences.h>
23052 CFPreferencesCopyAppValue(NULL, NULL)
23057 rm -f conftest.$ac_objext conftest$ac_exeext
23058 if { (ac_try="$ac_link"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_link") 2>conftest.er1
23066 grep -v '^ *+' conftest.er1 >conftest.err
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && {
23071 test -z "$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23073 } && test -s conftest$ac_exeext &&
23074 $as_test_x conftest$ac_exeext; then
23075 gt_cv_func_CFPreferencesCopyAppValue=yes
23077 echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23080 gt_cv_func_CFPreferencesCopyAppValue=no
23083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23084 conftest$ac_exeext conftest.$ac_ext
23085 CPPFLAGS="$gt_save_CPPFLAGS"
23086 LIBS="$gt_save_LIBS"
23088 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23089 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23090 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23092 cat >>confdefs.h <<\_ACEOF
23093 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23097 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23098 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23099 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
23102 gt_save_CPPFLAGS="$CPPFLAGS"
23103 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23104 gt_save_LIBS="$LIBS"
23105 LIBS="$LIBS -framework CoreFoundation"
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23112 #include <CFLocale.h>
23116 CFLocaleCopyCurrent();
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (ac_try="$ac_link"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_link") 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest$ac_exeext &&
23138 $as_test_x conftest$ac_exeext; then
23139 gt_cv_func_CFLocaleCopyCurrent=yes
23141 echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 gt_cv_func_CFLocaleCopyCurrent=no
23147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23148 conftest$ac_exeext conftest.$ac_ext
23149 CPPFLAGS="$gt_save_CPPFLAGS"
23150 LIBS="$gt_save_LIBS"
23152 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23153 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23154 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23156 cat >>confdefs.h <<\_ACEOF
23157 #define HAVE_CFLOCALECOPYCURRENT 1
23162 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23163 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23169 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23170 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23171 # Check whether --enable-nls was given.
23172 if test "${enable_nls+set}" = set; then
23173 enableval=$enable_nls; USE_NLS=$enableval
23178 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23179 echo "${ECHO_T}$USE_NLS" >&6; }
23184 BUILD_INCLUDED_LIBINTL=no
23185 USE_INCLUDED_LIBINTL=no
23191 if test "$USE_NLS" = "yes"; then
23192 gt_use_preinstalled_gnugettext=no
23194 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23195 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23197 # Check whether --with-included-gettext was given.
23198 if test "${with_included_gettext+set}" = set; then
23199 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23201 nls_cv_force_use_gnu_gettext=no
23204 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23205 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23207 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23208 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23215 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23216 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23217 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23218 echo $ECHO_N "(cached) $ECHO_C" >&6
23220 cat >conftest.$ac_ext <<_ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 #include <libintl.h>
23227 extern int _nl_msg_cat_cntr;
23228 extern int *_nl_domain_bindings;
23232 bindtextdomain ("", "");
23233 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23238 rm -f conftest.$ac_objext conftest$ac_exeext
23239 if { (ac_try="$ac_link"
23240 case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245 (eval "$ac_link") 2>conftest.er1
23247 grep -v '^ *+' conftest.er1 >conftest.err
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } && {
23252 test -z "$ac_c_werror_flag" ||
23253 test ! -s conftest.err
23254 } && test -s conftest$ac_exeext &&
23255 $as_test_x conftest$ac_exeext; then
23256 gt_cv_func_gnugettext1_libc=yes
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23261 gt_cv_func_gnugettext1_libc=no
23264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23265 conftest$ac_exeext conftest.$ac_ext
23267 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23268 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23270 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23276 acl_save_prefix="$prefix"
23277 prefix="$acl_final_prefix"
23278 acl_save_exec_prefix="$exec_prefix"
23279 exec_prefix="$acl_final_exec_prefix"
23281 eval additional_includedir=\"$includedir\"
23282 eval additional_libdir=\"$libdir\"
23284 exec_prefix="$acl_save_exec_prefix"
23285 prefix="$acl_save_prefix"
23288 # Check whether --with-libintl-prefix was given.
23289 if test "${with_libintl_prefix+set}" = set; then
23290 withval=$with_libintl_prefix;
23291 if test "X$withval" = "Xno"; then
23294 if test "X$withval" = "X"; then
23296 acl_save_prefix="$prefix"
23297 prefix="$acl_final_prefix"
23298 acl_save_exec_prefix="$exec_prefix"
23299 exec_prefix="$acl_final_exec_prefix"
23301 eval additional_includedir=\"$includedir\"
23302 eval additional_libdir=\"$libdir\"
23304 exec_prefix="$acl_save_exec_prefix"
23305 prefix="$acl_save_prefix"
23308 additional_includedir="$withval/include"
23309 additional_libdir="$withval/lib"
23320 names_already_handled=
23321 names_next_round='intl '
23322 while test -n "$names_next_round"; do
23323 names_this_round="$names_next_round"
23325 for name in $names_this_round; do
23327 for n in $names_already_handled; do
23328 if test "$n" = "$name"; then
23329 already_handled=yes
23333 if test -z "$already_handled"; then
23334 names_already_handled="$names_already_handled $name"
23335 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23336 eval value=\"\$HAVE_LIB$uppername\"
23337 if test -n "$value"; then
23338 if test "$value" = yes; then
23339 eval value=\"\$LIB$uppername\"
23340 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23341 eval value=\"\$LTLIB$uppername\"
23342 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23351 if test $use_additional = yes; then
23352 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23353 found_dir="$additional_libdir"
23354 found_so="$additional_libdir/lib$name.$shlibext"
23355 if test -f "$additional_libdir/lib$name.la"; then
23356 found_la="$additional_libdir/lib$name.la"
23359 if test -f "$additional_libdir/lib$name.$libext"; then
23360 found_dir="$additional_libdir"
23361 found_a="$additional_libdir/lib$name.$libext"
23362 if test -f "$additional_libdir/lib$name.la"; then
23363 found_la="$additional_libdir/lib$name.la"
23368 if test "X$found_dir" = "X"; then
23369 for x in $LDFLAGS $LTLIBINTL; do
23371 acl_save_prefix="$prefix"
23372 prefix="$acl_final_prefix"
23373 acl_save_exec_prefix="$exec_prefix"
23374 exec_prefix="$acl_final_exec_prefix"
23376 exec_prefix="$acl_save_exec_prefix"
23377 prefix="$acl_save_prefix"
23381 dir=`echo "X$x" | sed -e 's/^X-L//'`
23382 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23384 found_so="$dir/lib$name.$shlibext"
23385 if test -f "$dir/lib$name.la"; then
23386 found_la="$dir/lib$name.la"
23389 if test -f "$dir/lib$name.$libext"; then
23391 found_a="$dir/lib$name.$libext"
23392 if test -f "$dir/lib$name.la"; then
23393 found_la="$dir/lib$name.la"
23399 if test "X$found_dir" != "X"; then
23404 if test "X$found_dir" != "X"; then
23405 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23406 if test "X$found_so" != "X"; then
23407 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23408 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23411 for x in $ltrpathdirs; do
23412 if test "X$x" = "X$found_dir"; then
23417 if test -z "$haveit"; then
23418 ltrpathdirs="$ltrpathdirs $found_dir"
23420 if test "$hardcode_direct" = yes; then
23421 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23423 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23424 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23426 for x in $rpathdirs; do
23427 if test "X$x" = "X$found_dir"; then
23432 if test -z "$haveit"; then
23433 rpathdirs="$rpathdirs $found_dir"
23437 for x in $LDFLAGS $LIBINTL; do
23439 acl_save_prefix="$prefix"
23440 prefix="$acl_final_prefix"
23441 acl_save_exec_prefix="$exec_prefix"
23442 exec_prefix="$acl_final_exec_prefix"
23444 exec_prefix="$acl_save_exec_prefix"
23445 prefix="$acl_save_prefix"
23447 if test "X$x" = "X-L$found_dir"; then
23452 if test -z "$haveit"; then
23453 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23455 if test "$hardcode_minus_L" != no; then
23456 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23458 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23464 if test "X$found_a" != "X"; then
23465 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23467 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23470 additional_includedir=
23471 case "$found_dir" in
23473 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23474 additional_includedir="$basedir/include"
23477 if test "X$additional_includedir" != "X"; then
23478 if test "X$additional_includedir" != "X/usr/include"; then
23480 if test "X$additional_includedir" = "X/usr/local/include"; then
23481 if test -n "$GCC"; then
23483 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23487 if test -z "$haveit"; then
23488 for x in $CPPFLAGS $INCINTL; do
23490 acl_save_prefix="$prefix"
23491 prefix="$acl_final_prefix"
23492 acl_save_exec_prefix="$exec_prefix"
23493 exec_prefix="$acl_final_exec_prefix"
23495 exec_prefix="$acl_save_exec_prefix"
23496 prefix="$acl_save_prefix"
23498 if test "X$x" = "X-I$additional_includedir"; then
23503 if test -z "$haveit"; then
23504 if test -d "$additional_includedir"; then
23505 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23511 if test -n "$found_la"; then
23512 save_libdir="$libdir"
23513 case "$found_la" in
23514 */* | *\\*) . "$found_la" ;;
23515 *) . "./$found_la" ;;
23517 libdir="$save_libdir"
23518 for dep in $dependency_libs; do
23521 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23522 if test "X$additional_libdir" != "X/usr/lib"; then
23524 if test "X$additional_libdir" = "X/usr/local/lib"; then
23525 if test -n "$GCC"; then
23527 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23531 if test -z "$haveit"; then
23533 for x in $LDFLAGS $LIBINTL; do
23535 acl_save_prefix="$prefix"
23536 prefix="$acl_final_prefix"
23537 acl_save_exec_prefix="$exec_prefix"
23538 exec_prefix="$acl_final_exec_prefix"
23540 exec_prefix="$acl_save_exec_prefix"
23541 prefix="$acl_save_prefix"
23543 if test "X$x" = "X-L$additional_libdir"; then
23548 if test -z "$haveit"; then
23549 if test -d "$additional_libdir"; then
23550 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23554 for x in $LDFLAGS $LTLIBINTL; do
23556 acl_save_prefix="$prefix"
23557 prefix="$acl_final_prefix"
23558 acl_save_exec_prefix="$exec_prefix"
23559 exec_prefix="$acl_final_exec_prefix"
23561 exec_prefix="$acl_save_exec_prefix"
23562 prefix="$acl_save_prefix"
23564 if test "X$x" = "X-L$additional_libdir"; then
23569 if test -z "$haveit"; then
23570 if test -d "$additional_libdir"; then
23571 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23578 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23579 if test "$enable_rpath" != no; then
23581 for x in $rpathdirs; do
23582 if test "X$x" = "X$dir"; then
23587 if test -z "$haveit"; then
23588 rpathdirs="$rpathdirs $dir"
23591 for x in $ltrpathdirs; do
23592 if test "X$x" = "X$dir"; then
23597 if test -z "$haveit"; then
23598 ltrpathdirs="$ltrpathdirs $dir"
23603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23609 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23610 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23616 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23623 if test "X$rpathdirs" != "X"; then
23624 if test -n "$hardcode_libdir_separator"; then
23626 for found_dir in $rpathdirs; do
23627 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23629 acl_save_libdir="$libdir"
23631 eval flag=\"$hardcode_libdir_flag_spec\"
23632 libdir="$acl_save_libdir"
23633 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23635 for found_dir in $rpathdirs; do
23636 acl_save_libdir="$libdir"
23637 libdir="$found_dir"
23638 eval flag=\"$hardcode_libdir_flag_spec\"
23639 libdir="$acl_save_libdir"
23640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23644 if test "X$ltrpathdirs" != "X"; then
23645 for found_dir in $ltrpathdirs; do
23646 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23650 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23651 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23652 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23653 echo $ECHO_N "(cached) $ECHO_C" >&6
23655 gt_save_CPPFLAGS="$CPPFLAGS"
23656 CPPFLAGS="$CPPFLAGS $INCINTL"
23657 gt_save_LIBS="$LIBS"
23658 LIBS="$LIBS $LIBINTL"
23659 cat >conftest.$ac_ext <<_ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23665 #include <libintl.h>
23666 extern int _nl_msg_cat_cntr;
23671 const char *_nl_expand_alias (const char *);
23675 bindtextdomain ("", "");
23676 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (ac_try="$ac_link"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_link") 2>conftest.er1
23690 grep -v '^ *+' conftest.er1 >conftest.err
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } && {
23695 test -z "$ac_c_werror_flag" ||
23696 test ! -s conftest.err
23697 } && test -s conftest$ac_exeext &&
23698 $as_test_x conftest$ac_exeext; then
23699 gt_cv_func_gnugettext1_libintl=yes
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 gt_cv_func_gnugettext1_libintl=no
23707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23708 conftest$ac_exeext conftest.$ac_ext
23709 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23710 LIBS="$LIBS $LIBICONV"
23711 cat >conftest.$ac_ext <<_ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h. */
23717 #include <libintl.h>
23718 extern int _nl_msg_cat_cntr;
23723 const char *_nl_expand_alias (const char *);
23727 bindtextdomain ("", "");
23728 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23733 rm -f conftest.$ac_objext conftest$ac_exeext
23734 if { (ac_try="$ac_link"
23735 case "(($ac_try" in
23736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737 *) ac_try_echo=$ac_try;;
23739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23740 (eval "$ac_link") 2>conftest.er1
23742 grep -v '^ *+' conftest.er1 >conftest.err
23744 cat conftest.err >&5
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); } && {
23747 test -z "$ac_c_werror_flag" ||
23748 test ! -s conftest.err
23749 } && test -s conftest$ac_exeext &&
23750 $as_test_x conftest$ac_exeext; then
23751 LIBINTL="$LIBINTL $LIBICONV"
23752 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23753 gt_cv_func_gnugettext1_libintl=yes
23756 echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763 conftest$ac_exeext conftest.$ac_ext
23765 CPPFLAGS="$gt_save_CPPFLAGS"
23766 LIBS="$gt_save_LIBS"
23768 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23769 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23772 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23773 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23774 && test "$PACKAGE" != gettext-runtime \
23775 && test "$PACKAGE" != gettext-tools; }; then
23776 gt_use_preinstalled_gnugettext=yes
23784 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23785 nls_cv_use_gnu_gettext=yes
23789 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23790 BUILD_INCLUDED_LIBINTL=yes
23791 USE_INCLUDED_LIBINTL=yes
23792 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23793 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23794 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23798 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23799 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23804 if test -n "$INTL_MACOSX_LIBS"; then
23805 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23806 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23807 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23808 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23812 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23813 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23815 cat >>confdefs.h <<\_ACEOF
23816 #define ENABLE_NLS 1
23824 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23825 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23826 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23827 echo "${ECHO_T}$USE_NLS" >&6; }
23828 if test "$USE_NLS" = "yes"; then
23829 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23830 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23831 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23832 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23833 gt_source="external libintl"
23838 gt_source="included intl directory"
23840 { echo "$as_me:$LINENO: result: $gt_source" >&5
23841 echo "${ECHO_T}$gt_source" >&6; }
23844 if test "$USE_NLS" = "yes"; then
23846 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23847 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23848 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23849 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23850 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23851 echo "${ECHO_T}$LIBINTL" >&6; }
23853 for element in $INCINTL; do
23855 for x in $CPPFLAGS; do
23857 acl_save_prefix="$prefix"
23858 prefix="$acl_final_prefix"
23859 acl_save_exec_prefix="$exec_prefix"
23860 exec_prefix="$acl_final_exec_prefix"
23862 exec_prefix="$acl_save_exec_prefix"
23863 prefix="$acl_save_prefix"
23865 if test "X$x" = "X$element"; then
23870 if test -z "$haveit"; then
23871 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23878 cat >>confdefs.h <<\_ACEOF
23879 #define HAVE_GETTEXT 1
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_DCGETTEXT 1
23893 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23894 BUILD_INCLUDED_LIBINTL=yes
23901 nls_cv_header_intl=
23902 nls_cv_header_libgt=
23914 if test "$USE_INCLUDED_LIBINTL" = yes; then
23915 INTLOBJS="\$(GETTOBJS)"
23919 INTL_LIBTOOL_SUFFIX_PREFIX=
23923 INTLLIBS="$LIBINTL"
23935 support_postgresql=no
23937 support_smartalloc=yes
23938 support_readline=yes
23942 support_wx_console=no
23943 support_tray_monitor=no
23948 support_static_tools=no
23949 support_static_fd=no
23950 support_static_sd=no
23951 support_static_dir=no
23952 support_static_cons=no
23954 build_client_only=no
23962 # Check whether --enable-gnome was given.
23963 if test "${enable_gnome+set}" = set; then
23964 enableval=$enable_gnome;
23965 if test x$enableval = xyes; then
23974 if test x$support_gnome = xyes; then
23975 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23977 if test $pkg = 0; then
23978 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23979 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23980 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23981 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23986 GNOME_DIR=src/gnome2-console
23987 gnome_version="Version 2.x"
23989 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23990 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23991 { (exit 1); exit 1; }; }
23996 # Check whether --enable-bat was given.
23997 if test "${enable_bat+set}" = set; then
23998 enableval=$enable_bat;
23999 if test x$enableval = xyes; then
24001 cat >>confdefs.h <<\_ACEOF
24013 if test x$support_bat = xyes; then
24014 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24016 if test $pkg = 0; then
24017 BAT_DIR=src/qt-console
24019 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24020 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24021 { (exit 1); exit 1; }; }
24031 if test x$support_bat = xyes; then
24032 { echo "$as_me:$LINENO: checking for qwt support" >&5
24033 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24035 # Check whether --with-qwt was given.
24036 if test "${with_qwt+set}" = set; then
24038 case "$with_qwt" in
24043 if test -f ${with_qwt}/include/qwt.h; then
24044 QWT_INC="${with_qwt}/include"
24045 QWT_LDFLAGS="-L${with_qwt}/lib"
24056 if test $no_qwt = no; then
24057 if test x$QWT_INC = x; then
24058 for root in /usr /usr/local; do
24059 for ver in qwt qwt5 qwt-qt4; do
24060 if test -f ${root}/include/${ver}/qwt.h; then
24061 QWT_INC="${root}/include/${ver}"
24062 if test -d ${root}/lib64/; then
24063 QWT_LDFLAGS="-L${root}/lib64"
24064 elif test -d ${root}/lib/64/; then
24065 QWT_LDFLAGS="-L${root}/64"
24067 QWT_LDFLAGS="-L${root}/lib"
24078 if test x$QWT_INC = x; then
24079 { echo "$as_me:$LINENO: result: no" >&5
24080 echo "${ECHO_T}no" >&6; }
24083 cat >>confdefs.h <<\_ACEOF
24087 { echo "$as_me:$LINENO: result: yes" >&5
24088 echo "${ECHO_T}yes" >&6; }
24098 # Check whether --enable-bwx-console was given.
24099 if test "${enable_bwx_console+set}" = set; then
24100 enableval=$enable_bwx_console;
24101 if test x$enableval = xyes; then
24102 support_wx_console=yes
24110 if test x$support_wx_console = xyes; then
24111 abc=`$WXCONFIG $WXFLAGS --cppflags`
24113 if test $pkg = 0; then
24114 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24115 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24116 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24120 WX_DIR=src/wx-console
24123 echo "wx-config program not found. bwx-console disabled."
24125 support_wx_console=no
24130 # Check whether --enable-tray-monitor was given.
24131 if test "${enable_tray_monitor+set}" = set; then
24132 enableval=$enable_tray_monitor;
24133 if test x$enableval = xyes; then
24134 support_tray_monitor=yes
24142 if test x$support_tray_monitor = xyes; then
24143 abc=`$PKGCONFIG --exists gtk+-2.0`
24145 if test $pkg = 0; then
24146 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24147 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24150 TRAY_MONITOR_DIR=src/tray-monitor
24151 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24153 if test $pkg = 0; then
24155 cat >>confdefs.h <<\_ACEOF
24156 #define HAVE_GTK_2_4 1
24164 # Check whether --enable-smartalloc was given.
24165 if test "${enable_smartalloc+set}" = set; then
24166 enableval=$enable_smartalloc;
24167 if test x$enableval = xno; then
24168 support_smartalloc=no
24175 if test x$support_smartalloc = xyes; then
24177 cat >>confdefs.h <<\_ACEOF
24178 #define SMARTALLOC 1
24183 # Check whether --enable-static-tools was given.
24184 if test "${enable_static_tools+set}" = set; then
24185 enableval=$enable_static_tools;
24186 if test x$enableval = xyes; then
24187 support_static_tools=yes
24195 if test x$support_static_tools = xyes; then
24196 TTOOL_LDFLAGS="-static"
24200 # Check whether --enable-static-fd was given.
24201 if test "${enable_static_fd+set}" = set; then
24202 enableval=$enable_static_fd;
24203 if test x$enableval = xyes; then
24204 support_static_fd=yes
24212 if test x$support_static_fd = xyes; then
24213 STATIC_FD="static-bacula-fd"
24217 # Check whether --enable-static-sd was given.
24218 if test "${enable_static_sd+set}" = set; then
24219 enableval=$enable_static_sd;
24220 if test x$enableval = xyes; then
24221 support_static_sd=yes
24229 if test x$support_static_sd = xyes; then
24230 STATIC_SD="static-bacula-sd"
24234 # Check whether --enable-static-dir was given.
24235 if test "${enable_static_dir+set}" = set; then
24236 enableval=$enable_static_dir;
24237 if test x$enableval = xyes; then
24238 support_static_dir=yes
24246 if test x$support_static_dir = xyes; then
24247 STATIC_DIR="static-bacula-dir"
24251 # Check whether --enable-static-cons was given.
24252 if test "${enable_static_cons+set}" = set; then
24253 enableval=$enable_static_cons;
24254 if test x$enableval = xyes; then
24255 support_static_cons=yes
24265 if test x$support_static_cons = xyes; then
24266 STATIC_CONS="static-bconsole"
24267 STATIC_GNOME_CONS="static-bgnome-console"
24268 STATIC_WX_CONS="static-bwx-console"
24274 # Check whether --enable-client-only was given.
24275 if test "${enable_client_only+set}" = set; then
24276 enableval=$enable_client_only;
24277 if test x$enableval = xyes; then
24278 build_client_only=yes
24286 if test x$build_client_only = xno; then
24293 # Check whether --enable-build-dird was given.
24294 if test "${enable_build_dird+set}" = set; then
24295 enableval=$enable_build_dird;
24296 if test x$enableval = xno; then
24303 if test x$build_dird = xyes; then
24304 DIRD_DIR="src/dird"
24305 DIR_TOOLS="DIRTOOLS"
24308 DIR_TOOLS="NODIRTOOLS"
24313 # Check whether --enable-build-stored was given.
24314 if test "${enable_build_stored+set}" = set; then
24315 enableval=$enable_build_stored;
24316 if test x$enableval = xno; then
24323 if test x$build_stored = xyes; then
24324 STORED_DIR="src/stored"
24330 # Check whether --enable-conio was given.
24331 if test "${enable_conio+set}" = set; then
24332 enableval=$enable_conio;
24333 if test x$enableval = xno; then
24343 # Check whether --enable-ipv6 was given.
24344 if test "${enable_ipv6+set}" = set; then
24345 enableval=$enable_ipv6;
24346 if test x$enableval = xno; then
24354 if test x$support_ipv6 = xyes; then
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 #include <sys/types.h>
24362 #include <sys/socket.h>
24363 #include <netinet/in.h>
24367 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (ac_try="$ac_link"
24374 case "(($ac_try" in
24375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379 (eval "$ac_link") 2>conftest.er1
24381 grep -v '^ *+' conftest.er1 >conftest.err
24383 cat conftest.err >&5
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); } && {
24386 test -z "$ac_c_werror_flag" ||
24387 test ! -s conftest.err
24388 } && test -s conftest$ac_exeext &&
24389 $as_test_x conftest$ac_exeext; then
24392 echo "$as_me: failed program was:" >&5
24393 sed 's/^/| /' conftest.$ac_ext >&5
24398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24399 conftest$ac_exeext conftest.$ac_ext
24402 if test x$support_ipv6 = xyes; then
24404 cat >>confdefs.h <<\_ACEOF
24405 #define HAVE_IPV6 1
24411 if test x$support_conio = xyes; then
24412 if test "${ac_cv_header_termcap_h+set}" = set; then
24413 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24414 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24415 if test "${ac_cv_header_termcap_h+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24418 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24419 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24421 # Is the header compilable?
24422 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24423 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24424 cat >conftest.$ac_ext <<_ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 $ac_includes_default
24431 #include <termcap.h>
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_compile") 2>conftest.er1
24442 grep -v '^ *+' conftest.er1 >conftest.err
24444 cat conftest.err >&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); } && {
24447 test -z "$ac_c_werror_flag" ||
24448 test ! -s conftest.err
24449 } && test -s conftest.$ac_objext; then
24450 ac_header_compiler=yes
24452 echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24455 ac_header_compiler=no
24458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24460 echo "${ECHO_T}$ac_header_compiler" >&6; }
24462 # Is the header present?
24463 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24464 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24465 cat >conftest.$ac_ext <<_ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24471 #include <termcap.h>
24473 if { (ac_try="$ac_cpp conftest.$ac_ext"
24474 case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24481 grep -v '^ *+' conftest.er1 >conftest.err
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } >/dev/null && {
24486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24487 test ! -s conftest.err
24489 ac_header_preproc=yes
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 ac_header_preproc=no
24497 rm -f conftest.err conftest.$ac_ext
24498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24499 echo "${ECHO_T}$ac_header_preproc" >&6; }
24501 # So? What about this header?
24502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24504 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24505 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24506 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24507 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24508 ac_header_preproc=yes
24511 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24512 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24513 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24514 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24515 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24516 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24518 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24520 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24521 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24522 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24526 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24527 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24528 if test "${ac_cv_header_termcap_h+set}" = set; then
24529 echo $ECHO_N "(cached) $ECHO_C" >&6
24531 ac_cv_header_termcap_h=$ac_header_preproc
24533 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24534 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24537 if test $ac_cv_header_termcap_h = yes; then
24538 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24539 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24540 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24541 echo $ECHO_N "(cached) $ECHO_C" >&6
24543 ac_check_lib_save_LIBS=$LIBS
24544 LIBS="-ltermcap $LIBS"
24545 cat >conftest.$ac_ext <<_ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24552 /* Override any GCC internal prototype to avoid an error.
24553 Use char because int might match the return type of a GCC
24554 builtin and then its argument prototype would still apply. */
24567 rm -f conftest.$ac_objext conftest$ac_exeext
24568 if { (ac_try="$ac_link"
24569 case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_link") 2>conftest.er1
24576 grep -v '^ *+' conftest.er1 >conftest.err
24578 cat conftest.err >&5
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); } && {
24581 test -z "$ac_c_werror_flag" ||
24582 test ! -s conftest.err
24583 } && test -s conftest$ac_exeext &&
24584 $as_test_x conftest$ac_exeext; then
24585 ac_cv_lib_termcap_tgetent=yes
24587 echo "$as_me: failed program was:" >&5
24588 sed 's/^/| /' conftest.$ac_ext >&5
24590 ac_cv_lib_termcap_tgetent=no
24593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24594 conftest$ac_exeext conftest.$ac_ext
24595 LIBS=$ac_check_lib_save_LIBS
24597 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24598 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24599 if test $ac_cv_lib_termcap_tgetent = yes; then
24600 CONS_LIBS="-ltermcap"
24604 support_readline=no
24606 cat >>confdefs.h <<\_ACEOF
24607 #define HAVE_CONIO 1
24612 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24613 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24614 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24615 echo $ECHO_N "(cached) $ECHO_C" >&6
24617 ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-lncurses $LIBS"
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24626 /* Override any GCC internal prototype to avoid an error.
24627 Use char because int might match the return type of a GCC
24628 builtin and then its argument prototype would still apply. */
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (ac_try="$ac_link"
24643 case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_link") 2>conftest.er1
24650 grep -v '^ *+' conftest.er1 >conftest.err
24652 cat conftest.err >&5
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } && {
24655 test -z "$ac_c_werror_flag" ||
24656 test ! -s conftest.err
24657 } && test -s conftest$ac_exeext &&
24658 $as_test_x conftest$ac_exeext; then
24659 ac_cv_lib_ncurses_tgetent=yes
24661 echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24664 ac_cv_lib_ncurses_tgetent=no
24667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24668 conftest$ac_exeext conftest.$ac_ext
24669 LIBS=$ac_check_lib_save_LIBS
24671 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24672 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24673 if test $ac_cv_lib_ncurses_tgetent = yes; then
24674 CONS_LIBS="-lncurses"
24678 support_readline=no
24680 cat >>confdefs.h <<\_ACEOF
24681 #define HAVE_CONIO 1
24694 for ac_header in curses.h
24696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24703 ac_res=`eval echo '${'$as_ac_Header'}'`
24704 { echo "$as_me:$LINENO: result: $ac_res" >&5
24705 echo "${ECHO_T}$ac_res" >&6; }
24707 # Is the header compilable?
24708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24710 cat >conftest.$ac_ext <<_ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24716 $ac_includes_default
24717 #include <$ac_header>
24719 rm -f conftest.$ac_objext
24720 if { (ac_try="$ac_compile"
24721 case "(($ac_try" in
24722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723 *) ac_try_echo=$ac_try;;
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726 (eval "$ac_compile") 2>conftest.er1
24728 grep -v '^ *+' conftest.er1 >conftest.err
24730 cat conftest.err >&5
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } && {
24733 test -z "$ac_c_werror_flag" ||
24734 test ! -s conftest.err
24735 } && test -s conftest.$ac_objext; then
24736 ac_header_compiler=yes
24738 echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ac_header_compiler=no
24744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24746 echo "${ECHO_T}$ac_header_compiler" >&6; }
24748 # Is the header present?
24749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 #include <$ac_header>
24759 if { (ac_try="$ac_cpp conftest.$ac_ext"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24767 grep -v '^ *+' conftest.er1 >conftest.err
24769 cat conftest.err >&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } >/dev/null && {
24772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24775 ac_header_preproc=yes
24777 echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24780 ac_header_preproc=no
24783 rm -f conftest.err conftest.$ac_ext
24784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24785 echo "${ECHO_T}$ac_header_preproc" >&6; }
24787 # So? What about this header?
24788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24794 ac_header_preproc=yes
24797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24817 eval "$as_ac_Header=\$ac_header_preproc"
24819 ac_res=`eval echo '${'$as_ac_Header'}'`
24820 { echo "$as_me:$LINENO: result: $ac_res" >&5
24821 echo "${ECHO_T}$ac_res" >&6; }
24824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24825 cat >>confdefs.h <<_ACEOF
24826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24833 { echo "$as_me:$LINENO: checking for term.h" >&5
24834 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24835 if test "${ac_cv_header_term_h+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24845 #include <curses.h>
24851 rm -f conftest.$ac_objext
24852 if { (ac_try="$ac_compile"
24853 case "(($ac_try" in
24854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855 *) ac_try_echo=$ac_try;;
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858 (eval "$ac_compile") 2>conftest.er1
24860 grep -v '^ *+' conftest.er1 >conftest.err
24862 cat conftest.err >&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } && {
24865 test -z "$ac_c_werror_flag" ||
24866 test ! -s conftest.err
24867 } && test -s conftest.$ac_objext; then
24868 ac_cv_header_term_h=yes
24870 echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24873 ac_cv_header_term_h=no
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24878 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24879 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24880 if test $ac_cv_header_term_h = yes; then
24881 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24882 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24883 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24884 echo $ECHO_N "(cached) $ECHO_C" >&6
24886 ac_check_lib_save_LIBS=$LIBS
24887 LIBS="-lcurses $LIBS"
24888 cat >conftest.$ac_ext <<_ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h. */
24895 /* Override any GCC internal prototype to avoid an error.
24896 Use char because int might match the return type of a GCC
24897 builtin and then its argument prototype would still apply. */
24910 rm -f conftest.$ac_objext conftest$ac_exeext
24911 if { (ac_try="$ac_link"
24912 case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24917 (eval "$ac_link") 2>conftest.er1
24919 grep -v '^ *+' conftest.er1 >conftest.err
24921 cat conftest.err >&5
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); } && {
24924 test -z "$ac_c_werror_flag" ||
24925 test ! -s conftest.err
24926 } && test -s conftest$ac_exeext &&
24927 $as_test_x conftest$ac_exeext; then
24928 ac_cv_lib_curses_tgetent=yes
24930 echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24933 ac_cv_lib_curses_tgetent=no
24936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24937 conftest$ac_exeext conftest.$ac_ext
24938 LIBS=$ac_check_lib_save_LIBS
24940 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24941 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24942 if test $ac_cv_lib_curses_tgetent = yes; then
24943 CONS_LIBS="-lcurses"
24947 support_readline=no
24949 cat >>confdefs.h <<\_ACEOF
24950 #define HAVE_CONIO 1
24958 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24969 # Check whether --enable-readline was given.
24970 if test "${enable_readline+set}" = set; then
24971 enableval=$enable_readline;
24972 if test x$enableval = xno; then
24973 support_readline=no
24982 if test x$support_readline = xyes; then
24984 # Check whether --with-readline was given.
24985 if test "${with_readline+set}" = set; then
24986 withval=$with_readline;
24987 case "$with_readline" in
24992 if test -f ${with_readline}/readline.h; then
24993 CONS_INC="-I${with_readline}"
24994 CONS_LDFLAGS="-L$with_readline"
24995 elif test -f ${with_readline}/include/readline/readline.h; then
24996 CONS_INC="-I${with_readline}/include/readline"
24997 CONS_LDFLAGS="-L${with_readline}/lib"
24998 with_readline="${with_readline}/include/readline"
25000 with_readline="/usr/include/readline"
25003 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25005 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25006 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25008 echo $ECHO_N "(cached) $ECHO_C" >&6
25010 ac_res=`eval echo '${'$as_ac_Header'}'`
25011 { echo "$as_me:$LINENO: result: $ac_res" >&5
25012 echo "${ECHO_T}$ac_res" >&6; }
25014 # Is the header compilable?
25015 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25016 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25017 cat >conftest.$ac_ext <<_ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25023 $ac_includes_default
25024 #include <${with_readline}/readline.h>
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_compile") 2>conftest.er1
25035 grep -v '^ *+' conftest.er1 >conftest.err
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest.$ac_objext; then
25043 ac_header_compiler=yes
25045 echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25048 ac_header_compiler=no
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25053 echo "${ECHO_T}$ac_header_compiler" >&6; }
25055 # Is the header present?
25056 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25057 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25058 cat >conftest.$ac_ext <<_ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h. */
25064 #include <${with_readline}/readline.h>
25066 if { (ac_try="$ac_cpp conftest.$ac_ext"
25067 case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25074 grep -v '^ *+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } >/dev/null && {
25079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25082 ac_header_preproc=yes
25084 echo "$as_me: failed program was:" >&5
25085 sed 's/^/| /' conftest.$ac_ext >&5
25087 ac_header_preproc=no
25090 rm -f conftest.err conftest.$ac_ext
25091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25092 echo "${ECHO_T}$ac_header_preproc" >&6; }
25094 # So? What about this header?
25095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25097 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25098 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25099 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25100 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25101 ac_header_preproc=yes
25104 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25106 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25108 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25109 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25110 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25111 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25112 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25113 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25114 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25115 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25119 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25120 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25124 eval "$as_ac_Header=\$ac_header_preproc"
25126 ac_res=`eval echo '${'$as_ac_Header'}'`
25127 { echo "$as_me:$LINENO: result: $ac_res" >&5
25128 echo "${ECHO_T}$ac_res" >&6; }
25131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25134 cat >>confdefs.h <<\_ACEOF
25135 #define HAVE_READLINE 1
25138 CONS_LIBS="-lreadline -lhistory -ltermcap"
25144 echo "readline.h not found. readline turned off ..."
25156 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25157 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25158 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25159 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25162 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25163 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25165 # Is the header compilable?
25166 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25167 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25168 cat >conftest.$ac_ext <<_ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 $ac_includes_default
25175 #include </usr/include/readline/readline.h>
25177 rm -f conftest.$ac_objext
25178 if { (ac_try="$ac_compile"
25179 case "(($ac_try" in
25180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181 *) ac_try_echo=$ac_try;;
25183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184 (eval "$ac_compile") 2>conftest.er1
25186 grep -v '^ *+' conftest.er1 >conftest.err
25188 cat conftest.err >&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } && {
25191 test -z "$ac_c_werror_flag" ||
25192 test ! -s conftest.err
25193 } && test -s conftest.$ac_objext; then
25194 ac_header_compiler=yes
25196 echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25199 ac_header_compiler=no
25202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25204 echo "${ECHO_T}$ac_header_compiler" >&6; }
25206 # Is the header present?
25207 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25208 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25209 cat >conftest.$ac_ext <<_ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h. */
25215 #include </usr/include/readline/readline.h>
25217 if { (ac_try="$ac_cpp conftest.$ac_ext"
25218 case "(($ac_try" in
25219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220 *) ac_try_echo=$ac_try;;
25222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25225 grep -v '^ *+' conftest.er1 >conftest.err
25227 cat conftest.err >&5
25228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } >/dev/null && {
25230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25231 test ! -s conftest.err
25233 ac_header_preproc=yes
25235 echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25238 ac_header_preproc=no
25241 rm -f conftest.err conftest.$ac_ext
25242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25243 echo "${ECHO_T}$ac_header_preproc" >&6; }
25245 # So? What about this header?
25246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25248 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25249 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25250 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25251 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25252 ac_header_preproc=yes
25255 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25260 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25261 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25262 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25263 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25264 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25265 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25266 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25270 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25271 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25272 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25273 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25277 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25278 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25281 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25284 cat >>confdefs.h <<\_ACEOF
25285 #define HAVE_READLINE 1
25289 CONS_INC="-I/usr/include/readline"
25290 CONS_LIBS="-lreadline -ltermcap"
25294 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25296 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25297 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
25301 ac_res=`eval echo '${'$as_ac_Header'}'`
25302 { echo "$as_me:$LINENO: result: $ac_res" >&5
25303 echo "${ECHO_T}$ac_res" >&6; }
25305 # Is the header compilable?
25306 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25307 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25308 cat >conftest.$ac_ext <<_ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25314 $ac_includes_default
25315 #include <${TOP_DIR}/depkgs/readline/readline.h>
25317 rm -f conftest.$ac_objext
25318 if { (ac_try="$ac_compile"
25319 case "(($ac_try" in
25320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25321 *) ac_try_echo=$ac_try;;
25323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25324 (eval "$ac_compile") 2>conftest.er1
25326 grep -v '^ *+' conftest.er1 >conftest.err
25328 cat conftest.err >&5
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); } && {
25331 test -z "$ac_c_werror_flag" ||
25332 test ! -s conftest.err
25333 } && test -s conftest.$ac_objext; then
25334 ac_header_compiler=yes
25336 echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.$ac_ext >&5
25339 ac_header_compiler=no
25342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25344 echo "${ECHO_T}$ac_header_compiler" >&6; }
25346 # Is the header present?
25347 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25348 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25349 cat >conftest.$ac_ext <<_ACEOF
25352 cat confdefs.h >>conftest.$ac_ext
25353 cat >>conftest.$ac_ext <<_ACEOF
25354 /* end confdefs.h. */
25355 #include <${TOP_DIR}/depkgs/readline/readline.h>
25357 if { (ac_try="$ac_cpp conftest.$ac_ext"
25358 case "(($ac_try" in
25359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25360 *) ac_try_echo=$ac_try;;
25362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25365 grep -v '^ *+' conftest.er1 >conftest.err
25367 cat conftest.err >&5
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); } >/dev/null && {
25370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25371 test ! -s conftest.err
25373 ac_header_preproc=yes
25375 echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25378 ac_header_preproc=no
25381 rm -f conftest.err conftest.$ac_ext
25382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25383 echo "${ECHO_T}$ac_header_preproc" >&6; }
25385 # So? What about this header?
25386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25388 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25389 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25390 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25391 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25392 ac_header_preproc=yes
25395 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25399 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25400 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25401 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25402 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25403 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25404 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25405 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25406 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25410 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25411 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25413 echo $ECHO_N "(cached) $ECHO_C" >&6
25415 eval "$as_ac_Header=\$ac_header_preproc"
25417 ac_res=`eval echo '${'$as_ac_Header'}'`
25418 { echo "$as_me:$LINENO: result: $ac_res" >&5
25419 echo "${ECHO_T}$ac_res" >&6; }
25422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25425 cat >>confdefs.h <<\_ACEOF
25426 #define HAVE_READLINE 1
25430 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25431 CONS_LIBS="-lreadline -lhistory -ltermcap"
25432 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25433 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25438 echo "readline.h not found. readline turned off ..."
25465 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25466 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25467 if test "${ac_cv_header_stat_broken+set}" = set; then
25468 echo $ECHO_N "(cached) $ECHO_C" >&6
25470 cat >conftest.$ac_ext <<_ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25476 #include <sys/types.h>
25477 #include <sys/stat.h>
25479 #if defined S_ISBLK && defined S_IFDIR
25480 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25483 #if defined S_ISBLK && defined S_IFCHR
25484 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25487 #if defined S_ISLNK && defined S_IFREG
25488 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25491 #if defined S_ISSOCK && defined S_IFREG
25492 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25496 rm -f conftest.$ac_objext
25497 if { (ac_try="$ac_compile"
25498 case "(($ac_try" in
25499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25500 *) ac_try_echo=$ac_try;;
25502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25503 (eval "$ac_compile") 2>conftest.er1
25505 grep -v '^ *+' conftest.er1 >conftest.err
25507 cat conftest.err >&5
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); } && {
25510 test -z "$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25512 } && test -s conftest.$ac_objext; then
25513 ac_cv_header_stat_broken=no
25515 echo "$as_me: failed program was:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25518 ac_cv_header_stat_broken=yes
25521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25524 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25525 if test $ac_cv_header_stat_broken = yes; then
25527 cat >>confdefs.h <<\_ACEOF
25528 #define STAT_MACROS_BROKEN 1
25538 ac_header_dirent=no
25539 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25540 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25541 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25542 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25546 cat >conftest.$ac_ext <<_ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 #include <sys/types.h>
25564 rm -f conftest.$ac_objext
25565 if { (ac_try="$ac_compile"
25566 case "(($ac_try" in
25567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25568 *) ac_try_echo=$ac_try;;
25570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25571 (eval "$ac_compile") 2>conftest.er1
25573 grep -v '^ *+' conftest.er1 >conftest.err
25575 cat conftest.err >&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } && {
25578 test -z "$ac_c_werror_flag" ||
25579 test ! -s conftest.err
25580 } && test -s conftest.$ac_objext; then
25581 eval "$as_ac_Header=yes"
25583 echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.$ac_ext >&5
25586 eval "$as_ac_Header=no"
25589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591 ac_res=`eval echo '${'$as_ac_Header'}'`
25592 { echo "$as_me:$LINENO: result: $ac_res" >&5
25593 echo "${ECHO_T}$ac_res" >&6; }
25594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25595 cat >>confdefs.h <<_ACEOF
25596 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25599 ac_header_dirent=$ac_hdr; break
25603 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25604 if test $ac_header_dirent = dirent.h; then
25605 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25606 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25607 if test "${ac_cv_search_opendir+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25610 ac_func_search_save_LIBS=$LIBS
25611 cat >conftest.$ac_ext <<_ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h. */
25618 /* Override any GCC internal prototype to avoid an error.
25619 Use char because int might match the return type of a GCC
25620 builtin and then its argument prototype would still apply. */
25633 for ac_lib in '' dir; do
25634 if test -z "$ac_lib"; then
25635 ac_res="none required"
25638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25640 rm -f conftest.$ac_objext conftest$ac_exeext
25641 if { (ac_try="$ac_link"
25642 case "(($ac_try" in
25643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644 *) ac_try_echo=$ac_try;;
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647 (eval "$ac_link") 2>conftest.er1
25649 grep -v '^ *+' conftest.er1 >conftest.err
25651 cat conftest.err >&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); } && {
25654 test -z "$ac_c_werror_flag" ||
25655 test ! -s conftest.err
25656 } && test -s conftest$ac_exeext &&
25657 $as_test_x conftest$ac_exeext; then
25658 ac_cv_search_opendir=$ac_res
25660 echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25668 if test "${ac_cv_search_opendir+set}" = set; then
25672 if test "${ac_cv_search_opendir+set}" = set; then
25675 ac_cv_search_opendir=no
25677 rm conftest.$ac_ext
25678 LIBS=$ac_func_search_save_LIBS
25680 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25681 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25682 ac_res=$ac_cv_search_opendir
25683 if test "$ac_res" != no; then
25684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25689 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25690 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25691 if test "${ac_cv_search_opendir+set}" = set; then
25692 echo $ECHO_N "(cached) $ECHO_C" >&6
25694 ac_func_search_save_LIBS=$LIBS
25695 cat >conftest.$ac_ext <<_ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h. */
25702 /* Override any GCC internal prototype to avoid an error.
25703 Use char because int might match the return type of a GCC
25704 builtin and then its argument prototype would still apply. */
25717 for ac_lib in '' x; do
25718 if test -z "$ac_lib"; then
25719 ac_res="none required"
25722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25724 rm -f conftest.$ac_objext conftest$ac_exeext
25725 if { (ac_try="$ac_link"
25726 case "(($ac_try" in
25727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731 (eval "$ac_link") 2>conftest.er1
25733 grep -v '^ *+' conftest.er1 >conftest.err
25735 cat conftest.err >&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } && {
25738 test -z "$ac_c_werror_flag" ||
25739 test ! -s conftest.err
25740 } && test -s conftest$ac_exeext &&
25741 $as_test_x conftest$ac_exeext; then
25742 ac_cv_search_opendir=$ac_res
25744 echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25752 if test "${ac_cv_search_opendir+set}" = set; then
25756 if test "${ac_cv_search_opendir+set}" = set; then
25759 ac_cv_search_opendir=no
25761 rm conftest.$ac_ext
25762 LIBS=$ac_func_search_save_LIBS
25764 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25765 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25766 ac_res=$ac_cv_search_opendir
25767 if test "$ac_res" != no; then
25768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25781 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25787 echo $ECHO_N "(cached) $ECHO_C" >&6
25789 cat >conftest.$ac_ext <<_ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25797 #define $ac_func innocuous_$ac_func
25799 /* System header to define __stub macros and hopefully few prototypes,
25800 which can conflict with char $ac_func (); below.
25801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25802 <limits.h> exists even on freestanding compilers. */
25805 # include <limits.h>
25807 # include <assert.h>
25812 /* Override any GCC internal prototype to avoid an error.
25813 Use char because int might match the return type of a GCC
25814 builtin and then its argument prototype would still apply. */
25819 /* The GNU C library defines this for functions which it implements
25820 to always fail with ENOSYS. Some functions are actually named
25821 something starting with __ and the normal name is an alias. */
25822 #if defined __stub_$ac_func || defined __stub___$ac_func
25829 return $ac_func ();
25834 rm -f conftest.$ac_objext conftest$ac_exeext
25835 if { (ac_try="$ac_link"
25836 case "(($ac_try" in
25837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25838 *) ac_try_echo=$ac_try;;
25840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25841 (eval "$ac_link") 2>conftest.er1
25843 grep -v '^ *+' conftest.er1 >conftest.err
25845 cat conftest.err >&5
25846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847 (exit $ac_status); } && {
25848 test -z "$ac_c_werror_flag" ||
25849 test ! -s conftest.err
25850 } && test -s conftest$ac_exeext &&
25851 $as_test_x conftest$ac_exeext; then
25852 eval "$as_ac_var=yes"
25854 echo "$as_me: failed program was:" >&5
25855 sed 's/^/| /' conftest.$ac_ext >&5
25857 eval "$as_ac_var=no"
25860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25861 conftest$ac_exeext conftest.$ac_ext
25863 ac_res=`eval echo '${'$as_ac_var'}'`
25864 { echo "$as_me:$LINENO: result: $ac_res" >&5
25865 echo "${ECHO_T}$ac_res" >&6; }
25866 if test `eval echo '${'$as_ac_var'}'` = yes; then
25867 cat >>confdefs.h <<_ACEOF
25868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25876 for ac_func in nanosleep nl_langinfo
25878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25882 echo $ECHO_N "(cached) $ECHO_C" >&6
25884 cat >conftest.$ac_ext <<_ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h. */
25890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25892 #define $ac_func innocuous_$ac_func
25894 /* System header to define __stub macros and hopefully few prototypes,
25895 which can conflict with char $ac_func (); below.
25896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25897 <limits.h> exists even on freestanding compilers. */
25900 # include <limits.h>
25902 # include <assert.h>
25907 /* Override any GCC internal prototype to avoid an error.
25908 Use char because int might match the return type of a GCC
25909 builtin and then its argument prototype would still apply. */
25914 /* The GNU C library defines this for functions which it implements
25915 to always fail with ENOSYS. Some functions are actually named
25916 something starting with __ and the normal name is an alias. */
25917 #if defined __stub_$ac_func || defined __stub___$ac_func
25924 return $ac_func ();
25929 rm -f conftest.$ac_objext conftest$ac_exeext
25930 if { (ac_try="$ac_link"
25931 case "(($ac_try" in
25932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25933 *) ac_try_echo=$ac_try;;
25935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25936 (eval "$ac_link") 2>conftest.er1
25938 grep -v '^ *+' conftest.er1 >conftest.err
25940 cat conftest.err >&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } && {
25943 test -z "$ac_c_werror_flag" ||
25944 test ! -s conftest.err
25945 } && test -s conftest$ac_exeext &&
25946 $as_test_x conftest$ac_exeext; then
25947 eval "$as_ac_var=yes"
25949 echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25952 eval "$as_ac_var=no"
25955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25956 conftest$ac_exeext conftest.$ac_ext
25958 ac_res=`eval echo '${'$as_ac_var'}'`
25959 { echo "$as_me:$LINENO: result: $ac_res" >&5
25960 echo "${ECHO_T}$ac_res" >&6; }
25961 if test `eval echo '${'$as_ac_var'}'` = yes; then
25962 cat >>confdefs.h <<_ACEOF
25963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25970 for ac_header in varargs.h
25972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25977 echo $ECHO_N "(cached) $ECHO_C" >&6
25979 ac_res=`eval echo '${'$as_ac_Header'}'`
25980 { echo "$as_me:$LINENO: result: $ac_res" >&5
25981 echo "${ECHO_T}$ac_res" >&6; }
25983 # Is the header compilable?
25984 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25986 cat >conftest.$ac_ext <<_ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h. */
25992 $ac_includes_default
25993 #include <$ac_header>
25995 rm -f conftest.$ac_objext
25996 if { (ac_try="$ac_compile"
25997 case "(($ac_try" in
25998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25999 *) ac_try_echo=$ac_try;;
26001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26002 (eval "$ac_compile") 2>conftest.er1
26004 grep -v '^ *+' conftest.er1 >conftest.err
26006 cat conftest.err >&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } && {
26009 test -z "$ac_c_werror_flag" ||
26010 test ! -s conftest.err
26011 } && test -s conftest.$ac_objext; then
26012 ac_header_compiler=yes
26014 echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26017 ac_header_compiler=no
26020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26022 echo "${ECHO_T}$ac_header_compiler" >&6; }
26024 # Is the header present?
26025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26027 cat >conftest.$ac_ext <<_ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h. */
26033 #include <$ac_header>
26035 if { (ac_try="$ac_cpp conftest.$ac_ext"
26036 case "(($ac_try" in
26037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26038 *) ac_try_echo=$ac_try;;
26040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26043 grep -v '^ *+' conftest.er1 >conftest.err
26045 cat conftest.err >&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } >/dev/null && {
26048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26049 test ! -s conftest.err
26051 ac_header_preproc=yes
26053 echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26056 ac_header_preproc=no
26059 rm -f conftest.err conftest.$ac_ext
26060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26061 echo "${ECHO_T}$ac_header_preproc" >&6; }
26063 # So? What about this header?
26064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26070 ac_header_preproc=yes
26073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
26093 eval "$as_ac_Header=\$ac_header_preproc"
26095 ac_res=`eval echo '${'$as_ac_Header'}'`
26096 { echo "$as_me:$LINENO: result: $ac_res" >&5
26097 echo "${ECHO_T}$ac_res" >&6; }
26100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26101 cat >>confdefs.h <<_ACEOF
26102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26111 { echo "$as_me:$LINENO: checking for Python support" >&5
26112 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26114 # Check whether --with-python was given.
26115 if test "${with_python+set}" = set; then
26116 withval=$with_python;
26119 if test "$withval" != "no"; then
26120 if test "$withval" = "yes"; then
26121 for python_root in /usr /usr/local /usr/sfw; do
26122 for ver in python2.2 python2.3 python2.4 python2.5; do
26123 if test -f $python_root/include/${ver}/Python.h; then
26124 PYTHON_INCDIR=-I$python_root/include/${ver}
26125 if test -d $python_root/lib64/${ver}/config; then
26126 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26128 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26135 if test x$PYTHON_INCDIR = x; then
26136 if test -f $prefix/include/Python.h; then
26137 PYTHON_INCDIR=-I$prefix/include
26138 if test -d $prefix/lib64/config; then
26139 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26141 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26144 { echo "$as_me:$LINENO: result: no" >&5
26145 echo "${ECHO_T}no" >&6; }
26146 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26147 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26148 { (exit 1); exit 1; }; }
26152 if test -f $withval/Python.h; then
26153 PYTHON_INCDIR=-I$withval
26154 PYTHON_LIBS="-L$withval/config -lpython"
26155 elif test -f $withval/include/Python.h; then
26156 PYTHON_INCDIR=-I$withval/include
26157 if test -d $withval/lib64/config; then
26158 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26160 PYTHON_LIBS="-L$withval/lib/config -lpython"
26162 elif test -f $withval/include/python/Python.h; then
26163 PYTHON_INCDIR=-I$withval/include/python
26164 if test -d $withval/lib64/python/config; then
26165 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26167 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26170 { echo "$as_me:$LINENO: result: no" >&5
26171 echo "${ECHO_T}no" >&6; }
26172 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26173 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26174 { (exit 1); exit 1; }; }
26178 cat >>confdefs.h <<\_ACEOF
26179 #define HAVE_PYTHON 1
26182 { echo "$as_me:$LINENO: result: yes" >&5
26183 echo "${ECHO_T}yes" >&6; }
26185 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26186 echo "$as_me: checking for more Python libs" >&6;}
26187 saved_LIBS="$LIBS"; LIBS=
26188 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26189 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26190 if test "${ac_cv_search_shm_open+set}" = set; then
26191 echo $ECHO_N "(cached) $ECHO_C" >&6
26193 ac_func_search_save_LIBS=$LIBS
26194 cat >conftest.$ac_ext <<_ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26201 /* Override any GCC internal prototype to avoid an error.
26202 Use char because int might match the return type of a GCC
26203 builtin and then its argument prototype would still apply. */
26211 return shm_open ();
26216 for ac_lib in '' rt; do
26217 if test -z "$ac_lib"; then
26218 ac_res="none required"
26221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26223 rm -f conftest.$ac_objext conftest$ac_exeext
26224 if { (ac_try="$ac_link"
26225 case "(($ac_try" in
26226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227 *) ac_try_echo=$ac_try;;
26229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26230 (eval "$ac_link") 2>conftest.er1
26232 grep -v '^ *+' conftest.er1 >conftest.err
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } && {
26237 test -z "$ac_c_werror_flag" ||
26238 test ! -s conftest.err
26239 } && test -s conftest$ac_exeext &&
26240 $as_test_x conftest$ac_exeext; then
26241 ac_cv_search_shm_open=$ac_res
26243 echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26251 if test "${ac_cv_search_shm_open+set}" = set; then
26255 if test "${ac_cv_search_shm_open+set}" = set; then
26258 ac_cv_search_shm_open=no
26260 rm conftest.$ac_ext
26261 LIBS=$ac_func_search_save_LIBS
26263 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26264 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26265 ac_res=$ac_cv_search_shm_open
26266 if test "$ac_res" != no; then
26267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26272 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26273 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26274 if test "${ac_cv_lib_util_openpty+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26277 ac_check_lib_save_LIBS=$LIBS
26278 LIBS="-lutil $LIBS"
26279 cat >conftest.$ac_ext <<_ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h. */
26286 /* Override any GCC internal prototype to avoid an error.
26287 Use char because int might match the return type of a GCC
26288 builtin and then its argument prototype would still apply. */
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (ac_try="$ac_link"
26303 case "(($ac_try" in
26304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305 *) ac_try_echo=$ac_try;;
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308 (eval "$ac_link") 2>conftest.er1
26310 grep -v '^ *+' conftest.er1 >conftest.err
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } && {
26315 test -z "$ac_c_werror_flag" ||
26316 test ! -s conftest.err
26317 } && test -s conftest$ac_exeext &&
26318 $as_test_x conftest$ac_exeext; then
26319 ac_cv_lib_util_openpty=yes
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26324 ac_cv_lib_util_openpty=no
26327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26328 conftest$ac_exeext conftest.$ac_ext
26329 LIBS=$ac_check_lib_save_LIBS
26331 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26332 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26333 if test $ac_cv_lib_util_openpty = yes; then
26334 cat >>confdefs.h <<_ACEOF
26335 #define HAVE_LIBUTIL 1
26338 LIBS="-lutil $LIBS"
26342 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26345 { echo "$as_me:$LINENO: result: no" >&5
26346 echo "${ECHO_T}no" >&6; }
26351 { echo "$as_me:$LINENO: result: no" >&5
26352 echo "${ECHO_T}no" >&6; }
26360 { echo "$as_me:$LINENO: checking for socket" >&5
26361 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26362 if test "${ac_cv_func_socket+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26365 cat >conftest.$ac_ext <<_ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26373 #define socket innocuous_socket
26375 /* System header to define __stub macros and hopefully few prototypes,
26376 which can conflict with char socket (); below.
26377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26378 <limits.h> exists even on freestanding compilers. */
26381 # include <limits.h>
26383 # include <assert.h>
26388 /* Override any GCC internal prototype to avoid an error.
26389 Use char because int might match the return type of a GCC
26390 builtin and then its argument prototype would still apply. */
26395 /* The GNU C library defines this for functions which it implements
26396 to always fail with ENOSYS. Some functions are actually named
26397 something starting with __ and the normal name is an alias. */
26398 #if defined __stub_socket || defined __stub___socket
26410 rm -f conftest.$ac_objext conftest$ac_exeext
26411 if { (ac_try="$ac_link"
26412 case "(($ac_try" in
26413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26414 *) ac_try_echo=$ac_try;;
26416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26417 (eval "$ac_link") 2>conftest.er1
26419 grep -v '^ *+' conftest.er1 >conftest.err
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } && {
26424 test -z "$ac_c_werror_flag" ||
26425 test ! -s conftest.err
26426 } && test -s conftest$ac_exeext &&
26427 $as_test_x conftest$ac_exeext; then
26428 ac_cv_func_socket=yes
26430 echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26433 ac_cv_func_socket=no
26436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26437 conftest$ac_exeext conftest.$ac_ext
26439 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26440 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26441 if test $ac_cv_func_socket = yes; then
26442 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26443 echo "${ECHO_T}using libc's socket" >&6; }
26446 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26447 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26448 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26449 echo $ECHO_N "(cached) $ECHO_C" >&6
26451 ac_check_lib_save_LIBS=$LIBS
26452 LIBS="-lxnet $LIBS"
26453 cat >conftest.$ac_ext <<_ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26460 /* Override any GCC internal prototype to avoid an error.
26461 Use char because int might match the return type of a GCC
26462 builtin and then its argument prototype would still apply. */
26475 rm -f conftest.$ac_objext conftest$ac_exeext
26476 if { (ac_try="$ac_link"
26477 case "(($ac_try" in
26478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26479 *) ac_try_echo=$ac_try;;
26481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26482 (eval "$ac_link") 2>conftest.er1
26484 grep -v '^ *+' conftest.er1 >conftest.err
26486 cat conftest.err >&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); } && {
26489 test -z "$ac_c_werror_flag" ||
26490 test ! -s conftest.err
26491 } && test -s conftest$ac_exeext &&
26492 $as_test_x conftest$ac_exeext; then
26493 ac_cv_lib_xnet_socket=yes
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26498 ac_cv_lib_xnet_socket=no
26501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26502 conftest$ac_exeext conftest.$ac_ext
26503 LIBS=$ac_check_lib_save_LIBS
26505 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26506 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26507 if test $ac_cv_lib_xnet_socket = yes; then
26508 cat >>confdefs.h <<_ACEOF
26509 #define HAVE_LIBXNET 1
26512 LIBS="-lxnet $LIBS"
26517 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26518 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26519 if test "${ac_cv_lib_socket_socket+set}" = set; then
26520 echo $ECHO_N "(cached) $ECHO_C" >&6
26522 ac_check_lib_save_LIBS=$LIBS
26523 LIBS="-lsocket $LIBS"
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26531 /* Override any GCC internal prototype to avoid an error.
26532 Use char because int might match the return type of a GCC
26533 builtin and then its argument prototype would still apply. */
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_link") 2>conftest.er1
26555 grep -v '^ *+' conftest.er1 >conftest.err
26557 cat conftest.err >&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } && {
26560 test -z "$ac_c_werror_flag" ||
26561 test ! -s conftest.err
26562 } && test -s conftest$ac_exeext &&
26563 $as_test_x conftest$ac_exeext; then
26564 ac_cv_lib_socket_socket=yes
26566 echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26569 ac_cv_lib_socket_socket=no
26572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573 conftest$ac_exeext conftest.$ac_ext
26574 LIBS=$ac_check_lib_save_LIBS
26576 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26577 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26578 if test $ac_cv_lib_socket_socket = yes; then
26579 cat >>confdefs.h <<_ACEOF
26580 #define HAVE_LIBSOCKET 1
26583 LIBS="-lsocket $LIBS"
26588 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26589 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26590 if test "${ac_cv_lib_inet_socket+set}" = set; then
26591 echo $ECHO_N "(cached) $ECHO_C" >&6
26593 ac_check_lib_save_LIBS=$LIBS
26594 LIBS="-linet $LIBS"
26595 cat >conftest.$ac_ext <<_ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h. */
26602 /* Override any GCC internal prototype to avoid an error.
26603 Use char because int might match the return type of a GCC
26604 builtin and then its argument prototype would still apply. */
26617 rm -f conftest.$ac_objext conftest$ac_exeext
26618 if { (ac_try="$ac_link"
26619 case "(($ac_try" in
26620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26621 *) ac_try_echo=$ac_try;;
26623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26624 (eval "$ac_link") 2>conftest.er1
26626 grep -v '^ *+' conftest.er1 >conftest.err
26628 cat conftest.err >&5
26629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630 (exit $ac_status); } && {
26631 test -z "$ac_c_werror_flag" ||
26632 test ! -s conftest.err
26633 } && test -s conftest$ac_exeext &&
26634 $as_test_x conftest$ac_exeext; then
26635 ac_cv_lib_inet_socket=yes
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26640 ac_cv_lib_inet_socket=no
26643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26644 conftest$ac_exeext conftest.$ac_ext
26645 LIBS=$ac_check_lib_save_LIBS
26647 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26648 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26649 if test $ac_cv_lib_inet_socket = yes; then
26650 cat >>confdefs.h <<_ACEOF
26651 #define HAVE_LIBINET 1
26654 LIBS="-linet $LIBS"
26664 # Check whether --with-tcp-wrappers was given.
26665 if test "${with_tcp_wrappers+set}" = set; then
26666 withval=$with_tcp_wrappers;
26667 if test "x$withval" != "xno" ; then
26669 LIBS="$saved_LIBS -lwrap"
26670 { echo "$as_me:$LINENO: checking for libwrap" >&5
26671 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26672 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26673 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26674 if test "${ac_cv_search_nanosleep+set}" = set; then
26675 echo $ECHO_N "(cached) $ECHO_C" >&6
26677 ac_func_search_save_LIBS=$LIBS
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26685 /* Override any GCC internal prototype to avoid an error.
26686 Use char because int might match the return type of a GCC
26687 builtin and then its argument prototype would still apply. */
26695 return nanosleep ();
26700 for ac_lib in '' rt; do
26701 if test -z "$ac_lib"; then
26702 ac_res="none required"
26705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26707 rm -f conftest.$ac_objext conftest$ac_exeext
26708 if { (ac_try="$ac_link"
26709 case "(($ac_try" in
26710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26711 *) ac_try_echo=$ac_try;;
26713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26714 (eval "$ac_link") 2>conftest.er1
26716 grep -v '^ *+' conftest.er1 >conftest.err
26718 cat conftest.err >&5
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); } && {
26721 test -z "$ac_c_werror_flag" ||
26722 test ! -s conftest.err
26723 } && test -s conftest$ac_exeext &&
26724 $as_test_x conftest$ac_exeext; then
26725 ac_cv_search_nanosleep=$ac_res
26727 echo "$as_me: failed program was:" >&5
26728 sed 's/^/| /' conftest.$ac_ext >&5
26733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26735 if test "${ac_cv_search_nanosleep+set}" = set; then
26739 if test "${ac_cv_search_nanosleep+set}" = set; then
26742 ac_cv_search_nanosleep=no
26744 rm conftest.$ac_ext
26745 LIBS=$ac_func_search_save_LIBS
26747 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26748 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26749 ac_res=$ac_cv_search_nanosleep
26750 if test "$ac_res" != no; then
26751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26755 cat >conftest.$ac_ext <<_ACEOF
26758 cat confdefs.h >>conftest.$ac_ext
26759 cat >>conftest.$ac_ext <<_ACEOF
26760 /* end confdefs.h. */
26762 #include <sys/types.h>
26764 int deny_severity = 0;
26765 int allow_severity = 0;
26766 struct request_info *req;
26778 rm -f conftest.$ac_objext conftest$ac_exeext
26779 if { (ac_try="$ac_link"
26780 case "(($ac_try" in
26781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782 *) ac_try_echo=$ac_try;;
26784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26785 (eval "$ac_link") 2>conftest.er1
26787 grep -v '^ *+' conftest.er1 >conftest.err
26789 cat conftest.err >&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } && {
26792 test -z "$ac_c_werror_flag" ||
26793 test ! -s conftest.err
26794 } && test -s conftest$ac_exeext &&
26795 $as_test_x conftest$ac_exeext; then
26797 { echo "$as_me:$LINENO: result: yes" >&5
26798 echo "${ECHO_T}yes" >&6; }
26800 cat >>confdefs.h <<\_ACEOF
26801 #define HAVE_LIBWRAP 1
26809 echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26813 LIBS="$saved_LIBS -lwrap -lnsl"
26814 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26815 cat >conftest.$ac_ext <<_ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h. */
26822 #include <sys/types.h>
26824 int deny_severity = 0;
26825 int allow_severity = 0;
26826 struct request_info *req;
26838 rm -f conftest.$ac_objext conftest$ac_exeext
26839 if { (ac_try="$ac_link"
26840 case "(($ac_try" in
26841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842 *) ac_try_echo=$ac_try;;
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845 (eval "$ac_link") 2>conftest.er1
26847 grep -v '^ *+' conftest.er1 >conftest.err
26849 cat conftest.err >&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); } && {
26852 test -z "$ac_c_werror_flag" ||
26853 test ! -s conftest.err
26854 } && test -s conftest$ac_exeext &&
26855 $as_test_x conftest$ac_exeext; then
26857 { echo "$as_me:$LINENO: result: yes" >&5
26858 echo "${ECHO_T}yes" >&6; }
26860 cat >>confdefs.h <<\_ACEOF
26861 #define HAVE_LIBWRAP 1
26869 echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26873 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26874 echo "$as_me: error: *** libwrap missing" >&2;}
26875 { (exit 1); exit 1; }; }
26880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26881 conftest$ac_exeext conftest.$ac_ext
26886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26887 conftest$ac_exeext conftest.$ac_ext
26894 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26895 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26897 # Check whether --with-openssl was given.
26898 if test "${with_openssl+set}" = set; then
26899 withval=$with_openssl;
26900 with_openssl_directory=${withval}
26906 if test "x$with_openssl_directory" != "xno"; then
26907 OPENSSL_LIBS="-lssl -lcrypto"
26910 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26912 # Make sure the $with_openssl_directory also makes sense
26914 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26915 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26916 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26920 saved_LIBS="${LIBS}"
26921 saved_CFLAGS="${CFLAGS}"
26922 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26923 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26925 cat >conftest.$ac_ext <<_ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h. */
26932 #include <openssl/ssl.h>
26938 CRYPTO_set_id_callback(NULL);
26944 rm -f conftest.$ac_objext conftest$ac_exeext
26945 if { (ac_try="$ac_link"
26946 case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951 (eval "$ac_link") 2>conftest.er1
26953 grep -v '^ *+' conftest.er1 >conftest.err
26955 cat conftest.err >&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } && {
26958 test -z "$ac_c_werror_flag" ||
26959 test ! -s conftest.err
26960 } && test -s conftest$ac_exeext &&
26961 $as_test_x conftest$ac_exeext; then
26964 support_crypto="yes"
26967 echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26977 conftest$ac_exeext conftest.$ac_ext
26979 cat >conftest.$ac_ext <<_ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h. */
26986 #include <openssl/evp.h>
26998 rm -f conftest.$ac_objext conftest$ac_exeext
26999 if { (ac_try="$ac_link"
27000 case "(($ac_try" in
27001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002 *) ac_try_echo=$ac_try;;
27004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27005 (eval "$ac_link") 2>conftest.er1
27007 grep -v '^ *+' conftest.er1 >conftest.err
27009 cat conftest.err >&5
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); } && {
27012 test -z "$ac_c_werror_flag" ||
27013 test ! -s conftest.err
27014 } && test -s conftest$ac_exeext &&
27015 $as_test_x conftest$ac_exeext; then
27017 ac_cv_openssl_sha2="yes"
27020 echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27024 ac_cv_openssl_sha2="no"
27029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27030 conftest$ac_exeext conftest.$ac_ext
27032 cat >conftest.$ac_ext <<_ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27039 #include <openssl/evp.h>
27051 rm -f conftest.$ac_objext conftest$ac_exeext
27052 if { (ac_try="$ac_link"
27053 case "(($ac_try" in
27054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055 *) ac_try_echo=$ac_try;;
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058 (eval "$ac_link") 2>conftest.er1
27060 grep -v '^ *+' conftest.er1 >conftest.err
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } && {
27065 test -z "$ac_c_werror_flag" ||
27066 test ! -s conftest.err
27067 } && test -s conftest$ac_exeext &&
27068 $as_test_x conftest$ac_exeext; then
27070 ac_cv_openssl_export="no"
27073 echo "$as_me: failed program was:" >&5
27074 sed 's/^/| /' conftest.$ac_ext >&5
27077 ac_cv_openssl_export="yes"
27082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27083 conftest$ac_exeext conftest.$ac_ext
27085 LIBS="${saved_LIBS}"
27086 CFLAGS="${saved_CFLAGS}"
27088 if test "$support_tls" = "yes"; then
27090 cat >>confdefs.h <<\_ACEOF
27091 #define HAVE_OPENSSL 1
27095 cat >>confdefs.h <<\_ACEOF
27100 cat >>confdefs.h <<\_ACEOF
27101 #define HAVE_CRYPTO 1
27106 if test "$ac_cv_openssl_sha2" = "yes"; then
27108 cat >>confdefs.h <<\_ACEOF
27109 #define HAVE_SHA2 1
27114 if test "$ac_cv_openssl_export" = "yes"; then
27116 cat >>confdefs.h <<\_ACEOF
27117 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27123 support_crypto="no"
27128 { echo "$as_me:$LINENO: result: $support_tls" >&5
27129 echo "${ECHO_T}$support_tls" >&6; }
27133 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27134 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27135 if test "${ac_cv_search_dlopen+set}" = set; then
27136 echo $ECHO_N "(cached) $ECHO_C" >&6
27138 ac_func_search_save_LIBS=$LIBS
27139 cat >conftest.$ac_ext <<_ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27146 /* Override any GCC internal prototype to avoid an error.
27147 Use char because int might match the return type of a GCC
27148 builtin and then its argument prototype would still apply. */
27161 for ac_lib in '' dl; do
27162 if test -z "$ac_lib"; then
27163 ac_res="none required"
27166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27168 rm -f conftest.$ac_objext conftest$ac_exeext
27169 if { (ac_try="$ac_link"
27170 case "(($ac_try" in
27171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27172 *) ac_try_echo=$ac_try;;
27174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27175 (eval "$ac_link") 2>conftest.er1
27177 grep -v '^ *+' conftest.er1 >conftest.err
27179 cat conftest.err >&5
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); } && {
27182 test -z "$ac_c_werror_flag" ||
27183 test ! -s conftest.err
27184 } && test -s conftest$ac_exeext &&
27185 $as_test_x conftest$ac_exeext; then
27186 ac_cv_search_dlopen=$ac_res
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27196 if test "${ac_cv_search_dlopen+set}" = set; then
27200 if test "${ac_cv_search_dlopen+set}" = set; then
27203 ac_cv_search_dlopen=no
27205 rm conftest.$ac_ext
27206 LIBS=$ac_func_search_save_LIBS
27208 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27209 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27210 ac_res=$ac_cv_search_dlopen
27211 if test "$ac_res" != no; then
27212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27217 working_dir=`eval echo ${prefix}/var/bacula/working`
27219 # Check whether --with-working-dir was given.
27220 if test "${with_working_dir+set}" = set; then
27221 withval=$with_working_dir;
27222 if test "x$withval" != "xno" ; then
27223 working_dir=$withval
27234 # Check whether --with-archivedir was given.
27235 if test "${with_archivedir+set}" = set; then
27236 withval=$with_archivedir;
27237 if test "x$withval" != "xno" ; then
27238 archivedir=$withval
27247 scriptdir=`eval echo ${sysconfdir}`
27249 # Check whether --with-scriptdir was given.
27250 if test "${with_scriptdir+set}" = set; then
27251 withval=$with_scriptdir;
27252 if test "x$withval" != "xno" ; then
27262 # ------------------------------------------
27263 # Where to place plugindir (plugin files)
27264 # ------------------------------------------
27265 plugindir=`eval echo ${sysconfdir}`
27267 # Check whether --with-plugindir was given.
27268 if test "${with_plugindir+set}" = set; then
27269 withval=$with_plugindir;
27270 if test "x$withval" != "xno" ; then
27280 dump_email=root@localhost
27282 # Check whether --with-dump-email was given.
27283 if test "${with_dump_email+set}" = set; then
27284 withval=$with_dump_email;
27285 if test "x$withval" != "xno" ; then
27286 dump_email=$withval
27295 job_email=root@localhost
27297 # Check whether --with-job-email was given.
27298 if test "${with_job_email+set}" = set; then
27299 withval=$with_job_email;
27300 if test "x$withval" != "xno" ; then
27310 smtp_host=localhost
27312 # Check whether --with-smtp_host was given.
27313 if test "${with_smtp_host+set}" = set; then
27314 withval=$with_smtp_host;
27315 if test "x$withval" != "xno" ; then
27327 # Check whether --with-pid-dir was given.
27328 if test "${with_pid_dir+set}" = set; then
27329 withval=$with_pid_dir;
27330 if test "x$withval" != "xno" ; then
27338 cat >>confdefs.h <<_ACEOF
27339 #define _PATH_BACULA_PIDDIR "$piddir"
27344 subsysdir=/var/run/subsys
27345 if test -d /var/run/subsys; then
27346 subsysdir=/var/run/subsys
27347 elif test -d /var/lock/subsys; then
27348 subsysdir=/var/lock/subsys
27350 subsysdir=/var/run/subsys
27353 # Check whether --with-subsys-dir was given.
27354 if test "${with_subsys_dir+set}" = set; then
27355 withval=$with_subsys_dir;
27356 if test "x$withval" != "xno" ; then
27368 # Check whether --with-baseport was given.
27369 if test "${with_baseport+set}" = set; then
27370 withval=$with_baseport;
27371 if test "x$withval" != "xno" ; then
27380 dir_port=`expr $baseport`
27381 fd_port=`expr $baseport + 1`
27382 sd_port=`expr $fd_port + 1`
27390 # Check whether --with-dir-password was given.
27391 if test "${with_dir_password+set}" = set; then
27392 withval=$with_dir_password;
27393 if test "x$withval" != "xno" ; then
27394 dir_password=$withval
27401 if test "x$dir_password" = "x" ; then
27402 if test "x$OPENSSL" = "xnone" ; then
27403 key=`autoconf/randpass 33`
27405 key=`openssl rand -base64 33`
27412 # Check whether --with-fd-password was given.
27413 if test "${with_fd_password+set}" = set; then
27414 withval=$with_fd_password;
27415 if test "x$withval" != "xno" ; then
27416 fd_password=$withval
27423 if test "x$fd_password" = "x" ; then
27424 if test "x$OPENSSL" = "xnone" ; then
27425 key=`autoconf/randpass 37`
27427 key=`openssl rand -base64 33`
27434 # Check whether --with-sd-password was given.
27435 if test "${with_sd_password+set}" = set; then
27436 withval=$with_sd_password;
27437 if test "x$withval" != "xno" ; then
27438 sd_password=$withval
27445 if test "x$sd_password" = "x" ; then
27446 if test "x$OPENSSL" = "xnone" ; then
27447 key=`autoconf/randpass 41`
27449 key=`openssl rand -base64 33`
27456 # Check whether --with-mon-dir-password was given.
27457 if test "${with_mon_dir_password+set}" = set; then
27458 withval=$with_mon_dir_password;
27459 if test "x$withval" != "xno" ; then
27460 mon_dir_password=$withval
27467 if test "x$mon_dir_password" = "x" ; then
27468 if test "x$OPENSSL" = "xnone" ; then
27469 key=`autoconf/randpass 33`
27471 key=`openssl rand -base64 33`
27473 mon_dir_password=$key
27478 # Check whether --with-mon-fd-password was given.
27479 if test "${with_mon_fd_password+set}" = set; then
27480 withval=$with_mon_fd_password;
27481 if test "x$withval" != "xno" ; then
27482 mon_fd_password=$withval
27489 if test "x$mon_fd_password" = "x" ; then
27490 if test "x$OPENSSL" = "xnone" ; then
27491 key=`autoconf/randpass 37`
27493 key=`openssl rand -base64 33`
27495 mon_fd_password=$key
27500 # Check whether --with-mon-sd-password was given.
27501 if test "${with_mon_sd_password+set}" = set; then
27502 withval=$with_mon_sd_password;
27503 if test "x$withval" != "xno" ; then
27504 mon_sd_password=$withval
27511 if test "x$mon_sd_password" = "x" ; then
27512 if test "x$OPENSSL" = "xnone" ; then
27513 key=`autoconf/randpass 41`
27515 key=`openssl rand -base64 33`
27517 mon_sd_password=$key
27529 # Check whether --with-db_name was given.
27530 if test "${with_db_name+set}" = set; then
27531 withval=$with_db_name;
27532 if test "x$withval" != "x" ; then
27543 # Check whether --with-db_user was given.
27544 if test "${with_db_user+set}" = set; then
27545 withval=$with_db_user;
27546 if test "x$withval" != "x" ; then
27557 # Check whether --with-db_password was given.
27558 if test "${with_db_password+set}" = set; then
27559 withval=$with_db_password;
27560 if test "x$withval" != "x" ; then
27561 db_password=$withval
27571 # Check whether --with-db_port was given.
27572 if test "${with_db_port+set}" = set; then
27573 withval=$with_db_port;
27574 if test "x$withval" != "x" ; then
27584 # Handle users and groups for each daemon
27588 # Check whether --with-dir_user was given.
27589 if test "${with_dir_user+set}" = set; then
27590 withval=$with_dir_user;
27591 if test "x$withval" != "x" ; then
27601 # Check whether --with-dir_group was given.
27602 if test "${with_dir_group+set}" = set; then
27603 withval=$with_dir_group;
27604 if test "x$withval" != "x" ; then
27614 # Check whether --with-sd_user was given.
27615 if test "${with_sd_user+set}" = set; then
27616 withval=$with_sd_user;
27617 if test "x$withval" != "x" ; then
27627 # Check whether --with-sd_group was given.
27628 if test "${with_sd_group+set}" = set; then
27629 withval=$with_sd_group;
27630 if test "x$withval" != "x" ; then
27640 # Check whether --with-fd_user was given.
27641 if test "${with_fd_user+set}" = set; then
27642 withval=$with_fd_user;
27643 if test "x$withval" != "x" ; then
27653 # Check whether --with-fd_group was given.
27654 if test "${with_fd_group+set}" = set; then
27655 withval=$with_fd_group;
27656 if test "x$withval" != "x" ; then
27673 # Check whether --with-sbin-perm was given.
27674 if test "${with_sbin_perm+set}" = set; then
27675 withval=$with_sbin_perm;
27676 if test "x$withval" != "x" ; then
27689 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27690 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27692 # Check whether --with-postgresql was given.
27693 if test "${with_postgresql+set}" = set; then
27694 withval=$with_postgresql;
27695 if test "$withval" != "no"; then
27696 if test "$db_found" = "yes"; then
27697 { echo "$as_me:$LINENO: result: error" >&5
27698 echo "${ECHO_T}error" >&6; }
27699 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27700 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27701 { (exit 1); exit 1; }; };
27703 if test "$withval" = "yes"; then
27704 PG_CONFIG=`which pg_config`
27705 if test -n "$PG_CONFIG";then
27706 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27707 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27708 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27709 elif test -f /usr/local/include/libpq-fe.h; then
27710 POSTGRESQL_INCDIR=/usr/local/include
27711 if test -d /usr/local/lib64; then
27712 POSTGRESQL_LIBDIR=/usr/local/lib64
27714 POSTGRESQL_LIBDIR=/usr/local/lib
27716 POSTGRESQL_BINDIR=/usr/local/bin
27717 elif test -f /usr/include/libpq-fe.h; then
27718 POSTGRESQL_INCDIR=/usr/include
27719 if test -d /usr/lib64; then
27720 POSTGRESQL_LIBDIR=/usr/lib64
27722 POSTGRESQL_LIBDIR=/usr/lib
27724 POSTGRESQL_BINDIR=/usr/bin
27725 elif test -f /usr/include/pgsql/libpq-fe.h; then
27726 POSTGRESQL_INCDIR=/usr/include/pgsql
27727 if test -d /usr/lib64/pgsql; then
27728 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27730 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27732 POSTGRESQL_BINDIR=/usr/bin
27733 elif test -f /usr/include/postgresql/libpq-fe.h; then
27734 POSTGRESQL_INCDIR=/usr/include/postgresql
27735 if test -d /usr/lib64/postgresql; then
27736 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27738 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27740 POSTGRESQL_BINDIR=/usr/bin
27742 { echo "$as_me:$LINENO: result: no" >&5
27743 echo "${ECHO_T}no" >&6; }
27744 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27745 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27746 { (exit 1); exit 1; }; }
27748 elif test -f $withval/include/libpq-fe.h; then
27749 POSTGRESQL_INCDIR=$withval/include
27750 POSTGRESQL_LIBDIR=$withval/lib
27751 POSTGRESQL_BINDIR=$withval/bin
27752 elif test -f $withval/include/postgresql/libpq-fe.h; then
27753 POSTGRESQL_INCDIR=$withval/include/postgresql
27754 if test -d $withval/lib64; then
27755 POSTGRESQL_LIBDIR=$withval/lib64
27757 POSTGRESQL_LIBDIR=$withval/lib
27759 POSTGRESQL_BINDIR=$withval/bin
27761 { echo "$as_me:$LINENO: result: no" >&5
27762 echo "${ECHO_T}no" >&6; }
27763 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27764 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27765 { (exit 1); exit 1; }; }
27767 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27768 { echo "$as_me:$LINENO: checking for crypt" >&5
27769 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27770 if test "${ac_cv_func_crypt+set}" = set; then
27771 echo $ECHO_N "(cached) $ECHO_C" >&6
27773 cat >conftest.$ac_ext <<_ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h. */
27779 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27781 #define crypt innocuous_crypt
27783 /* System header to define __stub macros and hopefully few prototypes,
27784 which can conflict with char crypt (); below.
27785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27786 <limits.h> exists even on freestanding compilers. */
27789 # include <limits.h>
27791 # include <assert.h>
27796 /* Override any GCC internal prototype to avoid an error.
27797 Use char because int might match the return type of a GCC
27798 builtin and then its argument prototype would still apply. */
27803 /* The GNU C library defines this for functions which it implements
27804 to always fail with ENOSYS. Some functions are actually named
27805 something starting with __ and the normal name is an alias. */
27806 #if defined __stub_crypt || defined __stub___crypt
27818 rm -f conftest.$ac_objext conftest$ac_exeext
27819 if { (ac_try="$ac_link"
27820 case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825 (eval "$ac_link") 2>conftest.er1
27827 grep -v '^ *+' conftest.er1 >conftest.err
27829 cat conftest.err >&5
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); } && {
27832 test -z "$ac_c_werror_flag" ||
27833 test ! -s conftest.err
27834 } && test -s conftest$ac_exeext &&
27835 $as_test_x conftest$ac_exeext; then
27836 ac_cv_func_crypt=yes
27838 echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27841 ac_cv_func_crypt=no
27844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27845 conftest$ac_exeext conftest.$ac_ext
27847 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27848 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27849 if test $ac_cv_func_crypt = yes; then
27852 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27853 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27854 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27855 echo $ECHO_N "(cached) $ECHO_C" >&6
27857 ac_check_lib_save_LIBS=$LIBS
27858 LIBS="-lcrypt $LIBS"
27859 cat >conftest.$ac_ext <<_ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h. */
27866 /* Override any GCC internal prototype to avoid an error.
27867 Use char because int might match the return type of a GCC
27868 builtin and then its argument prototype would still apply. */
27881 rm -f conftest.$ac_objext conftest$ac_exeext
27882 if { (ac_try="$ac_link"
27883 case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_link") 2>conftest.er1
27890 grep -v '^ *+' conftest.er1 >conftest.err
27892 cat conftest.err >&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); } && {
27895 test -z "$ac_c_werror_flag" ||
27896 test ! -s conftest.err
27897 } && test -s conftest$ac_exeext &&
27898 $as_test_x conftest$ac_exeext; then
27899 ac_cv_lib_crypt_crypt=yes
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27904 ac_cv_lib_crypt_crypt=no
27907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27908 conftest$ac_exeext conftest.$ac_ext
27909 LIBS=$ac_check_lib_save_LIBS
27911 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27912 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27913 if test $ac_cv_lib_crypt_crypt = yes; then
27914 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27919 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27920 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27921 SQL_BINDIR=$POSTGRESQL_BINDIR
27922 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27924 cat >>confdefs.h <<\_ACEOF
27925 #define HAVE_POSTGRESQL 1
27928 { echo "$as_me:$LINENO: result: yes" >&5
27929 echo "${ECHO_T}yes" >&6; }
27931 support_postgresql=yes
27935 { echo "$as_me:$LINENO: result: no" >&5
27936 echo "${ECHO_T}no" >&6; }
27941 { echo "$as_me:$LINENO: result: no" >&5
27942 echo "${ECHO_T}no" >&6; }
27954 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27955 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27957 # Check whether --with-mysql was given.
27958 if test "${with_mysql+set}" = set; then
27959 withval=$with_mysql;
27960 if test "$withval" != "no"; then
27961 if test "$withval" = "yes"; then
27962 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27963 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27964 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27965 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27966 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27968 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27970 MYSQL_BINDIR=/usr/local/mysql/bin
27971 elif test -f /usr/include/mysql/mysql.h; then
27972 MYSQL_INCDIR=/usr/include/mysql
27973 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27974 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27975 MYSQL_LIBDIR=/usr/lib64/mysql
27976 elif test -f /usr/lib64/libmysqlclient_r.a \
27977 -o -f /usr/lib64/libmysqlclient_r.so; then
27978 MYSQL_LIBDIR=/usr/lib64
27979 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27980 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27981 MYSQL_LIBDIR=/usr/lib/mysql
27983 MYSQL_LIBDIR=/usr/lib
27985 MYSQL_BINDIR=/usr/bin
27986 elif test -f /usr/include/mysql.h; then
27987 MYSQL_INCDIR=/usr/include
27988 if test -f /usr/lib64/libmysqlclient_r.a \
27989 -o -f /usr/lib64/libmysqlclient_r.so; then
27990 MYSQL_LIBDIR=/usr/lib64
27992 MYSQL_LIBDIR=/usr/lib
27994 MYSQL_BINDIR=/usr/bin
27995 elif test -f /usr/local/include/mysql/mysql.h; then
27996 MYSQL_INCDIR=/usr/local/include/mysql
27997 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27998 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27999 MYSQL_LIBDIR=/usr/local/lib64/mysql
28001 MYSQL_LIBDIR=/usr/local/lib/mysql
28003 MYSQL_BINDIR=/usr/local/bin
28004 elif test -f /usr/local/include/mysql.h; then
28005 MYSQL_INCDIR=/usr/local/include
28006 if test -f /usr/local/lib64/libmysqlclient_r.a \
28007 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28008 MYSQL_LIBDIR=/usr/local/lib64
28010 MYSQL_LIBDIR=/usr/local/lib
28012 MYSQL_BINDIR=/usr/local/bin
28014 { echo "$as_me:$LINENO: result: no" >&5
28015 echo "${ECHO_T}no" >&6; }
28016 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28017 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28018 { (exit 1); exit 1; }; }
28021 if test -f $withval/include/mysql/mysql.h; then
28022 MYSQL_INCDIR=$withval/include/mysql
28023 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28024 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28025 MYSQL_LIBDIR=$withval/lib64/mysql
28026 elif test -f $withval/lib64/libmysqlclient_r.a \
28027 -o -f $withval/lib64/libmysqlclient_r.so; then
28028 MYSQL_LIBDIR=$withval/lib64
28029 elif test -f $withval/lib/libmysqlclient_r.a \
28030 -o -f $withval/lib/libmysqlclient_r.so; then
28031 MYSQL_LIBDIR=$withval/lib
28033 MYSQL_LIBDIR=$withval/lib/mysql
28035 MYSQL_BINDIR=$withval/bin
28036 elif test -f $withval/include/mysql.h; then
28037 MYSQL_INCDIR=$withval/include
28038 if test -f $withval/lib64/libmysqlclient_r.a \
28039 -o -f $withval/lib64/libmysqlclient_r.so; then
28040 MYSQL_LIBDIR=$withval/lib64
28042 MYSQL_LIBDIR=$withval/lib
28044 MYSQL_BINDIR=$withval/bin
28046 { echo "$as_me:$LINENO: result: no" >&5
28047 echo "${ECHO_T}no" >&6; }
28048 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28049 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28050 { (exit 1); exit 1; }; }
28053 SQL_INCLUDE=-I$MYSQL_INCDIR
28054 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28055 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28056 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28057 cat >>confdefs.h <<\_ACEOF
28058 #define HAVE_THREAD_SAFE_MYSQL 1
28062 SQL_BINDIR=$MYSQL_BINDIR
28063 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28065 cat >>confdefs.h <<\_ACEOF
28066 #define HAVE_MYSQL 1
28069 { echo "$as_me:$LINENO: result: yes" >&5
28070 echo "${ECHO_T}yes" >&6; }
28077 { echo "$as_me:$LINENO: result: no" >&5
28078 echo "${ECHO_T}no" >&6; }
28086 # Check whether --with-embedded-mysql was given.
28087 if test "${with_embedded_mysql+set}" = set; then
28088 withval=$with_embedded_mysql;
28089 if test "$withval" != "no"; then
28090 if test "$withval" = "yes"; then
28091 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28092 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28093 if test -d /usr/local/mysql/lib64/mysql; then
28094 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28096 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28098 MYSQL_BINDIR=/usr/local/mysql/bin
28099 elif test -f /usr/include/mysql/mysql.h; then
28100 MYSQL_INCDIR=/usr/include/mysql
28101 if test -d /usr/lib64/mysql; then
28102 MYSQL_LIBDIR=/usr/lib64/mysql
28104 MYSQL_LIBDIR=/usr/lib/mysql
28106 MYSQL_BINDIR=/usr/bin
28107 elif test -f /usr/include/mysql.h; then
28108 MYSQL_INCDIR=/usr/include
28109 if test -d /usr/lib64; then
28110 MYSQL_LIBDIR=/usr/lib64
28112 MYSQL_LIBDIR=/usr/lib
28114 MYSQL_BINDIR=/usr/bin
28115 elif test -f /usr/local/include/mysql/mysql.h; then
28116 MYSQL_INCDIR=/usr/local/include/mysql
28117 if test -d /usr/local/lib64/mysql; then
28118 MYSQL_LIBDIR=/usr/local/lib64/mysql
28120 MYSQL_LIBDIR=/usr/local/lib/mysql
28122 MYSQL_BINDIR=/usr/local/bin
28123 elif test -f /usr/local/include/mysql.h; then
28124 MYSQL_INCDIR=/usr/local/include
28125 if test -d /usr/local/lib64; then
28126 MYSQL_LIBDIR=/usr/local/lib64
28128 MYSQL_LIBDIR=/usr/local/lib
28130 MYSQL_BINDIR=/usr/local/bin
28132 { echo "$as_me:$LINENO: result: no" >&5
28133 echo "${ECHO_T}no" >&6; }
28134 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28135 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28136 { (exit 1); exit 1; }; }
28139 if test -f $withval/include/mysql/mysql.h; then
28140 MYSQL_INCDIR=$withval/include/mysql
28141 if test -d $withval/lib64/mysql; then
28142 MYSQL_LIBDIR=$withval/lib64/mysql
28144 MYSQL_LIBDIR=$withval/lib/mysql
28146 MYSQL_BINDIR=$withval/bin
28147 elif test -f $withval/include/mysql.h; then
28148 MYSQL_INCDIR=$withval/include
28149 if test -d $withval/lib64; then
28150 MYSQL_LIBDIR=$withval/lib64
28152 MYSQL_LIBDIR=$withval/lib
28154 MYSQL_BINDIR=$withval/bin
28156 { echo "$as_me:$LINENO: result: no" >&5
28157 echo "${ECHO_T}no" >&6; }
28158 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28159 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28160 { (exit 1); exit 1; }; }
28163 SQL_INCLUDE=-I$MYSQL_INCDIR
28164 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28165 SQL_BINDIR=$MYSQL_BINDIR
28166 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28168 cat >>confdefs.h <<\_ACEOF
28169 #define HAVE_MYSQL 1
28172 cat >>confdefs.h <<\_ACEOF
28173 #define HAVE_EMBEDDED_MYSQL 1
28176 { echo "$as_me:$LINENO: result: yes" >&5
28177 echo "${ECHO_T}yes" >&6; }
28184 { echo "$as_me:$LINENO: result: no" >&5
28185 echo "${ECHO_T}no" >&6; }
28201 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28202 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28204 # Check whether --with-sqlite3 was given.
28205 if test "${with_sqlite3+set}" = set; then
28206 withval=$with_sqlite3;
28207 if test "$withval" != "no"; then
28208 if test "$withval" = "yes"; then
28209 if test -f /usr/local/include/sqlite3.h; then
28210 SQLITE_INCDIR=/usr/local/include
28211 if test -d /usr/local/lib64; then
28212 SQLITE_LIBDIR=/usr/local/lib64
28214 SQLITE_LIBDIR=/usr/local/lib
28216 SQLITE_BINDIR=/usr/local/bin
28217 elif test -f /usr/include/sqlite3.h; then
28218 SQLITE_INCDIR=/usr/include
28219 if test -d /usr/lib64; then
28220 SQLITE_LIBDIR=/usr/lib64
28222 SQLITE_LIBDIR=/usr/lib
28224 SQLITE_BINDIR=/usr/bin
28225 elif test -f $prefix/include/sqlite3.h; then
28226 SQLITE_INCDIR=$prefix/include
28227 if test -d $prefix/lib64; then
28228 SQLITE_LIBDIR=$prefix/lib64
28230 SQLITE_LIBDIR=$prefix/lib
28232 SQLITE_BINDIR=$prefix/bin
28234 { echo "$as_me:$LINENO: result: no" >&5
28235 echo "${ECHO_T}no" >&6; }
28236 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28237 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28238 { (exit 1); exit 1; }; }
28241 if test -f $withval/sqlite3.h; then
28242 SQLITE_INCDIR=$withval
28243 SQLITE_LIBDIR=$withval
28244 SQLITE_BINDIR=$withval
28245 elif test -f $withval/include/sqlite3.h; then
28246 SQLITE_INCDIR=$withval/include
28247 if test -d $withval/lib64; then
28248 SQLITE_LIBDIR=$withval/lib64
28250 SQLITE_LIBDIR=$withval/lib
28252 SQLITE_BINDIR=$withval/bin
28254 { echo "$as_me:$LINENO: result: no" >&5
28255 echo "${ECHO_T}no" >&6; }
28256 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28257 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28258 { (exit 1); exit 1; }; }
28261 SQL_INCLUDE=-I$SQLITE_INCDIR
28262 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28263 SQL_BINDIR=$SQLITE_BINDIR
28264 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28266 cat >>confdefs.h <<\_ACEOF
28267 #define HAVE_SQLITE3 1
28270 { echo "$as_me:$LINENO: result: yes" >&5
28271 echo "${ECHO_T}yes" >&6; }
28273 support_sqlite3=yes
28278 { echo "$as_me:$LINENO: result: no" >&5
28279 echo "${ECHO_T}no" >&6; }
28284 { echo "$as_me:$LINENO: result: no" >&5
28285 echo "${ECHO_T}no" >&6; }
28297 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28298 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28300 # Check whether --with-sqlite was given.
28301 if test "${with_sqlite+set}" = set; then
28302 withval=$with_sqlite;
28303 if test "$withval" != "no"; then
28304 if test "$withval" = "yes"; then
28305 if test -f /usr/local/include/sqlite.h; then
28306 SQLITE_INCDIR=/usr/local/include
28307 if test -d /usr/local/lib64; then
28308 SQLITE_LIBDIR=/usr/local/lib64
28310 SQLITE_LIBDIR=/usr/local/lib
28312 SQLITE_BINDIR=/usr/local/bin
28313 elif test -f /usr/include/sqlite.h; then
28314 SQLITE_INCDIR=/usr/include
28315 if test -d /usr/lib64; then
28316 SQLITE_LIBDIR=/usr/lib64
28318 SQLITE_LIBDIR=/usr/lib
28320 SQLITE_BINDIR=/usr/bin
28321 elif test -f $prefix/include/sqlite.h; then
28322 SQLITE_INCDIR=$prefix/include
28323 if test -d $prefix/lib64; then
28324 SQLITE_LIBDIR=$prefix/lib64
28326 SQLITE_LIBDIR=$prefix/lib
28328 SQLITE_BINDIR=$prefix/bin
28330 { echo "$as_me:$LINENO: result: no" >&5
28331 echo "${ECHO_T}no" >&6; }
28332 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28333 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28334 { (exit 1); exit 1; }; }
28337 if test -f $withval/sqlite.h; then
28338 SQLITE_INCDIR=$withval
28339 SQLITE_LIBDIR=$withval
28340 SQLITE_BINDIR=$withval
28341 elif test -f $withval/include/sqlite.h; then
28342 SQLITE_INCDIR=$withval/include
28343 if test -d $withval/lib64; then
28344 SQLITE_LIBDIR=$withval/lib64
28346 SQLITE_LIBDIR=$withval/lib
28348 SQLITE_BINDIR=$withval/bin
28350 { echo "$as_me:$LINENO: result: no" >&5
28351 echo "${ECHO_T}no" >&6; }
28352 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28353 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28354 { (exit 1); exit 1; }; }
28357 SQL_INCLUDE=-I$SQLITE_INCDIR
28358 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28359 SQL_BINDIR=$SQLITE_BINDIR
28360 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28362 cat >>confdefs.h <<\_ACEOF
28363 #define HAVE_SQLITE 1
28366 { echo "$as_me:$LINENO: result: yes" >&5
28367 echo "${ECHO_T}yes" >&6; }
28374 { echo "$as_me:$LINENO: result: no" >&5
28375 echo "${ECHO_T}no" >&6; }
28380 { echo "$as_me:$LINENO: result: no" >&5
28381 echo "${ECHO_T}no" >&6; }
28393 { echo "$as_me:$LINENO: checking for DBI support" >&5
28394 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28396 # Check whether --with-dbi was given.
28397 if test "${with_dbi+set}" = set; then
28399 if test "$withval" != "no"; then
28400 if test "$withval" = "yes"; then
28401 if test -f /usr/local/include/dbi/dbi.h; then
28402 DBI_INCDIR=/usr/local/dbi/include
28403 if test -d /usr/local/lib64; then
28404 DBI_LIBDIR=/usr/local/lib64
28406 DBI_LIBDIR=/usr/local/lib
28408 DBI_BINDIR=/usr/local/bin
28409 elif test -f /usr/include/dbi/dbi.h; then
28410 DBI_INCDIR=/usr/include
28411 if test -d /usr/lib64; then
28412 DBI_LIBDIR=/usr/lib64
28414 DBI_LIBDIR=/usr/lib
28416 DBI_BINDIR=/usr/bin
28417 elif test -f $prefix/include/dbi/dbi.h; then
28418 DBI_INCDIR=$prefix/include
28419 if test -d $prefix/lib64; then
28420 DBI_LIBDIR=$prefix/lib64
28422 DBI_LIBDIR=$prefix/lib
28424 DBI_BINDIR=$prefix/bin
28426 { echo "$as_me:$LINENO: result: no" >&5
28427 echo "${ECHO_T}no" >&6; }
28428 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28429 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28430 { (exit 1); exit 1; }; }
28432 if test -d /usr/local/lib/dbd; then
28433 DRIVERDIR=/usr/local/lib/dbd
28434 if test -d /usr/local/lib64/dbd; then
28435 DRIVERDIR=/usr/local/lib64/dbd
28437 DRIVERDIR=/usr/local/lib/dbd
28439 elif test -d /usr/lib/dbd; then
28440 DRIVERDIR=/usr/lib/dbd
28441 if test -d /usr/lib64/dbd; then
28442 DRIVERDIR=/usr/lib64/dbd
28444 DRIVERDIR=/usr/lib/dbd
28446 elif test -d $prefix/lib/dbd; then
28447 if test -d $prefix/lib64/dbd; then
28448 DRIVERDIR=$prefix/lib64/dbd
28450 DRIVERDIR=$prefix/lib/dbd
28453 { echo "$as_me:$LINENO: result: no" >&5
28454 echo "${ECHO_T}no" >&6; }
28455 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28456 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28457 { (exit 1); exit 1; }; }
28460 if test -f $withval/dbi.h; then
28461 DBI_INCDIR=$withval
28462 DBI_LIBDIR=$withval
28463 DBI_BINDIR=$withval
28464 elif test -f $withval/include/dbi/dbi.h; then
28465 DBI_INCDIR=$withval/include
28466 if test -d $withval/lib64; then
28467 DBI_LIBDIR=$withval/lib64
28469 DBI_LIBDIR=$withval/lib
28471 DBI_BINDIR=$withval/bin
28473 { echo "$as_me:$LINENO: result: no" >&5
28474 echo "${ECHO_T}no" >&6; }
28475 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28476 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28477 { (exit 1); exit 1; }; }
28479 if test -d $withval/dbd; then
28480 DRIVERDIR=$withval/dbd
28481 elif test -d $withval/lib/; then
28482 if test -d $withval/lib64/dbd; then
28483 DRIVERDIR=$withval/lib64/dbd
28485 DRIVERDIR=$withval/lib/dbd
28488 { echo "$as_me:$LINENO: result: no" >&5
28489 echo "${ECHO_T}no" >&6; }
28490 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28491 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28492 { (exit 1); exit 1; }; }
28495 SQL_INCLUDE=-I$DBI_INCDIR
28496 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28497 SQL_BINDIR=$DBI_BINDIR
28498 SQL_LIB=$DBI_LIBDIR/libdbi.a
28499 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28502 cat >>confdefs.h <<\_ACEOF
28506 { echo "$as_me:$LINENO: result: yes" >&5
28507 echo "${ECHO_T}yes" >&6; }
28515 { echo "$as_me:$LINENO: result: no" >&5
28516 echo "${ECHO_T}no" >&6; }
28521 { echo "$as_me:$LINENO: result: no" >&5
28522 echo "${ECHO_T}no" >&6; }
28537 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28538 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28540 # Check whether --with-dbi-driver was given.
28541 if test "${with_dbi_driver+set}" = set; then
28542 withval=$with_dbi_driver;
28543 if test "$withval" != "no"; then
28547 if test -f /usr/local/mysql/bin/mysql; then
28548 SQL_BINDIR=/usr/local/mysql/bin
28549 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28550 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28551 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28553 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28555 elif test -f /usr/bin/mysql; then
28556 SQL_BINDIR=/usr/bin
28557 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28558 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28559 SQL_LIBDIR=/usr/lib64/mysql
28560 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28561 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28562 SQL_LIBDIR=/usr/lib/mysql
28564 SQL_LIBDIR=/usr/lib
28566 elif test -f /usr/local/bin/mysql; then
28567 SQL_BINDIR=/usr/local/bin
28568 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28569 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28570 SQL_LIBDIR=/usr/local/lib64/mysql
28571 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28572 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28573 SQL_LIBDIR=/usr/local/lib/mysql
28575 SQL_LIBDIR=/usr/local/lib
28577 elif test -f $withval/bin/mysql; then
28578 SQL_BINDIR=$withval/bin
28579 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28580 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28581 SQL_LIBDIR=$withval/lib64/mysql
28582 elif test -f $withval/lib64/libmysqlclient_r.a \
28583 -o -f $withval/lib64/libmysqlclient_r.so; then
28584 SQL_LIBDIR=$withval/lib64
28585 elif test -f $withval/lib/libmysqlclient_r.a \
28586 -o -f $withval/lib/libmysqlclient_r.so; then
28587 SQL_LIBDIR=$withval/lib/
28589 SQL_LIBDIR=$withval/lib/mysql
28592 { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28594 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28595 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28596 { (exit 1); exit 1; }; }
28598 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28601 db_prog="postgresql"
28602 PG_CONFIG=`which pg_config`
28603 if test -n "$PG_CONFIG"; then
28604 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28605 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28606 elif test -f /usr/local/bin/psql; then
28607 SQL_BINDIR=/usr/local/bin
28608 if test -d /usr/local/lib64; then
28609 SQL_LIBDIR=/usr/local/lib64
28611 SQL_LIBDIR=/usr/local/lib
28613 elif test -f /usr/bin/psql; then
28614 SQL_BINDIR=/usr/local/bin
28615 if test -d /usr/lib64/postgresql; then
28616 SQL_LIBDIR=/usr/lib64/postgresql
28617 elif test -d /usr/lib/postgresql; then
28618 SQL_LIBDIR=/usr/lib/postgresql
28619 elif test -d /usr/lib64; then
28620 SQL_LIBDIR=/usr/lib64
28622 SQL_LIBDIR=/usr/lib
28624 elif test -f $withval/bin/psql; then
28625 SQL_BINDIR=$withval/bin
28626 if test -d $withval/lib64; then
28627 SQL_LIBDIR=$withval/lib64
28629 SQL_LIBDIR=$withval/lib
28632 { echo "$as_me:$LINENO: result: no" >&5
28633 echo "${ECHO_T}no" >&6; }
28634 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28635 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28636 { (exit 1); exit 1; }; }
28638 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28642 if test -f /usr/local/bin/sqlite; then
28643 SQL_BINDIR=/usr/local/bin
28644 if test -d /usr/local/lib64; then
28645 SQL_LIBDIR=/usr/local/lib64
28647 SQL_LIBDIR=/usr/local/lib
28649 elif test -f /usr/bin/sqlite; then
28650 SQL_BINDIR=/usr/bin
28651 if test -d /usr/lib64; then
28652 SQL_LIBDIR=/usr/lib64
28654 SQL_LIBDIR=/usr/lib
28656 elif test -f $withval/bin/sqlite; then
28657 SQL_BINDIR=$withval/bin
28658 if test -d $withval/lib64; then
28659 SQL_LIBDIR=$withval/lib64
28661 SQL_LIBDIR=$withval/lib
28664 { echo "$as_me:$LINENO: result: no" >&5
28665 echo "${ECHO_T}no" >&6; }
28666 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28667 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28668 { (exit 1); exit 1; }; }
28670 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28674 if test -f /usr/local/bin/sqlite3; then
28675 SQL_BINDIR=/usr/local/bin
28676 if test -d /usr/local/lib64; then
28677 SQL_LIBDIR=/usr/local/lib64
28679 SQL_LIBDIR=/usr/local/lib
28681 elif test -f /usr/bin/sqlite3; then
28682 SQL_BINDIR=/usr/bin
28683 if test -d /usr/lib64; then
28684 SQL_LIBDIR=/usr/lib64
28686 SQL_LIBDIR=/usr/lib
28688 elif test -f $withval/bin/sqlite3; then
28689 SQL_BINDIR=$withval/bin
28690 if test -d $withval/lib64; then
28691 SQL_LIBDIR=$withval/lib64
28693 SQL_LIBDIR=$withval/lib
28696 { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28699 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28700 { (exit 1); exit 1; }; }
28702 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28705 { echo "$as_me:$LINENO: result: no" >&5
28706 echo "${ECHO_T}no" >&6; }
28707 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28708 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28709 { (exit 1); exit 1; }; }
28713 { echo "$as_me:$LINENO: result: yes" >&5
28714 echo "${ECHO_T}yes" >&6; }
28717 { echo "$as_me:$LINENO: result: no" >&5
28718 echo "${ECHO_T}no" >&6; }
28723 { echo "$as_me:$LINENO: result: no" >&5
28724 echo "${ECHO_T}no" >&6; }
28737 support_batch_insert=no
28738 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28740 if test $pkg = 0; then
28741 support_batch_insert=yes
28742 # Check whether --enable-batch-insert was given.
28743 if test "${enable_batch_insert+set}" = set; then
28744 enableval=$enable_batch_insert;
28745 if test x$enableval = xno; then
28746 support_batch_insert=no
28748 support_batch_insert=yes
28756 if test x$DB_TYPE = xpostgresql; then
28757 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28759 if test $pkg != 0; then
28760 support_batch_insert=no
28764 if test x$DB_TYPE = xdbi; then
28768 if test $DB_PROG = postgresql; then
28769 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28773 if test $DB_PROG = mysql; then
28774 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28778 if test $DB_PROG = sqlite3; then
28779 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28783 if test $pkg = 0; then
28784 # Check whether --enable-batch-insert was given.
28785 if test "${enable_batch_insert+set}" = set; then
28786 enableval=$enable_batch_insert;
28787 if test x$enableval = xno; then
28788 support_batch_insert=no
28790 support_batch_insert=yes
28803 if test $support_batch_insert = yes ; then
28805 cat >>confdefs.h <<\_ACEOF
28806 #define HAVE_BATCH_FILE_INSERT 1
28811 cat >>confdefs.h <<\_ACEOF
28812 #define PROTOTYPES 1
28816 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28817 if test -z "$CCOPTS"; then
28818 CCOPTS='-g -O2 -Wall'
28825 largefile_support="no"
28827 # Check whether --enable-largefile was given.
28828 if test "${enable_largefile+set}" = set; then
28829 enableval=$enable_largefile;
28832 if test "$enable_largefile" != no; then
28833 if test -n "$ac_tool_prefix"; then
28834 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28835 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28838 if test "${ac_cv_prog_GETCONF+set}" = set; then
28839 echo $ECHO_N "(cached) $ECHO_C" >&6
28841 if test -n "$GETCONF"; then
28842 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28845 for as_dir in $PATH
28848 test -z "$as_dir" && as_dir=.
28849 for ac_exec_ext in '' $ac_executable_extensions; do
28850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28851 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28861 GETCONF=$ac_cv_prog_GETCONF
28862 if test -n "$GETCONF"; then
28863 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28864 echo "${ECHO_T}$GETCONF" >&6; }
28866 { echo "$as_me:$LINENO: result: no" >&5
28867 echo "${ECHO_T}no" >&6; }
28872 if test -z "$ac_cv_prog_GETCONF"; then
28873 ac_ct_GETCONF=$GETCONF
28874 # Extract the first word of "getconf", so it can be a program name with args.
28875 set dummy getconf; ac_word=$2
28876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28878 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28879 echo $ECHO_N "(cached) $ECHO_C" >&6
28881 if test -n "$ac_ct_GETCONF"; then
28882 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28885 for as_dir in $PATH
28888 test -z "$as_dir" && as_dir=.
28889 for ac_exec_ext in '' $ac_executable_extensions; do
28890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28891 ac_cv_prog_ac_ct_GETCONF="getconf"
28892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28901 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28902 if test -n "$ac_ct_GETCONF"; then
28903 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28904 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28906 { echo "$as_me:$LINENO: result: no" >&5
28907 echo "${ECHO_T}no" >&6; }
28910 if test "x$ac_ct_GETCONF" = x; then
28913 case $cross_compiling:$ac_tool_warned in
28915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28916 whose name does not start with the host triplet. If you think this
28917 configuration is useful to you, please write to autoconf@gnu.org." >&5
28918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28919 whose name does not start with the host triplet. If you think this
28920 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28921 ac_tool_warned=yes ;;
28923 GETCONF=$ac_ct_GETCONF
28926 GETCONF="$ac_cv_prog_GETCONF"
28929 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28930 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28931 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28932 echo $ECHO_N "(cached) $ECHO_C" >&6
28934 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28935 ac_cv_sys_largefile_CFLAGS=no
28937 # IRIX 6.2 and later require cc -n32.
28938 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28939 if test "$GCC" != yes; then
28940 ac_cv_sys_largefile_CFLAGS=-n32
28943 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28944 cat >conftest.$ac_ext <<_ACEOF
28947 cat confdefs.h >>conftest.$ac_ext
28948 cat >>conftest.$ac_ext <<_ACEOF
28949 /* end confdefs.h. */
28959 rm -f conftest.$ac_objext conftest$ac_exeext
28960 if { (ac_try="$ac_link"
28961 case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_link") 2>conftest.er1
28968 grep -v '^ *+' conftest.er1 >conftest.err
28970 cat conftest.err >&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); } && {
28973 test -z "$ac_c_werror_flag" ||
28974 test ! -s conftest.err
28975 } && test -s conftest$ac_exeext &&
28976 $as_test_x conftest$ac_exeext; then
28979 echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28982 ac_cv_sys_largefile_CFLAGS=no
28985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28986 conftest$ac_exeext conftest.$ac_ext
28991 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28992 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28993 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28994 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28995 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
28998 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28999 ac_cv_sys_largefile_LDFLAGS=no
29003 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29004 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29005 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29006 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29007 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29010 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29011 ac_cv_sys_largefile_LIBS=no
29015 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29016 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29018 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29021 -D_FILE_OFFSET_BITS=*) ;;
29022 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29023 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29028 case "$CPPFLAGS" in
29029 '') CPPFLAGS="$ac_flag" ;;
29030 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29038 '') CFLAGS="$ac_flag" ;;
29039 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29044 case "$ac_cv_sys_largefile_LDFLAGS" in
29048 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29049 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29052 case "$ac_cv_sys_largefile_LIBS" in
29056 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29057 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29060 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29061 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29062 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29065 ac_cv_sys_file_offset_bits=no
29066 ac_cv_sys_file_offset_bits=64
29067 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29069 -D_FILE_OFFSET_BITS)
29070 ac_cv_sys_file_offset_bits=1 ;;
29071 -D_FILE_OFFSET_BITS=*)
29072 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29077 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29078 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29079 if test "$ac_cv_sys_file_offset_bits" != no; then
29081 cat >>confdefs.h <<_ACEOF
29082 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29086 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29087 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29088 if test "${ac_cv_sys_largefile_source+set}" = set; then
29089 echo $ECHO_N "(cached) $ECHO_C" >&6
29091 ac_cv_sys_largefile_source=no
29092 ac_cv_sys_largefile_source=1
29093 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29095 -D_LARGEFILE_SOURCE)
29096 ac_cv_sys_largefile_source=1 ;;
29097 -D_LARGEFILE_SOURCE=*)
29098 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29103 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29104 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29105 if test "$ac_cv_sys_largefile_source" != no; then
29107 cat >>confdefs.h <<_ACEOF
29108 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29112 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29113 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29114 if test "${ac_cv_sys_large_files+set}" = set; then
29115 echo $ECHO_N "(cached) $ECHO_C" >&6
29117 ac_cv_sys_large_files=no
29118 ac_cv_sys_large_files=1
29119 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29122 ac_cv_sys_large_files=1 ;;
29124 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29129 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29130 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29131 if test "$ac_cv_sys_large_files" != no; then
29133 cat >>confdefs.h <<_ACEOF
29134 #define _LARGE_FILES $ac_cv_sys_large_files
29141 { echo "$as_me:$LINENO: checking for X" >&5
29142 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29145 # Check whether --with-x was given.
29146 if test "${with_x+set}" = set; then
29150 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29151 if test "x$with_x" = xno; then
29152 # The user explicitly disabled X.
29155 case $x_includes,$x_libraries in #(
29156 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29157 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29158 { (exit 1); exit 1; }; };; #(
29159 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29160 echo $ECHO_N "(cached) $ECHO_C" >&6
29162 # One or both of the vars are not set, and there is no cached value.
29163 ac_x_includes=no ac_x_libraries=no
29164 rm -f -r conftest.dir
29165 if mkdir conftest.dir; then
29167 cat >Imakefile <<'_ACEOF'
29169 @echo incroot='${INCROOT}'
29171 @echo usrlibdir='${USRLIBDIR}'
29173 @echo libdir='${LIBDIR}'
29175 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29176 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29177 for ac_var in incroot usrlibdir libdir; do
29178 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29180 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29181 for ac_extension in a so sl; do
29182 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29183 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29184 ac_im_usrlibdir=$ac_im_libdir; break
29187 # Screen out bogus values from the imake configuration. They are
29188 # bogus both because they are the default anyway, and because
29189 # using them would break gcc on systems where it needs fixed includes.
29190 case $ac_im_incroot in
29191 /usr/include) ac_x_includes= ;;
29192 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29194 case $ac_im_usrlibdir in
29195 /usr/lib | /lib) ;;
29196 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29200 rm -f -r conftest.dir
29203 # Standard set of common directories for X headers.
29204 # Check X11 before X11Rn because it is often a symlink to the current release.
29216 /usr/local/X11/include
29217 /usr/local/X11R6/include
29218 /usr/local/X11R5/include
29219 /usr/local/X11R4/include
29221 /usr/local/include/X11
29222 /usr/local/include/X11R6
29223 /usr/local/include/X11R5
29224 /usr/local/include/X11R4
29228 /usr/XFree86/include/X11
29232 /usr/unsupported/include
29233 /usr/athena/include
29234 /usr/local/x11r5/include
29235 /usr/lpp/Xamples/include
29237 /usr/openwin/include
29238 /usr/openwin/share/include'
29240 if test "$ac_x_includes" = no; then
29241 # Guess where to find include files, by looking for Xlib.h.
29242 # First, try using that file with no special directory specified.
29243 cat >conftest.$ac_ext <<_ACEOF
29246 cat confdefs.h >>conftest.$ac_ext
29247 cat >>conftest.$ac_ext <<_ACEOF
29248 /* end confdefs.h. */
29249 #include <X11/Xlib.h>
29251 if { (ac_try="$ac_cpp conftest.$ac_ext"
29252 case "(($ac_try" in
29253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29254 *) ac_try_echo=$ac_try;;
29256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29259 grep -v '^ *+' conftest.er1 >conftest.err
29261 cat conftest.err >&5
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } >/dev/null && {
29264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29265 test ! -s conftest.err
29267 # We can compile using X headers with no special include directory.
29270 echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29273 for ac_dir in $ac_x_header_dirs; do
29274 if test -r "$ac_dir/X11/Xlib.h"; then
29275 ac_x_includes=$ac_dir
29281 rm -f conftest.err conftest.$ac_ext
29282 fi # $ac_x_includes = no
29284 if test "$ac_x_libraries" = no; then
29285 # Check for the libraries.
29286 # See if we find them without any special options.
29287 # Don't add to $LIBS permanently.
29290 cat >conftest.$ac_ext <<_ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h. */
29296 #include <X11/Xlib.h>
29305 rm -f conftest.$ac_objext conftest$ac_exeext
29306 if { (ac_try="$ac_link"
29307 case "(($ac_try" in
29308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309 *) ac_try_echo=$ac_try;;
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312 (eval "$ac_link") 2>conftest.er1
29314 grep -v '^ *+' conftest.er1 >conftest.err
29316 cat conftest.err >&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } && {
29319 test -z "$ac_c_werror_flag" ||
29320 test ! -s conftest.err
29321 } && test -s conftest$ac_exeext &&
29322 $as_test_x conftest$ac_exeext; then
29324 # We can link X programs with no special library path.
29327 echo "$as_me: failed program was:" >&5
29328 sed 's/^/| /' conftest.$ac_ext >&5
29331 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29333 # Don't even attempt the hair of trying to link an X program!
29334 for ac_extension in a so sl; do
29335 if test -r "$ac_dir/libX11.$ac_extension"; then
29336 ac_x_libraries=$ac_dir
29343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29344 conftest$ac_exeext conftest.$ac_ext
29345 fi # $ac_x_libraries = no
29347 case $ac_x_includes,$ac_x_libraries in #(
29348 no,* | *,no | *\'*)
29349 # Didn't find X, or a directory has "'" in its name.
29350 ac_cv_have_x="have_x=no";; #(
29352 # Record where we found X for the cache.
29353 ac_cv_have_x="have_x=yes\
29354 ac_x_includes='$ac_x_includes'\
29355 ac_x_libraries='$ac_x_libraries'"
29361 eval "$ac_cv_have_x"
29364 if test "$have_x" != yes; then
29365 { echo "$as_me:$LINENO: result: $have_x" >&5
29366 echo "${ECHO_T}$have_x" >&6; }
29369 # If each of the values was on the command line, it overrides each guess.
29370 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29371 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29372 # Update the cache value to reflect the command line values.
29373 ac_cv_have_x="have_x=yes\
29374 ac_x_includes='$x_includes'\
29375 ac_x_libraries='$x_libraries'"
29376 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29377 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29380 if test "$no_x" = yes; then
29381 # Not all programs may use this symbol, but it does not hurt to define it.
29383 cat >>confdefs.h <<\_ACEOF
29384 #define X_DISPLAY_MISSING 1
29387 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29389 if test -n "$x_includes"; then
29390 X_CFLAGS="$X_CFLAGS -I$x_includes"
29393 # It would also be nice to do this for all -L options, not just this one.
29394 if test -n "$x_libraries"; then
29395 X_LIBS="$X_LIBS -L$x_libraries"
29396 # For Solaris; some versions of Sun CC require a space after -R and
29397 # others require no space. Words are not sufficient . . . .
29398 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29399 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29400 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29401 ac_xsave_c_werror_flag=$ac_c_werror_flag
29402 ac_c_werror_flag=yes
29403 cat >conftest.$ac_ext <<_ACEOF
29406 cat confdefs.h >>conftest.$ac_ext
29407 cat >>conftest.$ac_ext <<_ACEOF
29408 /* end confdefs.h. */
29418 rm -f conftest.$ac_objext conftest$ac_exeext
29419 if { (ac_try="$ac_link"
29420 case "(($ac_try" in
29421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29422 *) ac_try_echo=$ac_try;;
29424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29425 (eval "$ac_link") 2>conftest.er1
29427 grep -v '^ *+' conftest.er1 >conftest.err
29429 cat conftest.err >&5
29430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431 (exit $ac_status); } && {
29432 test -z "$ac_c_werror_flag" ||
29433 test ! -s conftest.err
29434 } && test -s conftest$ac_exeext &&
29435 $as_test_x conftest$ac_exeext; then
29436 { echo "$as_me:$LINENO: result: no" >&5
29437 echo "${ECHO_T}no" >&6; }
29438 X_LIBS="$X_LIBS -R$x_libraries"
29440 echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29443 LIBS="$ac_xsave_LIBS -R $x_libraries"
29444 cat >conftest.$ac_ext <<_ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29459 rm -f conftest.$ac_objext conftest$ac_exeext
29460 if { (ac_try="$ac_link"
29461 case "(($ac_try" in
29462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463 *) ac_try_echo=$ac_try;;
29465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466 (eval "$ac_link") 2>conftest.er1
29468 grep -v '^ *+' conftest.er1 >conftest.err
29470 cat conftest.err >&5
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); } && {
29473 test -z "$ac_c_werror_flag" ||
29474 test ! -s conftest.err
29475 } && test -s conftest$ac_exeext &&
29476 $as_test_x conftest$ac_exeext; then
29477 { echo "$as_me:$LINENO: result: yes" >&5
29478 echo "${ECHO_T}yes" >&6; }
29479 X_LIBS="$X_LIBS -R $x_libraries"
29481 echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29484 { echo "$as_me:$LINENO: result: neither works" >&5
29485 echo "${ECHO_T}neither works" >&6; }
29488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29489 conftest$ac_exeext conftest.$ac_ext
29492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29493 conftest$ac_exeext conftest.$ac_ext
29494 ac_c_werror_flag=$ac_xsave_c_werror_flag
29495 LIBS=$ac_xsave_LIBS
29498 # Check for system-dependent libraries X programs must link with.
29499 # Do this before checking for the system-independent R6 libraries
29500 # (-lICE), since we may need -lsocket or whatever for X linking.
29502 if test "$ISC" = yes; then
29503 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29505 # Martyn Johnson says this is needed for Ultrix, if the X
29506 # libraries were built with DECnet support. And Karl Berry says
29507 # the Alpha needs dnet_stub (dnet does not exist).
29508 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29509 cat >conftest.$ac_ext <<_ACEOF
29512 cat confdefs.h >>conftest.$ac_ext
29513 cat >>conftest.$ac_ext <<_ACEOF
29514 /* end confdefs.h. */
29516 /* Override any GCC internal prototype to avoid an error.
29517 Use char because int might match the return type of a GCC
29518 builtin and then its argument prototype would still apply. */
29522 char XOpenDisplay ();
29526 return XOpenDisplay ();
29531 rm -f conftest.$ac_objext conftest$ac_exeext
29532 if { (ac_try="$ac_link"
29533 case "(($ac_try" in
29534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29535 *) ac_try_echo=$ac_try;;
29537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29538 (eval "$ac_link") 2>conftest.er1
29540 grep -v '^ *+' conftest.er1 >conftest.err
29542 cat conftest.err >&5
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); } && {
29545 test -z "$ac_c_werror_flag" ||
29546 test ! -s conftest.err
29547 } && test -s conftest$ac_exeext &&
29548 $as_test_x conftest$ac_exeext; then
29551 echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29554 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29555 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29556 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29557 echo $ECHO_N "(cached) $ECHO_C" >&6
29559 ac_check_lib_save_LIBS=$LIBS
29560 LIBS="-ldnet $LIBS"
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29568 /* Override any GCC internal prototype to avoid an error.
29569 Use char because int might match the return type of a GCC
29570 builtin and then its argument prototype would still apply. */
29578 return dnet_ntoa ();
29583 rm -f conftest.$ac_objext conftest$ac_exeext
29584 if { (ac_try="$ac_link"
29585 case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_link") 2>conftest.er1
29592 grep -v '^ *+' conftest.er1 >conftest.err
29594 cat conftest.err >&5
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); } && {
29597 test -z "$ac_c_werror_flag" ||
29598 test ! -s conftest.err
29599 } && test -s conftest$ac_exeext &&
29600 $as_test_x conftest$ac_exeext; then
29601 ac_cv_lib_dnet_dnet_ntoa=yes
29603 echo "$as_me: failed program was:" >&5
29604 sed 's/^/| /' conftest.$ac_ext >&5
29606 ac_cv_lib_dnet_dnet_ntoa=no
29609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29610 conftest$ac_exeext conftest.$ac_ext
29611 LIBS=$ac_check_lib_save_LIBS
29613 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29614 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29615 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29616 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29619 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29620 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29621 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29622 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29623 echo $ECHO_N "(cached) $ECHO_C" >&6
29625 ac_check_lib_save_LIBS=$LIBS
29626 LIBS="-ldnet_stub $LIBS"
29627 cat >conftest.$ac_ext <<_ACEOF
29630 cat confdefs.h >>conftest.$ac_ext
29631 cat >>conftest.$ac_ext <<_ACEOF
29632 /* end confdefs.h. */
29634 /* Override any GCC internal prototype to avoid an error.
29635 Use char because int might match the return type of a GCC
29636 builtin and then its argument prototype would still apply. */
29644 return dnet_ntoa ();
29649 rm -f conftest.$ac_objext conftest$ac_exeext
29650 if { (ac_try="$ac_link"
29651 case "(($ac_try" in
29652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29653 *) ac_try_echo=$ac_try;;
29655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29656 (eval "$ac_link") 2>conftest.er1
29658 grep -v '^ *+' conftest.er1 >conftest.err
29660 cat conftest.err >&5
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } && {
29663 test -z "$ac_c_werror_flag" ||
29664 test ! -s conftest.err
29665 } && test -s conftest$ac_exeext &&
29666 $as_test_x conftest$ac_exeext; then
29667 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 ac_cv_lib_dnet_stub_dnet_ntoa=no
29675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29676 conftest$ac_exeext conftest.$ac_ext
29677 LIBS=$ac_check_lib_save_LIBS
29679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29680 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29681 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29682 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29689 conftest$ac_exeext conftest.$ac_ext
29690 LIBS="$ac_xsave_LIBS"
29692 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29693 # to get the SysV transport functions.
29694 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29696 # The nsl library prevents programs from opening the X display
29697 # on Irix 5.2, according to T.E. Dickey.
29698 # The functions gethostbyname, getservbyname, and inet_addr are
29699 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29700 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29701 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29702 if test "${ac_cv_func_gethostbyname+set}" = set; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29705 cat >conftest.$ac_ext <<_ACEOF
29708 cat confdefs.h >>conftest.$ac_ext
29709 cat >>conftest.$ac_ext <<_ACEOF
29710 /* end confdefs.h. */
29711 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29713 #define gethostbyname innocuous_gethostbyname
29715 /* System header to define __stub macros and hopefully few prototypes,
29716 which can conflict with char gethostbyname (); below.
29717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29718 <limits.h> exists even on freestanding compilers. */
29721 # include <limits.h>
29723 # include <assert.h>
29726 #undef gethostbyname
29728 /* Override any GCC internal prototype to avoid an error.
29729 Use char because int might match the return type of a GCC
29730 builtin and then its argument prototype would still apply. */
29734 char gethostbyname ();
29735 /* The GNU C library defines this for functions which it implements
29736 to always fail with ENOSYS. Some functions are actually named
29737 something starting with __ and the normal name is an alias. */
29738 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29745 return gethostbyname ();
29750 rm -f conftest.$ac_objext conftest$ac_exeext
29751 if { (ac_try="$ac_link"
29752 case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_link") 2>conftest.er1
29759 grep -v '^ *+' conftest.er1 >conftest.err
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } && {
29764 test -z "$ac_c_werror_flag" ||
29765 test ! -s conftest.err
29766 } && test -s conftest$ac_exeext &&
29767 $as_test_x conftest$ac_exeext; then
29768 ac_cv_func_gethostbyname=yes
29770 echo "$as_me: failed program was:" >&5
29771 sed 's/^/| /' conftest.$ac_ext >&5
29773 ac_cv_func_gethostbyname=no
29776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29777 conftest$ac_exeext conftest.$ac_ext
29779 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29780 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29782 if test $ac_cv_func_gethostbyname = no; then
29783 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29784 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29785 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29786 echo $ECHO_N "(cached) $ECHO_C" >&6
29788 ac_check_lib_save_LIBS=$LIBS
29790 cat >conftest.$ac_ext <<_ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h. */
29797 /* Override any GCC internal prototype to avoid an error.
29798 Use char because int might match the return type of a GCC
29799 builtin and then its argument prototype would still apply. */
29803 char gethostbyname ();
29807 return gethostbyname ();
29812 rm -f conftest.$ac_objext conftest$ac_exeext
29813 if { (ac_try="$ac_link"
29814 case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_link") 2>conftest.er1
29821 grep -v '^ *+' conftest.er1 >conftest.err
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } && {
29826 test -z "$ac_c_werror_flag" ||
29827 test ! -s conftest.err
29828 } && test -s conftest$ac_exeext &&
29829 $as_test_x conftest$ac_exeext; then
29830 ac_cv_lib_nsl_gethostbyname=yes
29832 echo "$as_me: failed program was:" >&5
29833 sed 's/^/| /' conftest.$ac_ext >&5
29835 ac_cv_lib_nsl_gethostbyname=no
29838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29839 conftest$ac_exeext conftest.$ac_ext
29840 LIBS=$ac_check_lib_save_LIBS
29842 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29843 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29844 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29845 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29848 if test $ac_cv_lib_nsl_gethostbyname = no; then
29849 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29850 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29851 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29852 echo $ECHO_N "(cached) $ECHO_C" >&6
29854 ac_check_lib_save_LIBS=$LIBS
29856 cat >conftest.$ac_ext <<_ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h. */
29863 /* Override any GCC internal prototype to avoid an error.
29864 Use char because int might match the return type of a GCC
29865 builtin and then its argument prototype would still apply. */
29869 char gethostbyname ();
29873 return gethostbyname ();
29878 rm -f conftest.$ac_objext conftest$ac_exeext
29879 if { (ac_try="$ac_link"
29880 case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_link") 2>conftest.er1
29887 grep -v '^ *+' conftest.er1 >conftest.err
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } && {
29892 test -z "$ac_c_werror_flag" ||
29893 test ! -s conftest.err
29894 } && test -s conftest$ac_exeext &&
29895 $as_test_x conftest$ac_exeext; then
29896 ac_cv_lib_bsd_gethostbyname=yes
29898 echo "$as_me: failed program was:" >&5
29899 sed 's/^/| /' conftest.$ac_ext >&5
29901 ac_cv_lib_bsd_gethostbyname=no
29904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29905 conftest$ac_exeext conftest.$ac_ext
29906 LIBS=$ac_check_lib_save_LIBS
29908 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29909 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29910 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29917 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29918 # socket/setsockopt and other routines are undefined under SCO ODT
29919 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29920 # on later versions), says Simon Leinen: it contains gethostby*
29921 # variants that don't use the name server (or something). -lsocket
29922 # must be given before -lnsl if both are needed. We assume that
29923 # if connect needs -lnsl, so does gethostbyname.
29924 { echo "$as_me:$LINENO: checking for connect" >&5
29925 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29926 if test "${ac_cv_func_connect+set}" = set; then
29927 echo $ECHO_N "(cached) $ECHO_C" >&6
29929 cat >conftest.$ac_ext <<_ACEOF
29932 cat confdefs.h >>conftest.$ac_ext
29933 cat >>conftest.$ac_ext <<_ACEOF
29934 /* end confdefs.h. */
29935 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29937 #define connect innocuous_connect
29939 /* System header to define __stub macros and hopefully few prototypes,
29940 which can conflict with char connect (); below.
29941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29942 <limits.h> exists even on freestanding compilers. */
29945 # include <limits.h>
29947 # include <assert.h>
29952 /* Override any GCC internal prototype to avoid an error.
29953 Use char because int might match the return type of a GCC
29954 builtin and then its argument prototype would still apply. */
29959 /* The GNU C library defines this for functions which it implements
29960 to always fail with ENOSYS. Some functions are actually named
29961 something starting with __ and the normal name is an alias. */
29962 #if defined __stub_connect || defined __stub___connect
29974 rm -f conftest.$ac_objext conftest$ac_exeext
29975 if { (ac_try="$ac_link"
29976 case "(($ac_try" in
29977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978 *) ac_try_echo=$ac_try;;
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981 (eval "$ac_link") 2>conftest.er1
29983 grep -v '^ *+' conftest.er1 >conftest.err
29985 cat conftest.err >&5
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); } && {
29988 test -z "$ac_c_werror_flag" ||
29989 test ! -s conftest.err
29990 } && test -s conftest$ac_exeext &&
29991 $as_test_x conftest$ac_exeext; then
29992 ac_cv_func_connect=yes
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 ac_cv_func_connect=no
30000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30001 conftest$ac_exeext conftest.$ac_ext
30003 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30004 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30006 if test $ac_cv_func_connect = no; then
30007 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30008 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30009 if test "${ac_cv_lib_socket_connect+set}" = set; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30012 ac_check_lib_save_LIBS=$LIBS
30013 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30014 cat >conftest.$ac_ext <<_ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h. */
30021 /* Override any GCC internal prototype to avoid an error.
30022 Use char because int might match the return type of a GCC
30023 builtin and then its argument prototype would still apply. */
30036 rm -f conftest.$ac_objext conftest$ac_exeext
30037 if { (ac_try="$ac_link"
30038 case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_link") 2>conftest.er1
30045 grep -v '^ *+' conftest.er1 >conftest.err
30047 cat conftest.err >&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } && {
30050 test -z "$ac_c_werror_flag" ||
30051 test ! -s conftest.err
30052 } && test -s conftest$ac_exeext &&
30053 $as_test_x conftest$ac_exeext; then
30054 ac_cv_lib_socket_connect=yes
30056 echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30059 ac_cv_lib_socket_connect=no
30062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30063 conftest$ac_exeext conftest.$ac_ext
30064 LIBS=$ac_check_lib_save_LIBS
30066 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30067 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30068 if test $ac_cv_lib_socket_connect = yes; then
30069 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30074 # Guillermo Gomez says -lposix is necessary on A/UX.
30075 { echo "$as_me:$LINENO: checking for remove" >&5
30076 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30077 if test "${ac_cv_func_remove+set}" = set; then
30078 echo $ECHO_N "(cached) $ECHO_C" >&6
30080 cat >conftest.$ac_ext <<_ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h. */
30086 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30088 #define remove innocuous_remove
30090 /* System header to define __stub macros and hopefully few prototypes,
30091 which can conflict with char remove (); below.
30092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30093 <limits.h> exists even on freestanding compilers. */
30096 # include <limits.h>
30098 # include <assert.h>
30103 /* Override any GCC internal prototype to avoid an error.
30104 Use char because int might match the return type of a GCC
30105 builtin and then its argument prototype would still apply. */
30110 /* The GNU C library defines this for functions which it implements
30111 to always fail with ENOSYS. Some functions are actually named
30112 something starting with __ and the normal name is an alias. */
30113 #if defined __stub_remove || defined __stub___remove
30125 rm -f conftest.$ac_objext conftest$ac_exeext
30126 if { (ac_try="$ac_link"
30127 case "(($ac_try" in
30128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129 *) ac_try_echo=$ac_try;;
30131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132 (eval "$ac_link") 2>conftest.er1
30134 grep -v '^ *+' conftest.er1 >conftest.err
30136 cat conftest.err >&5
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); } && {
30139 test -z "$ac_c_werror_flag" ||
30140 test ! -s conftest.err
30141 } && test -s conftest$ac_exeext &&
30142 $as_test_x conftest$ac_exeext; then
30143 ac_cv_func_remove=yes
30145 echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30148 ac_cv_func_remove=no
30151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30152 conftest$ac_exeext conftest.$ac_ext
30154 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30155 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30157 if test $ac_cv_func_remove = no; then
30158 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30159 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30160 if test "${ac_cv_lib_posix_remove+set}" = set; then
30161 echo $ECHO_N "(cached) $ECHO_C" >&6
30163 ac_check_lib_save_LIBS=$LIBS
30164 LIBS="-lposix $LIBS"
30165 cat >conftest.$ac_ext <<_ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h. */
30172 /* Override any GCC internal prototype to avoid an error.
30173 Use char because int might match the return type of a GCC
30174 builtin and then its argument prototype would still apply. */
30187 rm -f conftest.$ac_objext conftest$ac_exeext
30188 if { (ac_try="$ac_link"
30189 case "(($ac_try" in
30190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30191 *) ac_try_echo=$ac_try;;
30193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30194 (eval "$ac_link") 2>conftest.er1
30196 grep -v '^ *+' conftest.er1 >conftest.err
30198 cat conftest.err >&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); } && {
30201 test -z "$ac_c_werror_flag" ||
30202 test ! -s conftest.err
30203 } && test -s conftest$ac_exeext &&
30204 $as_test_x conftest$ac_exeext; then
30205 ac_cv_lib_posix_remove=yes
30207 echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.$ac_ext >&5
30210 ac_cv_lib_posix_remove=no
30213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30214 conftest$ac_exeext conftest.$ac_ext
30215 LIBS=$ac_check_lib_save_LIBS
30217 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30218 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30219 if test $ac_cv_lib_posix_remove = yes; then
30220 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30225 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30226 { echo "$as_me:$LINENO: checking for shmat" >&5
30227 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30228 if test "${ac_cv_func_shmat+set}" = set; then
30229 echo $ECHO_N "(cached) $ECHO_C" >&6
30231 cat >conftest.$ac_ext <<_ACEOF
30234 cat confdefs.h >>conftest.$ac_ext
30235 cat >>conftest.$ac_ext <<_ACEOF
30236 /* end confdefs.h. */
30237 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30239 #define shmat innocuous_shmat
30241 /* System header to define __stub macros and hopefully few prototypes,
30242 which can conflict with char shmat (); below.
30243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30244 <limits.h> exists even on freestanding compilers. */
30247 # include <limits.h>
30249 # include <assert.h>
30254 /* Override any GCC internal prototype to avoid an error.
30255 Use char because int might match the return type of a GCC
30256 builtin and then its argument prototype would still apply. */
30261 /* The GNU C library defines this for functions which it implements
30262 to always fail with ENOSYS. Some functions are actually named
30263 something starting with __ and the normal name is an alias. */
30264 #if defined __stub_shmat || defined __stub___shmat
30276 rm -f conftest.$ac_objext conftest$ac_exeext
30277 if { (ac_try="$ac_link"
30278 case "(($ac_try" in
30279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30280 *) ac_try_echo=$ac_try;;
30282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30283 (eval "$ac_link") 2>conftest.er1
30285 grep -v '^ *+' conftest.er1 >conftest.err
30287 cat conftest.err >&5
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); } && {
30290 test -z "$ac_c_werror_flag" ||
30291 test ! -s conftest.err
30292 } && test -s conftest$ac_exeext &&
30293 $as_test_x conftest$ac_exeext; then
30294 ac_cv_func_shmat=yes
30296 echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30299 ac_cv_func_shmat=no
30302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30303 conftest$ac_exeext conftest.$ac_ext
30305 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30306 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30308 if test $ac_cv_func_shmat = no; then
30309 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30310 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30311 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30314 ac_check_lib_save_LIBS=$LIBS
30316 cat >conftest.$ac_ext <<_ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h. */
30323 /* Override any GCC internal prototype to avoid an error.
30324 Use char because int might match the return type of a GCC
30325 builtin and then its argument prototype would still apply. */
30338 rm -f conftest.$ac_objext conftest$ac_exeext
30339 if { (ac_try="$ac_link"
30340 case "(($ac_try" in
30341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_link") 2>conftest.er1
30347 grep -v '^ *+' conftest.er1 >conftest.err
30349 cat conftest.err >&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } && {
30352 test -z "$ac_c_werror_flag" ||
30353 test ! -s conftest.err
30354 } && test -s conftest$ac_exeext &&
30355 $as_test_x conftest$ac_exeext; then
30356 ac_cv_lib_ipc_shmat=yes
30358 echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30361 ac_cv_lib_ipc_shmat=no
30364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30365 conftest$ac_exeext conftest.$ac_ext
30366 LIBS=$ac_check_lib_save_LIBS
30368 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30369 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30370 if test $ac_cv_lib_ipc_shmat = yes; then
30371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30377 # Check for libraries that X11R6 Xt/Xaw programs need.
30378 ac_save_LDFLAGS=$LDFLAGS
30379 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30380 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30381 # check for ICE first), but we must link in the order -lSM -lICE or
30382 # we get undefined symbols. So assume we have SM if we have ICE.
30383 # These have to be linked with before -lX11, unlike the other
30384 # libraries we check for below, so use a different variable.
30385 # John Interrante, Karl Berry
30386 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30387 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30388 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30389 echo $ECHO_N "(cached) $ECHO_C" >&6
30391 ac_check_lib_save_LIBS=$LIBS
30392 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30393 cat >conftest.$ac_ext <<_ACEOF
30396 cat confdefs.h >>conftest.$ac_ext
30397 cat >>conftest.$ac_ext <<_ACEOF
30398 /* end confdefs.h. */
30400 /* Override any GCC internal prototype to avoid an error.
30401 Use char because int might match the return type of a GCC
30402 builtin and then its argument prototype would still apply. */
30406 char IceConnectionNumber ();
30410 return IceConnectionNumber ();
30415 rm -f conftest.$ac_objext conftest$ac_exeext
30416 if { (ac_try="$ac_link"
30417 case "(($ac_try" in
30418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419 *) ac_try_echo=$ac_try;;
30421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422 (eval "$ac_link") 2>conftest.er1
30424 grep -v '^ *+' conftest.er1 >conftest.err
30426 cat conftest.err >&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); } && {
30429 test -z "$ac_c_werror_flag" ||
30430 test ! -s conftest.err
30431 } && test -s conftest$ac_exeext &&
30432 $as_test_x conftest$ac_exeext; then
30433 ac_cv_lib_ICE_IceConnectionNumber=yes
30435 echo "$as_me: failed program was:" >&5
30436 sed 's/^/| /' conftest.$ac_ext >&5
30438 ac_cv_lib_ICE_IceConnectionNumber=no
30441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30442 conftest$ac_exeext conftest.$ac_ext
30443 LIBS=$ac_check_lib_save_LIBS
30445 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30446 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30447 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30448 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30451 LDFLAGS=$ac_save_LDFLAGS
30519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30524 echo $ECHO_N "(cached) $ECHO_C" >&6
30526 ac_res=`eval echo '${'$as_ac_Header'}'`
30527 { echo "$as_me:$LINENO: result: $ac_res" >&5
30528 echo "${ECHO_T}$ac_res" >&6; }
30530 # Is the header compilable?
30531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30533 cat >conftest.$ac_ext <<_ACEOF
30536 cat confdefs.h >>conftest.$ac_ext
30537 cat >>conftest.$ac_ext <<_ACEOF
30538 /* end confdefs.h. */
30539 $ac_includes_default
30540 #include <$ac_header>
30542 rm -f conftest.$ac_objext
30543 if { (ac_try="$ac_compile"
30544 case "(($ac_try" in
30545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546 *) ac_try_echo=$ac_try;;
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_compile") 2>conftest.er1
30551 grep -v '^ *+' conftest.er1 >conftest.err
30553 cat conftest.err >&5
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); } && {
30556 test -z "$ac_c_werror_flag" ||
30557 test ! -s conftest.err
30558 } && test -s conftest.$ac_objext; then
30559 ac_header_compiler=yes
30561 echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30564 ac_header_compiler=no
30567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30569 echo "${ECHO_T}$ac_header_compiler" >&6; }
30571 # Is the header present?
30572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30574 cat >conftest.$ac_ext <<_ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h. */
30580 #include <$ac_header>
30582 if { (ac_try="$ac_cpp conftest.$ac_ext"
30583 case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30590 grep -v '^ *+' conftest.er1 >conftest.err
30592 cat conftest.err >&5
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); } >/dev/null && {
30595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30596 test ! -s conftest.err
30598 ac_header_preproc=yes
30600 echo "$as_me: failed program was:" >&5
30601 sed 's/^/| /' conftest.$ac_ext >&5
30603 ac_header_preproc=no
30606 rm -f conftest.err conftest.$ac_ext
30607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30608 echo "${ECHO_T}$ac_header_preproc" >&6; }
30610 # So? What about this header?
30611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30617 ac_header_preproc=yes
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30638 echo $ECHO_N "(cached) $ECHO_C" >&6
30640 eval "$as_ac_Header=\$ac_header_preproc"
30642 ac_res=`eval echo '${'$as_ac_Header'}'`
30643 { echo "$as_me:$LINENO: result: $ac_res" >&5
30644 echo "${ECHO_T}$ac_res" >&6; }
30647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30648 cat >>confdefs.h <<_ACEOF
30649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30656 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30657 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30658 if test "${ac_cv_header_stdc+set}" = set; then
30659 echo $ECHO_N "(cached) $ECHO_C" >&6
30661 cat >conftest.$ac_ext <<_ACEOF
30664 cat confdefs.h >>conftest.$ac_ext
30665 cat >>conftest.$ac_ext <<_ACEOF
30666 /* end confdefs.h. */
30667 #include <stdlib.h>
30668 #include <stdarg.h>
30669 #include <string.h>
30680 rm -f conftest.$ac_objext
30681 if { (ac_try="$ac_compile"
30682 case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_compile") 2>conftest.er1
30689 grep -v '^ *+' conftest.er1 >conftest.err
30691 cat conftest.err >&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } && {
30694 test -z "$ac_c_werror_flag" ||
30695 test ! -s conftest.err
30696 } && test -s conftest.$ac_objext; then
30697 ac_cv_header_stdc=yes
30699 echo "$as_me: failed program was:" >&5
30700 sed 's/^/| /' conftest.$ac_ext >&5
30702 ac_cv_header_stdc=no
30705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30707 if test $ac_cv_header_stdc = yes; then
30708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30709 cat >conftest.$ac_ext <<_ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h. */
30715 #include <string.h>
30718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30719 $EGREP "memchr" >/dev/null 2>&1; then
30722 ac_cv_header_stdc=no
30728 if test $ac_cv_header_stdc = yes; then
30729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30730 cat >conftest.$ac_ext <<_ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h. */
30736 #include <stdlib.h>
30739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30740 $EGREP "free" >/dev/null 2>&1; then
30743 ac_cv_header_stdc=no
30749 if test $ac_cv_header_stdc = yes; then
30750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30751 if test "$cross_compiling" = yes; then
30754 cat >conftest.$ac_ext <<_ACEOF
30757 cat confdefs.h >>conftest.$ac_ext
30758 cat >>conftest.$ac_ext <<_ACEOF
30759 /* end confdefs.h. */
30761 #include <stdlib.h>
30762 #if ((' ' & 0x0FF) == 0x020)
30763 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30764 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30766 # define ISLOWER(c) \
30767 (('a' <= (c) && (c) <= 'i') \
30768 || ('j' <= (c) && (c) <= 'r') \
30769 || ('s' <= (c) && (c) <= 'z'))
30770 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30773 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30778 for (i = 0; i < 256; i++)
30779 if (XOR (islower (i), ISLOWER (i))
30780 || toupper (i) != TOUPPER (i))
30785 rm -f conftest$ac_exeext
30786 if { (ac_try="$ac_link"
30787 case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_link") 2>&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30796 { (case "(($ac_try" in
30797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798 *) ac_try_echo=$ac_try;;
30800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801 (eval "$ac_try") 2>&5
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); }; }; then
30807 echo "$as_me: program exited with status $ac_status" >&5
30808 echo "$as_me: failed program was:" >&5
30809 sed 's/^/| /' conftest.$ac_ext >&5
30811 ( exit $ac_status )
30812 ac_cv_header_stdc=no
30814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30820 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30821 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30822 if test $ac_cv_header_stdc = yes; then
30824 cat >>confdefs.h <<\_ACEOF
30825 #define STDC_HEADERS 1
30830 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30831 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30832 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30833 echo $ECHO_N "(cached) $ECHO_C" >&6
30835 cat >conftest.$ac_ext <<_ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h. */
30841 #include <sys/types.h>
30845 return makedev(0, 0);
30850 rm -f conftest.$ac_objext conftest$ac_exeext
30851 if { (ac_try="$ac_link"
30852 case "(($ac_try" in
30853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30854 *) ac_try_echo=$ac_try;;
30856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30857 (eval "$ac_link") 2>conftest.er1
30859 grep -v '^ *+' conftest.er1 >conftest.err
30861 cat conftest.err >&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); } && {
30864 test -z "$ac_c_werror_flag" ||
30865 test ! -s conftest.err
30866 } && test -s conftest$ac_exeext &&
30867 $as_test_x conftest$ac_exeext; then
30868 ac_cv_header_sys_types_h_makedev=yes
30870 echo "$as_me: failed program was:" >&5
30871 sed 's/^/| /' conftest.$ac_ext >&5
30873 ac_cv_header_sys_types_h_makedev=no
30876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30877 conftest$ac_exeext conftest.$ac_ext
30880 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30881 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30883 if test $ac_cv_header_sys_types_h_makedev = no; then
30884 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30885 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30886 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30887 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30888 echo $ECHO_N "(cached) $ECHO_C" >&6
30890 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30891 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30893 # Is the header compilable?
30894 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30895 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30896 cat >conftest.$ac_ext <<_ACEOF
30899 cat confdefs.h >>conftest.$ac_ext
30900 cat >>conftest.$ac_ext <<_ACEOF
30901 /* end confdefs.h. */
30902 $ac_includes_default
30903 #include <sys/mkdev.h>
30905 rm -f conftest.$ac_objext
30906 if { (ac_try="$ac_compile"
30907 case "(($ac_try" in
30908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30909 *) ac_try_echo=$ac_try;;
30911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30912 (eval "$ac_compile") 2>conftest.er1
30914 grep -v '^ *+' conftest.er1 >conftest.err
30916 cat conftest.err >&5
30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30918 (exit $ac_status); } && {
30919 test -z "$ac_c_werror_flag" ||
30920 test ! -s conftest.err
30921 } && test -s conftest.$ac_objext; then
30922 ac_header_compiler=yes
30924 echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30927 ac_header_compiler=no
30930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30932 echo "${ECHO_T}$ac_header_compiler" >&6; }
30934 # Is the header present?
30935 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30936 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30937 cat >conftest.$ac_ext <<_ACEOF
30940 cat confdefs.h >>conftest.$ac_ext
30941 cat >>conftest.$ac_ext <<_ACEOF
30942 /* end confdefs.h. */
30943 #include <sys/mkdev.h>
30945 if { (ac_try="$ac_cpp conftest.$ac_ext"
30946 case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30953 grep -v '^ *+' conftest.er1 >conftest.err
30955 cat conftest.err >&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); } >/dev/null && {
30958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30959 test ! -s conftest.err
30961 ac_header_preproc=yes
30963 echo "$as_me: failed program was:" >&5
30964 sed 's/^/| /' conftest.$ac_ext >&5
30966 ac_header_preproc=no
30969 rm -f conftest.err conftest.$ac_ext
30970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30971 echo "${ECHO_T}$ac_header_preproc" >&6; }
30973 # So? What about this header?
30974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30979 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30980 ac_header_preproc=yes
30983 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30984 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30985 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30986 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30987 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30988 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30989 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30990 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30991 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30992 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30993 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30994 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30998 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30999 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31000 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31001 echo $ECHO_N "(cached) $ECHO_C" >&6
31003 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31005 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31006 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31009 if test $ac_cv_header_sys_mkdev_h = yes; then
31011 cat >>confdefs.h <<\_ACEOF
31012 #define MAJOR_IN_MKDEV 1
31019 if test $ac_cv_header_sys_mkdev_h = no; then
31020 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31021 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31022 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31023 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31024 echo $ECHO_N "(cached) $ECHO_C" >&6
31026 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31027 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31029 # Is the header compilable?
31030 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31031 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31032 cat >conftest.$ac_ext <<_ACEOF
31035 cat confdefs.h >>conftest.$ac_ext
31036 cat >>conftest.$ac_ext <<_ACEOF
31037 /* end confdefs.h. */
31038 $ac_includes_default
31039 #include <sys/sysmacros.h>
31041 rm -f conftest.$ac_objext
31042 if { (ac_try="$ac_compile"
31043 case "(($ac_try" in
31044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045 *) ac_try_echo=$ac_try;;
31047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048 (eval "$ac_compile") 2>conftest.er1
31050 grep -v '^ *+' conftest.er1 >conftest.err
31052 cat conftest.err >&5
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); } && {
31055 test -z "$ac_c_werror_flag" ||
31056 test ! -s conftest.err
31057 } && test -s conftest.$ac_objext; then
31058 ac_header_compiler=yes
31060 echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31063 ac_header_compiler=no
31066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31068 echo "${ECHO_T}$ac_header_compiler" >&6; }
31070 # Is the header present?
31071 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31072 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31073 cat >conftest.$ac_ext <<_ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h. */
31079 #include <sys/sysmacros.h>
31081 if { (ac_try="$ac_cpp conftest.$ac_ext"
31082 case "(($ac_try" in
31083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31084 *) ac_try_echo=$ac_try;;
31086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31089 grep -v '^ *+' conftest.er1 >conftest.err
31091 cat conftest.err >&5
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); } >/dev/null && {
31094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31095 test ! -s conftest.err
31097 ac_header_preproc=yes
31099 echo "$as_me: failed program was:" >&5
31100 sed 's/^/| /' conftest.$ac_ext >&5
31102 ac_header_preproc=no
31105 rm -f conftest.err conftest.$ac_ext
31106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31107 echo "${ECHO_T}$ac_header_preproc" >&6; }
31109 # So? What about this header?
31110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31112 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31114 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31115 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31116 ac_header_preproc=yes
31119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31120 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31122 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31123 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31124 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31125 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31126 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31127 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31128 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31129 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31130 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31134 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31135 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31136 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31137 echo $ECHO_N "(cached) $ECHO_C" >&6
31139 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31141 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31142 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31145 if test $ac_cv_header_sys_sysmacros_h = yes; then
31147 cat >>confdefs.h <<\_ACEOF
31148 #define MAJOR_IN_SYSMACROS 1
31162 ac_header_dirent=no
31163 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31164 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31165 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31166 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31168 echo $ECHO_N "(cached) $ECHO_C" >&6
31170 cat >conftest.$ac_ext <<_ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h. */
31176 #include <sys/types.h>
31188 rm -f conftest.$ac_objext
31189 if { (ac_try="$ac_compile"
31190 case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_compile") 2>conftest.er1
31197 grep -v '^ *+' conftest.er1 >conftest.err
31199 cat conftest.err >&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); } && {
31202 test -z "$ac_c_werror_flag" ||
31203 test ! -s conftest.err
31204 } && test -s conftest.$ac_objext; then
31205 eval "$as_ac_Header=yes"
31207 echo "$as_me: failed program was:" >&5
31208 sed 's/^/| /' conftest.$ac_ext >&5
31210 eval "$as_ac_Header=no"
31213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31215 ac_res=`eval echo '${'$as_ac_Header'}'`
31216 { echo "$as_me:$LINENO: result: $ac_res" >&5
31217 echo "${ECHO_T}$ac_res" >&6; }
31218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31219 cat >>confdefs.h <<_ACEOF
31220 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31223 ac_header_dirent=$ac_hdr; break
31227 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31228 if test $ac_header_dirent = dirent.h; then
31229 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31230 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31231 if test "${ac_cv_search_opendir+set}" = set; then
31232 echo $ECHO_N "(cached) $ECHO_C" >&6
31234 ac_func_search_save_LIBS=$LIBS
31235 cat >conftest.$ac_ext <<_ACEOF
31238 cat confdefs.h >>conftest.$ac_ext
31239 cat >>conftest.$ac_ext <<_ACEOF
31240 /* end confdefs.h. */
31242 /* Override any GCC internal prototype to avoid an error.
31243 Use char because int might match the return type of a GCC
31244 builtin and then its argument prototype would still apply. */
31257 for ac_lib in '' dir; do
31258 if test -z "$ac_lib"; then
31259 ac_res="none required"
31262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31264 rm -f conftest.$ac_objext conftest$ac_exeext
31265 if { (ac_try="$ac_link"
31266 case "(($ac_try" in
31267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31268 *) ac_try_echo=$ac_try;;
31270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31271 (eval "$ac_link") 2>conftest.er1
31273 grep -v '^ *+' conftest.er1 >conftest.err
31275 cat conftest.err >&5
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); } && {
31278 test -z "$ac_c_werror_flag" ||
31279 test ! -s conftest.err
31280 } && test -s conftest$ac_exeext &&
31281 $as_test_x conftest$ac_exeext; then
31282 ac_cv_search_opendir=$ac_res
31284 echo "$as_me: failed program was:" >&5
31285 sed 's/^/| /' conftest.$ac_ext >&5
31290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31292 if test "${ac_cv_search_opendir+set}" = set; then
31296 if test "${ac_cv_search_opendir+set}" = set; then
31299 ac_cv_search_opendir=no
31301 rm conftest.$ac_ext
31302 LIBS=$ac_func_search_save_LIBS
31304 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31305 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31306 ac_res=$ac_cv_search_opendir
31307 if test "$ac_res" != no; then
31308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31313 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31314 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31315 if test "${ac_cv_search_opendir+set}" = set; then
31316 echo $ECHO_N "(cached) $ECHO_C" >&6
31318 ac_func_search_save_LIBS=$LIBS
31319 cat >conftest.$ac_ext <<_ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h. */
31326 /* Override any GCC internal prototype to avoid an error.
31327 Use char because int might match the return type of a GCC
31328 builtin and then its argument prototype would still apply. */
31341 for ac_lib in '' x; do
31342 if test -z "$ac_lib"; then
31343 ac_res="none required"
31346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31348 rm -f conftest.$ac_objext conftest$ac_exeext
31349 if { (ac_try="$ac_link"
31350 case "(($ac_try" in
31351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31352 *) ac_try_echo=$ac_try;;
31354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31355 (eval "$ac_link") 2>conftest.er1
31357 grep -v '^ *+' conftest.er1 >conftest.err
31359 cat conftest.err >&5
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); } && {
31362 test -z "$ac_c_werror_flag" ||
31363 test ! -s conftest.err
31364 } && test -s conftest$ac_exeext &&
31365 $as_test_x conftest$ac_exeext; then
31366 ac_cv_search_opendir=$ac_res
31368 echo "$as_me: failed program was:" >&5
31369 sed 's/^/| /' conftest.$ac_ext >&5
31374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31376 if test "${ac_cv_search_opendir+set}" = set; then
31380 if test "${ac_cv_search_opendir+set}" = set; then
31383 ac_cv_search_opendir=no
31385 rm conftest.$ac_ext
31386 LIBS=$ac_func_search_save_LIBS
31388 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31389 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31390 ac_res=$ac_cv_search_opendir
31391 if test "$ac_res" != no; then
31392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31398 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31399 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31400 if test "${ac_cv_header_stat_broken+set}" = set; then
31401 echo $ECHO_N "(cached) $ECHO_C" >&6
31403 cat >conftest.$ac_ext <<_ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h. */
31409 #include <sys/types.h>
31410 #include <sys/stat.h>
31412 #if defined S_ISBLK && defined S_IFDIR
31413 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31416 #if defined S_ISBLK && defined S_IFCHR
31417 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31420 #if defined S_ISLNK && defined S_IFREG
31421 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31424 #if defined S_ISSOCK && defined S_IFREG
31425 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31429 rm -f conftest.$ac_objext
31430 if { (ac_try="$ac_compile"
31431 case "(($ac_try" in
31432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31433 *) ac_try_echo=$ac_try;;
31435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31436 (eval "$ac_compile") 2>conftest.er1
31438 grep -v '^ *+' conftest.er1 >conftest.err
31440 cat conftest.err >&5
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); } && {
31443 test -z "$ac_c_werror_flag" ||
31444 test ! -s conftest.err
31445 } && test -s conftest.$ac_objext; then
31446 ac_cv_header_stat_broken=no
31448 echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31451 ac_cv_header_stat_broken=yes
31454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31456 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31457 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31458 if test $ac_cv_header_stat_broken = yes; then
31460 cat >>confdefs.h <<\_ACEOF
31461 #define STAT_MACROS_BROKEN 1
31466 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31467 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31468 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31469 echo $ECHO_N "(cached) $ECHO_C" >&6
31471 cat >conftest.$ac_ext <<_ACEOF
31474 cat confdefs.h >>conftest.$ac_ext
31475 cat >>conftest.$ac_ext <<_ACEOF
31476 /* end confdefs.h. */
31477 #include <sys/types.h>
31478 #include <sys/wait.h>
31479 #ifndef WEXITSTATUS
31480 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31483 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31496 rm -f conftest.$ac_objext
31497 if { (ac_try="$ac_compile"
31498 case "(($ac_try" in
31499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31500 *) ac_try_echo=$ac_try;;
31502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31503 (eval "$ac_compile") 2>conftest.er1
31505 grep -v '^ *+' conftest.er1 >conftest.err
31507 cat conftest.err >&5
31508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31509 (exit $ac_status); } && {
31510 test -z "$ac_c_werror_flag" ||
31511 test ! -s conftest.err
31512 } && test -s conftest.$ac_objext; then
31513 ac_cv_header_sys_wait_h=yes
31515 echo "$as_me: failed program was:" >&5
31516 sed 's/^/| /' conftest.$ac_ext >&5
31518 ac_cv_header_sys_wait_h=no
31521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31523 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31524 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31525 if test $ac_cv_header_sys_wait_h = yes; then
31527 cat >>confdefs.h <<\_ACEOF
31528 #define HAVE_SYS_WAIT_H 1
31533 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31534 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31535 if test "${ac_cv_header_time+set}" = set; then
31536 echo $ECHO_N "(cached) $ECHO_C" >&6
31538 cat >conftest.$ac_ext <<_ACEOF
31541 cat confdefs.h >>conftest.$ac_ext
31542 cat >>conftest.$ac_ext <<_ACEOF
31543 /* end confdefs.h. */
31544 #include <sys/types.h>
31545 #include <sys/time.h>
31551 if ((struct tm *) 0)
31557 rm -f conftest.$ac_objext
31558 if { (ac_try="$ac_compile"
31559 case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_compile") 2>conftest.er1
31566 grep -v '^ *+' conftest.er1 >conftest.err
31568 cat conftest.err >&5
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); } && {
31571 test -z "$ac_c_werror_flag" ||
31572 test ! -s conftest.err
31573 } && test -s conftest.$ac_objext; then
31574 ac_cv_header_time=yes
31576 echo "$as_me: failed program was:" >&5
31577 sed 's/^/| /' conftest.$ac_ext >&5
31579 ac_cv_header_time=no
31582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31584 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31585 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31586 if test $ac_cv_header_time = yes; then
31588 cat >>confdefs.h <<\_ACEOF
31589 #define TIME_WITH_SYS_TIME 1
31594 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31595 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31596 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31597 echo $ECHO_N "(cached) $ECHO_C" >&6
31599 cat >conftest.$ac_ext <<_ACEOF
31602 cat confdefs.h >>conftest.$ac_ext
31603 cat >>conftest.$ac_ext <<_ACEOF
31604 /* end confdefs.h. */
31605 $ac_includes_default
31609 static struct stat ac_aggr;
31610 if (ac_aggr.st_blksize)
31616 rm -f conftest.$ac_objext
31617 if { (ac_try="$ac_compile"
31618 case "(($ac_try" in
31619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_compile") 2>conftest.er1
31625 grep -v '^ *+' conftest.er1 >conftest.err
31627 cat conftest.err >&5
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); } && {
31630 test -z "$ac_c_werror_flag" ||
31631 test ! -s conftest.err
31632 } && test -s conftest.$ac_objext; then
31633 ac_cv_member_struct_stat_st_blksize=yes
31635 echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31638 cat >conftest.$ac_ext <<_ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h. */
31644 $ac_includes_default
31648 static struct stat ac_aggr;
31649 if (sizeof ac_aggr.st_blksize)
31655 rm -f conftest.$ac_objext
31656 if { (ac_try="$ac_compile"
31657 case "(($ac_try" in
31658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31659 *) ac_try_echo=$ac_try;;
31661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31662 (eval "$ac_compile") 2>conftest.er1
31664 grep -v '^ *+' conftest.er1 >conftest.err
31666 cat conftest.err >&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } && {
31669 test -z "$ac_c_werror_flag" ||
31670 test ! -s conftest.err
31671 } && test -s conftest.$ac_objext; then
31672 ac_cv_member_struct_stat_st_blksize=yes
31674 echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31677 ac_cv_member_struct_stat_st_blksize=no
31680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31685 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31686 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31687 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31689 cat >>confdefs.h <<_ACEOF
31690 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31694 cat >>confdefs.h <<\_ACEOF
31695 #define HAVE_ST_BLKSIZE 1
31701 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31702 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31703 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31704 echo $ECHO_N "(cached) $ECHO_C" >&6
31706 cat >conftest.$ac_ext <<_ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h. */
31712 $ac_includes_default
31716 static struct stat ac_aggr;
31717 if (ac_aggr.st_blocks)
31723 rm -f conftest.$ac_objext
31724 if { (ac_try="$ac_compile"
31725 case "(($ac_try" in
31726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31727 *) ac_try_echo=$ac_try;;
31729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31730 (eval "$ac_compile") 2>conftest.er1
31732 grep -v '^ *+' conftest.er1 >conftest.err
31734 cat conftest.err >&5
31735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736 (exit $ac_status); } && {
31737 test -z "$ac_c_werror_flag" ||
31738 test ! -s conftest.err
31739 } && test -s conftest.$ac_objext; then
31740 ac_cv_member_struct_stat_st_blocks=yes
31742 echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31745 cat >conftest.$ac_ext <<_ACEOF
31748 cat confdefs.h >>conftest.$ac_ext
31749 cat >>conftest.$ac_ext <<_ACEOF
31750 /* end confdefs.h. */
31751 $ac_includes_default
31755 static struct stat ac_aggr;
31756 if (sizeof ac_aggr.st_blocks)
31762 rm -f conftest.$ac_objext
31763 if { (ac_try="$ac_compile"
31764 case "(($ac_try" in
31765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766 *) ac_try_echo=$ac_try;;
31768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769 (eval "$ac_compile") 2>conftest.er1
31771 grep -v '^ *+' conftest.er1 >conftest.err
31773 cat conftest.err >&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); } && {
31776 test -z "$ac_c_werror_flag" ||
31777 test ! -s conftest.err
31778 } && test -s conftest.$ac_objext; then
31779 ac_cv_member_struct_stat_st_blocks=yes
31781 echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31784 ac_cv_member_struct_stat_st_blocks=no
31787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31792 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31793 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31794 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31796 cat >>confdefs.h <<_ACEOF
31797 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31801 cat >>confdefs.h <<\_ACEOF
31802 #define HAVE_ST_BLOCKS 1
31806 case " $LIBOBJS " in
31807 *" fileblocks.$ac_objext "* ) ;;
31808 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31815 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31816 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31817 if test "${ac_cv_struct_tm+set}" = set; then
31818 echo $ECHO_N "(cached) $ECHO_C" >&6
31820 cat >conftest.$ac_ext <<_ACEOF
31823 cat confdefs.h >>conftest.$ac_ext
31824 cat >>conftest.$ac_ext <<_ACEOF
31825 /* end confdefs.h. */
31826 #include <sys/types.h>
31833 int *p = &tm.tm_sec;
31839 rm -f conftest.$ac_objext
31840 if { (ac_try="$ac_compile"
31841 case "(($ac_try" in
31842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_compile") 2>conftest.er1
31848 grep -v '^ *+' conftest.er1 >conftest.err
31850 cat conftest.err >&5
31851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852 (exit $ac_status); } && {
31853 test -z "$ac_c_werror_flag" ||
31854 test ! -s conftest.err
31855 } && test -s conftest.$ac_objext; then
31856 ac_cv_struct_tm=time.h
31858 echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31861 ac_cv_struct_tm=sys/time.h
31864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31866 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31867 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31868 if test $ac_cv_struct_tm = sys/time.h; then
31870 cat >>confdefs.h <<\_ACEOF
31871 #define TM_IN_SYS_TIME 1
31876 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31877 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31878 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31879 echo $ECHO_N "(cached) $ECHO_C" >&6
31881 cat >conftest.$ac_ext <<_ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h. */
31887 #include <sys/types.h>
31888 #include <$ac_cv_struct_tm>
31894 static struct tm ac_aggr;
31895 if (ac_aggr.tm_zone)
31901 rm -f conftest.$ac_objext
31902 if { (ac_try="$ac_compile"
31903 case "(($ac_try" in
31904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31905 *) ac_try_echo=$ac_try;;
31907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31908 (eval "$ac_compile") 2>conftest.er1
31910 grep -v '^ *+' conftest.er1 >conftest.err
31912 cat conftest.err >&5
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); } && {
31915 test -z "$ac_c_werror_flag" ||
31916 test ! -s conftest.err
31917 } && test -s conftest.$ac_objext; then
31918 ac_cv_member_struct_tm_tm_zone=yes
31920 echo "$as_me: failed program was:" >&5
31921 sed 's/^/| /' conftest.$ac_ext >&5
31923 cat >conftest.$ac_ext <<_ACEOF
31926 cat confdefs.h >>conftest.$ac_ext
31927 cat >>conftest.$ac_ext <<_ACEOF
31928 /* end confdefs.h. */
31929 #include <sys/types.h>
31930 #include <$ac_cv_struct_tm>
31936 static struct tm ac_aggr;
31937 if (sizeof ac_aggr.tm_zone)
31943 rm -f conftest.$ac_objext
31944 if { (ac_try="$ac_compile"
31945 case "(($ac_try" in
31946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947 *) ac_try_echo=$ac_try;;
31949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950 (eval "$ac_compile") 2>conftest.er1
31952 grep -v '^ *+' conftest.er1 >conftest.err
31954 cat conftest.err >&5
31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956 (exit $ac_status); } && {
31957 test -z "$ac_c_werror_flag" ||
31958 test ! -s conftest.err
31959 } && test -s conftest.$ac_objext; then
31960 ac_cv_member_struct_tm_tm_zone=yes
31962 echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31965 ac_cv_member_struct_tm_tm_zone=no
31968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31974 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31975 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31977 cat >>confdefs.h <<_ACEOF
31978 #define HAVE_STRUCT_TM_TM_ZONE 1
31984 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31986 cat >>confdefs.h <<\_ACEOF
31987 #define HAVE_TM_ZONE 1
31991 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31992 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31993 if test "${ac_cv_have_decl_tzname+set}" = set; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31996 cat >conftest.$ac_ext <<_ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h. */
32015 rm -f conftest.$ac_objext
32016 if { (ac_try="$ac_compile"
32017 case "(($ac_try" in
32018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32019 *) ac_try_echo=$ac_try;;
32021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32022 (eval "$ac_compile") 2>conftest.er1
32024 grep -v '^ *+' conftest.er1 >conftest.err
32026 cat conftest.err >&5
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); } && {
32029 test -z "$ac_c_werror_flag" ||
32030 test ! -s conftest.err
32031 } && test -s conftest.$ac_objext; then
32032 ac_cv_have_decl_tzname=yes
32034 echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32037 ac_cv_have_decl_tzname=no
32040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32042 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32043 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32044 if test $ac_cv_have_decl_tzname = yes; then
32046 cat >>confdefs.h <<_ACEOF
32047 #define HAVE_DECL_TZNAME 1
32052 cat >>confdefs.h <<_ACEOF
32053 #define HAVE_DECL_TZNAME 0
32060 { echo "$as_me:$LINENO: checking for tzname" >&5
32061 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32062 if test "${ac_cv_var_tzname+set}" = set; then
32063 echo $ECHO_N "(cached) $ECHO_C" >&6
32065 cat >conftest.$ac_ext <<_ACEOF
32068 cat confdefs.h >>conftest.$ac_ext
32069 cat >>conftest.$ac_ext <<_ACEOF
32070 /* end confdefs.h. */
32072 #if !HAVE_DECL_TZNAME
32073 extern char *tzname[];
32079 return tzname[0][0];
32084 rm -f conftest.$ac_objext conftest$ac_exeext
32085 if { (ac_try="$ac_link"
32086 case "(($ac_try" in
32087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32088 *) ac_try_echo=$ac_try;;
32090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32091 (eval "$ac_link") 2>conftest.er1
32093 grep -v '^ *+' conftest.er1 >conftest.err
32095 cat conftest.err >&5
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); } && {
32098 test -z "$ac_c_werror_flag" ||
32099 test ! -s conftest.err
32100 } && test -s conftest$ac_exeext &&
32101 $as_test_x conftest$ac_exeext; then
32102 ac_cv_var_tzname=yes
32104 echo "$as_me: failed program was:" >&5
32105 sed 's/^/| /' conftest.$ac_ext >&5
32107 ac_cv_var_tzname=no
32110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32111 conftest$ac_exeext conftest.$ac_ext
32113 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32114 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32115 if test $ac_cv_var_tzname = yes; then
32117 cat >>confdefs.h <<\_ACEOF
32118 #define HAVE_TZNAME 1
32125 { echo "$as_me:$LINENO: checking for utime.h" >&5
32126 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32127 if test "${ba_cv_header_utime_h+set}" = set; then
32128 echo $ECHO_N "(cached) $ECHO_C" >&6
32131 cat >conftest.$ac_ext <<_ACEOF
32134 cat confdefs.h >>conftest.$ac_ext
32135 cat >>conftest.$ac_ext <<_ACEOF
32136 /* end confdefs.h. */
32138 #include <sys/types.h>
32151 rm -f conftest.$ac_objext
32152 if { (ac_try="$ac_compile"
32153 case "(($ac_try" in
32154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155 *) ac_try_echo=$ac_try;;
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158 (eval "$ac_compile") 2>conftest.er1
32160 grep -v '^ *+' conftest.er1 >conftest.err
32162 cat conftest.err >&5
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); } && {
32165 test -z "$ac_c_werror_flag" ||
32166 test ! -s conftest.err
32167 } && test -s conftest.$ac_objext; then
32169 ba_cv_header_utime_h=yes
32172 echo "$as_me: failed program was:" >&5
32173 sed 's/^/| /' conftest.$ac_ext >&5
32176 ba_cv_header_utime_h=no
32181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32185 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32186 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32187 test $ba_cv_header_utime_h = yes &&
32188 cat >>confdefs.h <<\_ACEOF
32189 #define HAVE_UTIME_H 1
32193 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32194 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32195 if test "${ba_cv_header_socklen_t+set}" = set; then
32196 echo $ECHO_N "(cached) $ECHO_C" >&6
32199 cat >conftest.$ac_ext <<_ACEOF
32202 cat confdefs.h >>conftest.$ac_ext
32203 cat >>conftest.$ac_ext <<_ACEOF
32204 /* end confdefs.h. */
32206 #include <sys/types.h>
32207 #include <sys/socket.h>
32219 rm -f conftest.$ac_objext
32220 if { (ac_try="$ac_compile"
32221 case "(($ac_try" in
32222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32223 *) ac_try_echo=$ac_try;;
32225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32226 (eval "$ac_compile") 2>conftest.er1
32228 grep -v '^ *+' conftest.er1 >conftest.err
32230 cat conftest.err >&5
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); } && {
32233 test -z "$ac_c_werror_flag" ||
32234 test ! -s conftest.err
32235 } && test -s conftest.$ac_objext; then
32237 ba_cv_header_socklen_t=yes
32240 echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32244 ba_cv_header_socklen_t=no
32249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32253 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32254 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32255 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32256 #define HAVE_SOCKLEN_T 1
32260 { echo "$as_me:$LINENO: checking for bigendian" >&5
32261 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32262 if test "${ba_cv_bigendian+set}" = set; then
32263 echo $ECHO_N "(cached) $ECHO_C" >&6
32266 if test "$cross_compiling" = yes; then
32272 cat >conftest.$ac_ext <<_ACEOF
32275 cat confdefs.h >>conftest.$ac_ext
32276 cat >>conftest.$ac_ext <<_ACEOF
32277 /* end confdefs.h. */
32279 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32282 rm -f conftest$ac_exeext
32283 if { (ac_try="$ac_link"
32284 case "(($ac_try" in
32285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286 *) ac_try_echo=$ac_try;;
32288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289 (eval "$ac_link") 2>&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32293 { (case "(($ac_try" in
32294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295 *) ac_try_echo=$ac_try;;
32297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298 (eval "$ac_try") 2>&5
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; }; then
32303 ba_cv_bigendian=yes
32306 echo "$as_me: program exited with status $ac_status" >&5
32307 echo "$as_me: failed program was:" >&5
32308 sed 's/^/| /' conftest.$ac_ext >&5
32310 ( exit $ac_status )
32315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32322 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32323 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32324 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32325 #define HAVE_BIGENDIAN 1
32330 ac_cpp='$CXXCPP $CPPFLAGS'
32331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32335 { echo "$as_me:$LINENO: checking for typeof" >&5
32336 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32337 if test "${ba_cv_have_typeof+set}" = set; then
32338 echo $ECHO_N "(cached) $ECHO_C" >&6
32341 if test "$cross_compiling" = yes; then
32343 ba_cv_have_typeof=no
32347 cat >conftest.$ac_ext <<_ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h. */
32354 main(){char *a = 0; a = (typeof a)a;}
32357 rm -f conftest$ac_exeext
32358 if { (ac_try="$ac_link"
32359 case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_link") 2>&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32368 { (case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32378 ba_cv_have_typeof=yes
32381 echo "$as_me: program exited with status $ac_status" >&5
32382 echo "$as_me: failed program was:" >&5
32383 sed 's/^/| /' conftest.$ac_ext >&5
32385 ( exit $ac_status )
32387 ba_cv_have_typeof=no
32390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32397 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32398 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32399 test $ba_cv_have_typeof = yes &&
32400 cat >>confdefs.h <<\_ACEOF
32401 #define HAVE_TYPEOF 1
32405 ac_cpp='$CPP $CPPFLAGS'
32406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32412 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32413 if test "${ac_cv_c_const+set}" = set; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32416 cat >conftest.$ac_ext <<_ACEOF
32419 cat confdefs.h >>conftest.$ac_ext
32420 cat >>conftest.$ac_ext <<_ACEOF
32421 /* end confdefs.h. */
32426 /* FIXME: Include the comments suggested by Paul. */
32427 #ifndef __cplusplus
32428 /* Ultrix mips cc rejects this. */
32429 typedef int charset[2];
32431 /* SunOS 4.1.1 cc rejects this. */
32432 char const *const *pcpcc;
32434 /* NEC SVR4.0.2 mips cc rejects this. */
32435 struct point {int x, y;};
32436 static struct point const zero = {0,0};
32437 /* AIX XL C 1.02.0.0 rejects this.
32438 It does not let you subtract one const X* pointer from another in
32439 an arm of an if-expression whose if-part is not a constant
32441 const char *g = "string";
32442 pcpcc = &g + (g ? g-g : 0);
32443 /* HPUX 7.0 cc rejects these. */
32445 ppc = (char**) pcpcc;
32446 pcpcc = (char const *const *) ppc;
32447 { /* SCO 3.2v4 cc rejects this. */
32449 char const *s = 0 ? (char *) 0 : (char const *) 0;
32454 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32455 int x[] = {25, 17};
32456 const int *foo = &x[0];
32459 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32460 typedef const int *iptr;
32464 { /* AIX XL C 1.02.0.0 rejects this saying
32465 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32466 struct s { int j; const int *ap[3]; };
32467 struct s *b; b->j = 5;
32469 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32470 const int foo = 10;
32471 if (!foo) return 0;
32473 return !cs[0] && !zero.x;
32480 rm -f conftest.$ac_objext
32481 if { (ac_try="$ac_compile"
32482 case "(($ac_try" in
32483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484 *) ac_try_echo=$ac_try;;
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487 (eval "$ac_compile") 2>conftest.er1
32489 grep -v '^ *+' conftest.er1 >conftest.err
32491 cat conftest.err >&5
32492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493 (exit $ac_status); } && {
32494 test -z "$ac_c_werror_flag" ||
32495 test ! -s conftest.err
32496 } && test -s conftest.$ac_objext; then
32499 echo "$as_me: failed program was:" >&5
32500 sed 's/^/| /' conftest.$ac_ext >&5
32505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32507 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32508 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32509 if test $ac_cv_c_const = no; then
32511 cat >>confdefs.h <<\_ACEOF
32518 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32519 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32521 # The order of these tests is important.
32522 cat >conftest.$ac_ext <<_ACEOF
32525 cat confdefs.h >>conftest.$ac_ext
32526 cat >>conftest.$ac_ext <<_ACEOF
32527 /* end confdefs.h. */
32529 #include <sys/statvfs.h>
32530 #include <sys/fstyp.h>
32533 if { (ac_try="$ac_cpp conftest.$ac_ext"
32534 case "(($ac_try" in
32535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32536 *) ac_try_echo=$ac_try;;
32538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32541 grep -v '^ *+' conftest.er1 >conftest.err
32543 cat conftest.err >&5
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); } >/dev/null && {
32546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32547 test ! -s conftest.err
32549 cat >>confdefs.h <<\_ACEOF
32550 #define FSTYPE_STATVFS 1
32555 echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32561 rm -f conftest.err conftest.$ac_ext
32562 if test $fstype = no; then
32563 cat >conftest.$ac_ext <<_ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h. */
32570 #include <sys/statfs.h>
32571 #include <sys/fstyp.h>
32574 if { (ac_try="$ac_cpp conftest.$ac_ext"
32575 case "(($ac_try" in
32576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577 *) ac_try_echo=$ac_try;;
32579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32582 grep -v '^ *+' conftest.er1 >conftest.err
32584 cat conftest.err >&5
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } >/dev/null && {
32587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32588 test ! -s conftest.err
32590 cat >>confdefs.h <<\_ACEOF
32591 #define FSTYPE_USG_STATFS 1
32596 echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32602 rm -f conftest.err conftest.$ac_ext
32604 if test $fstype = no; then
32605 cat >conftest.$ac_ext <<_ACEOF
32608 cat confdefs.h >>conftest.$ac_ext
32609 cat >>conftest.$ac_ext <<_ACEOF
32610 /* end confdefs.h. */
32612 #include <sys/statfs.h>
32613 #include <sys/vmount.h>
32616 if { (ac_try="$ac_cpp conftest.$ac_ext"
32617 case "(($ac_try" in
32618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619 *) ac_try_echo=$ac_try;;
32621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32624 grep -v '^ *+' conftest.er1 >conftest.err
32626 cat conftest.err >&5
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); } >/dev/null && {
32629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32630 test ! -s conftest.err
32632 cat >>confdefs.h <<\_ACEOF
32633 #define FSTYPE_AIX_STATFS 1
32638 echo "$as_me: failed program was:" >&5
32639 sed 's/^/| /' conftest.$ac_ext >&5
32644 rm -f conftest.err conftest.$ac_ext
32646 if test $fstype = no; then
32647 cat >conftest.$ac_ext <<_ACEOF
32650 cat confdefs.h >>conftest.$ac_ext
32651 cat >>conftest.$ac_ext <<_ACEOF
32652 /* end confdefs.h. */
32654 #include <mntent.h>
32657 if { (ac_try="$ac_cpp conftest.$ac_ext"
32658 case "(($ac_try" in
32659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660 *) ac_try_echo=$ac_try;;
32662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32665 grep -v '^ *+' conftest.er1 >conftest.err
32667 cat conftest.err >&5
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); } >/dev/null && {
32670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32671 test ! -s conftest.err
32673 cat >>confdefs.h <<\_ACEOF
32674 #define FSTYPE_MNTENT 1
32679 echo "$as_me: failed program was:" >&5
32680 sed 's/^/| /' conftest.$ac_ext >&5
32685 rm -f conftest.err conftest.$ac_ext
32687 if test $fstype = no; then
32688 cat >conftest.$ac_ext <<_ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h. */
32694 #include <sys/mount.h>
32697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32698 $EGREP "f_type;" >/dev/null 2>&1; then
32699 cat >>confdefs.h <<\_ACEOF
32700 #define FSTYPE_STATFS 1
32707 if test $fstype = no; then
32708 cat >conftest.$ac_ext <<_ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h. */
32715 #include <sys/mount.h>
32716 #include <sys/fs_types.h>
32719 if { (ac_try="$ac_cpp conftest.$ac_ext"
32720 case "(($ac_try" in
32721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722 *) ac_try_echo=$ac_try;;
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32727 grep -v '^ *+' conftest.er1 >conftest.err
32729 cat conftest.err >&5
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); } >/dev/null && {
32732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32733 test ! -s conftest.err
32735 cat >>confdefs.h <<\_ACEOF
32736 #define FSTYPE_GETMNT 1
32741 echo "$as_me: failed program was:" >&5
32742 sed 's/^/| /' conftest.$ac_ext >&5
32747 rm -f conftest.err conftest.$ac_ext
32749 { echo "$as_me:$LINENO: result: $fstype" >&5
32750 echo "${ECHO_T}$fstype" >&6; }
32752 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32753 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32754 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32755 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32758 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32759 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32761 # Is the header compilable?
32762 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32763 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32764 cat >conftest.$ac_ext <<_ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h. */
32770 $ac_includes_default
32771 #include <sys/statvfs.h>
32773 rm -f conftest.$ac_objext
32774 if { (ac_try="$ac_compile"
32775 case "(($ac_try" in
32776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777 *) ac_try_echo=$ac_try;;
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780 (eval "$ac_compile") 2>conftest.er1
32782 grep -v '^ *+' conftest.er1 >conftest.err
32784 cat conftest.err >&5
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); } && {
32787 test -z "$ac_c_werror_flag" ||
32788 test ! -s conftest.err
32789 } && test -s conftest.$ac_objext; then
32790 ac_header_compiler=yes
32792 echo "$as_me: failed program was:" >&5
32793 sed 's/^/| /' conftest.$ac_ext >&5
32795 ac_header_compiler=no
32798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32800 echo "${ECHO_T}$ac_header_compiler" >&6; }
32802 # Is the header present?
32803 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32804 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32805 cat >conftest.$ac_ext <<_ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h. */
32811 #include <sys/statvfs.h>
32813 if { (ac_try="$ac_cpp conftest.$ac_ext"
32814 case "(($ac_try" in
32815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32816 *) ac_try_echo=$ac_try;;
32818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32821 grep -v '^ *+' conftest.er1 >conftest.err
32823 cat conftest.err >&5
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); } >/dev/null && {
32826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32827 test ! -s conftest.err
32829 ac_header_preproc=yes
32831 echo "$as_me: failed program was:" >&5
32832 sed 's/^/| /' conftest.$ac_ext >&5
32834 ac_header_preproc=no
32837 rm -f conftest.err conftest.$ac_ext
32838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32839 echo "${ECHO_T}$ac_header_preproc" >&6; }
32841 # So? What about this header?
32842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32844 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32846 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32847 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32848 ac_header_preproc=yes
32851 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32852 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32853 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32854 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32855 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32856 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32857 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32858 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32859 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32860 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32861 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32862 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32866 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32867 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32868 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32869 echo $ECHO_N "(cached) $ECHO_C" >&6
32871 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32873 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32874 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32877 if test $ac_cv_header_sys_statvfs_h = yes; then
32879 cat >>confdefs.h <<\_ACEOF
32880 #define HAVE_SYS_STATVFS_H 1
32887 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32888 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32889 if test "${ac_cv_type_signal+set}" = set; then
32890 echo $ECHO_N "(cached) $ECHO_C" >&6
32892 cat >conftest.$ac_ext <<_ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h. */
32898 #include <sys/types.h>
32899 #include <signal.h>
32904 return *(signal (0, 0)) (0) == 1;
32909 rm -f conftest.$ac_objext
32910 if { (ac_try="$ac_compile"
32911 case "(($ac_try" in
32912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913 *) ac_try_echo=$ac_try;;
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_compile") 2>conftest.er1
32918 grep -v '^ *+' conftest.er1 >conftest.err
32920 cat conftest.err >&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } && {
32923 test -z "$ac_c_werror_flag" ||
32924 test ! -s conftest.err
32925 } && test -s conftest.$ac_objext; then
32926 ac_cv_type_signal=int
32928 echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32931 ac_cv_type_signal=void
32934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32936 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32937 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32939 cat >>confdefs.h <<_ACEOF
32940 #define RETSIGTYPE $ac_cv_type_signal
32945 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32946 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32947 if test "${bash_cv_signal_vintage+set}" = set; then
32948 echo $ECHO_N "(cached) $ECHO_C" >&6
32951 cat >conftest.$ac_ext <<_ACEOF
32954 cat confdefs.h >>conftest.$ac_ext
32955 cat >>conftest.$ac_ext <<_ACEOF
32956 /* end confdefs.h. */
32957 #include <signal.h>
32963 struct sigaction sa;
32964 sigemptyset(&ss); sigsuspend(&ss);
32965 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32966 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32972 rm -f conftest.$ac_objext conftest$ac_exeext
32973 if { (ac_try="$ac_link"
32974 case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_link") 2>conftest.er1
32981 grep -v '^ *+' conftest.er1 >conftest.err
32983 cat conftest.err >&5
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); } && {
32986 test -z "$ac_c_werror_flag" ||
32987 test ! -s conftest.err
32988 } && test -s conftest$ac_exeext &&
32989 $as_test_x conftest$ac_exeext; then
32990 bash_cv_signal_vintage="posix"
32992 echo "$as_me: failed program was:" >&5
32993 sed 's/^/| /' conftest.$ac_ext >&5
32996 cat >conftest.$ac_ext <<_ACEOF
32999 cat confdefs.h >>conftest.$ac_ext
33000 cat >>conftest.$ac_ext <<_ACEOF
33001 /* end confdefs.h. */
33002 #include <signal.h>
33007 int mask = sigmask(SIGINT);
33008 sigsetmask(mask); sigblock(mask); sigpause(mask);
33014 rm -f conftest.$ac_objext conftest$ac_exeext
33015 if { (ac_try="$ac_link"
33016 case "(($ac_try" in
33017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33018 *) ac_try_echo=$ac_try;;
33020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33021 (eval "$ac_link") 2>conftest.er1
33023 grep -v '^ *+' conftest.er1 >conftest.err
33025 cat conftest.err >&5
33026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027 (exit $ac_status); } && {
33028 test -z "$ac_c_werror_flag" ||
33029 test ! -s conftest.err
33030 } && test -s conftest$ac_exeext &&
33031 $as_test_x conftest$ac_exeext; then
33032 bash_cv_signal_vintage="4.2bsd"
33034 echo "$as_me: failed program was:" >&5
33035 sed 's/^/| /' conftest.$ac_ext >&5
33038 cat >conftest.$ac_ext <<_ACEOF
33041 cat confdefs.h >>conftest.$ac_ext
33042 cat >>conftest.$ac_ext <<_ACEOF
33043 /* end confdefs.h. */
33045 #include <signal.h>
33046 RETSIGTYPE foo() { }
33051 int mask = sigmask(SIGINT);
33052 sigset(SIGINT, foo); sigrelse(SIGINT);
33053 sighold(SIGINT); sigpause(SIGINT);
33059 rm -f conftest.$ac_objext conftest$ac_exeext
33060 if { (ac_try="$ac_link"
33061 case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066 (eval "$ac_link") 2>conftest.er1
33068 grep -v '^ *+' conftest.er1 >conftest.err
33070 cat conftest.err >&5
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); } && {
33073 test -z "$ac_c_werror_flag" ||
33074 test ! -s conftest.err
33075 } && test -s conftest$ac_exeext &&
33076 $as_test_x conftest$ac_exeext; then
33077 bash_cv_signal_vintage="svr3"
33079 echo "$as_me: failed program was:" >&5
33080 sed 's/^/| /' conftest.$ac_ext >&5
33082 bash_cv_signal_vintage="v7"
33086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33087 conftest$ac_exeext conftest.$ac_ext
33091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33092 conftest$ac_exeext conftest.$ac_ext
33096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33097 conftest$ac_exeext conftest.$ac_ext
33101 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33102 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33103 if test "$bash_cv_signal_vintage" = "posix"; then
33104 cat >>confdefs.h <<\_ACEOF
33105 #define HAVE_POSIX_SIGNALS 1
33108 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33109 cat >>confdefs.h <<\_ACEOF
33110 #define HAVE_BSD_SIGNALS 1
33113 elif test "$bash_cv_signal_vintage" = "svr3"; then
33114 cat >>confdefs.h <<\_ACEOF
33115 #define HAVE_USG_SIGHOLD 1
33120 { echo "$as_me:$LINENO: checking for mode_t" >&5
33121 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33122 if test "${ac_cv_type_mode_t+set}" = set; then
33123 echo $ECHO_N "(cached) $ECHO_C" >&6
33125 cat >conftest.$ac_ext <<_ACEOF
33128 cat confdefs.h >>conftest.$ac_ext
33129 cat >>conftest.$ac_ext <<_ACEOF
33130 /* end confdefs.h. */
33131 $ac_includes_default
33132 typedef mode_t ac__type_new_;
33136 if ((ac__type_new_ *) 0)
33138 if (sizeof (ac__type_new_))
33144 rm -f conftest.$ac_objext
33145 if { (ac_try="$ac_compile"
33146 case "(($ac_try" in
33147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33148 *) ac_try_echo=$ac_try;;
33150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33151 (eval "$ac_compile") 2>conftest.er1
33153 grep -v '^ *+' conftest.er1 >conftest.err
33155 cat conftest.err >&5
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); } && {
33158 test -z "$ac_c_werror_flag" ||
33159 test ! -s conftest.err
33160 } && test -s conftest.$ac_objext; then
33161 ac_cv_type_mode_t=yes
33163 echo "$as_me: failed program was:" >&5
33164 sed 's/^/| /' conftest.$ac_ext >&5
33166 ac_cv_type_mode_t=no
33169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33171 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33172 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33173 if test $ac_cv_type_mode_t = yes; then
33177 cat >>confdefs.h <<_ACEOF
33183 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33184 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33185 if test "${ac_cv_type_uid_t+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33188 cat >conftest.$ac_ext <<_ACEOF
33191 cat confdefs.h >>conftest.$ac_ext
33192 cat >>conftest.$ac_ext <<_ACEOF
33193 /* end confdefs.h. */
33194 #include <sys/types.h>
33197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33198 $EGREP "uid_t" >/dev/null 2>&1; then
33199 ac_cv_type_uid_t=yes
33201 ac_cv_type_uid_t=no
33206 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33207 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33208 if test $ac_cv_type_uid_t = no; then
33210 cat >>confdefs.h <<\_ACEOF
33215 cat >>confdefs.h <<\_ACEOF
33221 { echo "$as_me:$LINENO: checking for size_t" >&5
33222 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33223 if test "${ac_cv_type_size_t+set}" = set; then
33224 echo $ECHO_N "(cached) $ECHO_C" >&6
33226 cat >conftest.$ac_ext <<_ACEOF
33229 cat confdefs.h >>conftest.$ac_ext
33230 cat >>conftest.$ac_ext <<_ACEOF
33231 /* end confdefs.h. */
33232 $ac_includes_default
33233 typedef size_t ac__type_new_;
33237 if ((ac__type_new_ *) 0)
33239 if (sizeof (ac__type_new_))
33245 rm -f conftest.$ac_objext
33246 if { (ac_try="$ac_compile"
33247 case "(($ac_try" in
33248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249 *) ac_try_echo=$ac_try;;
33251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252 (eval "$ac_compile") 2>conftest.er1
33254 grep -v '^ *+' conftest.er1 >conftest.err
33256 cat conftest.err >&5
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); } && {
33259 test -z "$ac_c_werror_flag" ||
33260 test ! -s conftest.err
33261 } && test -s conftest.$ac_objext; then
33262 ac_cv_type_size_t=yes
33264 echo "$as_me: failed program was:" >&5
33265 sed 's/^/| /' conftest.$ac_ext >&5
33267 ac_cv_type_size_t=no
33270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33272 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33273 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33274 if test $ac_cv_type_size_t = yes; then
33278 cat >>confdefs.h <<_ACEOF
33279 #define size_t unsigned int
33284 { echo "$as_me:$LINENO: checking for pid_t" >&5
33285 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33286 if test "${ac_cv_type_pid_t+set}" = set; then
33287 echo $ECHO_N "(cached) $ECHO_C" >&6
33289 cat >conftest.$ac_ext <<_ACEOF
33292 cat confdefs.h >>conftest.$ac_ext
33293 cat >>conftest.$ac_ext <<_ACEOF
33294 /* end confdefs.h. */
33295 $ac_includes_default
33296 typedef pid_t ac__type_new_;
33300 if ((ac__type_new_ *) 0)
33302 if (sizeof (ac__type_new_))
33308 rm -f conftest.$ac_objext
33309 if { (ac_try="$ac_compile"
33310 case "(($ac_try" in
33311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33312 *) ac_try_echo=$ac_try;;
33314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33315 (eval "$ac_compile") 2>conftest.er1
33317 grep -v '^ *+' conftest.er1 >conftest.err
33319 cat conftest.err >&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); } && {
33322 test -z "$ac_c_werror_flag" ||
33323 test ! -s conftest.err
33324 } && test -s conftest.$ac_objext; then
33325 ac_cv_type_pid_t=yes
33327 echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33330 ac_cv_type_pid_t=no
33333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33335 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33336 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33337 if test $ac_cv_type_pid_t = yes; then
33341 cat >>confdefs.h <<_ACEOF
33347 { echo "$as_me:$LINENO: checking for off_t" >&5
33348 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33349 if test "${ac_cv_type_off_t+set}" = set; then
33350 echo $ECHO_N "(cached) $ECHO_C" >&6
33352 cat >conftest.$ac_ext <<_ACEOF
33355 cat confdefs.h >>conftest.$ac_ext
33356 cat >>conftest.$ac_ext <<_ACEOF
33357 /* end confdefs.h. */
33358 $ac_includes_default
33359 typedef off_t ac__type_new_;
33363 if ((ac__type_new_ *) 0)
33365 if (sizeof (ac__type_new_))
33371 rm -f conftest.$ac_objext
33372 if { (ac_try="$ac_compile"
33373 case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_compile") 2>conftest.er1
33380 grep -v '^ *+' conftest.er1 >conftest.err
33382 cat conftest.err >&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } && {
33385 test -z "$ac_c_werror_flag" ||
33386 test ! -s conftest.err
33387 } && test -s conftest.$ac_objext; then
33388 ac_cv_type_off_t=yes
33390 echo "$as_me: failed program was:" >&5
33391 sed 's/^/| /' conftest.$ac_ext >&5
33393 ac_cv_type_off_t=no
33396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33399 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33400 if test $ac_cv_type_off_t = yes; then
33404 cat >>confdefs.h <<_ACEOF
33405 #define off_t long int
33410 { echo "$as_me:$LINENO: checking for ino_t" >&5
33411 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33412 if test "${ac_cv_type_ino_t+set}" = set; then
33413 echo $ECHO_N "(cached) $ECHO_C" >&6
33415 cat >conftest.$ac_ext <<_ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h. */
33421 $ac_includes_default
33422 typedef ino_t ac__type_new_;
33426 if ((ac__type_new_ *) 0)
33428 if (sizeof (ac__type_new_))
33434 rm -f conftest.$ac_objext
33435 if { (ac_try="$ac_compile"
33436 case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_compile") 2>conftest.er1
33443 grep -v '^ *+' conftest.er1 >conftest.err
33445 cat conftest.err >&5
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); } && {
33448 test -z "$ac_c_werror_flag" ||
33449 test ! -s conftest.err
33450 } && test -s conftest.$ac_objext; then
33451 ac_cv_type_ino_t=yes
33453 echo "$as_me: failed program was:" >&5
33454 sed 's/^/| /' conftest.$ac_ext >&5
33456 ac_cv_type_ino_t=no
33459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33461 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33462 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33463 if test $ac_cv_type_ino_t = yes; then
33467 cat >>confdefs.h <<_ACEOF
33468 #define ino_t unsigned long
33473 { echo "$as_me:$LINENO: checking for dev_t" >&5
33474 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33475 if test "${ac_cv_type_dev_t+set}" = set; then
33476 echo $ECHO_N "(cached) $ECHO_C" >&6
33478 cat >conftest.$ac_ext <<_ACEOF
33481 cat confdefs.h >>conftest.$ac_ext
33482 cat >>conftest.$ac_ext <<_ACEOF
33483 /* end confdefs.h. */
33484 $ac_includes_default
33485 typedef dev_t ac__type_new_;
33489 if ((ac__type_new_ *) 0)
33491 if (sizeof (ac__type_new_))
33497 rm -f conftest.$ac_objext
33498 if { (ac_try="$ac_compile"
33499 case "(($ac_try" in
33500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33501 *) ac_try_echo=$ac_try;;
33503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33504 (eval "$ac_compile") 2>conftest.er1
33506 grep -v '^ *+' conftest.er1 >conftest.err
33508 cat conftest.err >&5
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); } && {
33511 test -z "$ac_c_werror_flag" ||
33512 test ! -s conftest.err
33513 } && test -s conftest.$ac_objext; then
33514 ac_cv_type_dev_t=yes
33516 echo "$as_me: failed program was:" >&5
33517 sed 's/^/| /' conftest.$ac_ext >&5
33519 ac_cv_type_dev_t=no
33522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33524 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33525 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33526 if test $ac_cv_type_dev_t = yes; then
33530 cat >>confdefs.h <<_ACEOF
33531 #define dev_t unsigned long
33536 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33537 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33538 if test "${ac_cv_type_daddr_t+set}" = set; then
33539 echo $ECHO_N "(cached) $ECHO_C" >&6
33541 cat >conftest.$ac_ext <<_ACEOF
33544 cat confdefs.h >>conftest.$ac_ext
33545 cat >>conftest.$ac_ext <<_ACEOF
33546 /* end confdefs.h. */
33547 $ac_includes_default
33548 typedef daddr_t ac__type_new_;
33552 if ((ac__type_new_ *) 0)
33554 if (sizeof (ac__type_new_))
33560 rm -f conftest.$ac_objext
33561 if { (ac_try="$ac_compile"
33562 case "(($ac_try" in
33563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33564 *) ac_try_echo=$ac_try;;
33566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33567 (eval "$ac_compile") 2>conftest.er1
33569 grep -v '^ *+' conftest.er1 >conftest.err
33571 cat conftest.err >&5
33572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33573 (exit $ac_status); } && {
33574 test -z "$ac_c_werror_flag" ||
33575 test ! -s conftest.err
33576 } && test -s conftest.$ac_objext; then
33577 ac_cv_type_daddr_t=yes
33579 echo "$as_me: failed program was:" >&5
33580 sed 's/^/| /' conftest.$ac_ext >&5
33582 ac_cv_type_daddr_t=no
33585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33587 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33588 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33589 if test $ac_cv_type_daddr_t = yes; then
33593 cat >>confdefs.h <<_ACEOF
33594 #define daddr_t long
33599 { echo "$as_me:$LINENO: checking for major_t" >&5
33600 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33601 if test "${ac_cv_type_major_t+set}" = set; then
33602 echo $ECHO_N "(cached) $ECHO_C" >&6
33604 cat >conftest.$ac_ext <<_ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h. */
33610 $ac_includes_default
33611 typedef major_t ac__type_new_;
33615 if ((ac__type_new_ *) 0)
33617 if (sizeof (ac__type_new_))
33623 rm -f conftest.$ac_objext
33624 if { (ac_try="$ac_compile"
33625 case "(($ac_try" in
33626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627 *) ac_try_echo=$ac_try;;
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630 (eval "$ac_compile") 2>conftest.er1
33632 grep -v '^ *+' conftest.er1 >conftest.err
33634 cat conftest.err >&5
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); } && {
33637 test -z "$ac_c_werror_flag" ||
33638 test ! -s conftest.err
33639 } && test -s conftest.$ac_objext; then
33640 ac_cv_type_major_t=yes
33642 echo "$as_me: failed program was:" >&5
33643 sed 's/^/| /' conftest.$ac_ext >&5
33645 ac_cv_type_major_t=no
33648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33650 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33651 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33652 if test $ac_cv_type_major_t = yes; then
33656 cat >>confdefs.h <<_ACEOF
33657 #define major_t int
33662 { echo "$as_me:$LINENO: checking for minor_t" >&5
33663 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33664 if test "${ac_cv_type_minor_t+set}" = set; then
33665 echo $ECHO_N "(cached) $ECHO_C" >&6
33667 cat >conftest.$ac_ext <<_ACEOF
33670 cat confdefs.h >>conftest.$ac_ext
33671 cat >>conftest.$ac_ext <<_ACEOF
33672 /* end confdefs.h. */
33673 $ac_includes_default
33674 typedef minor_t ac__type_new_;
33678 if ((ac__type_new_ *) 0)
33680 if (sizeof (ac__type_new_))
33686 rm -f conftest.$ac_objext
33687 if { (ac_try="$ac_compile"
33688 case "(($ac_try" in
33689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690 *) ac_try_echo=$ac_try;;
33692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33693 (eval "$ac_compile") 2>conftest.er1
33695 grep -v '^ *+' conftest.er1 >conftest.err
33697 cat conftest.err >&5
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); } && {
33700 test -z "$ac_c_werror_flag" ||
33701 test ! -s conftest.err
33702 } && test -s conftest.$ac_objext; then
33703 ac_cv_type_minor_t=yes
33705 echo "$as_me: failed program was:" >&5
33706 sed 's/^/| /' conftest.$ac_ext >&5
33708 ac_cv_type_minor_t=no
33711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33713 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33714 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33715 if test $ac_cv_type_minor_t = yes; then
33719 cat >>confdefs.h <<_ACEOF
33720 #define minor_t int
33725 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33726 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33727 if test "${ac_cv_type_ssize_t+set}" = set; then
33728 echo $ECHO_N "(cached) $ECHO_C" >&6
33730 cat >conftest.$ac_ext <<_ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h. */
33736 $ac_includes_default
33737 typedef ssize_t ac__type_new_;
33741 if ((ac__type_new_ *) 0)
33743 if (sizeof (ac__type_new_))
33749 rm -f conftest.$ac_objext
33750 if { (ac_try="$ac_compile"
33751 case "(($ac_try" in
33752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33753 *) ac_try_echo=$ac_try;;
33755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33756 (eval "$ac_compile") 2>conftest.er1
33758 grep -v '^ *+' conftest.er1 >conftest.err
33760 cat conftest.err >&5
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); } && {
33763 test -z "$ac_c_werror_flag" ||
33764 test ! -s conftest.err
33765 } && test -s conftest.$ac_objext; then
33766 ac_cv_type_ssize_t=yes
33768 echo "$as_me: failed program was:" >&5
33769 sed 's/^/| /' conftest.$ac_ext >&5
33771 ac_cv_type_ssize_t=no
33774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33776 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33777 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33778 if test $ac_cv_type_ssize_t = yes; then
33782 cat >>confdefs.h <<_ACEOF
33783 #define ssize_t int
33788 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33789 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33790 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
33793 cat >conftest.$ac_ext <<_ACEOF
33796 cat confdefs.h >>conftest.$ac_ext
33797 cat >>conftest.$ac_ext <<_ACEOF
33798 /* end confdefs.h. */
33799 $ac_includes_default
33803 static struct stat ac_aggr;
33804 if (ac_aggr.st_blocks)
33810 rm -f conftest.$ac_objext
33811 if { (ac_try="$ac_compile"
33812 case "(($ac_try" in
33813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814 *) ac_try_echo=$ac_try;;
33816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33817 (eval "$ac_compile") 2>conftest.er1
33819 grep -v '^ *+' conftest.er1 >conftest.err
33821 cat conftest.err >&5
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); } && {
33824 test -z "$ac_c_werror_flag" ||
33825 test ! -s conftest.err
33826 } && test -s conftest.$ac_objext; then
33827 ac_cv_member_struct_stat_st_blocks=yes
33829 echo "$as_me: failed program was:" >&5
33830 sed 's/^/| /' conftest.$ac_ext >&5
33832 cat >conftest.$ac_ext <<_ACEOF
33835 cat confdefs.h >>conftest.$ac_ext
33836 cat >>conftest.$ac_ext <<_ACEOF
33837 /* end confdefs.h. */
33838 $ac_includes_default
33842 static struct stat ac_aggr;
33843 if (sizeof ac_aggr.st_blocks)
33849 rm -f conftest.$ac_objext
33850 if { (ac_try="$ac_compile"
33851 case "(($ac_try" in
33852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33853 *) ac_try_echo=$ac_try;;
33855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33856 (eval "$ac_compile") 2>conftest.er1
33858 grep -v '^ *+' conftest.er1 >conftest.err
33860 cat conftest.err >&5
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); } && {
33863 test -z "$ac_c_werror_flag" ||
33864 test ! -s conftest.err
33865 } && test -s conftest.$ac_objext; then
33866 ac_cv_member_struct_stat_st_blocks=yes
33868 echo "$as_me: failed program was:" >&5
33869 sed 's/^/| /' conftest.$ac_ext >&5
33871 ac_cv_member_struct_stat_st_blocks=no
33874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33879 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33880 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33881 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33883 cat >>confdefs.h <<_ACEOF
33884 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33888 cat >>confdefs.h <<\_ACEOF
33889 #define HAVE_ST_BLOCKS 1
33893 case " $LIBOBJS " in
33894 *" fileblocks.$ac_objext "* ) ;;
33895 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33902 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33903 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33904 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33905 echo $ECHO_N "(cached) $ECHO_C" >&6
33907 cat >conftest.$ac_ext <<_ACEOF
33910 cat confdefs.h >>conftest.$ac_ext
33911 cat >>conftest.$ac_ext <<_ACEOF
33912 /* end confdefs.h. */
33913 $ac_includes_default
33917 static struct stat ac_aggr;
33918 if (ac_aggr.st_rdev)
33924 rm -f conftest.$ac_objext
33925 if { (ac_try="$ac_compile"
33926 case "(($ac_try" in
33927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33928 *) ac_try_echo=$ac_try;;
33930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33931 (eval "$ac_compile") 2>conftest.er1
33933 grep -v '^ *+' conftest.er1 >conftest.err
33935 cat conftest.err >&5
33936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937 (exit $ac_status); } && {
33938 test -z "$ac_c_werror_flag" ||
33939 test ! -s conftest.err
33940 } && test -s conftest.$ac_objext; then
33941 ac_cv_member_struct_stat_st_rdev=yes
33943 echo "$as_me: failed program was:" >&5
33944 sed 's/^/| /' conftest.$ac_ext >&5
33946 cat >conftest.$ac_ext <<_ACEOF
33949 cat confdefs.h >>conftest.$ac_ext
33950 cat >>conftest.$ac_ext <<_ACEOF
33951 /* end confdefs.h. */
33952 $ac_includes_default
33956 static struct stat ac_aggr;
33957 if (sizeof ac_aggr.st_rdev)
33963 rm -f conftest.$ac_objext
33964 if { (ac_try="$ac_compile"
33965 case "(($ac_try" in
33966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33967 *) ac_try_echo=$ac_try;;
33969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33970 (eval "$ac_compile") 2>conftest.er1
33972 grep -v '^ *+' conftest.er1 >conftest.err
33974 cat conftest.err >&5
33975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); } && {
33977 test -z "$ac_c_werror_flag" ||
33978 test ! -s conftest.err
33979 } && test -s conftest.$ac_objext; then
33980 ac_cv_member_struct_stat_st_rdev=yes
33982 echo "$as_me: failed program was:" >&5
33983 sed 's/^/| /' conftest.$ac_ext >&5
33985 ac_cv_member_struct_stat_st_rdev=no
33988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33993 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33994 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33995 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33997 cat >>confdefs.h <<_ACEOF
33998 #define HAVE_STRUCT_STAT_ST_RDEV 1
34002 cat >>confdefs.h <<\_ACEOF
34003 #define HAVE_ST_RDEV 1
34009 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34010 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34011 if test "${ac_cv_struct_tm+set}" = set; then
34012 echo $ECHO_N "(cached) $ECHO_C" >&6
34014 cat >conftest.$ac_ext <<_ACEOF
34017 cat confdefs.h >>conftest.$ac_ext
34018 cat >>conftest.$ac_ext <<_ACEOF
34019 /* end confdefs.h. */
34020 #include <sys/types.h>
34027 int *p = &tm.tm_sec;
34033 rm -f conftest.$ac_objext
34034 if { (ac_try="$ac_compile"
34035 case "(($ac_try" in
34036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037 *) ac_try_echo=$ac_try;;
34039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34040 (eval "$ac_compile") 2>conftest.er1
34042 grep -v '^ *+' conftest.er1 >conftest.err
34044 cat conftest.err >&5
34045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); } && {
34047 test -z "$ac_c_werror_flag" ||
34048 test ! -s conftest.err
34049 } && test -s conftest.$ac_objext; then
34050 ac_cv_struct_tm=time.h
34052 echo "$as_me: failed program was:" >&5
34053 sed 's/^/| /' conftest.$ac_ext >&5
34055 ac_cv_struct_tm=sys/time.h
34058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34060 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34061 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34062 if test $ac_cv_struct_tm = sys/time.h; then
34064 cat >>confdefs.h <<\_ACEOF
34065 #define TM_IN_SYS_TIME 1
34070 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34071 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34072 if test "${ac_cv_c_const+set}" = set; then
34073 echo $ECHO_N "(cached) $ECHO_C" >&6
34075 cat >conftest.$ac_ext <<_ACEOF
34078 cat confdefs.h >>conftest.$ac_ext
34079 cat >>conftest.$ac_ext <<_ACEOF
34080 /* end confdefs.h. */
34085 /* FIXME: Include the comments suggested by Paul. */
34086 #ifndef __cplusplus
34087 /* Ultrix mips cc rejects this. */
34088 typedef int charset[2];
34090 /* SunOS 4.1.1 cc rejects this. */
34091 char const *const *pcpcc;
34093 /* NEC SVR4.0.2 mips cc rejects this. */
34094 struct point {int x, y;};
34095 static struct point const zero = {0,0};
34096 /* AIX XL C 1.02.0.0 rejects this.
34097 It does not let you subtract one const X* pointer from another in
34098 an arm of an if-expression whose if-part is not a constant
34100 const char *g = "string";
34101 pcpcc = &g + (g ? g-g : 0);
34102 /* HPUX 7.0 cc rejects these. */
34104 ppc = (char**) pcpcc;
34105 pcpcc = (char const *const *) ppc;
34106 { /* SCO 3.2v4 cc rejects this. */
34108 char const *s = 0 ? (char *) 0 : (char const *) 0;
34113 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34114 int x[] = {25, 17};
34115 const int *foo = &x[0];
34118 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34119 typedef const int *iptr;
34123 { /* AIX XL C 1.02.0.0 rejects this saying
34124 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34125 struct s { int j; const int *ap[3]; };
34126 struct s *b; b->j = 5;
34128 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34129 const int foo = 10;
34130 if (!foo) return 0;
34132 return !cs[0] && !zero.x;
34139 rm -f conftest.$ac_objext
34140 if { (ac_try="$ac_compile"
34141 case "(($ac_try" in
34142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143 *) ac_try_echo=$ac_try;;
34145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34146 (eval "$ac_compile") 2>conftest.er1
34148 grep -v '^ *+' conftest.er1 >conftest.err
34150 cat conftest.err >&5
34151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 (exit $ac_status); } && {
34153 test -z "$ac_c_werror_flag" ||
34154 test ! -s conftest.err
34155 } && test -s conftest.$ac_objext; then
34158 echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34166 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34167 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34168 if test $ac_cv_c_const = no; then
34170 cat >>confdefs.h <<\_ACEOF
34177 { echo "$as_me:$LINENO: checking for char" >&5
34178 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34179 if test "${ac_cv_type_char+set}" = set; then
34180 echo $ECHO_N "(cached) $ECHO_C" >&6
34182 cat >conftest.$ac_ext <<_ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h. */
34188 $ac_includes_default
34189 typedef char ac__type_new_;
34193 if ((ac__type_new_ *) 0)
34195 if (sizeof (ac__type_new_))
34201 rm -f conftest.$ac_objext
34202 if { (ac_try="$ac_compile"
34203 case "(($ac_try" in
34204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34205 *) ac_try_echo=$ac_try;;
34207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34208 (eval "$ac_compile") 2>conftest.er1
34210 grep -v '^ *+' conftest.er1 >conftest.err
34212 cat conftest.err >&5
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); } && {
34215 test -z "$ac_c_werror_flag" ||
34216 test ! -s conftest.err
34217 } && test -s conftest.$ac_objext; then
34218 ac_cv_type_char=yes
34220 echo "$as_me: failed program was:" >&5
34221 sed 's/^/| /' conftest.$ac_ext >&5
34226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34228 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34229 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34231 # The cast to long int works around a bug in the HP C Compiler
34232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34234 # This bug is HP SR number 8606223364.
34235 { echo "$as_me:$LINENO: checking size of char" >&5
34236 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34237 if test "${ac_cv_sizeof_char+set}" = set; then
34238 echo $ECHO_N "(cached) $ECHO_C" >&6
34240 if test "$cross_compiling" = yes; then
34241 # Depending upon the size, compute the lo and hi bounds.
34242 cat >conftest.$ac_ext <<_ACEOF
34245 cat confdefs.h >>conftest.$ac_ext
34246 cat >>conftest.$ac_ext <<_ACEOF
34247 /* end confdefs.h. */
34248 $ac_includes_default
34249 typedef char ac__type_sizeof_;
34253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34260 rm -f conftest.$ac_objext
34261 if { (ac_try="$ac_compile"
34262 case "(($ac_try" in
34263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34264 *) ac_try_echo=$ac_try;;
34266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34267 (eval "$ac_compile") 2>conftest.er1
34269 grep -v '^ *+' conftest.er1 >conftest.err
34271 cat conftest.err >&5
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); } && {
34274 test -z "$ac_c_werror_flag" ||
34275 test ! -s conftest.err
34276 } && test -s conftest.$ac_objext; then
34279 cat >conftest.$ac_ext <<_ACEOF
34282 cat confdefs.h >>conftest.$ac_ext
34283 cat >>conftest.$ac_ext <<_ACEOF
34284 /* end confdefs.h. */
34285 $ac_includes_default
34286 typedef char ac__type_sizeof_;
34290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34297 rm -f conftest.$ac_objext
34298 if { (ac_try="$ac_compile"
34299 case "(($ac_try" in
34300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301 *) ac_try_echo=$ac_try;;
34303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304 (eval "$ac_compile") 2>conftest.er1
34306 grep -v '^ *+' conftest.er1 >conftest.err
34308 cat conftest.err >&5
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); } && {
34311 test -z "$ac_c_werror_flag" ||
34312 test ! -s conftest.err
34313 } && test -s conftest.$ac_objext; then
34314 ac_hi=$ac_mid; break
34316 echo "$as_me: failed program was:" >&5
34317 sed 's/^/| /' conftest.$ac_ext >&5
34319 ac_lo=`expr $ac_mid + 1`
34320 if test $ac_lo -le $ac_mid; then
34324 ac_mid=`expr 2 '*' $ac_mid + 1`
34327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34330 echo "$as_me: failed program was:" >&5
34331 sed 's/^/| /' conftest.$ac_ext >&5
34333 cat >conftest.$ac_ext <<_ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h. */
34339 $ac_includes_default
34340 typedef char ac__type_sizeof_;
34344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34351 rm -f conftest.$ac_objext
34352 if { (ac_try="$ac_compile"
34353 case "(($ac_try" in
34354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34355 *) ac_try_echo=$ac_try;;
34357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34358 (eval "$ac_compile") 2>conftest.er1
34360 grep -v '^ *+' conftest.er1 >conftest.err
34362 cat conftest.err >&5
34363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); } && {
34365 test -z "$ac_c_werror_flag" ||
34366 test ! -s conftest.err
34367 } && test -s conftest.$ac_objext; then
34370 cat >conftest.$ac_ext <<_ACEOF
34373 cat confdefs.h >>conftest.$ac_ext
34374 cat >>conftest.$ac_ext <<_ACEOF
34375 /* end confdefs.h. */
34376 $ac_includes_default
34377 typedef char ac__type_sizeof_;
34381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34388 rm -f conftest.$ac_objext
34389 if { (ac_try="$ac_compile"
34390 case "(($ac_try" in
34391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34392 *) ac_try_echo=$ac_try;;
34394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34395 (eval "$ac_compile") 2>conftest.er1
34397 grep -v '^ *+' conftest.er1 >conftest.err
34399 cat conftest.err >&5
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); } && {
34402 test -z "$ac_c_werror_flag" ||
34403 test ! -s conftest.err
34404 } && test -s conftest.$ac_objext; then
34405 ac_lo=$ac_mid; break
34407 echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34410 ac_hi=`expr '(' $ac_mid ')' - 1`
34411 if test $ac_mid -le $ac_hi; then
34415 ac_mid=`expr 2 '*' $ac_mid`
34418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34421 echo "$as_me: failed program was:" >&5
34422 sed 's/^/| /' conftest.$ac_ext >&5
34427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34431 # Binary search between lo and hi bounds.
34432 while test "x$ac_lo" != "x$ac_hi"; do
34433 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34434 cat >conftest.$ac_ext <<_ACEOF
34437 cat confdefs.h >>conftest.$ac_ext
34438 cat >>conftest.$ac_ext <<_ACEOF
34439 /* end confdefs.h. */
34440 $ac_includes_default
34441 typedef char ac__type_sizeof_;
34445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34452 rm -f conftest.$ac_objext
34453 if { (ac_try="$ac_compile"
34454 case "(($ac_try" in
34455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34456 *) ac_try_echo=$ac_try;;
34458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34459 (eval "$ac_compile") 2>conftest.er1
34461 grep -v '^ *+' conftest.er1 >conftest.err
34463 cat conftest.err >&5
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); } && {
34466 test -z "$ac_c_werror_flag" ||
34467 test ! -s conftest.err
34468 } && test -s conftest.$ac_objext; then
34471 echo "$as_me: failed program was:" >&5
34472 sed 's/^/| /' conftest.$ac_ext >&5
34474 ac_lo=`expr '(' $ac_mid ')' + 1`
34477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34480 ?*) ac_cv_sizeof_char=$ac_lo;;
34481 '') if test "$ac_cv_type_char" = yes; then
34482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34483 See \`config.log' for more details." >&5
34484 echo "$as_me: error: cannot compute sizeof (char)
34485 See \`config.log' for more details." >&2;}
34486 { (exit 77); exit 77; }; }
34488 ac_cv_sizeof_char=0
34492 cat >conftest.$ac_ext <<_ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h. */
34498 $ac_includes_default
34499 typedef char ac__type_sizeof_;
34500 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34501 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34503 #include <stdlib.h>
34508 FILE *f = fopen ("conftest.val", "w");
34511 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34513 long int i = longval ();
34514 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34516 fprintf (f, "%ld\n", i);
34520 unsigned long int i = ulongval ();
34521 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34523 fprintf (f, "%lu\n", i);
34525 return ferror (f) || fclose (f) != 0;
34531 rm -f conftest$ac_exeext
34532 if { (ac_try="$ac_link"
34533 case "(($ac_try" in
34534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34535 *) ac_try_echo=$ac_try;;
34537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34538 (eval "$ac_link") 2>&5
34540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34542 { (case "(($ac_try" in
34543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34544 *) ac_try_echo=$ac_try;;
34546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34547 (eval "$ac_try") 2>&5
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); }; }; then
34551 ac_cv_sizeof_char=`cat conftest.val`
34553 echo "$as_me: program exited with status $ac_status" >&5
34554 echo "$as_me: failed program was:" >&5
34555 sed 's/^/| /' conftest.$ac_ext >&5
34557 ( exit $ac_status )
34558 if test "$ac_cv_type_char" = yes; then
34559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34560 See \`config.log' for more details." >&5
34561 echo "$as_me: error: cannot compute sizeof (char)
34562 See \`config.log' for more details." >&2;}
34563 { (exit 77); exit 77; }; }
34565 ac_cv_sizeof_char=0
34568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34572 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34573 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34577 cat >>confdefs.h <<_ACEOF
34578 #define SIZEOF_CHAR $ac_cv_sizeof_char
34582 { echo "$as_me:$LINENO: checking for short int" >&5
34583 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34584 if test "${ac_cv_type_short_int+set}" = set; then
34585 echo $ECHO_N "(cached) $ECHO_C" >&6
34587 cat >conftest.$ac_ext <<_ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h. */
34593 $ac_includes_default
34594 typedef short int ac__type_new_;
34598 if ((ac__type_new_ *) 0)
34600 if (sizeof (ac__type_new_))
34606 rm -f conftest.$ac_objext
34607 if { (ac_try="$ac_compile"
34608 case "(($ac_try" in
34609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34610 *) ac_try_echo=$ac_try;;
34612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613 (eval "$ac_compile") 2>conftest.er1
34615 grep -v '^ *+' conftest.er1 >conftest.err
34617 cat conftest.err >&5
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } && {
34620 test -z "$ac_c_werror_flag" ||
34621 test ! -s conftest.err
34622 } && test -s conftest.$ac_objext; then
34623 ac_cv_type_short_int=yes
34625 echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.$ac_ext >&5
34628 ac_cv_type_short_int=no
34631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34633 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34634 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34636 # The cast to long int works around a bug in the HP C Compiler
34637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34639 # This bug is HP SR number 8606223364.
34640 { echo "$as_me:$LINENO: checking size of short int" >&5
34641 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34642 if test "${ac_cv_sizeof_short_int+set}" = set; then
34643 echo $ECHO_N "(cached) $ECHO_C" >&6
34645 if test "$cross_compiling" = yes; then
34646 # Depending upon the size, compute the lo and hi bounds.
34647 cat >conftest.$ac_ext <<_ACEOF
34650 cat confdefs.h >>conftest.$ac_ext
34651 cat >>conftest.$ac_ext <<_ACEOF
34652 /* end confdefs.h. */
34653 $ac_includes_default
34654 typedef short int ac__type_sizeof_;
34658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34665 rm -f conftest.$ac_objext
34666 if { (ac_try="$ac_compile"
34667 case "(($ac_try" in
34668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34669 *) ac_try_echo=$ac_try;;
34671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34672 (eval "$ac_compile") 2>conftest.er1
34674 grep -v '^ *+' conftest.er1 >conftest.err
34676 cat conftest.err >&5
34677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678 (exit $ac_status); } && {
34679 test -z "$ac_c_werror_flag" ||
34680 test ! -s conftest.err
34681 } && test -s conftest.$ac_objext; then
34684 cat >conftest.$ac_ext <<_ACEOF
34687 cat confdefs.h >>conftest.$ac_ext
34688 cat >>conftest.$ac_ext <<_ACEOF
34689 /* end confdefs.h. */
34690 $ac_includes_default
34691 typedef short int ac__type_sizeof_;
34695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34702 rm -f conftest.$ac_objext
34703 if { (ac_try="$ac_compile"
34704 case "(($ac_try" in
34705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34706 *) ac_try_echo=$ac_try;;
34708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34709 (eval "$ac_compile") 2>conftest.er1
34711 grep -v '^ *+' conftest.er1 >conftest.err
34713 cat conftest.err >&5
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); } && {
34716 test -z "$ac_c_werror_flag" ||
34717 test ! -s conftest.err
34718 } && test -s conftest.$ac_objext; then
34719 ac_hi=$ac_mid; break
34721 echo "$as_me: failed program was:" >&5
34722 sed 's/^/| /' conftest.$ac_ext >&5
34724 ac_lo=`expr $ac_mid + 1`
34725 if test $ac_lo -le $ac_mid; then
34729 ac_mid=`expr 2 '*' $ac_mid + 1`
34732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34735 echo "$as_me: failed program was:" >&5
34736 sed 's/^/| /' conftest.$ac_ext >&5
34738 cat >conftest.$ac_ext <<_ACEOF
34741 cat confdefs.h >>conftest.$ac_ext
34742 cat >>conftest.$ac_ext <<_ACEOF
34743 /* end confdefs.h. */
34744 $ac_includes_default
34745 typedef short int ac__type_sizeof_;
34749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34756 rm -f conftest.$ac_objext
34757 if { (ac_try="$ac_compile"
34758 case "(($ac_try" in
34759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34760 *) ac_try_echo=$ac_try;;
34762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34763 (eval "$ac_compile") 2>conftest.er1
34765 grep -v '^ *+' conftest.er1 >conftest.err
34767 cat conftest.err >&5
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } && {
34770 test -z "$ac_c_werror_flag" ||
34771 test ! -s conftest.err
34772 } && test -s conftest.$ac_objext; then
34775 cat >conftest.$ac_ext <<_ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h. */
34781 $ac_includes_default
34782 typedef short int ac__type_sizeof_;
34786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34793 rm -f conftest.$ac_objext
34794 if { (ac_try="$ac_compile"
34795 case "(($ac_try" in
34796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797 *) ac_try_echo=$ac_try;;
34799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34800 (eval "$ac_compile") 2>conftest.er1
34802 grep -v '^ *+' conftest.er1 >conftest.err
34804 cat conftest.err >&5
34805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); } && {
34807 test -z "$ac_c_werror_flag" ||
34808 test ! -s conftest.err
34809 } && test -s conftest.$ac_objext; then
34810 ac_lo=$ac_mid; break
34812 echo "$as_me: failed program was:" >&5
34813 sed 's/^/| /' conftest.$ac_ext >&5
34815 ac_hi=`expr '(' $ac_mid ')' - 1`
34816 if test $ac_mid -le $ac_hi; then
34820 ac_mid=`expr 2 '*' $ac_mid`
34823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34826 echo "$as_me: failed program was:" >&5
34827 sed 's/^/| /' conftest.$ac_ext >&5
34832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34836 # Binary search between lo and hi bounds.
34837 while test "x$ac_lo" != "x$ac_hi"; do
34838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34839 cat >conftest.$ac_ext <<_ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h. */
34845 $ac_includes_default
34846 typedef short int ac__type_sizeof_;
34850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34857 rm -f conftest.$ac_objext
34858 if { (ac_try="$ac_compile"
34859 case "(($ac_try" in
34860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34861 *) ac_try_echo=$ac_try;;
34863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34864 (eval "$ac_compile") 2>conftest.er1
34866 grep -v '^ *+' conftest.er1 >conftest.err
34868 cat conftest.err >&5
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); } && {
34871 test -z "$ac_c_werror_flag" ||
34872 test ! -s conftest.err
34873 } && test -s conftest.$ac_objext; then
34876 echo "$as_me: failed program was:" >&5
34877 sed 's/^/| /' conftest.$ac_ext >&5
34879 ac_lo=`expr '(' $ac_mid ')' + 1`
34882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34885 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34886 '') if test "$ac_cv_type_short_int" = yes; then
34887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34888 See \`config.log' for more details." >&5
34889 echo "$as_me: error: cannot compute sizeof (short int)
34890 See \`config.log' for more details." >&2;}
34891 { (exit 77); exit 77; }; }
34893 ac_cv_sizeof_short_int=0
34897 cat >conftest.$ac_ext <<_ACEOF
34900 cat confdefs.h >>conftest.$ac_ext
34901 cat >>conftest.$ac_ext <<_ACEOF
34902 /* end confdefs.h. */
34903 $ac_includes_default
34904 typedef short int ac__type_sizeof_;
34905 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34906 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34908 #include <stdlib.h>
34913 FILE *f = fopen ("conftest.val", "w");
34916 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34918 long int i = longval ();
34919 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34921 fprintf (f, "%ld\n", i);
34925 unsigned long int i = ulongval ();
34926 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34928 fprintf (f, "%lu\n", i);
34930 return ferror (f) || fclose (f) != 0;
34936 rm -f conftest$ac_exeext
34937 if { (ac_try="$ac_link"
34938 case "(($ac_try" in
34939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34940 *) ac_try_echo=$ac_try;;
34942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34943 (eval "$ac_link") 2>&5
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34947 { (case "(($ac_try" in
34948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34949 *) ac_try_echo=$ac_try;;
34951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34952 (eval "$ac_try") 2>&5
34954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955 (exit $ac_status); }; }; then
34956 ac_cv_sizeof_short_int=`cat conftest.val`
34958 echo "$as_me: program exited with status $ac_status" >&5
34959 echo "$as_me: failed program was:" >&5
34960 sed 's/^/| /' conftest.$ac_ext >&5
34962 ( exit $ac_status )
34963 if test "$ac_cv_type_short_int" = yes; then
34964 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34965 See \`config.log' for more details." >&5
34966 echo "$as_me: error: cannot compute sizeof (short int)
34967 See \`config.log' for more details." >&2;}
34968 { (exit 77); exit 77; }; }
34970 ac_cv_sizeof_short_int=0
34973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34977 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34978 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34982 cat >>confdefs.h <<_ACEOF
34983 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34987 { echo "$as_me:$LINENO: checking for int" >&5
34988 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34989 if test "${ac_cv_type_int+set}" = set; then
34990 echo $ECHO_N "(cached) $ECHO_C" >&6
34992 cat >conftest.$ac_ext <<_ACEOF
34995 cat confdefs.h >>conftest.$ac_ext
34996 cat >>conftest.$ac_ext <<_ACEOF
34997 /* end confdefs.h. */
34998 $ac_includes_default
34999 typedef int ac__type_new_;
35003 if ((ac__type_new_ *) 0)
35005 if (sizeof (ac__type_new_))
35011 rm -f conftest.$ac_objext
35012 if { (ac_try="$ac_compile"
35013 case "(($ac_try" in
35014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35015 *) ac_try_echo=$ac_try;;
35017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35018 (eval "$ac_compile") 2>conftest.er1
35020 grep -v '^ *+' conftest.er1 >conftest.err
35022 cat conftest.err >&5
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); } && {
35025 test -z "$ac_c_werror_flag" ||
35026 test ! -s conftest.err
35027 } && test -s conftest.$ac_objext; then
35030 echo "$as_me: failed program was:" >&5
35031 sed 's/^/| /' conftest.$ac_ext >&5
35036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35038 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35039 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35041 # The cast to long int works around a bug in the HP C Compiler
35042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35044 # This bug is HP SR number 8606223364.
35045 { echo "$as_me:$LINENO: checking size of int" >&5
35046 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35047 if test "${ac_cv_sizeof_int+set}" = set; then
35048 echo $ECHO_N "(cached) $ECHO_C" >&6
35050 if test "$cross_compiling" = yes; then
35051 # Depending upon the size, compute the lo and hi bounds.
35052 cat >conftest.$ac_ext <<_ACEOF
35055 cat confdefs.h >>conftest.$ac_ext
35056 cat >>conftest.$ac_ext <<_ACEOF
35057 /* end confdefs.h. */
35058 $ac_includes_default
35059 typedef int ac__type_sizeof_;
35063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35070 rm -f conftest.$ac_objext
35071 if { (ac_try="$ac_compile"
35072 case "(($ac_try" in
35073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35074 *) ac_try_echo=$ac_try;;
35076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35077 (eval "$ac_compile") 2>conftest.er1
35079 grep -v '^ *+' conftest.er1 >conftest.err
35081 cat conftest.err >&5
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); } && {
35084 test -z "$ac_c_werror_flag" ||
35085 test ! -s conftest.err
35086 } && test -s conftest.$ac_objext; then
35089 cat >conftest.$ac_ext <<_ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h. */
35095 $ac_includes_default
35096 typedef int ac__type_sizeof_;
35100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35107 rm -f conftest.$ac_objext
35108 if { (ac_try="$ac_compile"
35109 case "(($ac_try" in
35110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35111 *) ac_try_echo=$ac_try;;
35113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35114 (eval "$ac_compile") 2>conftest.er1
35116 grep -v '^ *+' conftest.er1 >conftest.err
35118 cat conftest.err >&5
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); } && {
35121 test -z "$ac_c_werror_flag" ||
35122 test ! -s conftest.err
35123 } && test -s conftest.$ac_objext; then
35124 ac_hi=$ac_mid; break
35126 echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35129 ac_lo=`expr $ac_mid + 1`
35130 if test $ac_lo -le $ac_mid; then
35134 ac_mid=`expr 2 '*' $ac_mid + 1`
35137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35140 echo "$as_me: failed program was:" >&5
35141 sed 's/^/| /' conftest.$ac_ext >&5
35143 cat >conftest.$ac_ext <<_ACEOF
35146 cat confdefs.h >>conftest.$ac_ext
35147 cat >>conftest.$ac_ext <<_ACEOF
35148 /* end confdefs.h. */
35149 $ac_includes_default
35150 typedef int ac__type_sizeof_;
35154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35161 rm -f conftest.$ac_objext
35162 if { (ac_try="$ac_compile"
35163 case "(($ac_try" in
35164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35165 *) ac_try_echo=$ac_try;;
35167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35168 (eval "$ac_compile") 2>conftest.er1
35170 grep -v '^ *+' conftest.er1 >conftest.err
35172 cat conftest.err >&5
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); } && {
35175 test -z "$ac_c_werror_flag" ||
35176 test ! -s conftest.err
35177 } && test -s conftest.$ac_objext; then
35180 cat >conftest.$ac_ext <<_ACEOF
35183 cat confdefs.h >>conftest.$ac_ext
35184 cat >>conftest.$ac_ext <<_ACEOF
35185 /* end confdefs.h. */
35186 $ac_includes_default
35187 typedef int ac__type_sizeof_;
35191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35198 rm -f conftest.$ac_objext
35199 if { (ac_try="$ac_compile"
35200 case "(($ac_try" in
35201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35202 *) ac_try_echo=$ac_try;;
35204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35205 (eval "$ac_compile") 2>conftest.er1
35207 grep -v '^ *+' conftest.er1 >conftest.err
35209 cat conftest.err >&5
35210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211 (exit $ac_status); } && {
35212 test -z "$ac_c_werror_flag" ||
35213 test ! -s conftest.err
35214 } && test -s conftest.$ac_objext; then
35215 ac_lo=$ac_mid; break
35217 echo "$as_me: failed program was:" >&5
35218 sed 's/^/| /' conftest.$ac_ext >&5
35220 ac_hi=`expr '(' $ac_mid ')' - 1`
35221 if test $ac_mid -le $ac_hi; then
35225 ac_mid=`expr 2 '*' $ac_mid`
35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35231 echo "$as_me: failed program was:" >&5
35232 sed 's/^/| /' conftest.$ac_ext >&5
35237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35241 # Binary search between lo and hi bounds.
35242 while test "x$ac_lo" != "x$ac_hi"; do
35243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35244 cat >conftest.$ac_ext <<_ACEOF
35247 cat confdefs.h >>conftest.$ac_ext
35248 cat >>conftest.$ac_ext <<_ACEOF
35249 /* end confdefs.h. */
35250 $ac_includes_default
35251 typedef int ac__type_sizeof_;
35255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35262 rm -f conftest.$ac_objext
35263 if { (ac_try="$ac_compile"
35264 case "(($ac_try" in
35265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266 *) ac_try_echo=$ac_try;;
35268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35269 (eval "$ac_compile") 2>conftest.er1
35271 grep -v '^ *+' conftest.er1 >conftest.err
35273 cat conftest.err >&5
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); } && {
35276 test -z "$ac_c_werror_flag" ||
35277 test ! -s conftest.err
35278 } && test -s conftest.$ac_objext; then
35281 echo "$as_me: failed program was:" >&5
35282 sed 's/^/| /' conftest.$ac_ext >&5
35284 ac_lo=`expr '(' $ac_mid ')' + 1`
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35290 ?*) ac_cv_sizeof_int=$ac_lo;;
35291 '') if test "$ac_cv_type_int" = yes; then
35292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35293 See \`config.log' for more details." >&5
35294 echo "$as_me: error: cannot compute sizeof (int)
35295 See \`config.log' for more details." >&2;}
35296 { (exit 77); exit 77; }; }
35302 cat >conftest.$ac_ext <<_ACEOF
35305 cat confdefs.h >>conftest.$ac_ext
35306 cat >>conftest.$ac_ext <<_ACEOF
35307 /* end confdefs.h. */
35308 $ac_includes_default
35309 typedef int ac__type_sizeof_;
35310 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35311 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35313 #include <stdlib.h>
35318 FILE *f = fopen ("conftest.val", "w");
35321 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35323 long int i = longval ();
35324 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35326 fprintf (f, "%ld\n", i);
35330 unsigned long int i = ulongval ();
35331 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35333 fprintf (f, "%lu\n", i);
35335 return ferror (f) || fclose (f) != 0;
35341 rm -f conftest$ac_exeext
35342 if { (ac_try="$ac_link"
35343 case "(($ac_try" in
35344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345 *) ac_try_echo=$ac_try;;
35347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35348 (eval "$ac_link") 2>&5
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35352 { (case "(($ac_try" in
35353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35354 *) ac_try_echo=$ac_try;;
35356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35357 (eval "$ac_try") 2>&5
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); }; }; then
35361 ac_cv_sizeof_int=`cat conftest.val`
35363 echo "$as_me: program exited with status $ac_status" >&5
35364 echo "$as_me: failed program was:" >&5
35365 sed 's/^/| /' conftest.$ac_ext >&5
35367 ( exit $ac_status )
35368 if test "$ac_cv_type_int" = yes; then
35369 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35370 See \`config.log' for more details." >&5
35371 echo "$as_me: error: cannot compute sizeof (int)
35372 See \`config.log' for more details." >&2;}
35373 { (exit 77); exit 77; }; }
35378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35382 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35383 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35387 cat >>confdefs.h <<_ACEOF
35388 #define SIZEOF_INT $ac_cv_sizeof_int
35392 { echo "$as_me:$LINENO: checking for long int" >&5
35393 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35394 if test "${ac_cv_type_long_int+set}" = set; then
35395 echo $ECHO_N "(cached) $ECHO_C" >&6
35397 cat >conftest.$ac_ext <<_ACEOF
35400 cat confdefs.h >>conftest.$ac_ext
35401 cat >>conftest.$ac_ext <<_ACEOF
35402 /* end confdefs.h. */
35403 $ac_includes_default
35404 typedef long int ac__type_new_;
35408 if ((ac__type_new_ *) 0)
35410 if (sizeof (ac__type_new_))
35416 rm -f conftest.$ac_objext
35417 if { (ac_try="$ac_compile"
35418 case "(($ac_try" in
35419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35420 *) ac_try_echo=$ac_try;;
35422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35423 (eval "$ac_compile") 2>conftest.er1
35425 grep -v '^ *+' conftest.er1 >conftest.err
35427 cat conftest.err >&5
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); } && {
35430 test -z "$ac_c_werror_flag" ||
35431 test ! -s conftest.err
35432 } && test -s conftest.$ac_objext; then
35433 ac_cv_type_long_int=yes
35435 echo "$as_me: failed program was:" >&5
35436 sed 's/^/| /' conftest.$ac_ext >&5
35438 ac_cv_type_long_int=no
35441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35443 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35444 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35446 # The cast to long int works around a bug in the HP C Compiler
35447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35449 # This bug is HP SR number 8606223364.
35450 { echo "$as_me:$LINENO: checking size of long int" >&5
35451 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35452 if test "${ac_cv_sizeof_long_int+set}" = set; then
35453 echo $ECHO_N "(cached) $ECHO_C" >&6
35455 if test "$cross_compiling" = yes; then
35456 # Depending upon the size, compute the lo and hi bounds.
35457 cat >conftest.$ac_ext <<_ACEOF
35460 cat confdefs.h >>conftest.$ac_ext
35461 cat >>conftest.$ac_ext <<_ACEOF
35462 /* end confdefs.h. */
35463 $ac_includes_default
35464 typedef long int ac__type_sizeof_;
35468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35475 rm -f conftest.$ac_objext
35476 if { (ac_try="$ac_compile"
35477 case "(($ac_try" in
35478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35479 *) ac_try_echo=$ac_try;;
35481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35482 (eval "$ac_compile") 2>conftest.er1
35484 grep -v '^ *+' conftest.er1 >conftest.err
35486 cat conftest.err >&5
35487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488 (exit $ac_status); } && {
35489 test -z "$ac_c_werror_flag" ||
35490 test ! -s conftest.err
35491 } && test -s conftest.$ac_objext; then
35494 cat >conftest.$ac_ext <<_ACEOF
35497 cat confdefs.h >>conftest.$ac_ext
35498 cat >>conftest.$ac_ext <<_ACEOF
35499 /* end confdefs.h. */
35500 $ac_includes_default
35501 typedef long int ac__type_sizeof_;
35505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35512 rm -f conftest.$ac_objext
35513 if { (ac_try="$ac_compile"
35514 case "(($ac_try" in
35515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35516 *) ac_try_echo=$ac_try;;
35518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35519 (eval "$ac_compile") 2>conftest.er1
35521 grep -v '^ *+' conftest.er1 >conftest.err
35523 cat conftest.err >&5
35524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525 (exit $ac_status); } && {
35526 test -z "$ac_c_werror_flag" ||
35527 test ! -s conftest.err
35528 } && test -s conftest.$ac_objext; then
35529 ac_hi=$ac_mid; break
35531 echo "$as_me: failed program was:" >&5
35532 sed 's/^/| /' conftest.$ac_ext >&5
35534 ac_lo=`expr $ac_mid + 1`
35535 if test $ac_lo -le $ac_mid; then
35539 ac_mid=`expr 2 '*' $ac_mid + 1`
35542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35545 echo "$as_me: failed program was:" >&5
35546 sed 's/^/| /' conftest.$ac_ext >&5
35548 cat >conftest.$ac_ext <<_ACEOF
35551 cat confdefs.h >>conftest.$ac_ext
35552 cat >>conftest.$ac_ext <<_ACEOF
35553 /* end confdefs.h. */
35554 $ac_includes_default
35555 typedef long int ac__type_sizeof_;
35559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35566 rm -f conftest.$ac_objext
35567 if { (ac_try="$ac_compile"
35568 case "(($ac_try" in
35569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570 *) ac_try_echo=$ac_try;;
35572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35573 (eval "$ac_compile") 2>conftest.er1
35575 grep -v '^ *+' conftest.er1 >conftest.err
35577 cat conftest.err >&5
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); } && {
35580 test -z "$ac_c_werror_flag" ||
35581 test ! -s conftest.err
35582 } && test -s conftest.$ac_objext; then
35585 cat >conftest.$ac_ext <<_ACEOF
35588 cat confdefs.h >>conftest.$ac_ext
35589 cat >>conftest.$ac_ext <<_ACEOF
35590 /* end confdefs.h. */
35591 $ac_includes_default
35592 typedef long int ac__type_sizeof_;
35596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35603 rm -f conftest.$ac_objext
35604 if { (ac_try="$ac_compile"
35605 case "(($ac_try" in
35606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35607 *) ac_try_echo=$ac_try;;
35609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35610 (eval "$ac_compile") 2>conftest.er1
35612 grep -v '^ *+' conftest.er1 >conftest.err
35614 cat conftest.err >&5
35615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35616 (exit $ac_status); } && {
35617 test -z "$ac_c_werror_flag" ||
35618 test ! -s conftest.err
35619 } && test -s conftest.$ac_objext; then
35620 ac_lo=$ac_mid; break
35622 echo "$as_me: failed program was:" >&5
35623 sed 's/^/| /' conftest.$ac_ext >&5
35625 ac_hi=`expr '(' $ac_mid ')' - 1`
35626 if test $ac_mid -le $ac_hi; then
35630 ac_mid=`expr 2 '*' $ac_mid`
35633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636 echo "$as_me: failed program was:" >&5
35637 sed 's/^/| /' conftest.$ac_ext >&5
35642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35646 # Binary search between lo and hi bounds.
35647 while test "x$ac_lo" != "x$ac_hi"; do
35648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35649 cat >conftest.$ac_ext <<_ACEOF
35652 cat confdefs.h >>conftest.$ac_ext
35653 cat >>conftest.$ac_ext <<_ACEOF
35654 /* end confdefs.h. */
35655 $ac_includes_default
35656 typedef long int ac__type_sizeof_;
35660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35667 rm -f conftest.$ac_objext
35668 if { (ac_try="$ac_compile"
35669 case "(($ac_try" in
35670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671 *) ac_try_echo=$ac_try;;
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674 (eval "$ac_compile") 2>conftest.er1
35676 grep -v '^ *+' conftest.er1 >conftest.err
35678 cat conftest.err >&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); } && {
35681 test -z "$ac_c_werror_flag" ||
35682 test ! -s conftest.err
35683 } && test -s conftest.$ac_objext; then
35686 echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35689 ac_lo=`expr '(' $ac_mid ')' + 1`
35692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35695 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35696 '') if test "$ac_cv_type_long_int" = yes; then
35697 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35698 See \`config.log' for more details." >&5
35699 echo "$as_me: error: cannot compute sizeof (long int)
35700 See \`config.log' for more details." >&2;}
35701 { (exit 77); exit 77; }; }
35703 ac_cv_sizeof_long_int=0
35707 cat >conftest.$ac_ext <<_ACEOF
35710 cat confdefs.h >>conftest.$ac_ext
35711 cat >>conftest.$ac_ext <<_ACEOF
35712 /* end confdefs.h. */
35713 $ac_includes_default
35714 typedef long int ac__type_sizeof_;
35715 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35716 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35718 #include <stdlib.h>
35723 FILE *f = fopen ("conftest.val", "w");
35726 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35728 long int i = longval ();
35729 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35731 fprintf (f, "%ld\n", i);
35735 unsigned long int i = ulongval ();
35736 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35738 fprintf (f, "%lu\n", i);
35740 return ferror (f) || fclose (f) != 0;
35746 rm -f conftest$ac_exeext
35747 if { (ac_try="$ac_link"
35748 case "(($ac_try" in
35749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35750 *) ac_try_echo=$ac_try;;
35752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35753 (eval "$ac_link") 2>&5
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35757 { (case "(($ac_try" in
35758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35759 *) ac_try_echo=$ac_try;;
35761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35762 (eval "$ac_try") 2>&5
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; }; then
35766 ac_cv_sizeof_long_int=`cat conftest.val`
35768 echo "$as_me: program exited with status $ac_status" >&5
35769 echo "$as_me: failed program was:" >&5
35770 sed 's/^/| /' conftest.$ac_ext >&5
35772 ( exit $ac_status )
35773 if test "$ac_cv_type_long_int" = yes; then
35774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35775 See \`config.log' for more details." >&5
35776 echo "$as_me: error: cannot compute sizeof (long int)
35777 See \`config.log' for more details." >&2;}
35778 { (exit 77); exit 77; }; }
35780 ac_cv_sizeof_long_int=0
35783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35787 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35788 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35792 cat >>confdefs.h <<_ACEOF
35793 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35797 { echo "$as_me:$LINENO: checking for long long int" >&5
35798 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35799 if test "${ac_cv_type_long_long_int+set}" = set; then
35800 echo $ECHO_N "(cached) $ECHO_C" >&6
35802 cat >conftest.$ac_ext <<_ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h. */
35808 $ac_includes_default
35809 typedef long long int ac__type_new_;
35813 if ((ac__type_new_ *) 0)
35815 if (sizeof (ac__type_new_))
35821 rm -f conftest.$ac_objext
35822 if { (ac_try="$ac_compile"
35823 case "(($ac_try" in
35824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35825 *) ac_try_echo=$ac_try;;
35827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35828 (eval "$ac_compile") 2>conftest.er1
35830 grep -v '^ *+' conftest.er1 >conftest.err
35832 cat conftest.err >&5
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); } && {
35835 test -z "$ac_c_werror_flag" ||
35836 test ! -s conftest.err
35837 } && test -s conftest.$ac_objext; then
35838 ac_cv_type_long_long_int=yes
35840 echo "$as_me: failed program was:" >&5
35841 sed 's/^/| /' conftest.$ac_ext >&5
35843 ac_cv_type_long_long_int=no
35846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35848 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35849 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35851 # The cast to long int works around a bug in the HP C Compiler
35852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35854 # This bug is HP SR number 8606223364.
35855 { echo "$as_me:$LINENO: checking size of long long int" >&5
35856 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35857 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35858 echo $ECHO_N "(cached) $ECHO_C" >&6
35860 if test "$cross_compiling" = yes; then
35861 # Depending upon the size, compute the lo and hi bounds.
35862 cat >conftest.$ac_ext <<_ACEOF
35865 cat confdefs.h >>conftest.$ac_ext
35866 cat >>conftest.$ac_ext <<_ACEOF
35867 /* end confdefs.h. */
35868 $ac_includes_default
35869 typedef long long int ac__type_sizeof_;
35873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35880 rm -f conftest.$ac_objext
35881 if { (ac_try="$ac_compile"
35882 case "(($ac_try" in
35883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35884 *) ac_try_echo=$ac_try;;
35886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35887 (eval "$ac_compile") 2>conftest.er1
35889 grep -v '^ *+' conftest.er1 >conftest.err
35891 cat conftest.err >&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } && {
35894 test -z "$ac_c_werror_flag" ||
35895 test ! -s conftest.err
35896 } && test -s conftest.$ac_objext; then
35899 cat >conftest.$ac_ext <<_ACEOF
35902 cat confdefs.h >>conftest.$ac_ext
35903 cat >>conftest.$ac_ext <<_ACEOF
35904 /* end confdefs.h. */
35905 $ac_includes_default
35906 typedef long long int ac__type_sizeof_;
35910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35917 rm -f conftest.$ac_objext
35918 if { (ac_try="$ac_compile"
35919 case "(($ac_try" in
35920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35921 *) ac_try_echo=$ac_try;;
35923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35924 (eval "$ac_compile") 2>conftest.er1
35926 grep -v '^ *+' conftest.er1 >conftest.err
35928 cat conftest.err >&5
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); } && {
35931 test -z "$ac_c_werror_flag" ||
35932 test ! -s conftest.err
35933 } && test -s conftest.$ac_objext; then
35934 ac_hi=$ac_mid; break
35936 echo "$as_me: failed program was:" >&5
35937 sed 's/^/| /' conftest.$ac_ext >&5
35939 ac_lo=`expr $ac_mid + 1`
35940 if test $ac_lo -le $ac_mid; then
35944 ac_mid=`expr 2 '*' $ac_mid + 1`
35947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35950 echo "$as_me: failed program was:" >&5
35951 sed 's/^/| /' conftest.$ac_ext >&5
35953 cat >conftest.$ac_ext <<_ACEOF
35956 cat confdefs.h >>conftest.$ac_ext
35957 cat >>conftest.$ac_ext <<_ACEOF
35958 /* end confdefs.h. */
35959 $ac_includes_default
35960 typedef long long int ac__type_sizeof_;
35964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35971 rm -f conftest.$ac_objext
35972 if { (ac_try="$ac_compile"
35973 case "(($ac_try" in
35974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35975 *) ac_try_echo=$ac_try;;
35977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35978 (eval "$ac_compile") 2>conftest.er1
35980 grep -v '^ *+' conftest.er1 >conftest.err
35982 cat conftest.err >&5
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); } && {
35985 test -z "$ac_c_werror_flag" ||
35986 test ! -s conftest.err
35987 } && test -s conftest.$ac_objext; then
35990 cat >conftest.$ac_ext <<_ACEOF
35993 cat confdefs.h >>conftest.$ac_ext
35994 cat >>conftest.$ac_ext <<_ACEOF
35995 /* end confdefs.h. */
35996 $ac_includes_default
35997 typedef long long int ac__type_sizeof_;
36001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36008 rm -f conftest.$ac_objext
36009 if { (ac_try="$ac_compile"
36010 case "(($ac_try" in
36011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36012 *) ac_try_echo=$ac_try;;
36014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36015 (eval "$ac_compile") 2>conftest.er1
36017 grep -v '^ *+' conftest.er1 >conftest.err
36019 cat conftest.err >&5
36020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021 (exit $ac_status); } && {
36022 test -z "$ac_c_werror_flag" ||
36023 test ! -s conftest.err
36024 } && test -s conftest.$ac_objext; then
36025 ac_lo=$ac_mid; break
36027 echo "$as_me: failed program was:" >&5
36028 sed 's/^/| /' conftest.$ac_ext >&5
36030 ac_hi=`expr '(' $ac_mid ')' - 1`
36031 if test $ac_mid -le $ac_hi; then
36035 ac_mid=`expr 2 '*' $ac_mid`
36038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36041 echo "$as_me: failed program was:" >&5
36042 sed 's/^/| /' conftest.$ac_ext >&5
36047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36051 # Binary search between lo and hi bounds.
36052 while test "x$ac_lo" != "x$ac_hi"; do
36053 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36054 cat >conftest.$ac_ext <<_ACEOF
36057 cat confdefs.h >>conftest.$ac_ext
36058 cat >>conftest.$ac_ext <<_ACEOF
36059 /* end confdefs.h. */
36060 $ac_includes_default
36061 typedef long long int ac__type_sizeof_;
36065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36072 rm -f conftest.$ac_objext
36073 if { (ac_try="$ac_compile"
36074 case "(($ac_try" in
36075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36076 *) ac_try_echo=$ac_try;;
36078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36079 (eval "$ac_compile") 2>conftest.er1
36081 grep -v '^ *+' conftest.er1 >conftest.err
36083 cat conftest.err >&5
36084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085 (exit $ac_status); } && {
36086 test -z "$ac_c_werror_flag" ||
36087 test ! -s conftest.err
36088 } && test -s conftest.$ac_objext; then
36091 echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36094 ac_lo=`expr '(' $ac_mid ')' + 1`
36097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36100 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36101 '') if test "$ac_cv_type_long_long_int" = yes; then
36102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36103 See \`config.log' for more details." >&5
36104 echo "$as_me: error: cannot compute sizeof (long long int)
36105 See \`config.log' for more details." >&2;}
36106 { (exit 77); exit 77; }; }
36108 ac_cv_sizeof_long_long_int=0
36112 cat >conftest.$ac_ext <<_ACEOF
36115 cat confdefs.h >>conftest.$ac_ext
36116 cat >>conftest.$ac_ext <<_ACEOF
36117 /* end confdefs.h. */
36118 $ac_includes_default
36119 typedef long long int ac__type_sizeof_;
36120 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36121 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36123 #include <stdlib.h>
36128 FILE *f = fopen ("conftest.val", "w");
36131 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36133 long int i = longval ();
36134 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36136 fprintf (f, "%ld\n", i);
36140 unsigned long int i = ulongval ();
36141 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36143 fprintf (f, "%lu\n", i);
36145 return ferror (f) || fclose (f) != 0;
36151 rm -f conftest$ac_exeext
36152 if { (ac_try="$ac_link"
36153 case "(($ac_try" in
36154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155 *) ac_try_echo=$ac_try;;
36157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36158 (eval "$ac_link") 2>&5
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36162 { (case "(($ac_try" in
36163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36164 *) ac_try_echo=$ac_try;;
36166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36167 (eval "$ac_try") 2>&5
36169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170 (exit $ac_status); }; }; then
36171 ac_cv_sizeof_long_long_int=`cat conftest.val`
36173 echo "$as_me: program exited with status $ac_status" >&5
36174 echo "$as_me: failed program was:" >&5
36175 sed 's/^/| /' conftest.$ac_ext >&5
36177 ( exit $ac_status )
36178 if test "$ac_cv_type_long_long_int" = yes; then
36179 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36180 See \`config.log' for more details." >&5
36181 echo "$as_me: error: cannot compute sizeof (long long int)
36182 See \`config.log' for more details." >&2;}
36183 { (exit 77); exit 77; }; }
36185 ac_cv_sizeof_long_long_int=0
36188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36192 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36193 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36197 cat >>confdefs.h <<_ACEOF
36198 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36202 { echo "$as_me:$LINENO: checking for int *" >&5
36203 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36204 if test "${ac_cv_type_int_p+set}" = set; then
36205 echo $ECHO_N "(cached) $ECHO_C" >&6
36207 cat >conftest.$ac_ext <<_ACEOF
36210 cat confdefs.h >>conftest.$ac_ext
36211 cat >>conftest.$ac_ext <<_ACEOF
36212 /* end confdefs.h. */
36213 $ac_includes_default
36214 typedef int * ac__type_new_;
36218 if ((ac__type_new_ *) 0)
36220 if (sizeof (ac__type_new_))
36226 rm -f conftest.$ac_objext
36227 if { (ac_try="$ac_compile"
36228 case "(($ac_try" in
36229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36230 *) ac_try_echo=$ac_try;;
36232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36233 (eval "$ac_compile") 2>conftest.er1
36235 grep -v '^ *+' conftest.er1 >conftest.err
36237 cat conftest.err >&5
36238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36239 (exit $ac_status); } && {
36240 test -z "$ac_c_werror_flag" ||
36241 test ! -s conftest.err
36242 } && test -s conftest.$ac_objext; then
36243 ac_cv_type_int_p=yes
36245 echo "$as_me: failed program was:" >&5
36246 sed 's/^/| /' conftest.$ac_ext >&5
36248 ac_cv_type_int_p=no
36251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36253 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36254 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36256 # The cast to long int works around a bug in the HP C Compiler
36257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36259 # This bug is HP SR number 8606223364.
36260 { echo "$as_me:$LINENO: checking size of int *" >&5
36261 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36262 if test "${ac_cv_sizeof_int_p+set}" = set; then
36263 echo $ECHO_N "(cached) $ECHO_C" >&6
36265 if test "$cross_compiling" = yes; then
36266 # Depending upon the size, compute the lo and hi bounds.
36267 cat >conftest.$ac_ext <<_ACEOF
36270 cat confdefs.h >>conftest.$ac_ext
36271 cat >>conftest.$ac_ext <<_ACEOF
36272 /* end confdefs.h. */
36273 $ac_includes_default
36274 typedef int * ac__type_sizeof_;
36278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36285 rm -f conftest.$ac_objext
36286 if { (ac_try="$ac_compile"
36287 case "(($ac_try" in
36288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36289 *) ac_try_echo=$ac_try;;
36291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36292 (eval "$ac_compile") 2>conftest.er1
36294 grep -v '^ *+' conftest.er1 >conftest.err
36296 cat conftest.err >&5
36297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 (exit $ac_status); } && {
36299 test -z "$ac_c_werror_flag" ||
36300 test ! -s conftest.err
36301 } && test -s conftest.$ac_objext; then
36304 cat >conftest.$ac_ext <<_ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h. */
36310 $ac_includes_default
36311 typedef int * ac__type_sizeof_;
36315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36322 rm -f conftest.$ac_objext
36323 if { (ac_try="$ac_compile"
36324 case "(($ac_try" in
36325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36326 *) ac_try_echo=$ac_try;;
36328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36329 (eval "$ac_compile") 2>conftest.er1
36331 grep -v '^ *+' conftest.er1 >conftest.err
36333 cat conftest.err >&5
36334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335 (exit $ac_status); } && {
36336 test -z "$ac_c_werror_flag" ||
36337 test ! -s conftest.err
36338 } && test -s conftest.$ac_objext; then
36339 ac_hi=$ac_mid; break
36341 echo "$as_me: failed program was:" >&5
36342 sed 's/^/| /' conftest.$ac_ext >&5
36344 ac_lo=`expr $ac_mid + 1`
36345 if test $ac_lo -le $ac_mid; then
36349 ac_mid=`expr 2 '*' $ac_mid + 1`
36352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36355 echo "$as_me: failed program was:" >&5
36356 sed 's/^/| /' conftest.$ac_ext >&5
36358 cat >conftest.$ac_ext <<_ACEOF
36361 cat confdefs.h >>conftest.$ac_ext
36362 cat >>conftest.$ac_ext <<_ACEOF
36363 /* end confdefs.h. */
36364 $ac_includes_default
36365 typedef int * ac__type_sizeof_;
36369 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36376 rm -f conftest.$ac_objext
36377 if { (ac_try="$ac_compile"
36378 case "(($ac_try" in
36379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36380 *) ac_try_echo=$ac_try;;
36382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36383 (eval "$ac_compile") 2>conftest.er1
36385 grep -v '^ *+' conftest.er1 >conftest.err
36387 cat conftest.err >&5
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); } && {
36390 test -z "$ac_c_werror_flag" ||
36391 test ! -s conftest.err
36392 } && test -s conftest.$ac_objext; then
36395 cat >conftest.$ac_ext <<_ACEOF
36398 cat confdefs.h >>conftest.$ac_ext
36399 cat >>conftest.$ac_ext <<_ACEOF
36400 /* end confdefs.h. */
36401 $ac_includes_default
36402 typedef int * ac__type_sizeof_;
36406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36413 rm -f conftest.$ac_objext
36414 if { (ac_try="$ac_compile"
36415 case "(($ac_try" in
36416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36417 *) ac_try_echo=$ac_try;;
36419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36420 (eval "$ac_compile") 2>conftest.er1
36422 grep -v '^ *+' conftest.er1 >conftest.err
36424 cat conftest.err >&5
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); } && {
36427 test -z "$ac_c_werror_flag" ||
36428 test ! -s conftest.err
36429 } && test -s conftest.$ac_objext; then
36430 ac_lo=$ac_mid; break
36432 echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36435 ac_hi=`expr '(' $ac_mid ')' - 1`
36436 if test $ac_mid -le $ac_hi; then
36440 ac_mid=`expr 2 '*' $ac_mid`
36443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36446 echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36456 # Binary search between lo and hi bounds.
36457 while test "x$ac_lo" != "x$ac_hi"; do
36458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36459 cat >conftest.$ac_ext <<_ACEOF
36462 cat confdefs.h >>conftest.$ac_ext
36463 cat >>conftest.$ac_ext <<_ACEOF
36464 /* end confdefs.h. */
36465 $ac_includes_default
36466 typedef int * ac__type_sizeof_;
36470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36477 rm -f conftest.$ac_objext
36478 if { (ac_try="$ac_compile"
36479 case "(($ac_try" in
36480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36481 *) ac_try_echo=$ac_try;;
36483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36484 (eval "$ac_compile") 2>conftest.er1
36486 grep -v '^ *+' conftest.er1 >conftest.err
36488 cat conftest.err >&5
36489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 (exit $ac_status); } && {
36491 test -z "$ac_c_werror_flag" ||
36492 test ! -s conftest.err
36493 } && test -s conftest.$ac_objext; then
36496 echo "$as_me: failed program was:" >&5
36497 sed 's/^/| /' conftest.$ac_ext >&5
36499 ac_lo=`expr '(' $ac_mid ')' + 1`
36502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36505 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36506 '') if test "$ac_cv_type_int_p" = yes; then
36507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36508 See \`config.log' for more details." >&5
36509 echo "$as_me: error: cannot compute sizeof (int *)
36510 See \`config.log' for more details." >&2;}
36511 { (exit 77); exit 77; }; }
36513 ac_cv_sizeof_int_p=0
36517 cat >conftest.$ac_ext <<_ACEOF
36520 cat confdefs.h >>conftest.$ac_ext
36521 cat >>conftest.$ac_ext <<_ACEOF
36522 /* end confdefs.h. */
36523 $ac_includes_default
36524 typedef int * ac__type_sizeof_;
36525 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36526 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36528 #include <stdlib.h>
36533 FILE *f = fopen ("conftest.val", "w");
36536 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36538 long int i = longval ();
36539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36541 fprintf (f, "%ld\n", i);
36545 unsigned long int i = ulongval ();
36546 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36548 fprintf (f, "%lu\n", i);
36550 return ferror (f) || fclose (f) != 0;
36556 rm -f conftest$ac_exeext
36557 if { (ac_try="$ac_link"
36558 case "(($ac_try" in
36559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36560 *) ac_try_echo=$ac_try;;
36562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36563 (eval "$ac_link") 2>&5
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36567 { (case "(($ac_try" in
36568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36569 *) ac_try_echo=$ac_try;;
36571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36572 (eval "$ac_try") 2>&5
36574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36575 (exit $ac_status); }; }; then
36576 ac_cv_sizeof_int_p=`cat conftest.val`
36578 echo "$as_me: program exited with status $ac_status" >&5
36579 echo "$as_me: failed program was:" >&5
36580 sed 's/^/| /' conftest.$ac_ext >&5
36582 ( exit $ac_status )
36583 if test "$ac_cv_type_int_p" = yes; then
36584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36585 See \`config.log' for more details." >&5
36586 echo "$as_me: error: cannot compute sizeof (int *)
36587 See \`config.log' for more details." >&2;}
36588 { (exit 77); exit 77; }; }
36590 ac_cv_sizeof_int_p=0
36593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36597 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36598 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36602 cat >>confdefs.h <<_ACEOF
36603 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36608 { echo "$as_me:$LINENO: checking for u_int type" >&5
36609 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36610 if test "${ac_cv_have_u_int+set}" = set; then
36611 echo $ECHO_N "(cached) $ECHO_C" >&6
36614 cat >conftest.$ac_ext <<_ACEOF
36617 cat confdefs.h >>conftest.$ac_ext
36618 cat >>conftest.$ac_ext <<_ACEOF
36619 /* end confdefs.h. */
36621 #include <sys/types.h>
36633 rm -f conftest.$ac_objext
36634 if { (ac_try="$ac_compile"
36635 case "(($ac_try" in
36636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36637 *) ac_try_echo=$ac_try;;
36639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36640 (eval "$ac_compile") 2>conftest.er1
36642 grep -v '^ *+' conftest.er1 >conftest.err
36644 cat conftest.err >&5
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); } && {
36647 test -z "$ac_c_werror_flag" ||
36648 test ! -s conftest.err
36649 } && test -s conftest.$ac_objext; then
36651 ac_cv_have_u_int="yes"
36654 echo "$as_me: failed program was:" >&5
36655 sed 's/^/| /' conftest.$ac_ext >&5
36658 ac_cv_have_u_int="no"
36663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36667 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36668 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36669 if test "x$ac_cv_have_u_int" = "xyes" ; then
36670 cat >>confdefs.h <<\_ACEOF
36671 #define HAVE_U_INT 1
36677 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36678 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36679 if test "${ac_cv_have_intmax_t+set}" = set; then
36680 echo $ECHO_N "(cached) $ECHO_C" >&6
36683 cat >conftest.$ac_ext <<_ACEOF
36686 cat confdefs.h >>conftest.$ac_ext
36687 cat >>conftest.$ac_ext <<_ACEOF
36688 /* end confdefs.h. */
36690 #include <sys/types.h>
36702 rm -f conftest.$ac_objext
36703 if { (ac_try="$ac_compile"
36704 case "(($ac_try" in
36705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36706 *) ac_try_echo=$ac_try;;
36708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36709 (eval "$ac_compile") 2>conftest.er1
36711 grep -v '^ *+' conftest.er1 >conftest.err
36713 cat conftest.err >&5
36714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 (exit $ac_status); } && {
36716 test -z "$ac_c_werror_flag" ||
36717 test ! -s conftest.err
36718 } && test -s conftest.$ac_objext; then
36720 ac_cv_have_intmax_t="yes"
36723 echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36727 cat >conftest.$ac_ext <<_ACEOF
36730 cat confdefs.h >>conftest.$ac_ext
36731 cat >>conftest.$ac_ext <<_ACEOF
36732 /* end confdefs.h. */
36734 #include <stdint.h>
36746 rm -f conftest.$ac_objext
36747 if { (ac_try="$ac_compile"
36748 case "(($ac_try" in
36749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36750 *) ac_try_echo=$ac_try;;
36752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36753 (eval "$ac_compile") 2>conftest.er1
36755 grep -v '^ *+' conftest.er1 >conftest.err
36757 cat conftest.err >&5
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } && {
36760 test -z "$ac_c_werror_flag" ||
36761 test ! -s conftest.err
36762 } && test -s conftest.$ac_objext; then
36764 ac_cv_have_intmax_t="yes"
36767 echo "$as_me: failed program was:" >&5
36768 sed 's/^/| /' conftest.$ac_ext >&5
36771 ac_cv_have_intmax_t="no"
36776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36785 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36786 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36787 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36788 cat >>confdefs.h <<\_ACEOF
36789 #define HAVE_INTMAX_T 1
36795 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36796 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36797 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36798 echo $ECHO_N "(cached) $ECHO_C" >&6
36801 cat >conftest.$ac_ext <<_ACEOF
36804 cat confdefs.h >>conftest.$ac_ext
36805 cat >>conftest.$ac_ext <<_ACEOF
36806 /* end confdefs.h. */
36808 #include <sys/types.h>
36814 u_intmax_t a; a = 1;
36820 rm -f conftest.$ac_objext
36821 if { (ac_try="$ac_compile"
36822 case "(($ac_try" in
36823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36824 *) ac_try_echo=$ac_try;;
36826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36827 (eval "$ac_compile") 2>conftest.er1
36829 grep -v '^ *+' conftest.er1 >conftest.err
36831 cat conftest.err >&5
36832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833 (exit $ac_status); } && {
36834 test -z "$ac_c_werror_flag" ||
36835 test ! -s conftest.err
36836 } && test -s conftest.$ac_objext; then
36838 ac_cv_have_u_intmax_t="yes"
36841 echo "$as_me: failed program was:" >&5
36842 sed 's/^/| /' conftest.$ac_ext >&5
36845 cat >conftest.$ac_ext <<_ACEOF
36848 cat confdefs.h >>conftest.$ac_ext
36849 cat >>conftest.$ac_ext <<_ACEOF
36850 /* end confdefs.h. */
36852 #include <stdint.h>
36858 u_intmax_t a; a = 1;
36864 rm -f conftest.$ac_objext
36865 if { (ac_try="$ac_compile"
36866 case "(($ac_try" in
36867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36868 *) ac_try_echo=$ac_try;;
36870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36871 (eval "$ac_compile") 2>conftest.er1
36873 grep -v '^ *+' conftest.er1 >conftest.err
36875 cat conftest.err >&5
36876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877 (exit $ac_status); } && {
36878 test -z "$ac_c_werror_flag" ||
36879 test ! -s conftest.err
36880 } && test -s conftest.$ac_objext; then
36882 ac_cv_have_u_intmax_t="yes"
36885 echo "$as_me: failed program was:" >&5
36886 sed 's/^/| /' conftest.$ac_ext >&5
36889 ac_cv_have_u_intmax_t="no"
36894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36903 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36904 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36905 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36906 cat >>confdefs.h <<\_ACEOF
36907 #define HAVE_U_INTMAX_T 1
36913 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36914 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36915 if test "${ac_cv_have_intxx_t+set}" = set; then
36916 echo $ECHO_N "(cached) $ECHO_C" >&6
36919 cat >conftest.$ac_ext <<_ACEOF
36922 cat confdefs.h >>conftest.$ac_ext
36923 cat >>conftest.$ac_ext <<_ACEOF
36924 /* end confdefs.h. */
36926 #include <sys/types.h>
36932 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36938 rm -f conftest.$ac_objext
36939 if { (ac_try="$ac_compile"
36940 case "(($ac_try" in
36941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36942 *) ac_try_echo=$ac_try;;
36944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36945 (eval "$ac_compile") 2>conftest.er1
36947 grep -v '^ *+' conftest.er1 >conftest.err
36949 cat conftest.err >&5
36950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36951 (exit $ac_status); } && {
36952 test -z "$ac_c_werror_flag" ||
36953 test ! -s conftest.err
36954 } && test -s conftest.$ac_objext; then
36956 ac_cv_have_intxx_t="yes"
36959 echo "$as_me: failed program was:" >&5
36960 sed 's/^/| /' conftest.$ac_ext >&5
36963 ac_cv_have_intxx_t="no"
36968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36972 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36973 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36974 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36975 cat >>confdefs.h <<\_ACEOF
36976 #define HAVE_INTXX_T 1
36982 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36983 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36984 if test "${ac_cv_have_int64_t+set}" = set; then
36985 echo $ECHO_N "(cached) $ECHO_C" >&6
36988 cat >conftest.$ac_ext <<_ACEOF
36991 cat confdefs.h >>conftest.$ac_ext
36992 cat >>conftest.$ac_ext <<_ACEOF
36993 /* end confdefs.h. */
36995 #include <sys/types.h>
37007 rm -f conftest.$ac_objext
37008 if { (ac_try="$ac_compile"
37009 case "(($ac_try" in
37010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37011 *) ac_try_echo=$ac_try;;
37013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37014 (eval "$ac_compile") 2>conftest.er1
37016 grep -v '^ *+' conftest.er1 >conftest.err
37018 cat conftest.err >&5
37019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020 (exit $ac_status); } && {
37021 test -z "$ac_c_werror_flag" ||
37022 test ! -s conftest.err
37023 } && test -s conftest.$ac_objext; then
37025 ac_cv_have_int64_t="yes"
37028 echo "$as_me: failed program was:" >&5
37029 sed 's/^/| /' conftest.$ac_ext >&5
37032 ac_cv_have_int64_t="no"
37037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37041 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37042 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37043 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37044 cat >>confdefs.h <<\_ACEOF
37045 #define HAVE_INT64_T 1
37051 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37052 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37053 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37054 echo $ECHO_N "(cached) $ECHO_C" >&6
37057 cat >conftest.$ac_ext <<_ACEOF
37060 cat confdefs.h >>conftest.$ac_ext
37061 cat >>conftest.$ac_ext <<_ACEOF
37062 /* end confdefs.h. */
37064 #include <sys/types.h>
37070 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37076 rm -f conftest.$ac_objext
37077 if { (ac_try="$ac_compile"
37078 case "(($ac_try" in
37079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37080 *) ac_try_echo=$ac_try;;
37082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37083 (eval "$ac_compile") 2>conftest.er1
37085 grep -v '^ *+' conftest.er1 >conftest.err
37087 cat conftest.err >&5
37088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089 (exit $ac_status); } && {
37090 test -z "$ac_c_werror_flag" ||
37091 test ! -s conftest.err
37092 } && test -s conftest.$ac_objext; then
37094 ac_cv_have_u_intxx_t="yes"
37097 echo "$as_me: failed program was:" >&5
37098 sed 's/^/| /' conftest.$ac_ext >&5
37101 ac_cv_have_u_intxx_t="no"
37106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37110 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37111 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37112 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37113 cat >>confdefs.h <<\_ACEOF
37114 #define HAVE_U_INTXX_T 1
37120 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37121 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37122 if test "${ac_cv_have_u_int64_t+set}" = set; then
37123 echo $ECHO_N "(cached) $ECHO_C" >&6
37126 cat >conftest.$ac_ext <<_ACEOF
37129 cat confdefs.h >>conftest.$ac_ext
37130 cat >>conftest.$ac_ext <<_ACEOF
37131 /* end confdefs.h. */
37133 #include <sys/types.h>
37139 u_int64_t a; a = 1;
37145 rm -f conftest.$ac_objext
37146 if { (ac_try="$ac_compile"
37147 case "(($ac_try" in
37148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37149 *) ac_try_echo=$ac_try;;
37151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37152 (eval "$ac_compile") 2>conftest.er1
37154 grep -v '^ *+' conftest.er1 >conftest.err
37156 cat conftest.err >&5
37157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158 (exit $ac_status); } && {
37159 test -z "$ac_c_werror_flag" ||
37160 test ! -s conftest.err
37161 } && test -s conftest.$ac_objext; then
37163 ac_cv_have_u_int64_t="yes"
37166 echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37170 ac_cv_have_u_int64_t="no"
37175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37179 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37180 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37181 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37182 cat >>confdefs.h <<\_ACEOF
37183 #define HAVE_U_INT64_T 1
37189 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37190 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37192 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37193 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37194 cat >conftest.$ac_ext <<_ACEOF
37197 cat confdefs.h >>conftest.$ac_ext
37198 cat >>conftest.$ac_ext <<_ACEOF
37199 /* end confdefs.h. */
37201 #include <sys/bitypes.h>
37207 int8_t a; int16_t b; int32_t c;
37208 u_int8_t e; u_int16_t f; u_int32_t g;
37209 a = b = c = e = f = g = 1;
37215 rm -f conftest.$ac_objext
37216 if { (ac_try="$ac_compile"
37217 case "(($ac_try" in
37218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37219 *) ac_try_echo=$ac_try;;
37221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37222 (eval "$ac_compile") 2>conftest.er1
37224 grep -v '^ *+' conftest.er1 >conftest.err
37226 cat conftest.err >&5
37227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228 (exit $ac_status); } && {
37229 test -z "$ac_c_werror_flag" ||
37230 test ! -s conftest.err
37231 } && test -s conftest.$ac_objext; then
37233 cat >>confdefs.h <<\_ACEOF
37234 #define HAVE_U_INTXX_T 1
37237 cat >>confdefs.h <<\_ACEOF
37238 #define HAVE_INTXX_T 1
37241 cat >>confdefs.h <<\_ACEOF
37242 #define HAVE_SYS_BITYPES_H 1
37245 { echo "$as_me:$LINENO: result: yes" >&5
37246 echo "${ECHO_T}yes" >&6; }
37249 echo "$as_me: failed program was:" >&5
37250 sed 's/^/| /' conftest.$ac_ext >&5
37253 { echo "$as_me:$LINENO: result: no" >&5
37254 echo "${ECHO_T}no" >&6; }
37259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37262 if test -z "$have_u_intxx_t" ; then
37263 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37264 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37265 if test "${ac_cv_have_uintxx_t+set}" = set; then
37266 echo $ECHO_N "(cached) $ECHO_C" >&6
37269 cat >conftest.$ac_ext <<_ACEOF
37272 cat confdefs.h >>conftest.$ac_ext
37273 cat >>conftest.$ac_ext <<_ACEOF
37274 /* end confdefs.h. */
37276 #include <sys/types.h>
37282 uint8_t a; uint16_t b;
37283 uint32_t c; a = b = c = 1;
37289 rm -f conftest.$ac_objext
37290 if { (ac_try="$ac_compile"
37291 case "(($ac_try" in
37292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37293 *) ac_try_echo=$ac_try;;
37295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37296 (eval "$ac_compile") 2>conftest.er1
37298 grep -v '^ *+' conftest.er1 >conftest.err
37300 cat conftest.err >&5
37301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302 (exit $ac_status); } && {
37303 test -z "$ac_c_werror_flag" ||
37304 test ! -s conftest.err
37305 } && test -s conftest.$ac_objext; then
37307 ac_cv_have_uintxx_t="yes"
37310 echo "$as_me: failed program was:" >&5
37311 sed 's/^/| /' conftest.$ac_ext >&5
37314 ac_cv_have_uintxx_t="no"
37319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37323 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37324 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37325 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37326 cat >>confdefs.h <<\_ACEOF
37327 #define HAVE_UINTXX_T 1
37333 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37334 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37336 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37337 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37338 cat >conftest.$ac_ext <<_ACEOF
37341 cat confdefs.h >>conftest.$ac_ext
37342 cat >>conftest.$ac_ext <<_ACEOF
37343 /* end confdefs.h. */
37345 #include <sys/bitypes.h>
37351 int64_t a; u_int64_t b;
37358 rm -f conftest.$ac_objext
37359 if { (ac_try="$ac_compile"
37360 case "(($ac_try" in
37361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37362 *) ac_try_echo=$ac_try;;
37364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37365 (eval "$ac_compile") 2>conftest.er1
37367 grep -v '^ *+' conftest.er1 >conftest.err
37369 cat conftest.err >&5
37370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371 (exit $ac_status); } && {
37372 test -z "$ac_c_werror_flag" ||
37373 test ! -s conftest.err
37374 } && test -s conftest.$ac_objext; then
37376 cat >>confdefs.h <<\_ACEOF
37377 #define HAVE_U_INT64_T 1
37380 cat >>confdefs.h <<\_ACEOF
37381 #define HAVE_INT64_T 1
37384 { echo "$as_me:$LINENO: result: yes" >&5
37385 echo "${ECHO_T}yes" >&6; }
37388 echo "$as_me: failed program was:" >&5
37389 sed 's/^/| /' conftest.$ac_ext >&5
37392 { echo "$as_me:$LINENO: result: no" >&5
37393 echo "${ECHO_T}no" >&6; }
37398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37401 if (test -z "$have_uintxx_t" && \
37402 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37404 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37405 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37406 cat >conftest.$ac_ext <<_ACEOF
37409 cat confdefs.h >>conftest.$ac_ext
37410 cat >>conftest.$ac_ext <<_ACEOF
37411 /* end confdefs.h. */
37413 #include <sys/bitypes.h>
37419 uint8_t a; uint16_t b;
37420 uint32_t c; a = b = c = 1;
37426 rm -f conftest.$ac_objext
37427 if { (ac_try="$ac_compile"
37428 case "(($ac_try" in
37429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37430 *) ac_try_echo=$ac_try;;
37432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37433 (eval "$ac_compile") 2>conftest.er1
37435 grep -v '^ *+' conftest.er1 >conftest.err
37437 cat conftest.err >&5
37438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439 (exit $ac_status); } && {
37440 test -z "$ac_c_werror_flag" ||
37441 test ! -s conftest.err
37442 } && test -s conftest.$ac_objext; then
37444 cat >>confdefs.h <<\_ACEOF
37445 #define HAVE_UINTXX_T 1
37448 { echo "$as_me:$LINENO: result: yes" >&5
37449 echo "${ECHO_T}yes" >&6; }
37452 echo "$as_me: failed program was:" >&5
37453 sed 's/^/| /' conftest.$ac_ext >&5
37456 { echo "$as_me:$LINENO: result: no" >&5
37457 echo "${ECHO_T}no" >&6; }
37462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37498 echo $ECHO_N "(cached) $ECHO_C" >&6
37500 cat >conftest.$ac_ext <<_ACEOF
37503 cat confdefs.h >>conftest.$ac_ext
37504 cat >>conftest.$ac_ext <<_ACEOF
37505 /* end confdefs.h. */
37506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37508 #define $ac_func innocuous_$ac_func
37510 /* System header to define __stub macros and hopefully few prototypes,
37511 which can conflict with char $ac_func (); below.
37512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37513 <limits.h> exists even on freestanding compilers. */
37516 # include <limits.h>
37518 # include <assert.h>
37523 /* Override any GCC internal prototype to avoid an error.
37524 Use char because int might match the return type of a GCC
37525 builtin and then its argument prototype would still apply. */
37530 /* The GNU C library defines this for functions which it implements
37531 to always fail with ENOSYS. Some functions are actually named
37532 something starting with __ and the normal name is an alias. */
37533 #if defined __stub_$ac_func || defined __stub___$ac_func
37540 return $ac_func ();
37545 rm -f conftest.$ac_objext conftest$ac_exeext
37546 if { (ac_try="$ac_link"
37547 case "(($ac_try" in
37548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37549 *) ac_try_echo=$ac_try;;
37551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37552 (eval "$ac_link") 2>conftest.er1
37554 grep -v '^ *+' conftest.er1 >conftest.err
37556 cat conftest.err >&5
37557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); } && {
37559 test -z "$ac_c_werror_flag" ||
37560 test ! -s conftest.err
37561 } && test -s conftest$ac_exeext &&
37562 $as_test_x conftest$ac_exeext; then
37563 eval "$as_ac_var=yes"
37565 echo "$as_me: failed program was:" >&5
37566 sed 's/^/| /' conftest.$ac_ext >&5
37568 eval "$as_ac_var=no"
37571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37572 conftest$ac_exeext conftest.$ac_ext
37574 ac_res=`eval echo '${'$as_ac_var'}'`
37575 { echo "$as_me:$LINENO: result: $ac_res" >&5
37576 echo "${ECHO_T}$ac_res" >&6; }
37577 if test `eval echo '${'$as_ac_var'}'` = yes; then
37578 cat >>confdefs.h <<_ACEOF
37579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37583 echo 'configure: cannot find needed function.'; exit 1
37590 for ac_func in fchdir
37592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37596 echo $ECHO_N "(cached) $ECHO_C" >&6
37598 cat >conftest.$ac_ext <<_ACEOF
37601 cat confdefs.h >>conftest.$ac_ext
37602 cat >>conftest.$ac_ext <<_ACEOF
37603 /* end confdefs.h. */
37604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37606 #define $ac_func innocuous_$ac_func
37608 /* System header to define __stub macros and hopefully few prototypes,
37609 which can conflict with char $ac_func (); below.
37610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37611 <limits.h> exists even on freestanding compilers. */
37614 # include <limits.h>
37616 # include <assert.h>
37621 /* Override any GCC internal prototype to avoid an error.
37622 Use char because int might match the return type of a GCC
37623 builtin and then its argument prototype would still apply. */
37628 /* The GNU C library defines this for functions which it implements
37629 to always fail with ENOSYS. Some functions are actually named
37630 something starting with __ and the normal name is an alias. */
37631 #if defined __stub_$ac_func || defined __stub___$ac_func
37638 return $ac_func ();
37643 rm -f conftest.$ac_objext conftest$ac_exeext
37644 if { (ac_try="$ac_link"
37645 case "(($ac_try" in
37646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37647 *) ac_try_echo=$ac_try;;
37649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37650 (eval "$ac_link") 2>conftest.er1
37652 grep -v '^ *+' conftest.er1 >conftest.err
37654 cat conftest.err >&5
37655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656 (exit $ac_status); } && {
37657 test -z "$ac_c_werror_flag" ||
37658 test ! -s conftest.err
37659 } && test -s conftest$ac_exeext &&
37660 $as_test_x conftest$ac_exeext; then
37661 eval "$as_ac_var=yes"
37663 echo "$as_me: failed program was:" >&5
37664 sed 's/^/| /' conftest.$ac_ext >&5
37666 eval "$as_ac_var=no"
37669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37670 conftest$ac_exeext conftest.$ac_ext
37672 ac_res=`eval echo '${'$as_ac_var'}'`
37673 { echo "$as_me:$LINENO: result: $ac_res" >&5
37674 echo "${ECHO_T}$ac_res" >&6; }
37675 if test `eval echo '${'$as_ac_var'}'` = yes; then
37676 cat >>confdefs.h <<_ACEOF
37677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37679 cat >>confdefs.h <<\_ACEOF
37680 #define HAVE_FCHDIR 1
37687 for ac_func in strtoll
37689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37693 echo $ECHO_N "(cached) $ECHO_C" >&6
37695 cat >conftest.$ac_ext <<_ACEOF
37698 cat confdefs.h >>conftest.$ac_ext
37699 cat >>conftest.$ac_ext <<_ACEOF
37700 /* end confdefs.h. */
37701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37703 #define $ac_func innocuous_$ac_func
37705 /* System header to define __stub macros and hopefully few prototypes,
37706 which can conflict with char $ac_func (); below.
37707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37708 <limits.h> exists even on freestanding compilers. */
37711 # include <limits.h>
37713 # include <assert.h>
37718 /* Override any GCC internal prototype to avoid an error.
37719 Use char because int might match the return type of a GCC
37720 builtin and then its argument prototype would still apply. */
37725 /* The GNU C library defines this for functions which it implements
37726 to always fail with ENOSYS. Some functions are actually named
37727 something starting with __ and the normal name is an alias. */
37728 #if defined __stub_$ac_func || defined __stub___$ac_func
37735 return $ac_func ();
37740 rm -f conftest.$ac_objext conftest$ac_exeext
37741 if { (ac_try="$ac_link"
37742 case "(($ac_try" in
37743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37744 *) ac_try_echo=$ac_try;;
37746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37747 (eval "$ac_link") 2>conftest.er1
37749 grep -v '^ *+' conftest.er1 >conftest.err
37751 cat conftest.err >&5
37752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37753 (exit $ac_status); } && {
37754 test -z "$ac_c_werror_flag" ||
37755 test ! -s conftest.err
37756 } && test -s conftest$ac_exeext &&
37757 $as_test_x conftest$ac_exeext; then
37758 eval "$as_ac_var=yes"
37760 echo "$as_me: failed program was:" >&5
37761 sed 's/^/| /' conftest.$ac_ext >&5
37763 eval "$as_ac_var=no"
37766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37767 conftest$ac_exeext conftest.$ac_ext
37769 ac_res=`eval echo '${'$as_ac_var'}'`
37770 { echo "$as_me:$LINENO: result: $ac_res" >&5
37771 echo "${ECHO_T}$ac_res" >&6; }
37772 if test `eval echo '${'$as_ac_var'}'` = yes; then
37773 cat >>confdefs.h <<_ACEOF
37774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37776 cat >>confdefs.h <<\_ACEOF
37777 #define HAVE_STRTOLL 1
37784 for ac_func in posix_fadvise
37786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37790 echo $ECHO_N "(cached) $ECHO_C" >&6
37792 cat >conftest.$ac_ext <<_ACEOF
37795 cat confdefs.h >>conftest.$ac_ext
37796 cat >>conftest.$ac_ext <<_ACEOF
37797 /* end confdefs.h. */
37798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37800 #define $ac_func innocuous_$ac_func
37802 /* System header to define __stub macros and hopefully few prototypes,
37803 which can conflict with char $ac_func (); below.
37804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37805 <limits.h> exists even on freestanding compilers. */
37808 # include <limits.h>
37810 # include <assert.h>
37815 /* Override any GCC internal prototype to avoid an error.
37816 Use char because int might match the return type of a GCC
37817 builtin and then its argument prototype would still apply. */
37822 /* The GNU C library defines this for functions which it implements
37823 to always fail with ENOSYS. Some functions are actually named
37824 something starting with __ and the normal name is an alias. */
37825 #if defined __stub_$ac_func || defined __stub___$ac_func
37832 return $ac_func ();
37837 rm -f conftest.$ac_objext conftest$ac_exeext
37838 if { (ac_try="$ac_link"
37839 case "(($ac_try" in
37840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37841 *) ac_try_echo=$ac_try;;
37843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37844 (eval "$ac_link") 2>conftest.er1
37846 grep -v '^ *+' conftest.er1 >conftest.err
37848 cat conftest.err >&5
37849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850 (exit $ac_status); } && {
37851 test -z "$ac_c_werror_flag" ||
37852 test ! -s conftest.err
37853 } && test -s conftest$ac_exeext &&
37854 $as_test_x conftest$ac_exeext; then
37855 eval "$as_ac_var=yes"
37857 echo "$as_me: failed program was:" >&5
37858 sed 's/^/| /' conftest.$ac_ext >&5
37860 eval "$as_ac_var=no"
37863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37864 conftest$ac_exeext conftest.$ac_ext
37866 ac_res=`eval echo '${'$as_ac_var'}'`
37867 { echo "$as_me:$LINENO: result: $ac_res" >&5
37868 echo "${ECHO_T}$ac_res" >&6; }
37869 if test `eval echo '${'$as_ac_var'}'` = yes; then
37870 cat >>confdefs.h <<_ACEOF
37871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37878 for ac_func in fdatasync
37880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37884 echo $ECHO_N "(cached) $ECHO_C" >&6
37886 cat >conftest.$ac_ext <<_ACEOF
37889 cat confdefs.h >>conftest.$ac_ext
37890 cat >>conftest.$ac_ext <<_ACEOF
37891 /* end confdefs.h. */
37892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37894 #define $ac_func innocuous_$ac_func
37896 /* System header to define __stub macros and hopefully few prototypes,
37897 which can conflict with char $ac_func (); below.
37898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37899 <limits.h> exists even on freestanding compilers. */
37902 # include <limits.h>
37904 # include <assert.h>
37909 /* Override any GCC internal prototype to avoid an error.
37910 Use char because int might match the return type of a GCC
37911 builtin and then its argument prototype would still apply. */
37916 /* The GNU C library defines this for functions which it implements
37917 to always fail with ENOSYS. Some functions are actually named
37918 something starting with __ and the normal name is an alias. */
37919 #if defined __stub_$ac_func || defined __stub___$ac_func
37926 return $ac_func ();
37931 rm -f conftest.$ac_objext conftest$ac_exeext
37932 if { (ac_try="$ac_link"
37933 case "(($ac_try" in
37934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37935 *) ac_try_echo=$ac_try;;
37937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37938 (eval "$ac_link") 2>conftest.er1
37940 grep -v '^ *+' conftest.er1 >conftest.err
37942 cat conftest.err >&5
37943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37944 (exit $ac_status); } && {
37945 test -z "$ac_c_werror_flag" ||
37946 test ! -s conftest.err
37947 } && test -s conftest$ac_exeext &&
37948 $as_test_x conftest$ac_exeext; then
37949 eval "$as_ac_var=yes"
37951 echo "$as_me: failed program was:" >&5
37952 sed 's/^/| /' conftest.$ac_ext >&5
37954 eval "$as_ac_var=no"
37957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37958 conftest$ac_exeext conftest.$ac_ext
37960 ac_res=`eval echo '${'$as_ac_var'}'`
37961 { echo "$as_me:$LINENO: result: $ac_res" >&5
37962 echo "${ECHO_T}$ac_res" >&6; }
37963 if test `eval echo '${'$as_ac_var'}'` = yes; then
37964 cat >>confdefs.h <<_ACEOF
37965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37973 for ac_func in chflags
37975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37979 echo $ECHO_N "(cached) $ECHO_C" >&6
37981 cat >conftest.$ac_ext <<_ACEOF
37984 cat confdefs.h >>conftest.$ac_ext
37985 cat >>conftest.$ac_ext <<_ACEOF
37986 /* end confdefs.h. */
37987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37989 #define $ac_func innocuous_$ac_func
37991 /* System header to define __stub macros and hopefully few prototypes,
37992 which can conflict with char $ac_func (); below.
37993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37994 <limits.h> exists even on freestanding compilers. */
37997 # include <limits.h>
37999 # include <assert.h>
38004 /* Override any GCC internal prototype to avoid an error.
38005 Use char because int might match the return type of a GCC
38006 builtin and then its argument prototype would still apply. */
38011 /* The GNU C library defines this for functions which it implements
38012 to always fail with ENOSYS. Some functions are actually named
38013 something starting with __ and the normal name is an alias. */
38014 #if defined __stub_$ac_func || defined __stub___$ac_func
38021 return $ac_func ();
38026 rm -f conftest.$ac_objext conftest$ac_exeext
38027 if { (ac_try="$ac_link"
38028 case "(($ac_try" in
38029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38030 *) ac_try_echo=$ac_try;;
38032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38033 (eval "$ac_link") 2>conftest.er1
38035 grep -v '^ *+' conftest.er1 >conftest.err
38037 cat conftest.err >&5
38038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039 (exit $ac_status); } && {
38040 test -z "$ac_c_werror_flag" ||
38041 test ! -s conftest.err
38042 } && test -s conftest$ac_exeext &&
38043 $as_test_x conftest$ac_exeext; then
38044 eval "$as_ac_var=yes"
38046 echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.$ac_ext >&5
38049 eval "$as_ac_var=no"
38052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38053 conftest$ac_exeext conftest.$ac_ext
38055 ac_res=`eval echo '${'$as_ac_var'}'`
38056 { echo "$as_me:$LINENO: result: $ac_res" >&5
38057 echo "${ECHO_T}$ac_res" >&6; }
38058 if test `eval echo '${'$as_ac_var'}'` = yes; then
38059 cat >>confdefs.h <<_ACEOF
38060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38071 for ac_func in snprintf vsnprintf gethostid fseeko
38073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38077 echo $ECHO_N "(cached) $ECHO_C" >&6
38079 cat >conftest.$ac_ext <<_ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h. */
38085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38087 #define $ac_func innocuous_$ac_func
38089 /* System header to define __stub macros and hopefully few prototypes,
38090 which can conflict with char $ac_func (); below.
38091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38092 <limits.h> exists even on freestanding compilers. */
38095 # include <limits.h>
38097 # include <assert.h>
38102 /* Override any GCC internal prototype to avoid an error.
38103 Use char because int might match the return type of a GCC
38104 builtin and then its argument prototype would still apply. */
38109 /* The GNU C library defines this for functions which it implements
38110 to always fail with ENOSYS. Some functions are actually named
38111 something starting with __ and the normal name is an alias. */
38112 #if defined __stub_$ac_func || defined __stub___$ac_func
38119 return $ac_func ();
38124 rm -f conftest.$ac_objext conftest$ac_exeext
38125 if { (ac_try="$ac_link"
38126 case "(($ac_try" in
38127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38128 *) ac_try_echo=$ac_try;;
38130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38131 (eval "$ac_link") 2>conftest.er1
38133 grep -v '^ *+' conftest.er1 >conftest.err
38135 cat conftest.err >&5
38136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); } && {
38138 test -z "$ac_c_werror_flag" ||
38139 test ! -s conftest.err
38140 } && test -s conftest$ac_exeext &&
38141 $as_test_x conftest$ac_exeext; then
38142 eval "$as_ac_var=yes"
38144 echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38147 eval "$as_ac_var=no"
38150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38151 conftest$ac_exeext conftest.$ac_ext
38153 ac_res=`eval echo '${'$as_ac_var'}'`
38154 { echo "$as_me:$LINENO: result: $ac_res" >&5
38155 echo "${ECHO_T}$ac_res" >&6; }
38156 if test `eval echo '${'$as_ac_var'}'` = yes; then
38157 cat >>confdefs.h <<_ACEOF
38158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38165 { echo "$as_me:$LINENO: checking for va_copy" >&5
38166 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38167 if test "${ba_cv_va_copy+set}" = set; then
38168 echo $ECHO_N "(cached) $ECHO_C" >&6
38171 cat >conftest.$ac_ext <<_ACEOF
38174 cat confdefs.h >>conftest.$ac_ext
38175 cat >>conftest.$ac_ext <<_ACEOF
38176 /* end confdefs.h. */
38178 #include <stdarg.h>
38179 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38180 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38186 call_use_va_copy(1,2,3)
38192 rm -f conftest.$ac_objext conftest$ac_exeext
38193 if { (ac_try="$ac_link"
38194 case "(($ac_try" in
38195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38196 *) ac_try_echo=$ac_try;;
38198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38199 (eval "$ac_link") 2>conftest.er1
38201 grep -v '^ *+' conftest.er1 >conftest.err
38203 cat conftest.err >&5
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); } && {
38206 test -z "$ac_c_werror_flag" ||
38207 test ! -s conftest.err
38208 } && test -s conftest$ac_exeext &&
38209 $as_test_x conftest$ac_exeext; then
38214 echo "$as_me: failed program was:" >&5
38215 sed 's/^/| /' conftest.$ac_ext >&5
38223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38224 conftest$ac_exeext conftest.$ac_ext
38228 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38229 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38230 test $ba_cv_va_copy = yes &&
38231 cat >>confdefs.h <<\_ACEOF
38232 #define HAVE_VA_COPY 1
38240 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38246 echo $ECHO_N "(cached) $ECHO_C" >&6
38248 cat >conftest.$ac_ext <<_ACEOF
38251 cat confdefs.h >>conftest.$ac_ext
38252 cat >>conftest.$ac_ext <<_ACEOF
38253 /* end confdefs.h. */
38254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38256 #define $ac_func innocuous_$ac_func
38258 /* System header to define __stub macros and hopefully few prototypes,
38259 which can conflict with char $ac_func (); below.
38260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38261 <limits.h> exists even on freestanding compilers. */
38264 # include <limits.h>
38266 # include <assert.h>
38271 /* Override any GCC internal prototype to avoid an error.
38272 Use char because int might match the return type of a GCC
38273 builtin and then its argument prototype would still apply. */
38278 /* The GNU C library defines this for functions which it implements
38279 to always fail with ENOSYS. Some functions are actually named
38280 something starting with __ and the normal name is an alias. */
38281 #if defined __stub_$ac_func || defined __stub___$ac_func
38288 return $ac_func ();
38293 rm -f conftest.$ac_objext conftest$ac_exeext
38294 if { (ac_try="$ac_link"
38295 case "(($ac_try" in
38296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38297 *) ac_try_echo=$ac_try;;
38299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38300 (eval "$ac_link") 2>conftest.er1
38302 grep -v '^ *+' conftest.er1 >conftest.err
38304 cat conftest.err >&5
38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306 (exit $ac_status); } && {
38307 test -z "$ac_c_werror_flag" ||
38308 test ! -s conftest.err
38309 } && test -s conftest$ac_exeext &&
38310 $as_test_x conftest$ac_exeext; then
38311 eval "$as_ac_var=yes"
38313 echo "$as_me: failed program was:" >&5
38314 sed 's/^/| /' conftest.$ac_ext >&5
38316 eval "$as_ac_var=no"
38319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38320 conftest$ac_exeext conftest.$ac_ext
38322 ac_res=`eval echo '${'$as_ac_var'}'`
38323 { echo "$as_me:$LINENO: result: $ac_res" >&5
38324 echo "${ECHO_T}$ac_res" >&6; }
38325 if test `eval echo '${'$as_ac_var'}'` = yes; then
38326 cat >>confdefs.h <<_ACEOF
38327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38334 # If resolver functions are not in libc check for -lnsl or -lresolv.
38335 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38336 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38337 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38338 echo $ECHO_N "(cached) $ECHO_C" >&6
38340 cat >conftest.$ac_ext <<_ACEOF
38343 cat confdefs.h >>conftest.$ac_ext
38344 cat >>conftest.$ac_ext <<_ACEOF
38345 /* end confdefs.h. */
38346 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38348 #define gethostbyname_r innocuous_gethostbyname_r
38350 /* System header to define __stub macros and hopefully few prototypes,
38351 which can conflict with char gethostbyname_r (); below.
38352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38353 <limits.h> exists even on freestanding compilers. */
38356 # include <limits.h>
38358 # include <assert.h>
38361 #undef gethostbyname_r
38363 /* Override any GCC internal prototype to avoid an error.
38364 Use char because int might match the return type of a GCC
38365 builtin and then its argument prototype would still apply. */
38369 char gethostbyname_r ();
38370 /* The GNU C library defines this for functions which it implements
38371 to always fail with ENOSYS. Some functions are actually named
38372 something starting with __ and the normal name is an alias. */
38373 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38380 return gethostbyname_r ();
38385 rm -f conftest.$ac_objext conftest$ac_exeext
38386 if { (ac_try="$ac_link"
38387 case "(($ac_try" in
38388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38389 *) ac_try_echo=$ac_try;;
38391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38392 (eval "$ac_link") 2>conftest.er1
38394 grep -v '^ *+' conftest.er1 >conftest.err
38396 cat conftest.err >&5
38397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398 (exit $ac_status); } && {
38399 test -z "$ac_c_werror_flag" ||
38400 test ! -s conftest.err
38401 } && test -s conftest$ac_exeext &&
38402 $as_test_x conftest$ac_exeext; then
38403 ac_cv_func_gethostbyname_r=yes
38405 echo "$as_me: failed program was:" >&5
38406 sed 's/^/| /' conftest.$ac_ext >&5
38408 ac_cv_func_gethostbyname_r=no
38411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38412 conftest$ac_exeext conftest.$ac_ext
38414 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38415 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38416 if test $ac_cv_func_gethostbyname_r = yes; then
38417 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38418 echo "${ECHO_T}using libc's resolver" >&6; }
38421 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38422 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38423 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38424 echo $ECHO_N "(cached) $ECHO_C" >&6
38426 ac_check_lib_save_LIBS=$LIBS
38428 cat >conftest.$ac_ext <<_ACEOF
38431 cat confdefs.h >>conftest.$ac_ext
38432 cat >>conftest.$ac_ext <<_ACEOF
38433 /* end confdefs.h. */
38435 /* Override any GCC internal prototype to avoid an error.
38436 Use char because int might match the return type of a GCC
38437 builtin and then its argument prototype would still apply. */
38441 char gethostbyname_r ();
38445 return gethostbyname_r ();
38450 rm -f conftest.$ac_objext conftest$ac_exeext
38451 if { (ac_try="$ac_link"
38452 case "(($ac_try" in
38453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38454 *) ac_try_echo=$ac_try;;
38456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38457 (eval "$ac_link") 2>conftest.er1
38459 grep -v '^ *+' conftest.er1 >conftest.err
38461 cat conftest.err >&5
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); } && {
38464 test -z "$ac_c_werror_flag" ||
38465 test ! -s conftest.err
38466 } && test -s conftest$ac_exeext &&
38467 $as_test_x conftest$ac_exeext; then
38468 ac_cv_lib_nsl_gethostbyname_r=yes
38470 echo "$as_me: failed program was:" >&5
38471 sed 's/^/| /' conftest.$ac_ext >&5
38473 ac_cv_lib_nsl_gethostbyname_r=no
38476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38477 conftest$ac_exeext conftest.$ac_ext
38478 LIBS=$ac_check_lib_save_LIBS
38480 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38481 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38482 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38483 cat >>confdefs.h <<_ACEOF
38484 #define HAVE_LIBNSL 1
38492 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38493 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38494 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38495 echo $ECHO_N "(cached) $ECHO_C" >&6
38497 ac_check_lib_save_LIBS=$LIBS
38498 LIBS="-lresolv $LIBS"
38499 cat >conftest.$ac_ext <<_ACEOF
38502 cat confdefs.h >>conftest.$ac_ext
38503 cat >>conftest.$ac_ext <<_ACEOF
38504 /* end confdefs.h. */
38506 /* Override any GCC internal prototype to avoid an error.
38507 Use char because int might match the return type of a GCC
38508 builtin and then its argument prototype would still apply. */
38512 char gethostbyname_r ();
38516 return gethostbyname_r ();
38521 rm -f conftest.$ac_objext conftest$ac_exeext
38522 if { (ac_try="$ac_link"
38523 case "(($ac_try" in
38524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38525 *) ac_try_echo=$ac_try;;
38527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38528 (eval "$ac_link") 2>conftest.er1
38530 grep -v '^ *+' conftest.er1 >conftest.err
38532 cat conftest.err >&5
38533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534 (exit $ac_status); } && {
38535 test -z "$ac_c_werror_flag" ||
38536 test ! -s conftest.err
38537 } && test -s conftest$ac_exeext &&
38538 $as_test_x conftest$ac_exeext; then
38539 ac_cv_lib_resolv_gethostbyname_r=yes
38541 echo "$as_me: failed program was:" >&5
38542 sed 's/^/| /' conftest.$ac_ext >&5
38544 ac_cv_lib_resolv_gethostbyname_r=no
38547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38548 conftest$ac_exeext conftest.$ac_ext
38549 LIBS=$ac_check_lib_save_LIBS
38551 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38552 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38553 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38554 cat >>confdefs.h <<_ACEOF
38555 #define HAVE_LIBRESOLV 1
38558 LIBS="-lresolv $LIBS"
38566 for ac_func in inet_pton
38568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38572 echo $ECHO_N "(cached) $ECHO_C" >&6
38574 cat >conftest.$ac_ext <<_ACEOF
38577 cat confdefs.h >>conftest.$ac_ext
38578 cat >>conftest.$ac_ext <<_ACEOF
38579 /* end confdefs.h. */
38580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38582 #define $ac_func innocuous_$ac_func
38584 /* System header to define __stub macros and hopefully few prototypes,
38585 which can conflict with char $ac_func (); below.
38586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38587 <limits.h> exists even on freestanding compilers. */
38590 # include <limits.h>
38592 # include <assert.h>
38597 /* Override any GCC internal prototype to avoid an error.
38598 Use char because int might match the return type of a GCC
38599 builtin and then its argument prototype would still apply. */
38604 /* The GNU C library defines this for functions which it implements
38605 to always fail with ENOSYS. Some functions are actually named
38606 something starting with __ and the normal name is an alias. */
38607 #if defined __stub_$ac_func || defined __stub___$ac_func
38614 return $ac_func ();
38619 rm -f conftest.$ac_objext conftest$ac_exeext
38620 if { (ac_try="$ac_link"
38621 case "(($ac_try" in
38622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38623 *) ac_try_echo=$ac_try;;
38625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38626 (eval "$ac_link") 2>conftest.er1
38628 grep -v '^ *+' conftest.er1 >conftest.err
38630 cat conftest.err >&5
38631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632 (exit $ac_status); } && {
38633 test -z "$ac_c_werror_flag" ||
38634 test ! -s conftest.err
38635 } && test -s conftest$ac_exeext &&
38636 $as_test_x conftest$ac_exeext; then
38637 eval "$as_ac_var=yes"
38639 echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38642 eval "$as_ac_var=no"
38645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38646 conftest$ac_exeext conftest.$ac_ext
38648 ac_res=`eval echo '${'$as_ac_var'}'`
38649 { echo "$as_me:$LINENO: result: $ac_res" >&5
38650 echo "${ECHO_T}$ac_res" >&6; }
38651 if test `eval echo '${'$as_ac_var'}'` = yes; then
38652 cat >>confdefs.h <<_ACEOF
38653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38655 cat >>confdefs.h <<\_ACEOF
38656 #define HAVE_INET_PTON 1
38663 for ac_func in inet_ntop
38665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38669 echo $ECHO_N "(cached) $ECHO_C" >&6
38671 cat >conftest.$ac_ext <<_ACEOF
38674 cat confdefs.h >>conftest.$ac_ext
38675 cat >>conftest.$ac_ext <<_ACEOF
38676 /* end confdefs.h. */
38677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38679 #define $ac_func innocuous_$ac_func
38681 /* System header to define __stub macros and hopefully few prototypes,
38682 which can conflict with char $ac_func (); below.
38683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38684 <limits.h> exists even on freestanding compilers. */
38687 # include <limits.h>
38689 # include <assert.h>
38694 /* Override any GCC internal prototype to avoid an error.
38695 Use char because int might match the return type of a GCC
38696 builtin and then its argument prototype would still apply. */
38701 /* The GNU C library defines this for functions which it implements
38702 to always fail with ENOSYS. Some functions are actually named
38703 something starting with __ and the normal name is an alias. */
38704 #if defined __stub_$ac_func || defined __stub___$ac_func
38711 return $ac_func ();
38716 rm -f conftest.$ac_objext conftest$ac_exeext
38717 if { (ac_try="$ac_link"
38718 case "(($ac_try" in
38719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38720 *) ac_try_echo=$ac_try;;
38722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38723 (eval "$ac_link") 2>conftest.er1
38725 grep -v '^ *+' conftest.er1 >conftest.err
38727 cat conftest.err >&5
38728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38729 (exit $ac_status); } && {
38730 test -z "$ac_c_werror_flag" ||
38731 test ! -s conftest.err
38732 } && test -s conftest$ac_exeext &&
38733 $as_test_x conftest$ac_exeext; then
38734 eval "$as_ac_var=yes"
38736 echo "$as_me: failed program was:" >&5
38737 sed 's/^/| /' conftest.$ac_ext >&5
38739 eval "$as_ac_var=no"
38742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38743 conftest$ac_exeext conftest.$ac_ext
38745 ac_res=`eval echo '${'$as_ac_var'}'`
38746 { echo "$as_me:$LINENO: result: $ac_res" >&5
38747 echo "${ECHO_T}$ac_res" >&6; }
38748 if test `eval echo '${'$as_ac_var'}'` = yes; then
38749 cat >>confdefs.h <<_ACEOF
38750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38752 cat >>confdefs.h <<\_ACEOF
38753 #define HAVE_INET_NTOP 1
38760 for ac_func in gethostbyname2
38762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38766 echo $ECHO_N "(cached) $ECHO_C" >&6
38768 cat >conftest.$ac_ext <<_ACEOF
38771 cat confdefs.h >>conftest.$ac_ext
38772 cat >>conftest.$ac_ext <<_ACEOF
38773 /* end confdefs.h. */
38774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38776 #define $ac_func innocuous_$ac_func
38778 /* System header to define __stub macros and hopefully few prototypes,
38779 which can conflict with char $ac_func (); below.
38780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38781 <limits.h> exists even on freestanding compilers. */
38784 # include <limits.h>
38786 # include <assert.h>
38791 /* Override any GCC internal prototype to avoid an error.
38792 Use char because int might match the return type of a GCC
38793 builtin and then its argument prototype would still apply. */
38798 /* The GNU C library defines this for functions which it implements
38799 to always fail with ENOSYS. Some functions are actually named
38800 something starting with __ and the normal name is an alias. */
38801 #if defined __stub_$ac_func || defined __stub___$ac_func
38808 return $ac_func ();
38813 rm -f conftest.$ac_objext conftest$ac_exeext
38814 if { (ac_try="$ac_link"
38815 case "(($ac_try" in
38816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38817 *) ac_try_echo=$ac_try;;
38819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38820 (eval "$ac_link") 2>conftest.er1
38822 grep -v '^ *+' conftest.er1 >conftest.err
38824 cat conftest.err >&5
38825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826 (exit $ac_status); } && {
38827 test -z "$ac_c_werror_flag" ||
38828 test ! -s conftest.err
38829 } && test -s conftest$ac_exeext &&
38830 $as_test_x conftest$ac_exeext; then
38831 eval "$as_ac_var=yes"
38833 echo "$as_me: failed program was:" >&5
38834 sed 's/^/| /' conftest.$ac_ext >&5
38836 eval "$as_ac_var=no"
38839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38840 conftest$ac_exeext conftest.$ac_ext
38842 ac_res=`eval echo '${'$as_ac_var'}'`
38843 { echo "$as_me:$LINENO: result: $ac_res" >&5
38844 echo "${ECHO_T}$ac_res" >&6; }
38845 if test `eval echo '${'$as_ac_var'}'` = yes; then
38846 cat >>confdefs.h <<_ACEOF
38847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38849 cat >>confdefs.h <<\_ACEOF
38850 #define HAVE_GETHOSTBYNAME2 1
38857 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38858 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38859 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38860 echo $ECHO_N "(cached) $ECHO_C" >&6
38863 cat >conftest.$ac_ext <<_ACEOF
38866 cat confdefs.h >>conftest.$ac_ext
38867 cat >>conftest.$ac_ext <<_ACEOF
38868 /* end confdefs.h. */
38870 #include <sys/socket.h>
38876 struct sockaddr s; s.sa_len;
38882 rm -f conftest.$ac_objext
38883 if { (ac_try="$ac_compile"
38884 case "(($ac_try" in
38885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38886 *) ac_try_echo=$ac_try;;
38888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38889 (eval "$ac_compile") 2>conftest.er1
38891 grep -v '^ *+' conftest.er1 >conftest.err
38893 cat conftest.err >&5
38894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38895 (exit $ac_status); } && {
38896 test -z "$ac_c_werror_flag" ||
38897 test ! -s conftest.err
38898 } && test -s conftest.$ac_objext; then
38900 ac_cv_struct_sockaddr_sa_len=yes
38903 echo "$as_me: failed program was:" >&5
38904 sed 's/^/| /' conftest.$ac_ext >&5
38906 ac_cv_struct_sockaddr_sa_len=no
38911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38915 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38916 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38918 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38920 cat >>confdefs.h <<\_ACEOF
38921 #define HAVE_SA_LEN 1
38927 for ac_func in strftime
38929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38933 echo $ECHO_N "(cached) $ECHO_C" >&6
38935 cat >conftest.$ac_ext <<_ACEOF
38938 cat confdefs.h >>conftest.$ac_ext
38939 cat >>conftest.$ac_ext <<_ACEOF
38940 /* end confdefs.h. */
38941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38943 #define $ac_func innocuous_$ac_func
38945 /* System header to define __stub macros and hopefully few prototypes,
38946 which can conflict with char $ac_func (); below.
38947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38948 <limits.h> exists even on freestanding compilers. */
38951 # include <limits.h>
38953 # include <assert.h>
38958 /* Override any GCC internal prototype to avoid an error.
38959 Use char because int might match the return type of a GCC
38960 builtin and then its argument prototype would still apply. */
38965 /* The GNU C library defines this for functions which it implements
38966 to always fail with ENOSYS. Some functions are actually named
38967 something starting with __ and the normal name is an alias. */
38968 #if defined __stub_$ac_func || defined __stub___$ac_func
38975 return $ac_func ();
38980 rm -f conftest.$ac_objext conftest$ac_exeext
38981 if { (ac_try="$ac_link"
38982 case "(($ac_try" in
38983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38984 *) ac_try_echo=$ac_try;;
38986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38987 (eval "$ac_link") 2>conftest.er1
38989 grep -v '^ *+' conftest.er1 >conftest.err
38991 cat conftest.err >&5
38992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38993 (exit $ac_status); } && {
38994 test -z "$ac_c_werror_flag" ||
38995 test ! -s conftest.err
38996 } && test -s conftest$ac_exeext &&
38997 $as_test_x conftest$ac_exeext; then
38998 eval "$as_ac_var=yes"
39000 echo "$as_me: failed program was:" >&5
39001 sed 's/^/| /' conftest.$ac_ext >&5
39003 eval "$as_ac_var=no"
39006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39007 conftest$ac_exeext conftest.$ac_ext
39009 ac_res=`eval echo '${'$as_ac_var'}'`
39010 { echo "$as_me:$LINENO: result: $ac_res" >&5
39011 echo "${ECHO_T}$ac_res" >&6; }
39012 if test `eval echo '${'$as_ac_var'}'` = yes; then
39013 cat >>confdefs.h <<_ACEOF
39014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39018 # strftime is in -lintl on SCO UNIX.
39019 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39020 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39021 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39022 echo $ECHO_N "(cached) $ECHO_C" >&6
39024 ac_check_lib_save_LIBS=$LIBS
39025 LIBS="-lintl $LIBS"
39026 cat >conftest.$ac_ext <<_ACEOF
39029 cat confdefs.h >>conftest.$ac_ext
39030 cat >>conftest.$ac_ext <<_ACEOF
39031 /* end confdefs.h. */
39033 /* Override any GCC internal prototype to avoid an error.
39034 Use char because int might match the return type of a GCC
39035 builtin and then its argument prototype would still apply. */
39043 return strftime ();
39048 rm -f conftest.$ac_objext conftest$ac_exeext
39049 if { (ac_try="$ac_link"
39050 case "(($ac_try" in
39051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39052 *) ac_try_echo=$ac_try;;
39054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39055 (eval "$ac_link") 2>conftest.er1
39057 grep -v '^ *+' conftest.er1 >conftest.err
39059 cat conftest.err >&5
39060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061 (exit $ac_status); } && {
39062 test -z "$ac_c_werror_flag" ||
39063 test ! -s conftest.err
39064 } && test -s conftest$ac_exeext &&
39065 $as_test_x conftest$ac_exeext; then
39066 ac_cv_lib_intl_strftime=yes
39068 echo "$as_me: failed program was:" >&5
39069 sed 's/^/| /' conftest.$ac_ext >&5
39071 ac_cv_lib_intl_strftime=no
39074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39075 conftest$ac_exeext conftest.$ac_ext
39076 LIBS=$ac_check_lib_save_LIBS
39078 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39079 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39080 if test $ac_cv_lib_intl_strftime = yes; then
39081 cat >>confdefs.h <<\_ACEOF
39082 #define HAVE_STRFTIME 1
39085 LIBS="-lintl $LIBS"
39092 for ac_func in vprintf
39094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39098 echo $ECHO_N "(cached) $ECHO_C" >&6
39100 cat >conftest.$ac_ext <<_ACEOF
39103 cat confdefs.h >>conftest.$ac_ext
39104 cat >>conftest.$ac_ext <<_ACEOF
39105 /* end confdefs.h. */
39106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39108 #define $ac_func innocuous_$ac_func
39110 /* System header to define __stub macros and hopefully few prototypes,
39111 which can conflict with char $ac_func (); below.
39112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39113 <limits.h> exists even on freestanding compilers. */
39116 # include <limits.h>
39118 # include <assert.h>
39123 /* Override any GCC internal prototype to avoid an error.
39124 Use char because int might match the return type of a GCC
39125 builtin and then its argument prototype would still apply. */
39130 /* The GNU C library defines this for functions which it implements
39131 to always fail with ENOSYS. Some functions are actually named
39132 something starting with __ and the normal name is an alias. */
39133 #if defined __stub_$ac_func || defined __stub___$ac_func
39140 return $ac_func ();
39145 rm -f conftest.$ac_objext conftest$ac_exeext
39146 if { (ac_try="$ac_link"
39147 case "(($ac_try" in
39148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39149 *) ac_try_echo=$ac_try;;
39151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39152 (eval "$ac_link") 2>conftest.er1
39154 grep -v '^ *+' conftest.er1 >conftest.err
39156 cat conftest.err >&5
39157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158 (exit $ac_status); } && {
39159 test -z "$ac_c_werror_flag" ||
39160 test ! -s conftest.err
39161 } && test -s conftest$ac_exeext &&
39162 $as_test_x conftest$ac_exeext; then
39163 eval "$as_ac_var=yes"
39165 echo "$as_me: failed program was:" >&5
39166 sed 's/^/| /' conftest.$ac_ext >&5
39168 eval "$as_ac_var=no"
39171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39172 conftest$ac_exeext conftest.$ac_ext
39174 ac_res=`eval echo '${'$as_ac_var'}'`
39175 { echo "$as_me:$LINENO: result: $ac_res" >&5
39176 echo "${ECHO_T}$ac_res" >&6; }
39177 if test `eval echo '${'$as_ac_var'}'` = yes; then
39178 cat >>confdefs.h <<_ACEOF
39179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39182 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39183 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39184 if test "${ac_cv_func__doprnt+set}" = set; then
39185 echo $ECHO_N "(cached) $ECHO_C" >&6
39187 cat >conftest.$ac_ext <<_ACEOF
39190 cat confdefs.h >>conftest.$ac_ext
39191 cat >>conftest.$ac_ext <<_ACEOF
39192 /* end confdefs.h. */
39193 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39195 #define _doprnt innocuous__doprnt
39197 /* System header to define __stub macros and hopefully few prototypes,
39198 which can conflict with char _doprnt (); below.
39199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39200 <limits.h> exists even on freestanding compilers. */
39203 # include <limits.h>
39205 # include <assert.h>
39210 /* Override any GCC internal prototype to avoid an error.
39211 Use char because int might match the return type of a GCC
39212 builtin and then its argument prototype would still apply. */
39217 /* The GNU C library defines this for functions which it implements
39218 to always fail with ENOSYS. Some functions are actually named
39219 something starting with __ and the normal name is an alias. */
39220 #if defined __stub__doprnt || defined __stub____doprnt
39232 rm -f conftest.$ac_objext conftest$ac_exeext
39233 if { (ac_try="$ac_link"
39234 case "(($ac_try" in
39235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39236 *) ac_try_echo=$ac_try;;
39238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39239 (eval "$ac_link") 2>conftest.er1
39241 grep -v '^ *+' conftest.er1 >conftest.err
39243 cat conftest.err >&5
39244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); } && {
39246 test -z "$ac_c_werror_flag" ||
39247 test ! -s conftest.err
39248 } && test -s conftest$ac_exeext &&
39249 $as_test_x conftest$ac_exeext; then
39250 ac_cv_func__doprnt=yes
39252 echo "$as_me: failed program was:" >&5
39253 sed 's/^/| /' conftest.$ac_ext >&5
39255 ac_cv_func__doprnt=no
39258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39259 conftest$ac_exeext conftest.$ac_ext
39261 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39262 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39263 if test $ac_cv_func__doprnt = yes; then
39265 cat >>confdefs.h <<\_ACEOF
39266 #define HAVE_DOPRNT 1
39275 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39276 # for constant arguments. Useless!
39277 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39278 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39279 if test "${ac_cv_working_alloca_h+set}" = set; then
39280 echo $ECHO_N "(cached) $ECHO_C" >&6
39282 cat >conftest.$ac_ext <<_ACEOF
39285 cat confdefs.h >>conftest.$ac_ext
39286 cat >>conftest.$ac_ext <<_ACEOF
39287 /* end confdefs.h. */
39288 #include <alloca.h>
39292 char *p = (char *) alloca (2 * sizeof (int));
39298 rm -f conftest.$ac_objext conftest$ac_exeext
39299 if { (ac_try="$ac_link"
39300 case "(($ac_try" in
39301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39302 *) ac_try_echo=$ac_try;;
39304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39305 (eval "$ac_link") 2>conftest.er1
39307 grep -v '^ *+' conftest.er1 >conftest.err
39309 cat conftest.err >&5
39310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311 (exit $ac_status); } && {
39312 test -z "$ac_c_werror_flag" ||
39313 test ! -s conftest.err
39314 } && test -s conftest$ac_exeext &&
39315 $as_test_x conftest$ac_exeext; then
39316 ac_cv_working_alloca_h=yes
39318 echo "$as_me: failed program was:" >&5
39319 sed 's/^/| /' conftest.$ac_ext >&5
39321 ac_cv_working_alloca_h=no
39324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39325 conftest$ac_exeext conftest.$ac_ext
39327 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39328 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39329 if test $ac_cv_working_alloca_h = yes; then
39331 cat >>confdefs.h <<\_ACEOF
39332 #define HAVE_ALLOCA_H 1
39337 { echo "$as_me:$LINENO: checking for alloca" >&5
39338 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39339 if test "${ac_cv_func_alloca_works+set}" = set; then
39340 echo $ECHO_N "(cached) $ECHO_C" >&6
39342 cat >conftest.$ac_ext <<_ACEOF
39345 cat confdefs.h >>conftest.$ac_ext
39346 cat >>conftest.$ac_ext <<_ACEOF
39347 /* end confdefs.h. */
39349 # define alloca __builtin_alloca
39352 # include <malloc.h>
39353 # define alloca _alloca
39355 # ifdef HAVE_ALLOCA_H
39356 # include <alloca.h>
39361 # ifndef alloca /* predefined by HP cc +Olibcalls */
39372 char *p = (char *) alloca (1);
39378 rm -f conftest.$ac_objext conftest$ac_exeext
39379 if { (ac_try="$ac_link"
39380 case "(($ac_try" in
39381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39382 *) ac_try_echo=$ac_try;;
39384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39385 (eval "$ac_link") 2>conftest.er1
39387 grep -v '^ *+' conftest.er1 >conftest.err
39389 cat conftest.err >&5
39390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391 (exit $ac_status); } && {
39392 test -z "$ac_c_werror_flag" ||
39393 test ! -s conftest.err
39394 } && test -s conftest$ac_exeext &&
39395 $as_test_x conftest$ac_exeext; then
39396 ac_cv_func_alloca_works=yes
39398 echo "$as_me: failed program was:" >&5
39399 sed 's/^/| /' conftest.$ac_ext >&5
39401 ac_cv_func_alloca_works=no
39404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39405 conftest$ac_exeext conftest.$ac_ext
39407 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39410 if test $ac_cv_func_alloca_works = yes; then
39412 cat >>confdefs.h <<\_ACEOF
39413 #define HAVE_ALLOCA 1
39417 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39418 # that cause trouble. Some versions do not even contain alloca or
39419 # contain a buggy version. If you still want to use their alloca,
39420 # use ar to extract alloca.o from them instead of compiling alloca.c.
39422 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39424 cat >>confdefs.h <<\_ACEOF
39429 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39431 if test "${ac_cv_os_cray+set}" = set; then
39432 echo $ECHO_N "(cached) $ECHO_C" >&6
39434 cat >conftest.$ac_ext <<_ACEOF
39437 cat confdefs.h >>conftest.$ac_ext
39438 cat >>conftest.$ac_ext <<_ACEOF
39439 /* end confdefs.h. */
39440 #if defined CRAY && ! defined CRAY2
39447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39448 $EGREP "webecray" >/dev/null 2>&1; then
39456 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39457 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39458 if test $ac_cv_os_cray = yes; then
39459 for ac_func in _getb67 GETB67 getb67; do
39460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39464 echo $ECHO_N "(cached) $ECHO_C" >&6
39466 cat >conftest.$ac_ext <<_ACEOF
39469 cat confdefs.h >>conftest.$ac_ext
39470 cat >>conftest.$ac_ext <<_ACEOF
39471 /* end confdefs.h. */
39472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39474 #define $ac_func innocuous_$ac_func
39476 /* System header to define __stub macros and hopefully few prototypes,
39477 which can conflict with char $ac_func (); below.
39478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39479 <limits.h> exists even on freestanding compilers. */
39482 # include <limits.h>
39484 # include <assert.h>
39489 /* Override any GCC internal prototype to avoid an error.
39490 Use char because int might match the return type of a GCC
39491 builtin and then its argument prototype would still apply. */
39496 /* The GNU C library defines this for functions which it implements
39497 to always fail with ENOSYS. Some functions are actually named
39498 something starting with __ and the normal name is an alias. */
39499 #if defined __stub_$ac_func || defined __stub___$ac_func
39506 return $ac_func ();
39511 rm -f conftest.$ac_objext conftest$ac_exeext
39512 if { (ac_try="$ac_link"
39513 case "(($ac_try" in
39514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39515 *) ac_try_echo=$ac_try;;
39517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39518 (eval "$ac_link") 2>conftest.er1
39520 grep -v '^ *+' conftest.er1 >conftest.err
39522 cat conftest.err >&5
39523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); } && {
39525 test -z "$ac_c_werror_flag" ||
39526 test ! -s conftest.err
39527 } && test -s conftest$ac_exeext &&
39528 $as_test_x conftest$ac_exeext; then
39529 eval "$as_ac_var=yes"
39531 echo "$as_me: failed program was:" >&5
39532 sed 's/^/| /' conftest.$ac_ext >&5
39534 eval "$as_ac_var=no"
39537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39538 conftest$ac_exeext conftest.$ac_ext
39540 ac_res=`eval echo '${'$as_ac_var'}'`
39541 { echo "$as_me:$LINENO: result: $ac_res" >&5
39542 echo "${ECHO_T}$ac_res" >&6; }
39543 if test `eval echo '${'$as_ac_var'}'` = yes; then
39545 cat >>confdefs.h <<_ACEOF
39546 #define CRAY_STACKSEG_END $ac_func
39555 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39556 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39557 if test "${ac_cv_c_stack_direction+set}" = set; then
39558 echo $ECHO_N "(cached) $ECHO_C" >&6
39560 if test "$cross_compiling" = yes; then
39561 ac_cv_c_stack_direction=0
39563 cat >conftest.$ac_ext <<_ACEOF
39566 cat confdefs.h >>conftest.$ac_ext
39567 cat >>conftest.$ac_ext <<_ACEOF
39568 /* end confdefs.h. */
39569 $ac_includes_default
39571 find_stack_direction ()
39573 static char *addr = 0;
39578 return find_stack_direction ();
39581 return (&dummy > addr) ? 1 : -1;
39587 return find_stack_direction () < 0;
39590 rm -f conftest$ac_exeext
39591 if { (ac_try="$ac_link"
39592 case "(($ac_try" in
39593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39594 *) ac_try_echo=$ac_try;;
39596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39597 (eval "$ac_link") 2>&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39601 { (case "(($ac_try" in
39602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39603 *) ac_try_echo=$ac_try;;
39605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39606 (eval "$ac_try") 2>&5
39608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 (exit $ac_status); }; }; then
39610 ac_cv_c_stack_direction=1
39612 echo "$as_me: program exited with status $ac_status" >&5
39613 echo "$as_me: failed program was:" >&5
39614 sed 's/^/| /' conftest.$ac_ext >&5
39616 ( exit $ac_status )
39617 ac_cv_c_stack_direction=-1
39619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39624 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39625 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39627 cat >>confdefs.h <<_ACEOF
39628 #define STACK_DIRECTION $ac_cv_c_stack_direction
39634 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39635 # -lseq on Dynix/PTX, -lgen on Unixware.
39636 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39637 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39638 if test "${ac_cv_search_getmntent+set}" = set; then
39639 echo $ECHO_N "(cached) $ECHO_C" >&6
39641 ac_func_search_save_LIBS=$LIBS
39642 cat >conftest.$ac_ext <<_ACEOF
39645 cat confdefs.h >>conftest.$ac_ext
39646 cat >>conftest.$ac_ext <<_ACEOF
39647 /* end confdefs.h. */
39649 /* Override any GCC internal prototype to avoid an error.
39650 Use char because int might match the return type of a GCC
39651 builtin and then its argument prototype would still apply. */
39659 return getmntent ();
39664 for ac_lib in '' sun seq gen; do
39665 if test -z "$ac_lib"; then
39666 ac_res="none required"
39669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39671 rm -f conftest.$ac_objext conftest$ac_exeext
39672 if { (ac_try="$ac_link"
39673 case "(($ac_try" in
39674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39675 *) ac_try_echo=$ac_try;;
39677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39678 (eval "$ac_link") 2>conftest.er1
39680 grep -v '^ *+' conftest.er1 >conftest.err
39682 cat conftest.err >&5
39683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684 (exit $ac_status); } && {
39685 test -z "$ac_c_werror_flag" ||
39686 test ! -s conftest.err
39687 } && test -s conftest$ac_exeext &&
39688 $as_test_x conftest$ac_exeext; then
39689 ac_cv_search_getmntent=$ac_res
39691 echo "$as_me: failed program was:" >&5
39692 sed 's/^/| /' conftest.$ac_ext >&5
39697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39699 if test "${ac_cv_search_getmntent+set}" = set; then
39703 if test "${ac_cv_search_getmntent+set}" = set; then
39706 ac_cv_search_getmntent=no
39708 rm conftest.$ac_ext
39709 LIBS=$ac_func_search_save_LIBS
39711 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39712 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39713 ac_res=$ac_cv_search_getmntent
39714 if test "$ac_res" != no; then
39715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39716 ac_cv_func_getmntent=yes
39718 cat >>confdefs.h <<\_ACEOF
39719 #define HAVE_GETMNTENT 1
39723 ac_cv_func_getmntent=no
39727 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39728 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39729 if test "${ac_cv_func_closedir_void+set}" = set; then
39730 echo $ECHO_N "(cached) $ECHO_C" >&6
39732 if test "$cross_compiling" = yes; then
39733 ac_cv_func_closedir_void=yes
39735 cat >conftest.$ac_ext <<_ACEOF
39738 cat confdefs.h >>conftest.$ac_ext
39739 cat >>conftest.$ac_ext <<_ACEOF
39740 /* end confdefs.h. */
39741 $ac_includes_default
39742 #include <$ac_header_dirent>
39743 #ifndef __cplusplus
39750 return closedir (opendir (".")) != 0;
39755 rm -f conftest$ac_exeext
39756 if { (ac_try="$ac_link"
39757 case "(($ac_try" in
39758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39759 *) ac_try_echo=$ac_try;;
39761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39762 (eval "$ac_link") 2>&5
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39766 { (case "(($ac_try" in
39767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768 *) ac_try_echo=$ac_try;;
39770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39771 (eval "$ac_try") 2>&5
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); }; }; then
39775 ac_cv_func_closedir_void=no
39777 echo "$as_me: program exited with status $ac_status" >&5
39778 echo "$as_me: failed program was:" >&5
39779 sed 's/^/| /' conftest.$ac_ext >&5
39781 ( exit $ac_status )
39782 ac_cv_func_closedir_void=yes
39784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39789 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39790 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39791 if test $ac_cv_func_closedir_void = yes; then
39793 cat >>confdefs.h <<\_ACEOF
39794 #define CLOSEDIR_VOID 1
39799 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39800 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39801 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39802 echo $ECHO_N "(cached) $ECHO_C" >&6
39804 if test "$cross_compiling" = yes; then
39805 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39806 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39807 { (exit 1); exit 1; }; }
39809 cat >conftest.$ac_ext <<_ACEOF
39812 cat confdefs.h >>conftest.$ac_ext
39813 cat >>conftest.$ac_ext <<_ACEOF
39814 /* end confdefs.h. */
39815 $ac_includes_default
39819 /* If this system has a BSD-style setpgrp which takes arguments,
39820 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39821 exit successfully. */
39822 return setpgrp (1,1) != -1;
39827 rm -f conftest$ac_exeext
39828 if { (ac_try="$ac_link"
39829 case "(($ac_try" in
39830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39831 *) ac_try_echo=$ac_try;;
39833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39834 (eval "$ac_link") 2>&5
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39838 { (case "(($ac_try" in
39839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39840 *) ac_try_echo=$ac_try;;
39842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39843 (eval "$ac_try") 2>&5
39845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846 (exit $ac_status); }; }; then
39847 ac_cv_func_setpgrp_void=no
39849 echo "$as_me: program exited with status $ac_status" >&5
39850 echo "$as_me: failed program was:" >&5
39851 sed 's/^/| /' conftest.$ac_ext >&5
39853 ( exit $ac_status )
39854 ac_cv_func_setpgrp_void=yes
39856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39861 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39862 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39863 if test $ac_cv_func_setpgrp_void = yes; then
39865 cat >>confdefs.h <<\_ACEOF
39866 #define SETPGRP_VOID 1
39870 # AC_FUNC_FNMATCH dnl use local version
39872 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39873 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39874 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39875 echo $ECHO_N "(cached) $ECHO_C" >&6
39877 ac_check_lib_save_LIBS=$LIBS
39878 LIBS="-lintl $LIBS"
39879 cat >conftest.$ac_ext <<_ACEOF
39882 cat confdefs.h >>conftest.$ac_ext
39883 cat >>conftest.$ac_ext <<_ACEOF
39884 /* end confdefs.h. */
39886 /* Override any GCC internal prototype to avoid an error.
39887 Use char because int might match the return type of a GCC
39888 builtin and then its argument prototype would still apply. */
39901 rm -f conftest.$ac_objext conftest$ac_exeext
39902 if { (ac_try="$ac_link"
39903 case "(($ac_try" in
39904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39905 *) ac_try_echo=$ac_try;;
39907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39908 (eval "$ac_link") 2>conftest.er1
39910 grep -v '^ *+' conftest.er1 >conftest.err
39912 cat conftest.err >&5
39913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914 (exit $ac_status); } && {
39915 test -z "$ac_c_werror_flag" ||
39916 test ! -s conftest.err
39917 } && test -s conftest$ac_exeext &&
39918 $as_test_x conftest$ac_exeext; then
39919 ac_cv_lib_intl_gettext=yes
39921 echo "$as_me: failed program was:" >&5
39922 sed 's/^/| /' conftest.$ac_ext >&5
39924 ac_cv_lib_intl_gettext=no
39927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39928 conftest$ac_exeext conftest.$ac_ext
39929 LIBS=$ac_check_lib_save_LIBS
39931 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39932 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39933 if test $ac_cv_lib_intl_gettext = yes; then
39934 LIBS="$LIBS -lintl"
39939 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39940 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39941 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39942 echo $ECHO_N "(cached) $ECHO_C" >&6
39944 ac_check_lib_save_LIBS=$LIBS
39946 cat >conftest.$ac_ext <<_ACEOF
39949 cat confdefs.h >>conftest.$ac_ext
39950 cat >>conftest.$ac_ext <<_ACEOF
39951 /* end confdefs.h. */
39953 /* Override any GCC internal prototype to avoid an error.
39954 Use char because int might match the return type of a GCC
39955 builtin and then its argument prototype would still apply. */
39963 return getpwnam ();
39968 rm -f conftest.$ac_objext conftest$ac_exeext
39969 if { (ac_try="$ac_link"
39970 case "(($ac_try" in
39971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39972 *) ac_try_echo=$ac_try;;
39974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39975 (eval "$ac_link") 2>conftest.er1
39977 grep -v '^ *+' conftest.er1 >conftest.err
39979 cat conftest.err >&5
39980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981 (exit $ac_status); } && {
39982 test -z "$ac_c_werror_flag" ||
39983 test ! -s conftest.err
39984 } && test -s conftest$ac_exeext &&
39985 $as_test_x conftest$ac_exeext; then
39986 ac_cv_lib_sun_getpwnam=yes
39988 echo "$as_me: failed program was:" >&5
39989 sed 's/^/| /' conftest.$ac_ext >&5
39991 ac_cv_lib_sun_getpwnam=no
39994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39995 conftest$ac_exeext conftest.$ac_ext
39996 LIBS=$ac_check_lib_save_LIBS
39998 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39999 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40000 if test $ac_cv_lib_sun_getpwnam = yes; then
40001 cat >>confdefs.h <<_ACEOF
40002 #define HAVE_LIBSUN 1
40011 for ac_header in zlib.h
40013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40018 echo $ECHO_N "(cached) $ECHO_C" >&6
40020 ac_res=`eval echo '${'$as_ac_Header'}'`
40021 { echo "$as_me:$LINENO: result: $ac_res" >&5
40022 echo "${ECHO_T}$ac_res" >&6; }
40024 # Is the header compilable?
40025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40027 cat >conftest.$ac_ext <<_ACEOF
40030 cat confdefs.h >>conftest.$ac_ext
40031 cat >>conftest.$ac_ext <<_ACEOF
40032 /* end confdefs.h. */
40033 $ac_includes_default
40034 #include <$ac_header>
40036 rm -f conftest.$ac_objext
40037 if { (ac_try="$ac_compile"
40038 case "(($ac_try" in
40039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40040 *) ac_try_echo=$ac_try;;
40042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40043 (eval "$ac_compile") 2>conftest.er1
40045 grep -v '^ *+' conftest.er1 >conftest.err
40047 cat conftest.err >&5
40048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40049 (exit $ac_status); } && {
40050 test -z "$ac_c_werror_flag" ||
40051 test ! -s conftest.err
40052 } && test -s conftest.$ac_objext; then
40053 ac_header_compiler=yes
40055 echo "$as_me: failed program was:" >&5
40056 sed 's/^/| /' conftest.$ac_ext >&5
40058 ac_header_compiler=no
40061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40063 echo "${ECHO_T}$ac_header_compiler" >&6; }
40065 # Is the header present?
40066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40068 cat >conftest.$ac_ext <<_ACEOF
40071 cat confdefs.h >>conftest.$ac_ext
40072 cat >>conftest.$ac_ext <<_ACEOF
40073 /* end confdefs.h. */
40074 #include <$ac_header>
40076 if { (ac_try="$ac_cpp conftest.$ac_ext"
40077 case "(($ac_try" in
40078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40079 *) ac_try_echo=$ac_try;;
40081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40084 grep -v '^ *+' conftest.er1 >conftest.err
40086 cat conftest.err >&5
40087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088 (exit $ac_status); } >/dev/null && {
40089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40090 test ! -s conftest.err
40092 ac_header_preproc=yes
40094 echo "$as_me: failed program was:" >&5
40095 sed 's/^/| /' conftest.$ac_ext >&5
40097 ac_header_preproc=no
40100 rm -f conftest.err conftest.$ac_ext
40101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40102 echo "${ECHO_T}$ac_header_preproc" >&6; }
40104 # So? What about this header?
40105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40111 ac_header_preproc=yes
40114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40132 echo $ECHO_N "(cached) $ECHO_C" >&6
40134 eval "$as_ac_Header=\$ac_header_preproc"
40136 ac_res=`eval echo '${'$as_ac_Header'}'`
40137 { echo "$as_me:$LINENO: result: $ac_res" >&5
40138 echo "${ECHO_T}$ac_res" >&6; }
40141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40142 cat >>confdefs.h <<_ACEOF
40143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40150 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40151 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40152 if test "${ac_cv_lib_z_deflate+set}" = set; then
40153 echo $ECHO_N "(cached) $ECHO_C" >&6
40155 ac_check_lib_save_LIBS=$LIBS
40157 cat >conftest.$ac_ext <<_ACEOF
40160 cat confdefs.h >>conftest.$ac_ext
40161 cat >>conftest.$ac_ext <<_ACEOF
40162 /* end confdefs.h. */
40164 /* Override any GCC internal prototype to avoid an error.
40165 Use char because int might match the return type of a GCC
40166 builtin and then its argument prototype would still apply. */
40179 rm -f conftest.$ac_objext conftest$ac_exeext
40180 if { (ac_try="$ac_link"
40181 case "(($ac_try" in
40182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40183 *) ac_try_echo=$ac_try;;
40185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40186 (eval "$ac_link") 2>conftest.er1
40188 grep -v '^ *+' conftest.er1 >conftest.err
40190 cat conftest.err >&5
40191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192 (exit $ac_status); } && {
40193 test -z "$ac_c_werror_flag" ||
40194 test ! -s conftest.err
40195 } && test -s conftest$ac_exeext &&
40196 $as_test_x conftest$ac_exeext; then
40197 ac_cv_lib_z_deflate=yes
40199 echo "$as_me: failed program was:" >&5
40200 sed 's/^/| /' conftest.$ac_ext >&5
40202 ac_cv_lib_z_deflate=no
40205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40206 conftest$ac_exeext conftest.$ac_ext
40207 LIBS=$ac_check_lib_save_LIBS
40209 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40210 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40211 if test $ac_cv_lib_z_deflate = yes; then
40216 if test x$FDLIBS = x-lz; then
40217 cat >>confdefs.h <<\_ACEOF
40218 #define HAVE_LIBZ 1
40225 # Check whether --enable-acl was given.
40226 if test "${enable_acl+set}" = set; then
40227 enableval=$enable_acl;
40228 if test x$enableval = xno; then
40237 have_extended_acl=no
40238 if test x$support_acl = xyes; then
40239 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40240 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40241 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40242 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40243 echo $ECHO_N "(cached) $ECHO_C" >&6
40245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40246 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40248 # Is the header compilable?
40249 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40250 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40251 cat >conftest.$ac_ext <<_ACEOF
40254 cat confdefs.h >>conftest.$ac_ext
40255 cat >>conftest.$ac_ext <<_ACEOF
40256 /* end confdefs.h. */
40257 $ac_includes_default
40258 #include <sys/acl.h>
40260 rm -f conftest.$ac_objext
40261 if { (ac_try="$ac_compile"
40262 case "(($ac_try" in
40263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40264 *) ac_try_echo=$ac_try;;
40266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40267 (eval "$ac_compile") 2>conftest.er1
40269 grep -v '^ *+' conftest.er1 >conftest.err
40271 cat conftest.err >&5
40272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40273 (exit $ac_status); } && {
40274 test -z "$ac_c_werror_flag" ||
40275 test ! -s conftest.err
40276 } && test -s conftest.$ac_objext; then
40277 ac_header_compiler=yes
40279 echo "$as_me: failed program was:" >&5
40280 sed 's/^/| /' conftest.$ac_ext >&5
40282 ac_header_compiler=no
40285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40287 echo "${ECHO_T}$ac_header_compiler" >&6; }
40289 # Is the header present?
40290 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40291 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40292 cat >conftest.$ac_ext <<_ACEOF
40295 cat confdefs.h >>conftest.$ac_ext
40296 cat >>conftest.$ac_ext <<_ACEOF
40297 /* end confdefs.h. */
40298 #include <sys/acl.h>
40300 if { (ac_try="$ac_cpp conftest.$ac_ext"
40301 case "(($ac_try" in
40302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40303 *) ac_try_echo=$ac_try;;
40305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40308 grep -v '^ *+' conftest.er1 >conftest.err
40310 cat conftest.err >&5
40311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312 (exit $ac_status); } >/dev/null && {
40313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40314 test ! -s conftest.err
40316 ac_header_preproc=yes
40318 echo "$as_me: failed program was:" >&5
40319 sed 's/^/| /' conftest.$ac_ext >&5
40321 ac_header_preproc=no
40324 rm -f conftest.err conftest.$ac_ext
40325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40326 echo "${ECHO_T}$ac_header_preproc" >&6; }
40328 # So? What about this header?
40329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40331 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40332 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40333 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40334 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40335 ac_header_preproc=yes
40338 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40339 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40340 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40341 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40342 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40343 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40344 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40345 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40346 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40347 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40348 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40349 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40353 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40354 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40355 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40356 echo $ECHO_N "(cached) $ECHO_C" >&6
40358 ac_cv_header_sys_acl_h=$ac_header_preproc
40360 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40361 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40364 if test $ac_cv_header_sys_acl_h = yes; then
40366 cat >>confdefs.h <<\_ACEOF
40367 #define HAVE_SYS_ACL_H 1
40373 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40374 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40375 if test "${ac_cv_func_acl_get_file+set}" = set; then
40376 echo $ECHO_N "(cached) $ECHO_C" >&6
40378 cat >conftest.$ac_ext <<_ACEOF
40381 cat confdefs.h >>conftest.$ac_ext
40382 cat >>conftest.$ac_ext <<_ACEOF
40383 /* end confdefs.h. */
40384 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40386 #define acl_get_file innocuous_acl_get_file
40388 /* System header to define __stub macros and hopefully few prototypes,
40389 which can conflict with char acl_get_file (); below.
40390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40391 <limits.h> exists even on freestanding compilers. */
40394 # include <limits.h>
40396 # include <assert.h>
40399 #undef acl_get_file
40401 /* Override any GCC internal prototype to avoid an error.
40402 Use char because int might match the return type of a GCC
40403 builtin and then its argument prototype would still apply. */
40407 char acl_get_file ();
40408 /* The GNU C library defines this for functions which it implements
40409 to always fail with ENOSYS. Some functions are actually named
40410 something starting with __ and the normal name is an alias. */
40411 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40418 return acl_get_file ();
40423 rm -f conftest.$ac_objext conftest$ac_exeext
40424 if { (ac_try="$ac_link"
40425 case "(($ac_try" in
40426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40427 *) ac_try_echo=$ac_try;;
40429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40430 (eval "$ac_link") 2>conftest.er1
40432 grep -v '^ *+' conftest.er1 >conftest.err
40434 cat conftest.err >&5
40435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40436 (exit $ac_status); } && {
40437 test -z "$ac_c_werror_flag" ||
40438 test ! -s conftest.err
40439 } && test -s conftest$ac_exeext &&
40440 $as_test_x conftest$ac_exeext; then
40441 ac_cv_func_acl_get_file=yes
40443 echo "$as_me: failed program was:" >&5
40444 sed 's/^/| /' conftest.$ac_ext >&5
40446 ac_cv_func_acl_get_file=no
40449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40450 conftest$ac_exeext conftest.$ac_ext
40452 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40453 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40454 if test $ac_cv_func_acl_get_file = yes; then
40460 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40461 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40462 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40463 echo $ECHO_N "(cached) $ECHO_C" >&6
40465 ac_check_lib_save_LIBS=$LIBS
40467 cat >conftest.$ac_ext <<_ACEOF
40470 cat confdefs.h >>conftest.$ac_ext
40471 cat >>conftest.$ac_ext <<_ACEOF
40472 /* end confdefs.h. */
40474 /* Override any GCC internal prototype to avoid an error.
40475 Use char because int might match the return type of a GCC
40476 builtin and then its argument prototype would still apply. */
40480 char acl_get_file ();
40484 return acl_get_file ();
40489 rm -f conftest.$ac_objext conftest$ac_exeext
40490 if { (ac_try="$ac_link"
40491 case "(($ac_try" in
40492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40493 *) ac_try_echo=$ac_try;;
40495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40496 (eval "$ac_link") 2>conftest.er1
40498 grep -v '^ *+' conftest.er1 >conftest.err
40500 cat conftest.err >&5
40501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40502 (exit $ac_status); } && {
40503 test -z "$ac_c_werror_flag" ||
40504 test ! -s conftest.err
40505 } && test -s conftest$ac_exeext &&
40506 $as_test_x conftest$ac_exeext; then
40507 ac_cv_lib_acl_acl_get_file=yes
40509 echo "$as_me: failed program was:" >&5
40510 sed 's/^/| /' conftest.$ac_ext >&5
40512 ac_cv_lib_acl_acl_get_file=no
40515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40516 conftest$ac_exeext conftest.$ac_ext
40517 LIBS=$ac_check_lib_save_LIBS
40519 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40520 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40521 if test $ac_cv_lib_acl_acl_get_file = yes; then
40524 FDLIBS="-lacl $FDLIBS"
40528 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40529 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40530 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40531 echo $ECHO_N "(cached) $ECHO_C" >&6
40533 ac_check_lib_save_LIBS=$LIBS
40534 LIBS="-lpacl $LIBS"
40535 cat >conftest.$ac_ext <<_ACEOF
40538 cat confdefs.h >>conftest.$ac_ext
40539 cat >>conftest.$ac_ext <<_ACEOF
40540 /* end confdefs.h. */
40542 /* Override any GCC internal prototype to avoid an error.
40543 Use char because int might match the return type of a GCC
40544 builtin and then its argument prototype would still apply. */
40548 char acl_get_file ();
40552 return acl_get_file ();
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (ac_try="$ac_link"
40559 case "(($ac_try" in
40560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40561 *) ac_try_echo=$ac_try;;
40563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40564 (eval "$ac_link") 2>conftest.er1
40566 grep -v '^ *+' conftest.er1 >conftest.err
40568 cat conftest.err >&5
40569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); } && {
40571 test -z "$ac_c_werror_flag" ||
40572 test ! -s conftest.err
40573 } && test -s conftest$ac_exeext &&
40574 $as_test_x conftest$ac_exeext; then
40575 ac_cv_lib_pacl_acl_get_file=yes
40577 echo "$as_me: failed program was:" >&5
40578 sed 's/^/| /' conftest.$ac_ext >&5
40580 ac_cv_lib_pacl_acl_get_file=no
40583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40584 conftest$ac_exeext conftest.$ac_ext
40585 LIBS=$ac_check_lib_save_LIBS
40587 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40588 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40589 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40592 FDLIBS="-lpacl $FDLIBS"
40596 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40597 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40598 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40599 echo $ECHO_N "(cached) $ECHO_C" >&6
40601 ac_check_lib_save_LIBS=$LIBS
40603 cat >conftest.$ac_ext <<_ACEOF
40606 cat confdefs.h >>conftest.$ac_ext
40607 cat >>conftest.$ac_ext <<_ACEOF
40608 /* end confdefs.h. */
40610 /* Override any GCC internal prototype to avoid an error.
40611 Use char because int might match the return type of a GCC
40612 builtin and then its argument prototype would still apply. */
40620 return acltotext ();
40625 rm -f conftest.$ac_objext conftest$ac_exeext
40626 if { (ac_try="$ac_link"
40627 case "(($ac_try" in
40628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40629 *) ac_try_echo=$ac_try;;
40631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40632 (eval "$ac_link") 2>conftest.er1
40634 grep -v '^ *+' conftest.er1 >conftest.err
40636 cat conftest.err >&5
40637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40638 (exit $ac_status); } && {
40639 test -z "$ac_c_werror_flag" ||
40640 test ! -s conftest.err
40641 } && test -s conftest$ac_exeext &&
40642 $as_test_x conftest$ac_exeext; then
40643 ac_cv_lib_sec_acltotext=yes
40645 echo "$as_me: failed program was:" >&5
40646 sed 's/^/| /' conftest.$ac_ext >&5
40648 ac_cv_lib_sec_acltotext=no
40651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40652 conftest$ac_exeext conftest.$ac_ext
40653 LIBS=$ac_check_lib_save_LIBS
40655 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40656 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40657 if test $ac_cv_lib_sec_acltotext = yes; then
40660 FDLIBS="-lsec $FDLIBS"
40662 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40663 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40664 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40665 echo $ECHO_N "(cached) $ECHO_C" >&6
40667 ac_check_lib_save_LIBS=$LIBS
40669 cat >conftest.$ac_ext <<_ACEOF
40672 cat confdefs.h >>conftest.$ac_ext
40673 cat >>conftest.$ac_ext <<_ACEOF
40674 /* end confdefs.h. */
40676 /* Override any GCC internal prototype to avoid an error.
40677 Use char because int might match the return type of a GCC
40678 builtin and then its argument prototype would still apply. */
40682 char acl_totext ();
40686 return acl_totext ();
40691 rm -f conftest.$ac_objext conftest$ac_exeext
40692 if { (ac_try="$ac_link"
40693 case "(($ac_try" in
40694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40695 *) ac_try_echo=$ac_try;;
40697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40698 (eval "$ac_link") 2>conftest.er1
40700 grep -v '^ *+' conftest.er1 >conftest.err
40702 cat conftest.err >&5
40703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704 (exit $ac_status); } && {
40705 test -z "$ac_c_werror_flag" ||
40706 test ! -s conftest.err
40707 } && test -s conftest$ac_exeext &&
40708 $as_test_x conftest$ac_exeext; then
40709 ac_cv_lib_sec_acl_totext=yes
40711 echo "$as_me: failed program was:" >&5
40712 sed 's/^/| /' conftest.$ac_ext >&5
40714 ac_cv_lib_sec_acl_totext=no
40717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40718 conftest$ac_exeext conftest.$ac_ext
40719 LIBS=$ac_check_lib_save_LIBS
40721 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40722 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40723 if test $ac_cv_lib_sec_acl_totext = yes; then
40725 have_extended_acl=yes
40746 if test $have_acl = yes; then
40747 cat >>confdefs.h <<\_ACEOF
40753 if test $have_extended_acl = yes; then
40754 cat >>confdefs.h <<\_ACEOF
40755 #define HAVE_EXTENDED_ACL 1
40762 # Check whether --enable-xattr was given.
40763 if test "${enable_xattr+set}" = set; then
40764 enableval=$enable_xattr;
40765 if test x$enableval = xno; then
40774 if test x$support_xattr = xyes; then
40775 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40776 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40777 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40778 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40779 echo $ECHO_N "(cached) $ECHO_C" >&6
40781 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40782 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40784 # Is the header compilable?
40785 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40786 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40787 cat >conftest.$ac_ext <<_ACEOF
40790 cat confdefs.h >>conftest.$ac_ext
40791 cat >>conftest.$ac_ext <<_ACEOF
40792 /* end confdefs.h. */
40793 $ac_includes_default
40794 #include <sys/xattr.h>
40796 rm -f conftest.$ac_objext
40797 if { (ac_try="$ac_compile"
40798 case "(($ac_try" in
40799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40800 *) ac_try_echo=$ac_try;;
40802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40803 (eval "$ac_compile") 2>conftest.er1
40805 grep -v '^ *+' conftest.er1 >conftest.err
40807 cat conftest.err >&5
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); } && {
40810 test -z "$ac_c_werror_flag" ||
40811 test ! -s conftest.err
40812 } && test -s conftest.$ac_objext; then
40813 ac_header_compiler=yes
40815 echo "$as_me: failed program was:" >&5
40816 sed 's/^/| /' conftest.$ac_ext >&5
40818 ac_header_compiler=no
40821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40823 echo "${ECHO_T}$ac_header_compiler" >&6; }
40825 # Is the header present?
40826 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40827 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40828 cat >conftest.$ac_ext <<_ACEOF
40831 cat confdefs.h >>conftest.$ac_ext
40832 cat >>conftest.$ac_ext <<_ACEOF
40833 /* end confdefs.h. */
40834 #include <sys/xattr.h>
40836 if { (ac_try="$ac_cpp conftest.$ac_ext"
40837 case "(($ac_try" in
40838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40839 *) ac_try_echo=$ac_try;;
40841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40844 grep -v '^ *+' conftest.er1 >conftest.err
40846 cat conftest.err >&5
40847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); } >/dev/null && {
40849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40850 test ! -s conftest.err
40852 ac_header_preproc=yes
40854 echo "$as_me: failed program was:" >&5
40855 sed 's/^/| /' conftest.$ac_ext >&5
40857 ac_header_preproc=no
40860 rm -f conftest.err conftest.$ac_ext
40861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40862 echo "${ECHO_T}$ac_header_preproc" >&6; }
40864 # So? What about this header?
40865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40867 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40868 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40869 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40870 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40871 ac_header_preproc=yes
40874 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40875 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40876 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
40877 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
40878 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40879 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40880 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
40881 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
40882 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40883 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40884 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40885 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40889 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40890 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40891 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40892 echo $ECHO_N "(cached) $ECHO_C" >&6
40894 ac_cv_header_sys_xattr_h=$ac_header_preproc
40896 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40897 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40900 if test $ac_cv_header_sys_xattr_h = yes; then
40902 cat >>confdefs.h <<\_ACEOF
40903 #define HAVE_SYS_XATTR_H 1
40912 for ac_func in llistxattr lgetxattr lsetxattr
40914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40918 echo $ECHO_N "(cached) $ECHO_C" >&6
40920 cat >conftest.$ac_ext <<_ACEOF
40923 cat confdefs.h >>conftest.$ac_ext
40924 cat >>conftest.$ac_ext <<_ACEOF
40925 /* end confdefs.h. */
40926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40928 #define $ac_func innocuous_$ac_func
40930 /* System header to define __stub macros and hopefully few prototypes,
40931 which can conflict with char $ac_func (); below.
40932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40933 <limits.h> exists even on freestanding compilers. */
40936 # include <limits.h>
40938 # include <assert.h>
40943 /* Override any GCC internal prototype to avoid an error.
40944 Use char because int might match the return type of a GCC
40945 builtin and then its argument prototype would still apply. */
40950 /* The GNU C library defines this for functions which it implements
40951 to always fail with ENOSYS. Some functions are actually named
40952 something starting with __ and the normal name is an alias. */
40953 #if defined __stub_$ac_func || defined __stub___$ac_func
40960 return $ac_func ();
40965 rm -f conftest.$ac_objext conftest$ac_exeext
40966 if { (ac_try="$ac_link"
40967 case "(($ac_try" in
40968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40969 *) ac_try_echo=$ac_try;;
40971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40972 (eval "$ac_link") 2>conftest.er1
40974 grep -v '^ *+' conftest.er1 >conftest.err
40976 cat conftest.err >&5
40977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978 (exit $ac_status); } && {
40979 test -z "$ac_c_werror_flag" ||
40980 test ! -s conftest.err
40981 } && test -s conftest$ac_exeext &&
40982 $as_test_x conftest$ac_exeext; then
40983 eval "$as_ac_var=yes"
40985 echo "$as_me: failed program was:" >&5
40986 sed 's/^/| /' conftest.$ac_ext >&5
40988 eval "$as_ac_var=no"
40991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40992 conftest$ac_exeext conftest.$ac_ext
40994 ac_res=`eval echo '${'$as_ac_var'}'`
40995 { echo "$as_me:$LINENO: result: $ac_res" >&5
40996 echo "${ECHO_T}$ac_res" >&6; }
40997 if test `eval echo '${'$as_ac_var'}'` = yes; then
40998 cat >>confdefs.h <<_ACEOF
40999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41003 cat >>confdefs.h <<\_ACEOF
41004 #define HAVE_LLISTXATTR 1
41007 cat >>confdefs.h <<\_ACEOF
41008 #define HAVE_LGETXATTR 1
41011 cat >>confdefs.h <<\_ACEOF
41012 #define HAVE_LSETXATTR 1
41021 for ac_func in listxattr getxattr setxattr
41023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41027 echo $ECHO_N "(cached) $ECHO_C" >&6
41029 cat >conftest.$ac_ext <<_ACEOF
41032 cat confdefs.h >>conftest.$ac_ext
41033 cat >>conftest.$ac_ext <<_ACEOF
41034 /* end confdefs.h. */
41035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41037 #define $ac_func innocuous_$ac_func
41039 /* System header to define __stub macros and hopefully few prototypes,
41040 which can conflict with char $ac_func (); below.
41041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41042 <limits.h> exists even on freestanding compilers. */
41045 # include <limits.h>
41047 # include <assert.h>
41052 /* Override any GCC internal prototype to avoid an error.
41053 Use char because int might match the return type of a GCC
41054 builtin and then its argument prototype would still apply. */
41059 /* The GNU C library defines this for functions which it implements
41060 to always fail with ENOSYS. Some functions are actually named
41061 something starting with __ and the normal name is an alias. */
41062 #if defined __stub_$ac_func || defined __stub___$ac_func
41069 return $ac_func ();
41074 rm -f conftest.$ac_objext conftest$ac_exeext
41075 if { (ac_try="$ac_link"
41076 case "(($ac_try" in
41077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41078 *) ac_try_echo=$ac_try;;
41080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41081 (eval "$ac_link") 2>conftest.er1
41083 grep -v '^ *+' conftest.er1 >conftest.err
41085 cat conftest.err >&5
41086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087 (exit $ac_status); } && {
41088 test -z "$ac_c_werror_flag" ||
41089 test ! -s conftest.err
41090 } && test -s conftest$ac_exeext &&
41091 $as_test_x conftest$ac_exeext; then
41092 eval "$as_ac_var=yes"
41094 echo "$as_me: failed program was:" >&5
41095 sed 's/^/| /' conftest.$ac_ext >&5
41097 eval "$as_ac_var=no"
41100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41101 conftest$ac_exeext conftest.$ac_ext
41103 ac_res=`eval echo '${'$as_ac_var'}'`
41104 { echo "$as_me:$LINENO: result: $ac_res" >&5
41105 echo "${ECHO_T}$ac_res" >&6; }
41106 if test `eval echo '${'$as_ac_var'}'` = yes; then
41107 cat >>confdefs.h <<_ACEOF
41108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41112 cat >>confdefs.h <<\_ACEOF
41113 #define HAVE_LISTXATTR 1
41116 cat >>confdefs.h <<\_ACEOF
41117 #define HAVE_GETXATTR 1
41120 cat >>confdefs.h <<\_ACEOF
41121 #define HAVE_SETXATTR 1
41135 if test $have_xattr = yes; then
41136 cat >>confdefs.h <<\_ACEOF
41137 #define HAVE_XATTR 1
41144 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41145 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41146 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41147 echo $ECHO_N "(cached) $ECHO_C" >&6
41149 ac_check_lib_save_LIBS=$LIBS
41150 LIBS="-lpthread $LIBS"
41151 cat >conftest.$ac_ext <<_ACEOF
41154 cat confdefs.h >>conftest.$ac_ext
41155 cat >>conftest.$ac_ext <<_ACEOF
41156 /* end confdefs.h. */
41158 /* Override any GCC internal prototype to avoid an error.
41159 Use char because int might match the return type of a GCC
41160 builtin and then its argument prototype would still apply. */
41164 char pthread_create ();
41168 return pthread_create ();
41173 rm -f conftest.$ac_objext conftest$ac_exeext
41174 if { (ac_try="$ac_link"
41175 case "(($ac_try" in
41176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41177 *) ac_try_echo=$ac_try;;
41179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41180 (eval "$ac_link") 2>conftest.er1
41182 grep -v '^ *+' conftest.er1 >conftest.err
41184 cat conftest.err >&5
41185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41186 (exit $ac_status); } && {
41187 test -z "$ac_c_werror_flag" ||
41188 test ! -s conftest.err
41189 } && test -s conftest$ac_exeext &&
41190 $as_test_x conftest$ac_exeext; then
41191 ac_cv_lib_pthread_pthread_create=yes
41193 echo "$as_me: failed program was:" >&5
41194 sed 's/^/| /' conftest.$ac_ext >&5
41196 ac_cv_lib_pthread_pthread_create=no
41199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41200 conftest$ac_exeext conftest.$ac_ext
41201 LIBS=$ac_check_lib_save_LIBS
41203 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41204 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41205 if test $ac_cv_lib_pthread_pthread_create = yes; then
41206 PTHREAD_LIB="-lpthread"
41209 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41210 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41211 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41212 echo $ECHO_N "(cached) $ECHO_C" >&6
41214 ac_check_lib_save_LIBS=$LIBS
41215 LIBS="-lpthreads $LIBS"
41216 cat >conftest.$ac_ext <<_ACEOF
41219 cat confdefs.h >>conftest.$ac_ext
41220 cat >>conftest.$ac_ext <<_ACEOF
41221 /* end confdefs.h. */
41223 /* Override any GCC internal prototype to avoid an error.
41224 Use char because int might match the return type of a GCC
41225 builtin and then its argument prototype would still apply. */
41229 char pthread_create ();
41233 return pthread_create ();
41238 rm -f conftest.$ac_objext conftest$ac_exeext
41239 if { (ac_try="$ac_link"
41240 case "(($ac_try" in
41241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41242 *) ac_try_echo=$ac_try;;
41244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41245 (eval "$ac_link") 2>conftest.er1
41247 grep -v '^ *+' conftest.er1 >conftest.err
41249 cat conftest.err >&5
41250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41251 (exit $ac_status); } && {
41252 test -z "$ac_c_werror_flag" ||
41253 test ! -s conftest.err
41254 } && test -s conftest$ac_exeext &&
41255 $as_test_x conftest$ac_exeext; then
41256 ac_cv_lib_pthreads_pthread_create=yes
41258 echo "$as_me: failed program was:" >&5
41259 sed 's/^/| /' conftest.$ac_ext >&5
41261 ac_cv_lib_pthreads_pthread_create=no
41264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41265 conftest$ac_exeext conftest.$ac_ext
41266 LIBS=$ac_check_lib_save_LIBS
41268 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41269 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41270 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41271 PTHREAD_LIB="-lpthreads"
41274 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41275 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41276 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41277 echo $ECHO_N "(cached) $ECHO_C" >&6
41279 ac_check_lib_save_LIBS=$LIBS
41281 cat >conftest.$ac_ext <<_ACEOF
41284 cat confdefs.h >>conftest.$ac_ext
41285 cat >>conftest.$ac_ext <<_ACEOF
41286 /* end confdefs.h. */
41288 /* Override any GCC internal prototype to avoid an error.
41289 Use char because int might match the return type of a GCC
41290 builtin and then its argument prototype would still apply. */
41294 char pthread_create ();
41298 return pthread_create ();
41303 rm -f conftest.$ac_objext conftest$ac_exeext
41304 if { (ac_try="$ac_link"
41305 case "(($ac_try" in
41306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41307 *) ac_try_echo=$ac_try;;
41309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41310 (eval "$ac_link") 2>conftest.er1
41312 grep -v '^ *+' conftest.er1 >conftest.err
41314 cat conftest.err >&5
41315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316 (exit $ac_status); } && {
41317 test -z "$ac_c_werror_flag" ||
41318 test ! -s conftest.err
41319 } && test -s conftest$ac_exeext &&
41320 $as_test_x conftest$ac_exeext; then
41321 ac_cv_lib_c_r_pthread_create=yes
41323 echo "$as_me: failed program was:" >&5
41324 sed 's/^/| /' conftest.$ac_ext >&5
41326 ac_cv_lib_c_r_pthread_create=no
41329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41330 conftest$ac_exeext conftest.$ac_ext
41331 LIBS=$ac_check_lib_save_LIBS
41333 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41334 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41335 if test $ac_cv_lib_c_r_pthread_create = yes; then
41336 PTHREAD_LIB="-lc_r"
41339 { echo "$as_me:$LINENO: checking for pthread_create" >&5
41340 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41341 if test "${ac_cv_func_pthread_create+set}" = set; then
41342 echo $ECHO_N "(cached) $ECHO_C" >&6
41344 cat >conftest.$ac_ext <<_ACEOF
41347 cat confdefs.h >>conftest.$ac_ext
41348 cat >>conftest.$ac_ext <<_ACEOF
41349 /* end confdefs.h. */
41350 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41352 #define pthread_create innocuous_pthread_create
41354 /* System header to define __stub macros and hopefully few prototypes,
41355 which can conflict with char pthread_create (); below.
41356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41357 <limits.h> exists even on freestanding compilers. */
41360 # include <limits.h>
41362 # include <assert.h>
41365 #undef pthread_create
41367 /* Override any GCC internal prototype to avoid an error.
41368 Use char because int might match the return type of a GCC
41369 builtin and then its argument prototype would still apply. */
41373 char pthread_create ();
41374 /* The GNU C library defines this for functions which it implements
41375 to always fail with ENOSYS. Some functions are actually named
41376 something starting with __ and the normal name is an alias. */
41377 #if defined __stub_pthread_create || defined __stub___pthread_create
41384 return pthread_create ();
41389 rm -f conftest.$ac_objext conftest$ac_exeext
41390 if { (ac_try="$ac_link"
41391 case "(($ac_try" in
41392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41393 *) ac_try_echo=$ac_try;;
41395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41396 (eval "$ac_link") 2>conftest.er1
41398 grep -v '^ *+' conftest.er1 >conftest.err
41400 cat conftest.err >&5
41401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402 (exit $ac_status); } && {
41403 test -z "$ac_c_werror_flag" ||
41404 test ! -s conftest.err
41405 } && test -s conftest$ac_exeext &&
41406 $as_test_x conftest$ac_exeext; then
41407 ac_cv_func_pthread_create=yes
41409 echo "$as_me: failed program was:" >&5
41410 sed 's/^/| /' conftest.$ac_ext >&5
41412 ac_cv_func_pthread_create=no
41415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41416 conftest$ac_exeext conftest.$ac_ext
41418 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41419 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41435 cat >>confdefs.h <<\_ACEOF
41440 CFLAGS=${CFLAGS--O}
41442 if test x$have_gcc = xyes ; then
41443 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41444 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41446 LDFLAGS=${LDFLAGS--O}
41447 DB_LIBS="${SQL_LFLAGS}"
41448 CPPFLAGS="$CPPFLAGS"
41475 PFILES="platforms/Makefile"
41479 hostname=`uname -n | cut -d '.' -f 1`
41480 if test x${hostname} = x ; then
41481 hostname="localhost"
41483 case "$DISTNAME" in
41486 PSCMD="ps -e -o pid,comm"
41487 PFILES="${PFILES} \
41488 platforms/aix/Makefile"
41489 TAPEDRIVE="/dev/rmt0.1"
41493 PTHREAD_LIB="-lpthread -lexc"
41494 if test "${CC}" = "gcc" ; then
41501 TAPEDRIVE="/dev/nrmt0"
41504 DISTVER=`uname -a |awk '{print $3}'`
41505 TAPEDRIVE="/dev/nrmt0"
41506 PTHREAD_LIB="-pthread"
41507 CFLAGS="${CFLAGS} -pthread"
41508 PSCMD="ps -ax -o pid,command"
41511 PFILES="${PFILES} \
41512 platforms/bsdi/Makefile \
41513 platforms/bsdi/bacula-fd \
41514 platforms/bsdi/bacula-sd \
41515 platforms/bsdi/bacula-dir"
41516 largefile_support="yes"
41519 DISTVER=`uname -a |awk '{print $3}'`
41520 TAPEDRIVE="/dev/nrst0"
41522 WCFLAGS="-mwindows"
41523 WLDFLAGS="-mwindows"
41527 TAPEDRIVE="/dev/nst0"
41528 PSCMD="ps -e -o pid,command"
41530 PFILES="${PFILES} \
41531 platforms/darwin/Makefile"
41534 ping -c 1 $hostname 2>&1 1>/dev/null
41535 if test ! $? = 0; then
41536 hostname="localhost"
41538 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41541 DISTVER=`cat /etc/debian_version`
41542 if test -f /etc/lsb-release ; then
41544 if test "x$DISTRIB_ID" != "x" ; then
41545 DISTNAME=$DISTRIB_ID
41547 if test "x$DISTRIB_RELEASE" != "x" ; then
41548 DISTVER=$DISTRIB_RELEASE
41551 if test "$DISTNAME" = "Ubuntu" ; then
41554 TAPEDRIVE="/dev/nst0"
41555 PSCMD="ps -e -o pid,command"
41556 if test "$DISTNAME" = "ubuntu" ; then
41557 PFILES="${PFILES} \
41558 platforms/ubuntu/Makefile \
41559 platforms/ubuntu/bacula-fd \
41560 platforms/ubuntu/bacula-sd \
41561 platforms/ubuntu/bacula-dir"
41563 PFILES="${PFILES} \
41564 platforms/debian/Makefile \
41565 platforms/debian/bacula-fd \
41566 platforms/debian/bacula-sd \
41567 platforms/debian/bacula-dir"
41571 ping -c 1 $hostname 2>&1 1>/dev/null
41572 if test ! $? = 0; then
41573 hostname="localhost"
41575 DISTVER=`uname -a |awk '{print $3}'`
41576 VER=`echo $DISTVER | cut -c 1`
41577 if test x$VER = x4 ; then
41578 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41579 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41583 TAPEDRIVE="/dev/nrsa0"
41584 PSCMD="ps -ax -o pid,command"
41585 PFILES="${PFILES} \
41586 platforms/freebsd/Makefile \
41587 platforms/freebsd/bacula-fd \
41588 platforms/freebsd/bacula-sd \
41589 platforms/freebsd/bacula-dir"
41590 largefile_support="yes"
41593 PSCMD="UNIX95=1; ps -e -o pid,comm"
41594 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41596 TAPEDRIVE="/dev/rmt/0hnb"
41597 PTHREAD_LIB="-lpthread"
41598 cat >>confdefs.h <<\_ACEOF
41599 #define _INCLUDE_LONGLONG 1
41605 TAPEDRIVE="/dev/rmt/0cbn"
41606 PSCMD="ps -e -o pid,comm"
41607 PFILES="${PFILES} \
41608 platforms/irix/Makefile \
41609 platforms/irix/bacula-fd \
41610 platforms/irix/bacula-sd \
41611 platforms/irix/bacula-dir"
41614 DISTVER=`uname -a |awk '{print $3}'`
41617 TAPEDRIVE="/dev/nrst0"
41618 PSCMD="ps -ax -o pid,command"
41619 PTHREAD_LIB="-pthread"
41620 CFLAGS="${CFLAGS} -pthread"
41623 DISTVER=`uname -a |awk '{print $3}'`
41626 TAPEDRIVE="/dev/nrst0"
41627 PSCMD="ps -ax -o pid,command"
41628 PTHREAD_LIB="-pthread"
41629 CFLAGS="${CFLAGS} -pthread"
41630 PFILES="${PFILES} \
41631 platforms/openbsd/Makefile \
41632 platforms/openbsd/bacula-fd \
41633 platforms/openbsd/bacula-sd \
41634 platforms/openbsd/bacula-dir"
41637 ping -c 1 $hostname 2>&1 1>/dev/null
41638 if test ! $? = 0; then
41639 hostname="localhost"
41641 if test -f /etc/whitebox-release ; then
41642 f=/etc/whitebox-release
41644 f=/etc/redhat-release
41646 if test `cat $f | grep release |\
41647 cut -f 3 -d ' '`x = "Enterprise"x ; then
41648 DISTVER="Enterprise "`cat $f | grep release |\
41651 DISTVER=`cat /etc/redhat-release | grep release |\
41654 TAPEDRIVE="/dev/nst0"
41655 PSCMD="ps -e -o pid,command"
41656 PFILES="${PFILES} \
41657 platforms/redhat/Makefile \
41658 platforms/redhat/bacula-fd \
41659 platforms/redhat/bacula-sd \
41660 platforms/redhat/bacula-dir \
41661 platforms/redhat/bacula.spec \
41665 ping -c 1 $hostname 2>&1 1>/dev/null
41666 if test ! $? = 0; then
41667 hostname="localhost"
41669 DISTVER=`cat /etc/mandrake-release | grep release |\
41671 TAPEDRIVE="/dev/nst0"
41672 PSCMD="ps -e -o pid,command"
41673 PFILES="${PFILES} \
41674 platforms/mandrake/Makefile \
41675 platforms/mandrake/bacula-fd \
41676 platforms/mandrake/bacula-sd \
41677 platforms/mandrake/bacula-dir \
41678 platforms/mandrake/bacula.spec \
41682 ping -c 1 $hostname 2>&1 1>/dev/null
41683 if test ! $? = 0; then
41684 hostname="localhost"
41686 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41687 TAPEDRIVE="/dev/nst0"
41688 PSCMD="ps -e -o pid,command"
41689 PFILES="${PFILES} \
41690 platforms/gentoo/Makefile \
41691 platforms/gentoo/bacula-init \
41692 platforms/gentoo/bacula-fd \
41693 platforms/gentoo/bacula-sd \
41694 platforms/gentoo/bacula-dir"
41697 ping -c 1 $hostname 2>&1 1>/dev/null
41698 if test ! $? = 0; then
41699 hostname="localhost"
41701 DISTVER=`cat /etc/slackware-version`
41702 TAPEDRIVE="/dev/nst0"
41703 PSCMD="ps -e -o pid,command"
41704 PFILES="${PFILES} \
41705 platforms/slackware/Makefile \
41706 platforms/slackware/rc.bacula-fd \
41707 platforms/slackware/rc.bacula-sd \
41708 platforms/slackware/rc.bacula-dir\
41709 platforms/slackware/functions.bacula"
41713 TAPEDRIVE="/dev/rmt/0cbn"
41714 PSCMD="ps -e -o pid,comm"
41715 PFILES="${PFILES} \
41716 platforms/solaris/Makefile \
41717 platforms/solaris/bacula-fd \
41718 platforms/solaris/bacula-sd \
41719 platforms/solaris/bacula-dir"
41720 if test x$DISTVER = x5.6 ; then
41721 cat >>confdefs.h <<\_ACEOF
41722 #define HAVE_OLD_SOCKOPT 1
41726 LIBS="$LIBS -lresolv"
41729 ping -c 1 $hostname 2>&1 1>/dev/null
41730 if test ! $? = 0; then
41731 hostname="localhost"
41733 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41735 TAPEDRIVE="/dev/nst0"
41736 PSCMD="ps -e -o pid,command"
41737 PFILES="${PFILES} \
41738 platforms/suse/Makefile \
41739 platforms/suse/bacula-fd \
41740 platforms/suse/bacula-sd \
41741 platforms/suse/bacula-dir \
41742 platforms/suse/bacula \
41743 platforms/suse/bacula.spec"
41746 ping -c 1 $hostname 2>&1 1>/dev/null
41747 if test ! $? = 0; then
41748 hostname="localhost"
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"
41762 TAPEDRIVE="/dev/nst0"
41765 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41771 LIBS="$PTHREAD_LIB $LIBS"
41773 cat >>confdefs.h <<_ACEOF
41777 cat >>confdefs.h <<_ACEOF
41788 MCOMMON=./autoconf/Make.common
41791 if test "x${subsysdir}" = "x${sbindir}" ; then
41794 echo "You have set both --sbindir and --with-subsys-dir"
41795 echo " equal to: ${subsysdir} "
41796 echo "This is not permitted. Please reconfigure."
41798 echo "Aborting configuration ..."
41804 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"
41806 ac_config_commands="$ac_config_commands default"
41808 cat >confcache <<\_ACEOF
41809 # This file is a shell script that caches the results of configure
41810 # tests run on this system so they can be shared between configure
41811 # scripts and configure runs, see configure's option --config-cache.
41812 # It is not useful on other systems. If it contains results you don't
41813 # want to keep, you may remove or edit it.
41815 # config.status only pays attention to the cache file if you give it
41816 # the --recheck option to rerun configure.
41818 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41819 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41820 # following values.
41824 # The following way of writing the cache mishandles newlines in values,
41825 # but we know of no workaround that is simple, portable, and efficient.
41826 # So, we kill variables containing newlines.
41827 # Ultrix sh set writes to stderr and can't be redirected directly,
41828 # and sets the high bit in the cache file unless we assign to the vars.
41830 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41831 eval ac_val=\$$ac_var
41835 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41836 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41839 _ | IFS | as_nl) ;; #(
41840 *) $as_unset $ac_var ;;
41846 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41847 *${as_nl}ac_space=\ *)
41848 # `set' does not quote correctly, so add quotes (double-quote
41849 # substitution turns \\\\ into \\, and sed turns \\ into \).
41852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41855 # `set' quotes correctly as required by POSIX, so do not add quotes.
41856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41865 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41867 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41869 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41870 if test -w "$cache_file"; then
41871 test "x$cache_file" != "x/dev/null" &&
41872 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41873 echo "$as_me: updating cache $cache_file" >&6;}
41874 cat confcache >$cache_file
41876 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41877 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41883 # Let make expand exec_prefix.
41884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41886 DEFS=-DHAVE_CONFIG_H
41890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41891 # 1. Remove the extension, and $U if already installed.
41892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41893 ac_i=`echo "$ac_i" | sed "$ac_script"`
41894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41895 # will be set to the directory where LIBOBJS objects are built.
41896 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41897 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41899 LIBOBJS=$ac_libobjs
41901 LTLIBOBJS=$ac_ltlibobjs
41905 : ${CONFIG_STATUS=./config.status}
41906 ac_clean_files_save=$ac_clean_files
41907 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41908 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41909 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41910 cat >$CONFIG_STATUS <<_ACEOF
41912 # Generated by $as_me.
41913 # Run this file to recreate the current configuration.
41914 # Compiler output produced by configure, useful for debugging
41915 # configure, is in config.log if it exists.
41918 ac_cs_recheck=false
41920 SHELL=\${CONFIG_SHELL-$SHELL}
41923 cat >>$CONFIG_STATUS <<\_ACEOF
41924 ## --------------------- ##
41925 ## M4sh Initialization. ##
41926 ## --------------------- ##
41928 # Be more Bourne compatible
41929 DUALCASE=1; export DUALCASE # for MKS sh
41930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41934 # is contrary to our usage. Disable this feature.
41935 alias -g '${1+"$@"}'='"$@"'
41936 setopt NO_GLOB_SUBST
41938 case `(set -o) 2>/dev/null` in
41939 *posix*) set -o posix ;;
41948 # Avoid depending upon Character Ranges.
41949 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41950 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41951 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41952 as_cr_digits='0123456789'
41953 as_cr_alnum=$as_cr_Letters$as_cr_digits
41955 # The user is always right.
41956 if test "${PATH_SEPARATOR+set}" != set; then
41957 echo "#! /bin/sh" >conf$$.sh
41958 echo "exit 0" >>conf$$.sh
41960 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41968 # Support unset when possible.
41969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41977 # We need space, tab and new line, in precisely that order. Quoting is
41978 # there to prevent editors from complaining about space-tab.
41979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41980 # splitting by setting IFS to empty value.)
41985 # Find who we are. Look in the path if we contain no directory separator.
41987 *[\\/]* ) as_myself=$0 ;;
41988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41989 for as_dir in $PATH
41992 test -z "$as_dir" && as_dir=.
41993 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41999 # We did not find ourselves, most probably we were run as `sh COMMAND'
42000 # in which case we are not to be found in the path.
42001 if test "x$as_myself" = x; then
42004 if test ! -f "$as_myself"; then
42005 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42006 { (exit 1); exit 1; }
42009 # Work around bugs in pre-3.0 UWIN ksh.
42010 for as_var in ENV MAIL MAILPATH
42011 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42019 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42020 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42021 LC_TELEPHONE LC_TIME
42023 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42024 eval $as_var=C; export $as_var
42026 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42030 # Required to use basename.
42031 if expr a : '\(a\)' >/dev/null 2>&1 &&
42032 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42038 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42039 as_basename=basename
42045 # Name of the executable.
42046 as_me=`$as_basename -- "$0" ||
42047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42048 X"$0" : 'X\(//\)$' \| \
42049 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42051 sed '/^.*\/\([^/][^/]*\)\/*$/{
42070 as_lineno_1=$LINENO
42071 as_lineno_2=$LINENO
42072 test "x$as_lineno_1" != "x$as_lineno_2" &&
42073 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42075 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42076 # uniformly replaced by the line number. The first 'sed' inserts a
42077 # line-number line after each line using $LINENO; the second 'sed'
42078 # does the real work. The second script uses 'N' to pair each
42079 # line-number line with the line containing $LINENO, and appends
42080 # trailing '-' during substitution so that $LINENO is not a special
42081 # case at line end.
42082 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42083 # scripts with optimization help from Paolo Bonzini. Blame Lee
42084 # E. McMahon (1931-1989) for sed's syntax. :-)
42096 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42099 ' >$as_me.lineno &&
42100 chmod +x "$as_me.lineno" ||
42101 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42102 { (exit 1); exit 1; }; }
42104 # Don't try to exec as it changes $[0], causing all sort of problems
42105 # (the dirname of $[0] is not the place where we might find the
42106 # original and so on. Autoconf is especially sensitive to this).
42107 . "./$as_me.lineno"
42108 # Exit status is that of the last command.
42113 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42119 ECHO_C= ECHO_N= ECHO_T=
42120 case `echo -n x` in
42122 case `echo 'x\c'` in
42123 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42130 if expr a : '\(a\)' >/dev/null 2>&1 &&
42131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42137 rm -f conf$$ conf$$.exe conf$$.file
42138 if test -d conf$$.dir; then
42139 rm -f conf$$.dir/conf$$.file
42145 if ln -s conf$$.file conf$$ 2>/dev/null; then
42147 # ... but there are two gotchas:
42148 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42149 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42150 # In both cases, we have to default to `cp -p'.
42151 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42153 elif ln conf$$.file conf$$ 2>/dev/null; then
42158 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42159 rmdir conf$$.dir 2>/dev/null
42161 if mkdir -p . 2>/dev/null; then
42164 test -d ./-p && rmdir ./-p
42168 if test -x / >/dev/null 2>&1; then
42169 as_test_x='test -x'
42171 if ls -dL / >/dev/null 2>&1; then
42178 if test -d "$1"; then
42184 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42185 ???[sx]*):;;*)false;;esac;fi
42189 as_executable_p=$as_test_x
42191 # Sed expression to map a string onto a valid CPP name.
42192 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42194 # Sed expression to map a string onto a valid variable name.
42195 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42200 # Save the log message, to keep $[0] and so on meaningful, and to
42201 # report actual input values of CONFIG_FILES etc. instead of their
42202 # values after options handling.
42204 This file was extended by $as_me, which was
42205 generated by GNU Autoconf 2.61. Invocation command line was
42207 CONFIG_FILES = $CONFIG_FILES
42208 CONFIG_HEADERS = $CONFIG_HEADERS
42209 CONFIG_LINKS = $CONFIG_LINKS
42210 CONFIG_COMMANDS = $CONFIG_COMMANDS
42213 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42218 cat >>$CONFIG_STATUS <<_ACEOF
42219 # Files that config.status was made for.
42220 config_files="$ac_config_files"
42221 config_headers="$ac_config_headers"
42222 config_commands="$ac_config_commands"
42226 cat >>$CONFIG_STATUS <<\_ACEOF
42228 \`$as_me' instantiates files from templates according to the
42229 current configuration.
42231 Usage: $0 [OPTIONS] [FILE]...
42233 -h, --help print this help, then exit
42234 -V, --version print version number and configuration settings, then exit
42235 -q, --quiet do not print progress messages
42236 -d, --debug don't remove temporary files
42237 --recheck update $as_me by reconfiguring in the same conditions
42238 --file=FILE[:TEMPLATE]
42239 instantiate the configuration file FILE
42240 --header=FILE[:TEMPLATE]
42241 instantiate the configuration header FILE
42243 Configuration files:
42246 Configuration headers:
42249 Configuration commands:
42252 Report bugs to <bug-autoconf@gnu.org>."
42255 cat >>$CONFIG_STATUS <<_ACEOF
42258 configured by $0, generated by GNU Autoconf 2.61,
42259 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42261 Copyright (C) 2006 Free Software Foundation, Inc.
42262 This config.status script is free software; the Free Software Foundation
42263 gives unlimited permission to copy, distribute and modify it."
42270 cat >>$CONFIG_STATUS <<\_ACEOF
42271 # If no file are specified by the user, then we need to provide default
42272 # value. By we need to know if files were specified by the user.
42278 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42279 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42290 # Handling of the options.
42291 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42293 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42294 echo "$ac_cs_version"; exit ;;
42295 --debug | --debu | --deb | --de | --d | -d )
42297 --file | --fil | --fi | --f )
42299 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42300 ac_need_defaults=false;;
42301 --header | --heade | --head | --hea )
42303 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42304 ac_need_defaults=false;;
42306 # Conflict between --help and --header
42307 { echo "$as_me: error: ambiguous option: $1
42308 Try \`$0 --help' for more information." >&2
42309 { (exit 1); exit 1; }; };;
42310 --help | --hel | -h )
42311 echo "$ac_cs_usage"; exit ;;
42312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42313 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42316 # This is an error.
42317 -*) { echo "$as_me: error: unrecognized option: $1
42318 Try \`$0 --help' for more information." >&2
42319 { (exit 1); exit 1; }; } ;;
42321 *) ac_config_targets="$ac_config_targets $1"
42322 ac_need_defaults=false ;;
42328 ac_configure_extra_args=
42330 if $ac_cs_silent; then
42332 ac_configure_extra_args="$ac_configure_extra_args --silent"
42336 cat >>$CONFIG_STATUS <<_ACEOF
42337 if \$ac_cs_recheck; then
42338 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42339 CONFIG_SHELL=$SHELL
42340 export CONFIG_SHELL
42341 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42345 cat >>$CONFIG_STATUS <<\_ACEOF
42349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42350 ## Running $as_me. ##
42356 cat >>$CONFIG_STATUS <<_ACEOF
42362 # The HP-UX ksh and POSIX shell print the target directory to stdout
42363 # if CDPATH is set.
42364 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42366 sed_quote_subst='$sed_quote_subst'
42367 double_quote_subst='$double_quote_subst'
42368 delay_variable_subst='$delay_variable_subst'
42369 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42370 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42371 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42372 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42373 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42374 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42375 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42376 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42377 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42378 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42379 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42380 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42381 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42382 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42383 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42384 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42385 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42386 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42387 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42388 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42389 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42390 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42391 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42392 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42393 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42394 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42395 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42396 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42397 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42398 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42399 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42400 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42401 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42402 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42403 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42404 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42405 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42406 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42407 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42408 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42409 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42410 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42411 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42412 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42413 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"`'
42414 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"`'
42415 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42416 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42417 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42418 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42419 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42420 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42421 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42422 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42423 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42424 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42425 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42426 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42427 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42428 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42429 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42430 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42431 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42432 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42433 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42434 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42435 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42436 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42437 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42438 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42439 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42440 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42441 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42442 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42443 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42444 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42445 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42446 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42447 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42448 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42449 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42450 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42451 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42452 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42453 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42454 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42455 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42456 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42457 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42458 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42459 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42460 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42461 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42462 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42463 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42464 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42465 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42466 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42467 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42468 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42469 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42470 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42471 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42472 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42473 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42474 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42475 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42476 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42477 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42478 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42479 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42480 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42481 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42482 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42483 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42484 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42485 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42486 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42487 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42488 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42489 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42490 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42491 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42492 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42493 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42494 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42495 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42496 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42497 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42498 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42499 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42500 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42501 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42502 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42503 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42504 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42505 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42506 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42507 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42508 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42509 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42510 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42511 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42512 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42513 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42514 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42515 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42516 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42517 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42518 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42519 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42520 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42521 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42522 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42523 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42524 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42525 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42526 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42527 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42528 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42529 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42530 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42531 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42532 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42533 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42534 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42535 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42536 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42537 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42538 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42539 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42542 LTCFLAGS='$LTCFLAGS'
42543 compiler='$compiler_DEFAULT'
42545 # Quote evaled strings.
42557 deplibs_check_method \
42566 lt_cv_sys_global_symbol_pipe \
42567 lt_cv_sys_global_symbol_to_cdecl \
42568 lt_cv_sys_global_symbol_to_c_name_address \
42569 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42572 lt_prog_compiler_no_builtin_flag \
42573 lt_prog_compiler_wl \
42574 lt_prog_compiler_pic \
42575 lt_prog_compiler_static \
42576 lt_cv_prog_compiler_c_o \
42584 export_dynamic_flag_spec \
42585 whole_archive_flag_spec \
42586 compiler_needs_object \
42588 allow_undefined_flag \
42589 no_undefined_flag \
42590 hardcode_libdir_flag_spec \
42591 hardcode_libdir_flag_spec_ld \
42592 hardcode_libdir_separator \
42597 variables_saved_for_relink \
42599 library_names_spec \
42604 compiler_lib_search_dirs \
42609 compiler_lib_search_path \
42612 lt_prog_compiler_no_builtin_flag_CXX \
42613 lt_prog_compiler_wl_CXX \
42614 lt_prog_compiler_pic_CXX \
42615 lt_prog_compiler_static_CXX \
42616 lt_cv_prog_compiler_c_o_CXX \
42617 export_dynamic_flag_spec_CXX \
42618 whole_archive_flag_spec_CXX \
42619 compiler_needs_object_CXX \
42621 allow_undefined_flag_CXX \
42622 no_undefined_flag_CXX \
42623 hardcode_libdir_flag_spec_CXX \
42624 hardcode_libdir_flag_spec_ld_CXX \
42625 hardcode_libdir_separator_CXX \
42626 fix_srcfile_path_CXX \
42627 exclude_expsyms_CXX \
42628 include_expsyms_CXX \
42629 file_list_spec_CXX \
42630 compiler_lib_search_dirs_CXX \
42631 predep_objects_CXX \
42632 postdep_objects_CXX \
42635 compiler_lib_search_path_CXX; do
42636 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42637 *[\\\\\\\`\\"\\\$]*)
42638 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42641 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42646 # Double-quote double-evaled strings.
42647 for var in reload_cmds \
42648 old_postinstall_cmds \
42649 old_postuninstall_cmds \
42651 extract_expsyms_cmds \
42652 old_archive_from_new_cmds \
42653 old_archive_from_expsyms_cmds \
42655 archive_expsym_cmds \
42657 module_expsym_cmds \
42658 export_symbols_cmds \
42661 postuninstall_cmds \
42663 sys_lib_search_path_spec \
42664 sys_lib_dlsearch_path_spec \
42665 old_archive_cmds_CXX \
42666 old_archive_from_new_cmds_CXX \
42667 old_archive_from_expsyms_cmds_CXX \
42669 archive_expsym_cmds_CXX \
42671 module_expsym_cmds_CXX \
42672 export_symbols_cmds_CXX \
42673 prelink_cmds_CXX; do
42674 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42675 *[\\\\\\\`\\"\\\$]*)
42676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42684 # Fix-up fallback echo if it was mangled by the above quoting rules.
42686 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42690 ac_aux_dir='$ac_aux_dir'
42691 xsi_shell='$xsi_shell'
42692 lt_shell_append='$lt_shell_append'
42694 # See if we are running on zsh, and set the options which allow our
42695 # commands through without removal of \ escapes INIT.
42696 if test -n "\${ZSH_VERSION+set}" ; then
42697 setopt NO_GLOB_SUBST
42703 TIMESTAMP='$TIMESTAMP'
42711 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42712 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42714 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42715 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42716 LINGUAS="${LINGUAS-%UNSET%}"
42721 cat >>$CONFIG_STATUS <<\_ACEOF
42723 # Handling of arguments.
42724 for ac_config_target in $ac_config_targets
42726 case $ac_config_target in
42727 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42728 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42729 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42730 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42731 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42732 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42733 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42734 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42735 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42736 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42737 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42738 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42739 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42740 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42741 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42742 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42743 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42744 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42745 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42746 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42747 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42748 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42749 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42750 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42751 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42752 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42753 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42754 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42755 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42756 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42757 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42758 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42759 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42760 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42761 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42762 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42763 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42764 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42765 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42766 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42767 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42768 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42769 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42770 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42771 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42772 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42773 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42774 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42775 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42776 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42777 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42778 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42779 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42780 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42781 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42782 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42783 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42784 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42785 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42786 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42787 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42788 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42789 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42790 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42791 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42792 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42793 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42794 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42795 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42796 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42797 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42798 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42799 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42800 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42801 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42802 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42803 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42804 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42805 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42806 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42807 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42808 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42809 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42810 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42811 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42812 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42813 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42814 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42815 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42816 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42817 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42818 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42819 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42820 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42821 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42822 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42823 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42824 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42825 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42826 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42827 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42828 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42829 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42830 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42831 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42832 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42833 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42834 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42835 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42836 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42837 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42838 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42839 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42840 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42841 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42843 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42844 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42845 { (exit 1); exit 1; }; };;
42850 # If the user did not use the arguments to specify the items to instantiate,
42851 # then the envvar interface is used. Set only those that are not.
42852 # We use the long form for the default assignment because of an extremely
42853 # bizarre bug on SunOS 4.1.3.
42854 if $ac_need_defaults; then
42855 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42856 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42857 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42860 # Have a temporary directory for convenience. Make it in the build tree
42861 # simply because there is no reason against having it here, and in addition,
42862 # creating and moving files from /tmp can sometimes cause problems.
42863 # Hook for its removal unless debugging.
42864 # Note that there is a small window in which the directory will not be cleaned:
42865 # after its creation but before its name has been assigned to `$tmp'.
42869 trap 'exit_status=$?
42870 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42872 trap '{ (exit 1); exit 1; }' 1 2 13 15
42874 # Create a (secure) tmp directory for tmp files.
42877 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42878 test -n "$tmp" && test -d "$tmp"
42881 tmp=./conf$$-$RANDOM
42882 (umask 077 && mkdir "$tmp")
42885 echo "$me: cannot create a temporary directory in ." >&2
42886 { (exit 1); exit 1; }
42890 # Set up the sed scripts for CONFIG_FILES section.
42893 # No need to generate the scripts if there are no CONFIG_FILES.
42894 # This happens for instance when ./config.status config.h
42895 if test -n "$CONFIG_FILES"; then
42899 # Create sed commands to just substitute file output variables.
42901 # Remaining file output variables are in a fragment that also has non-file
42907 for ac_last_try in false false false false false :; do
42908 cat >conf$$subs.sed <<_ACEOF
42909 SHELL!$SHELL$ac_delim
42910 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42911 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42912 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42913 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42914 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42915 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42916 exec_prefix!$exec_prefix$ac_delim
42917 prefix!$prefix$ac_delim
42918 program_transform_name!$program_transform_name$ac_delim
42919 bindir!$bindir$ac_delim
42920 sbindir!$sbindir$ac_delim
42921 libexecdir!$libexecdir$ac_delim
42922 datarootdir!$datarootdir$ac_delim
42923 datadir!$datadir$ac_delim
42924 sysconfdir!$sysconfdir$ac_delim
42925 sharedstatedir!$sharedstatedir$ac_delim
42926 localstatedir!$localstatedir$ac_delim
42927 includedir!$includedir$ac_delim
42928 oldincludedir!$oldincludedir$ac_delim
42929 docdir!$docdir$ac_delim
42930 infodir!$infodir$ac_delim
42931 htmldir!$htmldir$ac_delim
42932 dvidir!$dvidir$ac_delim
42933 pdfdir!$pdfdir$ac_delim
42934 psdir!$psdir$ac_delim
42935 libdir!$libdir$ac_delim
42936 localedir!$localedir$ac_delim
42937 mandir!$mandir$ac_delim
42938 DEFS!$DEFS$ac_delim
42939 ECHO_C!$ECHO_C$ac_delim
42940 ECHO_N!$ECHO_N$ac_delim
42941 ECHO_T!$ECHO_T$ac_delim
42942 LIBS!$LIBS$ac_delim
42943 build_alias!$build_alias$ac_delim
42944 host_alias!$host_alias$ac_delim
42945 target_alias!$target_alias$ac_delim
42946 BUILD_DIR!$BUILD_DIR$ac_delim
42947 TOP_DIR!$TOP_DIR$ac_delim
42948 TRUEPRG!$TRUEPRG$ac_delim
42949 FALSEPRG!$FALSEPRG$ac_delim
42950 VERSION!$VERSION$ac_delim
42951 DATE!$DATE$ac_delim
42952 LSMDATE!$LSMDATE$ac_delim
42953 BACULA!$BACULA$ac_delim
42954 post_host!$post_host$ac_delim
42956 CFLAGS!$CFLAGS$ac_delim
42957 LDFLAGS!$LDFLAGS$ac_delim
42958 CPPFLAGS!$CPPFLAGS$ac_delim
42959 ac_ct_CC!$ac_ct_CC$ac_delim
42960 EXEEXT!$EXEEXT$ac_delim
42961 OBJEXT!$OBJEXT$ac_delim
42963 CXXFLAGS!$CXXFLAGS$ac_delim
42964 ac_ct_CXX!$ac_ct_CXX$ac_delim
42966 GREP!$GREP$ac_delim
42967 EGREP!$EGREP$ac_delim
42968 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42969 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42970 INSTALL_DATA!$INSTALL_DATA$ac_delim
42972 REMOVE!$REMOVE$ac_delim
42975 ECHO!$ECHO$ac_delim
42979 OPENSSL!$OPENSSL$ac_delim
42982 MKISOFS!$MKISOFS$ac_delim
42983 PYTHON!$PYTHON$ac_delim
42984 GROWISOFS!$GROWISOFS$ac_delim
42985 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42986 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42987 PKGCONFIG!$PKGCONFIG$ac_delim
42988 QMAKE!$QMAKE$ac_delim
42989 QMAKEQT4!$QMAKEQT4$ac_delim
42990 WXCONFIG!$WXCONFIG$ac_delim
42991 WXFLAGS!$WXFLAGS$ac_delim
42992 CDRECORD!$CDRECORD$ac_delim
42993 PIDOF!$PIDOF$ac_delim
42995 ARFLAGS!$ARFLAGS$ac_delim
42996 MAKE_SHELL!$MAKE_SHELL$ac_delim
42997 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42998 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42999 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43000 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43001 LIBTOOL!$LIBTOOL$ac_delim
43002 build!$build$ac_delim
43005 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43007 elif $ac_last_try; then
43008 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43009 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43010 { (exit 1); exit 1; }; }
43012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43016 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43017 if test -n "$ac_eof"; then
43018 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43019 ac_eof=`expr $ac_eof + 1`
43022 cat >>$CONFIG_STATUS <<_ACEOF
43023 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43025 /^[ ]*@MCOMMON@[ ]*$/{
43031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43032 s/^/s,@/; s/!/@,|#_!!_#|/
43035 s/'"$ac_delim"'$/,g/; t
43037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43038 ' >>$CONFIG_STATUS <conf$$subs.sed
43039 rm -f conf$$subs.sed
43040 cat >>$CONFIG_STATUS <<_ACEOF
43046 for ac_last_try in false false false false false :; do
43047 cat >conf$$subs.sed <<_ACEOF
43048 build_cpu!$build_cpu$ac_delim
43049 build_vendor!$build_vendor$ac_delim
43050 build_os!$build_os$ac_delim
43051 host!$host$ac_delim
43052 host_cpu!$host_cpu$ac_delim
43053 host_vendor!$host_vendor$ac_delim
43054 host_os!$host_os$ac_delim
43055 FGREP!$FGREP$ac_delim
43057 DUMPBIN!$DUMPBIN$ac_delim
43058 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43060 LN_S!$LN_S$ac_delim
43061 OBJDUMP!$OBJDUMP$ac_delim
43062 STRIP!$STRIP$ac_delim
43063 RANLIB!$RANLIB$ac_delim
43064 lt_ECHO!$lt_ECHO$ac_delim
43065 DSYMUTIL!$DSYMUTIL$ac_delim
43066 NMEDIT!$NMEDIT$ac_delim
43067 LIPO!$LIPO$ac_delim
43068 OTOOL!$OTOOL$ac_delim
43069 OTOOL64!$OTOOL64$ac_delim
43070 CXXCPP!$CXXCPP$ac_delim
43071 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43072 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43073 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43074 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43075 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43076 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43077 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43078 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43079 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43080 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43081 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43082 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43083 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43084 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43085 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43086 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43087 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43088 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43089 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43090 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43091 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43092 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43093 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43094 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43095 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43096 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43097 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43098 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43099 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43100 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43101 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43102 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43103 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43104 SET_MAKE!$SET_MAKE$ac_delim
43105 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43106 USE_NLS!$USE_NLS$ac_delim
43107 MSGFMT!$MSGFMT$ac_delim
43108 GMSGFMT!$GMSGFMT$ac_delim
43109 XGETTEXT!$XGETTEXT$ac_delim
43110 MSGMERGE!$MSGMERGE$ac_delim
43111 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43112 LIBICONV!$LIBICONV$ac_delim
43113 LTLIBICONV!$LTLIBICONV$ac_delim
43114 INTLLIBS!$INTLLIBS$ac_delim
43115 LIBINTL!$LIBINTL$ac_delim
43116 LTLIBINTL!$LTLIBINTL$ac_delim
43117 POSUB!$POSUB$ac_delim
43118 GLIBC2!$GLIBC2$ac_delim
43119 ALLOCA!$ALLOCA$ac_delim
43120 GLIBC21!$GLIBC21$ac_delim
43121 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43122 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43123 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43124 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43125 INTLBISON!$INTLBISON$ac_delim
43126 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43127 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43128 CATOBJEXT!$CATOBJEXT$ac_delim
43129 DATADIRNAME!$DATADIRNAME$ac_delim
43130 INSTOBJEXT!$INSTOBJEXT$ac_delim
43131 GENCAT!$GENCAT$ac_delim
43132 INTLOBJS!$INTLOBJS$ac_delim
43133 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43134 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43135 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43136 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43137 GNOME_LIBS!$GNOME_LIBS$ac_delim
43138 GNOME_DIR!$GNOME_DIR$ac_delim
43139 BAT_DIR!$BAT_DIR$ac_delim
43140 QWT_INC!$QWT_INC$ac_delim
43141 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43142 QWT_LIB!$QWT_LIB$ac_delim
43144 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43147 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43149 elif $ac_last_try; then
43150 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43151 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43152 { (exit 1); exit 1; }; }
43154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43158 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43159 if test -n "$ac_eof"; then
43160 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43161 ac_eof=`expr $ac_eof + 1`
43164 cat >>$CONFIG_STATUS <<_ACEOF
43165 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43169 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43170 s/^/s,@/; s/!/@,|#_!!_#|/
43173 s/'"$ac_delim"'$/,g/; t
43175 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43176 ' >>$CONFIG_STATUS <conf$$subs.sed
43177 rm -f conf$$subs.sed
43178 cat >>$CONFIG_STATUS <<_ACEOF
43184 for ac_last_try in false false false false false :; do
43185 cat >conf$$subs.sed <<_ACEOF
43186 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43187 WX_DIR!$WX_DIR$ac_delim
43188 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43189 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43190 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43191 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43192 STATIC_FD!$STATIC_FD$ac_delim
43193 STATIC_SD!$STATIC_SD$ac_delim
43194 STATIC_DIR!$STATIC_DIR$ac_delim
43195 STATIC_CONS!$STATIC_CONS$ac_delim
43196 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43197 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43198 ALL_DIRS!$ALL_DIRS$ac_delim
43199 DIRD_DIR!$DIRD_DIR$ac_delim
43200 DIR_TOOLS!$DIR_TOOLS$ac_delim
43201 STORED_DIR!$STORED_DIR$ac_delim
43202 CONS_INC!$CONS_INC$ac_delim
43203 CONS_OBJ!$CONS_OBJ$ac_delim
43204 CONS_SRC!$CONS_SRC$ac_delim
43205 CONS_LIBS!$CONS_LIBS$ac_delim
43206 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43207 READLINE_SRC!$READLINE_SRC$ac_delim
43208 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43209 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43210 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43211 OPENSSL_INC!$OPENSSL_INC$ac_delim
43212 working_dir!$working_dir$ac_delim
43213 archivedir!$archivedir$ac_delim
43214 scriptdir!$scriptdir$ac_delim
43215 plugindir!$plugindir$ac_delim
43216 dump_email!$dump_email$ac_delim
43217 job_email!$job_email$ac_delim
43218 smtp_host!$smtp_host$ac_delim
43219 piddir!$piddir$ac_delim
43220 subsysdir!$subsysdir$ac_delim
43221 baseport!$baseport$ac_delim
43222 dir_port!$dir_port$ac_delim
43223 fd_port!$fd_port$ac_delim
43224 sd_port!$sd_port$ac_delim
43225 dir_password!$dir_password$ac_delim
43226 fd_password!$fd_password$ac_delim
43227 sd_password!$sd_password$ac_delim
43228 mon_dir_password!$mon_dir_password$ac_delim
43229 mon_fd_password!$mon_fd_password$ac_delim
43230 mon_sd_password!$mon_sd_password$ac_delim
43231 db_name!$db_name$ac_delim
43232 db_user!$db_user$ac_delim
43233 db_password!$db_password$ac_delim
43234 db_port!$db_port$ac_delim
43235 dir_user!$dir_user$ac_delim
43236 dir_group!$dir_group$ac_delim
43237 sd_user!$sd_user$ac_delim
43238 sd_group!$sd_group$ac_delim
43239 fd_user!$fd_user$ac_delim
43240 fd_group!$fd_group$ac_delim
43241 SBINPERM!$SBINPERM$ac_delim
43242 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43243 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43244 SQL_BINDIR!$SQL_BINDIR$ac_delim
43245 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43246 uncomment_dbi!$uncomment_dbi$ac_delim
43247 DB_PROG!$DB_PROG$ac_delim
43248 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43249 cats!$cats$ac_delim
43250 DB_TYPE!$DB_TYPE$ac_delim
43251 GETCONF!$GETCONF$ac_delim
43252 XMKMF!$XMKMF$ac_delim
43253 X_CFLAGS!$X_CFLAGS$ac_delim
43254 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43255 X_LIBS!$X_LIBS$ac_delim
43256 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43257 LIBOBJS!$LIBOBJS$ac_delim
43258 FDLIBS!$FDLIBS$ac_delim
43259 DEBUG!$DEBUG$ac_delim
43260 DINCLUDE!$DINCLUDE$ac_delim
43261 DLIB!$DLIB$ac_delim
43262 DB_LIBS!$DB_LIBS$ac_delim
43263 WCFLAGS!$WCFLAGS$ac_delim
43264 WLDFLAGS!$WLDFLAGS$ac_delim
43265 WRAPLIBS!$WRAPLIBS$ac_delim
43266 OBJLIST!$OBJLIST$ac_delim
43267 hostname!$hostname$ac_delim
43268 TAPEDRIVE!$TAPEDRIVE$ac_delim
43269 PSCMD!$PSCMD$ac_delim
43270 WIN32!$WIN32$ac_delim
43271 MACOSX!$MACOSX$ac_delim
43272 DISTNAME!$DISTNAME$ac_delim
43273 DISTVER!$DISTVER$ac_delim
43274 LTLIBOBJS!$LTLIBOBJS$ac_delim
43277 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
43279 elif $ac_last_try; then
43280 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43281 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43282 { (exit 1); exit 1; }; }
43284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43288 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43289 if test -n "$ac_eof"; then
43290 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43291 ac_eof=`expr $ac_eof + 1`
43294 cat >>$CONFIG_STATUS <<_ACEOF
43295 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43299 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43300 s/^/s,@/; s/!/@,|#_!!_#|/
43303 s/'"$ac_delim"'$/,g/; t
43305 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43306 ' >>$CONFIG_STATUS <conf$$subs.sed
43307 rm -f conf$$subs.sed
43308 cat >>$CONFIG_STATUS <<_ACEOF
43315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43317 # trailing colons and then remove the whole line if VPATH becomes empty
43318 # (actually we leave an empty line to preserve line numbers).
43319 if test "x$srcdir" = x.; then
43320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43321 s/:*\$(srcdir):*/:/
43322 s/:*\${srcdir}:*/:/
43324 s/^\([^=]*=[ ]*\):*/\1/
43330 cat >>$CONFIG_STATUS <<\_ACEOF
43331 fi # test -n "$CONFIG_FILES"
43334 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
43337 :[FHLC]) ac_mode=$ac_tag; continue;;
43339 case $ac_mode$ac_tag in
43341 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43342 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43343 { (exit 1); exit 1; }; };;
43344 :[FH]-) ac_tag=-:-;;
43345 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43362 -) ac_f="$tmp/stdin";;
43363 *) # Look for the file first in the build tree, then in the source tree
43364 # (if the path is not absolute). The absolute path cannot be DOS-style,
43365 # because $ac_f cannot contain `:'.
43369 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43371 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43372 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43373 { (exit 1); exit 1; }; };;
43375 ac_file_inputs="$ac_file_inputs $ac_f"
43378 # Let's still pretend it is `configure' which instantiates (i.e., don't
43379 # use $as_me), people would be surprised to read:
43380 # /* config.h. Generated by config.status. */
43381 configure_input="Generated from "`IFS=:
43382 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43383 if test x"$ac_file" != x-; then
43384 configure_input="$ac_file. $configure_input"
43385 { echo "$as_me:$LINENO: creating $ac_file" >&5
43386 echo "$as_me: creating $ac_file" >&6;}
43390 *:-:* | *:-) cat >"$tmp/stdin";;
43395 ac_dir=`$as_dirname -- "$ac_file" ||
43396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43397 X"$ac_file" : 'X\(//\)[^/]' \| \
43398 X"$ac_file" : 'X\(//\)$' \| \
43399 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43405 /^X\(\/\/\)[^/].*/{
43420 -*) as_dir=./$as_dir;;
43422 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43426 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43427 *) as_qdir=$as_dir;;
43429 as_dirs="'$as_qdir' $as_dirs"
43430 as_dir=`$as_dirname -- "$as_dir" ||
43431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43432 X"$as_dir" : 'X\(//\)[^/]' \| \
43433 X"$as_dir" : 'X\(//\)$' \| \
43434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43440 /^X\(\/\/\)[^/].*/{
43453 test -d "$as_dir" && break
43455 test -z "$as_dirs" || eval "mkdir $as_dirs"
43456 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43457 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43458 { (exit 1); exit 1; }; }; }
43462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43464 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43465 # A ".." for each directory in $ac_dir_suffix.
43466 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43467 case $ac_top_builddir_sub in
43468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43472 ac_abs_top_builddir=$ac_pwd
43473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43474 # for backward compatibility:
43475 ac_top_builddir=$ac_top_build_prefix
43478 .) # We are building in place.
43480 ac_top_srcdir=$ac_top_builddir_sub
43481 ac_abs_top_srcdir=$ac_pwd ;;
43482 [\\/]* | ?:[\\/]* ) # Absolute name.
43483 ac_srcdir=$srcdir$ac_dir_suffix;
43484 ac_top_srcdir=$srcdir
43485 ac_abs_top_srcdir=$srcdir ;;
43486 *) # Relative name.
43487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43488 ac_top_srcdir=$ac_top_build_prefix$srcdir
43489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43501 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43502 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43506 cat >>$CONFIG_STATUS <<\_ACEOF
43507 # If the template does not know about datarootdir, expand it.
43508 # FIXME: This hack should be removed a few years after 2.60.
43509 ac_datarootdir_hack=; ac_datarootdir_seen=
43511 case `sed -n '/datarootdir/ {
43520 ' $ac_file_inputs` in
43521 *datarootdir*) ac_datarootdir_seen=yes;;
43522 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43523 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43524 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43526 cat >>$CONFIG_STATUS <<_ACEOF
43527 ac_datarootdir_hack='
43528 s&@datadir@&$datadir&g
43529 s&@docdir@&$docdir&g
43530 s&@infodir@&$infodir&g
43531 s&@localedir@&$localedir&g
43532 s&@mandir@&$mandir&g
43533 s&\\\${datarootdir}&$datarootdir&g' ;;
43537 # Neutralize VPATH when `$srcdir' = `.'.
43538 # Shell code in configure.ac might set extrasub.
43539 # FIXME: do we really want to maintain this feature?
43540 cat >>$CONFIG_STATUS <<_ACEOF
43544 cat >>$CONFIG_STATUS <<\_ACEOF
43546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43547 s&@configure_input@&$configure_input&;t t
43548 s&@top_builddir@&$ac_top_builddir_sub&;t t
43549 s&@srcdir@&$ac_srcdir&;t t
43550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43551 s&@top_srcdir@&$ac_top_srcdir&;t t
43552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43553 s&@builddir@&$ac_builddir&;t t
43554 s&@abs_builddir@&$ac_abs_builddir&;t t
43555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43556 s&@INSTALL@&$ac_INSTALL&;t t
43557 $ac_datarootdir_hack
43558 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43560 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43561 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43562 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43563 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43564 which seems to be undefined. Please make sure it is defined." >&5
43565 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43566 which seems to be undefined. Please make sure it is defined." >&2;}
43570 -) cat "$tmp/out"; rm -f "$tmp/out";;
43571 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43580 # Transform confdefs.h into a sed script `conftest.defines', that
43581 # substitutes the proper values into config.h.in to produce config.h.
43582 rm -f conftest.defines conftest.tail
43583 # First, append a space to every undef/define line, to ease matching.
43584 echo 's/$/ /' >conftest.defines
43585 # Then, protect against being on the right side of a sed subst, or in
43586 # an unquoted here document, in config.status. If some macros were
43587 # called several times there might be several #defines for the same
43588 # symbol, which is useless. But do not sort them, since the last
43589 # AC_DEFINE must be honored.
43590 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43591 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43592 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43593 # PARAMS is the parameter list in the macro definition--in most cases, it's
43594 # just an empty string.
43595 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43596 ac_dB='\\)[ (].*,\\1define\\2'
43604 s/^[ ]*#[ ]*define[ ][ ]*//
43609 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43610 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43611 ' >>conftest.defines
43613 # Remove the space that was appended to ease matching.
43614 # Then replace #undef with comments. This is necessary, for
43615 # example, in the case of _POSIX_SOURCE, which is predefined and required
43616 # on some systems where configure will not decide to define it.
43617 # (The regexp can be short, since the line contains either #define or #undef.)
43619 s,^[ #]*u.*,/* & */,' >>conftest.defines
43621 # Break up conftest.defines:
43622 ac_max_sed_lines=50
43624 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43625 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43626 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43628 ac_in='$ac_file_inputs'
43629 ac_out='"$tmp/out1"'
43630 ac_nxt='"$tmp/out2"'
43634 # Write a here document:
43635 cat >>$CONFIG_STATUS <<_ACEOF
43636 # First, check the format of the line:
43637 cat >"\$tmp/defines.sed" <<\\CEOF
43638 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43639 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43643 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43645 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43646 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43647 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43648 grep . conftest.tail >/dev/null || break
43649 rm -f conftest.defines
43650 mv conftest.tail conftest.defines
43652 rm -f conftest.defines conftest.tail
43654 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43655 cat >>$CONFIG_STATUS <<\_ACEOF
43656 if test x"$ac_file" != x-; then
43657 echo "/* $configure_input */" >"$tmp/config.h"
43658 cat "$ac_result" >>"$tmp/config.h"
43659 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43660 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43661 echo "$as_me: $ac_file is unchanged" >&6;}
43664 mv "$tmp/config.h" $ac_file
43667 echo "/* $configure_input */"
43673 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43674 echo "$as_me: executing $ac_file commands" >&6;}
43679 case $ac_file$ac_mode in
43682 # See if we are running on zsh, and set the options which allow our
43683 # commands through without removal of \ escapes.
43684 if test -n "${ZSH_VERSION+set}" ; then
43685 setopt NO_GLOB_SUBST
43688 cfgfile="${ofile}T"
43689 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43692 cat <<_LT_EOF >> "$cfgfile"
43695 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43696 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43700 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43701 # 2006, 2007, 2008 Free Software Foundation, Inc.
43702 # Written by Gordon Matzigkeit, 1996
43704 # This file is part of GNU Libtool.
43706 # GNU Libtool is free software; you can redistribute it and/or
43707 # modify it under the terms of the GNU General Public License as
43708 # published by the Free Software Foundation; either version 2 of
43709 # the License, or (at your option) any later version.
43711 # As a special exception to the GNU General Public License,
43712 # if you distribute this file as part of a program or library that
43713 # is built using GNU Libtool, you may include this file under the
43714 # same distribution terms that you use for the rest of that program.
43716 # GNU Libtool is distributed in the hope that it will be useful,
43717 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43718 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43719 # GNU General Public License for more details.
43721 # You should have received a copy of the GNU General Public License
43722 # along with GNU Libtool; see the file COPYING. If not, a copy
43723 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43724 # obtained by writing to the Free Software Foundation, Inc.,
43725 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43728 # The names of the tagged configurations supported by this script.
43729 available_tags="CXX "
43731 # ### BEGIN LIBTOOL CONFIG
43733 # Which release of libtool.m4 was used?
43734 macro_version=$macro_version
43735 macro_revision=$macro_revision
43737 # Whether or not to build shared libraries.
43738 build_libtool_libs=$enable_shared
43740 # Whether or not to build static libraries.
43741 build_old_libs=$enable_static
43743 # What type of objects to build.
43746 # Whether or not to optimize for fast installation.
43747 fast_install=$enable_fast_install
43750 host_alias=$host_alias
43754 # The build system.
43755 build_alias=$build_alias
43759 # A sed program that does not truncate output.
43762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43763 Xsed="\$SED -e 1s/^X//"
43765 # A grep program that handles long lines.
43771 # A literal string matcher.
43774 # A BSD- or MS-compatible name lister.
43777 # Whether we need soft or hard links.
43780 # What is the maximum length of a command?
43781 max_cmd_len=$max_cmd_len
43783 # Object file suffix (normally "o").
43786 # Executable file suffix (normally "").
43789 # whether the shell understands "unset".
43792 # turn spaces into newlines.
43795 # turn newlines into spaces.
43798 # How to create reloadable object files.
43799 reload_flag=$lt_reload_flag
43800 reload_cmds=$lt_reload_cmds
43802 # An object symbol dumper.
43803 OBJDUMP=$lt_OBJDUMP
43805 # Method to check whether dependent libraries are shared objects.
43806 deplibs_check_method=$lt_deplibs_check_method
43808 # Command to use when deplibs_check_method == "file_magic".
43809 file_magic_cmd=$lt_file_magic_cmd
43813 AR_FLAGS=$lt_AR_FLAGS
43815 # A symbol stripping program.
43818 # Commands used to install an old-style archive.
43820 old_postinstall_cmds=$lt_old_postinstall_cmds
43821 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43826 # LTCC compiler flags.
43827 LTCFLAGS=$lt_CFLAGS
43829 # Take the output of nm and produce a listing of raw symbols and C names.
43830 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43832 # Transform the output of nm in a proper C declaration.
43833 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43835 # Transform the output of nm in a C name address pair.
43836 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43838 # Transform the output of nm in a C name address pair when lib prefix is needed.
43839 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43841 # The name of the directory that contains temporary libtool files.
43844 # Shell to use when invoking shell scripts.
43847 # An echo program that does not interpret backslashes.
43850 # Used to examine libraries when file_magic_cmd begins with "file".
43851 MAGIC_CMD=$MAGIC_CMD
43853 # Must we lock files when doing compilation?
43854 need_locks=$lt_need_locks
43856 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43857 DSYMUTIL=$lt_DSYMUTIL
43859 # Tool to change global to local symbols on Mac OS X.
43862 # Tool to manipulate fat objects and archives on Mac OS X.
43865 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43868 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43869 OTOOL64=$lt_OTOOL64
43871 # Old archive suffix (normally "a").
43874 # Shared library suffix (normally ".so").
43875 shrext_cmds=$lt_shrext_cmds
43877 # The commands to extract the exported symbol list from a shared archive.
43878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43880 # Variables whose values should be saved in libtool wrapper scripts and
43881 # restored at link time.
43882 variables_saved_for_relink=$lt_variables_saved_for_relink
43884 # Do we need the "lib" prefix for modules?
43885 need_lib_prefix=$need_lib_prefix
43887 # Do we need a version for libraries?
43888 need_version=$need_version
43890 # Library versioning type.
43891 version_type=$version_type
43893 # Shared library runtime path variable.
43894 runpath_var=$runpath_var
43896 # Shared library path variable.
43897 shlibpath_var=$shlibpath_var
43899 # Is shlibpath searched before the hard-coded library search path?
43900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43902 # Format of library name prefix.
43903 libname_spec=$lt_libname_spec
43905 # List of archive names. First name is the real one, the rest are links.
43906 # The last name is the one that the linker finds with -lNAME
43907 library_names_spec=$lt_library_names_spec
43909 # The coded name of the library, if different from the real name.
43910 soname_spec=$lt_soname_spec
43912 # Command to use after installation of a shared archive.
43913 postinstall_cmds=$lt_postinstall_cmds
43915 # Command to use after uninstallation of a shared archive.
43916 postuninstall_cmds=$lt_postuninstall_cmds
43918 # Commands used to finish a libtool library installation in a directory.
43919 finish_cmds=$lt_finish_cmds
43921 # As "finish_cmds", except a single script fragment to be evaled but
43923 finish_eval=$lt_finish_eval
43925 # Whether we should hardcode library paths into libraries.
43926 hardcode_into_libs=$hardcode_into_libs
43928 # Compile-time system search path for libraries.
43929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43931 # Run-time system search path for libraries.
43932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43934 # Whether dlopen is supported.
43935 dlopen_support=$enable_dlopen
43937 # Whether dlopen of programs is supported.
43938 dlopen_self=$enable_dlopen_self
43940 # Whether dlopen of statically linked programs is supported.
43941 dlopen_self_static=$enable_dlopen_self_static
43943 # Commands to strip libraries.
43944 old_striplib=$lt_old_striplib
43945 striplib=$lt_striplib
43948 # The linker used to build libraries.
43951 # Commands used to build an old-style archive.
43952 old_archive_cmds=$lt_old_archive_cmds
43954 # A language specific compiler.
43957 # Is the compiler the GNU compiler?
43960 # Compiler flag to turn off builtin functions.
43961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43963 # How to pass a linker flag through the compiler.
43964 wl=$lt_lt_prog_compiler_wl
43966 # Additional compiler flags for building library objects.
43967 pic_flag=$lt_lt_prog_compiler_pic
43969 # Compiler flag to prevent dynamic linking.
43970 link_static_flag=$lt_lt_prog_compiler_static
43972 # Does compiler simultaneously support -c and -o options?
43973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43975 # Whether or not to add -lc for building shared libraries.
43976 build_libtool_need_lc=$archive_cmds_need_lc
43978 # Whether or not to disallow shared libs when runtime libs are static.
43979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43981 # Compiler flag to allow reflexive dlopens.
43982 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43984 # Compiler flag to generate shared objects directly from archives.
43985 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43987 # Whether the compiler copes with passing no objects directly.
43988 compiler_needs_object=$lt_compiler_needs_object
43990 # Create an old-style archive from a shared archive.
43991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43993 # Create a temporary old-style archive to link instead of a shared archive.
43994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43996 # Commands used to build a shared archive.
43997 archive_cmds=$lt_archive_cmds
43998 archive_expsym_cmds=$lt_archive_expsym_cmds
44000 # Commands used to build a loadable module if different from building
44001 # a shared archive.
44002 module_cmds=$lt_module_cmds
44003 module_expsym_cmds=$lt_module_expsym_cmds
44005 # Whether we are building with GNU ld or not.
44006 with_gnu_ld=$lt_with_gnu_ld
44008 # Flag that allows shared libraries with undefined symbols to be built.
44009 allow_undefined_flag=$lt_allow_undefined_flag
44011 # Flag that enforces no undefined symbols.
44012 no_undefined_flag=$lt_no_undefined_flag
44014 # Flag to hardcode \$libdir into a binary during linking.
44015 # This must work even if \$libdir does not exist
44016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44018 # If ld is used when linking, flag to hardcode \$libdir into a binary
44019 # during linking. This must work even if \$libdir does not exist.
44020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44022 # Whether we need a single "-rpath" flag with a separated argument.
44023 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44025 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44026 # DIR into the resulting binary.
44027 hardcode_direct=$hardcode_direct
44029 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44030 # DIR into the resulting binary and the resulting library dependency is
44031 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44032 # library is relocated.
44033 hardcode_direct_absolute=$hardcode_direct_absolute
44035 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44036 # into the resulting binary.
44037 hardcode_minus_L=$hardcode_minus_L
44039 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44040 # into the resulting binary.
44041 hardcode_shlibpath_var=$hardcode_shlibpath_var
44043 # Set to "yes" if building a shared library automatically hardcodes DIR
44044 # into the library and all subsequent libraries and executables linked
44046 hardcode_automatic=$hardcode_automatic
44048 # Set to yes if linker adds runtime paths of dependent libraries
44049 # to runtime path list.
44050 inherit_rpath=$inherit_rpath
44052 # Whether libtool must link a program against all its dependency libraries.
44053 link_all_deplibs=$link_all_deplibs
44055 # Fix the shell variable \$srcfile for the compiler.
44056 fix_srcfile_path=$lt_fix_srcfile_path
44058 # Set to "yes" if exported symbols are required.
44059 always_export_symbols=$always_export_symbols
44061 # The commands to list exported symbols.
44062 export_symbols_cmds=$lt_export_symbols_cmds
44064 # Symbols that should not be listed in the preloaded symbols.
44065 exclude_expsyms=$lt_exclude_expsyms
44067 # Symbols that must always be exported.
44068 include_expsyms=$lt_include_expsyms
44070 # Commands necessary for linking programs (against libraries) with templates.
44071 prelink_cmds=$lt_prelink_cmds
44073 # Specify filename containing input files.
44074 file_list_spec=$lt_file_list_spec
44076 # How to hardcode a shared library path into an executable.
44077 hardcode_action=$hardcode_action
44079 # The directories searched by this compiler when creating a shared library.
44080 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44082 # Dependencies to place before and after the objects being linked to
44083 # create a shared library.
44084 predep_objects=$lt_predep_objects
44085 postdep_objects=$lt_postdep_objects
44086 predeps=$lt_predeps
44087 postdeps=$lt_postdeps
44089 # The library search path used internally by the compiler when linking
44090 # a shared library.
44091 compiler_lib_search_path=$lt_compiler_lib_search_path
44093 # ### END LIBTOOL CONFIG
44099 cat <<\_LT_EOF >> "$cfgfile"
44100 # AIX sometimes has problems with the GCC collect2 program. For some
44101 # reason, if we set the COLLECT_NAMES environment variable, the problems
44102 # vanish in a puff of smoke.
44103 if test "X${COLLECT_NAMES+set}" != Xset; then
44105 export COLLECT_NAMES
44112 ltmain="$ac_aux_dir/ltmain.sh"
44115 # We use sed instead of cat because bash on DJGPP gets confused if
44116 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44117 # text mode, it properly converts lines to CR/LF. This bash problem
44118 # is reportedly fixed, but why not run on old versions too?
44119 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44120 || (rm -f "$cfgfile"; exit 1)
44124 cat << \_LT_EOF >> "$cfgfile"
44126 # func_dirname file append nondir_replacement
44127 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44128 # otherwise set result to NONDIR_REPLACEMENT.
44132 */*) func_dirname_result="${1%/*}${2}" ;;
44133 * ) func_dirname_result="${3}" ;;
44137 # func_basename file
44140 func_basename_result="${1##*/}"
44143 # func_dirname_and_basename file append nondir_replacement
44144 # perform func_basename and func_dirname in a single function
44146 # dirname: Compute the dirname of FILE. If nonempty,
44147 # add APPEND to the result, otherwise set result
44148 # to NONDIR_REPLACEMENT.
44149 # value returned in "$func_dirname_result"
44150 # basename: Compute filename of FILE.
44151 # value retuned in "$func_basename_result"
44152 # Implementation must be kept synchronized with func_dirname
44153 # and func_basename. For efficiency, we do not delegate to
44154 # those functions but instead duplicate the functionality here.
44155 func_dirname_and_basename ()
44158 */*) func_dirname_result="${1%/*}${2}" ;;
44159 * ) func_dirname_result="${3}" ;;
44161 func_basename_result="${1##*/}"
44164 # func_stripname prefix suffix name
44165 # strip PREFIX and SUFFIX off of NAME.
44166 # PREFIX and SUFFIX must not contain globbing or regex special
44167 # characters, hashes, percent signs, but SUFFIX may contain a leading
44168 # dot (in which case that matches only a dot).
44171 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44172 # positional parameters, so assign one to ordinary parameter first.
44173 func_stripname_result=${3}
44174 func_stripname_result=${func_stripname_result#"${1}"}
44175 func_stripname_result=${func_stripname_result%"${2}"}
44181 func_opt_split_opt=${1%%=*}
44182 func_opt_split_arg=${1#*=}
44189 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44190 *) func_lo2o_result=${1} ;;
44194 # func_xform libobj-or-source
44197 func_xform_result=${1%.*}.lo
44200 # func_arith arithmetic-term...
44203 func_arith_result=$(( $* ))
44207 # STRING may not start with a hyphen.
44210 func_len_result=${#1}
44215 *) # Bourne compatible functions.
44216 cat << \_LT_EOF >> "$cfgfile"
44218 # func_dirname file append nondir_replacement
44219 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44220 # otherwise set result to NONDIR_REPLACEMENT.
44223 # Extract subdirectory from the argument.
44224 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44225 if test "X$func_dirname_result" = "X${1}"; then
44226 func_dirname_result="${3}"
44228 func_dirname_result="$func_dirname_result${2}"
44232 # func_basename file
44235 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44239 # func_stripname prefix suffix name
44240 # strip PREFIX and SUFFIX off of NAME.
44241 # PREFIX and SUFFIX must not contain globbing or regex special
44242 # characters, hashes, percent signs, but SUFFIX may contain a leading
44243 # dot (in which case that matches only a dot).
44244 # func_strip_suffix prefix name
44248 .*) func_stripname_result=`$ECHO "X${3}" \
44249 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44250 *) func_stripname_result=`$ECHO "X${3}" \
44251 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44256 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44257 my_sed_long_arg='1s/^-[^=]*=//'
44262 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44263 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44269 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44272 # func_xform libobj-or-source
44275 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44278 # func_arith arithmetic-term...
44281 func_arith_result=`expr "$@"`
44285 # STRING may not start with a hyphen.
44288 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44294 case $lt_shell_append in
44296 cat << \_LT_EOF >> "$cfgfile"
44298 # func_append var value
44299 # Append VALUE to the end of shell variable VAR.
44307 cat << \_LT_EOF >> "$cfgfile"
44309 # func_append var value
44310 # Append VALUE to the end of shell variable VAR.
44321 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44322 || (rm -f "$cfgfile"; exit 1)
44324 mv -f "$cfgfile" "$ofile" ||
44325 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44329 cat <<_LT_EOF >> "$ofile"
44331 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44333 # The linker used to build libraries.
44336 # Commands used to build an old-style archive.
44337 old_archive_cmds=$lt_old_archive_cmds_CXX
44339 # A language specific compiler.
44340 CC=$lt_compiler_CXX
44342 # Is the compiler the GNU compiler?
44345 # Compiler flag to turn off builtin functions.
44346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44348 # How to pass a linker flag through the compiler.
44349 wl=$lt_lt_prog_compiler_wl_CXX
44351 # Additional compiler flags for building library objects.
44352 pic_flag=$lt_lt_prog_compiler_pic_CXX
44354 # Compiler flag to prevent dynamic linking.
44355 link_static_flag=$lt_lt_prog_compiler_static_CXX
44357 # Does compiler simultaneously support -c and -o options?
44358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44360 # Whether or not to add -lc for building shared libraries.
44361 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44363 # Whether or not to disallow shared libs when runtime libs are static.
44364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44366 # Compiler flag to allow reflexive dlopens.
44367 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44369 # Compiler flag to generate shared objects directly from archives.
44370 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44372 # Whether the compiler copes with passing no objects directly.
44373 compiler_needs_object=$lt_compiler_needs_object_CXX
44375 # Create an old-style archive from a shared archive.
44376 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44378 # Create a temporary old-style archive to link instead of a shared archive.
44379 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44381 # Commands used to build a shared archive.
44382 archive_cmds=$lt_archive_cmds_CXX
44383 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44385 # Commands used to build a loadable module if different from building
44386 # a shared archive.
44387 module_cmds=$lt_module_cmds_CXX
44388 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44390 # Whether we are building with GNU ld or not.
44391 with_gnu_ld=$lt_with_gnu_ld_CXX
44393 # Flag that allows shared libraries with undefined symbols to be built.
44394 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44396 # Flag that enforces no undefined symbols.
44397 no_undefined_flag=$lt_no_undefined_flag_CXX
44399 # Flag to hardcode \$libdir into a binary during linking.
44400 # This must work even if \$libdir does not exist
44401 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44403 # If ld is used when linking, flag to hardcode \$libdir into a binary
44404 # during linking. This must work even if \$libdir does not exist.
44405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44407 # Whether we need a single "-rpath" flag with a separated argument.
44408 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44410 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44411 # DIR into the resulting binary.
44412 hardcode_direct=$hardcode_direct_CXX
44414 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44415 # DIR into the resulting binary and the resulting library dependency is
44416 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44417 # library is relocated.
44418 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44420 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44421 # into the resulting binary.
44422 hardcode_minus_L=$hardcode_minus_L_CXX
44424 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44425 # into the resulting binary.
44426 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44428 # Set to "yes" if building a shared library automatically hardcodes DIR
44429 # into the library and all subsequent libraries and executables linked
44431 hardcode_automatic=$hardcode_automatic_CXX
44433 # Set to yes if linker adds runtime paths of dependent libraries
44434 # to runtime path list.
44435 inherit_rpath=$inherit_rpath_CXX
44437 # Whether libtool must link a program against all its dependency libraries.
44438 link_all_deplibs=$link_all_deplibs_CXX
44440 # Fix the shell variable \$srcfile for the compiler.
44441 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44443 # Set to "yes" if exported symbols are required.
44444 always_export_symbols=$always_export_symbols_CXX
44446 # The commands to list exported symbols.
44447 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44449 # Symbols that should not be listed in the preloaded symbols.
44450 exclude_expsyms=$lt_exclude_expsyms_CXX
44452 # Symbols that must always be exported.
44453 include_expsyms=$lt_include_expsyms_CXX
44455 # Commands necessary for linking programs (against libraries) with templates.
44456 prelink_cmds=$lt_prelink_cmds_CXX
44458 # Specify filename containing input files.
44459 file_list_spec=$lt_file_list_spec_CXX
44461 # How to hardcode a shared library path into an executable.
44462 hardcode_action=$hardcode_action_CXX
44464 # The directories searched by this compiler when creating a shared library.
44465 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44467 # Dependencies to place before and after the objects being linked to
44468 # create a shared library.
44469 predep_objects=$lt_predep_objects_CXX
44470 postdep_objects=$lt_postdep_objects_CXX
44471 predeps=$lt_predeps_CXX
44472 postdeps=$lt_postdeps_CXX
44474 # The library search path used internally by the compiler when linking
44475 # a shared library.
44476 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44478 # ### END LIBTOOL TAG CONFIG: CXX
44483 for ac_file in $CONFIG_FILES; do
44484 # Support "outfile[:infile[:infile...]]"
44486 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44488 # PO directories have a Makefile.in generated from Makefile.in.in.
44489 case "$ac_file" in */Makefile.in)
44490 # Adjust a relative srcdir.
44491 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44492 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44493 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44494 # In autoconf-2.13 it is called $ac_given_srcdir.
44495 # In autoconf-2.50 it is called $srcdir.
44496 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44497 case "$ac_given_srcdir" in
44498 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44499 /*) top_srcdir="$ac_given_srcdir" ;;
44500 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
44502 # Treat a directory as a PO directory if and only if it has a
44503 # POTFILES.in file. This allows packages to have multiple PO
44504 # directories under different names or in different locations.
44505 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44506 rm -f "$ac_dir/POTFILES"
44507 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44508 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44509 POMAKEFILEDEPS="POTFILES.in"
44510 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44511 # on $ac_dir but don't depend on user-specified configuration
44513 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44514 # The LINGUAS file contains the set of available languages.
44515 if test -n "$OBSOLETE_ALL_LINGUAS"; then
44516 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44518 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44519 # Hide the ALL_LINGUAS assigment from automake.
44520 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44521 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44523 # The set of available languages was given in configure.in.
44524 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44527 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44528 # Compute UPDATEPOFILES
44529 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44530 # Compute DUMMYPOFILES
44531 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44533 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44534 case "$ac_given_srcdir" in
44536 *) srcdirpre='$(srcdir)/' ;;
44542 for lang in $ALL_LINGUAS; do
44543 POFILES="$POFILES $srcdirpre$lang.po"
44544 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44545 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44546 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44548 # CATALOGS depends on both $ac_dir and the user's LINGUAS
44549 # environment variable.
44551 if test -n "$ALL_LINGUAS"; then
44552 for presentlang in $ALL_LINGUAS; do
44554 if test "%UNSET%" != "$LINGUAS"; then
44555 desiredlanguages="$LINGUAS"
44557 desiredlanguages="$ALL_LINGUAS"
44559 for desiredlang in $desiredlanguages; do
44560 # Use the presentlang catalog if desiredlang is
44561 # a. equal to presentlang, or
44562 # b. a variant of presentlang (because in this case,
44563 # presentlang can be used as a fallback for messages
44564 # which are not translated in the desiredlang catalog).
44565 case "$desiredlang" in
44566 "$presentlang"*) useit=yes;;
44569 if test $useit = yes; then
44570 INST_LINGUAS="$INST_LINGUAS $presentlang"
44575 if test -n "$INST_LINGUAS"; then
44576 for lang in $INST_LINGUAS; do
44577 CATALOGS="$CATALOGS $lang.gmo"
44580 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44581 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"
44582 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44583 if test -f "$f"; then
44585 *.orig | *.bak | *~) ;;
44586 *) cat "$f" >> "$ac_dir/Makefile" ;;
44601 { (exit 0); exit 0; }
44603 chmod +x $CONFIG_STATUS
44604 ac_clean_files=$ac_clean_files_save
44607 # configure is writing to config.log, and then calls config.status.
44608 # config.status does its own redirection, appending to config.log.
44609 # Unfortunately, on DOS this fails, as config.log is still kept open
44610 # by configure, so config.status won't be able to write to it; its
44611 # output is simply discarded. So we exec the FD to /dev/null,
44612 # effectively closing config.log, so it can be properly (re)opened and
44613 # appended to by config.status. When coming back to configure, we
44614 # need to make the FD available again.
44615 if test "$no_create" != yes; then
44617 ac_config_status_args=
44618 test "$silent" = yes &&
44619 ac_config_status_args="$ac_config_status_args --quiet"
44621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44624 # would make configure fail if this is the last instruction.
44625 $ac_cs_success || { (exit 1); exit 1; }
44629 if test "${support_bat}" = "yes" ; then
44630 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44631 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44637 if test "x$QMAKEQT4" != "xnone"; then
44642 chmod 755 install_conf_file build-depkgs-qt-console
44643 echo "Creating bat Makefile"
44649 if test X"$GCC" = "Xyes" ; then
44650 echo "Doing make of dependencies"
44651 ${MAKE:-make} depend
44655 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44656 chmod 755 dvd-handler dvd-simulator
44657 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44661 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44662 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44666 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44667 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44669 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44670 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44672 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44673 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44675 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44676 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44678 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44679 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44681 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44682 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44684 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44685 chmod 755 $c/sqlite
44688 chmod 755 src/win32/build-depkgs-mingw32
44690 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44691 largefile_support="yes"
44694 if test X"$GCC" = "Xyes" ; then
44695 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44696 if test "x${CCVERSION}" = "x" ; then
44697 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44699 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44700 if test x"${CXXVERSION}" = x ; then
44701 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44705 # clean up any old junk
44711 if test "x${db_type}" = "xInternal" ; then
44714 echo "You have not specified either --enable-client-only or one of the"
44715 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44716 echo " This is not permitted. Please reconfigure."
44718 echo "Aborting the configuration ..."
44725 Configuration on `date`:
44727 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44728 Bacula version: ${BACULA} ${VERSION} (${DATE})
44729 Source code location: ${srcdir}
44730 Install binaries: ${sbindir}
44731 Install libraries: ${libdir}
44732 Install config files: ${sysconfdir}
44733 Scripts directory: ${scriptdir}
44734 Archive directory: ${archivedir}
44735 Working directory: ${working_dir}
44736 PID directory: ${piddir}
44737 Subsys directory: ${subsysdir}
44738 Man directory: ${mandir}
44739 Data directory: ${datarootdir}
44740 Plugin directory: ${plugindir}
44741 C Compiler: ${CC} ${CCVERSION}
44742 C++ Compiler: ${CXX} ${CXXVERSION}
44743 Compiler flags: ${WCFLAGS} ${CFLAGS}
44744 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44746 Statically Linked Tools: ${support_static_tools}
44747 Statically Linked FD: ${support_static_fd}
44748 Statically Linked SD: ${support_static_sd}
44749 Statically Linked DIR: ${support_static_dir}
44750 Statically Linked CONS: ${support_static_cons}
44751 Database type: ${db_type}
44752 Database port: ${db_port}
44753 Database lib: ${DB_LIBS}
44754 Database name: ${db_name}
44755 Database user: ${db_user}
44757 Job Output Email: ${job_email}
44758 Traceback Email: ${dump_email}
44759 SMTP Host Address: ${smtp_host}
44761 Director Port: ${dir_port}
44762 File daemon Port: ${fd_port}
44763 Storage daemon Port: ${sd_port}
44765 Director User: ${dir_user}
44766 Director Group: ${dir_group}
44767 Storage Daemon User: ${sd_user}
44768 Storage DaemonGroup: ${sd_group}
44769 File Daemon User: ${fd_user}
44770 File Daemon Group: ${fd_group}
44772 SQL binaries Directory ${SQL_BINDIR}
44774 Large file support: $largefile_support
44775 Bacula conio support: ${got_conio} ${CONS_LIBS}
44776 readline support: ${got_readline} ${PRTREADLINE_SRC}
44777 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44778 TLS support: ${support_tls}
44779 Encryption support: ${support_crypto}
44780 ZLIB support: ${have_zlib}
44781 enable-smartalloc: ${support_smartalloc}
44782 bat support: ${support_bat} ${QWT_LDFLAGS}
44783 enable-gnome: ${support_gnome} ${gnome_version}
44784 enable-bwx-console: ${support_wx_console} ${wx_version}
44785 enable-tray-monitor: ${support_tray_monitor}
44786 client-only: ${build_client_only}
44787 build-dird: ${build_dird}
44788 build-stored: ${build_stored}
44789 ACL support: ${have_acl}
44790 XATTR support: ${have_xattr}
44791 Python support: ${support_python} ${PYTHON_LIBS}
44792 Batch insert enabled: ${support_batch_insert}