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=yes]
1645 --disable-nls do not use Native Language Support
1646 --disable-rpath do not hardcode runtime library paths
1647 --enable-gnome enable build of bgnome-console GUI [default=no]
1648 --enable-bat enable build of bat Qt4 GUI [default=no]
1649 --enable-bwx-console enable build of wxWidgets console [default=no]
1650 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1652 --enable-smartalloc enable smartalloc debugging support [default=no]
1653 --enable-static-tools enable static tape tools [default=no]
1654 --enable-static-fd enable static File daemon [default=no]
1655 --enable-static-sd enable static Storage daemon [default=no]
1656 --enable-static-dir enable static Director [default=no]
1657 --enable-static-cons enable static Console [default=no]
1658 --enable-client-only build client (File daemon) only [default=no]
1659 --enable-build-dird enable building of dird (Director) [default=yes]
1660 --enable-build-stored enable building of stored (Storage daemon)
1662 --disable-conio disable conio support [default=no]
1663 --enable-ipv6 enable ipv6 support [default=yes]
1664 --disable-readline disable readline support [default=yes]
1665 --enable-batch-insert enable the DB batch insert code [default=no]
1666 --disable-largefile omit support for large files
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1678 --without-libintl-prefix don't search for libintl in includedir and libdir
1679 --with-included-gettext use the GNU gettext library included here
1680 --with-qwt[=DIR] specify qwt library directory
1681 --with-readline[=DIR] specify readline library directory
1682 --with-python[=DIR] Include Python support. DIR is the Python base
1683 install directory, default is to search through a
1684 number of common places for the Python files.
1685 --with-tcp-wrappers[=DIR]
1686 enable tcpwrappers support
1687 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1688 --with-working-dir=PATH specify path of Bacula working directory
1689 --with-archivedir=PATH specify path of SD archive directory
1690 --with-scriptdir=PATH specify path of Bacula scripts directory
1691 --with-plugindir=PATH specify path of Bacula plugins directory
1692 --with-dump-email=EMAIL dump email address
1693 --with-job-email=EMAIL job output email address
1694 --with-smtp-host=HOST SMTP mail host address
1695 --with-pid-dir=PATH specify location of Bacula pid files
1696 --with-subsys-dir=PATH specify location of Bacula subsys file
1697 --with-baseport=PORT specify base port address for daemons
1698 --with-dir-password=PASSWORD
1699 specify Director's password
1700 --with-fd-password=PASSWORD
1701 specify Client's password
1702 --with-sd-password=PASSWORD
1703 specify Storage daemon's password
1704 --with-mon-dir-password=PASSWORD
1705 specify Director's password used by the monitor
1706 --with-mon-fd-password=PASSWORD
1707 specify Client's password used by the monitor
1708 --with-mon-sd-password=PASSWORD
1709 specify Storage daemon's password used by the
1711 --with-db-name=DBNAME specify database name [default=bacula]
1712 --with-db-user=UNAME specify database user [default=bacula]
1713 --with-db-password=PWD specify database password [default=*none*]
1714 --with-db-port=DBPORT specify a database port [default=null]
1715 --with-dir-user=USER specify user for Director daemon
1716 --with-dir-group=GROUP specify group for Director daemon
1717 --with-sd-user=USER specify user for Storage daemon
1718 --with-sd-group=GROUP specify group for Storage daemon
1719 --with-fd-user=USER specify user for File daemon
1720 --with-fd-group=GROUP specify group for File daemon
1721 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1722 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1723 base install directory, defaults to /usr/local/pgsql
1725 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1726 install directory, default is to search through
1727 a number of common places for the MySQL files.
1729 --with-embedded-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1730 install directory, default is to search through
1731 a number of 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
1735 a number of common places for the SQLite3 files.
1737 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1738 install directory, default is to search through
1739 a number of common places for the SQLite files.
1741 --with-dbi[=DIR] Include DBI support. DIR is the DBD base
1742 install directory, default is to search through
1743 a number of common places for the DBI files.
1745 --with-dbi-driver[=DRIVER] Suport for DBI driver. DRIVER is
1746 the one DBI driver like Mysql, Postgresql, others.
1747 Default is to not configure any driver.
1748 --with-x use the X Window System
1750 Some influential environment variables:
1751 CC C compiler command
1752 CFLAGS C compiler flags
1753 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1754 nonstandard directory <lib dir>
1755 LIBS libraries to pass to the linker, e.g. -l<library>
1756 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1757 you have headers in a nonstandard directory <include dir>
1758 CXX C++ compiler command
1759 CXXFLAGS C++ compiler flags
1761 WXCONFIG wx-config command. On some systems, you must set it to
1762 wx-config-2.6 to use wxWidgets 2.6.
1763 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1764 CXXCPP C++ preprocessor
1765 XMKMF Path to xmkmf, Makefile generator for X Window System
1767 Use these variables to override the choices made by `configure' or to help
1768 it to find libraries and programs with nonstandard names/locations.
1774 if test "$ac_init_help" = "recursive"; then
1775 # If there are subdirs, report their specific --help.
1776 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1777 test -d "$ac_dir" || continue
1781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1784 # A ".." for each directory in $ac_dir_suffix.
1785 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1786 case $ac_top_builddir_sub in
1787 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1791 ac_abs_top_builddir=$ac_pwd
1792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1793 # for backward compatibility:
1794 ac_top_builddir=$ac_top_build_prefix
1797 .) # We are building in place.
1799 ac_top_srcdir=$ac_top_builddir_sub
1800 ac_abs_top_srcdir=$ac_pwd ;;
1801 [\\/]* | ?:[\\/]* ) # Absolute name.
1802 ac_srcdir=$srcdir$ac_dir_suffix;
1803 ac_top_srcdir=$srcdir
1804 ac_abs_top_srcdir=$srcdir ;;
1806 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1807 ac_top_srcdir=$ac_top_build_prefix$srcdir
1808 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812 cd "$ac_dir" || { ac_status=$?; continue; }
1813 # Check for guested configure.
1814 if test -f "$ac_srcdir/configure.gnu"; then
1816 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1817 elif test -f "$ac_srcdir/configure"; then
1819 $SHELL "$ac_srcdir/configure" --help=recursive
1821 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823 cd "$ac_pwd" || { ac_status=$?; break; }
1827 test -n "$ac_init_help" && exit $ac_status
1828 if $ac_init_version; then
1831 generated by GNU Autoconf 2.61
1833 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1834 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1840 cat >config.log <<_ACEOF
1841 This file contains any messages produced by compilers while
1842 running configure, to aid debugging if configure makes a mistake.
1844 It was created by $as_me, which was
1845 generated by GNU Autoconf 2.61. Invocation command line was
1857 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1858 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1859 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1860 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1861 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1863 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1864 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1866 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1867 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1868 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1869 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1870 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1871 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1872 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 test -z "$as_dir" && as_dir=.
1881 echo "PATH: $as_dir"
1897 # Keep a trace of the command line.
1898 # Strip out --no-create and --no-recursion so they do not pile up.
1899 # Strip out --silent because we don't want to record it for future runs.
1900 # Also quote any args containing shell meta-characters.
1901 # Make two passes to allow for proper duplicate-argument suppression.
1905 ac_must_keep_next=false
1911 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1913 | -silent | --silent | --silen | --sile | --sil)
1916 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1921 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1922 if test $ac_must_keep_next = true; then
1923 ac_must_keep_next=false # Got value, back to normal.
1926 *=* | --config-cache | -C | -disable-* | --disable-* \
1927 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1928 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1929 | -with-* | --with-* | -without-* | --without-* | --x)
1930 case "$ac_configure_args0 " in
1931 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1934 -* ) ac_must_keep_next=true ;;
1937 ac_configure_args="$ac_configure_args '$ac_arg'"
1942 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1943 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1945 # When interrupted or exit'd, cleanup temporary files, and complete
1946 # config.log. We remove comments because anyway the quotes in there
1947 # would cause problems or look ugly.
1948 # WARNING: Use '\'' to represent an apostrophe within the trap.
1949 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1950 trap 'exit_status=$?
1951 # Save into config.log some information that might help in debugging.
1956 ## ---------------- ##
1957 ## Cache variables. ##
1958 ## ---------------- ##
1961 # The following way of writing the cache mishandles newlines in values,
1963 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1964 eval ac_val=\$$ac_var
1968 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1969 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1972 _ | IFS | as_nl) ;; #(
1973 *) $as_unset $ac_var ;;
1978 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979 *${as_nl}ac_space=\ *)
1981 "s/'\''/'\''\\\\'\'''\''/g;
1982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1993 ## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##
1998 for ac_var in $ac_subst_vars
2000 eval ac_val=\$$ac_var
2002 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 echo "$ac_var='\''$ac_val'\''"
2008 if test -n "$ac_subst_files"; then
2010 ## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##
2015 for ac_var in $ac_subst_files
2017 eval ac_val=\$$ac_var
2019 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 echo "$ac_var='\''$ac_val'\''"
2026 if test -s confdefs.h; then
2036 test "$ac_signal" != 0 &&
2037 echo "$as_me: caught signal $ac_signal"
2038 echo "$as_me: exit $exit_status"
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2044 for ac_signal in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest* confdefs.h
2052 # Predefined preprocessor variables.
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_STRING "$PACKAGE_STRING"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer explicitly selected file to automatically selected ones.
2081 if test -n "$CONFIG_SITE"; then
2082 set x "$CONFIG_SITE"
2083 elif test "x$prefix" != xNONE; then
2084 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2086 set x "$ac_default_prefix/share/config.site" \
2087 "$ac_default_prefix/etc/config.site"
2092 if test -r "$ac_site_file"; then
2093 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2094 echo "$as_me: loading site script $ac_site_file" >&6;}
2095 sed 's/^/| /' "$ac_site_file" >&5
2100 if test -r "$cache_file"; then
2101 # Some versions of bash will fail to source /dev/null (special
2102 # files actually), so we avoid doing that.
2103 if test -f "$cache_file"; then
2104 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2105 echo "$as_me: loading cache $cache_file" >&6;}
2107 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2108 *) . "./$cache_file";;
2112 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2113 echo "$as_me: creating cache $cache_file" >&6;}
2117 # Check that the precious variables saved in the cache have kept the same
2119 ac_cache_corrupted=false
2120 for ac_var in $ac_precious_vars; do
2121 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2122 eval ac_new_set=\$ac_env_${ac_var}_set
2123 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2124 eval ac_new_val=\$ac_env_${ac_var}_value
2125 case $ac_old_set,$ac_new_set in
2127 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2131 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2132 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2133 ac_cache_corrupted=: ;;
2136 if test "x$ac_old_val" != "x$ac_new_val"; then
2137 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2138 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2139 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2140 echo "$as_me: former value: $ac_old_val" >&2;}
2141 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2142 echo "$as_me: current value: $ac_new_val" >&2;}
2143 ac_cache_corrupted=:
2146 # Pass precious variables to config.status.
2147 if test "$ac_new_set" = set; then
2149 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 *) ac_arg=$ac_var=$ac_new_val ;;
2152 case " $ac_configure_args " in
2153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2154 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2158 if $ac_cache_corrupted; then
2159 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2160 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2162 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2163 { (exit 1); exit 1; }; }
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2197 if test -f "$ac_dir/install-sh"; then
2199 ac_install_sh="$ac_aux_dir/install-sh -c"
2201 elif test -f "$ac_dir/install.sh"; then
2203 ac_install_sh="$ac_aux_dir/install.sh -c"
2205 elif test -f "$ac_dir/shtool"; then
2207 ac_install_sh="$ac_aux_dir/shtool install -c"
2211 if test -z "$ac_aux_dir"; then
2212 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2213 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2214 { (exit 1); exit 1; }; }
2217 # These three variables are undocumented and unsupported,
2218 # and are intended to be withdrawn in a future Autoconf release.
2219 # They can cause serious problems if a builder's source tree is in a directory
2220 # whose full name contains unusual characters.
2221 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2222 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2223 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2226 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2233 # Extract the first word of "$ac_prog", so it can be a program name with args.
2234 set dummy $ac_prog; ac_word=$2
2235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 TRUEPRG=$ac_cv_path_TRUEPRG
2264 if test -n "$TRUEPRG"; then
2265 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2266 echo "${ECHO_T}$TRUEPRG" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2273 test -n "$TRUEPRG" && break
2275 test -n "$TRUEPRG" || TRUEPRG=":"
2277 for ac_prog in false
2279 # Extract the first word of "$ac_prog", so it can be a program name with args.
2280 set dummy $ac_prog; ac_word=$2
2281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 FALSEPRG=$ac_cv_path_FALSEPRG
2310 if test -n "$FALSEPRG"; then
2311 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2312 echo "${ECHO_T}$FALSEPRG" >&6; }
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2319 test -n "$FALSEPRG" && break
2321 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 = xno; then
15909 install_includes=no
15917 if test x$use_libtool != xno -a x$install_includes != no; 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
18277 sysconfdir=/usr/lib
18280 if test `eval echo ${includedir}` = NONE/include ; then
18281 sysconfdir=/usr/include
18286 sysconfdir=`eval echo ${sysconfdir}`
18287 datarootdir=`eval echo ${datarootdir}`
18288 localedir=`eval echo ${datarootdir}/locale`
18289 cat >>confdefs.h <<_ACEOF
18290 #define SYSCONFDIR "$sysconfdir"
18293 cat >>confdefs.h <<_ACEOF
18294 #define LOCALEDIR "$localedir"
18298 if test x${exec_prefix} = xNONE ; then
18299 exec_prefix=${prefix}
18302 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18303 sbindir=${exec_prefix}/sbin
18305 sbindir=`eval echo ${sbindir}`
18307 if test x$mandir = x'${prefix}/man' ; then
18308 mandir=/usr/share/man
18311 for ac_prog in msgfmt
18313 # Extract the first word of "$ac_prog", so it can be a program name with args.
18314 set dummy $ac_prog; ac_word=$2
18315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18317 if test "${ac_cv_path_MSGFMT+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18326 for as_dir in $PATH
18329 test -z "$as_dir" && as_dir=.
18330 for ac_exec_ext in '' $ac_executable_extensions; do
18331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18332 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18343 MSGFMT=$ac_cv_path_MSGFMT
18344 if test -n "$MSGFMT"; then
18345 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18346 echo "${ECHO_T}$MSGFMT" >&6; }
18348 { echo "$as_me:$LINENO: result: no" >&5
18349 echo "${ECHO_T}no" >&6; }
18353 test -n "$MSGFMT" && break
18355 test -n "$MSGFMT" || MSGFMT="no"
18357 if test "$MSGFMT" = "no"
18359 echo 'msgfmt program not found, disabling NLS !'
18361 USE_INCLUDED_LIBINTL=no
18364 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18365 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18366 if test "${ac_cv_gnu_library_2+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 cat >conftest.$ac_ext <<_ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18376 #include <features.h>
18377 #ifdef __GNU_LIBRARY__
18378 #if (__GLIBC__ >= 2)
18384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18385 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18386 ac_cv_gnu_library_2=yes
18388 ac_cv_gnu_library_2=no
18395 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18396 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18398 GLIBC2="$ac_cv_gnu_library_2"
18401 if test -n "$ac_tool_prefix"; then
18402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18406 if test "${ac_cv_prog_RANLIB+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 if test -n "$RANLIB"; then
18410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18413 for as_dir in $PATH
18416 test -z "$as_dir" && as_dir=.
18417 for ac_exec_ext in '' $ac_executable_extensions; do
18418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18429 RANLIB=$ac_cv_prog_RANLIB
18430 if test -n "$RANLIB"; then
18431 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18432 echo "${ECHO_T}$RANLIB" >&6; }
18434 { echo "$as_me:$LINENO: result: no" >&5
18435 echo "${ECHO_T}no" >&6; }
18440 if test -z "$ac_cv_prog_RANLIB"; then
18441 ac_ct_RANLIB=$RANLIB
18442 # Extract the first word of "ranlib", so it can be a program name with args.
18443 set dummy ranlib; ac_word=$2
18444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 if test -n "$ac_ct_RANLIB"; then
18450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18453 for as_dir in $PATH
18456 test -z "$as_dir" && as_dir=.
18457 for ac_exec_ext in '' $ac_executable_extensions; do
18458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18459 ac_cv_prog_ac_ct_RANLIB="ranlib"
18460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18470 if test -n "$ac_ct_RANLIB"; then
18471 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18472 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18474 { echo "$as_me:$LINENO: result: no" >&5
18475 echo "${ECHO_T}no" >&6; }
18478 if test "x$ac_ct_RANLIB" = x; then
18481 case $cross_compiling:$ac_tool_warned in
18483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18484 whose name does not start with the host triplet. If you think this
18485 configuration is useful to you, please write to autoconf@gnu.org." >&5
18486 echo "$as_me: 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." >&2;}
18489 ac_tool_warned=yes ;;
18491 RANLIB=$ac_ct_RANLIB
18494 RANLIB="$ac_cv_prog_RANLIB"
18498 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18499 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18500 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 ac_check_lib_save_LIBS=$LIBS
18504 LIBS="-lcposix $LIBS"
18505 cat >conftest.$ac_ext <<_ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18512 /* Override any GCC internal prototype to avoid an error.
18513 Use char because int might match the return type of a GCC
18514 builtin and then its argument prototype would still apply. */
18522 return strerror ();
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (ac_try="$ac_link"
18529 case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_link") 2>conftest.er1
18536 grep -v '^ *+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } && {
18541 test -z "$ac_c_werror_flag" ||
18542 test ! -s conftest.err
18543 } && test -s conftest$ac_exeext &&
18544 $as_test_x conftest$ac_exeext; then
18545 ac_cv_lib_cposix_strerror=yes
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_cv_lib_cposix_strerror=no
18553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18554 conftest$ac_exeext conftest.$ac_ext
18555 LIBS=$ac_check_lib_save_LIBS
18557 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18558 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18559 if test $ac_cv_lib_cposix_strerror = yes; then
18560 LIBS="$LIBS -lcposix"
18565 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18566 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18567 if test "${ac_cv_c_const+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18580 /* FIXME: Include the comments suggested by Paul. */
18581 #ifndef __cplusplus
18582 /* Ultrix mips cc rejects this. */
18583 typedef int charset[2];
18585 /* SunOS 4.1.1 cc rejects this. */
18586 char const *const *pcpcc;
18588 /* NEC SVR4.0.2 mips cc rejects this. */
18589 struct point {int x, y;};
18590 static struct point const zero = {0,0};
18591 /* AIX XL C 1.02.0.0 rejects this.
18592 It does not let you subtract one const X* pointer from another in
18593 an arm of an if-expression whose if-part is not a constant
18595 const char *g = "string";
18596 pcpcc = &g + (g ? g-g : 0);
18597 /* HPUX 7.0 cc rejects these. */
18599 ppc = (char**) pcpcc;
18600 pcpcc = (char const *const *) ppc;
18601 { /* SCO 3.2v4 cc rejects this. */
18603 char const *s = 0 ? (char *) 0 : (char const *) 0;
18608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18609 int x[] = {25, 17};
18610 const int *foo = &x[0];
18613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18614 typedef const int *iptr;
18618 { /* AIX XL C 1.02.0.0 rejects this saying
18619 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18620 struct s { int j; const int *ap[3]; };
18621 struct s *b; b->j = 5;
18623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18624 const int foo = 10;
18625 if (!foo) return 0;
18627 return !cs[0] && !zero.x;
18634 rm -f conftest.$ac_objext
18635 if { (ac_try="$ac_compile"
18636 case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_compile") 2>conftest.er1
18643 grep -v '^ *+' conftest.er1 >conftest.err
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } && {
18648 test -z "$ac_c_werror_flag" ||
18649 test ! -s conftest.err
18650 } && test -s conftest.$ac_objext; then
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18662 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18663 if test $ac_cv_c_const = no; then
18665 cat >>confdefs.h <<\_ACEOF
18672 { echo "$as_me:$LINENO: checking for signed" >&5
18673 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18674 if test "${bh_cv_c_signed+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18692 rm -f conftest.$ac_objext
18693 if { (ac_try="$ac_compile"
18694 case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_compile") 2>conftest.er1
18701 grep -v '^ *+' conftest.er1 >conftest.err
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } && {
18706 test -z "$ac_c_werror_flag" ||
18707 test ! -s conftest.err
18708 } && test -s conftest.$ac_objext; then
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18719 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18720 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18721 if test $bh_cv_c_signed = no; then
18723 cat >>confdefs.h <<\_ACEOF
18729 { echo "$as_me:$LINENO: checking for inline" >&5
18730 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18731 if test "${ac_cv_c_inline+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 for ac_kw in inline __inline__ __inline; do
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 #ifndef __cplusplus
18744 static $ac_kw foo_t static_foo () {return 0; }
18745 $ac_kw foo_t foo () {return 0; }
18749 rm -f conftest.$ac_objext
18750 if { (ac_try="$ac_compile"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_compile") 2>conftest.er1
18758 grep -v '^ *+' conftest.er1 >conftest.err
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } && {
18763 test -z "$ac_c_werror_flag" ||
18764 test ! -s conftest.err
18765 } && test -s conftest.$ac_objext; then
18766 ac_cv_c_inline=$ac_kw
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775 test "$ac_cv_c_inline" != no && break
18779 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18780 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18783 case $ac_cv_c_inline in
18786 case $ac_cv_c_inline in
18788 *) ac_val=$ac_cv_c_inline;;
18790 cat >>confdefs.h <<_ACEOF
18791 #ifndef __cplusplus
18792 #define inline $ac_val
18798 { echo "$as_me:$LINENO: checking for off_t" >&5
18799 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18800 if test "${ac_cv_type_off_t+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 $ac_includes_default
18810 typedef off_t ac__type_new_;
18814 if ((ac__type_new_ *) 0)
18816 if (sizeof (ac__type_new_))
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_compile") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest.$ac_objext; then
18839 ac_cv_type_off_t=yes
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 ac_cv_type_off_t=no
18847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18850 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18851 if test $ac_cv_type_off_t = yes; then
18855 cat >>confdefs.h <<_ACEOF
18856 #define off_t long int
18861 { echo "$as_me:$LINENO: checking for size_t" >&5
18862 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18863 if test "${ac_cv_type_size_t+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 cat >conftest.$ac_ext <<_ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18872 $ac_includes_default
18873 typedef size_t ac__type_new_;
18877 if ((ac__type_new_ *) 0)
18879 if (sizeof (ac__type_new_))
18885 rm -f conftest.$ac_objext
18886 if { (ac_try="$ac_compile"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_compile") 2>conftest.er1
18894 grep -v '^ *+' conftest.er1 >conftest.err
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } && {
18899 test -z "$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18901 } && test -s conftest.$ac_objext; then
18902 ac_cv_type_size_t=yes
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 ac_cv_type_size_t=no
18910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18913 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18914 if test $ac_cv_type_size_t = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define size_t unsigned int
18925 { echo "$as_me:$LINENO: checking for long long" >&5
18926 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18927 if test "${ac_cv_type_long_long+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 long long ll = 1LL; int i = 63;
18940 long long llmax = (long long) -1;
18941 return ll << i | ll >> i | llmax / ll | llmax % ll;
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (ac_try="$ac_link"
18948 case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_link") 2>conftest.er1
18955 grep -v '^ *+' conftest.er1 >conftest.err
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } && {
18960 test -z "$ac_c_werror_flag" ||
18961 test ! -s conftest.err
18962 } && test -s conftest$ac_exeext &&
18963 $as_test_x conftest$ac_exeext; then
18964 ac_cv_type_long_long=yes
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 ac_cv_type_long_long=no
18972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18973 conftest$ac_exeext conftest.$ac_ext
18975 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18976 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18977 if test $ac_cv_type_long_long = yes; then
18979 cat >>confdefs.h <<\_ACEOF
18980 #define HAVE_LONG_LONG 1
18986 { echo "$as_me:$LINENO: checking for long double" >&5
18987 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18988 if test "${gt_cv_c_long_double+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 if test "$GCC" = yes; then
18992 gt_cv_c_long_double=yes
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19001 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19002 long double foo = 0.0;
19003 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19004 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19014 rm -f conftest.$ac_objext
19015 if { (ac_try="$ac_compile"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_compile") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest.$ac_objext; then
19031 gt_cv_c_long_double=yes
19033 echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19036 gt_cv_c_long_double=no
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19042 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19043 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19044 if test $gt_cv_c_long_double = yes; then
19046 cat >>confdefs.h <<\_ACEOF
19047 #define HAVE_LONG_DOUBLE 1
19053 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19054 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19055 if test "${gt_cv_c_wchar_t+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 cat >conftest.$ac_ext <<_ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #include <stddef.h>
19065 wchar_t foo = (wchar_t)'\0';
19074 rm -f conftest.$ac_objext
19075 if { (ac_try="$ac_compile"
19076 case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_compile") 2>conftest.er1
19083 grep -v '^ *+' conftest.er1 >conftest.err
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } && {
19088 test -z "$ac_c_werror_flag" ||
19089 test ! -s conftest.err
19090 } && test -s conftest.$ac_objext; then
19091 gt_cv_c_wchar_t=yes
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19101 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19102 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19103 if test $gt_cv_c_wchar_t = yes; then
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_WCHAR_T 1
19112 { echo "$as_me:$LINENO: checking for wint_t" >&5
19113 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19114 if test "${gt_cv_c_wint_t+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19124 wint_t foo = (wchar_t)'\0';
19133 rm -f conftest.$ac_objext
19134 if { (ac_try="$ac_compile"
19135 case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_compile") 2>conftest.er1
19142 grep -v '^ *+' conftest.er1 >conftest.err
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } && {
19147 test -z "$ac_c_werror_flag" ||
19148 test ! -s conftest.err
19149 } && test -s conftest.$ac_objext; then
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19161 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19162 if test $gt_cv_c_wint_t = yes; then
19164 cat >>confdefs.h <<\_ACEOF
19165 #define HAVE_WINT_T 1
19171 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19172 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19173 if test "${gl_cv_header_inttypes_h+set}" = set; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19182 #include <sys/types.h>
19183 #include <inttypes.h>
19187 uintmax_t i = (uintmax_t) -1;
19192 rm -f conftest.$ac_objext
19193 if { (ac_try="$ac_compile"
19194 case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_compile") 2>conftest.er1
19201 grep -v '^ *+' conftest.er1 >conftest.err
19203 cat conftest.err >&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } && {
19206 test -z "$ac_c_werror_flag" ||
19207 test ! -s conftest.err
19208 } && test -s conftest.$ac_objext; then
19209 gl_cv_header_inttypes_h=yes
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19214 gl_cv_header_inttypes_h=no
19217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19220 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19221 if test $gl_cv_header_inttypes_h = yes; then
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19230 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19231 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19232 if test "${gl_cv_header_stdint_h+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 cat >conftest.$ac_ext <<_ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 #include <sys/types.h>
19242 #include <stdint.h>
19246 uintmax_t i = (uintmax_t) -1;
19251 rm -f conftest.$ac_objext
19252 if { (ac_try="$ac_compile"
19253 case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19260 grep -v '^ *+' conftest.er1 >conftest.err
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } && {
19265 test -z "$ac_c_werror_flag" ||
19266 test ! -s conftest.err
19267 } && test -s conftest.$ac_objext; then
19268 gl_cv_header_stdint_h=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 gl_cv_header_stdint_h=no
19276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19278 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19279 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19280 if test $gl_cv_header_stdint_h = yes; then
19282 cat >>confdefs.h <<_ACEOF
19283 #define HAVE_STDINT_H_WITH_UINTMAX 1
19291 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19292 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19293 if test "${gt_cv_c_intmax_t+set}" = set; then
19294 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19303 #include <stddef.h>
19304 #include <stdlib.h>
19305 #if HAVE_STDINT_H_WITH_UINTMAX
19306 #include <stdint.h>
19308 #if HAVE_INTTYPES_H_WITH_UINTMAX
19309 #include <inttypes.h>
19320 rm -f conftest.$ac_objext
19321 if { (ac_try="$ac_compile"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 gt_cv_c_intmax_t=yes
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 gt_cv_c_intmax_t=no
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19347 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19348 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19349 if test $gt_cv_c_intmax_t = yes; then
19351 cat >>confdefs.h <<\_ACEOF
19352 #define HAVE_INTMAX_T 1
19359 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19360 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19361 if test "${gt_cv_func_printf_posix+set}" = set; then
19362 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 if test "$cross_compiling" = yes; then
19367 cat >conftest.$ac_ext <<_ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19374 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19380 $EGREP "notposix" >/dev/null 2>&1; then
19381 gt_cv_func_printf_posix="guessing no"
19383 gt_cv_func_printf_posix="guessing yes"
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19397 #include <string.h>
19398 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19399 dollar expansion (possibly an autoconf bug). */
19400 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19401 static char buf[100];
19404 sprintf (buf, format, 33, 55);
19405 return (strcmp (buf, "55 33") != 0);
19408 rm -f conftest$ac_exeext
19409 if { (ac_try="$ac_link"
19410 case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_link") 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19419 { (case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_try") 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 gt_cv_func_printf_posix=yes
19430 echo "$as_me: program exited with status $ac_status" >&5
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 ( exit $ac_status )
19435 gt_cv_func_printf_posix=no
19437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19443 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19444 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19445 case $gt_cv_func_printf_posix in
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_POSIX_PRINTF 1
19455 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19456 # for constant arguments. Useless!
19457 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19458 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19459 if test "${ac_cv_working_alloca_h+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 #include <alloca.h>
19472 char *p = (char *) alloca (2 * sizeof (int));
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (ac_try="$ac_link"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_link") 2>conftest.er1
19487 grep -v '^ *+' conftest.er1 >conftest.err
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } && {
19492 test -z "$ac_c_werror_flag" ||
19493 test ! -s conftest.err
19494 } && test -s conftest$ac_exeext &&
19495 $as_test_x conftest$ac_exeext; then
19496 ac_cv_working_alloca_h=yes
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_cv_working_alloca_h=no
19504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19505 conftest$ac_exeext conftest.$ac_ext
19507 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19508 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19509 if test $ac_cv_working_alloca_h = yes; then
19511 cat >>confdefs.h <<\_ACEOF
19512 #define HAVE_ALLOCA_H 1
19517 { echo "$as_me:$LINENO: checking for alloca" >&5
19518 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19519 if test "${ac_cv_func_alloca_works+set}" = set; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 cat >conftest.$ac_ext <<_ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19529 # define alloca __builtin_alloca
19532 # include <malloc.h>
19533 # define alloca _alloca
19535 # ifdef HAVE_ALLOCA_H
19536 # include <alloca.h>
19541 # ifndef alloca /* predefined by HP cc +Olibcalls */
19552 char *p = (char *) alloca (1);
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (ac_try="$ac_link"
19560 case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565 (eval "$ac_link") 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } && {
19572 test -z "$ac_c_werror_flag" ||
19573 test ! -s conftest.err
19574 } && test -s conftest$ac_exeext &&
19575 $as_test_x conftest$ac_exeext; then
19576 ac_cv_func_alloca_works=yes
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 ac_cv_func_alloca_works=no
19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19585 conftest$ac_exeext conftest.$ac_ext
19587 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19588 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19590 if test $ac_cv_func_alloca_works = yes; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_ALLOCA 1
19597 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19598 # that cause trouble. Some versions do not even contain alloca or
19599 # contain a buggy version. If you still want to use their alloca,
19600 # use ar to extract alloca.o from them instead of compiling alloca.c.
19602 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19604 cat >>confdefs.h <<\_ACEOF
19609 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19610 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19611 if test "${ac_cv_os_cray+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 #if defined CRAY && ! defined CRAY2
19627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19628 $EGREP "webecray" >/dev/null 2>&1; then
19636 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19637 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19638 if test $ac_cv_os_cray = yes; then
19639 for ac_func in _getb67 GETB67 getb67; do
19640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19654 #define $ac_func innocuous_$ac_func
19656 /* System header to define __stub macros and hopefully few prototypes,
19657 which can conflict with char $ac_func (); below.
19658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19659 <limits.h> exists even on freestanding compilers. */
19662 # include <limits.h>
19664 # include <assert.h>
19669 /* Override any GCC internal prototype to avoid an error.
19670 Use char because int might match the return type of a GCC
19671 builtin and then its argument prototype would still apply. */
19676 /* The GNU C library defines this for functions which it implements
19677 to always fail with ENOSYS. Some functions are actually named
19678 something starting with __ and the normal name is an alias. */
19679 #if defined __stub_$ac_func || defined __stub___$ac_func
19686 return $ac_func ();
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (ac_try="$ac_link"
19693 case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_link") 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } && {
19705 test -z "$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19707 } && test -s conftest$ac_exeext &&
19708 $as_test_x conftest$ac_exeext; then
19709 eval "$as_ac_var=yes"
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19714 eval "$as_ac_var=no"
19717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19718 conftest$ac_exeext conftest.$ac_ext
19720 ac_res=`eval echo '${'$as_ac_var'}'`
19721 { echo "$as_me:$LINENO: result: $ac_res" >&5
19722 echo "${ECHO_T}$ac_res" >&6; }
19723 if test `eval echo '${'$as_ac_var'}'` = yes; then
19725 cat >>confdefs.h <<_ACEOF
19726 #define CRAY_STACKSEG_END $ac_func
19735 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19736 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19737 if test "${ac_cv_c_stack_direction+set}" = set; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19740 if test "$cross_compiling" = yes; then
19741 ac_cv_c_stack_direction=0
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19749 $ac_includes_default
19751 find_stack_direction ()
19753 static char *addr = 0;
19758 return find_stack_direction ();
19761 return (&dummy > addr) ? 1 : -1;
19767 return find_stack_direction () < 0;
19770 rm -f conftest$ac_exeext
19771 if { (ac_try="$ac_link"
19772 case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_link") 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_c_stack_direction=1
19792 echo "$as_me: program exited with status $ac_status" >&5
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19796 ( exit $ac_status )
19797 ac_cv_c_stack_direction=-1
19799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19804 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19805 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19807 cat >>confdefs.h <<_ACEOF
19808 #define STACK_DIRECTION $ac_cv_c_stack_direction
19816 for ac_header in stdlib.h unistd.h
19818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 ac_res=`eval echo '${'$as_ac_Header'}'`
19826 { echo "$as_me:$LINENO: result: $ac_res" >&5
19827 echo "${ECHO_T}$ac_res" >&6; }
19829 # Is the header compilable?
19830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19832 cat >conftest.$ac_ext <<_ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19838 $ac_includes_default
19839 #include <$ac_header>
19841 rm -f conftest.$ac_objext
19842 if { (ac_try="$ac_compile"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_compile") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && {
19855 test -z "$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19857 } && test -s conftest.$ac_objext; then
19858 ac_header_compiler=yes
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 ac_header_compiler=no
19866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19868 echo "${ECHO_T}$ac_header_compiler" >&6; }
19870 # Is the header present?
19871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 #include <$ac_header>
19881 if { (ac_try="$ac_cpp conftest.$ac_ext"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } >/dev/null && {
19894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19897 ac_header_preproc=yes
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_header_preproc=no
19905 rm -f conftest.err conftest.$ac_ext
19906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19907 echo "${ECHO_T}$ac_header_preproc" >&6; }
19909 # So? What about this header?
19910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19916 ac_header_preproc=yes
19919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19937 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 eval "$as_ac_Header=\$ac_header_preproc"
19941 ac_res=`eval echo '${'$as_ac_Header'}'`
19942 { echo "$as_me:$LINENO: result: $ac_res" >&5
19943 echo "${ECHO_T}$ac_res" >&6; }
19946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19947 cat >>confdefs.h <<_ACEOF
19948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19956 for ac_func in getpagesize
19958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 cat >conftest.$ac_ext <<_ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h. */
19970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19972 #define $ac_func innocuous_$ac_func
19974 /* System header to define __stub macros and hopefully few prototypes,
19975 which can conflict with char $ac_func (); below.
19976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19977 <limits.h> exists even on freestanding compilers. */
19980 # include <limits.h>
19982 # include <assert.h>
19987 /* Override any GCC internal prototype to avoid an error.
19988 Use char because int might match the return type of a GCC
19989 builtin and then its argument prototype would still apply. */
19994 /* The GNU C library defines this for functions which it implements
19995 to always fail with ENOSYS. Some functions are actually named
19996 something starting with __ and the normal name is an alias. */
19997 #if defined __stub_$ac_func || defined __stub___$ac_func
20004 return $ac_func ();
20009 rm -f conftest.$ac_objext conftest$ac_exeext
20010 if { (ac_try="$ac_link"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_link") 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest$ac_exeext &&
20026 $as_test_x conftest$ac_exeext; then
20027 eval "$as_ac_var=yes"
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 eval "$as_ac_var=no"
20035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20036 conftest$ac_exeext conftest.$ac_ext
20038 ac_res=`eval echo '${'$as_ac_var'}'`
20039 { echo "$as_me:$LINENO: result: $ac_res" >&5
20040 echo "${ECHO_T}$ac_res" >&6; }
20041 if test `eval echo '${'$as_ac_var'}'` = yes; then
20042 cat >>confdefs.h <<_ACEOF
20043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20049 { echo "$as_me:$LINENO: checking for working mmap" >&5
20050 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20051 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 if test "$cross_compiling" = yes; then
20055 ac_cv_func_mmap_fixed_mapped=no
20057 cat >conftest.$ac_ext <<_ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 $ac_includes_default
20064 /* malloc might have been renamed as rpl_malloc. */
20067 /* Thanks to Mike Haertel and Jim Avera for this test.
20068 Here is a matrix of mmap possibilities:
20069 mmap private not fixed
20070 mmap private fixed at somewhere currently unmapped
20071 mmap private fixed at somewhere already mapped
20072 mmap shared not fixed
20073 mmap shared fixed at somewhere currently unmapped
20074 mmap shared fixed at somewhere already mapped
20075 For private mappings, we should verify that changes cannot be read()
20076 back from the file, nor mmap's back from the file at a different
20077 address. (There have been systems where private was not correctly
20078 implemented like the infamous i386 svr4.0, and systems where the
20079 VM page cache was not coherent with the file system buffer cache
20080 like early versions of FreeBSD and possibly contemporary NetBSD.)
20081 For shared mappings, we should conversely verify that changes get
20082 propagated back to all the places they're supposed to be.
20084 Grep wants private fixed already mapped.
20085 The main things grep needs to know about mmap are:
20086 * does it exist and is it safe to write into the mmap'd area
20087 * how to use it (BSD variants) */
20090 #include <sys/mman.h>
20092 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20096 /* This mess was copied from the GNU getpagesize.h. */
20097 #ifndef HAVE_GETPAGESIZE
20098 /* Assume that all systems that can run configure have sys/param.h. */
20099 # ifndef HAVE_SYS_PARAM_H
20100 # define HAVE_SYS_PARAM_H 1
20103 # ifdef _SC_PAGESIZE
20104 # define getpagesize() sysconf(_SC_PAGESIZE)
20105 # else /* no _SC_PAGESIZE */
20106 # ifdef HAVE_SYS_PARAM_H
20107 # include <sys/param.h>
20108 # ifdef EXEC_PAGESIZE
20109 # define getpagesize() EXEC_PAGESIZE
20110 # else /* no EXEC_PAGESIZE */
20112 # define getpagesize() NBPG * CLSIZE
20115 # endif /* no CLSIZE */
20116 # else /* no NBPG */
20118 # define getpagesize() NBPC
20119 # else /* no NBPC */
20121 # define getpagesize() PAGESIZE
20122 # endif /* PAGESIZE */
20123 # endif /* no NBPC */
20124 # endif /* no NBPG */
20125 # endif /* no EXEC_PAGESIZE */
20126 # else /* no HAVE_SYS_PARAM_H */
20127 # define getpagesize() 8192 /* punt totally */
20128 # endif /* no HAVE_SYS_PARAM_H */
20129 # endif /* no _SC_PAGESIZE */
20131 #endif /* no HAVE_GETPAGESIZE */
20136 char *data, *data2, *data3;
20140 pagesize = getpagesize ();
20142 /* First, make a file with some known garbage in it. */
20143 data = (char *) malloc (pagesize);
20146 for (i = 0; i < pagesize; ++i)
20147 *(data + i) = rand ();
20149 fd = creat ("conftest.mmap", 0600);
20152 if (write (fd, data, pagesize) != pagesize)
20156 /* Next, try to mmap the file at a fixed address which already has
20157 something else allocated at it. If we can, also make sure that
20158 we see the same garbage. */
20159 fd = open ("conftest.mmap", O_RDWR);
20162 data2 = (char *) malloc (2 * pagesize);
20165 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20166 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20167 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20169 for (i = 0; i < pagesize; ++i)
20170 if (*(data + i) != *(data2 + i))
20173 /* Finally, make sure that changes to the mapped area do not
20174 percolate back to the file as seen by read(). (This is a bug on
20175 some variants of i386 svr4.0.) */
20176 for (i = 0; i < pagesize; ++i)
20177 *(data2 + i) = *(data2 + i) + 1;
20178 data3 = (char *) malloc (pagesize);
20181 if (read (fd, data3, pagesize) != pagesize)
20183 for (i = 0; i < pagesize; ++i)
20184 if (*(data + i) != *(data3 + i))
20190 rm -f conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_link") 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20201 { (case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_try") 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_cv_func_mmap_fixed_mapped=yes
20212 echo "$as_me: program exited with status $ac_status" >&5
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 ( exit $ac_status )
20217 ac_cv_func_mmap_fixed_mapped=no
20219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20224 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20225 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20226 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20228 cat >>confdefs.h <<\_ACEOF
20229 #define HAVE_MMAP 1
20233 rm -f conftest.mmap
20236 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20237 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20238 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20248 #include <features.h>
20249 #ifdef __GNU_LIBRARY__
20250 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20257 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20258 ac_cv_gnu_library_2_1=yes
20260 ac_cv_gnu_library_2_1=no
20267 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20268 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20270 GLIBC21="$ac_cv_gnu_library_2_1"
20275 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20276 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20277 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 if test "$cross_compiling" = yes; then
20283 # Guess based on the CPU.
20284 case "$host_cpu" in
20285 alpha* | i3456786 | m68k | s390*)
20286 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20288 gt_cv_int_divbyzero_sigfpe="guessing no";;
20292 cat >conftest.$ac_ext <<_ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20299 #include <stdlib.h>
20300 #include <signal.h>
20304 sigfpe_handler (int sig)
20306 sigfpe_handler (sig) int sig;
20309 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20310 exit (sig != SIGFPE);
20320 signal (SIGFPE, sigfpe_handler);
20321 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20322 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20323 signal (SIGTRAP, sigfpe_handler);
20325 /* Linux/SPARC yields signal SIGILL. */
20326 #if defined (__sparc__) && defined (__linux__)
20327 signal (SIGILL, sigfpe_handler);
20336 rm -f conftest$ac_exeext
20337 if { (ac_try="$ac_link"
20338 case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343 (eval "$ac_link") 2>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20347 { (case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_try") 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 gt_cv_int_divbyzero_sigfpe=yes
20358 echo "$as_me: program exited with status $ac_status" >&5
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 ( exit $ac_status )
20363 gt_cv_int_divbyzero_sigfpe=no
20365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20371 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20372 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20373 case "$gt_cv_int_divbyzero_sigfpe" in
20378 cat >>confdefs.h <<_ACEOF
20379 #define INTDIV0_RAISES_SIGFPE $value
20384 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20385 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20386 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 cat >conftest.$ac_ext <<_ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 unsigned long long ull = 1ULL; int i = 63;
20399 unsigned long long ullmax = (unsigned long long) -1;
20400 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20405 rm -f conftest.$ac_objext conftest$ac_exeext
20406 if { (ac_try="$ac_link"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_link") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && {
20419 test -z "$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20421 } && test -s conftest$ac_exeext &&
20422 $as_test_x conftest$ac_exeext; then
20423 ac_cv_type_unsigned_long_long=yes
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_cv_type_unsigned_long_long=no
20431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20432 conftest$ac_exeext conftest.$ac_ext
20434 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20435 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20436 if test $ac_cv_type_unsigned_long_long = yes; then
20438 cat >>confdefs.h <<\_ACEOF
20439 #define HAVE_UNSIGNED_LONG_LONG 1
20447 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20449 test $ac_cv_type_unsigned_long_long = yes \
20450 && ac_type='unsigned long long' \
20451 || ac_type='unsigned long'
20453 cat >>confdefs.h <<_ACEOF
20454 #define uintmax_t $ac_type
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_UINTMAX_T 1
20466 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20467 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20468 if test "${gt_cv_header_inttypes_h+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 #include <sys/types.h>
20479 #include <inttypes.h>
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_compile") 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && {
20502 test -z "$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 } && test -s conftest.$ac_objext; then
20505 gt_cv_header_inttypes_h=yes
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 gt_cv_header_inttypes_h=no
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20517 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20518 if test $gt_cv_header_inttypes_h = yes; then
20520 cat >>confdefs.h <<_ACEOF
20521 #define HAVE_INTTYPES_H 1
20528 if test $gt_cv_header_inttypes_h = yes; then
20529 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20530 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20531 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <inttypes.h>
20554 rm -f conftest.$ac_objext
20555 if { (ac_try="$ac_compile"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_compile") 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } && {
20568 test -z "$ac_c_werror_flag" ||
20569 test ! -s conftest.err
20570 } && test -s conftest.$ac_objext; then
20571 gt_cv_inttypes_pri_broken=no
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 gt_cv_inttypes_pri_broken=yes
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20583 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20585 if test "$gt_cv_inttypes_pri_broken" = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 #define PRI_MACROS_BROKEN 1
20595 for ac_header in stdint.h
20597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 ac_res=`eval echo '${'$as_ac_Header'}'`
20605 { echo "$as_me:$LINENO: result: $ac_res" >&5
20606 echo "${ECHO_T}$ac_res" >&6; }
20608 # Is the header compilable?
20609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20611 cat >conftest.$ac_ext <<_ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 $ac_includes_default
20618 #include <$ac_header>
20620 rm -f conftest.$ac_objext
20621 if { (ac_try="$ac_compile"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_compile") 2>conftest.er1
20629 grep -v '^ *+' conftest.er1 >conftest.err
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } && {
20634 test -z "$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 } && test -s conftest.$ac_objext; then
20637 ac_header_compiler=yes
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 ac_header_compiler=no
20645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20647 echo "${ECHO_T}$ac_header_compiler" >&6; }
20649 # Is the header present?
20650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20652 cat >conftest.$ac_ext <<_ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20658 #include <$ac_header>
20660 if { (ac_try="$ac_cpp conftest.$ac_ext"
20661 case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20668 grep -v '^ *+' conftest.er1 >conftest.err
20670 cat conftest.err >&5
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } >/dev/null && {
20673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20674 test ! -s conftest.err
20676 ac_header_preproc=yes
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ac_header_preproc=no
20684 rm -f conftest.err conftest.$ac_ext
20685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20686 echo "${ECHO_T}$ac_header_preproc" >&6; }
20688 # So? What about this header?
20689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20695 ac_header_preproc=yes
20698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 eval "$as_ac_Header=\$ac_header_preproc"
20720 ac_res=`eval echo '${'$as_ac_Header'}'`
20721 { echo "$as_me:$LINENO: result: $ac_res" >&5
20722 echo "${ECHO_T}$ac_res" >&6; }
20725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20726 cat >>confdefs.h <<_ACEOF
20727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20734 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20735 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20744 #include <limits.h>
20746 #include <stdint.h>
20753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20754 $EGREP "Found it" >/dev/null 2>&1; then
20759 if test -z "$result"; then
20760 if test "$cross_compiling" = yes; then
20761 # Depending upon the size, compute the lo and hi bounds.
20762 cat >conftest.$ac_ext <<_ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20768 #include <stddef.h>
20772 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest.$ac_objext; then
20798 cat >conftest.$ac_ext <<_ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <stddef.h>
20808 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20815 rm -f conftest.$ac_objext
20816 if { (ac_try="$ac_compile"
20817 case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822 (eval "$ac_compile") 2>conftest.er1
20824 grep -v '^ *+' conftest.er1 >conftest.err
20826 cat conftest.err >&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } && {
20829 test -z "$ac_c_werror_flag" ||
20830 test ! -s conftest.err
20831 } && test -s conftest.$ac_objext; then
20832 ac_hi=$ac_mid; break
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_lo=`expr $ac_mid + 1`
20838 if test $ac_lo -le $ac_mid; then
20842 ac_mid=`expr 2 '*' $ac_mid + 1`
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20851 cat >conftest.$ac_ext <<_ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 #include <stddef.h>
20861 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_compile") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest.$ac_objext; then
20887 cat >conftest.$ac_ext <<_ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 #include <stddef.h>
20897 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20904 rm -f conftest.$ac_objext
20905 if { (ac_try="$ac_compile"
20906 case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911 (eval "$ac_compile") 2>conftest.er1
20913 grep -v '^ *+' conftest.er1 >conftest.err
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } && {
20918 test -z "$ac_c_werror_flag" ||
20919 test ! -s conftest.err
20920 } && test -s conftest.$ac_objext; then
20921 ac_lo=$ac_mid; break
20923 echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20926 ac_hi=`expr '(' $ac_mid ')' - 1`
20927 if test $ac_mid -le $ac_hi; then
20931 ac_mid=`expr 2 '*' $ac_mid`
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 # Binary search between lo and hi bounds.
20948 while test "x$ac_lo" != "x$ac_hi"; do
20949 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <stddef.h>
20960 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20967 rm -f conftest.$ac_objext
20968 if { (ac_try="$ac_compile"
20969 case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_compile") 2>conftest.er1
20976 grep -v '^ *+' conftest.er1 >conftest.err
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } && {
20981 test -z "$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 } && test -s conftest.$ac_objext; then
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_lo=`expr '(' $ac_mid ')' + 1`
20992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 ?*) res_hi=$ac_lo;;
20999 cat >conftest.$ac_ext <<_ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 #include <stddef.h>
21006 static long int longval () { return ~(size_t)0 / 10; }
21007 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21009 #include <stdlib.h>
21014 FILE *f = fopen ("conftest.val", "w");
21017 if ((~(size_t)0 / 10) < 0)
21019 long int i = longval ();
21020 if (i != (~(size_t)0 / 10))
21022 fprintf (f, "%ld\n", i);
21026 unsigned long int i = ulongval ();
21027 if (i != (~(size_t)0 / 10))
21029 fprintf (f, "%lu\n", i);
21031 return ferror (f) || fclose (f) != 0;
21037 rm -f conftest$ac_exeext
21038 if { (ac_try="$ac_link"
21039 case "(($ac_try" in
21040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041 *) ac_try_echo=$ac_try;;
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044 (eval "$ac_link") 2>&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21048 { (case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_try") 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 res_hi=`cat conftest.val`
21059 echo "$as_me: program exited with status $ac_status" >&5
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ( exit $ac_status )
21066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21070 if test "$cross_compiling" = yes; then
21071 # Depending upon the size, compute the lo and hi bounds.
21072 cat >conftest.$ac_ext <<_ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h. */
21078 #include <stddef.h>
21082 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_compile") 2>conftest.er1
21098 grep -v '^ *+' conftest.er1 >conftest.err
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } && {
21103 test -z "$ac_c_werror_flag" ||
21104 test ! -s conftest.err
21105 } && test -s conftest.$ac_objext; then
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <stddef.h>
21118 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21125 rm -f conftest.$ac_objext
21126 if { (ac_try="$ac_compile"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21134 grep -v '^ *+' conftest.er1 >conftest.err
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21142 ac_hi=$ac_mid; break
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ac_lo=`expr $ac_mid + 1`
21148 if test $ac_lo -le $ac_mid; then
21152 ac_mid=`expr 2 '*' $ac_mid + 1`
21155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 cat >conftest.$ac_ext <<_ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <stddef.h>
21171 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 #include <stddef.h>
21207 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21214 rm -f conftest.$ac_objext
21215 if { (ac_try="$ac_compile"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_compile") 2>conftest.er1
21223 grep -v '^ *+' conftest.er1 >conftest.err
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } && {
21228 test -z "$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 } && test -s conftest.$ac_objext; then
21231 ac_lo=$ac_mid; break
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ac_hi=`expr '(' $ac_mid ')' - 1`
21237 if test $ac_mid -le $ac_hi; then
21241 ac_mid=`expr 2 '*' $ac_mid`
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 # Binary search between lo and hi bounds.
21258 while test "x$ac_lo" != "x$ac_hi"; do
21259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 #include <stddef.h>
21270 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_compile") 2>conftest.er1
21286 grep -v '^ *+' conftest.er1 >conftest.err
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest.$ac_objext; then
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21299 ac_lo=`expr '(' $ac_mid ')' + 1`
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305 ?*) res_lo=$ac_lo;;
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 #include <stddef.h>
21316 static long int longval () { return ~(size_t)0 % 10; }
21317 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21319 #include <stdlib.h>
21324 FILE *f = fopen ("conftest.val", "w");
21327 if ((~(size_t)0 % 10) < 0)
21329 long int i = longval ();
21330 if (i != (~(size_t)0 % 10))
21332 fprintf (f, "%ld\n", i);
21336 unsigned long int i = ulongval ();
21337 if (i != (~(size_t)0 % 10))
21339 fprintf (f, "%lu\n", i);
21341 return ferror (f) || fclose (f) != 0;
21347 rm -f conftest$ac_exeext
21348 if { (ac_try="$ac_link"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_link") 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21358 { (case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_try") 2>&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 res_lo=`cat conftest.val`
21369 echo "$as_me: program exited with status $ac_status" >&5
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 ( exit $ac_status )
21376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21380 if test "$cross_compiling" = yes; then
21381 # Depending upon the size, compute the lo and hi bounds.
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 #include <stddef.h>
21392 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21399 rm -f conftest.$ac_objext
21400 if { (ac_try="$ac_compile"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_compile") 2>conftest.er1
21408 grep -v '^ *+' conftest.er1 >conftest.err
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && {
21413 test -z "$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 } && test -s conftest.$ac_objext; then
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 #include <stddef.h>
21428 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_compile") 2>conftest.er1
21444 grep -v '^ *+' conftest.er1 >conftest.err
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } && {
21449 test -z "$ac_c_werror_flag" ||
21450 test ! -s conftest.err
21451 } && test -s conftest.$ac_objext; then
21452 ac_hi=$ac_mid; break
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_lo=`expr $ac_mid + 1`
21458 if test $ac_lo -le $ac_mid; then
21462 ac_mid=`expr 2 '*' $ac_mid + 1`
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <stddef.h>
21481 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21488 rm -f conftest.$ac_objext
21489 if { (ac_try="$ac_compile"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495 (eval "$ac_compile") 2>conftest.er1
21497 grep -v '^ *+' conftest.er1 >conftest.err
21499 cat conftest.err >&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } && {
21502 test -z "$ac_c_werror_flag" ||
21503 test ! -s conftest.err
21504 } && test -s conftest.$ac_objext; then
21507 cat >conftest.$ac_ext <<_ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 #include <stddef.h>
21517 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21524 rm -f conftest.$ac_objext
21525 if { (ac_try="$ac_compile"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_compile") 2>conftest.er1
21533 grep -v '^ *+' conftest.er1 >conftest.err
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest.$ac_objext; then
21541 ac_lo=$ac_mid; break
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_hi=`expr '(' $ac_mid ')' - 1`
21547 if test $ac_mid -le $ac_hi; then
21551 ac_mid=`expr 2 '*' $ac_mid`
21554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 # Binary search between lo and hi bounds.
21568 while test "x$ac_lo" != "x$ac_hi"; do
21569 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21570 cat >conftest.$ac_ext <<_ACEOF
21573 cat confdefs.h >>conftest.$ac_ext
21574 cat >>conftest.$ac_ext <<_ACEOF
21575 /* end confdefs.h. */
21576 #include <stddef.h>
21580 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21587 rm -f conftest.$ac_objext
21588 if { (ac_try="$ac_compile"
21589 case "(($ac_try" in
21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594 (eval "$ac_compile") 2>conftest.er1
21596 grep -v '^ *+' conftest.er1 >conftest.err
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && {
21601 test -z "$ac_c_werror_flag" ||
21602 test ! -s conftest.err
21603 } && test -s conftest.$ac_objext; then
21606 echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 ac_lo=`expr '(' $ac_mid ')' + 1`
21612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21615 ?*) fits_in_uint=$ac_lo;;
21619 cat >conftest.$ac_ext <<_ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 #include <stddef.h>
21626 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21627 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21629 #include <stdlib.h>
21634 FILE *f = fopen ("conftest.val", "w");
21637 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21639 long int i = longval ();
21640 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21642 fprintf (f, "%ld\n", i);
21646 unsigned long int i = ulongval ();
21647 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21649 fprintf (f, "%lu\n", i);
21651 return ferror (f) || fclose (f) != 0;
21657 rm -f conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_link") 2>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21668 { (case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_try") 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 fits_in_uint=`cat conftest.val`
21679 echo "$as_me: program exited with status $ac_status" >&5
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ( exit $ac_status )
21686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21690 if test "$fits_in_uint" = 1; then
21691 cat >conftest.$ac_ext <<_ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697 #include <stddef.h>
21699 extern unsigned long foo;
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_compile") 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } && {
21723 test -z "$ac_c_werror_flag" ||
21724 test ! -s conftest.err
21725 } && test -s conftest.$ac_objext; then
21728 echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 if test -z "$result"; then
21737 if test "$fits_in_uint" = 1; then
21738 result="$res_hi$res_lo"U
21740 result="$res_hi$res_lo"UL
21743 result='~(size_t)0'
21746 { echo "$as_me:$LINENO: result: $result" >&5
21747 echo "${ECHO_T}$result" >&6; }
21748 if test "$result" != yes; then
21750 cat >>confdefs.h <<_ACEOF
21751 #define SIZE_MAX $result
21760 for ac_header in stdint.h
21762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
21769 ac_res=`eval echo '${'$as_ac_Header'}'`
21770 { echo "$as_me:$LINENO: result: $ac_res" >&5
21771 echo "${ECHO_T}$ac_res" >&6; }
21773 # Is the header compilable?
21774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 $ac_includes_default
21783 #include <$ac_header>
21785 rm -f conftest.$ac_objext
21786 if { (ac_try="$ac_compile"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_compile") 2>conftest.er1
21794 grep -v '^ *+' conftest.er1 >conftest.err
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } && {
21799 test -z "$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21801 } && test -s conftest.$ac_objext; then
21802 ac_header_compiler=yes
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21807 ac_header_compiler=no
21810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21812 echo "${ECHO_T}$ac_header_compiler" >&6; }
21814 # Is the header present?
21815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21817 cat >conftest.$ac_ext <<_ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 #include <$ac_header>
21825 if { (ac_try="$ac_cpp conftest.$ac_ext"
21826 case "(($ac_try" in
21827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21833 grep -v '^ *+' conftest.er1 >conftest.err
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } >/dev/null && {
21838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21841 ac_header_preproc=yes
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 ac_header_preproc=no
21849 rm -f conftest.err conftest.$ac_ext
21850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21851 echo "${ECHO_T}$ac_header_preproc" >&6; }
21853 # So? What about this header?
21854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21860 ac_header_preproc=yes
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 eval "$as_ac_Header=\$ac_header_preproc"
21885 ac_res=`eval echo '${'$as_ac_Header'}'`
21886 { echo "$as_me:$LINENO: result: $ac_res" >&5
21887 echo "${ECHO_T}$ac_res" >&6; }
21890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21891 cat >>confdefs.h <<_ACEOF
21892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21906 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21907 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21908 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 cat >conftest.$ac_ext <<_ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 $ac_includes_default
21918 typedef ptrdiff_t ac__type_new_;
21922 if ((ac__type_new_ *) 0)
21924 if (sizeof (ac__type_new_))
21930 rm -f conftest.$ac_objext
21931 if { (ac_try="$ac_compile"
21932 case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_compile") 2>conftest.er1
21939 grep -v '^ *+' conftest.er1 >conftest.err
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } && {
21944 test -z "$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21946 } && test -s conftest.$ac_objext; then
21947 ac_cv_type_ptrdiff_t=yes
21949 echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 ac_cv_type_ptrdiff_t=no
21955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21958 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21959 if test $ac_cv_type_ptrdiff_t = yes; then
21963 cat >>confdefs.h <<\_ACEOF
21964 #define ptrdiff_t long
21980 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21981 stdlib.h string.h unistd.h sys/param.h
21983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21988 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 ac_res=`eval echo '${'$as_ac_Header'}'`
21991 { echo "$as_me:$LINENO: result: $ac_res" >&5
21992 echo "${ECHO_T}$ac_res" >&6; }
21994 # Is the header compilable?
21995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 $ac_includes_default
22004 #include <$ac_header>
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_compile") 2>conftest.er1
22015 grep -v '^ *+' conftest.er1 >conftest.err
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest.$ac_objext; then
22023 ac_header_compiler=yes
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_header_compiler=no
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22033 echo "${ECHO_T}$ac_header_compiler" >&6; }
22035 # Is the header present?
22036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22038 cat >conftest.$ac_ext <<_ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 #include <$ac_header>
22046 if { (ac_try="$ac_cpp conftest.$ac_ext"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22054 grep -v '^ *+' conftest.er1 >conftest.err
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } >/dev/null && {
22059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22062 ac_header_preproc=yes
22064 echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22067 ac_header_preproc=no
22070 rm -f conftest.err conftest.$ac_ext
22071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22072 echo "${ECHO_T}$ac_header_preproc" >&6; }
22074 # So? What about this header?
22075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22081 ac_header_preproc=yes
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22104 eval "$as_ac_Header=\$ac_header_preproc"
22106 ac_res=`eval echo '${'$as_ac_Header'}'`
22107 { echo "$as_me:$LINENO: result: $ac_res" >&5
22108 echo "${ECHO_T}$ac_res" >&6; }
22111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22112 cat >>confdefs.h <<_ACEOF
22113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22143 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22144 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22145 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 cat >conftest.$ac_ext <<_ACEOF
22157 cat confdefs.h >>conftest.$ac_ext
22158 cat >>conftest.$ac_ext <<_ACEOF
22159 /* end confdefs.h. */
22160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22162 #define $ac_func innocuous_$ac_func
22164 /* System header to define __stub macros and hopefully few prototypes,
22165 which can conflict with char $ac_func (); below.
22166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22167 <limits.h> exists even on freestanding compilers. */
22170 # include <limits.h>
22172 # include <assert.h>
22177 /* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply. */
22184 /* The GNU C library defines this for functions which it implements
22185 to always fail with ENOSYS. Some functions are actually named
22186 something starting with __ and the normal name is an alias. */
22187 #if defined __stub_$ac_func || defined __stub___$ac_func
22194 return $ac_func ();
22199 rm -f conftest.$ac_objext conftest$ac_exeext
22200 if { (ac_try="$ac_link"
22201 case "(($ac_try" in
22202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203 *) ac_try_echo=$ac_try;;
22205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22206 (eval "$ac_link") 2>conftest.er1
22208 grep -v '^ *+' conftest.er1 >conftest.err
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } && {
22213 test -z "$ac_c_werror_flag" ||
22214 test ! -s conftest.err
22215 } && test -s conftest$ac_exeext &&
22216 $as_test_x conftest$ac_exeext; then
22217 eval "$as_ac_var=yes"
22219 echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22222 eval "$as_ac_var=no"
22225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22226 conftest$ac_exeext conftest.$ac_ext
22228 ac_res=`eval echo '${'$as_ac_var'}'`
22229 { echo "$as_me:$LINENO: result: $ac_res" >&5
22230 echo "${ECHO_T}$ac_res" >&6; }
22231 if test `eval echo '${'$as_ac_var'}'` = yes; then
22232 cat >>confdefs.h <<_ACEOF
22233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22241 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22242 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22243 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 cat >conftest.$ac_ext <<_ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22258 char *p = (char *) _snprintf;
22265 rm -f conftest.$ac_objext
22266 if { (ac_try="$ac_compile"
22267 case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_compile") 2>conftest.er1
22274 grep -v '^ *+' conftest.er1 >conftest.err
22276 cat conftest.err >&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } && {
22279 test -z "$ac_c_werror_flag" ||
22280 test ! -s conftest.err
22281 } && test -s conftest.$ac_objext; then
22282 ac_cv_have_decl__snprintf=yes
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 ac_cv_have_decl__snprintf=no
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22293 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22294 if test $ac_cv_have_decl__snprintf = yes; then
22300 cat >>confdefs.h <<_ACEOF
22301 #define HAVE_DECL__SNPRINTF $gt_value
22306 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22307 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22308 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 cat >conftest.$ac_ext <<_ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22323 char *p = (char *) _snwprintf;
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_compile") 2>conftest.er1
22339 grep -v '^ *+' conftest.er1 >conftest.err
22341 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest.$ac_objext; then
22347 ac_cv_have_decl__snwprintf=yes
22349 echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22352 ac_cv_have_decl__snwprintf=no
22355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22358 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22359 if test $ac_cv_have_decl__snwprintf = yes; then
22365 cat >>confdefs.h <<_ACEOF
22366 #define HAVE_DECL__SNWPRINTF $gt_value
22372 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22373 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22374 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22388 #ifndef feof_unlocked
22389 char *p = (char *) feof_unlocked;
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_compile") 2>conftest.er1
22405 grep -v '^ *+' conftest.er1 >conftest.err
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest.$ac_objext; then
22413 ac_cv_have_decl_feof_unlocked=yes
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_have_decl_feof_unlocked=no
22421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22424 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22425 if test $ac_cv_have_decl_feof_unlocked = yes; then
22431 cat >>confdefs.h <<_ACEOF
22432 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22437 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22438 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22439 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22442 cat >conftest.$ac_ext <<_ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22453 #ifndef fgets_unlocked
22454 char *p = (char *) fgets_unlocked;
22461 rm -f conftest.$ac_objext
22462 if { (ac_try="$ac_compile"
22463 case "(($ac_try" in
22464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468 (eval "$ac_compile") 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest.$ac_objext; then
22478 ac_cv_have_decl_fgets_unlocked=yes
22480 echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.$ac_ext >&5
22483 ac_cv_have_decl_fgets_unlocked=no
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22489 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22490 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22496 cat >>confdefs.h <<_ACEOF
22497 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22502 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22503 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22504 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22505 echo $ECHO_N "(cached) $ECHO_C" >&6
22507 cat >conftest.$ac_ext <<_ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22518 #ifndef getc_unlocked
22519 char *p = (char *) getc_unlocked;
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_compile") 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && {
22540 test -z "$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 } && test -s conftest.$ac_objext; then
22543 ac_cv_have_decl_getc_unlocked=yes
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_cv_have_decl_getc_unlocked=no
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22554 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22555 if test $ac_cv_have_decl_getc_unlocked = yes; then
22561 cat >>confdefs.h <<_ACEOF
22562 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22567 case $gt_cv_func_printf_posix in
22568 *yes) HAVE_POSIX_PRINTF=1 ;;
22569 *) HAVE_POSIX_PRINTF=0 ;;
22572 if test "$ac_cv_func_asprintf" = yes; then
22578 if test "$ac_cv_func_snprintf" = yes; then
22584 if test "$ac_cv_func_wprintf" = yes; then
22596 am_save_CPPFLAGS="$CPPFLAGS"
22598 for element in $INCICONV; do
22600 for x in $CPPFLAGS; do
22602 acl_save_prefix="$prefix"
22603 prefix="$acl_final_prefix"
22604 acl_save_exec_prefix="$exec_prefix"
22605 exec_prefix="$acl_final_exec_prefix"
22607 exec_prefix="$acl_save_exec_prefix"
22608 prefix="$acl_save_prefix"
22610 if test "X$x" = "X$element"; then
22615 if test -z "$haveit"; then
22616 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22621 { echo "$as_me:$LINENO: checking for iconv" >&5
22622 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22623 if test "${am_cv_func_iconv+set}" = set; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22627 am_cv_func_iconv="no, consider installing GNU libiconv"
22629 cat >conftest.$ac_ext <<_ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h. */
22635 #include <stdlib.h>
22640 iconv_t cd = iconv_open("","");
22641 iconv(cd,NULL,NULL,NULL,NULL);
22647 rm -f conftest.$ac_objext conftest$ac_exeext
22648 if { (ac_try="$ac_link"
22649 case "(($ac_try" in
22650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654 (eval "$ac_link") 2>conftest.er1
22656 grep -v '^ *+' conftest.er1 >conftest.err
22658 cat conftest.err >&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest$ac_exeext &&
22664 $as_test_x conftest$ac_exeext; then
22665 am_cv_func_iconv=yes
22667 echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22674 conftest$ac_exeext conftest.$ac_ext
22675 if test "$am_cv_func_iconv" != yes; then
22676 am_save_LIBS="$LIBS"
22677 LIBS="$LIBS $LIBICONV"
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 #include <stdlib.h>
22689 iconv_t cd = iconv_open("","");
22690 iconv(cd,NULL,NULL,NULL,NULL);
22696 rm -f conftest.$ac_objext conftest$ac_exeext
22697 if { (ac_try="$ac_link"
22698 case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703 (eval "$ac_link") 2>conftest.er1
22705 grep -v '^ *+' conftest.er1 >conftest.err
22707 cat conftest.err >&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } && {
22710 test -z "$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 } && test -s conftest$ac_exeext &&
22713 $as_test_x conftest$ac_exeext; then
22714 am_cv_lib_iconv=yes
22715 am_cv_func_iconv=yes
22717 echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22724 conftest$ac_exeext conftest.$ac_ext
22725 LIBS="$am_save_LIBS"
22729 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22730 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22731 if test "$am_cv_func_iconv" = yes; then
22733 cat >>confdefs.h <<\_ACEOF
22734 #define HAVE_ICONV 1
22738 if test "$am_cv_lib_iconv" = yes; then
22739 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22740 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22741 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22742 echo "${ECHO_T}$LIBICONV" >&6; }
22744 CPPFLAGS="$am_save_CPPFLAGS"
22751 if test "$am_cv_func_iconv" = yes; then
22752 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22753 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22754 if test "${am_cv_proto_iconv+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22758 cat >conftest.$ac_ext <<_ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22765 #include <stdlib.h>
22771 #if defined(__STDC__) || defined(__cplusplus)
22772 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22785 rm -f conftest.$ac_objext
22786 if { (ac_try="$ac_compile"
22787 case "(($ac_try" in
22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789 *) ac_try_echo=$ac_try;;
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval "$ac_compile") 2>conftest.er1
22794 grep -v '^ *+' conftest.er1 >conftest.err
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest.$ac_objext; then
22802 am_cv_proto_iconv_arg1=""
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22807 am_cv_proto_iconv_arg1="const"
22810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 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);"
22814 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22815 { echo "$as_me:$LINENO: result: ${ac_t:-
22816 }$am_cv_proto_iconv" >&5
22817 echo "${ECHO_T}${ac_t:-
22818 }$am_cv_proto_iconv" >&6; }
22820 cat >>confdefs.h <<_ACEOF
22821 #define ICONV_CONST $am_cv_proto_iconv_arg1
22827 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22828 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22829 if test "${am_cv_langinfo_codeset+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22832 cat >conftest.$ac_ext <<_ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 #include <langinfo.h>
22842 char* cs = nl_langinfo(CODESET);
22847 rm -f conftest.$ac_objext conftest$ac_exeext
22848 if { (ac_try="$ac_link"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_link") 2>conftest.er1
22856 grep -v '^ *+' conftest.er1 >conftest.err
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); } && {
22861 test -z "$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 } && test -s conftest$ac_exeext &&
22864 $as_test_x conftest$ac_exeext; then
22865 am_cv_langinfo_codeset=yes
22867 echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 am_cv_langinfo_codeset=no
22873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22874 conftest$ac_exeext conftest.$ac_ext
22877 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22878 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22879 if test $am_cv_langinfo_codeset = yes; then
22881 cat >>confdefs.h <<\_ACEOF
22882 #define HAVE_LANGINFO_CODESET 1
22887 if test $ac_cv_header_locale_h = yes; then
22889 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22890 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22891 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22894 cat >conftest.$ac_ext <<_ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22900 #include <locale.h>
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_link") 2>conftest.er1
22918 grep -v '^ *+' conftest.er1 >conftest.err
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } && {
22923 test -z "$ac_c_werror_flag" ||
22924 test ! -s conftest.err
22925 } && test -s conftest$ac_exeext &&
22926 $as_test_x conftest$ac_exeext; then
22927 gt_cv_val_LC_MESSAGES=yes
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 gt_cv_val_LC_MESSAGES=no
22935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22936 conftest$ac_exeext conftest.$ac_ext
22938 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22939 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22940 if test $gt_cv_val_LC_MESSAGES = yes; then
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_LC_MESSAGES 1
22950 if test -n "$INTL_MACOSX_LIBS"; then
22951 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22954 for ac_prog in bison
22956 # Extract the first word of "$ac_prog", so it can be a program name with args.
22957 set dummy $ac_prog; ac_word=$2
22958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22960 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22961 echo $ECHO_N "(cached) $ECHO_C" >&6
22963 if test -n "$INTLBISON"; then
22964 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22967 for as_dir in $PATH
22970 test -z "$as_dir" && as_dir=.
22971 for ac_exec_ext in '' $ac_executable_extensions; do
22972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22973 ac_cv_prog_INTLBISON="$ac_prog"
22974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22983 INTLBISON=$ac_cv_prog_INTLBISON
22984 if test -n "$INTLBISON"; then
22985 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22986 echo "${ECHO_T}$INTLBISON" >&6; }
22988 { echo "$as_me:$LINENO: result: no" >&5
22989 echo "${ECHO_T}no" >&6; }
22993 test -n "$INTLBISON" && break
22996 if test -z "$INTLBISON"; then
22999 { echo "$as_me:$LINENO: checking version of bison" >&5
23000 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23001 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23002 case $ac_prog_version in
23003 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23004 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23005 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23006 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23008 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23009 echo "${ECHO_T}$ac_prog_version" >&6; }
23011 if test $ac_verc_fail = yes; then
23030 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23031 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23032 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 gt_save_CPPFLAGS="$CPPFLAGS"
23036 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23037 gt_save_LIBS="$LIBS"
23038 LIBS="$LIBS -framework CoreFoundation"
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 #include <CFPreferences.h>
23049 CFPreferencesCopyAppValue(NULL, NULL)
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 if { (ac_try="$ac_link"
23056 case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_link") 2>conftest.er1
23063 grep -v '^ *+' conftest.er1 >conftest.err
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } && {
23068 test -z "$ac_c_werror_flag" ||
23069 test ! -s conftest.err
23070 } && test -s conftest$ac_exeext &&
23071 $as_test_x conftest$ac_exeext; then
23072 gt_cv_func_CFPreferencesCopyAppValue=yes
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 gt_cv_func_CFPreferencesCopyAppValue=no
23080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23081 conftest$ac_exeext conftest.$ac_ext
23082 CPPFLAGS="$gt_save_CPPFLAGS"
23083 LIBS="$gt_save_LIBS"
23085 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23086 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23087 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23089 cat >>confdefs.h <<\_ACEOF
23090 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23094 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23095 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23096 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23097 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 gt_save_CPPFLAGS="$CPPFLAGS"
23100 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23101 gt_save_LIBS="$LIBS"
23102 LIBS="$LIBS -framework CoreFoundation"
23103 cat >conftest.$ac_ext <<_ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h. */
23109 #include <CFLocale.h>
23113 CFLocaleCopyCurrent();
23118 rm -f conftest.$ac_objext conftest$ac_exeext
23119 if { (ac_try="$ac_link"
23120 case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125 (eval "$ac_link") 2>conftest.er1
23127 grep -v '^ *+' conftest.er1 >conftest.err
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest$ac_exeext &&
23135 $as_test_x conftest$ac_exeext; then
23136 gt_cv_func_CFLocaleCopyCurrent=yes
23138 echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23141 gt_cv_func_CFLocaleCopyCurrent=no
23144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23145 conftest$ac_exeext conftest.$ac_ext
23146 CPPFLAGS="$gt_save_CPPFLAGS"
23147 LIBS="$gt_save_LIBS"
23149 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23150 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23151 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23153 cat >>confdefs.h <<\_ACEOF
23154 #define HAVE_CFLOCALECOPYCURRENT 1
23159 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23160 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23166 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23167 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23168 # Check whether --enable-nls was given.
23169 if test "${enable_nls+set}" = set; then
23170 enableval=$enable_nls; USE_NLS=$enableval
23175 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23176 echo "${ECHO_T}$USE_NLS" >&6; }
23181 BUILD_INCLUDED_LIBINTL=no
23182 USE_INCLUDED_LIBINTL=no
23188 if test "$USE_NLS" = "yes"; then
23189 gt_use_preinstalled_gnugettext=no
23191 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23192 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23194 # Check whether --with-included-gettext was given.
23195 if test "${with_included_gettext+set}" = set; then
23196 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23198 nls_cv_force_use_gnu_gettext=no
23201 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23202 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23204 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23205 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23212 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23213 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23214 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23215 echo $ECHO_N "(cached) $ECHO_C" >&6
23217 cat >conftest.$ac_ext <<_ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h. */
23223 #include <libintl.h>
23224 extern int _nl_msg_cat_cntr;
23225 extern int *_nl_domain_bindings;
23229 bindtextdomain ("", "");
23230 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23235 rm -f conftest.$ac_objext conftest$ac_exeext
23236 if { (ac_try="$ac_link"
23237 case "(($ac_try" in
23238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23239 *) ac_try_echo=$ac_try;;
23241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23242 (eval "$ac_link") 2>conftest.er1
23244 grep -v '^ *+' conftest.er1 >conftest.err
23246 cat conftest.err >&5
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } && {
23249 test -z "$ac_c_werror_flag" ||
23250 test ! -s conftest.err
23251 } && test -s conftest$ac_exeext &&
23252 $as_test_x conftest$ac_exeext; then
23253 gt_cv_func_gnugettext1_libc=yes
23255 echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23258 gt_cv_func_gnugettext1_libc=no
23261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23262 conftest$ac_exeext conftest.$ac_ext
23264 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23265 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23267 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23273 acl_save_prefix="$prefix"
23274 prefix="$acl_final_prefix"
23275 acl_save_exec_prefix="$exec_prefix"
23276 exec_prefix="$acl_final_exec_prefix"
23278 eval additional_includedir=\"$includedir\"
23279 eval additional_libdir=\"$libdir\"
23281 exec_prefix="$acl_save_exec_prefix"
23282 prefix="$acl_save_prefix"
23285 # Check whether --with-libintl-prefix was given.
23286 if test "${with_libintl_prefix+set}" = set; then
23287 withval=$with_libintl_prefix;
23288 if test "X$withval" = "Xno"; then
23291 if test "X$withval" = "X"; then
23293 acl_save_prefix="$prefix"
23294 prefix="$acl_final_prefix"
23295 acl_save_exec_prefix="$exec_prefix"
23296 exec_prefix="$acl_final_exec_prefix"
23298 eval additional_includedir=\"$includedir\"
23299 eval additional_libdir=\"$libdir\"
23301 exec_prefix="$acl_save_exec_prefix"
23302 prefix="$acl_save_prefix"
23305 additional_includedir="$withval/include"
23306 additional_libdir="$withval/lib"
23317 names_already_handled=
23318 names_next_round='intl '
23319 while test -n "$names_next_round"; do
23320 names_this_round="$names_next_round"
23322 for name in $names_this_round; do
23324 for n in $names_already_handled; do
23325 if test "$n" = "$name"; then
23326 already_handled=yes
23330 if test -z "$already_handled"; then
23331 names_already_handled="$names_already_handled $name"
23332 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23333 eval value=\"\$HAVE_LIB$uppername\"
23334 if test -n "$value"; then
23335 if test "$value" = yes; then
23336 eval value=\"\$LIB$uppername\"
23337 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23338 eval value=\"\$LTLIB$uppername\"
23339 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23348 if test $use_additional = yes; then
23349 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23350 found_dir="$additional_libdir"
23351 found_so="$additional_libdir/lib$name.$shlibext"
23352 if test -f "$additional_libdir/lib$name.la"; then
23353 found_la="$additional_libdir/lib$name.la"
23356 if test -f "$additional_libdir/lib$name.$libext"; then
23357 found_dir="$additional_libdir"
23358 found_a="$additional_libdir/lib$name.$libext"
23359 if test -f "$additional_libdir/lib$name.la"; then
23360 found_la="$additional_libdir/lib$name.la"
23365 if test "X$found_dir" = "X"; then
23366 for x in $LDFLAGS $LTLIBINTL; do
23368 acl_save_prefix="$prefix"
23369 prefix="$acl_final_prefix"
23370 acl_save_exec_prefix="$exec_prefix"
23371 exec_prefix="$acl_final_exec_prefix"
23373 exec_prefix="$acl_save_exec_prefix"
23374 prefix="$acl_save_prefix"
23378 dir=`echo "X$x" | sed -e 's/^X-L//'`
23379 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23381 found_so="$dir/lib$name.$shlibext"
23382 if test -f "$dir/lib$name.la"; then
23383 found_la="$dir/lib$name.la"
23386 if test -f "$dir/lib$name.$libext"; then
23388 found_a="$dir/lib$name.$libext"
23389 if test -f "$dir/lib$name.la"; then
23390 found_la="$dir/lib$name.la"
23396 if test "X$found_dir" != "X"; then
23401 if test "X$found_dir" != "X"; then
23402 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23403 if test "X$found_so" != "X"; then
23404 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23405 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23408 for x in $ltrpathdirs; do
23409 if test "X$x" = "X$found_dir"; then
23414 if test -z "$haveit"; then
23415 ltrpathdirs="$ltrpathdirs $found_dir"
23417 if test "$hardcode_direct" = yes; then
23418 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23420 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23421 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23423 for x in $rpathdirs; do
23424 if test "X$x" = "X$found_dir"; then
23429 if test -z "$haveit"; then
23430 rpathdirs="$rpathdirs $found_dir"
23434 for x in $LDFLAGS $LIBINTL; do
23436 acl_save_prefix="$prefix"
23437 prefix="$acl_final_prefix"
23438 acl_save_exec_prefix="$exec_prefix"
23439 exec_prefix="$acl_final_exec_prefix"
23441 exec_prefix="$acl_save_exec_prefix"
23442 prefix="$acl_save_prefix"
23444 if test "X$x" = "X-L$found_dir"; then
23449 if test -z "$haveit"; then
23450 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23452 if test "$hardcode_minus_L" != no; then
23453 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23455 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23461 if test "X$found_a" != "X"; then
23462 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23464 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23467 additional_includedir=
23468 case "$found_dir" in
23470 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23471 additional_includedir="$basedir/include"
23474 if test "X$additional_includedir" != "X"; then
23475 if test "X$additional_includedir" != "X/usr/include"; then
23477 if test "X$additional_includedir" = "X/usr/local/include"; then
23478 if test -n "$GCC"; then
23480 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23484 if test -z "$haveit"; then
23485 for x in $CPPFLAGS $INCINTL; do
23487 acl_save_prefix="$prefix"
23488 prefix="$acl_final_prefix"
23489 acl_save_exec_prefix="$exec_prefix"
23490 exec_prefix="$acl_final_exec_prefix"
23492 exec_prefix="$acl_save_exec_prefix"
23493 prefix="$acl_save_prefix"
23495 if test "X$x" = "X-I$additional_includedir"; then
23500 if test -z "$haveit"; then
23501 if test -d "$additional_includedir"; then
23502 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23508 if test -n "$found_la"; then
23509 save_libdir="$libdir"
23510 case "$found_la" in
23511 */* | *\\*) . "$found_la" ;;
23512 *) . "./$found_la" ;;
23514 libdir="$save_libdir"
23515 for dep in $dependency_libs; do
23518 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23519 if test "X$additional_libdir" != "X/usr/lib"; then
23521 if test "X$additional_libdir" = "X/usr/local/lib"; then
23522 if test -n "$GCC"; then
23524 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23528 if test -z "$haveit"; then
23530 for x in $LDFLAGS $LIBINTL; do
23532 acl_save_prefix="$prefix"
23533 prefix="$acl_final_prefix"
23534 acl_save_exec_prefix="$exec_prefix"
23535 exec_prefix="$acl_final_exec_prefix"
23537 exec_prefix="$acl_save_exec_prefix"
23538 prefix="$acl_save_prefix"
23540 if test "X$x" = "X-L$additional_libdir"; then
23545 if test -z "$haveit"; then
23546 if test -d "$additional_libdir"; then
23547 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23551 for x in $LDFLAGS $LTLIBINTL; do
23553 acl_save_prefix="$prefix"
23554 prefix="$acl_final_prefix"
23555 acl_save_exec_prefix="$exec_prefix"
23556 exec_prefix="$acl_final_exec_prefix"
23558 exec_prefix="$acl_save_exec_prefix"
23559 prefix="$acl_save_prefix"
23561 if test "X$x" = "X-L$additional_libdir"; then
23566 if test -z "$haveit"; then
23567 if test -d "$additional_libdir"; then
23568 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23575 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23576 if test "$enable_rpath" != no; then
23578 for x in $rpathdirs; do
23579 if test "X$x" = "X$dir"; then
23584 if test -z "$haveit"; then
23585 rpathdirs="$rpathdirs $dir"
23588 for x in $ltrpathdirs; do
23589 if test "X$x" = "X$dir"; then
23594 if test -z "$haveit"; then
23595 ltrpathdirs="$ltrpathdirs $dir"
23600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23606 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23607 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23613 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23614 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23620 if test "X$rpathdirs" != "X"; then
23621 if test -n "$hardcode_libdir_separator"; then
23623 for found_dir in $rpathdirs; do
23624 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23626 acl_save_libdir="$libdir"
23628 eval flag=\"$hardcode_libdir_flag_spec\"
23629 libdir="$acl_save_libdir"
23630 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23632 for found_dir in $rpathdirs; do
23633 acl_save_libdir="$libdir"
23634 libdir="$found_dir"
23635 eval flag=\"$hardcode_libdir_flag_spec\"
23636 libdir="$acl_save_libdir"
23637 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23641 if test "X$ltrpathdirs" != "X"; then
23642 for found_dir in $ltrpathdirs; do
23643 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23647 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23648 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23649 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 gt_save_CPPFLAGS="$CPPFLAGS"
23653 CPPFLAGS="$CPPFLAGS $INCINTL"
23654 gt_save_LIBS="$LIBS"
23655 LIBS="$LIBS $LIBINTL"
23656 cat >conftest.$ac_ext <<_ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h. */
23662 #include <libintl.h>
23663 extern int _nl_msg_cat_cntr;
23668 const char *_nl_expand_alias (const char *);
23672 bindtextdomain ("", "");
23673 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_link") 2>conftest.er1
23687 grep -v '^ *+' conftest.er1 >conftest.err
23689 cat conftest.err >&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest$ac_exeext &&
23695 $as_test_x conftest$ac_exeext; then
23696 gt_cv_func_gnugettext1_libintl=yes
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 gt_cv_func_gnugettext1_libintl=no
23704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23705 conftest$ac_exeext conftest.$ac_ext
23706 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23707 LIBS="$LIBS $LIBICONV"
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 #include <libintl.h>
23715 extern int _nl_msg_cat_cntr;
23720 const char *_nl_expand_alias (const char *);
23724 bindtextdomain ("", "");
23725 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (ac_try="$ac_link"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_link") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1 >conftest.err
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest$ac_exeext &&
23747 $as_test_x conftest$ac_exeext; then
23748 LIBINTL="$LIBINTL $LIBICONV"
23749 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23750 gt_cv_func_gnugettext1_libintl=yes
23753 echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23760 conftest$ac_exeext conftest.$ac_ext
23762 CPPFLAGS="$gt_save_CPPFLAGS"
23763 LIBS="$gt_save_LIBS"
23765 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23766 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23769 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23770 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23771 && test "$PACKAGE" != gettext-runtime \
23772 && test "$PACKAGE" != gettext-tools; }; then
23773 gt_use_preinstalled_gnugettext=yes
23781 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23782 nls_cv_use_gnu_gettext=yes
23786 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23787 BUILD_INCLUDED_LIBINTL=yes
23788 USE_INCLUDED_LIBINTL=yes
23789 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23790 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23791 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23795 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23796 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23801 if test -n "$INTL_MACOSX_LIBS"; then
23802 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23803 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23804 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23805 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23809 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23810 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23812 cat >>confdefs.h <<\_ACEOF
23813 #define ENABLE_NLS 1
23821 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23822 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23823 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23824 echo "${ECHO_T}$USE_NLS" >&6; }
23825 if test "$USE_NLS" = "yes"; then
23826 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23827 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23828 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23829 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23830 gt_source="external libintl"
23835 gt_source="included intl directory"
23837 { echo "$as_me:$LINENO: result: $gt_source" >&5
23838 echo "${ECHO_T}$gt_source" >&6; }
23841 if test "$USE_NLS" = "yes"; then
23843 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23844 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23845 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23846 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23847 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23848 echo "${ECHO_T}$LIBINTL" >&6; }
23850 for element in $INCINTL; do
23852 for x in $CPPFLAGS; do
23854 acl_save_prefix="$prefix"
23855 prefix="$acl_final_prefix"
23856 acl_save_exec_prefix="$exec_prefix"
23857 exec_prefix="$acl_final_exec_prefix"
23859 exec_prefix="$acl_save_exec_prefix"
23860 prefix="$acl_save_prefix"
23862 if test "X$x" = "X$element"; then
23867 if test -z "$haveit"; then
23868 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23875 cat >>confdefs.h <<\_ACEOF
23876 #define HAVE_GETTEXT 1
23880 cat >>confdefs.h <<\_ACEOF
23881 #define HAVE_DCGETTEXT 1
23890 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23891 BUILD_INCLUDED_LIBINTL=yes
23898 nls_cv_header_intl=
23899 nls_cv_header_libgt=
23911 if test "$USE_INCLUDED_LIBINTL" = yes; then
23912 INTLOBJS="\$(GETTOBJS)"
23916 INTL_LIBTOOL_SUFFIX_PREFIX=
23920 INTLLIBS="$LIBINTL"
23932 support_postgresql=no
23934 support_smartalloc=yes
23935 support_readline=yes
23939 support_wx_console=no
23944 support_static_tools=no
23945 support_static_fd=no
23946 support_static_sd=no
23947 support_static_dir=no
23948 support_static_cons=no
23950 build_client_only=no
23958 # Check whether --enable-gnome was given.
23959 if test "${enable_gnome+set}" = set; then
23960 enableval=$enable_gnome;
23961 if test x$enableval = xyes; then
23970 if test x$support_gnome = xyes; then
23971 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23973 if test $pkg = 0; then
23974 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23975 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23976 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23977 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23982 GNOME_DIR=src/gnome2-console
23983 gnome_version="Version 2.x"
23985 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23986 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23987 { (exit 1); exit 1; }; }
23992 # Check whether --enable-bat was given.
23993 if test "${enable_bat+set}" = set; then
23994 enableval=$enable_bat;
23995 if test x$enableval = xyes; then
23997 cat >>confdefs.h <<\_ACEOF
24009 if test x$support_bat = xyes; then
24010 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24012 if test $pkg = 0; then
24013 BAT_DIR=src/qt-console
24015 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24016 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24017 { (exit 1); exit 1; }; }
24027 if test x$support_bat = xyes; then
24028 { echo "$as_me:$LINENO: checking for qwt support" >&5
24029 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24031 # Check whether --with-qwt was given.
24032 if test "${with_qwt+set}" = set; then
24034 case "$with_qwt" in
24039 if test -f ${with_qwt}/include/qwt.h; then
24040 QWT_INC="${with_qwt}/include"
24041 QWT_LDFLAGS="-L${with_qwt}/lib"
24052 if test $no_qwt = no; then
24053 if test x$QWT_INC = x; then
24054 for root in /usr /usr/local; do
24055 for ver in qwt qwt5 qwt-qt4; do
24056 if test -f ${root}/include/${ver}/qwt.h; then
24057 QWT_INC="${root}/include/${ver}"
24058 if test -d ${root}/lib64/; then
24059 QWT_LDFLAGS="-L${root}/lib64"
24060 elif test -d ${root}/lib/64/; then
24061 QWT_LDFLAGS="-L${root}/64"
24063 QWT_LDFLAGS="-L${root}/lib"
24074 if test x$QWT_INC = x; then
24075 { echo "$as_me:$LINENO: result: no" >&5
24076 echo "${ECHO_T}no" >&6; }
24079 cat >>confdefs.h <<\_ACEOF
24083 { echo "$as_me:$LINENO: result: yes" >&5
24084 echo "${ECHO_T}yes" >&6; }
24094 # Check whether --enable-bwx-console was given.
24095 if test "${enable_bwx_console+set}" = set; then
24096 enableval=$enable_bwx_console;
24097 if test x$enableval = xyes; then
24098 support_wx_console=yes
24106 if test x$support_wx_console = xyes; then
24107 abc=`$WXCONFIG $WXFLAGS --cppflags`
24109 if test $pkg = 0; then
24110 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24111 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24112 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24116 WX_DIR=src/wx-console
24119 echo "wx-config program not found. bwx-console disabled."
24121 support_wx_console=no
24126 # Check whether --enable-tray-monitor was given.
24127 if test "${enable_tray_monitor+set}" = set; then
24128 enableval=$enable_tray_monitor;
24129 if test x$enableval = xyes; then
24130 support_tray_monitor=yes
24138 if test x$support_tray_monitor = xyes; then
24139 abc=`$PKGCONFIG --exists gtk+-2.0`
24141 if test $pkg = 0; then
24142 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24143 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24146 TRAY_MONITOR_DIR=src/tray-monitor
24147 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24149 if test $pkg = 0; then
24151 cat >>confdefs.h <<\_ACEOF
24152 #define HAVE_GTK_2_4 1
24160 # Check whether --enable-smartalloc was given.
24161 if test "${enable_smartalloc+set}" = set; then
24162 enableval=$enable_smartalloc;
24163 if test x$enableval = xno; then
24164 support_smartalloc=no
24171 if test x$support_smartalloc = xyes; then
24173 cat >>confdefs.h <<\_ACEOF
24174 #define SMARTALLOC 1
24179 # Check whether --enable-static-tools was given.
24180 if test "${enable_static_tools+set}" = set; then
24181 enableval=$enable_static_tools;
24182 if test x$enableval = xyes; then
24183 support_static_tools=yes
24191 if test x$support_static_tools = xyes; then
24192 TTOOL_LDFLAGS="-static"
24196 # Check whether --enable-static-fd was given.
24197 if test "${enable_static_fd+set}" = set; then
24198 enableval=$enable_static_fd;
24199 if test x$enableval = xyes; then
24200 support_static_fd=yes
24208 if test x$support_static_fd = xyes; then
24209 STATIC_FD="static-bacula-fd"
24213 # Check whether --enable-static-sd was given.
24214 if test "${enable_static_sd+set}" = set; then
24215 enableval=$enable_static_sd;
24216 if test x$enableval = xyes; then
24217 support_static_sd=yes
24225 if test x$support_static_sd = xyes; then
24226 STATIC_SD="static-bacula-sd"
24230 # Check whether --enable-static-dir was given.
24231 if test "${enable_static_dir+set}" = set; then
24232 enableval=$enable_static_dir;
24233 if test x$enableval = xyes; then
24234 support_static_dir=yes
24242 if test x$support_static_dir = xyes; then
24243 STATIC_DIR="static-bacula-dir"
24247 # Check whether --enable-static-cons was given.
24248 if test "${enable_static_cons+set}" = set; then
24249 enableval=$enable_static_cons;
24250 if test x$enableval = xyes; then
24251 support_static_cons=yes
24261 if test x$support_static_cons = xyes; then
24262 STATIC_CONS="static-bconsole"
24263 STATIC_GNOME_CONS="static-bgnome-console"
24264 STATIC_WX_CONS="static-bwx-console"
24270 # Check whether --enable-client-only was given.
24271 if test "${enable_client_only+set}" = set; then
24272 enableval=$enable_client_only;
24273 if test x$enableval = xyes; then
24274 build_client_only=yes
24282 if test x$build_client_only = xno; then
24289 # Check whether --enable-build-dird was given.
24290 if test "${enable_build_dird+set}" = set; then
24291 enableval=$enable_build_dird;
24292 if test x$enableval = xno; then
24299 if test x$build_dird = xyes; then
24300 DIRD_DIR="src/dird"
24301 DIR_TOOLS="DIRTOOLS"
24304 DIR_TOOLS="NODIRTOOLS"
24309 # Check whether --enable-build-stored was given.
24310 if test "${enable_build_stored+set}" = set; then
24311 enableval=$enable_build_stored;
24312 if test x$enableval = xno; then
24319 if test x$build_stored = xyes; then
24320 STORED_DIR="src/stored"
24326 # Check whether --enable-conio was given.
24327 if test "${enable_conio+set}" = set; then
24328 enableval=$enable_conio;
24329 if test x$enableval = xno; then
24339 # Check whether --enable-ipv6 was given.
24340 if test "${enable_ipv6+set}" = set; then
24341 enableval=$enable_ipv6;
24342 if test x$enableval = xno; then
24350 if test x$support_ipv6 = xyes; then
24351 cat >conftest.$ac_ext <<_ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h. */
24357 #include <sys/types.h>
24358 #include <sys/socket.h>
24359 #include <netinet/in.h>
24363 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24368 rm -f conftest.$ac_objext conftest$ac_exeext
24369 if { (ac_try="$ac_link"
24370 case "(($ac_try" in
24371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24372 *) ac_try_echo=$ac_try;;
24374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24375 (eval "$ac_link") 2>conftest.er1
24377 grep -v '^ *+' conftest.er1 >conftest.err
24379 cat conftest.err >&5
24380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } && {
24382 test -z "$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 } && test -s conftest$ac_exeext &&
24385 $as_test_x conftest$ac_exeext; then
24388 echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24395 conftest$ac_exeext conftest.$ac_ext
24398 if test x$support_ipv6 = xyes; then
24400 cat >>confdefs.h <<\_ACEOF
24401 #define HAVE_IPV6 1
24407 if test x$support_conio = xyes; then
24408 if test "${ac_cv_header_termcap_h+set}" = set; then
24409 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24410 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24411 if test "${ac_cv_header_termcap_h+set}" = set; then
24412 echo $ECHO_N "(cached) $ECHO_C" >&6
24414 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24415 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24417 # Is the header compilable?
24418 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24419 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24420 cat >conftest.$ac_ext <<_ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h. */
24426 $ac_includes_default
24427 #include <termcap.h>
24429 rm -f conftest.$ac_objext
24430 if { (ac_try="$ac_compile"
24431 case "(($ac_try" in
24432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433 *) ac_try_echo=$ac_try;;
24435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24436 (eval "$ac_compile") 2>conftest.er1
24438 grep -v '^ *+' conftest.er1 >conftest.err
24440 cat conftest.err >&5
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); } && {
24443 test -z "$ac_c_werror_flag" ||
24444 test ! -s conftest.err
24445 } && test -s conftest.$ac_objext; then
24446 ac_header_compiler=yes
24448 echo "$as_me: failed program was:" >&5
24449 sed 's/^/| /' conftest.$ac_ext >&5
24451 ac_header_compiler=no
24454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24456 echo "${ECHO_T}$ac_header_compiler" >&6; }
24458 # Is the header present?
24459 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24460 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24461 cat >conftest.$ac_ext <<_ACEOF
24464 cat confdefs.h >>conftest.$ac_ext
24465 cat >>conftest.$ac_ext <<_ACEOF
24466 /* end confdefs.h. */
24467 #include <termcap.h>
24469 if { (ac_try="$ac_cpp conftest.$ac_ext"
24470 case "(($ac_try" in
24471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24472 *) ac_try_echo=$ac_try;;
24474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24477 grep -v '^ *+' conftest.er1 >conftest.err
24479 cat conftest.err >&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); } >/dev/null && {
24482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24483 test ! -s conftest.err
24485 ac_header_preproc=yes
24487 echo "$as_me: failed program was:" >&5
24488 sed 's/^/| /' conftest.$ac_ext >&5
24490 ac_header_preproc=no
24493 rm -f conftest.err conftest.$ac_ext
24494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24495 echo "${ECHO_T}$ac_header_preproc" >&6; }
24497 # So? What about this header?
24498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24500 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24501 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24502 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24503 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24504 ac_header_preproc=yes
24507 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24508 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24509 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24510 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24511 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24512 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24513 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24514 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24515 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24516 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24518 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24522 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24523 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24524 if test "${ac_cv_header_termcap_h+set}" = set; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24527 ac_cv_header_termcap_h=$ac_header_preproc
24529 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24530 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24533 if test $ac_cv_header_termcap_h = yes; then
24534 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24535 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24536 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24539 ac_check_lib_save_LIBS=$LIBS
24540 LIBS="-ltermcap $LIBS"
24541 cat >conftest.$ac_ext <<_ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h. */
24548 /* Override any GCC internal prototype to avoid an error.
24549 Use char because int might match the return type of a GCC
24550 builtin and then its argument prototype would still apply. */
24563 rm -f conftest.$ac_objext conftest$ac_exeext
24564 if { (ac_try="$ac_link"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_link") 2>conftest.er1
24572 grep -v '^ *+' conftest.er1 >conftest.err
24574 cat conftest.err >&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } && {
24577 test -z "$ac_c_werror_flag" ||
24578 test ! -s conftest.err
24579 } && test -s conftest$ac_exeext &&
24580 $as_test_x conftest$ac_exeext; then
24581 ac_cv_lib_termcap_tgetent=yes
24583 echo "$as_me: failed program was:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24586 ac_cv_lib_termcap_tgetent=no
24589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24590 conftest$ac_exeext conftest.$ac_ext
24591 LIBS=$ac_check_lib_save_LIBS
24593 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24594 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24595 if test $ac_cv_lib_termcap_tgetent = yes; then
24596 CONS_LIBS="-ltermcap"
24600 support_readline=no
24602 cat >>confdefs.h <<\_ACEOF
24603 #define HAVE_CONIO 1
24608 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24609 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24610 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24613 ac_check_lib_save_LIBS=$LIBS
24614 LIBS="-lncurses $LIBS"
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24622 /* Override any GCC internal prototype to avoid an error.
24623 Use char because int might match the return type of a GCC
24624 builtin and then its argument prototype would still apply. */
24637 rm -f conftest.$ac_objext conftest$ac_exeext
24638 if { (ac_try="$ac_link"
24639 case "(($ac_try" in
24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641 *) ac_try_echo=$ac_try;;
24643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644 (eval "$ac_link") 2>conftest.er1
24646 grep -v '^ *+' conftest.er1 >conftest.err
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } && {
24651 test -z "$ac_c_werror_flag" ||
24652 test ! -s conftest.err
24653 } && test -s conftest$ac_exeext &&
24654 $as_test_x conftest$ac_exeext; then
24655 ac_cv_lib_ncurses_tgetent=yes
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 ac_cv_lib_ncurses_tgetent=no
24663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24664 conftest$ac_exeext conftest.$ac_ext
24665 LIBS=$ac_check_lib_save_LIBS
24667 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24668 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24669 if test $ac_cv_lib_ncurses_tgetent = yes; then
24670 CONS_LIBS="-lncurses"
24674 support_readline=no
24676 cat >>confdefs.h <<\_ACEOF
24677 #define HAVE_CONIO 1
24690 for ac_header in curses.h
24692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24699 ac_res=`eval echo '${'$as_ac_Header'}'`
24700 { echo "$as_me:$LINENO: result: $ac_res" >&5
24701 echo "${ECHO_T}$ac_res" >&6; }
24703 # Is the header compilable?
24704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24706 cat >conftest.$ac_ext <<_ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712 $ac_includes_default
24713 #include <$ac_header>
24715 rm -f conftest.$ac_objext
24716 if { (ac_try="$ac_compile"
24717 case "(($ac_try" in
24718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719 *) ac_try_echo=$ac_try;;
24721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24722 (eval "$ac_compile") 2>conftest.er1
24724 grep -v '^ *+' conftest.er1 >conftest.err
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } && {
24729 test -z "$ac_c_werror_flag" ||
24730 test ! -s conftest.err
24731 } && test -s conftest.$ac_objext; then
24732 ac_header_compiler=yes
24734 echo "$as_me: failed program was:" >&5
24735 sed 's/^/| /' conftest.$ac_ext >&5
24737 ac_header_compiler=no
24740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24742 echo "${ECHO_T}$ac_header_compiler" >&6; }
24744 # Is the header present?
24745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24747 cat >conftest.$ac_ext <<_ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h. */
24753 #include <$ac_header>
24755 if { (ac_try="$ac_cpp conftest.$ac_ext"
24756 case "(($ac_try" in
24757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24758 *) ac_try_echo=$ac_try;;
24760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24763 grep -v '^ *+' conftest.er1 >conftest.err
24765 cat conftest.err >&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } >/dev/null && {
24768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24771 ac_header_preproc=yes
24773 echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_header_preproc=no
24779 rm -f conftest.err conftest.$ac_ext
24780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24781 echo "${ECHO_T}$ac_header_preproc" >&6; }
24783 # So? What about this header?
24784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24790 ac_header_preproc=yes
24793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24811 echo $ECHO_N "(cached) $ECHO_C" >&6
24813 eval "$as_ac_Header=\$ac_header_preproc"
24815 ac_res=`eval echo '${'$as_ac_Header'}'`
24816 { echo "$as_me:$LINENO: result: $ac_res" >&5
24817 echo "${ECHO_T}$ac_res" >&6; }
24820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24821 cat >>confdefs.h <<_ACEOF
24822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24829 { echo "$as_me:$LINENO: checking for term.h" >&5
24830 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24831 if test "${ac_cv_header_term_h+set}" = set; then
24832 echo $ECHO_N "(cached) $ECHO_C" >&6
24834 cat >conftest.$ac_ext <<_ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24841 #include <curses.h>
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854 (eval "$ac_compile") 2>conftest.er1
24856 grep -v '^ *+' conftest.er1 >conftest.err
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } && {
24861 test -z "$ac_c_werror_flag" ||
24862 test ! -s conftest.err
24863 } && test -s conftest.$ac_objext; then
24864 ac_cv_header_term_h=yes
24866 echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24869 ac_cv_header_term_h=no
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24875 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24876 if test $ac_cv_header_term_h = yes; then
24877 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24878 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24879 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24880 echo $ECHO_N "(cached) $ECHO_C" >&6
24882 ac_check_lib_save_LIBS=$LIBS
24883 LIBS="-lcurses $LIBS"
24884 cat >conftest.$ac_ext <<_ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h. */
24891 /* Override any GCC internal prototype to avoid an error.
24892 Use char because int might match the return type of a GCC
24893 builtin and then its argument prototype would still apply. */
24906 rm -f conftest.$ac_objext conftest$ac_exeext
24907 if { (ac_try="$ac_link"
24908 case "(($ac_try" in
24909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913 (eval "$ac_link") 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest$ac_exeext &&
24923 $as_test_x conftest$ac_exeext; then
24924 ac_cv_lib_curses_tgetent=yes
24926 echo "$as_me: failed program was:" >&5
24927 sed 's/^/| /' conftest.$ac_ext >&5
24929 ac_cv_lib_curses_tgetent=no
24932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24933 conftest$ac_exeext conftest.$ac_ext
24934 LIBS=$ac_check_lib_save_LIBS
24936 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24937 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24938 if test $ac_cv_lib_curses_tgetent = yes; then
24939 CONS_LIBS="-lcurses"
24943 support_readline=no
24945 cat >>confdefs.h <<\_ACEOF
24946 #define HAVE_CONIO 1
24954 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24965 # Check whether --enable-readline was given.
24966 if test "${enable_readline+set}" = set; then
24967 enableval=$enable_readline;
24968 if test x$enableval = xno; then
24969 support_readline=no
24978 if test x$support_readline = xyes; then
24980 # Check whether --with-readline was given.
24981 if test "${with_readline+set}" = set; then
24982 withval=$with_readline;
24983 case "$with_readline" in
24988 if test -f ${with_readline}/readline.h; then
24989 CONS_INC="-I${with_readline}"
24990 CONS_LDFLAGS="-L$with_readline"
24991 elif test -f ${with_readline}/include/readline/readline.h; then
24992 CONS_INC="-I${with_readline}/include/readline"
24993 CONS_LDFLAGS="-L${with_readline}/lib"
24994 with_readline="${with_readline}/include/readline"
24996 with_readline="/usr/include/readline"
24999 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25001 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25002 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25006 ac_res=`eval echo '${'$as_ac_Header'}'`
25007 { echo "$as_me:$LINENO: result: $ac_res" >&5
25008 echo "${ECHO_T}$ac_res" >&6; }
25010 # Is the header compilable?
25011 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25012 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25013 cat >conftest.$ac_ext <<_ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25019 $ac_includes_default
25020 #include <${with_readline}/readline.h>
25022 rm -f conftest.$ac_objext
25023 if { (ac_try="$ac_compile"
25024 case "(($ac_try" in
25025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026 *) ac_try_echo=$ac_try;;
25028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25029 (eval "$ac_compile") 2>conftest.er1
25031 grep -v '^ *+' conftest.er1 >conftest.err
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } && {
25036 test -z "$ac_c_werror_flag" ||
25037 test ! -s conftest.err
25038 } && test -s conftest.$ac_objext; then
25039 ac_header_compiler=yes
25041 echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.$ac_ext >&5
25044 ac_header_compiler=no
25047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25049 echo "${ECHO_T}$ac_header_compiler" >&6; }
25051 # Is the header present?
25052 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25053 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25054 cat >conftest.$ac_ext <<_ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25060 #include <${with_readline}/readline.h>
25062 if { (ac_try="$ac_cpp conftest.$ac_ext"
25063 case "(($ac_try" in
25064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065 *) ac_try_echo=$ac_try;;
25067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25070 grep -v '^ *+' conftest.er1 >conftest.err
25072 cat conftest.err >&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } >/dev/null && {
25075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25076 test ! -s conftest.err
25078 ac_header_preproc=yes
25080 echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25083 ac_header_preproc=no
25086 rm -f conftest.err conftest.$ac_ext
25087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25088 echo "${ECHO_T}$ac_header_preproc" >&6; }
25090 # So? What about this header?
25091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25093 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25094 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25095 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25096 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25097 ac_header_preproc=yes
25100 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25101 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25102 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25103 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25104 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25106 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25108 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25109 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25110 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25111 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25115 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25116 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25118 echo $ECHO_N "(cached) $ECHO_C" >&6
25120 eval "$as_ac_Header=\$ac_header_preproc"
25122 ac_res=`eval echo '${'$as_ac_Header'}'`
25123 { echo "$as_me:$LINENO: result: $ac_res" >&5
25124 echo "${ECHO_T}$ac_res" >&6; }
25127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25130 cat >>confdefs.h <<\_ACEOF
25131 #define HAVE_READLINE 1
25134 CONS_LIBS="-lreadline -lhistory -ltermcap"
25140 echo "readline.h not found. readline turned off ..."
25152 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25153 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25154 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25155 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25156 echo $ECHO_N "(cached) $ECHO_C" >&6
25158 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25159 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25161 # Is the header compilable?
25162 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25163 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25164 cat >conftest.$ac_ext <<_ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h. */
25170 $ac_includes_default
25171 #include </usr/include/readline/readline.h>
25173 rm -f conftest.$ac_objext
25174 if { (ac_try="$ac_compile"
25175 case "(($ac_try" in
25176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177 *) ac_try_echo=$ac_try;;
25179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25180 (eval "$ac_compile") 2>conftest.er1
25182 grep -v '^ *+' conftest.er1 >conftest.err
25184 cat conftest.err >&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); } && {
25187 test -z "$ac_c_werror_flag" ||
25188 test ! -s conftest.err
25189 } && test -s conftest.$ac_objext; then
25190 ac_header_compiler=yes
25192 echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25195 ac_header_compiler=no
25198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25200 echo "${ECHO_T}$ac_header_compiler" >&6; }
25202 # Is the header present?
25203 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25204 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25205 cat >conftest.$ac_ext <<_ACEOF
25208 cat confdefs.h >>conftest.$ac_ext
25209 cat >>conftest.$ac_ext <<_ACEOF
25210 /* end confdefs.h. */
25211 #include </usr/include/readline/readline.h>
25213 if { (ac_try="$ac_cpp conftest.$ac_ext"
25214 case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25221 grep -v '^ *+' conftest.er1 >conftest.err
25223 cat conftest.err >&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } >/dev/null && {
25226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25227 test ! -s conftest.err
25229 ac_header_preproc=yes
25231 echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25234 ac_header_preproc=no
25237 rm -f conftest.err conftest.$ac_ext
25238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25239 echo "${ECHO_T}$ac_header_preproc" >&6; }
25241 # So? What about this header?
25242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25244 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25245 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25246 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25247 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25248 ac_header_preproc=yes
25251 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25252 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25254 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25260 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25261 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25262 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25266 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25267 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25268 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25273 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25274 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25277 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25280 cat >>confdefs.h <<\_ACEOF
25281 #define HAVE_READLINE 1
25285 CONS_INC="-I/usr/include/readline"
25286 CONS_LIBS="-lreadline -ltermcap"
25290 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25292 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25293 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25295 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 ac_res=`eval echo '${'$as_ac_Header'}'`
25298 { echo "$as_me:$LINENO: result: $ac_res" >&5
25299 echo "${ECHO_T}$ac_res" >&6; }
25301 # Is the header compilable?
25302 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25303 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25304 cat >conftest.$ac_ext <<_ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h. */
25310 $ac_includes_default
25311 #include <${TOP_DIR}/depkgs/readline/readline.h>
25313 rm -f conftest.$ac_objext
25314 if { (ac_try="$ac_compile"
25315 case "(($ac_try" in
25316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317 *) ac_try_echo=$ac_try;;
25319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320 (eval "$ac_compile") 2>conftest.er1
25322 grep -v '^ *+' conftest.er1 >conftest.err
25324 cat conftest.err >&5
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } && {
25327 test -z "$ac_c_werror_flag" ||
25328 test ! -s conftest.err
25329 } && test -s conftest.$ac_objext; then
25330 ac_header_compiler=yes
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ac_header_compiler=no
25338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25340 echo "${ECHO_T}$ac_header_compiler" >&6; }
25342 # Is the header present?
25343 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25344 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25345 cat >conftest.$ac_ext <<_ACEOF
25348 cat confdefs.h >>conftest.$ac_ext
25349 cat >>conftest.$ac_ext <<_ACEOF
25350 /* end confdefs.h. */
25351 #include <${TOP_DIR}/depkgs/readline/readline.h>
25353 if { (ac_try="$ac_cpp conftest.$ac_ext"
25354 case "(($ac_try" in
25355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356 *) ac_try_echo=$ac_try;;
25358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25361 grep -v '^ *+' conftest.er1 >conftest.err
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } >/dev/null && {
25366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25367 test ! -s conftest.err
25369 ac_header_preproc=yes
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25374 ac_header_preproc=no
25377 rm -f conftest.err conftest.$ac_ext
25378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25379 echo "${ECHO_T}$ac_header_preproc" >&6; }
25381 # So? What about this header?
25382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25384 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25385 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25386 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25387 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25388 ac_header_preproc=yes
25391 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25392 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25399 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25400 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25401 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25402 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25406 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25407 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25409 echo $ECHO_N "(cached) $ECHO_C" >&6
25411 eval "$as_ac_Header=\$ac_header_preproc"
25413 ac_res=`eval echo '${'$as_ac_Header'}'`
25414 { echo "$as_me:$LINENO: result: $ac_res" >&5
25415 echo "${ECHO_T}$ac_res" >&6; }
25418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25421 cat >>confdefs.h <<\_ACEOF
25422 #define HAVE_READLINE 1
25426 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25427 CONS_LIBS="-lreadline -lhistory -ltermcap"
25428 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25429 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25434 echo "readline.h not found. readline turned off ..."
25461 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25462 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25463 if test "${ac_cv_header_stat_broken+set}" = set; then
25464 echo $ECHO_N "(cached) $ECHO_C" >&6
25466 cat >conftest.$ac_ext <<_ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h. */
25472 #include <sys/types.h>
25473 #include <sys/stat.h>
25475 #if defined S_ISBLK && defined S_IFDIR
25476 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25479 #if defined S_ISBLK && defined S_IFCHR
25480 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25483 #if defined S_ISLNK && defined S_IFREG
25484 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25487 #if defined S_ISSOCK && defined S_IFREG
25488 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25492 rm -f conftest.$ac_objext
25493 if { (ac_try="$ac_compile"
25494 case "(($ac_try" in
25495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496 *) ac_try_echo=$ac_try;;
25498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25499 (eval "$ac_compile") 2>conftest.er1
25501 grep -v '^ *+' conftest.er1 >conftest.err
25503 cat conftest.err >&5
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); } && {
25506 test -z "$ac_c_werror_flag" ||
25507 test ! -s conftest.err
25508 } && test -s conftest.$ac_objext; then
25509 ac_cv_header_stat_broken=no
25511 echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25514 ac_cv_header_stat_broken=yes
25517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25519 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25520 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25521 if test $ac_cv_header_stat_broken = yes; then
25523 cat >>confdefs.h <<\_ACEOF
25524 #define STAT_MACROS_BROKEN 1
25534 ac_header_dirent=no
25535 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25536 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25537 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25538 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25540 echo $ECHO_N "(cached) $ECHO_C" >&6
25542 cat >conftest.$ac_ext <<_ACEOF
25545 cat confdefs.h >>conftest.$ac_ext
25546 cat >>conftest.$ac_ext <<_ACEOF
25547 /* end confdefs.h. */
25548 #include <sys/types.h>
25560 rm -f conftest.$ac_objext
25561 if { (ac_try="$ac_compile"
25562 case "(($ac_try" in
25563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564 *) ac_try_echo=$ac_try;;
25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567 (eval "$ac_compile") 2>conftest.er1
25569 grep -v '^ *+' conftest.er1 >conftest.err
25571 cat conftest.err >&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } && {
25574 test -z "$ac_c_werror_flag" ||
25575 test ! -s conftest.err
25576 } && test -s conftest.$ac_objext; then
25577 eval "$as_ac_Header=yes"
25579 echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25582 eval "$as_ac_Header=no"
25585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25587 ac_res=`eval echo '${'$as_ac_Header'}'`
25588 { echo "$as_me:$LINENO: result: $ac_res" >&5
25589 echo "${ECHO_T}$ac_res" >&6; }
25590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25591 cat >>confdefs.h <<_ACEOF
25592 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25595 ac_header_dirent=$ac_hdr; break
25599 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25600 if test $ac_header_dirent = dirent.h; then
25601 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25602 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25603 if test "${ac_cv_search_opendir+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25606 ac_func_search_save_LIBS=$LIBS
25607 cat >conftest.$ac_ext <<_ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h. */
25614 /* Override any GCC internal prototype to avoid an error.
25615 Use char because int might match the return type of a GCC
25616 builtin and then its argument prototype would still apply. */
25629 for ac_lib in '' dir; do
25630 if test -z "$ac_lib"; then
25631 ac_res="none required"
25634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25636 rm -f conftest.$ac_objext conftest$ac_exeext
25637 if { (ac_try="$ac_link"
25638 case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643 (eval "$ac_link") 2>conftest.er1
25645 grep -v '^ *+' conftest.er1 >conftest.err
25647 cat conftest.err >&5
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } && {
25650 test -z "$ac_c_werror_flag" ||
25651 test ! -s conftest.err
25652 } && test -s conftest$ac_exeext &&
25653 $as_test_x conftest$ac_exeext; then
25654 ac_cv_search_opendir=$ac_res
25656 echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25664 if test "${ac_cv_search_opendir+set}" = set; then
25668 if test "${ac_cv_search_opendir+set}" = set; then
25671 ac_cv_search_opendir=no
25673 rm conftest.$ac_ext
25674 LIBS=$ac_func_search_save_LIBS
25676 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25677 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25678 ac_res=$ac_cv_search_opendir
25679 if test "$ac_res" != no; then
25680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25685 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25686 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25687 if test "${ac_cv_search_opendir+set}" = set; then
25688 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 ac_func_search_save_LIBS=$LIBS
25691 cat >conftest.$ac_ext <<_ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h. */
25698 /* Override any GCC internal prototype to avoid an error.
25699 Use char because int might match the return type of a GCC
25700 builtin and then its argument prototype would still apply. */
25713 for ac_lib in '' x; do
25714 if test -z "$ac_lib"; then
25715 ac_res="none required"
25718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25720 rm -f conftest.$ac_objext conftest$ac_exeext
25721 if { (ac_try="$ac_link"
25722 case "(($ac_try" in
25723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25724 *) ac_try_echo=$ac_try;;
25726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25727 (eval "$ac_link") 2>conftest.er1
25729 grep -v '^ *+' conftest.er1 >conftest.err
25731 cat conftest.err >&5
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); } && {
25734 test -z "$ac_c_werror_flag" ||
25735 test ! -s conftest.err
25736 } && test -s conftest$ac_exeext &&
25737 $as_test_x conftest$ac_exeext; then
25738 ac_cv_search_opendir=$ac_res
25740 echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25748 if test "${ac_cv_search_opendir+set}" = set; then
25752 if test "${ac_cv_search_opendir+set}" = set; then
25755 ac_cv_search_opendir=no
25757 rm conftest.$ac_ext
25758 LIBS=$ac_func_search_save_LIBS
25760 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25761 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25762 ac_res=$ac_cv_search_opendir
25763 if test "$ac_res" != no; then
25764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25777 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25783 echo $ECHO_N "(cached) $ECHO_C" >&6
25785 cat >conftest.$ac_ext <<_ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h. */
25791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25793 #define $ac_func innocuous_$ac_func
25795 /* System header to define __stub macros and hopefully few prototypes,
25796 which can conflict with char $ac_func (); below.
25797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25798 <limits.h> exists even on freestanding compilers. */
25801 # include <limits.h>
25803 # include <assert.h>
25808 /* Override any GCC internal prototype to avoid an error.
25809 Use char because int might match the return type of a GCC
25810 builtin and then its argument prototype would still apply. */
25815 /* The GNU C library defines this for functions which it implements
25816 to always fail with ENOSYS. Some functions are actually named
25817 something starting with __ and the normal name is an alias. */
25818 #if defined __stub_$ac_func || defined __stub___$ac_func
25825 return $ac_func ();
25830 rm -f conftest.$ac_objext conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837 (eval "$ac_link") 2>conftest.er1
25839 grep -v '^ *+' conftest.er1 >conftest.err
25841 cat conftest.err >&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } && {
25844 test -z "$ac_c_werror_flag" ||
25845 test ! -s conftest.err
25846 } && test -s conftest$ac_exeext &&
25847 $as_test_x conftest$ac_exeext; then
25848 eval "$as_ac_var=yes"
25850 echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25853 eval "$as_ac_var=no"
25856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25857 conftest$ac_exeext conftest.$ac_ext
25859 ac_res=`eval echo '${'$as_ac_var'}'`
25860 { echo "$as_me:$LINENO: result: $ac_res" >&5
25861 echo "${ECHO_T}$ac_res" >&6; }
25862 if test `eval echo '${'$as_ac_var'}'` = yes; then
25863 cat >>confdefs.h <<_ACEOF
25864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25872 for ac_func in nanosleep nl_langinfo
25874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25878 echo $ECHO_N "(cached) $ECHO_C" >&6
25880 cat >conftest.$ac_ext <<_ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25888 #define $ac_func innocuous_$ac_func
25890 /* System header to define __stub macros and hopefully few prototypes,
25891 which can conflict with char $ac_func (); below.
25892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25893 <limits.h> exists even on freestanding compilers. */
25896 # include <limits.h>
25898 # include <assert.h>
25903 /* Override any GCC internal prototype to avoid an error.
25904 Use char because int might match the return type of a GCC
25905 builtin and then its argument prototype would still apply. */
25910 /* The GNU C library defines this for functions which it implements
25911 to always fail with ENOSYS. Some functions are actually named
25912 something starting with __ and the normal name is an alias. */
25913 #if defined __stub_$ac_func || defined __stub___$ac_func
25920 return $ac_func ();
25925 rm -f conftest.$ac_objext conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929 *) ac_try_echo=$ac_try;;
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932 (eval "$ac_link") 2>conftest.er1
25934 grep -v '^ *+' conftest.er1 >conftest.err
25936 cat conftest.err >&5
25937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938 (exit $ac_status); } && {
25939 test -z "$ac_c_werror_flag" ||
25940 test ! -s conftest.err
25941 } && test -s conftest$ac_exeext &&
25942 $as_test_x conftest$ac_exeext; then
25943 eval "$as_ac_var=yes"
25945 echo "$as_me: failed program was:" >&5
25946 sed 's/^/| /' conftest.$ac_ext >&5
25948 eval "$as_ac_var=no"
25951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25952 conftest$ac_exeext conftest.$ac_ext
25954 ac_res=`eval echo '${'$as_ac_var'}'`
25955 { echo "$as_me:$LINENO: result: $ac_res" >&5
25956 echo "${ECHO_T}$ac_res" >&6; }
25957 if test `eval echo '${'$as_ac_var'}'` = yes; then
25958 cat >>confdefs.h <<_ACEOF
25959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25966 for ac_header in varargs.h
25968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25973 echo $ECHO_N "(cached) $ECHO_C" >&6
25975 ac_res=`eval echo '${'$as_ac_Header'}'`
25976 { echo "$as_me:$LINENO: result: $ac_res" >&5
25977 echo "${ECHO_T}$ac_res" >&6; }
25979 # Is the header compilable?
25980 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25982 cat >conftest.$ac_ext <<_ACEOF
25985 cat confdefs.h >>conftest.$ac_ext
25986 cat >>conftest.$ac_ext <<_ACEOF
25987 /* end confdefs.h. */
25988 $ac_includes_default
25989 #include <$ac_header>
25991 rm -f conftest.$ac_objext
25992 if { (ac_try="$ac_compile"
25993 case "(($ac_try" in
25994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995 *) ac_try_echo=$ac_try;;
25997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25998 (eval "$ac_compile") 2>conftest.er1
26000 grep -v '^ *+' conftest.er1 >conftest.err
26002 cat conftest.err >&5
26003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); } && {
26005 test -z "$ac_c_werror_flag" ||
26006 test ! -s conftest.err
26007 } && test -s conftest.$ac_objext; then
26008 ac_header_compiler=yes
26010 echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26013 ac_header_compiler=no
26016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26018 echo "${ECHO_T}$ac_header_compiler" >&6; }
26020 # Is the header present?
26021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26023 cat >conftest.$ac_ext <<_ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h. */
26029 #include <$ac_header>
26031 if { (ac_try="$ac_cpp conftest.$ac_ext"
26032 case "(($ac_try" in
26033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034 *) ac_try_echo=$ac_try;;
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26039 grep -v '^ *+' conftest.er1 >conftest.err
26041 cat conftest.err >&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } >/dev/null && {
26044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26045 test ! -s conftest.err
26047 ac_header_preproc=yes
26049 echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26052 ac_header_preproc=no
26055 rm -f conftest.err conftest.$ac_ext
26056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26057 echo "${ECHO_T}$ac_header_preproc" >&6; }
26059 # So? What about this header?
26060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26066 ac_header_preproc=yes
26069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26087 echo $ECHO_N "(cached) $ECHO_C" >&6
26089 eval "$as_ac_Header=\$ac_header_preproc"
26091 ac_res=`eval echo '${'$as_ac_Header'}'`
26092 { echo "$as_me:$LINENO: result: $ac_res" >&5
26093 echo "${ECHO_T}$ac_res" >&6; }
26096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26097 cat >>confdefs.h <<_ACEOF
26098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26107 { echo "$as_me:$LINENO: checking for Python support" >&5
26108 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26110 # Check whether --with-python was given.
26111 if test "${with_python+set}" = set; then
26112 withval=$with_python;
26115 if test "$withval" != "no"; then
26116 if test "$withval" = "yes"; then
26117 for python_root in /usr /usr/local /usr/sfw; do
26118 for ver in python2.2 python2.3 python2.4 python2.5; do
26119 if test -f $python_root/include/${ver}/Python.h; then
26120 PYTHON_INCDIR=-I$python_root/include/${ver}
26121 if test -d $python_root/lib64/${ver}/config; then
26122 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26124 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26131 if test x$PYTHON_INCDIR = x; then
26132 if test -f $prefix/include/Python.h; then
26133 PYTHON_INCDIR=-I$prefix/include
26134 if test -d $prefix/lib64/config; then
26135 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26137 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26140 { echo "$as_me:$LINENO: result: no" >&5
26141 echo "${ECHO_T}no" >&6; }
26142 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26143 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26144 { (exit 1); exit 1; }; }
26148 if test -f $withval/Python.h; then
26149 PYTHON_INCDIR=-I$withval
26150 PYTHON_LIBS="-L$withval/config -lpython"
26151 elif test -f $withval/include/Python.h; then
26152 PYTHON_INCDIR=-I$withval/include
26153 if test -d $withval/lib64/config; then
26154 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26156 PYTHON_LIBS="-L$withval/lib/config -lpython"
26158 elif test -f $withval/include/python/Python.h; then
26159 PYTHON_INCDIR=-I$withval/include/python
26160 if test -d $withval/lib64/python/config; then
26161 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26163 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26166 { echo "$as_me:$LINENO: result: no" >&5
26167 echo "${ECHO_T}no" >&6; }
26168 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26169 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26170 { (exit 1); exit 1; }; }
26174 cat >>confdefs.h <<\_ACEOF
26175 #define HAVE_PYTHON 1
26178 { echo "$as_me:$LINENO: result: yes" >&5
26179 echo "${ECHO_T}yes" >&6; }
26181 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26182 echo "$as_me: checking for more Python libs" >&6;}
26183 saved_LIBS="$LIBS"; LIBS=
26184 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26185 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26186 if test "${ac_cv_search_shm_open+set}" = set; then
26187 echo $ECHO_N "(cached) $ECHO_C" >&6
26189 ac_func_search_save_LIBS=$LIBS
26190 cat >conftest.$ac_ext <<_ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26197 /* Override any GCC internal prototype to avoid an error.
26198 Use char because int might match the return type of a GCC
26199 builtin and then its argument prototype would still apply. */
26207 return shm_open ();
26212 for ac_lib in '' rt; do
26213 if test -z "$ac_lib"; then
26214 ac_res="none required"
26217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26219 rm -f conftest.$ac_objext conftest$ac_exeext
26220 if { (ac_try="$ac_link"
26221 case "(($ac_try" in
26222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223 *) ac_try_echo=$ac_try;;
26225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26226 (eval "$ac_link") 2>conftest.er1
26228 grep -v '^ *+' conftest.er1 >conftest.err
26230 cat conftest.err >&5
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); } && {
26233 test -z "$ac_c_werror_flag" ||
26234 test ! -s conftest.err
26235 } && test -s conftest$ac_exeext &&
26236 $as_test_x conftest$ac_exeext; then
26237 ac_cv_search_shm_open=$ac_res
26239 echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26247 if test "${ac_cv_search_shm_open+set}" = set; then
26251 if test "${ac_cv_search_shm_open+set}" = set; then
26254 ac_cv_search_shm_open=no
26256 rm conftest.$ac_ext
26257 LIBS=$ac_func_search_save_LIBS
26259 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26260 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26261 ac_res=$ac_cv_search_shm_open
26262 if test "$ac_res" != no; then
26263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26268 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26269 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26270 if test "${ac_cv_lib_util_openpty+set}" = set; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
26273 ac_check_lib_save_LIBS=$LIBS
26274 LIBS="-lutil $LIBS"
26275 cat >conftest.$ac_ext <<_ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26282 /* Override any GCC internal prototype to avoid an error.
26283 Use char because int might match the return type of a GCC
26284 builtin and then its argument prototype would still apply. */
26297 rm -f conftest.$ac_objext conftest$ac_exeext
26298 if { (ac_try="$ac_link"
26299 case "(($ac_try" in
26300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26301 *) ac_try_echo=$ac_try;;
26303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26304 (eval "$ac_link") 2>conftest.er1
26306 grep -v '^ *+' conftest.er1 >conftest.err
26308 cat conftest.err >&5
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); } && {
26311 test -z "$ac_c_werror_flag" ||
26312 test ! -s conftest.err
26313 } && test -s conftest$ac_exeext &&
26314 $as_test_x conftest$ac_exeext; then
26315 ac_cv_lib_util_openpty=yes
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 ac_cv_lib_util_openpty=no
26323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26324 conftest$ac_exeext conftest.$ac_ext
26325 LIBS=$ac_check_lib_save_LIBS
26327 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26328 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26329 if test $ac_cv_lib_util_openpty = yes; then
26330 cat >>confdefs.h <<_ACEOF
26331 #define HAVE_LIBUTIL 1
26334 LIBS="-lutil $LIBS"
26338 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26341 { echo "$as_me:$LINENO: result: no" >&5
26342 echo "${ECHO_T}no" >&6; }
26347 { echo "$as_me:$LINENO: result: no" >&5
26348 echo "${ECHO_T}no" >&6; }
26356 { echo "$as_me:$LINENO: checking for socket" >&5
26357 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26358 if test "${ac_cv_func_socket+set}" = set; then
26359 echo $ECHO_N "(cached) $ECHO_C" >&6
26361 cat >conftest.$ac_ext <<_ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26367 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26369 #define socket innocuous_socket
26371 /* System header to define __stub macros and hopefully few prototypes,
26372 which can conflict with char socket (); below.
26373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26374 <limits.h> exists even on freestanding compilers. */
26377 # include <limits.h>
26379 # include <assert.h>
26384 /* Override any GCC internal prototype to avoid an error.
26385 Use char because int might match the return type of a GCC
26386 builtin and then its argument prototype would still apply. */
26391 /* The GNU C library defines this for functions which it implements
26392 to always fail with ENOSYS. Some functions are actually named
26393 something starting with __ and the normal name is an alias. */
26394 #if defined __stub_socket || defined __stub___socket
26406 rm -f conftest.$ac_objext conftest$ac_exeext
26407 if { (ac_try="$ac_link"
26408 case "(($ac_try" in
26409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410 *) ac_try_echo=$ac_try;;
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413 (eval "$ac_link") 2>conftest.er1
26415 grep -v '^ *+' conftest.er1 >conftest.err
26417 cat conftest.err >&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } && {
26420 test -z "$ac_c_werror_flag" ||
26421 test ! -s conftest.err
26422 } && test -s conftest$ac_exeext &&
26423 $as_test_x conftest$ac_exeext; then
26424 ac_cv_func_socket=yes
26426 echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26429 ac_cv_func_socket=no
26432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26433 conftest$ac_exeext conftest.$ac_ext
26435 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26436 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26437 if test $ac_cv_func_socket = yes; then
26438 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26439 echo "${ECHO_T}using libc's socket" >&6; }
26442 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26443 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26444 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26447 ac_check_lib_save_LIBS=$LIBS
26448 LIBS="-lxnet $LIBS"
26449 cat >conftest.$ac_ext <<_ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h. */
26456 /* Override any GCC internal prototype to avoid an error.
26457 Use char because int might match the return type of a GCC
26458 builtin and then its argument prototype would still apply. */
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (ac_try="$ac_link"
26473 case "(($ac_try" in
26474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475 *) ac_try_echo=$ac_try;;
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478 (eval "$ac_link") 2>conftest.er1
26480 grep -v '^ *+' conftest.er1 >conftest.err
26482 cat conftest.err >&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } && {
26485 test -z "$ac_c_werror_flag" ||
26486 test ! -s conftest.err
26487 } && test -s conftest$ac_exeext &&
26488 $as_test_x conftest$ac_exeext; then
26489 ac_cv_lib_xnet_socket=yes
26491 echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26494 ac_cv_lib_xnet_socket=no
26497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26498 conftest$ac_exeext conftest.$ac_ext
26499 LIBS=$ac_check_lib_save_LIBS
26501 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26502 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26503 if test $ac_cv_lib_xnet_socket = yes; then
26504 cat >>confdefs.h <<_ACEOF
26505 #define HAVE_LIBXNET 1
26508 LIBS="-lxnet $LIBS"
26513 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26514 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26515 if test "${ac_cv_lib_socket_socket+set}" = set; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26518 ac_check_lib_save_LIBS=$LIBS
26519 LIBS="-lsocket $LIBS"
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26527 /* Override any GCC internal prototype to avoid an error.
26528 Use char because int might match the return type of a GCC
26529 builtin and then its argument prototype would still apply. */
26542 rm -f conftest.$ac_objext conftest$ac_exeext
26543 if { (ac_try="$ac_link"
26544 case "(($ac_try" in
26545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546 *) ac_try_echo=$ac_try;;
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549 (eval "$ac_link") 2>conftest.er1
26551 grep -v '^ *+' conftest.er1 >conftest.err
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } && {
26556 test -z "$ac_c_werror_flag" ||
26557 test ! -s conftest.err
26558 } && test -s conftest$ac_exeext &&
26559 $as_test_x conftest$ac_exeext; then
26560 ac_cv_lib_socket_socket=yes
26562 echo "$as_me: failed program was:" >&5
26563 sed 's/^/| /' conftest.$ac_ext >&5
26565 ac_cv_lib_socket_socket=no
26568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26569 conftest$ac_exeext conftest.$ac_ext
26570 LIBS=$ac_check_lib_save_LIBS
26572 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26573 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26574 if test $ac_cv_lib_socket_socket = yes; then
26575 cat >>confdefs.h <<_ACEOF
26576 #define HAVE_LIBSOCKET 1
26579 LIBS="-lsocket $LIBS"
26584 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26585 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26586 if test "${ac_cv_lib_inet_socket+set}" = set; then
26587 echo $ECHO_N "(cached) $ECHO_C" >&6
26589 ac_check_lib_save_LIBS=$LIBS
26590 LIBS="-linet $LIBS"
26591 cat >conftest.$ac_ext <<_ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h. */
26598 /* Override any GCC internal prototype to avoid an error.
26599 Use char because int might match the return type of a GCC
26600 builtin and then its argument prototype would still apply. */
26613 rm -f conftest.$ac_objext conftest$ac_exeext
26614 if { (ac_try="$ac_link"
26615 case "(($ac_try" in
26616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26617 *) ac_try_echo=$ac_try;;
26619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26620 (eval "$ac_link") 2>conftest.er1
26622 grep -v '^ *+' conftest.er1 >conftest.err
26624 cat conftest.err >&5
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } && {
26627 test -z "$ac_c_werror_flag" ||
26628 test ! -s conftest.err
26629 } && test -s conftest$ac_exeext &&
26630 $as_test_x conftest$ac_exeext; then
26631 ac_cv_lib_inet_socket=yes
26633 echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26636 ac_cv_lib_inet_socket=no
26639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26640 conftest$ac_exeext conftest.$ac_ext
26641 LIBS=$ac_check_lib_save_LIBS
26643 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26644 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26645 if test $ac_cv_lib_inet_socket = yes; then
26646 cat >>confdefs.h <<_ACEOF
26647 #define HAVE_LIBINET 1
26650 LIBS="-linet $LIBS"
26660 # Check whether --with-tcp-wrappers was given.
26661 if test "${with_tcp_wrappers+set}" = set; then
26662 withval=$with_tcp_wrappers;
26663 if test "x$withval" != "xno" ; then
26665 LIBS="$saved_LIBS -lwrap"
26666 { echo "$as_me:$LINENO: checking for libwrap" >&5
26667 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26668 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26669 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26670 if test "${ac_cv_search_nanosleep+set}" = set; then
26671 echo $ECHO_N "(cached) $ECHO_C" >&6
26673 ac_func_search_save_LIBS=$LIBS
26674 cat >conftest.$ac_ext <<_ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h. */
26681 /* Override any GCC internal prototype to avoid an error.
26682 Use char because int might match the return type of a GCC
26683 builtin and then its argument prototype would still apply. */
26691 return nanosleep ();
26696 for ac_lib in '' rt; do
26697 if test -z "$ac_lib"; then
26698 ac_res="none required"
26701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26703 rm -f conftest.$ac_objext conftest$ac_exeext
26704 if { (ac_try="$ac_link"
26705 case "(($ac_try" in
26706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26707 *) ac_try_echo=$ac_try;;
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710 (eval "$ac_link") 2>conftest.er1
26712 grep -v '^ *+' conftest.er1 >conftest.err
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } && {
26717 test -z "$ac_c_werror_flag" ||
26718 test ! -s conftest.err
26719 } && test -s conftest$ac_exeext &&
26720 $as_test_x conftest$ac_exeext; then
26721 ac_cv_search_nanosleep=$ac_res
26723 echo "$as_me: failed program was:" >&5
26724 sed 's/^/| /' conftest.$ac_ext >&5
26729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26731 if test "${ac_cv_search_nanosleep+set}" = set; then
26735 if test "${ac_cv_search_nanosleep+set}" = set; then
26738 ac_cv_search_nanosleep=no
26740 rm conftest.$ac_ext
26741 LIBS=$ac_func_search_save_LIBS
26743 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26744 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26745 ac_res=$ac_cv_search_nanosleep
26746 if test "$ac_res" != no; then
26747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26751 cat >conftest.$ac_ext <<_ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26758 #include <sys/types.h>
26760 int deny_severity = 0;
26761 int allow_severity = 0;
26762 struct request_info *req;
26774 rm -f conftest.$ac_objext conftest$ac_exeext
26775 if { (ac_try="$ac_link"
26776 case "(($ac_try" in
26777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26778 *) ac_try_echo=$ac_try;;
26780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26781 (eval "$ac_link") 2>conftest.er1
26783 grep -v '^ *+' conftest.er1 >conftest.err
26785 cat conftest.err >&5
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); } && {
26788 test -z "$ac_c_werror_flag" ||
26789 test ! -s conftest.err
26790 } && test -s conftest$ac_exeext &&
26791 $as_test_x conftest$ac_exeext; then
26793 { echo "$as_me:$LINENO: result: yes" >&5
26794 echo "${ECHO_T}yes" >&6; }
26796 cat >>confdefs.h <<\_ACEOF
26797 #define HAVE_LIBWRAP 1
26805 echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26809 LIBS="$saved_LIBS -lwrap -lnsl"
26810 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26818 #include <sys/types.h>
26820 int deny_severity = 0;
26821 int allow_severity = 0;
26822 struct request_info *req;
26834 rm -f conftest.$ac_objext conftest$ac_exeext
26835 if { (ac_try="$ac_link"
26836 case "(($ac_try" in
26837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26838 *) ac_try_echo=$ac_try;;
26840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26841 (eval "$ac_link") 2>conftest.er1
26843 grep -v '^ *+' conftest.er1 >conftest.err
26845 cat conftest.err >&5
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } && {
26848 test -z "$ac_c_werror_flag" ||
26849 test ! -s conftest.err
26850 } && test -s conftest$ac_exeext &&
26851 $as_test_x conftest$ac_exeext; then
26853 { echo "$as_me:$LINENO: result: yes" >&5
26854 echo "${ECHO_T}yes" >&6; }
26856 cat >>confdefs.h <<\_ACEOF
26857 #define HAVE_LIBWRAP 1
26865 echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26869 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26870 echo "$as_me: error: *** libwrap missing" >&2;}
26871 { (exit 1); exit 1; }; }
26876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26877 conftest$ac_exeext conftest.$ac_ext
26882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26883 conftest$ac_exeext conftest.$ac_ext
26890 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26891 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26893 # Check whether --with-openssl was given.
26894 if test "${with_openssl+set}" = set; then
26895 withval=$with_openssl;
26896 with_openssl_directory=${withval}
26902 if test "x$with_openssl_directory" != "xno"; then
26903 OPENSSL_LIBS="-lssl -lcrypto"
26906 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26908 # Make sure the $with_openssl_directory also makes sense
26910 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26911 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26912 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26916 saved_LIBS="${LIBS}"
26917 saved_CFLAGS="${CFLAGS}"
26918 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26919 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26921 cat >conftest.$ac_ext <<_ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26928 #include <openssl/ssl.h>
26934 CRYPTO_set_id_callback(NULL);
26940 rm -f conftest.$ac_objext conftest$ac_exeext
26941 if { (ac_try="$ac_link"
26942 case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_link") 2>conftest.er1
26949 grep -v '^ *+' conftest.er1 >conftest.err
26951 cat conftest.err >&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } && {
26954 test -z "$ac_c_werror_flag" ||
26955 test ! -s conftest.err
26956 } && test -s conftest$ac_exeext &&
26957 $as_test_x conftest$ac_exeext; then
26960 support_crypto="yes"
26963 echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26973 conftest$ac_exeext conftest.$ac_ext
26975 cat >conftest.$ac_ext <<_ACEOF
26978 cat confdefs.h >>conftest.$ac_ext
26979 cat >>conftest.$ac_ext <<_ACEOF
26980 /* end confdefs.h. */
26982 #include <openssl/evp.h>
26994 rm -f conftest.$ac_objext conftest$ac_exeext
26995 if { (ac_try="$ac_link"
26996 case "(($ac_try" in
26997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998 *) ac_try_echo=$ac_try;;
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001 (eval "$ac_link") 2>conftest.er1
27003 grep -v '^ *+' conftest.er1 >conftest.err
27005 cat conftest.err >&5
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); } && {
27008 test -z "$ac_c_werror_flag" ||
27009 test ! -s conftest.err
27010 } && test -s conftest$ac_exeext &&
27011 $as_test_x conftest$ac_exeext; then
27013 ac_cv_openssl_sha2="yes"
27016 echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27020 ac_cv_openssl_sha2="no"
27025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27026 conftest$ac_exeext conftest.$ac_ext
27028 cat >conftest.$ac_ext <<_ACEOF
27031 cat confdefs.h >>conftest.$ac_ext
27032 cat >>conftest.$ac_ext <<_ACEOF
27033 /* end confdefs.h. */
27035 #include <openssl/evp.h>
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (ac_try="$ac_link"
27049 case "(($ac_try" in
27050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051 *) ac_try_echo=$ac_try;;
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054 (eval "$ac_link") 2>conftest.er1
27056 grep -v '^ *+' conftest.er1 >conftest.err
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } && {
27061 test -z "$ac_c_werror_flag" ||
27062 test ! -s conftest.err
27063 } && test -s conftest$ac_exeext &&
27064 $as_test_x conftest$ac_exeext; then
27066 ac_cv_openssl_export="no"
27069 echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27073 ac_cv_openssl_export="yes"
27078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27079 conftest$ac_exeext conftest.$ac_ext
27081 LIBS="${saved_LIBS}"
27082 CFLAGS="${saved_CFLAGS}"
27084 if test "$support_tls" = "yes"; then
27086 cat >>confdefs.h <<\_ACEOF
27087 #define HAVE_OPENSSL 1
27091 cat >>confdefs.h <<\_ACEOF
27096 cat >>confdefs.h <<\_ACEOF
27097 #define HAVE_CRYPTO 1
27102 if test "$ac_cv_openssl_sha2" = "yes"; then
27104 cat >>confdefs.h <<\_ACEOF
27105 #define HAVE_SHA2 1
27110 if test "$ac_cv_openssl_export" = "yes"; then
27112 cat >>confdefs.h <<\_ACEOF
27113 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27119 support_crypto="no"
27124 { echo "$as_me:$LINENO: result: $support_tls" >&5
27125 echo "${ECHO_T}$support_tls" >&6; }
27129 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27130 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27131 if test "${ac_cv_search_dlopen+set}" = set; then
27132 echo $ECHO_N "(cached) $ECHO_C" >&6
27134 ac_func_search_save_LIBS=$LIBS
27135 cat >conftest.$ac_ext <<_ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h. */
27142 /* Override any GCC internal prototype to avoid an error.
27143 Use char because int might match the return type of a GCC
27144 builtin and then its argument prototype would still apply. */
27157 for ac_lib in '' dl; do
27158 if test -z "$ac_lib"; then
27159 ac_res="none required"
27162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27164 rm -f conftest.$ac_objext conftest$ac_exeext
27165 if { (ac_try="$ac_link"
27166 case "(($ac_try" in
27167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168 *) ac_try_echo=$ac_try;;
27170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171 (eval "$ac_link") 2>conftest.er1
27173 grep -v '^ *+' conftest.er1 >conftest.err
27175 cat conftest.err >&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } && {
27178 test -z "$ac_c_werror_flag" ||
27179 test ! -s conftest.err
27180 } && test -s conftest$ac_exeext &&
27181 $as_test_x conftest$ac_exeext; then
27182 ac_cv_search_dlopen=$ac_res
27184 echo "$as_me: failed program was:" >&5
27185 sed 's/^/| /' conftest.$ac_ext >&5
27190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27192 if test "${ac_cv_search_dlopen+set}" = set; then
27196 if test "${ac_cv_search_dlopen+set}" = set; then
27199 ac_cv_search_dlopen=no
27201 rm conftest.$ac_ext
27202 LIBS=$ac_func_search_save_LIBS
27204 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27205 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27206 ac_res=$ac_cv_search_dlopen
27207 if test "$ac_res" != no; then
27208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27213 working_dir=`eval echo ${prefix}/var/bacula/working`
27215 # Check whether --with-working-dir was given.
27216 if test "${with_working_dir+set}" = set; then
27217 withval=$with_working_dir;
27218 if test "x$withval" != "xno" ; then
27219 working_dir=$withval
27230 # Check whether --with-archivedir was given.
27231 if test "${with_archivedir+set}" = set; then
27232 withval=$with_archivedir;
27233 if test "x$withval" != "xno" ; then
27234 archivedir=$withval
27243 scriptdir=`eval echo ${sysconfdir}`
27245 # Check whether --with-scriptdir was given.
27246 if test "${with_scriptdir+set}" = set; then
27247 withval=$with_scriptdir;
27248 if test "x$withval" != "xno" ; then
27258 # ------------------------------------------
27259 # Where to place plugindir (script files)
27260 # ------------------------------------------
27261 plugindir=`eval echo ${sysconfdir}`
27263 # Check whether --with-plugindir was given.
27264 if test "${with_plugindir+set}" = set; then
27265 withval=$with_plugindir;
27266 if test "x$withval" != "xno" ; then
27276 dump_email=root@localhost
27278 # Check whether --with-dump-email was given.
27279 if test "${with_dump_email+set}" = set; then
27280 withval=$with_dump_email;
27281 if test "x$withval" != "xno" ; then
27282 dump_email=$withval
27291 job_email=root@localhost
27293 # Check whether --with-job-email was given.
27294 if test "${with_job_email+set}" = set; then
27295 withval=$with_job_email;
27296 if test "x$withval" != "xno" ; then
27306 smtp_host=localhost
27308 # Check whether --with-smtp_host was given.
27309 if test "${with_smtp_host+set}" = set; then
27310 withval=$with_smtp_host;
27311 if test "x$withval" != "xno" ; then
27323 # Check whether --with-pid-dir was given.
27324 if test "${with_pid_dir+set}" = set; then
27325 withval=$with_pid_dir;
27326 if test "x$withval" != "xno" ; then
27334 cat >>confdefs.h <<_ACEOF
27335 #define _PATH_BACULA_PIDDIR "$piddir"
27340 subsysdir=/var/run/subsys
27341 if test -d /var/run/subsys; then
27342 subsysdir=/var/run/subsys
27343 elif test -d /var/lock/subsys; then
27344 subsysdir=/var/lock/subsys
27346 subsysdir=/var/run/subsys
27349 # Check whether --with-subsys-dir was given.
27350 if test "${with_subsys_dir+set}" = set; then
27351 withval=$with_subsys_dir;
27352 if test "x$withval" != "xno" ; then
27364 # Check whether --with-baseport was given.
27365 if test "${with_baseport+set}" = set; then
27366 withval=$with_baseport;
27367 if test "x$withval" != "xno" ; then
27376 dir_port=`expr $baseport`
27377 fd_port=`expr $baseport + 1`
27378 sd_port=`expr $fd_port + 1`
27386 # Check whether --with-dir-password was given.
27387 if test "${with_dir_password+set}" = set; then
27388 withval=$with_dir_password;
27389 if test "x$withval" != "xno" ; then
27390 dir_password=$withval
27397 if test "x$dir_password" = "x" ; then
27398 if test "x$OPENSSL" = "xnone" ; then
27399 key=`autoconf/randpass 33`
27401 key=`openssl rand -base64 33`
27408 # Check whether --with-fd-password was given.
27409 if test "${with_fd_password+set}" = set; then
27410 withval=$with_fd_password;
27411 if test "x$withval" != "xno" ; then
27412 fd_password=$withval
27419 if test "x$fd_password" = "x" ; then
27420 if test "x$OPENSSL" = "xnone" ; then
27421 key=`autoconf/randpass 37`
27423 key=`openssl rand -base64 33`
27430 # Check whether --with-sd-password was given.
27431 if test "${with_sd_password+set}" = set; then
27432 withval=$with_sd_password;
27433 if test "x$withval" != "xno" ; then
27434 sd_password=$withval
27441 if test "x$sd_password" = "x" ; then
27442 if test "x$OPENSSL" = "xnone" ; then
27443 key=`autoconf/randpass 41`
27445 key=`openssl rand -base64 33`
27452 # Check whether --with-mon-dir-password was given.
27453 if test "${with_mon_dir_password+set}" = set; then
27454 withval=$with_mon_dir_password;
27455 if test "x$withval" != "xno" ; then
27456 mon_dir_password=$withval
27463 if test "x$mon_dir_password" = "x" ; then
27464 if test "x$OPENSSL" = "xnone" ; then
27465 key=`autoconf/randpass 33`
27467 key=`openssl rand -base64 33`
27469 mon_dir_password=$key
27474 # Check whether --with-mon-fd-password was given.
27475 if test "${with_mon_fd_password+set}" = set; then
27476 withval=$with_mon_fd_password;
27477 if test "x$withval" != "xno" ; then
27478 mon_fd_password=$withval
27485 if test "x$mon_fd_password" = "x" ; then
27486 if test "x$OPENSSL" = "xnone" ; then
27487 key=`autoconf/randpass 37`
27489 key=`openssl rand -base64 33`
27491 mon_fd_password=$key
27496 # Check whether --with-mon-sd-password was given.
27497 if test "${with_mon_sd_password+set}" = set; then
27498 withval=$with_mon_sd_password;
27499 if test "x$withval" != "xno" ; then
27500 mon_sd_password=$withval
27507 if test "x$mon_sd_password" = "x" ; then
27508 if test "x$OPENSSL" = "xnone" ; then
27509 key=`autoconf/randpass 41`
27511 key=`openssl rand -base64 33`
27513 mon_sd_password=$key
27525 # Check whether --with-db_name was given.
27526 if test "${with_db_name+set}" = set; then
27527 withval=$with_db_name;
27528 if test "x$withval" != "x" ; then
27539 # Check whether --with-db_user was given.
27540 if test "${with_db_user+set}" = set; then
27541 withval=$with_db_user;
27542 if test "x$withval" != "x" ; then
27553 # Check whether --with-db_password was given.
27554 if test "${with_db_password+set}" = set; then
27555 withval=$with_db_password;
27556 if test "x$withval" != "x" ; then
27557 db_password=$withval
27567 # Check whether --with-db_port was given.
27568 if test "${with_db_port+set}" = set; then
27569 withval=$with_db_port;
27570 if test "x$withval" != "x" ; then
27580 # Handle users and groups for each daemon
27584 # Check whether --with-dir_user was given.
27585 if test "${with_dir_user+set}" = set; then
27586 withval=$with_dir_user;
27587 if test "x$withval" != "x" ; then
27597 # Check whether --with-dir_group was given.
27598 if test "${with_dir_group+set}" = set; then
27599 withval=$with_dir_group;
27600 if test "x$withval" != "x" ; then
27610 # Check whether --with-sd_user was given.
27611 if test "${with_sd_user+set}" = set; then
27612 withval=$with_sd_user;
27613 if test "x$withval" != "x" ; then
27623 # Check whether --with-sd_group was given.
27624 if test "${with_sd_group+set}" = set; then
27625 withval=$with_sd_group;
27626 if test "x$withval" != "x" ; then
27636 # Check whether --with-fd_user was given.
27637 if test "${with_fd_user+set}" = set; then
27638 withval=$with_fd_user;
27639 if test "x$withval" != "x" ; then
27649 # Check whether --with-fd_group was given.
27650 if test "${with_fd_group+set}" = set; then
27651 withval=$with_fd_group;
27652 if test "x$withval" != "x" ; then
27669 # Check whether --with-sbin-perm was given.
27670 if test "${with_sbin_perm+set}" = set; then
27671 withval=$with_sbin_perm;
27672 if test "x$withval" != "x" ; then
27685 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27686 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27688 # Check whether --with-postgresql was given.
27689 if test "${with_postgresql+set}" = set; then
27690 withval=$with_postgresql;
27691 if test "$withval" != "no"; then
27692 if test "$db_found" = "yes"; then
27693 { echo "$as_me:$LINENO: result: error" >&5
27694 echo "${ECHO_T}error" >&6; }
27695 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27696 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27697 { (exit 1); exit 1; }; };
27699 if test "$withval" = "yes"; then
27700 PG_CONFIG=`which pg_config`
27701 if test -n "$PG_CONFIG";then
27702 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27703 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27704 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27705 elif test -f /usr/local/include/libpq-fe.h; then
27706 POSTGRESQL_INCDIR=/usr/local/include
27707 if test -d /usr/local/lib64; then
27708 POSTGRESQL_LIBDIR=/usr/local/lib64
27710 POSTGRESQL_LIBDIR=/usr/local/lib
27712 POSTGRESQL_BINDIR=/usr/local/bin
27713 elif test -f /usr/include/libpq-fe.h; then
27714 POSTGRESQL_INCDIR=/usr/include
27715 if test -d /usr/lib64; then
27716 POSTGRESQL_LIBDIR=/usr/lib64
27718 POSTGRESQL_LIBDIR=/usr/lib
27720 POSTGRESQL_BINDIR=/usr/bin
27721 elif test -f /usr/include/pgsql/libpq-fe.h; then
27722 POSTGRESQL_INCDIR=/usr/include/pgsql
27723 if test -d /usr/lib64/pgsql; then
27724 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27726 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27728 POSTGRESQL_BINDIR=/usr/bin
27729 elif test -f /usr/include/postgresql/libpq-fe.h; then
27730 POSTGRESQL_INCDIR=/usr/include/postgresql
27731 if test -d /usr/lib64/postgresql; then
27732 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27734 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27736 POSTGRESQL_BINDIR=/usr/bin
27738 { echo "$as_me:$LINENO: result: no" >&5
27739 echo "${ECHO_T}no" >&6; }
27740 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27741 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27742 { (exit 1); exit 1; }; }
27744 elif test -f $withval/include/libpq-fe.h; then
27745 POSTGRESQL_INCDIR=$withval/include
27746 POSTGRESQL_LIBDIR=$withval/lib
27747 POSTGRESQL_BINDIR=$withval/bin
27748 elif test -f $withval/include/postgresql/libpq-fe.h; then
27749 POSTGRESQL_INCDIR=$withval/include/postgresql
27750 if test -d $withval/lib64; then
27751 POSTGRESQL_LIBDIR=$withval/lib64
27753 POSTGRESQL_LIBDIR=$withval/lib
27755 POSTGRESQL_BINDIR=$withval/bin
27757 { echo "$as_me:$LINENO: result: no" >&5
27758 echo "${ECHO_T}no" >&6; }
27759 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27760 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27761 { (exit 1); exit 1; }; }
27763 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27764 { echo "$as_me:$LINENO: checking for crypt" >&5
27765 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27766 if test "${ac_cv_func_crypt+set}" = set; then
27767 echo $ECHO_N "(cached) $ECHO_C" >&6
27769 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27777 #define crypt innocuous_crypt
27779 /* System header to define __stub macros and hopefully few prototypes,
27780 which can conflict with char crypt (); below.
27781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27782 <limits.h> exists even on freestanding compilers. */
27785 # include <limits.h>
27787 # include <assert.h>
27792 /* Override any GCC internal prototype to avoid an error.
27793 Use char because int might match the return type of a GCC
27794 builtin and then its argument prototype would still apply. */
27799 /* The GNU C library defines this for functions which it implements
27800 to always fail with ENOSYS. Some functions are actually named
27801 something starting with __ and the normal name is an alias. */
27802 #if defined __stub_crypt || defined __stub___crypt
27814 rm -f conftest.$ac_objext conftest$ac_exeext
27815 if { (ac_try="$ac_link"
27816 case "(($ac_try" in
27817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27818 *) ac_try_echo=$ac_try;;
27820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27821 (eval "$ac_link") 2>conftest.er1
27823 grep -v '^ *+' conftest.er1 >conftest.err
27825 cat conftest.err >&5
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); } && {
27828 test -z "$ac_c_werror_flag" ||
27829 test ! -s conftest.err
27830 } && test -s conftest$ac_exeext &&
27831 $as_test_x conftest$ac_exeext; then
27832 ac_cv_func_crypt=yes
27834 echo "$as_me: failed program was:" >&5
27835 sed 's/^/| /' conftest.$ac_ext >&5
27837 ac_cv_func_crypt=no
27840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27841 conftest$ac_exeext conftest.$ac_ext
27843 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27844 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27845 if test $ac_cv_func_crypt = yes; then
27848 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27849 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27850 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27851 echo $ECHO_N "(cached) $ECHO_C" >&6
27853 ac_check_lib_save_LIBS=$LIBS
27854 LIBS="-lcrypt $LIBS"
27855 cat >conftest.$ac_ext <<_ACEOF
27858 cat confdefs.h >>conftest.$ac_ext
27859 cat >>conftest.$ac_ext <<_ACEOF
27860 /* end confdefs.h. */
27862 /* Override any GCC internal prototype to avoid an error.
27863 Use char because int might match the return type of a GCC
27864 builtin and then its argument prototype would still apply. */
27877 rm -f conftest.$ac_objext conftest$ac_exeext
27878 if { (ac_try="$ac_link"
27879 case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_link") 2>conftest.er1
27886 grep -v '^ *+' conftest.er1 >conftest.err
27888 cat conftest.err >&5
27889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890 (exit $ac_status); } && {
27891 test -z "$ac_c_werror_flag" ||
27892 test ! -s conftest.err
27893 } && test -s conftest$ac_exeext &&
27894 $as_test_x conftest$ac_exeext; then
27895 ac_cv_lib_crypt_crypt=yes
27897 echo "$as_me: failed program was:" >&5
27898 sed 's/^/| /' conftest.$ac_ext >&5
27900 ac_cv_lib_crypt_crypt=no
27903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27904 conftest$ac_exeext conftest.$ac_ext
27905 LIBS=$ac_check_lib_save_LIBS
27907 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27908 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27909 if test $ac_cv_lib_crypt_crypt = yes; then
27910 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27915 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27916 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27917 SQL_BINDIR=$POSTGRESQL_BINDIR
27918 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27920 cat >>confdefs.h <<\_ACEOF
27921 #define HAVE_POSTGRESQL 1
27924 { echo "$as_me:$LINENO: result: yes" >&5
27925 echo "${ECHO_T}yes" >&6; }
27927 support_postgresql=yes
27931 { echo "$as_me:$LINENO: result: no" >&5
27932 echo "${ECHO_T}no" >&6; }
27937 { echo "$as_me:$LINENO: result: no" >&5
27938 echo "${ECHO_T}no" >&6; }
27950 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27951 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27953 # Check whether --with-mysql was given.
27954 if test "${with_mysql+set}" = set; then
27955 withval=$with_mysql;
27956 if test "$withval" != "no"; then
27957 if test "$withval" = "yes"; then
27958 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27959 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27960 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27961 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27962 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27964 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27966 MYSQL_BINDIR=/usr/local/mysql/bin
27967 elif test -f /usr/include/mysql/mysql.h; then
27968 MYSQL_INCDIR=/usr/include/mysql
27969 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27970 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27971 MYSQL_LIBDIR=/usr/lib64/mysql
27972 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27973 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27974 MYSQL_LIBDIR=/usr/lib/mysql
27976 MYSQL_LIBDIR=/usr/lib
27978 MYSQL_BINDIR=/usr/bin
27979 elif test -f /usr/include/mysql.h; then
27980 MYSQL_INCDIR=/usr/include
27981 if test -f /usr/lib64/libmysqlclient_r.a \
27982 -o -f /usr/lib64/libmysqlclient_r.so; then
27983 MYSQL_LIBDIR=/usr/lib64
27985 MYSQL_LIBDIR=/usr/lib
27987 MYSQL_BINDIR=/usr/bin
27988 elif test -f /usr/local/include/mysql/mysql.h; then
27989 MYSQL_INCDIR=/usr/local/include/mysql
27990 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27991 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27992 MYSQL_LIBDIR=/usr/local/lib64/mysql
27994 MYSQL_LIBDIR=/usr/local/lib/mysql
27996 MYSQL_BINDIR=/usr/local/bin
27997 elif test -f /usr/local/include/mysql.h; then
27998 MYSQL_INCDIR=/usr/local/include
27999 if test -f /usr/local/lib64/libmysqlclient_r.a \
28000 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28001 MYSQL_LIBDIR=/usr/local/lib64
28003 MYSQL_LIBDIR=/usr/local/lib
28005 MYSQL_BINDIR=/usr/local/bin
28007 { echo "$as_me:$LINENO: result: no" >&5
28008 echo "${ECHO_T}no" >&6; }
28009 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28010 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28011 { (exit 1); exit 1; }; }
28014 if test -f $withval/include/mysql/mysql.h; then
28015 MYSQL_INCDIR=$withval/include/mysql
28016 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28017 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28018 MYSQL_LIBDIR=$withval/lib64/mysql
28020 MYSQL_LIBDIR=$withval/lib/mysql
28022 if test -f $withval/lib/libmysqlclient_r.so; then
28023 MYSQL_LIBDIR=$withval/lib
28026 MYSQL_BINDIR=$withval/bin
28027 elif test -f $withval/include/mysql.h; then
28028 MYSQL_INCDIR=$withval/include
28029 if test -f $withval/lib64/libmysqlclient_r.a \
28030 -o -f $withval/lib64/libmysqlclient_r.so; then
28031 MYSQL_LIBDIR=$withval/lib64
28033 MYSQL_LIBDIR=$withval/lib
28035 MYSQL_BINDIR=$withval/bin
28037 { echo "$as_me:$LINENO: result: no" >&5
28038 echo "${ECHO_T}no" >&6; }
28039 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28040 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28041 { (exit 1); exit 1; }; }
28044 SQL_INCLUDE=-I$MYSQL_INCDIR
28045 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28046 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28047 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28048 cat >>confdefs.h <<\_ACEOF
28049 #define HAVE_THREAD_SAFE_MYSQL 1
28053 SQL_BINDIR=$MYSQL_BINDIR
28054 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28056 cat >>confdefs.h <<\_ACEOF
28057 #define HAVE_MYSQL 1
28060 { echo "$as_me:$LINENO: result: yes" >&5
28061 echo "${ECHO_T}yes" >&6; }
28068 { echo "$as_me:$LINENO: result: no" >&5
28069 echo "${ECHO_T}no" >&6; }
28077 # Check whether --with-embedded-mysql was given.
28078 if test "${with_embedded_mysql+set}" = set; then
28079 withval=$with_embedded_mysql;
28080 if test "$withval" != "no"; then
28081 if test "$withval" = "yes"; then
28082 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28083 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28084 if test -d /usr/local/mysql/lib64/mysql; then
28085 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28087 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28089 MYSQL_BINDIR=/usr/local/mysql/bin
28090 elif test -f /usr/include/mysql/mysql.h; then
28091 MYSQL_INCDIR=/usr/include/mysql
28092 if test -d /usr/lib64/mysql; then
28093 MYSQL_LIBDIR=/usr/lib64/mysql
28095 MYSQL_LIBDIR=/usr/lib/mysql
28097 MYSQL_BINDIR=/usr/bin
28098 elif test -f /usr/include/mysql.h; then
28099 MYSQL_INCDIR=/usr/include
28100 if test -d /usr/lib64; then
28101 MYSQL_LIBDIR=/usr/lib64
28103 MYSQL_LIBDIR=/usr/lib
28105 MYSQL_BINDIR=/usr/bin
28106 elif test -f /usr/local/include/mysql/mysql.h; then
28107 MYSQL_INCDIR=/usr/local/include/mysql
28108 if test -d /usr/local/lib64/mysql; then
28109 MYSQL_LIBDIR=/usr/local/lib64/mysql
28111 MYSQL_LIBDIR=/usr/local/lib/mysql
28113 MYSQL_BINDIR=/usr/local/bin
28114 elif test -f /usr/local/include/mysql.h; then
28115 MYSQL_INCDIR=/usr/local/include
28116 if test -d /usr/local/lib64; then
28117 MYSQL_LIBDIR=/usr/local/lib64
28119 MYSQL_LIBDIR=/usr/local/lib
28121 MYSQL_BINDIR=/usr/local/bin
28123 { echo "$as_me:$LINENO: result: no" >&5
28124 echo "${ECHO_T}no" >&6; }
28125 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28126 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28127 { (exit 1); exit 1; }; }
28130 if test -f $withval/include/mysql/mysql.h; then
28131 MYSQL_INCDIR=$withval/include/mysql
28132 if test -d $withval/lib64/mysql; then
28133 MYSQL_LIBDIR=$withval/lib64/mysql
28135 MYSQL_LIBDIR=$withval/lib/mysql
28137 MYSQL_BINDIR=$withval/bin
28138 elif test -f $withval/include/mysql.h; then
28139 MYSQL_INCDIR=$withval/include
28140 if test -d $withval/lib64; then
28141 MYSQL_LIBDIR=$withval/lib64
28143 MYSQL_LIBDIR=$withval/lib
28145 MYSQL_BINDIR=$withval/bin
28147 { echo "$as_me:$LINENO: result: no" >&5
28148 echo "${ECHO_T}no" >&6; }
28149 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28150 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28151 { (exit 1); exit 1; }; }
28154 SQL_INCLUDE=-I$MYSQL_INCDIR
28155 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28156 SQL_BINDIR=$MYSQL_BINDIR
28157 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28159 cat >>confdefs.h <<\_ACEOF
28160 #define HAVE_MYSQL 1
28163 cat >>confdefs.h <<\_ACEOF
28164 #define HAVE_EMBEDDED_MYSQL 1
28167 { echo "$as_me:$LINENO: result: yes" >&5
28168 echo "${ECHO_T}yes" >&6; }
28175 { echo "$as_me:$LINENO: result: no" >&5
28176 echo "${ECHO_T}no" >&6; }
28192 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28193 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28195 # Check whether --with-sqlite3 was given.
28196 if test "${with_sqlite3+set}" = set; then
28197 withval=$with_sqlite3;
28198 if test "$withval" != "no"; then
28199 if test "$withval" = "yes"; then
28200 if test -f /usr/local/include/sqlite3.h; then
28201 SQLITE_INCDIR=/usr/local/include
28202 if test -d /usr/local/lib64; then
28203 SQLITE_LIBDIR=/usr/local/lib64
28205 SQLITE_LIBDIR=/usr/local/lib
28207 SQLITE_BINDIR=/usr/local/bin
28208 elif test -f /usr/include/sqlite3.h; then
28209 SQLITE_INCDIR=/usr/include
28210 if test -d /usr/lib64; then
28211 SQLITE_LIBDIR=/usr/lib64
28213 SQLITE_LIBDIR=/usr/lib
28215 SQLITE_BINDIR=/usr/bin
28216 elif test -f $prefix/include/sqlite3.h; then
28217 SQLITE_INCDIR=$prefix/include
28218 if test -d $prefix/lib64; then
28219 SQLITE_LIBDIR=$prefix/lib64
28221 SQLITE_LIBDIR=$prefix/lib
28223 SQLITE_BINDIR=$prefix/bin
28225 { echo "$as_me:$LINENO: result: no" >&5
28226 echo "${ECHO_T}no" >&6; }
28227 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28228 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28229 { (exit 1); exit 1; }; }
28232 if test -f $withval/sqlite3.h; then
28233 SQLITE_INCDIR=$withval
28234 SQLITE_LIBDIR=$withval
28235 SQLITE_BINDIR=$withval
28236 elif test -f $withval/include/sqlite3.h; then
28237 SQLITE_INCDIR=$withval/include
28238 if test -d $withval/lib64; then
28239 SQLITE_LIBDIR=$withval/lib64
28241 SQLITE_LIBDIR=$withval/lib
28243 SQLITE_BINDIR=$withval/bin
28245 { echo "$as_me:$LINENO: result: no" >&5
28246 echo "${ECHO_T}no" >&6; }
28247 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28248 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28249 { (exit 1); exit 1; }; }
28252 SQL_INCLUDE=-I$SQLITE_INCDIR
28253 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28254 SQL_BINDIR=$SQLITE_BINDIR
28255 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28257 cat >>confdefs.h <<\_ACEOF
28258 #define HAVE_SQLITE3 1
28261 { echo "$as_me:$LINENO: result: yes" >&5
28262 echo "${ECHO_T}yes" >&6; }
28264 support_sqlite3=yes
28269 { echo "$as_me:$LINENO: result: no" >&5
28270 echo "${ECHO_T}no" >&6; }
28275 { echo "$as_me:$LINENO: result: no" >&5
28276 echo "${ECHO_T}no" >&6; }
28288 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28289 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28291 # Check whether --with-sqlite was given.
28292 if test "${with_sqlite+set}" = set; then
28293 withval=$with_sqlite;
28294 if test "$withval" != "no"; then
28295 if test "$withval" = "yes"; then
28296 if test -f /usr/local/include/sqlite.h; then
28297 SQLITE_INCDIR=/usr/local/include
28298 if test -d /usr/local/lib64; then
28299 SQLITE_LIBDIR=/usr/local/lib64
28301 SQLITE_LIBDIR=/usr/local/lib
28303 SQLITE_BINDIR=/usr/local/bin
28304 elif test -f /usr/include/sqlite.h; then
28305 SQLITE_INCDIR=/usr/include
28306 if test -d /usr/lib64; then
28307 SQLITE_LIBDIR=/usr/lib64
28309 SQLITE_LIBDIR=/usr/lib
28311 SQLITE_BINDIR=/usr/bin
28312 elif test -f $prefix/include/sqlite.h; then
28313 SQLITE_INCDIR=$prefix/include
28314 if test -d $prefix/lib64; then
28315 SQLITE_LIBDIR=$prefix/lib64
28317 SQLITE_LIBDIR=$prefix/lib
28319 SQLITE_BINDIR=$prefix/bin
28321 { echo "$as_me:$LINENO: result: no" >&5
28322 echo "${ECHO_T}no" >&6; }
28323 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28324 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28325 { (exit 1); exit 1; }; }
28328 if test -f $withval/sqlite.h; then
28329 SQLITE_INCDIR=$withval
28330 SQLITE_LIBDIR=$withval
28331 SQLITE_BINDIR=$withval
28332 elif test -f $withval/include/sqlite.h; then
28333 SQLITE_INCDIR=$withval/include
28334 if test -d $withval/lib64; then
28335 SQLITE_LIBDIR=$withval/lib64
28337 SQLITE_LIBDIR=$withval/lib
28339 SQLITE_BINDIR=$withval/bin
28341 { echo "$as_me:$LINENO: result: no" >&5
28342 echo "${ECHO_T}no" >&6; }
28343 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28344 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28345 { (exit 1); exit 1; }; }
28348 SQL_INCLUDE=-I$SQLITE_INCDIR
28349 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28350 SQL_BINDIR=$SQLITE_BINDIR
28351 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28353 cat >>confdefs.h <<\_ACEOF
28354 #define HAVE_SQLITE 1
28357 { echo "$as_me:$LINENO: result: yes" >&5
28358 echo "${ECHO_T}yes" >&6; }
28365 { echo "$as_me:$LINENO: result: no" >&5
28366 echo "${ECHO_T}no" >&6; }
28371 { echo "$as_me:$LINENO: result: no" >&5
28372 echo "${ECHO_T}no" >&6; }
28384 { echo "$as_me:$LINENO: checking for DBI support" >&5
28385 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28387 # Check whether --with-dbi was given.
28388 if test "${with_dbi+set}" = set; then
28390 if test "$withval" != "no"; then
28391 if test "$withval" = "yes"; then
28392 if test -f /usr/local/include/dbi/dbi.h; then
28393 DBI_INCDIR=/usr/local/dbi/include
28394 if test -d /usr/local/lib64; then
28395 DBI_LIBDIR=/usr/local/lib64
28397 DBI_LIBDIR=/usr/local/lib
28399 DBI_BINDIR=/usr/local/bin
28400 elif test -f /usr/include/dbi/dbi.h; then
28401 DBI_INCDIR=/usr/include
28402 if test -d /usr/lib64; then
28403 DBI_LIBDIR=/usr/lib64
28405 DBI_LIBDIR=/usr/lib
28407 DBI_BINDIR=/usr/bin
28408 elif test -f $prefix/include/dbi/dbi.h; then
28409 DBI_INCDIR=$prefix/include
28410 if test -d $prefix/lib64; then
28411 DBI_LIBDIR=$prefix/lib64
28413 DBI_LIBDIR=$prefix/lib
28415 DBI_BINDIR=$prefix/bin
28417 { echo "$as_me:$LINENO: result: no" >&5
28418 echo "${ECHO_T}no" >&6; }
28419 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28420 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28421 { (exit 1); exit 1; }; }
28423 if test -d /usr/local/lib/dbd; then
28424 DRIVERDIR=/usr/local/lib/dbd
28425 if test -d /usr/local/lib64/dbd; then
28426 DRIVERDIR=/usr/local/lib64/dbd
28428 DRIVERDIR=/usr/local/lib/dbd
28430 elif test -d /usr/lib/dbd; then
28431 DRIVERDIR=/usr/lib/dbd
28432 if test -d /usr/lib64/dbd; then
28433 DRIVERDIR=/usr/lib64/dbd
28435 DRIVERDIR=/usr/lib/dbd
28437 elif test -d $prefix/lib/dbd; then
28438 if test -d $prefix/lib64/dbd; then
28439 DRIVERDIR=$prefix/lib64/dbd
28441 DRIVERDIR=$prefix/lib/dbd
28444 { echo "$as_me:$LINENO: result: no" >&5
28445 echo "${ECHO_T}no" >&6; }
28446 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28447 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28448 { (exit 1); exit 1; }; }
28451 if test -f $withval/dbi.h; then
28452 DBI_INCDIR=$withval
28453 DBI_LIBDIR=$withval
28454 DBI_BINDIR=$withval
28455 elif test -f $withval/include/dbi/dbi.h; then
28456 DBI_INCDIR=$withval/include
28457 if test -d $withval/lib64; then
28458 DBI_LIBDIR=$withval/lib64
28460 DBI_LIBDIR=$withval/lib
28462 DBI_BINDIR=$withval/bin
28464 { echo "$as_me:$LINENO: result: no" >&5
28465 echo "${ECHO_T}no" >&6; }
28466 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28467 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28468 { (exit 1); exit 1; }; }
28470 if test -d $withval/dbd; then
28471 DRIVERDIR=$withval/dbd
28472 elif test -d $withval/lib/; then
28473 if test -d $withval/lib64/dbd; then
28474 DRIVERDIR=$withval/lib64/dbd
28476 DRIVERDIR=$withval/lib/dbd
28479 { echo "$as_me:$LINENO: result: no" >&5
28480 echo "${ECHO_T}no" >&6; }
28481 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28482 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28483 { (exit 1); exit 1; }; }
28486 SQL_INCLUDE=-I$DBI_INCDIR
28487 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28488 SQL_BINDIR=$DBI_BINDIR
28489 SQL_LIB=$DBI_LIBDIR/libdbi.a
28490 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28493 cat >>confdefs.h <<\_ACEOF
28497 { echo "$as_me:$LINENO: result: yes" >&5
28498 echo "${ECHO_T}yes" >&6; }
28506 { echo "$as_me:$LINENO: result: no" >&5
28507 echo "${ECHO_T}no" >&6; }
28512 { echo "$as_me:$LINENO: result: no" >&5
28513 echo "${ECHO_T}no" >&6; }
28528 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28529 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28531 # Check whether --with-dbi-driver was given.
28532 if test "${with_dbi_driver+set}" = set; then
28533 withval=$with_dbi_driver;
28534 if test "$withval" != "no"; then
28538 if test -f /usr/local/mysql/bin/mysql; then
28539 SQL_BINDIR=/usr/local/mysql/bin
28540 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28541 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28542 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28544 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28546 elif test -f /usr/bin/mysql; then
28547 SQL_BINDIR=/usr/bin
28548 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28549 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28550 SQL_LIBDIR=/usr/lib64/mysql
28551 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28552 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28553 SQL_LIBDIR=/usr/lib/mysql
28555 SQL_LIBDIR=/usr/lib
28557 elif test -f /usr/local/bin/mysql; then
28558 SQL_BINDIR=/usr/local/bin
28559 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28560 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28561 SQL_LIBDIR=/usr/local/lib64/mysql
28562 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28563 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28564 SQL_LIBDIR=/usr/local/lib/mysql
28566 SQL_LIBDIR=/usr/local/lib
28568 elif test -f $withval/bin/mysql; then
28569 SQL_BINDIR=$withval/bin
28570 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28571 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28572 SQL_LIBDIR=$withval/lib64/mysql
28573 elif test -f $withval/lib64/libmysqlclient_r.a \
28574 -o -f $withval/lib64/libmysqlclient_r.so; then
28575 SQL_LIBDIR=$withval/lib64
28576 elif test -f $withval/lib/libmysqlclient_r.a \
28577 -o -f $withval/lib/libmysqlclient_r.so; then
28578 SQL_LIBDIR=$withval/lib/
28580 SQL_LIBDIR=$withval/lib/mysql
28583 { echo "$as_me:$LINENO: result: no" >&5
28584 echo "${ECHO_T}no" >&6; }
28585 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28586 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28587 { (exit 1); exit 1; }; }
28589 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28592 db_prog="postgresql"
28593 PG_CONFIG=`which pg_config`
28594 if test -n "$PG_CONFIG"; then
28595 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28596 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28597 elif test -f /usr/local/bin/psql; then
28598 SQL_BINDIR=/usr/local/bin
28599 if test -d /usr/local/lib64; then
28600 SQL_LIBDIR=/usr/local/lib64
28602 SQL_LIBDIR=/usr/local/lib
28604 elif test -f /usr/bin/psql; then
28605 SQL_BINDIR=/usr/local/bin
28606 if test -d /usr/lib64/postgresql; then
28607 SQL_LIBDIR=/usr/lib64/postgresql
28608 elif test -d /usr/lib/postgresql; then
28609 SQL_LIBDIR=/usr/lib/postgresql
28610 elif test -d /usr/lib64; then
28611 SQL_LIBDIR=/usr/lib64
28613 SQL_LIBDIR=/usr/lib
28615 elif test -f $withval/bin/psql; then
28616 SQL_BINDIR=$withval/bin
28617 if test -d $withval/lib64; then
28618 SQL_LIBDIR=$withval/lib64
28620 SQL_LIBDIR=$withval/lib
28623 { echo "$as_me:$LINENO: result: no" >&5
28624 echo "${ECHO_T}no" >&6; }
28625 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28626 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28627 { (exit 1); exit 1; }; }
28629 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28633 if test -f /usr/local/bin/sqlite; then
28634 SQL_BINDIR=/usr/local/bin
28635 if test -d /usr/local/lib64; then
28636 SQL_LIBDIR=/usr/local/lib64
28638 SQL_LIBDIR=/usr/local/lib
28640 elif test -f /usr/bin/sqlite; then
28641 SQL_BINDIR=/usr/bin
28642 if test -d /usr/lib64; then
28643 SQL_LIBDIR=/usr/lib64
28645 SQL_LIBDIR=/usr/lib
28647 elif test -f $withval/bin/sqlite; then
28648 SQL_BINDIR=$withval/bin
28649 if test -d $withval/lib64; then
28650 SQL_LIBDIR=$withval/lib64
28652 SQL_LIBDIR=$withval/lib
28655 { echo "$as_me:$LINENO: result: no" >&5
28656 echo "${ECHO_T}no" >&6; }
28657 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28658 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28659 { (exit 1); exit 1; }; }
28661 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28665 if test -f /usr/local/bin/sqlite3; then
28666 SQL_BINDIR=/usr/local/bin
28667 if test -d /usr/local/lib64; then
28668 SQL_LIBDIR=/usr/local/lib64
28670 SQL_LIBDIR=/usr/local/lib
28672 elif test -f /usr/bin/sqlite3; then
28673 SQL_BINDIR=/usr/bin
28674 if test -d /usr/lib64; then
28675 SQL_LIBDIR=/usr/lib64
28677 SQL_LIBDIR=/usr/lib
28679 elif test -f $withval/bin/sqlite3; then
28680 SQL_BINDIR=$withval/bin
28681 if test -d $withval/lib64; then
28682 SQL_LIBDIR=$withval/lib64
28684 SQL_LIBDIR=$withval/lib
28687 { echo "$as_me:$LINENO: result: no" >&5
28688 echo "${ECHO_T}no" >&6; }
28689 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28690 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28691 { (exit 1); exit 1; }; }
28693 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28696 { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28699 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28700 { (exit 1); exit 1; }; }
28704 { echo "$as_me:$LINENO: result: yes" >&5
28705 echo "${ECHO_T}yes" >&6; }
28708 { echo "$as_me:$LINENO: result: no" >&5
28709 echo "${ECHO_T}no" >&6; }
28714 { echo "$as_me:$LINENO: result: no" >&5
28715 echo "${ECHO_T}no" >&6; }
28728 support_batch_insert=no
28729 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28731 if test $pkg = 0; then
28732 support_batch_insert=yes
28733 # Check whether --enable-batch-insert was given.
28734 if test "${enable_batch_insert+set}" = set; then
28735 enableval=$enable_batch_insert;
28736 if test x$enableval = xno; then
28737 support_batch_insert=no
28739 support_batch_insert=yes
28747 if test x$DB_TYPE = xpostgresql; then
28748 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28750 if test $pkg != 0; then
28751 support_batch_insert=no
28755 if test x$DB_TYPE = xdbi; then
28759 if test $DB_PROG = postgresql; then
28760 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28764 if test $DB_PROG = mysql; then
28765 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28769 if test $DB_PROG = sqlite3; then
28770 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28774 if test $pkg = 0; then
28775 # Check whether --enable-batch-insert was given.
28776 if test "${enable_batch_insert+set}" = set; then
28777 enableval=$enable_batch_insert;
28778 if test x$enableval = xno; then
28779 support_batch_insert=no
28781 support_batch_insert=yes
28794 if test $support_batch_insert = yes ; then
28796 cat >>confdefs.h <<\_ACEOF
28797 #define HAVE_BATCH_FILE_INSERT 1
28802 cat >>confdefs.h <<\_ACEOF
28803 #define PROTOTYPES 1
28807 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28808 if test -z "$CCOPTS"; then
28809 CCOPTS='-g -O2 -Wall'
28816 largefile_support="no"
28818 # Check whether --enable-largefile was given.
28819 if test "${enable_largefile+set}" = set; then
28820 enableval=$enable_largefile;
28823 if test "$enable_largefile" != no; then
28824 if test -n "$ac_tool_prefix"; then
28825 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28826 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28829 if test "${ac_cv_prog_GETCONF+set}" = set; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28832 if test -n "$GETCONF"; then
28833 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28836 for as_dir in $PATH
28839 test -z "$as_dir" && as_dir=.
28840 for ac_exec_ext in '' $ac_executable_extensions; do
28841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28842 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28852 GETCONF=$ac_cv_prog_GETCONF
28853 if test -n "$GETCONF"; then
28854 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28855 echo "${ECHO_T}$GETCONF" >&6; }
28857 { echo "$as_me:$LINENO: result: no" >&5
28858 echo "${ECHO_T}no" >&6; }
28863 if test -z "$ac_cv_prog_GETCONF"; then
28864 ac_ct_GETCONF=$GETCONF
28865 # Extract the first word of "getconf", so it can be a program name with args.
28866 set dummy getconf; ac_word=$2
28867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28869 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28872 if test -n "$ac_ct_GETCONF"; then
28873 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28876 for as_dir in $PATH
28879 test -z "$as_dir" && as_dir=.
28880 for ac_exec_ext in '' $ac_executable_extensions; do
28881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28882 ac_cv_prog_ac_ct_GETCONF="getconf"
28883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28892 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28893 if test -n "$ac_ct_GETCONF"; then
28894 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28895 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28897 { echo "$as_me:$LINENO: result: no" >&5
28898 echo "${ECHO_T}no" >&6; }
28901 if test "x$ac_ct_GETCONF" = x; then
28904 case $cross_compiling:$ac_tool_warned in
28906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28907 whose name does not start with the host triplet. If you think this
28908 configuration is useful to you, please write to autoconf@gnu.org." >&5
28909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28910 whose name does not start with the host triplet. If you think this
28911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28912 ac_tool_warned=yes ;;
28914 GETCONF=$ac_ct_GETCONF
28917 GETCONF="$ac_cv_prog_GETCONF"
28920 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28921 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28922 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28923 echo $ECHO_N "(cached) $ECHO_C" >&6
28925 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28926 ac_cv_sys_largefile_CFLAGS=no
28928 # IRIX 6.2 and later require cc -n32.
28929 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28930 if test "$GCC" != yes; then
28931 ac_cv_sys_largefile_CFLAGS=-n32
28934 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28935 cat >conftest.$ac_ext <<_ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h. */
28950 rm -f conftest.$ac_objext conftest$ac_exeext
28951 if { (ac_try="$ac_link"
28952 case "(($ac_try" in
28953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28954 *) ac_try_echo=$ac_try;;
28956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28957 (eval "$ac_link") 2>conftest.er1
28959 grep -v '^ *+' conftest.er1 >conftest.err
28961 cat conftest.err >&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); } && {
28964 test -z "$ac_c_werror_flag" ||
28965 test ! -s conftest.err
28966 } && test -s conftest$ac_exeext &&
28967 $as_test_x conftest$ac_exeext; then
28970 echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28973 ac_cv_sys_largefile_CFLAGS=no
28976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28977 conftest$ac_exeext conftest.$ac_ext
28982 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28983 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28984 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28985 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28986 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28987 echo $ECHO_N "(cached) $ECHO_C" >&6
28989 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28990 ac_cv_sys_largefile_LDFLAGS=no
28994 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28995 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28996 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28997 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28998 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28999 echo $ECHO_N "(cached) $ECHO_C" >&6
29001 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29002 ac_cv_sys_largefile_LIBS=no
29006 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29007 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29009 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29012 -D_FILE_OFFSET_BITS=*) ;;
29013 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29014 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29019 case "$CPPFLAGS" in
29020 '') CPPFLAGS="$ac_flag" ;;
29021 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29029 '') CFLAGS="$ac_flag" ;;
29030 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29035 case "$ac_cv_sys_largefile_LDFLAGS" in
29039 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29040 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29043 case "$ac_cv_sys_largefile_LIBS" in
29047 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29048 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29051 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29052 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29053 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29054 echo $ECHO_N "(cached) $ECHO_C" >&6
29056 ac_cv_sys_file_offset_bits=no
29057 ac_cv_sys_file_offset_bits=64
29058 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29060 -D_FILE_OFFSET_BITS)
29061 ac_cv_sys_file_offset_bits=1 ;;
29062 -D_FILE_OFFSET_BITS=*)
29063 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29068 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29069 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29070 if test "$ac_cv_sys_file_offset_bits" != no; then
29072 cat >>confdefs.h <<_ACEOF
29073 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29077 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29078 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29079 if test "${ac_cv_sys_largefile_source+set}" = set; then
29080 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 ac_cv_sys_largefile_source=no
29083 ac_cv_sys_largefile_source=1
29084 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29086 -D_LARGEFILE_SOURCE)
29087 ac_cv_sys_largefile_source=1 ;;
29088 -D_LARGEFILE_SOURCE=*)
29089 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29094 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29095 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29096 if test "$ac_cv_sys_largefile_source" != no; then
29098 cat >>confdefs.h <<_ACEOF
29099 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29103 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29104 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29105 if test "${ac_cv_sys_large_files+set}" = set; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29108 ac_cv_sys_large_files=no
29109 ac_cv_sys_large_files=1
29110 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29113 ac_cv_sys_large_files=1 ;;
29115 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29120 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29121 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29122 if test "$ac_cv_sys_large_files" != no; then
29124 cat >>confdefs.h <<_ACEOF
29125 #define _LARGE_FILES $ac_cv_sys_large_files
29132 { echo "$as_me:$LINENO: checking for X" >&5
29133 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29136 # Check whether --with-x was given.
29137 if test "${with_x+set}" = set; then
29141 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29142 if test "x$with_x" = xno; then
29143 # The user explicitly disabled X.
29146 case $x_includes,$x_libraries in #(
29147 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29148 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29149 { (exit 1); exit 1; }; };; #(
29150 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29151 echo $ECHO_N "(cached) $ECHO_C" >&6
29153 # One or both of the vars are not set, and there is no cached value.
29154 ac_x_includes=no ac_x_libraries=no
29155 rm -f -r conftest.dir
29156 if mkdir conftest.dir; then
29158 cat >Imakefile <<'_ACEOF'
29160 @echo incroot='${INCROOT}'
29162 @echo usrlibdir='${USRLIBDIR}'
29164 @echo libdir='${LIBDIR}'
29166 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29168 for ac_var in incroot usrlibdir libdir; do
29169 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29171 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29172 for ac_extension in a so sl; do
29173 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29174 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29175 ac_im_usrlibdir=$ac_im_libdir; break
29178 # Screen out bogus values from the imake configuration. They are
29179 # bogus both because they are the default anyway, and because
29180 # using them would break gcc on systems where it needs fixed includes.
29181 case $ac_im_incroot in
29182 /usr/include) ac_x_includes= ;;
29183 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29185 case $ac_im_usrlibdir in
29186 /usr/lib | /lib) ;;
29187 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29191 rm -f -r conftest.dir
29194 # Standard set of common directories for X headers.
29195 # Check X11 before X11Rn because it is often a symlink to the current release.
29207 /usr/local/X11/include
29208 /usr/local/X11R6/include
29209 /usr/local/X11R5/include
29210 /usr/local/X11R4/include
29212 /usr/local/include/X11
29213 /usr/local/include/X11R6
29214 /usr/local/include/X11R5
29215 /usr/local/include/X11R4
29219 /usr/XFree86/include/X11
29223 /usr/unsupported/include
29224 /usr/athena/include
29225 /usr/local/x11r5/include
29226 /usr/lpp/Xamples/include
29228 /usr/openwin/include
29229 /usr/openwin/share/include'
29231 if test "$ac_x_includes" = no; then
29232 # Guess where to find include files, by looking for Xlib.h.
29233 # First, try using that file with no special directory specified.
29234 cat >conftest.$ac_ext <<_ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29240 #include <X11/Xlib.h>
29242 if { (ac_try="$ac_cpp conftest.$ac_ext"
29243 case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29250 grep -v '^ *+' conftest.er1 >conftest.err
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } >/dev/null && {
29255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29256 test ! -s conftest.err
29258 # We can compile using X headers with no special include directory.
29261 echo "$as_me: failed program was:" >&5
29262 sed 's/^/| /' conftest.$ac_ext >&5
29264 for ac_dir in $ac_x_header_dirs; do
29265 if test -r "$ac_dir/X11/Xlib.h"; then
29266 ac_x_includes=$ac_dir
29272 rm -f conftest.err conftest.$ac_ext
29273 fi # $ac_x_includes = no
29275 if test "$ac_x_libraries" = no; then
29276 # Check for the libraries.
29277 # See if we find them without any special options.
29278 # Don't add to $LIBS permanently.
29281 cat >conftest.$ac_ext <<_ACEOF
29284 cat confdefs.h >>conftest.$ac_ext
29285 cat >>conftest.$ac_ext <<_ACEOF
29286 /* end confdefs.h. */
29287 #include <X11/Xlib.h>
29296 rm -f conftest.$ac_objext conftest$ac_exeext
29297 if { (ac_try="$ac_link"
29298 case "(($ac_try" in
29299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300 *) ac_try_echo=$ac_try;;
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303 (eval "$ac_link") 2>conftest.er1
29305 grep -v '^ *+' conftest.er1 >conftest.err
29307 cat conftest.err >&5
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); } && {
29310 test -z "$ac_c_werror_flag" ||
29311 test ! -s conftest.err
29312 } && test -s conftest$ac_exeext &&
29313 $as_test_x conftest$ac_exeext; then
29315 # We can link X programs with no special library path.
29318 echo "$as_me: failed program was:" >&5
29319 sed 's/^/| /' conftest.$ac_ext >&5
29322 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29324 # Don't even attempt the hair of trying to link an X program!
29325 for ac_extension in a so sl; do
29326 if test -r "$ac_dir/libX11.$ac_extension"; then
29327 ac_x_libraries=$ac_dir
29334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29335 conftest$ac_exeext conftest.$ac_ext
29336 fi # $ac_x_libraries = no
29338 case $ac_x_includes,$ac_x_libraries in #(
29339 no,* | *,no | *\'*)
29340 # Didn't find X, or a directory has "'" in its name.
29341 ac_cv_have_x="have_x=no";; #(
29343 # Record where we found X for the cache.
29344 ac_cv_have_x="have_x=yes\
29345 ac_x_includes='$ac_x_includes'\
29346 ac_x_libraries='$ac_x_libraries'"
29352 eval "$ac_cv_have_x"
29355 if test "$have_x" != yes; then
29356 { echo "$as_me:$LINENO: result: $have_x" >&5
29357 echo "${ECHO_T}$have_x" >&6; }
29360 # If each of the values was on the command line, it overrides each guess.
29361 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29362 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29363 # Update the cache value to reflect the command line values.
29364 ac_cv_have_x="have_x=yes\
29365 ac_x_includes='$x_includes'\
29366 ac_x_libraries='$x_libraries'"
29367 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29368 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29371 if test "$no_x" = yes; then
29372 # Not all programs may use this symbol, but it does not hurt to define it.
29374 cat >>confdefs.h <<\_ACEOF
29375 #define X_DISPLAY_MISSING 1
29378 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29380 if test -n "$x_includes"; then
29381 X_CFLAGS="$X_CFLAGS -I$x_includes"
29384 # It would also be nice to do this for all -L options, not just this one.
29385 if test -n "$x_libraries"; then
29386 X_LIBS="$X_LIBS -L$x_libraries"
29387 # For Solaris; some versions of Sun CC require a space after -R and
29388 # others require no space. Words are not sufficient . . . .
29389 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29390 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29391 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29392 ac_xsave_c_werror_flag=$ac_c_werror_flag
29393 ac_c_werror_flag=yes
29394 cat >conftest.$ac_ext <<_ACEOF
29397 cat confdefs.h >>conftest.$ac_ext
29398 cat >>conftest.$ac_ext <<_ACEOF
29399 /* end confdefs.h. */
29409 rm -f conftest.$ac_objext conftest$ac_exeext
29410 if { (ac_try="$ac_link"
29411 case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_link") 2>conftest.er1
29418 grep -v '^ *+' conftest.er1 >conftest.err
29420 cat conftest.err >&5
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); } && {
29423 test -z "$ac_c_werror_flag" ||
29424 test ! -s conftest.err
29425 } && test -s conftest$ac_exeext &&
29426 $as_test_x conftest$ac_exeext; then
29427 { echo "$as_me:$LINENO: result: no" >&5
29428 echo "${ECHO_T}no" >&6; }
29429 X_LIBS="$X_LIBS -R$x_libraries"
29431 echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29434 LIBS="$ac_xsave_LIBS -R $x_libraries"
29435 cat >conftest.$ac_ext <<_ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h. */
29450 rm -f conftest.$ac_objext conftest$ac_exeext
29451 if { (ac_try="$ac_link"
29452 case "(($ac_try" in
29453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454 *) ac_try_echo=$ac_try;;
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457 (eval "$ac_link") 2>conftest.er1
29459 grep -v '^ *+' conftest.er1 >conftest.err
29461 cat conftest.err >&5
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); } && {
29464 test -z "$ac_c_werror_flag" ||
29465 test ! -s conftest.err
29466 } && test -s conftest$ac_exeext &&
29467 $as_test_x conftest$ac_exeext; then
29468 { echo "$as_me:$LINENO: result: yes" >&5
29469 echo "${ECHO_T}yes" >&6; }
29470 X_LIBS="$X_LIBS -R $x_libraries"
29472 echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29475 { echo "$as_me:$LINENO: result: neither works" >&5
29476 echo "${ECHO_T}neither works" >&6; }
29479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29480 conftest$ac_exeext conftest.$ac_ext
29483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29484 conftest$ac_exeext conftest.$ac_ext
29485 ac_c_werror_flag=$ac_xsave_c_werror_flag
29486 LIBS=$ac_xsave_LIBS
29489 # Check for system-dependent libraries X programs must link with.
29490 # Do this before checking for the system-independent R6 libraries
29491 # (-lICE), since we may need -lsocket or whatever for X linking.
29493 if test "$ISC" = yes; then
29494 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29496 # Martyn Johnson says this is needed for Ultrix, if the X
29497 # libraries were built with DECnet support. And Karl Berry says
29498 # the Alpha needs dnet_stub (dnet does not exist).
29499 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29500 cat >conftest.$ac_ext <<_ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h. */
29507 /* Override any GCC internal prototype to avoid an error.
29508 Use char because int might match the return type of a GCC
29509 builtin and then its argument prototype would still apply. */
29513 char XOpenDisplay ();
29517 return XOpenDisplay ();
29522 rm -f conftest.$ac_objext conftest$ac_exeext
29523 if { (ac_try="$ac_link"
29524 case "(($ac_try" in
29525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526 *) ac_try_echo=$ac_try;;
29528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29529 (eval "$ac_link") 2>conftest.er1
29531 grep -v '^ *+' conftest.er1 >conftest.err
29533 cat conftest.err >&5
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); } && {
29536 test -z "$ac_c_werror_flag" ||
29537 test ! -s conftest.err
29538 } && test -s conftest$ac_exeext &&
29539 $as_test_x conftest$ac_exeext; then
29542 echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29545 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29546 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29547 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29550 ac_check_lib_save_LIBS=$LIBS
29551 LIBS="-ldnet $LIBS"
29552 cat >conftest.$ac_ext <<_ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h. */
29559 /* Override any GCC internal prototype to avoid an error.
29560 Use char because int might match the return type of a GCC
29561 builtin and then its argument prototype would still apply. */
29569 return dnet_ntoa ();
29574 rm -f conftest.$ac_objext conftest$ac_exeext
29575 if { (ac_try="$ac_link"
29576 case "(($ac_try" in
29577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578 *) ac_try_echo=$ac_try;;
29580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581 (eval "$ac_link") 2>conftest.er1
29583 grep -v '^ *+' conftest.er1 >conftest.err
29585 cat conftest.err >&5
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); } && {
29588 test -z "$ac_c_werror_flag" ||
29589 test ! -s conftest.err
29590 } && test -s conftest$ac_exeext &&
29591 $as_test_x conftest$ac_exeext; then
29592 ac_cv_lib_dnet_dnet_ntoa=yes
29594 echo "$as_me: failed program was:" >&5
29595 sed 's/^/| /' conftest.$ac_ext >&5
29597 ac_cv_lib_dnet_dnet_ntoa=no
29600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29601 conftest$ac_exeext conftest.$ac_ext
29602 LIBS=$ac_check_lib_save_LIBS
29604 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29605 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29606 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29607 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29610 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29611 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29612 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29613 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29616 ac_check_lib_save_LIBS=$LIBS
29617 LIBS="-ldnet_stub $LIBS"
29618 cat >conftest.$ac_ext <<_ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h. */
29625 /* Override any GCC internal prototype to avoid an error.
29626 Use char because int might match the return type of a GCC
29627 builtin and then its argument prototype would still apply. */
29635 return dnet_ntoa ();
29640 rm -f conftest.$ac_objext conftest$ac_exeext
29641 if { (ac_try="$ac_link"
29642 case "(($ac_try" in
29643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29644 *) ac_try_echo=$ac_try;;
29646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29647 (eval "$ac_link") 2>conftest.er1
29649 grep -v '^ *+' conftest.er1 >conftest.err
29651 cat conftest.err >&5
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } && {
29654 test -z "$ac_c_werror_flag" ||
29655 test ! -s conftest.err
29656 } && test -s conftest$ac_exeext &&
29657 $as_test_x conftest$ac_exeext; then
29658 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29660 echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29663 ac_cv_lib_dnet_stub_dnet_ntoa=no
29666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29667 conftest$ac_exeext conftest.$ac_ext
29668 LIBS=$ac_check_lib_save_LIBS
29670 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29671 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29672 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29673 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29680 conftest$ac_exeext conftest.$ac_ext
29681 LIBS="$ac_xsave_LIBS"
29683 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29684 # to get the SysV transport functions.
29685 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29687 # The nsl library prevents programs from opening the X display
29688 # on Irix 5.2, according to T.E. Dickey.
29689 # The functions gethostbyname, getservbyname, and inet_addr are
29690 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29691 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29692 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29693 if test "${ac_cv_func_gethostbyname+set}" = set; then
29694 echo $ECHO_N "(cached) $ECHO_C" >&6
29696 cat >conftest.$ac_ext <<_ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29702 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29704 #define gethostbyname innocuous_gethostbyname
29706 /* System header to define __stub macros and hopefully few prototypes,
29707 which can conflict with char gethostbyname (); below.
29708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29709 <limits.h> exists even on freestanding compilers. */
29712 # include <limits.h>
29714 # include <assert.h>
29717 #undef gethostbyname
29719 /* Override any GCC internal prototype to avoid an error.
29720 Use char because int might match the return type of a GCC
29721 builtin and then its argument prototype would still apply. */
29725 char gethostbyname ();
29726 /* The GNU C library defines this for functions which it implements
29727 to always fail with ENOSYS. Some functions are actually named
29728 something starting with __ and the normal name is an alias. */
29729 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29736 return gethostbyname ();
29741 rm -f conftest.$ac_objext conftest$ac_exeext
29742 if { (ac_try="$ac_link"
29743 case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748 (eval "$ac_link") 2>conftest.er1
29750 grep -v '^ *+' conftest.er1 >conftest.err
29752 cat conftest.err >&5
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); } && {
29755 test -z "$ac_c_werror_flag" ||
29756 test ! -s conftest.err
29757 } && test -s conftest$ac_exeext &&
29758 $as_test_x conftest$ac_exeext; then
29759 ac_cv_func_gethostbyname=yes
29761 echo "$as_me: failed program was:" >&5
29762 sed 's/^/| /' conftest.$ac_ext >&5
29764 ac_cv_func_gethostbyname=no
29767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29768 conftest$ac_exeext conftest.$ac_ext
29770 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29771 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29773 if test $ac_cv_func_gethostbyname = no; then
29774 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29775 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29776 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29777 echo $ECHO_N "(cached) $ECHO_C" >&6
29779 ac_check_lib_save_LIBS=$LIBS
29781 cat >conftest.$ac_ext <<_ACEOF
29784 cat confdefs.h >>conftest.$ac_ext
29785 cat >>conftest.$ac_ext <<_ACEOF
29786 /* end confdefs.h. */
29788 /* Override any GCC internal prototype to avoid an error.
29789 Use char because int might match the return type of a GCC
29790 builtin and then its argument prototype would still apply. */
29794 char gethostbyname ();
29798 return gethostbyname ();
29803 rm -f conftest.$ac_objext conftest$ac_exeext
29804 if { (ac_try="$ac_link"
29805 case "(($ac_try" in
29806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_link") 2>conftest.er1
29812 grep -v '^ *+' conftest.er1 >conftest.err
29814 cat conftest.err >&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); } && {
29817 test -z "$ac_c_werror_flag" ||
29818 test ! -s conftest.err
29819 } && test -s conftest$ac_exeext &&
29820 $as_test_x conftest$ac_exeext; then
29821 ac_cv_lib_nsl_gethostbyname=yes
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29826 ac_cv_lib_nsl_gethostbyname=no
29829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29830 conftest$ac_exeext conftest.$ac_ext
29831 LIBS=$ac_check_lib_save_LIBS
29833 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29834 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29835 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29839 if test $ac_cv_lib_nsl_gethostbyname = no; then
29840 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29841 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29842 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29843 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 ac_check_lib_save_LIBS=$LIBS
29847 cat >conftest.$ac_ext <<_ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h. */
29854 /* Override any GCC internal prototype to avoid an error.
29855 Use char because int might match the return type of a GCC
29856 builtin and then its argument prototype would still apply. */
29860 char gethostbyname ();
29864 return gethostbyname ();
29869 rm -f conftest.$ac_objext conftest$ac_exeext
29870 if { (ac_try="$ac_link"
29871 case "(($ac_try" in
29872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873 *) ac_try_echo=$ac_try;;
29875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876 (eval "$ac_link") 2>conftest.er1
29878 grep -v '^ *+' conftest.er1 >conftest.err
29880 cat conftest.err >&5
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); } && {
29883 test -z "$ac_c_werror_flag" ||
29884 test ! -s conftest.err
29885 } && test -s conftest$ac_exeext &&
29886 $as_test_x conftest$ac_exeext; then
29887 ac_cv_lib_bsd_gethostbyname=yes
29889 echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29892 ac_cv_lib_bsd_gethostbyname=no
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896 conftest$ac_exeext conftest.$ac_ext
29897 LIBS=$ac_check_lib_save_LIBS
29899 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29900 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29901 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29902 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29908 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29909 # socket/setsockopt and other routines are undefined under SCO ODT
29910 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29911 # on later versions), says Simon Leinen: it contains gethostby*
29912 # variants that don't use the name server (or something). -lsocket
29913 # must be given before -lnsl if both are needed. We assume that
29914 # if connect needs -lnsl, so does gethostbyname.
29915 { echo "$as_me:$LINENO: checking for connect" >&5
29916 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29917 if test "${ac_cv_func_connect+set}" = set; then
29918 echo $ECHO_N "(cached) $ECHO_C" >&6
29920 cat >conftest.$ac_ext <<_ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h. */
29926 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29928 #define connect innocuous_connect
29930 /* System header to define __stub macros and hopefully few prototypes,
29931 which can conflict with char connect (); below.
29932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29933 <limits.h> exists even on freestanding compilers. */
29936 # include <limits.h>
29938 # include <assert.h>
29943 /* Override any GCC internal prototype to avoid an error.
29944 Use char because int might match the return type of a GCC
29945 builtin and then its argument prototype would still apply. */
29950 /* The GNU C library defines this for functions which it implements
29951 to always fail with ENOSYS. Some functions are actually named
29952 something starting with __ and the normal name is an alias. */
29953 #if defined __stub_connect || defined __stub___connect
29965 rm -f conftest.$ac_objext conftest$ac_exeext
29966 if { (ac_try="$ac_link"
29967 case "(($ac_try" in
29968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969 *) ac_try_echo=$ac_try;;
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972 (eval "$ac_link") 2>conftest.er1
29974 grep -v '^ *+' conftest.er1 >conftest.err
29976 cat conftest.err >&5
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); } && {
29979 test -z "$ac_c_werror_flag" ||
29980 test ! -s conftest.err
29981 } && test -s conftest$ac_exeext &&
29982 $as_test_x conftest$ac_exeext; then
29983 ac_cv_func_connect=yes
29985 echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29988 ac_cv_func_connect=no
29991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29992 conftest$ac_exeext conftest.$ac_ext
29994 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29995 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29997 if test $ac_cv_func_connect = no; then
29998 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29999 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30000 if test "${ac_cv_lib_socket_connect+set}" = set; then
30001 echo $ECHO_N "(cached) $ECHO_C" >&6
30003 ac_check_lib_save_LIBS=$LIBS
30004 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30005 cat >conftest.$ac_ext <<_ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h. */
30012 /* Override any GCC internal prototype to avoid an error.
30013 Use char because int might match the return type of a GCC
30014 builtin and then its argument prototype would still apply. */
30027 rm -f conftest.$ac_objext conftest$ac_exeext
30028 if { (ac_try="$ac_link"
30029 case "(($ac_try" in
30030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30031 *) ac_try_echo=$ac_try;;
30033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30034 (eval "$ac_link") 2>conftest.er1
30036 grep -v '^ *+' conftest.er1 >conftest.err
30038 cat conftest.err >&5
30039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040 (exit $ac_status); } && {
30041 test -z "$ac_c_werror_flag" ||
30042 test ! -s conftest.err
30043 } && test -s conftest$ac_exeext &&
30044 $as_test_x conftest$ac_exeext; then
30045 ac_cv_lib_socket_connect=yes
30047 echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.$ac_ext >&5
30050 ac_cv_lib_socket_connect=no
30053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30054 conftest$ac_exeext conftest.$ac_ext
30055 LIBS=$ac_check_lib_save_LIBS
30057 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30058 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30059 if test $ac_cv_lib_socket_connect = yes; then
30060 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30065 # Guillermo Gomez says -lposix is necessary on A/UX.
30066 { echo "$as_me:$LINENO: checking for remove" >&5
30067 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30068 if test "${ac_cv_func_remove+set}" = set; then
30069 echo $ECHO_N "(cached) $ECHO_C" >&6
30071 cat >conftest.$ac_ext <<_ACEOF
30074 cat confdefs.h >>conftest.$ac_ext
30075 cat >>conftest.$ac_ext <<_ACEOF
30076 /* end confdefs.h. */
30077 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30079 #define remove innocuous_remove
30081 /* System header to define __stub macros and hopefully few prototypes,
30082 which can conflict with char remove (); below.
30083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30084 <limits.h> exists even on freestanding compilers. */
30087 # include <limits.h>
30089 # include <assert.h>
30094 /* Override any GCC internal prototype to avoid an error.
30095 Use char because int might match the return type of a GCC
30096 builtin and then its argument prototype would still apply. */
30101 /* The GNU C library defines this for functions which it implements
30102 to always fail with ENOSYS. Some functions are actually named
30103 something starting with __ and the normal name is an alias. */
30104 #if defined __stub_remove || defined __stub___remove
30116 rm -f conftest.$ac_objext conftest$ac_exeext
30117 if { (ac_try="$ac_link"
30118 case "(($ac_try" in
30119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120 *) ac_try_echo=$ac_try;;
30122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123 (eval "$ac_link") 2>conftest.er1
30125 grep -v '^ *+' conftest.er1 >conftest.err
30127 cat conftest.err >&5
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); } && {
30130 test -z "$ac_c_werror_flag" ||
30131 test ! -s conftest.err
30132 } && test -s conftest$ac_exeext &&
30133 $as_test_x conftest$ac_exeext; then
30134 ac_cv_func_remove=yes
30136 echo "$as_me: failed program was:" >&5
30137 sed 's/^/| /' conftest.$ac_ext >&5
30139 ac_cv_func_remove=no
30142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30143 conftest$ac_exeext conftest.$ac_ext
30145 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30146 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30148 if test $ac_cv_func_remove = no; then
30149 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30150 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30151 if test "${ac_cv_lib_posix_remove+set}" = set; then
30152 echo $ECHO_N "(cached) $ECHO_C" >&6
30154 ac_check_lib_save_LIBS=$LIBS
30155 LIBS="-lposix $LIBS"
30156 cat >conftest.$ac_ext <<_ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30163 /* Override any GCC internal prototype to avoid an error.
30164 Use char because int might match the return type of a GCC
30165 builtin and then its argument prototype would still apply. */
30178 rm -f conftest.$ac_objext conftest$ac_exeext
30179 if { (ac_try="$ac_link"
30180 case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_link") 2>conftest.er1
30187 grep -v '^ *+' conftest.er1 >conftest.err
30189 cat conftest.err >&5
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); } && {
30192 test -z "$ac_c_werror_flag" ||
30193 test ! -s conftest.err
30194 } && test -s conftest$ac_exeext &&
30195 $as_test_x conftest$ac_exeext; then
30196 ac_cv_lib_posix_remove=yes
30198 echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30201 ac_cv_lib_posix_remove=no
30204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30205 conftest$ac_exeext conftest.$ac_ext
30206 LIBS=$ac_check_lib_save_LIBS
30208 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30209 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30210 if test $ac_cv_lib_posix_remove = yes; then
30211 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30216 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30217 { echo "$as_me:$LINENO: checking for shmat" >&5
30218 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30219 if test "${ac_cv_func_shmat+set}" = set; then
30220 echo $ECHO_N "(cached) $ECHO_C" >&6
30222 cat >conftest.$ac_ext <<_ACEOF
30225 cat confdefs.h >>conftest.$ac_ext
30226 cat >>conftest.$ac_ext <<_ACEOF
30227 /* end confdefs.h. */
30228 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30230 #define shmat innocuous_shmat
30232 /* System header to define __stub macros and hopefully few prototypes,
30233 which can conflict with char shmat (); below.
30234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30235 <limits.h> exists even on freestanding compilers. */
30238 # include <limits.h>
30240 # include <assert.h>
30245 /* Override any GCC internal prototype to avoid an error.
30246 Use char because int might match the return type of a GCC
30247 builtin and then its argument prototype would still apply. */
30252 /* The GNU C library defines this for functions which it implements
30253 to always fail with ENOSYS. Some functions are actually named
30254 something starting with __ and the normal name is an alias. */
30255 #if defined __stub_shmat || defined __stub___shmat
30267 rm -f conftest.$ac_objext conftest$ac_exeext
30268 if { (ac_try="$ac_link"
30269 case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_link") 2>conftest.er1
30276 grep -v '^ *+' conftest.er1 >conftest.err
30278 cat conftest.err >&5
30279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30280 (exit $ac_status); } && {
30281 test -z "$ac_c_werror_flag" ||
30282 test ! -s conftest.err
30283 } && test -s conftest$ac_exeext &&
30284 $as_test_x conftest$ac_exeext; then
30285 ac_cv_func_shmat=yes
30287 echo "$as_me: failed program was:" >&5
30288 sed 's/^/| /' conftest.$ac_ext >&5
30290 ac_cv_func_shmat=no
30293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30294 conftest$ac_exeext conftest.$ac_ext
30296 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30297 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30299 if test $ac_cv_func_shmat = no; then
30300 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30301 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30302 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30305 ac_check_lib_save_LIBS=$LIBS
30307 cat >conftest.$ac_ext <<_ACEOF
30310 cat confdefs.h >>conftest.$ac_ext
30311 cat >>conftest.$ac_ext <<_ACEOF
30312 /* end confdefs.h. */
30314 /* Override any GCC internal prototype to avoid an error.
30315 Use char because int might match the return type of a GCC
30316 builtin and then its argument prototype would still apply. */
30329 rm -f conftest.$ac_objext conftest$ac_exeext
30330 if { (ac_try="$ac_link"
30331 case "(($ac_try" in
30332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30333 *) ac_try_echo=$ac_try;;
30335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30336 (eval "$ac_link") 2>conftest.er1
30338 grep -v '^ *+' conftest.er1 >conftest.err
30340 cat conftest.err >&5
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); } && {
30343 test -z "$ac_c_werror_flag" ||
30344 test ! -s conftest.err
30345 } && test -s conftest$ac_exeext &&
30346 $as_test_x conftest$ac_exeext; then
30347 ac_cv_lib_ipc_shmat=yes
30349 echo "$as_me: failed program was:" >&5
30350 sed 's/^/| /' conftest.$ac_ext >&5
30352 ac_cv_lib_ipc_shmat=no
30355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30356 conftest$ac_exeext conftest.$ac_ext
30357 LIBS=$ac_check_lib_save_LIBS
30359 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30360 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30361 if test $ac_cv_lib_ipc_shmat = yes; then
30362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30368 # Check for libraries that X11R6 Xt/Xaw programs need.
30369 ac_save_LDFLAGS=$LDFLAGS
30370 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30371 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30372 # check for ICE first), but we must link in the order -lSM -lICE or
30373 # we get undefined symbols. So assume we have SM if we have ICE.
30374 # These have to be linked with before -lX11, unlike the other
30375 # libraries we check for below, so use a different variable.
30376 # John Interrante, Karl Berry
30377 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30378 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30379 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30380 echo $ECHO_N "(cached) $ECHO_C" >&6
30382 ac_check_lib_save_LIBS=$LIBS
30383 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30384 cat >conftest.$ac_ext <<_ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h. */
30391 /* Override any GCC internal prototype to avoid an error.
30392 Use char because int might match the return type of a GCC
30393 builtin and then its argument prototype would still apply. */
30397 char IceConnectionNumber ();
30401 return IceConnectionNumber ();
30406 rm -f conftest.$ac_objext conftest$ac_exeext
30407 if { (ac_try="$ac_link"
30408 case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_link") 2>conftest.er1
30415 grep -v '^ *+' conftest.er1 >conftest.err
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30419 (exit $ac_status); } && {
30420 test -z "$ac_c_werror_flag" ||
30421 test ! -s conftest.err
30422 } && test -s conftest$ac_exeext &&
30423 $as_test_x conftest$ac_exeext; then
30424 ac_cv_lib_ICE_IceConnectionNumber=yes
30426 echo "$as_me: failed program was:" >&5
30427 sed 's/^/| /' conftest.$ac_ext >&5
30429 ac_cv_lib_ICE_IceConnectionNumber=no
30432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30433 conftest$ac_exeext conftest.$ac_ext
30434 LIBS=$ac_check_lib_save_LIBS
30436 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30437 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30438 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30439 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30442 LDFLAGS=$ac_save_LDFLAGS
30510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30515 echo $ECHO_N "(cached) $ECHO_C" >&6
30517 ac_res=`eval echo '${'$as_ac_Header'}'`
30518 { echo "$as_me:$LINENO: result: $ac_res" >&5
30519 echo "${ECHO_T}$ac_res" >&6; }
30521 # Is the header compilable?
30522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30524 cat >conftest.$ac_ext <<_ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h. */
30530 $ac_includes_default
30531 #include <$ac_header>
30533 rm -f conftest.$ac_objext
30534 if { (ac_try="$ac_compile"
30535 case "(($ac_try" in
30536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_compile") 2>conftest.er1
30542 grep -v '^ *+' conftest.er1 >conftest.err
30544 cat conftest.err >&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } && {
30547 test -z "$ac_c_werror_flag" ||
30548 test ! -s conftest.err
30549 } && test -s conftest.$ac_objext; then
30550 ac_header_compiler=yes
30552 echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30555 ac_header_compiler=no
30558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30560 echo "${ECHO_T}$ac_header_compiler" >&6; }
30562 # Is the header present?
30563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30565 cat >conftest.$ac_ext <<_ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h. */
30571 #include <$ac_header>
30573 if { (ac_try="$ac_cpp conftest.$ac_ext"
30574 case "(($ac_try" in
30575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576 *) ac_try_echo=$ac_try;;
30578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30581 grep -v '^ *+' conftest.er1 >conftest.err
30583 cat conftest.err >&5
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); } >/dev/null && {
30586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30587 test ! -s conftest.err
30589 ac_header_preproc=yes
30591 echo "$as_me: failed program was:" >&5
30592 sed 's/^/| /' conftest.$ac_ext >&5
30594 ac_header_preproc=no
30597 rm -f conftest.err conftest.$ac_ext
30598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30599 echo "${ECHO_T}$ac_header_preproc" >&6; }
30601 # So? What about this header?
30602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30608 ac_header_preproc=yes
30611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30629 echo $ECHO_N "(cached) $ECHO_C" >&6
30631 eval "$as_ac_Header=\$ac_header_preproc"
30633 ac_res=`eval echo '${'$as_ac_Header'}'`
30634 { echo "$as_me:$LINENO: result: $ac_res" >&5
30635 echo "${ECHO_T}$ac_res" >&6; }
30638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30639 cat >>confdefs.h <<_ACEOF
30640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30647 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30648 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30649 if test "${ac_cv_header_stdc+set}" = set; then
30650 echo $ECHO_N "(cached) $ECHO_C" >&6
30652 cat >conftest.$ac_ext <<_ACEOF
30655 cat confdefs.h >>conftest.$ac_ext
30656 cat >>conftest.$ac_ext <<_ACEOF
30657 /* end confdefs.h. */
30658 #include <stdlib.h>
30659 #include <stdarg.h>
30660 #include <string.h>
30671 rm -f conftest.$ac_objext
30672 if { (ac_try="$ac_compile"
30673 case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_compile") 2>conftest.er1
30680 grep -v '^ *+' conftest.er1 >conftest.err
30682 cat conftest.err >&5
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); } && {
30685 test -z "$ac_c_werror_flag" ||
30686 test ! -s conftest.err
30687 } && test -s conftest.$ac_objext; then
30688 ac_cv_header_stdc=yes
30690 echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30693 ac_cv_header_stdc=no
30696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30698 if test $ac_cv_header_stdc = yes; then
30699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30700 cat >conftest.$ac_ext <<_ACEOF
30703 cat confdefs.h >>conftest.$ac_ext
30704 cat >>conftest.$ac_ext <<_ACEOF
30705 /* end confdefs.h. */
30706 #include <string.h>
30709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30710 $EGREP "memchr" >/dev/null 2>&1; then
30713 ac_cv_header_stdc=no
30719 if test $ac_cv_header_stdc = yes; then
30720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30721 cat >conftest.$ac_ext <<_ACEOF
30724 cat confdefs.h >>conftest.$ac_ext
30725 cat >>conftest.$ac_ext <<_ACEOF
30726 /* end confdefs.h. */
30727 #include <stdlib.h>
30730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30731 $EGREP "free" >/dev/null 2>&1; then
30734 ac_cv_header_stdc=no
30740 if test $ac_cv_header_stdc = yes; then
30741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30742 if test "$cross_compiling" = yes; then
30745 cat >conftest.$ac_ext <<_ACEOF
30748 cat confdefs.h >>conftest.$ac_ext
30749 cat >>conftest.$ac_ext <<_ACEOF
30750 /* end confdefs.h. */
30752 #include <stdlib.h>
30753 #if ((' ' & 0x0FF) == 0x020)
30754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30757 # define ISLOWER(c) \
30758 (('a' <= (c) && (c) <= 'i') \
30759 || ('j' <= (c) && (c) <= 'r') \
30760 || ('s' <= (c) && (c) <= 'z'))
30761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30769 for (i = 0; i < 256; i++)
30770 if (XOR (islower (i), ISLOWER (i))
30771 || toupper (i) != TOUPPER (i))
30776 rm -f conftest$ac_exeext
30777 if { (ac_try="$ac_link"
30778 case "(($ac_try" in
30779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780 *) ac_try_echo=$ac_try;;
30782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30783 (eval "$ac_link") 2>&5
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; }; then
30798 echo "$as_me: program exited with status $ac_status" >&5
30799 echo "$as_me: failed program was:" >&5
30800 sed 's/^/| /' conftest.$ac_ext >&5
30802 ( exit $ac_status )
30803 ac_cv_header_stdc=no
30805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30811 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30812 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30813 if test $ac_cv_header_stdc = yes; then
30815 cat >>confdefs.h <<\_ACEOF
30816 #define STDC_HEADERS 1
30821 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30822 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30823 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30824 echo $ECHO_N "(cached) $ECHO_C" >&6
30826 cat >conftest.$ac_ext <<_ACEOF
30829 cat confdefs.h >>conftest.$ac_ext
30830 cat >>conftest.$ac_ext <<_ACEOF
30831 /* end confdefs.h. */
30832 #include <sys/types.h>
30836 return makedev(0, 0);
30841 rm -f conftest.$ac_objext conftest$ac_exeext
30842 if { (ac_try="$ac_link"
30843 case "(($ac_try" in
30844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30845 *) ac_try_echo=$ac_try;;
30847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30848 (eval "$ac_link") 2>conftest.er1
30850 grep -v '^ *+' conftest.er1 >conftest.err
30852 cat conftest.err >&5
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); } && {
30855 test -z "$ac_c_werror_flag" ||
30856 test ! -s conftest.err
30857 } && test -s conftest$ac_exeext &&
30858 $as_test_x conftest$ac_exeext; then
30859 ac_cv_header_sys_types_h_makedev=yes
30861 echo "$as_me: failed program was:" >&5
30862 sed 's/^/| /' conftest.$ac_ext >&5
30864 ac_cv_header_sys_types_h_makedev=no
30867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30868 conftest$ac_exeext conftest.$ac_ext
30871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30872 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30874 if test $ac_cv_header_sys_types_h_makedev = no; then
30875 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30876 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30877 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30878 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30879 echo $ECHO_N "(cached) $ECHO_C" >&6
30881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30882 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30884 # Is the header compilable?
30885 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30886 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30887 cat >conftest.$ac_ext <<_ACEOF
30890 cat confdefs.h >>conftest.$ac_ext
30891 cat >>conftest.$ac_ext <<_ACEOF
30892 /* end confdefs.h. */
30893 $ac_includes_default
30894 #include <sys/mkdev.h>
30896 rm -f conftest.$ac_objext
30897 if { (ac_try="$ac_compile"
30898 case "(($ac_try" in
30899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900 *) ac_try_echo=$ac_try;;
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903 (eval "$ac_compile") 2>conftest.er1
30905 grep -v '^ *+' conftest.er1 >conftest.err
30907 cat conftest.err >&5
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); } && {
30910 test -z "$ac_c_werror_flag" ||
30911 test ! -s conftest.err
30912 } && test -s conftest.$ac_objext; then
30913 ac_header_compiler=yes
30915 echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30918 ac_header_compiler=no
30921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30923 echo "${ECHO_T}$ac_header_compiler" >&6; }
30925 # Is the header present?
30926 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30927 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30928 cat >conftest.$ac_ext <<_ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h. */
30934 #include <sys/mkdev.h>
30936 if { (ac_try="$ac_cpp conftest.$ac_ext"
30937 case "(($ac_try" in
30938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939 *) ac_try_echo=$ac_try;;
30941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30944 grep -v '^ *+' conftest.er1 >conftest.err
30946 cat conftest.err >&5
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); } >/dev/null && {
30949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30950 test ! -s conftest.err
30952 ac_header_preproc=yes
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 ac_header_preproc=no
30960 rm -f conftest.err conftest.$ac_ext
30961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30962 echo "${ECHO_T}$ac_header_preproc" >&6; }
30964 # So? What about this header?
30965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30967 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30968 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30970 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30971 ac_header_preproc=yes
30974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30975 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30979 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30981 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30982 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30983 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30984 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30985 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30989 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30990 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30991 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30992 echo $ECHO_N "(cached) $ECHO_C" >&6
30994 ac_cv_header_sys_mkdev_h=$ac_header_preproc
30996 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30997 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31000 if test $ac_cv_header_sys_mkdev_h = yes; then
31002 cat >>confdefs.h <<\_ACEOF
31003 #define MAJOR_IN_MKDEV 1
31010 if test $ac_cv_header_sys_mkdev_h = no; then
31011 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31012 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31013 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31014 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31015 echo $ECHO_N "(cached) $ECHO_C" >&6
31017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31018 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31020 # Is the header compilable?
31021 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31022 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31023 cat >conftest.$ac_ext <<_ACEOF
31026 cat confdefs.h >>conftest.$ac_ext
31027 cat >>conftest.$ac_ext <<_ACEOF
31028 /* end confdefs.h. */
31029 $ac_includes_default
31030 #include <sys/sysmacros.h>
31032 rm -f conftest.$ac_objext
31033 if { (ac_try="$ac_compile"
31034 case "(($ac_try" in
31035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31036 *) ac_try_echo=$ac_try;;
31038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31039 (eval "$ac_compile") 2>conftest.er1
31041 grep -v '^ *+' conftest.er1 >conftest.err
31043 cat conftest.err >&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); } && {
31046 test -z "$ac_c_werror_flag" ||
31047 test ! -s conftest.err
31048 } && test -s conftest.$ac_objext; then
31049 ac_header_compiler=yes
31051 echo "$as_me: failed program was:" >&5
31052 sed 's/^/| /' conftest.$ac_ext >&5
31054 ac_header_compiler=no
31057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31059 echo "${ECHO_T}$ac_header_compiler" >&6; }
31061 # Is the header present?
31062 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31063 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31064 cat >conftest.$ac_ext <<_ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h. */
31070 #include <sys/sysmacros.h>
31072 if { (ac_try="$ac_cpp conftest.$ac_ext"
31073 case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31080 grep -v '^ *+' conftest.er1 >conftest.err
31082 cat conftest.err >&5
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); } >/dev/null && {
31085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31086 test ! -s conftest.err
31088 ac_header_preproc=yes
31090 echo "$as_me: failed program was:" >&5
31091 sed 's/^/| /' conftest.$ac_ext >&5
31093 ac_header_preproc=no
31096 rm -f conftest.err conftest.$ac_ext
31097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31098 echo "${ECHO_T}$ac_header_preproc" >&6; }
31100 # So? What about this header?
31101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31103 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31104 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31105 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31106 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31107 ac_header_preproc=yes
31110 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31111 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31112 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31114 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31115 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31116 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31117 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31118 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31119 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31120 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31121 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31125 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31126 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31127 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31128 echo $ECHO_N "(cached) $ECHO_C" >&6
31130 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31132 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31133 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31136 if test $ac_cv_header_sys_sysmacros_h = yes; then
31138 cat >>confdefs.h <<\_ACEOF
31139 #define MAJOR_IN_SYSMACROS 1
31153 ac_header_dirent=no
31154 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31155 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31156 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31157 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31159 echo $ECHO_N "(cached) $ECHO_C" >&6
31161 cat >conftest.$ac_ext <<_ACEOF
31164 cat confdefs.h >>conftest.$ac_ext
31165 cat >>conftest.$ac_ext <<_ACEOF
31166 /* end confdefs.h. */
31167 #include <sys/types.h>
31179 rm -f conftest.$ac_objext
31180 if { (ac_try="$ac_compile"
31181 case "(($ac_try" in
31182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31183 *) ac_try_echo=$ac_try;;
31185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31186 (eval "$ac_compile") 2>conftest.er1
31188 grep -v '^ *+' conftest.er1 >conftest.err
31190 cat conftest.err >&5
31191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192 (exit $ac_status); } && {
31193 test -z "$ac_c_werror_flag" ||
31194 test ! -s conftest.err
31195 } && test -s conftest.$ac_objext; then
31196 eval "$as_ac_Header=yes"
31198 echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31201 eval "$as_ac_Header=no"
31204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31206 ac_res=`eval echo '${'$as_ac_Header'}'`
31207 { echo "$as_me:$LINENO: result: $ac_res" >&5
31208 echo "${ECHO_T}$ac_res" >&6; }
31209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31210 cat >>confdefs.h <<_ACEOF
31211 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31214 ac_header_dirent=$ac_hdr; break
31218 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31219 if test $ac_header_dirent = dirent.h; then
31220 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31221 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31222 if test "${ac_cv_search_opendir+set}" = set; then
31223 echo $ECHO_N "(cached) $ECHO_C" >&6
31225 ac_func_search_save_LIBS=$LIBS
31226 cat >conftest.$ac_ext <<_ACEOF
31229 cat confdefs.h >>conftest.$ac_ext
31230 cat >>conftest.$ac_ext <<_ACEOF
31231 /* end confdefs.h. */
31233 /* Override any GCC internal prototype to avoid an error.
31234 Use char because int might match the return type of a GCC
31235 builtin and then its argument prototype would still apply. */
31248 for ac_lib in '' dir; do
31249 if test -z "$ac_lib"; then
31250 ac_res="none required"
31253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31255 rm -f conftest.$ac_objext conftest$ac_exeext
31256 if { (ac_try="$ac_link"
31257 case "(($ac_try" in
31258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31259 *) ac_try_echo=$ac_try;;
31261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31262 (eval "$ac_link") 2>conftest.er1
31264 grep -v '^ *+' conftest.er1 >conftest.err
31266 cat conftest.err >&5
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } && {
31269 test -z "$ac_c_werror_flag" ||
31270 test ! -s conftest.err
31271 } && test -s conftest$ac_exeext &&
31272 $as_test_x conftest$ac_exeext; then
31273 ac_cv_search_opendir=$ac_res
31275 echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31283 if test "${ac_cv_search_opendir+set}" = set; then
31287 if test "${ac_cv_search_opendir+set}" = set; then
31290 ac_cv_search_opendir=no
31292 rm conftest.$ac_ext
31293 LIBS=$ac_func_search_save_LIBS
31295 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31296 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31297 ac_res=$ac_cv_search_opendir
31298 if test "$ac_res" != no; then
31299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31304 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31305 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31306 if test "${ac_cv_search_opendir+set}" = set; then
31307 echo $ECHO_N "(cached) $ECHO_C" >&6
31309 ac_func_search_save_LIBS=$LIBS
31310 cat >conftest.$ac_ext <<_ACEOF
31313 cat confdefs.h >>conftest.$ac_ext
31314 cat >>conftest.$ac_ext <<_ACEOF
31315 /* end confdefs.h. */
31317 /* Override any GCC internal prototype to avoid an error.
31318 Use char because int might match the return type of a GCC
31319 builtin and then its argument prototype would still apply. */
31332 for ac_lib in '' x; do
31333 if test -z "$ac_lib"; then
31334 ac_res="none required"
31337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31339 rm -f conftest.$ac_objext conftest$ac_exeext
31340 if { (ac_try="$ac_link"
31341 case "(($ac_try" in
31342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343 *) ac_try_echo=$ac_try;;
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346 (eval "$ac_link") 2>conftest.er1
31348 grep -v '^ *+' conftest.er1 >conftest.err
31350 cat conftest.err >&5
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); } && {
31353 test -z "$ac_c_werror_flag" ||
31354 test ! -s conftest.err
31355 } && test -s conftest$ac_exeext &&
31356 $as_test_x conftest$ac_exeext; then
31357 ac_cv_search_opendir=$ac_res
31359 echo "$as_me: failed program was:" >&5
31360 sed 's/^/| /' conftest.$ac_ext >&5
31365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31367 if test "${ac_cv_search_opendir+set}" = set; then
31371 if test "${ac_cv_search_opendir+set}" = set; then
31374 ac_cv_search_opendir=no
31376 rm conftest.$ac_ext
31377 LIBS=$ac_func_search_save_LIBS
31379 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31380 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31381 ac_res=$ac_cv_search_opendir
31382 if test "$ac_res" != no; then
31383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31389 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31390 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31391 if test "${ac_cv_header_stat_broken+set}" = set; then
31392 echo $ECHO_N "(cached) $ECHO_C" >&6
31394 cat >conftest.$ac_ext <<_ACEOF
31397 cat confdefs.h >>conftest.$ac_ext
31398 cat >>conftest.$ac_ext <<_ACEOF
31399 /* end confdefs.h. */
31400 #include <sys/types.h>
31401 #include <sys/stat.h>
31403 #if defined S_ISBLK && defined S_IFDIR
31404 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31407 #if defined S_ISBLK && defined S_IFCHR
31408 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31411 #if defined S_ISLNK && defined S_IFREG
31412 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31415 #if defined S_ISSOCK && defined S_IFREG
31416 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31420 rm -f conftest.$ac_objext
31421 if { (ac_try="$ac_compile"
31422 case "(($ac_try" in
31423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424 *) ac_try_echo=$ac_try;;
31426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427 (eval "$ac_compile") 2>conftest.er1
31429 grep -v '^ *+' conftest.er1 >conftest.err
31431 cat conftest.err >&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); } && {
31434 test -z "$ac_c_werror_flag" ||
31435 test ! -s conftest.err
31436 } && test -s conftest.$ac_objext; then
31437 ac_cv_header_stat_broken=no
31439 echo "$as_me: failed program was:" >&5
31440 sed 's/^/| /' conftest.$ac_ext >&5
31442 ac_cv_header_stat_broken=yes
31445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31447 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31448 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31449 if test $ac_cv_header_stat_broken = yes; then
31451 cat >>confdefs.h <<\_ACEOF
31452 #define STAT_MACROS_BROKEN 1
31457 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31458 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31459 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31460 echo $ECHO_N "(cached) $ECHO_C" >&6
31462 cat >conftest.$ac_ext <<_ACEOF
31465 cat confdefs.h >>conftest.$ac_ext
31466 cat >>conftest.$ac_ext <<_ACEOF
31467 /* end confdefs.h. */
31468 #include <sys/types.h>
31469 #include <sys/wait.h>
31470 #ifndef WEXITSTATUS
31471 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31474 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31482 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31487 rm -f conftest.$ac_objext
31488 if { (ac_try="$ac_compile"
31489 case "(($ac_try" in
31490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31491 *) ac_try_echo=$ac_try;;
31493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31494 (eval "$ac_compile") 2>conftest.er1
31496 grep -v '^ *+' conftest.er1 >conftest.err
31498 cat conftest.err >&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } && {
31501 test -z "$ac_c_werror_flag" ||
31502 test ! -s conftest.err
31503 } && test -s conftest.$ac_objext; then
31504 ac_cv_header_sys_wait_h=yes
31506 echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31509 ac_cv_header_sys_wait_h=no
31512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31515 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31516 if test $ac_cv_header_sys_wait_h = yes; then
31518 cat >>confdefs.h <<\_ACEOF
31519 #define HAVE_SYS_WAIT_H 1
31524 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31525 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31526 if test "${ac_cv_header_time+set}" = set; then
31527 echo $ECHO_N "(cached) $ECHO_C" >&6
31529 cat >conftest.$ac_ext <<_ACEOF
31532 cat confdefs.h >>conftest.$ac_ext
31533 cat >>conftest.$ac_ext <<_ACEOF
31534 /* end confdefs.h. */
31535 #include <sys/types.h>
31536 #include <sys/time.h>
31542 if ((struct tm *) 0)
31548 rm -f conftest.$ac_objext
31549 if { (ac_try="$ac_compile"
31550 case "(($ac_try" in
31551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552 *) ac_try_echo=$ac_try;;
31554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555 (eval "$ac_compile") 2>conftest.er1
31557 grep -v '^ *+' conftest.er1 >conftest.err
31559 cat conftest.err >&5
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); } && {
31562 test -z "$ac_c_werror_flag" ||
31563 test ! -s conftest.err
31564 } && test -s conftest.$ac_objext; then
31565 ac_cv_header_time=yes
31567 echo "$as_me: failed program was:" >&5
31568 sed 's/^/| /' conftest.$ac_ext >&5
31570 ac_cv_header_time=no
31573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31575 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31576 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31577 if test $ac_cv_header_time = yes; then
31579 cat >>confdefs.h <<\_ACEOF
31580 #define TIME_WITH_SYS_TIME 1
31585 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31586 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31587 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31588 echo $ECHO_N "(cached) $ECHO_C" >&6
31590 cat >conftest.$ac_ext <<_ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31596 $ac_includes_default
31600 static struct stat ac_aggr;
31601 if (ac_aggr.st_blksize)
31607 rm -f conftest.$ac_objext
31608 if { (ac_try="$ac_compile"
31609 case "(($ac_try" in
31610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31611 *) ac_try_echo=$ac_try;;
31613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614 (eval "$ac_compile") 2>conftest.er1
31616 grep -v '^ *+' conftest.er1 >conftest.err
31618 cat conftest.err >&5
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); } && {
31621 test -z "$ac_c_werror_flag" ||
31622 test ! -s conftest.err
31623 } && test -s conftest.$ac_objext; then
31624 ac_cv_member_struct_stat_st_blksize=yes
31626 echo "$as_me: failed program was:" >&5
31627 sed 's/^/| /' conftest.$ac_ext >&5
31629 cat >conftest.$ac_ext <<_ACEOF
31632 cat confdefs.h >>conftest.$ac_ext
31633 cat >>conftest.$ac_ext <<_ACEOF
31634 /* end confdefs.h. */
31635 $ac_includes_default
31639 static struct stat ac_aggr;
31640 if (sizeof ac_aggr.st_blksize)
31646 rm -f conftest.$ac_objext
31647 if { (ac_try="$ac_compile"
31648 case "(($ac_try" in
31649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31650 *) ac_try_echo=$ac_try;;
31652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31653 (eval "$ac_compile") 2>conftest.er1
31655 grep -v '^ *+' conftest.er1 >conftest.err
31657 cat conftest.err >&5
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); } && {
31660 test -z "$ac_c_werror_flag" ||
31661 test ! -s conftest.err
31662 } && test -s conftest.$ac_objext; then
31663 ac_cv_member_struct_stat_st_blksize=yes
31665 echo "$as_me: failed program was:" >&5
31666 sed 's/^/| /' conftest.$ac_ext >&5
31668 ac_cv_member_struct_stat_st_blksize=no
31671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31676 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31677 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31678 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31680 cat >>confdefs.h <<_ACEOF
31681 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31685 cat >>confdefs.h <<\_ACEOF
31686 #define HAVE_ST_BLKSIZE 1
31692 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31693 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31694 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31695 echo $ECHO_N "(cached) $ECHO_C" >&6
31697 cat >conftest.$ac_ext <<_ACEOF
31700 cat confdefs.h >>conftest.$ac_ext
31701 cat >>conftest.$ac_ext <<_ACEOF
31702 /* end confdefs.h. */
31703 $ac_includes_default
31707 static struct stat ac_aggr;
31708 if (ac_aggr.st_blocks)
31714 rm -f conftest.$ac_objext
31715 if { (ac_try="$ac_compile"
31716 case "(($ac_try" in
31717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718 *) ac_try_echo=$ac_try;;
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721 (eval "$ac_compile") 2>conftest.er1
31723 grep -v '^ *+' conftest.er1 >conftest.err
31725 cat conftest.err >&5
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); } && {
31728 test -z "$ac_c_werror_flag" ||
31729 test ! -s conftest.err
31730 } && test -s conftest.$ac_objext; then
31731 ac_cv_member_struct_stat_st_blocks=yes
31733 echo "$as_me: failed program was:" >&5
31734 sed 's/^/| /' conftest.$ac_ext >&5
31736 cat >conftest.$ac_ext <<_ACEOF
31739 cat confdefs.h >>conftest.$ac_ext
31740 cat >>conftest.$ac_ext <<_ACEOF
31741 /* end confdefs.h. */
31742 $ac_includes_default
31746 static struct stat ac_aggr;
31747 if (sizeof ac_aggr.st_blocks)
31753 rm -f conftest.$ac_objext
31754 if { (ac_try="$ac_compile"
31755 case "(($ac_try" in
31756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31757 *) ac_try_echo=$ac_try;;
31759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31760 (eval "$ac_compile") 2>conftest.er1
31762 grep -v '^ *+' conftest.er1 >conftest.err
31764 cat conftest.err >&5
31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766 (exit $ac_status); } && {
31767 test -z "$ac_c_werror_flag" ||
31768 test ! -s conftest.err
31769 } && test -s conftest.$ac_objext; then
31770 ac_cv_member_struct_stat_st_blocks=yes
31772 echo "$as_me: failed program was:" >&5
31773 sed 's/^/| /' conftest.$ac_ext >&5
31775 ac_cv_member_struct_stat_st_blocks=no
31778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31783 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31784 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31785 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31787 cat >>confdefs.h <<_ACEOF
31788 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31792 cat >>confdefs.h <<\_ACEOF
31793 #define HAVE_ST_BLOCKS 1
31797 case " $LIBOBJS " in
31798 *" fileblocks.$ac_objext "* ) ;;
31799 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31806 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31807 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31808 if test "${ac_cv_struct_tm+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31811 cat >conftest.$ac_ext <<_ACEOF
31814 cat confdefs.h >>conftest.$ac_ext
31815 cat >>conftest.$ac_ext <<_ACEOF
31816 /* end confdefs.h. */
31817 #include <sys/types.h>
31824 int *p = &tm.tm_sec;
31830 rm -f conftest.$ac_objext
31831 if { (ac_try="$ac_compile"
31832 case "(($ac_try" in
31833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834 *) ac_try_echo=$ac_try;;
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837 (eval "$ac_compile") 2>conftest.er1
31839 grep -v '^ *+' conftest.er1 >conftest.err
31841 cat conftest.err >&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } && {
31844 test -z "$ac_c_werror_flag" ||
31845 test ! -s conftest.err
31846 } && test -s conftest.$ac_objext; then
31847 ac_cv_struct_tm=time.h
31849 echo "$as_me: failed program was:" >&5
31850 sed 's/^/| /' conftest.$ac_ext >&5
31852 ac_cv_struct_tm=sys/time.h
31855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31857 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31858 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31859 if test $ac_cv_struct_tm = sys/time.h; then
31861 cat >>confdefs.h <<\_ACEOF
31862 #define TM_IN_SYS_TIME 1
31867 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31868 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31869 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31870 echo $ECHO_N "(cached) $ECHO_C" >&6
31872 cat >conftest.$ac_ext <<_ACEOF
31875 cat confdefs.h >>conftest.$ac_ext
31876 cat >>conftest.$ac_ext <<_ACEOF
31877 /* end confdefs.h. */
31878 #include <sys/types.h>
31879 #include <$ac_cv_struct_tm>
31885 static struct tm ac_aggr;
31886 if (ac_aggr.tm_zone)
31892 rm -f conftest.$ac_objext
31893 if { (ac_try="$ac_compile"
31894 case "(($ac_try" in
31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899 (eval "$ac_compile") 2>conftest.er1
31901 grep -v '^ *+' conftest.er1 >conftest.err
31903 cat conftest.err >&5
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); } && {
31906 test -z "$ac_c_werror_flag" ||
31907 test ! -s conftest.err
31908 } && test -s conftest.$ac_objext; then
31909 ac_cv_member_struct_tm_tm_zone=yes
31911 echo "$as_me: failed program was:" >&5
31912 sed 's/^/| /' conftest.$ac_ext >&5
31914 cat >conftest.$ac_ext <<_ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h. */
31920 #include <sys/types.h>
31921 #include <$ac_cv_struct_tm>
31927 static struct tm ac_aggr;
31928 if (sizeof ac_aggr.tm_zone)
31934 rm -f conftest.$ac_objext
31935 if { (ac_try="$ac_compile"
31936 case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31941 (eval "$ac_compile") 2>conftest.er1
31943 grep -v '^ *+' conftest.er1 >conftest.err
31945 cat conftest.err >&5
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); } && {
31948 test -z "$ac_c_werror_flag" ||
31949 test ! -s conftest.err
31950 } && test -s conftest.$ac_objext; then
31951 ac_cv_member_struct_tm_tm_zone=yes
31953 echo "$as_me: failed program was:" >&5
31954 sed 's/^/| /' conftest.$ac_ext >&5
31956 ac_cv_member_struct_tm_tm_zone=no
31959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31964 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31965 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31966 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31968 cat >>confdefs.h <<_ACEOF
31969 #define HAVE_STRUCT_TM_TM_ZONE 1
31975 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31977 cat >>confdefs.h <<\_ACEOF
31978 #define HAVE_TM_ZONE 1
31982 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31983 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31984 if test "${ac_cv_have_decl_tzname+set}" = set; then
31985 echo $ECHO_N "(cached) $ECHO_C" >&6
31987 cat >conftest.$ac_ext <<_ACEOF
31990 cat confdefs.h >>conftest.$ac_ext
31991 cat >>conftest.$ac_ext <<_ACEOF
31992 /* end confdefs.h. */
32006 rm -f conftest.$ac_objext
32007 if { (ac_try="$ac_compile"
32008 case "(($ac_try" in
32009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32010 *) ac_try_echo=$ac_try;;
32012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32013 (eval "$ac_compile") 2>conftest.er1
32015 grep -v '^ *+' conftest.er1 >conftest.err
32017 cat conftest.err >&5
32018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019 (exit $ac_status); } && {
32020 test -z "$ac_c_werror_flag" ||
32021 test ! -s conftest.err
32022 } && test -s conftest.$ac_objext; then
32023 ac_cv_have_decl_tzname=yes
32025 echo "$as_me: failed program was:" >&5
32026 sed 's/^/| /' conftest.$ac_ext >&5
32028 ac_cv_have_decl_tzname=no
32031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32034 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32035 if test $ac_cv_have_decl_tzname = yes; then
32037 cat >>confdefs.h <<_ACEOF
32038 #define HAVE_DECL_TZNAME 1
32043 cat >>confdefs.h <<_ACEOF
32044 #define HAVE_DECL_TZNAME 0
32051 { echo "$as_me:$LINENO: checking for tzname" >&5
32052 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32053 if test "${ac_cv_var_tzname+set}" = set; then
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32056 cat >conftest.$ac_ext <<_ACEOF
32059 cat confdefs.h >>conftest.$ac_ext
32060 cat >>conftest.$ac_ext <<_ACEOF
32061 /* end confdefs.h. */
32063 #if !HAVE_DECL_TZNAME
32064 extern char *tzname[];
32070 return tzname[0][0];
32075 rm -f conftest.$ac_objext conftest$ac_exeext
32076 if { (ac_try="$ac_link"
32077 case "(($ac_try" in
32078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079 *) ac_try_echo=$ac_try;;
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_link") 2>conftest.er1
32084 grep -v '^ *+' conftest.er1 >conftest.err
32086 cat conftest.err >&5
32087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32088 (exit $ac_status); } && {
32089 test -z "$ac_c_werror_flag" ||
32090 test ! -s conftest.err
32091 } && test -s conftest$ac_exeext &&
32092 $as_test_x conftest$ac_exeext; then
32093 ac_cv_var_tzname=yes
32095 echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32098 ac_cv_var_tzname=no
32101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32102 conftest$ac_exeext conftest.$ac_ext
32104 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32105 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32106 if test $ac_cv_var_tzname = yes; then
32108 cat >>confdefs.h <<\_ACEOF
32109 #define HAVE_TZNAME 1
32116 { echo "$as_me:$LINENO: checking for utime.h" >&5
32117 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32118 if test "${ba_cv_header_utime_h+set}" = set; then
32119 echo $ECHO_N "(cached) $ECHO_C" >&6
32122 cat >conftest.$ac_ext <<_ACEOF
32125 cat confdefs.h >>conftest.$ac_ext
32126 cat >>conftest.$ac_ext <<_ACEOF
32127 /* end confdefs.h. */
32129 #include <sys/types.h>
32142 rm -f conftest.$ac_objext
32143 if { (ac_try="$ac_compile"
32144 case "(($ac_try" in
32145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32146 *) ac_try_echo=$ac_try;;
32148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32149 (eval "$ac_compile") 2>conftest.er1
32151 grep -v '^ *+' conftest.er1 >conftest.err
32153 cat conftest.err >&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } && {
32156 test -z "$ac_c_werror_flag" ||
32157 test ! -s conftest.err
32158 } && test -s conftest.$ac_objext; then
32160 ba_cv_header_utime_h=yes
32163 echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32167 ba_cv_header_utime_h=no
32172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32176 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32177 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32178 test $ba_cv_header_utime_h = yes &&
32179 cat >>confdefs.h <<\_ACEOF
32180 #define HAVE_UTIME_H 1
32184 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32185 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32186 if test "${ba_cv_header_socklen_t+set}" = set; then
32187 echo $ECHO_N "(cached) $ECHO_C" >&6
32190 cat >conftest.$ac_ext <<_ACEOF
32193 cat confdefs.h >>conftest.$ac_ext
32194 cat >>conftest.$ac_ext <<_ACEOF
32195 /* end confdefs.h. */
32197 #include <sys/types.h>
32198 #include <sys/socket.h>
32210 rm -f conftest.$ac_objext
32211 if { (ac_try="$ac_compile"
32212 case "(($ac_try" in
32213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214 *) ac_try_echo=$ac_try;;
32216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217 (eval "$ac_compile") 2>conftest.er1
32219 grep -v '^ *+' conftest.er1 >conftest.err
32221 cat conftest.err >&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); } && {
32224 test -z "$ac_c_werror_flag" ||
32225 test ! -s conftest.err
32226 } && test -s conftest.$ac_objext; then
32228 ba_cv_header_socklen_t=yes
32231 echo "$as_me: failed program was:" >&5
32232 sed 's/^/| /' conftest.$ac_ext >&5
32235 ba_cv_header_socklen_t=no
32240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32244 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32245 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32246 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32247 #define HAVE_SOCKLEN_T 1
32251 { echo "$as_me:$LINENO: checking for bigendian" >&5
32252 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32253 if test "${ba_cv_bigendian+set}" = set; then
32254 echo $ECHO_N "(cached) $ECHO_C" >&6
32257 if test "$cross_compiling" = yes; then
32263 cat >conftest.$ac_ext <<_ACEOF
32266 cat confdefs.h >>conftest.$ac_ext
32267 cat >>conftest.$ac_ext <<_ACEOF
32268 /* end confdefs.h. */
32270 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32273 rm -f conftest$ac_exeext
32274 if { (ac_try="$ac_link"
32275 case "(($ac_try" in
32276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32277 *) ac_try_echo=$ac_try;;
32279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32280 (eval "$ac_link") 2>&5
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; }; then
32294 ba_cv_bigendian=yes
32297 echo "$as_me: program exited with status $ac_status" >&5
32298 echo "$as_me: failed program was:" >&5
32299 sed 's/^/| /' conftest.$ac_ext >&5
32301 ( exit $ac_status )
32306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32313 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32314 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32315 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32316 #define HAVE_BIGENDIAN 1
32321 ac_cpp='$CXXCPP $CPPFLAGS'
32322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32326 { echo "$as_me:$LINENO: checking for typeof" >&5
32327 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32328 if test "${ba_cv_have_typeof+set}" = set; then
32329 echo $ECHO_N "(cached) $ECHO_C" >&6
32332 if test "$cross_compiling" = yes; then
32334 ba_cv_have_typeof=no
32338 cat >conftest.$ac_ext <<_ACEOF
32341 cat confdefs.h >>conftest.$ac_ext
32342 cat >>conftest.$ac_ext <<_ACEOF
32343 /* end confdefs.h. */
32345 main(){char *a = 0; a = (typeof a)a;}
32348 rm -f conftest$ac_exeext
32349 if { (ac_try="$ac_link"
32350 case "(($ac_try" in
32351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352 *) ac_try_echo=$ac_try;;
32354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355 (eval "$ac_link") 2>&5
32357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
32366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32367 (exit $ac_status); }; }; then
32369 ba_cv_have_typeof=yes
32372 echo "$as_me: program exited with status $ac_status" >&5
32373 echo "$as_me: failed program was:" >&5
32374 sed 's/^/| /' conftest.$ac_ext >&5
32376 ( exit $ac_status )
32378 ba_cv_have_typeof=no
32381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32388 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32389 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32390 test $ba_cv_have_typeof = yes &&
32391 cat >>confdefs.h <<\_ACEOF
32392 #define HAVE_TYPEOF 1
32396 ac_cpp='$CPP $CPPFLAGS'
32397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32402 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32403 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32404 if test "${ac_cv_c_const+set}" = set; then
32405 echo $ECHO_N "(cached) $ECHO_C" >&6
32407 cat >conftest.$ac_ext <<_ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h. */
32417 /* FIXME: Include the comments suggested by Paul. */
32418 #ifndef __cplusplus
32419 /* Ultrix mips cc rejects this. */
32420 typedef int charset[2];
32422 /* SunOS 4.1.1 cc rejects this. */
32423 char const *const *pcpcc;
32425 /* NEC SVR4.0.2 mips cc rejects this. */
32426 struct point {int x, y;};
32427 static struct point const zero = {0,0};
32428 /* AIX XL C 1.02.0.0 rejects this.
32429 It does not let you subtract one const X* pointer from another in
32430 an arm of an if-expression whose if-part is not a constant
32432 const char *g = "string";
32433 pcpcc = &g + (g ? g-g : 0);
32434 /* HPUX 7.0 cc rejects these. */
32436 ppc = (char**) pcpcc;
32437 pcpcc = (char const *const *) ppc;
32438 { /* SCO 3.2v4 cc rejects this. */
32440 char const *s = 0 ? (char *) 0 : (char const *) 0;
32445 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32446 int x[] = {25, 17};
32447 const int *foo = &x[0];
32450 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32451 typedef const int *iptr;
32455 { /* AIX XL C 1.02.0.0 rejects this saying
32456 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32457 struct s { int j; const int *ap[3]; };
32458 struct s *b; b->j = 5;
32460 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32461 const int foo = 10;
32462 if (!foo) return 0;
32464 return !cs[0] && !zero.x;
32471 rm -f conftest.$ac_objext
32472 if { (ac_try="$ac_compile"
32473 case "(($ac_try" in
32474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475 *) ac_try_echo=$ac_try;;
32477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478 (eval "$ac_compile") 2>conftest.er1
32480 grep -v '^ *+' conftest.er1 >conftest.err
32482 cat conftest.err >&5
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); } && {
32485 test -z "$ac_c_werror_flag" ||
32486 test ! -s conftest.err
32487 } && test -s conftest.$ac_objext; then
32490 echo "$as_me: failed program was:" >&5
32491 sed 's/^/| /' conftest.$ac_ext >&5
32496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32498 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32499 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32500 if test $ac_cv_c_const = no; then
32502 cat >>confdefs.h <<\_ACEOF
32509 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32510 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32512 # The order of these tests is important.
32513 cat >conftest.$ac_ext <<_ACEOF
32516 cat confdefs.h >>conftest.$ac_ext
32517 cat >>conftest.$ac_ext <<_ACEOF
32518 /* end confdefs.h. */
32520 #include <sys/statvfs.h>
32521 #include <sys/fstyp.h>
32524 if { (ac_try="$ac_cpp conftest.$ac_ext"
32525 case "(($ac_try" in
32526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 *) ac_try_echo=$ac_try;;
32529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32532 grep -v '^ *+' conftest.er1 >conftest.err
32534 cat conftest.err >&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); } >/dev/null && {
32537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32538 test ! -s conftest.err
32540 cat >>confdefs.h <<\_ACEOF
32541 #define FSTYPE_STATVFS 1
32546 echo "$as_me: failed program was:" >&5
32547 sed 's/^/| /' conftest.$ac_ext >&5
32552 rm -f conftest.err conftest.$ac_ext
32553 if test $fstype = no; then
32554 cat >conftest.$ac_ext <<_ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h. */
32561 #include <sys/statfs.h>
32562 #include <sys/fstyp.h>
32565 if { (ac_try="$ac_cpp conftest.$ac_ext"
32566 case "(($ac_try" in
32567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568 *) ac_try_echo=$ac_try;;
32570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32573 grep -v '^ *+' conftest.er1 >conftest.err
32575 cat conftest.err >&5
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); } >/dev/null && {
32578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32579 test ! -s conftest.err
32581 cat >>confdefs.h <<\_ACEOF
32582 #define FSTYPE_USG_STATFS 1
32587 echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32593 rm -f conftest.err conftest.$ac_ext
32595 if test $fstype = no; then
32596 cat >conftest.$ac_ext <<_ACEOF
32599 cat confdefs.h >>conftest.$ac_ext
32600 cat >>conftest.$ac_ext <<_ACEOF
32601 /* end confdefs.h. */
32603 #include <sys/statfs.h>
32604 #include <sys/vmount.h>
32607 if { (ac_try="$ac_cpp conftest.$ac_ext"
32608 case "(($ac_try" in
32609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610 *) ac_try_echo=$ac_try;;
32612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32615 grep -v '^ *+' conftest.er1 >conftest.err
32617 cat conftest.err >&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); } >/dev/null && {
32620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32621 test ! -s conftest.err
32623 cat >>confdefs.h <<\_ACEOF
32624 #define FSTYPE_AIX_STATFS 1
32629 echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32635 rm -f conftest.err conftest.$ac_ext
32637 if test $fstype = no; then
32638 cat >conftest.$ac_ext <<_ACEOF
32641 cat confdefs.h >>conftest.$ac_ext
32642 cat >>conftest.$ac_ext <<_ACEOF
32643 /* end confdefs.h. */
32645 #include <mntent.h>
32648 if { (ac_try="$ac_cpp conftest.$ac_ext"
32649 case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32656 grep -v '^ *+' conftest.er1 >conftest.err
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } >/dev/null && {
32661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32662 test ! -s conftest.err
32664 cat >>confdefs.h <<\_ACEOF
32665 #define FSTYPE_MNTENT 1
32670 echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32676 rm -f conftest.err conftest.$ac_ext
32678 if test $fstype = no; then
32679 cat >conftest.$ac_ext <<_ACEOF
32682 cat confdefs.h >>conftest.$ac_ext
32683 cat >>conftest.$ac_ext <<_ACEOF
32684 /* end confdefs.h. */
32685 #include <sys/mount.h>
32688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32689 $EGREP "f_type;" >/dev/null 2>&1; then
32690 cat >>confdefs.h <<\_ACEOF
32691 #define FSTYPE_STATFS 1
32698 if test $fstype = no; then
32699 cat >conftest.$ac_ext <<_ACEOF
32702 cat confdefs.h >>conftest.$ac_ext
32703 cat >>conftest.$ac_ext <<_ACEOF
32704 /* end confdefs.h. */
32706 #include <sys/mount.h>
32707 #include <sys/fs_types.h>
32710 if { (ac_try="$ac_cpp conftest.$ac_ext"
32711 case "(($ac_try" in
32712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713 *) ac_try_echo=$ac_try;;
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32718 grep -v '^ *+' conftest.er1 >conftest.err
32720 cat conftest.err >&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); } >/dev/null && {
32723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32724 test ! -s conftest.err
32726 cat >>confdefs.h <<\_ACEOF
32727 #define FSTYPE_GETMNT 1
32732 echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32738 rm -f conftest.err conftest.$ac_ext
32740 { echo "$as_me:$LINENO: result: $fstype" >&5
32741 echo "${ECHO_T}$fstype" >&6; }
32743 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32744 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32745 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32746 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32747 echo $ECHO_N "(cached) $ECHO_C" >&6
32749 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32750 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32752 # Is the header compilable?
32753 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32754 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32755 cat >conftest.$ac_ext <<_ACEOF
32758 cat confdefs.h >>conftest.$ac_ext
32759 cat >>conftest.$ac_ext <<_ACEOF
32760 /* end confdefs.h. */
32761 $ac_includes_default
32762 #include <sys/statvfs.h>
32764 rm -f conftest.$ac_objext
32765 if { (ac_try="$ac_compile"
32766 case "(($ac_try" in
32767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768 *) ac_try_echo=$ac_try;;
32770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771 (eval "$ac_compile") 2>conftest.er1
32773 grep -v '^ *+' conftest.er1 >conftest.err
32775 cat conftest.err >&5
32776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777 (exit $ac_status); } && {
32778 test -z "$ac_c_werror_flag" ||
32779 test ! -s conftest.err
32780 } && test -s conftest.$ac_objext; then
32781 ac_header_compiler=yes
32783 echo "$as_me: failed program was:" >&5
32784 sed 's/^/| /' conftest.$ac_ext >&5
32786 ac_header_compiler=no
32789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32791 echo "${ECHO_T}$ac_header_compiler" >&6; }
32793 # Is the header present?
32794 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32795 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32796 cat >conftest.$ac_ext <<_ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h. */
32802 #include <sys/statvfs.h>
32804 if { (ac_try="$ac_cpp conftest.$ac_ext"
32805 case "(($ac_try" in
32806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32807 *) ac_try_echo=$ac_try;;
32809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32812 grep -v '^ *+' conftest.er1 >conftest.err
32814 cat conftest.err >&5
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); } >/dev/null && {
32817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32818 test ! -s conftest.err
32820 ac_header_preproc=yes
32822 echo "$as_me: failed program was:" >&5
32823 sed 's/^/| /' conftest.$ac_ext >&5
32825 ac_header_preproc=no
32828 rm -f conftest.err conftest.$ac_ext
32829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32830 echo "${ECHO_T}$ac_header_preproc" >&6; }
32832 # So? What about this header?
32833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32835 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32836 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32837 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32838 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32839 ac_header_preproc=yes
32842 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32843 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32844 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32846 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32847 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32848 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32849 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32850 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32851 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32852 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32853 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32857 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32858 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32859 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32860 echo $ECHO_N "(cached) $ECHO_C" >&6
32862 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32864 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32865 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32868 if test $ac_cv_header_sys_statvfs_h = yes; then
32870 cat >>confdefs.h <<\_ACEOF
32871 #define HAVE_SYS_STATVFS_H 1
32878 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32879 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32880 if test "${ac_cv_type_signal+set}" = set; then
32881 echo $ECHO_N "(cached) $ECHO_C" >&6
32883 cat >conftest.$ac_ext <<_ACEOF
32886 cat confdefs.h >>conftest.$ac_ext
32887 cat >>conftest.$ac_ext <<_ACEOF
32888 /* end confdefs.h. */
32889 #include <sys/types.h>
32890 #include <signal.h>
32895 return *(signal (0, 0)) (0) == 1;
32900 rm -f conftest.$ac_objext
32901 if { (ac_try="$ac_compile"
32902 case "(($ac_try" in
32903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904 *) ac_try_echo=$ac_try;;
32906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32907 (eval "$ac_compile") 2>conftest.er1
32909 grep -v '^ *+' conftest.er1 >conftest.err
32911 cat conftest.err >&5
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); } && {
32914 test -z "$ac_c_werror_flag" ||
32915 test ! -s conftest.err
32916 } && test -s conftest.$ac_objext; then
32917 ac_cv_type_signal=int
32919 echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.$ac_ext >&5
32922 ac_cv_type_signal=void
32925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32927 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32928 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32930 cat >>confdefs.h <<_ACEOF
32931 #define RETSIGTYPE $ac_cv_type_signal
32936 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32937 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32938 if test "${bash_cv_signal_vintage+set}" = set; then
32939 echo $ECHO_N "(cached) $ECHO_C" >&6
32942 cat >conftest.$ac_ext <<_ACEOF
32945 cat confdefs.h >>conftest.$ac_ext
32946 cat >>conftest.$ac_ext <<_ACEOF
32947 /* end confdefs.h. */
32948 #include <signal.h>
32954 struct sigaction sa;
32955 sigemptyset(&ss); sigsuspend(&ss);
32956 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32957 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32963 rm -f conftest.$ac_objext conftest$ac_exeext
32964 if { (ac_try="$ac_link"
32965 case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_link") 2>conftest.er1
32972 grep -v '^ *+' conftest.er1 >conftest.err
32974 cat conftest.err >&5
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); } && {
32977 test -z "$ac_c_werror_flag" ||
32978 test ! -s conftest.err
32979 } && test -s conftest$ac_exeext &&
32980 $as_test_x conftest$ac_exeext; then
32981 bash_cv_signal_vintage="posix"
32983 echo "$as_me: failed program was:" >&5
32984 sed 's/^/| /' conftest.$ac_ext >&5
32987 cat >conftest.$ac_ext <<_ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h. */
32993 #include <signal.h>
32998 int mask = sigmask(SIGINT);
32999 sigsetmask(mask); sigblock(mask); sigpause(mask);
33005 rm -f conftest.$ac_objext conftest$ac_exeext
33006 if { (ac_try="$ac_link"
33007 case "(($ac_try" in
33008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33009 *) ac_try_echo=$ac_try;;
33011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33012 (eval "$ac_link") 2>conftest.er1
33014 grep -v '^ *+' conftest.er1 >conftest.err
33016 cat conftest.err >&5
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); } && {
33019 test -z "$ac_c_werror_flag" ||
33020 test ! -s conftest.err
33021 } && test -s conftest$ac_exeext &&
33022 $as_test_x conftest$ac_exeext; then
33023 bash_cv_signal_vintage="4.2bsd"
33025 echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33029 cat >conftest.$ac_ext <<_ACEOF
33032 cat confdefs.h >>conftest.$ac_ext
33033 cat >>conftest.$ac_ext <<_ACEOF
33034 /* end confdefs.h. */
33036 #include <signal.h>
33037 RETSIGTYPE foo() { }
33042 int mask = sigmask(SIGINT);
33043 sigset(SIGINT, foo); sigrelse(SIGINT);
33044 sighold(SIGINT); sigpause(SIGINT);
33050 rm -f conftest.$ac_objext conftest$ac_exeext
33051 if { (ac_try="$ac_link"
33052 case "(($ac_try" in
33053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33054 *) ac_try_echo=$ac_try;;
33056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33057 (eval "$ac_link") 2>conftest.er1
33059 grep -v '^ *+' conftest.er1 >conftest.err
33061 cat conftest.err >&5
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); } && {
33064 test -z "$ac_c_werror_flag" ||
33065 test ! -s conftest.err
33066 } && test -s conftest$ac_exeext &&
33067 $as_test_x conftest$ac_exeext; then
33068 bash_cv_signal_vintage="svr3"
33070 echo "$as_me: failed program was:" >&5
33071 sed 's/^/| /' conftest.$ac_ext >&5
33073 bash_cv_signal_vintage="v7"
33077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33078 conftest$ac_exeext conftest.$ac_ext
33082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33083 conftest$ac_exeext conftest.$ac_ext
33087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33088 conftest$ac_exeext conftest.$ac_ext
33092 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33093 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33094 if test "$bash_cv_signal_vintage" = "posix"; then
33095 cat >>confdefs.h <<\_ACEOF
33096 #define HAVE_POSIX_SIGNALS 1
33099 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33100 cat >>confdefs.h <<\_ACEOF
33101 #define HAVE_BSD_SIGNALS 1
33104 elif test "$bash_cv_signal_vintage" = "svr3"; then
33105 cat >>confdefs.h <<\_ACEOF
33106 #define HAVE_USG_SIGHOLD 1
33111 { echo "$as_me:$LINENO: checking for mode_t" >&5
33112 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33113 if test "${ac_cv_type_mode_t+set}" = set; then
33114 echo $ECHO_N "(cached) $ECHO_C" >&6
33116 cat >conftest.$ac_ext <<_ACEOF
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h. */
33122 $ac_includes_default
33123 typedef mode_t ac__type_new_;
33127 if ((ac__type_new_ *) 0)
33129 if (sizeof (ac__type_new_))
33135 rm -f conftest.$ac_objext
33136 if { (ac_try="$ac_compile"
33137 case "(($ac_try" in
33138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33139 *) ac_try_echo=$ac_try;;
33141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33142 (eval "$ac_compile") 2>conftest.er1
33144 grep -v '^ *+' conftest.er1 >conftest.err
33146 cat conftest.err >&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); } && {
33149 test -z "$ac_c_werror_flag" ||
33150 test ! -s conftest.err
33151 } && test -s conftest.$ac_objext; then
33152 ac_cv_type_mode_t=yes
33154 echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33157 ac_cv_type_mode_t=no
33160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33162 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33163 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33164 if test $ac_cv_type_mode_t = yes; then
33168 cat >>confdefs.h <<_ACEOF
33174 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33175 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33176 if test "${ac_cv_type_uid_t+set}" = set; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33179 cat >conftest.$ac_ext <<_ACEOF
33182 cat confdefs.h >>conftest.$ac_ext
33183 cat >>conftest.$ac_ext <<_ACEOF
33184 /* end confdefs.h. */
33185 #include <sys/types.h>
33188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33189 $EGREP "uid_t" >/dev/null 2>&1; then
33190 ac_cv_type_uid_t=yes
33192 ac_cv_type_uid_t=no
33197 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33198 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33199 if test $ac_cv_type_uid_t = no; then
33201 cat >>confdefs.h <<\_ACEOF
33206 cat >>confdefs.h <<\_ACEOF
33212 { echo "$as_me:$LINENO: checking for size_t" >&5
33213 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33214 if test "${ac_cv_type_size_t+set}" = set; then
33215 echo $ECHO_N "(cached) $ECHO_C" >&6
33217 cat >conftest.$ac_ext <<_ACEOF
33220 cat confdefs.h >>conftest.$ac_ext
33221 cat >>conftest.$ac_ext <<_ACEOF
33222 /* end confdefs.h. */
33223 $ac_includes_default
33224 typedef size_t ac__type_new_;
33228 if ((ac__type_new_ *) 0)
33230 if (sizeof (ac__type_new_))
33236 rm -f conftest.$ac_objext
33237 if { (ac_try="$ac_compile"
33238 case "(($ac_try" in
33239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240 *) ac_try_echo=$ac_try;;
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243 (eval "$ac_compile") 2>conftest.er1
33245 grep -v '^ *+' conftest.er1 >conftest.err
33247 cat conftest.err >&5
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); } && {
33250 test -z "$ac_c_werror_flag" ||
33251 test ! -s conftest.err
33252 } && test -s conftest.$ac_objext; then
33253 ac_cv_type_size_t=yes
33255 echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33258 ac_cv_type_size_t=no
33261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33263 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33264 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33265 if test $ac_cv_type_size_t = yes; then
33269 cat >>confdefs.h <<_ACEOF
33270 #define size_t unsigned int
33275 { echo "$as_me:$LINENO: checking for pid_t" >&5
33276 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33277 if test "${ac_cv_type_pid_t+set}" = set; then
33278 echo $ECHO_N "(cached) $ECHO_C" >&6
33280 cat >conftest.$ac_ext <<_ACEOF
33283 cat confdefs.h >>conftest.$ac_ext
33284 cat >>conftest.$ac_ext <<_ACEOF
33285 /* end confdefs.h. */
33286 $ac_includes_default
33287 typedef pid_t ac__type_new_;
33291 if ((ac__type_new_ *) 0)
33293 if (sizeof (ac__type_new_))
33299 rm -f conftest.$ac_objext
33300 if { (ac_try="$ac_compile"
33301 case "(($ac_try" in
33302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303 *) ac_try_echo=$ac_try;;
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306 (eval "$ac_compile") 2>conftest.er1
33308 grep -v '^ *+' conftest.er1 >conftest.err
33310 cat conftest.err >&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } && {
33313 test -z "$ac_c_werror_flag" ||
33314 test ! -s conftest.err
33315 } && test -s conftest.$ac_objext; then
33316 ac_cv_type_pid_t=yes
33318 echo "$as_me: failed program was:" >&5
33319 sed 's/^/| /' conftest.$ac_ext >&5
33321 ac_cv_type_pid_t=no
33324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33326 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33327 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33328 if test $ac_cv_type_pid_t = yes; then
33332 cat >>confdefs.h <<_ACEOF
33338 { echo "$as_me:$LINENO: checking for off_t" >&5
33339 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33340 if test "${ac_cv_type_off_t+set}" = set; then
33341 echo $ECHO_N "(cached) $ECHO_C" >&6
33343 cat >conftest.$ac_ext <<_ACEOF
33346 cat confdefs.h >>conftest.$ac_ext
33347 cat >>conftest.$ac_ext <<_ACEOF
33348 /* end confdefs.h. */
33349 $ac_includes_default
33350 typedef off_t ac__type_new_;
33354 if ((ac__type_new_ *) 0)
33356 if (sizeof (ac__type_new_))
33362 rm -f conftest.$ac_objext
33363 if { (ac_try="$ac_compile"
33364 case "(($ac_try" in
33365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369 (eval "$ac_compile") 2>conftest.er1
33371 grep -v '^ *+' conftest.er1 >conftest.err
33373 cat conftest.err >&5
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); } && {
33376 test -z "$ac_c_werror_flag" ||
33377 test ! -s conftest.err
33378 } && test -s conftest.$ac_objext; then
33379 ac_cv_type_off_t=yes
33381 echo "$as_me: failed program was:" >&5
33382 sed 's/^/| /' conftest.$ac_ext >&5
33384 ac_cv_type_off_t=no
33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33389 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33390 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33391 if test $ac_cv_type_off_t = yes; then
33395 cat >>confdefs.h <<_ACEOF
33396 #define off_t long int
33401 { echo "$as_me:$LINENO: checking for ino_t" >&5
33402 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33403 if test "${ac_cv_type_ino_t+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33406 cat >conftest.$ac_ext <<_ACEOF
33409 cat confdefs.h >>conftest.$ac_ext
33410 cat >>conftest.$ac_ext <<_ACEOF
33411 /* end confdefs.h. */
33412 $ac_includes_default
33413 typedef ino_t ac__type_new_;
33417 if ((ac__type_new_ *) 0)
33419 if (sizeof (ac__type_new_))
33425 rm -f conftest.$ac_objext
33426 if { (ac_try="$ac_compile"
33427 case "(($ac_try" in
33428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33429 *) ac_try_echo=$ac_try;;
33431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33432 (eval "$ac_compile") 2>conftest.er1
33434 grep -v '^ *+' conftest.er1 >conftest.err
33436 cat conftest.err >&5
33437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438 (exit $ac_status); } && {
33439 test -z "$ac_c_werror_flag" ||
33440 test ! -s conftest.err
33441 } && test -s conftest.$ac_objext; then
33442 ac_cv_type_ino_t=yes
33444 echo "$as_me: failed program was:" >&5
33445 sed 's/^/| /' conftest.$ac_ext >&5
33447 ac_cv_type_ino_t=no
33450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33452 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33453 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33454 if test $ac_cv_type_ino_t = yes; then
33458 cat >>confdefs.h <<_ACEOF
33459 #define ino_t unsigned long
33464 { echo "$as_me:$LINENO: checking for dev_t" >&5
33465 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33466 if test "${ac_cv_type_dev_t+set}" = set; then
33467 echo $ECHO_N "(cached) $ECHO_C" >&6
33469 cat >conftest.$ac_ext <<_ACEOF
33472 cat confdefs.h >>conftest.$ac_ext
33473 cat >>conftest.$ac_ext <<_ACEOF
33474 /* end confdefs.h. */
33475 $ac_includes_default
33476 typedef dev_t ac__type_new_;
33480 if ((ac__type_new_ *) 0)
33482 if (sizeof (ac__type_new_))
33488 rm -f conftest.$ac_objext
33489 if { (ac_try="$ac_compile"
33490 case "(($ac_try" in
33491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33492 *) ac_try_echo=$ac_try;;
33494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33495 (eval "$ac_compile") 2>conftest.er1
33497 grep -v '^ *+' conftest.er1 >conftest.err
33499 cat conftest.err >&5
33500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501 (exit $ac_status); } && {
33502 test -z "$ac_c_werror_flag" ||
33503 test ! -s conftest.err
33504 } && test -s conftest.$ac_objext; then
33505 ac_cv_type_dev_t=yes
33507 echo "$as_me: failed program was:" >&5
33508 sed 's/^/| /' conftest.$ac_ext >&5
33510 ac_cv_type_dev_t=no
33513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33515 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33516 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33517 if test $ac_cv_type_dev_t = yes; then
33521 cat >>confdefs.h <<_ACEOF
33522 #define dev_t unsigned long
33527 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33528 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33529 if test "${ac_cv_type_daddr_t+set}" = set; then
33530 echo $ECHO_N "(cached) $ECHO_C" >&6
33532 cat >conftest.$ac_ext <<_ACEOF
33535 cat confdefs.h >>conftest.$ac_ext
33536 cat >>conftest.$ac_ext <<_ACEOF
33537 /* end confdefs.h. */
33538 $ac_includes_default
33539 typedef daddr_t ac__type_new_;
33543 if ((ac__type_new_ *) 0)
33545 if (sizeof (ac__type_new_))
33551 rm -f conftest.$ac_objext
33552 if { (ac_try="$ac_compile"
33553 case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_compile") 2>conftest.er1
33560 grep -v '^ *+' conftest.er1 >conftest.err
33562 cat conftest.err >&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); } && {
33565 test -z "$ac_c_werror_flag" ||
33566 test ! -s conftest.err
33567 } && test -s conftest.$ac_objext; then
33568 ac_cv_type_daddr_t=yes
33570 echo "$as_me: failed program was:" >&5
33571 sed 's/^/| /' conftest.$ac_ext >&5
33573 ac_cv_type_daddr_t=no
33576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33578 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33579 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33580 if test $ac_cv_type_daddr_t = yes; then
33584 cat >>confdefs.h <<_ACEOF
33585 #define daddr_t long
33590 { echo "$as_me:$LINENO: checking for major_t" >&5
33591 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33592 if test "${ac_cv_type_major_t+set}" = set; then
33593 echo $ECHO_N "(cached) $ECHO_C" >&6
33595 cat >conftest.$ac_ext <<_ACEOF
33598 cat confdefs.h >>conftest.$ac_ext
33599 cat >>conftest.$ac_ext <<_ACEOF
33600 /* end confdefs.h. */
33601 $ac_includes_default
33602 typedef major_t ac__type_new_;
33606 if ((ac__type_new_ *) 0)
33608 if (sizeof (ac__type_new_))
33614 rm -f conftest.$ac_objext
33615 if { (ac_try="$ac_compile"
33616 case "(($ac_try" in
33617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33618 *) ac_try_echo=$ac_try;;
33620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33621 (eval "$ac_compile") 2>conftest.er1
33623 grep -v '^ *+' conftest.er1 >conftest.err
33625 cat conftest.err >&5
33626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627 (exit $ac_status); } && {
33628 test -z "$ac_c_werror_flag" ||
33629 test ! -s conftest.err
33630 } && test -s conftest.$ac_objext; then
33631 ac_cv_type_major_t=yes
33633 echo "$as_me: failed program was:" >&5
33634 sed 's/^/| /' conftest.$ac_ext >&5
33636 ac_cv_type_major_t=no
33639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33641 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33642 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33643 if test $ac_cv_type_major_t = yes; then
33647 cat >>confdefs.h <<_ACEOF
33648 #define major_t int
33653 { echo "$as_me:$LINENO: checking for minor_t" >&5
33654 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33655 if test "${ac_cv_type_minor_t+set}" = set; then
33656 echo $ECHO_N "(cached) $ECHO_C" >&6
33658 cat >conftest.$ac_ext <<_ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h. */
33664 $ac_includes_default
33665 typedef minor_t ac__type_new_;
33669 if ((ac__type_new_ *) 0)
33671 if (sizeof (ac__type_new_))
33677 rm -f conftest.$ac_objext
33678 if { (ac_try="$ac_compile"
33679 case "(($ac_try" in
33680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33681 *) ac_try_echo=$ac_try;;
33683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33684 (eval "$ac_compile") 2>conftest.er1
33686 grep -v '^ *+' conftest.er1 >conftest.err
33688 cat conftest.err >&5
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); } && {
33691 test -z "$ac_c_werror_flag" ||
33692 test ! -s conftest.err
33693 } && test -s conftest.$ac_objext; then
33694 ac_cv_type_minor_t=yes
33696 echo "$as_me: failed program was:" >&5
33697 sed 's/^/| /' conftest.$ac_ext >&5
33699 ac_cv_type_minor_t=no
33702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33704 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33705 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33706 if test $ac_cv_type_minor_t = yes; then
33710 cat >>confdefs.h <<_ACEOF
33711 #define minor_t int
33716 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33717 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33718 if test "${ac_cv_type_ssize_t+set}" = set; then
33719 echo $ECHO_N "(cached) $ECHO_C" >&6
33721 cat >conftest.$ac_ext <<_ACEOF
33724 cat confdefs.h >>conftest.$ac_ext
33725 cat >>conftest.$ac_ext <<_ACEOF
33726 /* end confdefs.h. */
33727 $ac_includes_default
33728 typedef ssize_t ac__type_new_;
33732 if ((ac__type_new_ *) 0)
33734 if (sizeof (ac__type_new_))
33740 rm -f conftest.$ac_objext
33741 if { (ac_try="$ac_compile"
33742 case "(($ac_try" in
33743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33744 *) ac_try_echo=$ac_try;;
33746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33747 (eval "$ac_compile") 2>conftest.er1
33749 grep -v '^ *+' conftest.er1 >conftest.err
33751 cat conftest.err >&5
33752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); } && {
33754 test -z "$ac_c_werror_flag" ||
33755 test ! -s conftest.err
33756 } && test -s conftest.$ac_objext; then
33757 ac_cv_type_ssize_t=yes
33759 echo "$as_me: failed program was:" >&5
33760 sed 's/^/| /' conftest.$ac_ext >&5
33762 ac_cv_type_ssize_t=no
33765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33767 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33768 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33769 if test $ac_cv_type_ssize_t = yes; then
33773 cat >>confdefs.h <<_ACEOF
33774 #define ssize_t int
33779 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33780 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33781 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33782 echo $ECHO_N "(cached) $ECHO_C" >&6
33784 cat >conftest.$ac_ext <<_ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h. */
33790 $ac_includes_default
33794 static struct stat ac_aggr;
33795 if (ac_aggr.st_blocks)
33801 rm -f conftest.$ac_objext
33802 if { (ac_try="$ac_compile"
33803 case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_compile") 2>conftest.er1
33810 grep -v '^ *+' conftest.er1 >conftest.err
33812 cat conftest.err >&5
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); } && {
33815 test -z "$ac_c_werror_flag" ||
33816 test ! -s conftest.err
33817 } && test -s conftest.$ac_objext; then
33818 ac_cv_member_struct_stat_st_blocks=yes
33820 echo "$as_me: failed program was:" >&5
33821 sed 's/^/| /' conftest.$ac_ext >&5
33823 cat >conftest.$ac_ext <<_ACEOF
33826 cat confdefs.h >>conftest.$ac_ext
33827 cat >>conftest.$ac_ext <<_ACEOF
33828 /* end confdefs.h. */
33829 $ac_includes_default
33833 static struct stat ac_aggr;
33834 if (sizeof ac_aggr.st_blocks)
33840 rm -f conftest.$ac_objext
33841 if { (ac_try="$ac_compile"
33842 case "(($ac_try" in
33843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33844 *) ac_try_echo=$ac_try;;
33846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33847 (eval "$ac_compile") 2>conftest.er1
33849 grep -v '^ *+' conftest.er1 >conftest.err
33851 cat conftest.err >&5
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); } && {
33854 test -z "$ac_c_werror_flag" ||
33855 test ! -s conftest.err
33856 } && test -s conftest.$ac_objext; then
33857 ac_cv_member_struct_stat_st_blocks=yes
33859 echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33862 ac_cv_member_struct_stat_st_blocks=no
33865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33870 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33871 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33872 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33874 cat >>confdefs.h <<_ACEOF
33875 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33879 cat >>confdefs.h <<\_ACEOF
33880 #define HAVE_ST_BLOCKS 1
33884 case " $LIBOBJS " in
33885 *" fileblocks.$ac_objext "* ) ;;
33886 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33893 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33894 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33895 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33896 echo $ECHO_N "(cached) $ECHO_C" >&6
33898 cat >conftest.$ac_ext <<_ACEOF
33901 cat confdefs.h >>conftest.$ac_ext
33902 cat >>conftest.$ac_ext <<_ACEOF
33903 /* end confdefs.h. */
33904 $ac_includes_default
33908 static struct stat ac_aggr;
33909 if (ac_aggr.st_rdev)
33915 rm -f conftest.$ac_objext
33916 if { (ac_try="$ac_compile"
33917 case "(($ac_try" in
33918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33919 *) ac_try_echo=$ac_try;;
33921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33922 (eval "$ac_compile") 2>conftest.er1
33924 grep -v '^ *+' conftest.er1 >conftest.err
33926 cat conftest.err >&5
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); } && {
33929 test -z "$ac_c_werror_flag" ||
33930 test ! -s conftest.err
33931 } && test -s conftest.$ac_objext; then
33932 ac_cv_member_struct_stat_st_rdev=yes
33934 echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33937 cat >conftest.$ac_ext <<_ACEOF
33940 cat confdefs.h >>conftest.$ac_ext
33941 cat >>conftest.$ac_ext <<_ACEOF
33942 /* end confdefs.h. */
33943 $ac_includes_default
33947 static struct stat ac_aggr;
33948 if (sizeof ac_aggr.st_rdev)
33954 rm -f conftest.$ac_objext
33955 if { (ac_try="$ac_compile"
33956 case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_compile") 2>conftest.er1
33963 grep -v '^ *+' conftest.er1 >conftest.err
33965 cat conftest.err >&5
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); } && {
33968 test -z "$ac_c_werror_flag" ||
33969 test ! -s conftest.err
33970 } && test -s conftest.$ac_objext; then
33971 ac_cv_member_struct_stat_st_rdev=yes
33973 echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33976 ac_cv_member_struct_stat_st_rdev=no
33979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33984 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33985 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33986 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33988 cat >>confdefs.h <<_ACEOF
33989 #define HAVE_STRUCT_STAT_ST_RDEV 1
33993 cat >>confdefs.h <<\_ACEOF
33994 #define HAVE_ST_RDEV 1
34000 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34001 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34002 if test "${ac_cv_struct_tm+set}" = set; then
34003 echo $ECHO_N "(cached) $ECHO_C" >&6
34005 cat >conftest.$ac_ext <<_ACEOF
34008 cat confdefs.h >>conftest.$ac_ext
34009 cat >>conftest.$ac_ext <<_ACEOF
34010 /* end confdefs.h. */
34011 #include <sys/types.h>
34018 int *p = &tm.tm_sec;
34024 rm -f conftest.$ac_objext
34025 if { (ac_try="$ac_compile"
34026 case "(($ac_try" in
34027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028 *) ac_try_echo=$ac_try;;
34030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031 (eval "$ac_compile") 2>conftest.er1
34033 grep -v '^ *+' conftest.er1 >conftest.err
34035 cat conftest.err >&5
34036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); } && {
34038 test -z "$ac_c_werror_flag" ||
34039 test ! -s conftest.err
34040 } && test -s conftest.$ac_objext; then
34041 ac_cv_struct_tm=time.h
34043 echo "$as_me: failed program was:" >&5
34044 sed 's/^/| /' conftest.$ac_ext >&5
34046 ac_cv_struct_tm=sys/time.h
34049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34051 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34052 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34053 if test $ac_cv_struct_tm = sys/time.h; then
34055 cat >>confdefs.h <<\_ACEOF
34056 #define TM_IN_SYS_TIME 1
34061 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34062 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34063 if test "${ac_cv_c_const+set}" = set; then
34064 echo $ECHO_N "(cached) $ECHO_C" >&6
34066 cat >conftest.$ac_ext <<_ACEOF
34069 cat confdefs.h >>conftest.$ac_ext
34070 cat >>conftest.$ac_ext <<_ACEOF
34071 /* end confdefs.h. */
34076 /* FIXME: Include the comments suggested by Paul. */
34077 #ifndef __cplusplus
34078 /* Ultrix mips cc rejects this. */
34079 typedef int charset[2];
34081 /* SunOS 4.1.1 cc rejects this. */
34082 char const *const *pcpcc;
34084 /* NEC SVR4.0.2 mips cc rejects this. */
34085 struct point {int x, y;};
34086 static struct point const zero = {0,0};
34087 /* AIX XL C 1.02.0.0 rejects this.
34088 It does not let you subtract one const X* pointer from another in
34089 an arm of an if-expression whose if-part is not a constant
34091 const char *g = "string";
34092 pcpcc = &g + (g ? g-g : 0);
34093 /* HPUX 7.0 cc rejects these. */
34095 ppc = (char**) pcpcc;
34096 pcpcc = (char const *const *) ppc;
34097 { /* SCO 3.2v4 cc rejects this. */
34099 char const *s = 0 ? (char *) 0 : (char const *) 0;
34104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34105 int x[] = {25, 17};
34106 const int *foo = &x[0];
34109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34110 typedef const int *iptr;
34114 { /* AIX XL C 1.02.0.0 rejects this saying
34115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34116 struct s { int j; const int *ap[3]; };
34117 struct s *b; b->j = 5;
34119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34120 const int foo = 10;
34121 if (!foo) return 0;
34123 return !cs[0] && !zero.x;
34130 rm -f conftest.$ac_objext
34131 if { (ac_try="$ac_compile"
34132 case "(($ac_try" in
34133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34134 *) ac_try_echo=$ac_try;;
34136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34137 (eval "$ac_compile") 2>conftest.er1
34139 grep -v '^ *+' conftest.er1 >conftest.err
34141 cat conftest.err >&5
34142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); } && {
34144 test -z "$ac_c_werror_flag" ||
34145 test ! -s conftest.err
34146 } && test -s conftest.$ac_objext; then
34149 echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34157 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34158 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34159 if test $ac_cv_c_const = no; then
34161 cat >>confdefs.h <<\_ACEOF
34168 { echo "$as_me:$LINENO: checking for char" >&5
34169 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34170 if test "${ac_cv_type_char+set}" = set; then
34171 echo $ECHO_N "(cached) $ECHO_C" >&6
34173 cat >conftest.$ac_ext <<_ACEOF
34176 cat confdefs.h >>conftest.$ac_ext
34177 cat >>conftest.$ac_ext <<_ACEOF
34178 /* end confdefs.h. */
34179 $ac_includes_default
34180 typedef char ac__type_new_;
34184 if ((ac__type_new_ *) 0)
34186 if (sizeof (ac__type_new_))
34192 rm -f conftest.$ac_objext
34193 if { (ac_try="$ac_compile"
34194 case "(($ac_try" in
34195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34196 *) ac_try_echo=$ac_try;;
34198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34199 (eval "$ac_compile") 2>conftest.er1
34201 grep -v '^ *+' conftest.er1 >conftest.err
34203 cat conftest.err >&5
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); } && {
34206 test -z "$ac_c_werror_flag" ||
34207 test ! -s conftest.err
34208 } && test -s conftest.$ac_objext; then
34209 ac_cv_type_char=yes
34211 echo "$as_me: failed program was:" >&5
34212 sed 's/^/| /' conftest.$ac_ext >&5
34217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34219 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34220 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34222 # The cast to long int works around a bug in the HP C Compiler
34223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34225 # This bug is HP SR number 8606223364.
34226 { echo "$as_me:$LINENO: checking size of char" >&5
34227 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34228 if test "${ac_cv_sizeof_char+set}" = set; then
34229 echo $ECHO_N "(cached) $ECHO_C" >&6
34231 if test "$cross_compiling" = yes; then
34232 # Depending upon the size, compute the lo and hi bounds.
34233 cat >conftest.$ac_ext <<_ACEOF
34236 cat confdefs.h >>conftest.$ac_ext
34237 cat >>conftest.$ac_ext <<_ACEOF
34238 /* end confdefs.h. */
34239 $ac_includes_default
34240 typedef char ac__type_sizeof_;
34244 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34251 rm -f conftest.$ac_objext
34252 if { (ac_try="$ac_compile"
34253 case "(($ac_try" in
34254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34255 *) ac_try_echo=$ac_try;;
34257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34258 (eval "$ac_compile") 2>conftest.er1
34260 grep -v '^ *+' conftest.er1 >conftest.err
34262 cat conftest.err >&5
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); } && {
34265 test -z "$ac_c_werror_flag" ||
34266 test ! -s conftest.err
34267 } && test -s conftest.$ac_objext; then
34270 cat >conftest.$ac_ext <<_ACEOF
34273 cat confdefs.h >>conftest.$ac_ext
34274 cat >>conftest.$ac_ext <<_ACEOF
34275 /* end confdefs.h. */
34276 $ac_includes_default
34277 typedef char ac__type_sizeof_;
34281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34288 rm -f conftest.$ac_objext
34289 if { (ac_try="$ac_compile"
34290 case "(($ac_try" in
34291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34292 *) ac_try_echo=$ac_try;;
34294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34295 (eval "$ac_compile") 2>conftest.er1
34297 grep -v '^ *+' conftest.er1 >conftest.err
34299 cat conftest.err >&5
34300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301 (exit $ac_status); } && {
34302 test -z "$ac_c_werror_flag" ||
34303 test ! -s conftest.err
34304 } && test -s conftest.$ac_objext; then
34305 ac_hi=$ac_mid; break
34307 echo "$as_me: failed program was:" >&5
34308 sed 's/^/| /' conftest.$ac_ext >&5
34310 ac_lo=`expr $ac_mid + 1`
34311 if test $ac_lo -le $ac_mid; then
34315 ac_mid=`expr 2 '*' $ac_mid + 1`
34318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34321 echo "$as_me: failed program was:" >&5
34322 sed 's/^/| /' conftest.$ac_ext >&5
34324 cat >conftest.$ac_ext <<_ACEOF
34327 cat confdefs.h >>conftest.$ac_ext
34328 cat >>conftest.$ac_ext <<_ACEOF
34329 /* end confdefs.h. */
34330 $ac_includes_default
34331 typedef char ac__type_sizeof_;
34335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34342 rm -f conftest.$ac_objext
34343 if { (ac_try="$ac_compile"
34344 case "(($ac_try" in
34345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34346 *) ac_try_echo=$ac_try;;
34348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34349 (eval "$ac_compile") 2>conftest.er1
34351 grep -v '^ *+' conftest.er1 >conftest.err
34353 cat conftest.err >&5
34354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355 (exit $ac_status); } && {
34356 test -z "$ac_c_werror_flag" ||
34357 test ! -s conftest.err
34358 } && test -s conftest.$ac_objext; then
34361 cat >conftest.$ac_ext <<_ACEOF
34364 cat confdefs.h >>conftest.$ac_ext
34365 cat >>conftest.$ac_ext <<_ACEOF
34366 /* end confdefs.h. */
34367 $ac_includes_default
34368 typedef char ac__type_sizeof_;
34372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34379 rm -f conftest.$ac_objext
34380 if { (ac_try="$ac_compile"
34381 case "(($ac_try" in
34382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34383 *) ac_try_echo=$ac_try;;
34385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34386 (eval "$ac_compile") 2>conftest.er1
34388 grep -v '^ *+' conftest.er1 >conftest.err
34390 cat conftest.err >&5
34391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392 (exit $ac_status); } && {
34393 test -z "$ac_c_werror_flag" ||
34394 test ! -s conftest.err
34395 } && test -s conftest.$ac_objext; then
34396 ac_lo=$ac_mid; break
34398 echo "$as_me: failed program was:" >&5
34399 sed 's/^/| /' conftest.$ac_ext >&5
34401 ac_hi=`expr '(' $ac_mid ')' - 1`
34402 if test $ac_mid -le $ac_hi; then
34406 ac_mid=`expr 2 '*' $ac_mid`
34409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34412 echo "$as_me: failed program was:" >&5
34413 sed 's/^/| /' conftest.$ac_ext >&5
34418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34422 # Binary search between lo and hi bounds.
34423 while test "x$ac_lo" != "x$ac_hi"; do
34424 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34425 cat >conftest.$ac_ext <<_ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h. */
34431 $ac_includes_default
34432 typedef char ac__type_sizeof_;
34436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34443 rm -f conftest.$ac_objext
34444 if { (ac_try="$ac_compile"
34445 case "(($ac_try" in
34446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34447 *) ac_try_echo=$ac_try;;
34449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34450 (eval "$ac_compile") 2>conftest.er1
34452 grep -v '^ *+' conftest.er1 >conftest.err
34454 cat conftest.err >&5
34455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456 (exit $ac_status); } && {
34457 test -z "$ac_c_werror_flag" ||
34458 test ! -s conftest.err
34459 } && test -s conftest.$ac_objext; then
34462 echo "$as_me: failed program was:" >&5
34463 sed 's/^/| /' conftest.$ac_ext >&5
34465 ac_lo=`expr '(' $ac_mid ')' + 1`
34468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34471 ?*) ac_cv_sizeof_char=$ac_lo;;
34472 '') if test "$ac_cv_type_char" = yes; then
34473 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34474 See \`config.log' for more details." >&5
34475 echo "$as_me: error: cannot compute sizeof (char)
34476 See \`config.log' for more details." >&2;}
34477 { (exit 77); exit 77; }; }
34479 ac_cv_sizeof_char=0
34483 cat >conftest.$ac_ext <<_ACEOF
34486 cat confdefs.h >>conftest.$ac_ext
34487 cat >>conftest.$ac_ext <<_ACEOF
34488 /* end confdefs.h. */
34489 $ac_includes_default
34490 typedef char ac__type_sizeof_;
34491 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34492 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34494 #include <stdlib.h>
34499 FILE *f = fopen ("conftest.val", "w");
34502 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34504 long int i = longval ();
34505 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34507 fprintf (f, "%ld\n", i);
34511 unsigned long int i = ulongval ();
34512 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34514 fprintf (f, "%lu\n", i);
34516 return ferror (f) || fclose (f) != 0;
34522 rm -f conftest$ac_exeext
34523 if { (ac_try="$ac_link"
34524 case "(($ac_try" in
34525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526 *) ac_try_echo=$ac_try;;
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529 (eval "$ac_link") 2>&5
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
34540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541 (exit $ac_status); }; }; then
34542 ac_cv_sizeof_char=`cat conftest.val`
34544 echo "$as_me: program exited with status $ac_status" >&5
34545 echo "$as_me: failed program was:" >&5
34546 sed 's/^/| /' conftest.$ac_ext >&5
34548 ( exit $ac_status )
34549 if test "$ac_cv_type_char" = yes; then
34550 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34551 See \`config.log' for more details." >&5
34552 echo "$as_me: error: cannot compute sizeof (char)
34553 See \`config.log' for more details." >&2;}
34554 { (exit 77); exit 77; }; }
34556 ac_cv_sizeof_char=0
34559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34563 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34564 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34568 cat >>confdefs.h <<_ACEOF
34569 #define SIZEOF_CHAR $ac_cv_sizeof_char
34573 { echo "$as_me:$LINENO: checking for short int" >&5
34574 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34575 if test "${ac_cv_type_short_int+set}" = set; then
34576 echo $ECHO_N "(cached) $ECHO_C" >&6
34578 cat >conftest.$ac_ext <<_ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h. */
34584 $ac_includes_default
34585 typedef short int ac__type_new_;
34589 if ((ac__type_new_ *) 0)
34591 if (sizeof (ac__type_new_))
34597 rm -f conftest.$ac_objext
34598 if { (ac_try="$ac_compile"
34599 case "(($ac_try" in
34600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34601 *) ac_try_echo=$ac_try;;
34603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34604 (eval "$ac_compile") 2>conftest.er1
34606 grep -v '^ *+' conftest.er1 >conftest.err
34608 cat conftest.err >&5
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); } && {
34611 test -z "$ac_c_werror_flag" ||
34612 test ! -s conftest.err
34613 } && test -s conftest.$ac_objext; then
34614 ac_cv_type_short_int=yes
34616 echo "$as_me: failed program was:" >&5
34617 sed 's/^/| /' conftest.$ac_ext >&5
34619 ac_cv_type_short_int=no
34622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34624 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34625 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34627 # The cast to long int works around a bug in the HP C Compiler
34628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34630 # This bug is HP SR number 8606223364.
34631 { echo "$as_me:$LINENO: checking size of short int" >&5
34632 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34633 if test "${ac_cv_sizeof_short_int+set}" = set; then
34634 echo $ECHO_N "(cached) $ECHO_C" >&6
34636 if test "$cross_compiling" = yes; then
34637 # Depending upon the size, compute the lo and hi bounds.
34638 cat >conftest.$ac_ext <<_ACEOF
34641 cat confdefs.h >>conftest.$ac_ext
34642 cat >>conftest.$ac_ext <<_ACEOF
34643 /* end confdefs.h. */
34644 $ac_includes_default
34645 typedef short int ac__type_sizeof_;
34649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34656 rm -f conftest.$ac_objext
34657 if { (ac_try="$ac_compile"
34658 case "(($ac_try" in
34659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34660 *) ac_try_echo=$ac_try;;
34662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34663 (eval "$ac_compile") 2>conftest.er1
34665 grep -v '^ *+' conftest.er1 >conftest.err
34667 cat conftest.err >&5
34668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34669 (exit $ac_status); } && {
34670 test -z "$ac_c_werror_flag" ||
34671 test ! -s conftest.err
34672 } && test -s conftest.$ac_objext; then
34675 cat >conftest.$ac_ext <<_ACEOF
34678 cat confdefs.h >>conftest.$ac_ext
34679 cat >>conftest.$ac_ext <<_ACEOF
34680 /* end confdefs.h. */
34681 $ac_includes_default
34682 typedef short int ac__type_sizeof_;
34686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34693 rm -f conftest.$ac_objext
34694 if { (ac_try="$ac_compile"
34695 case "(($ac_try" in
34696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34697 *) ac_try_echo=$ac_try;;
34699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34700 (eval "$ac_compile") 2>conftest.er1
34702 grep -v '^ *+' conftest.er1 >conftest.err
34704 cat conftest.err >&5
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); } && {
34707 test -z "$ac_c_werror_flag" ||
34708 test ! -s conftest.err
34709 } && test -s conftest.$ac_objext; then
34710 ac_hi=$ac_mid; break
34712 echo "$as_me: failed program was:" >&5
34713 sed 's/^/| /' conftest.$ac_ext >&5
34715 ac_lo=`expr $ac_mid + 1`
34716 if test $ac_lo -le $ac_mid; then
34720 ac_mid=`expr 2 '*' $ac_mid + 1`
34723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34726 echo "$as_me: failed program was:" >&5
34727 sed 's/^/| /' conftest.$ac_ext >&5
34729 cat >conftest.$ac_ext <<_ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h. */
34735 $ac_includes_default
34736 typedef short int ac__type_sizeof_;
34740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34747 rm -f conftest.$ac_objext
34748 if { (ac_try="$ac_compile"
34749 case "(($ac_try" in
34750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34751 *) ac_try_echo=$ac_try;;
34753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34754 (eval "$ac_compile") 2>conftest.er1
34756 grep -v '^ *+' conftest.er1 >conftest.err
34758 cat conftest.err >&5
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); } && {
34761 test -z "$ac_c_werror_flag" ||
34762 test ! -s conftest.err
34763 } && test -s conftest.$ac_objext; then
34766 cat >conftest.$ac_ext <<_ACEOF
34769 cat confdefs.h >>conftest.$ac_ext
34770 cat >>conftest.$ac_ext <<_ACEOF
34771 /* end confdefs.h. */
34772 $ac_includes_default
34773 typedef short int ac__type_sizeof_;
34777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34784 rm -f conftest.$ac_objext
34785 if { (ac_try="$ac_compile"
34786 case "(($ac_try" in
34787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788 *) ac_try_echo=$ac_try;;
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791 (eval "$ac_compile") 2>conftest.er1
34793 grep -v '^ *+' conftest.er1 >conftest.err
34795 cat conftest.err >&5
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); } && {
34798 test -z "$ac_c_werror_flag" ||
34799 test ! -s conftest.err
34800 } && test -s conftest.$ac_objext; then
34801 ac_lo=$ac_mid; break
34803 echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34806 ac_hi=`expr '(' $ac_mid ')' - 1`
34807 if test $ac_mid -le $ac_hi; then
34811 ac_mid=`expr 2 '*' $ac_mid`
34814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34817 echo "$as_me: failed program was:" >&5
34818 sed 's/^/| /' conftest.$ac_ext >&5
34823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34827 # Binary search between lo and hi bounds.
34828 while test "x$ac_lo" != "x$ac_hi"; do
34829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34830 cat >conftest.$ac_ext <<_ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h. */
34836 $ac_includes_default
34837 typedef short int ac__type_sizeof_;
34841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34848 rm -f conftest.$ac_objext
34849 if { (ac_try="$ac_compile"
34850 case "(($ac_try" in
34851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34852 *) ac_try_echo=$ac_try;;
34854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34855 (eval "$ac_compile") 2>conftest.er1
34857 grep -v '^ *+' conftest.er1 >conftest.err
34859 cat conftest.err >&5
34860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861 (exit $ac_status); } && {
34862 test -z "$ac_c_werror_flag" ||
34863 test ! -s conftest.err
34864 } && test -s conftest.$ac_objext; then
34867 echo "$as_me: failed program was:" >&5
34868 sed 's/^/| /' conftest.$ac_ext >&5
34870 ac_lo=`expr '(' $ac_mid ')' + 1`
34873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34876 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34877 '') if test "$ac_cv_type_short_int" = yes; then
34878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34879 See \`config.log' for more details." >&5
34880 echo "$as_me: error: cannot compute sizeof (short int)
34881 See \`config.log' for more details." >&2;}
34882 { (exit 77); exit 77; }; }
34884 ac_cv_sizeof_short_int=0
34888 cat >conftest.$ac_ext <<_ACEOF
34891 cat confdefs.h >>conftest.$ac_ext
34892 cat >>conftest.$ac_ext <<_ACEOF
34893 /* end confdefs.h. */
34894 $ac_includes_default
34895 typedef short int ac__type_sizeof_;
34896 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34897 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34899 #include <stdlib.h>
34904 FILE *f = fopen ("conftest.val", "w");
34907 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34909 long int i = longval ();
34910 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34912 fprintf (f, "%ld\n", i);
34916 unsigned long int i = ulongval ();
34917 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34919 fprintf (f, "%lu\n", i);
34921 return ferror (f) || fclose (f) != 0;
34927 rm -f conftest$ac_exeext
34928 if { (ac_try="$ac_link"
34929 case "(($ac_try" in
34930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34931 *) ac_try_echo=$ac_try;;
34933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34934 (eval "$ac_link") 2>&5
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); }; }; then
34947 ac_cv_sizeof_short_int=`cat conftest.val`
34949 echo "$as_me: program exited with status $ac_status" >&5
34950 echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34953 ( exit $ac_status )
34954 if test "$ac_cv_type_short_int" = yes; then
34955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34956 See \`config.log' for more details." >&5
34957 echo "$as_me: error: cannot compute sizeof (short int)
34958 See \`config.log' for more details." >&2;}
34959 { (exit 77); exit 77; }; }
34961 ac_cv_sizeof_short_int=0
34964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34968 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34969 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34973 cat >>confdefs.h <<_ACEOF
34974 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34978 { echo "$as_me:$LINENO: checking for int" >&5
34979 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34980 if test "${ac_cv_type_int+set}" = set; then
34981 echo $ECHO_N "(cached) $ECHO_C" >&6
34983 cat >conftest.$ac_ext <<_ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h. */
34989 $ac_includes_default
34990 typedef int ac__type_new_;
34994 if ((ac__type_new_ *) 0)
34996 if (sizeof (ac__type_new_))
35002 rm -f conftest.$ac_objext
35003 if { (ac_try="$ac_compile"
35004 case "(($ac_try" in
35005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35006 *) ac_try_echo=$ac_try;;
35008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35009 (eval "$ac_compile") 2>conftest.er1
35011 grep -v '^ *+' conftest.er1 >conftest.err
35013 cat conftest.err >&5
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); } && {
35016 test -z "$ac_c_werror_flag" ||
35017 test ! -s conftest.err
35018 } && test -s conftest.$ac_objext; then
35021 echo "$as_me: failed program was:" >&5
35022 sed 's/^/| /' conftest.$ac_ext >&5
35027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35029 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35030 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35032 # The cast to long int works around a bug in the HP C Compiler
35033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35035 # This bug is HP SR number 8606223364.
35036 { echo "$as_me:$LINENO: checking size of int" >&5
35037 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35038 if test "${ac_cv_sizeof_int+set}" = set; then
35039 echo $ECHO_N "(cached) $ECHO_C" >&6
35041 if test "$cross_compiling" = yes; then
35042 # Depending upon the size, compute the lo and hi bounds.
35043 cat >conftest.$ac_ext <<_ACEOF
35046 cat confdefs.h >>conftest.$ac_ext
35047 cat >>conftest.$ac_ext <<_ACEOF
35048 /* end confdefs.h. */
35049 $ac_includes_default
35050 typedef int ac__type_sizeof_;
35054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35061 rm -f conftest.$ac_objext
35062 if { (ac_try="$ac_compile"
35063 case "(($ac_try" in
35064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35065 *) ac_try_echo=$ac_try;;
35067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35068 (eval "$ac_compile") 2>conftest.er1
35070 grep -v '^ *+' conftest.er1 >conftest.err
35072 cat conftest.err >&5
35073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); } && {
35075 test -z "$ac_c_werror_flag" ||
35076 test ! -s conftest.err
35077 } && test -s conftest.$ac_objext; then
35080 cat >conftest.$ac_ext <<_ACEOF
35083 cat confdefs.h >>conftest.$ac_ext
35084 cat >>conftest.$ac_ext <<_ACEOF
35085 /* end confdefs.h. */
35086 $ac_includes_default
35087 typedef int ac__type_sizeof_;
35091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35098 rm -f conftest.$ac_objext
35099 if { (ac_try="$ac_compile"
35100 case "(($ac_try" in
35101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35102 *) ac_try_echo=$ac_try;;
35104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35105 (eval "$ac_compile") 2>conftest.er1
35107 grep -v '^ *+' conftest.er1 >conftest.err
35109 cat conftest.err >&5
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); } && {
35112 test -z "$ac_c_werror_flag" ||
35113 test ! -s conftest.err
35114 } && test -s conftest.$ac_objext; then
35115 ac_hi=$ac_mid; break
35117 echo "$as_me: failed program was:" >&5
35118 sed 's/^/| /' conftest.$ac_ext >&5
35120 ac_lo=`expr $ac_mid + 1`
35121 if test $ac_lo -le $ac_mid; then
35125 ac_mid=`expr 2 '*' $ac_mid + 1`
35128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35131 echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35134 cat >conftest.$ac_ext <<_ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h. */
35140 $ac_includes_default
35141 typedef int ac__type_sizeof_;
35145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35152 rm -f conftest.$ac_objext
35153 if { (ac_try="$ac_compile"
35154 case "(($ac_try" in
35155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35156 *) ac_try_echo=$ac_try;;
35158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35159 (eval "$ac_compile") 2>conftest.er1
35161 grep -v '^ *+' conftest.er1 >conftest.err
35163 cat conftest.err >&5
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); } && {
35166 test -z "$ac_c_werror_flag" ||
35167 test ! -s conftest.err
35168 } && test -s conftest.$ac_objext; then
35171 cat >conftest.$ac_ext <<_ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h. */
35177 $ac_includes_default
35178 typedef int ac__type_sizeof_;
35182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35189 rm -f conftest.$ac_objext
35190 if { (ac_try="$ac_compile"
35191 case "(($ac_try" in
35192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35193 *) ac_try_echo=$ac_try;;
35195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35196 (eval "$ac_compile") 2>conftest.er1
35198 grep -v '^ *+' conftest.er1 >conftest.err
35200 cat conftest.err >&5
35201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); } && {
35203 test -z "$ac_c_werror_flag" ||
35204 test ! -s conftest.err
35205 } && test -s conftest.$ac_objext; then
35206 ac_lo=$ac_mid; break
35208 echo "$as_me: failed program was:" >&5
35209 sed 's/^/| /' conftest.$ac_ext >&5
35211 ac_hi=`expr '(' $ac_mid ')' - 1`
35212 if test $ac_mid -le $ac_hi; then
35216 ac_mid=`expr 2 '*' $ac_mid`
35219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35222 echo "$as_me: failed program was:" >&5
35223 sed 's/^/| /' conftest.$ac_ext >&5
35228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35232 # Binary search between lo and hi bounds.
35233 while test "x$ac_lo" != "x$ac_hi"; do
35234 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35235 cat >conftest.$ac_ext <<_ACEOF
35238 cat confdefs.h >>conftest.$ac_ext
35239 cat >>conftest.$ac_ext <<_ACEOF
35240 /* end confdefs.h. */
35241 $ac_includes_default
35242 typedef int ac__type_sizeof_;
35246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35253 rm -f conftest.$ac_objext
35254 if { (ac_try="$ac_compile"
35255 case "(($ac_try" in
35256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35257 *) ac_try_echo=$ac_try;;
35259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35260 (eval "$ac_compile") 2>conftest.er1
35262 grep -v '^ *+' conftest.er1 >conftest.err
35264 cat conftest.err >&5
35265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266 (exit $ac_status); } && {
35267 test -z "$ac_c_werror_flag" ||
35268 test ! -s conftest.err
35269 } && test -s conftest.$ac_objext; then
35272 echo "$as_me: failed program was:" >&5
35273 sed 's/^/| /' conftest.$ac_ext >&5
35275 ac_lo=`expr '(' $ac_mid ')' + 1`
35278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35281 ?*) ac_cv_sizeof_int=$ac_lo;;
35282 '') if test "$ac_cv_type_int" = yes; then
35283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35284 See \`config.log' for more details." >&5
35285 echo "$as_me: error: cannot compute sizeof (int)
35286 See \`config.log' for more details." >&2;}
35287 { (exit 77); exit 77; }; }
35293 cat >conftest.$ac_ext <<_ACEOF
35296 cat confdefs.h >>conftest.$ac_ext
35297 cat >>conftest.$ac_ext <<_ACEOF
35298 /* end confdefs.h. */
35299 $ac_includes_default
35300 typedef int ac__type_sizeof_;
35301 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35302 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35304 #include <stdlib.h>
35309 FILE *f = fopen ("conftest.val", "w");
35312 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35314 long int i = longval ();
35315 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35317 fprintf (f, "%ld\n", i);
35321 unsigned long int i = ulongval ();
35322 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35324 fprintf (f, "%lu\n", i);
35326 return ferror (f) || fclose (f) != 0;
35332 rm -f conftest$ac_exeext
35333 if { (ac_try="$ac_link"
35334 case "(($ac_try" in
35335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35336 *) ac_try_echo=$ac_try;;
35338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35339 (eval "$ac_link") 2>&5
35341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); }; }; then
35352 ac_cv_sizeof_int=`cat conftest.val`
35354 echo "$as_me: program exited with status $ac_status" >&5
35355 echo "$as_me: failed program was:" >&5
35356 sed 's/^/| /' conftest.$ac_ext >&5
35358 ( exit $ac_status )
35359 if test "$ac_cv_type_int" = yes; then
35360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35361 See \`config.log' for more details." >&5
35362 echo "$as_me: error: cannot compute sizeof (int)
35363 See \`config.log' for more details." >&2;}
35364 { (exit 77); exit 77; }; }
35369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35373 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35374 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35378 cat >>confdefs.h <<_ACEOF
35379 #define SIZEOF_INT $ac_cv_sizeof_int
35383 { echo "$as_me:$LINENO: checking for long int" >&5
35384 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35385 if test "${ac_cv_type_long_int+set}" = set; then
35386 echo $ECHO_N "(cached) $ECHO_C" >&6
35388 cat >conftest.$ac_ext <<_ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h. */
35394 $ac_includes_default
35395 typedef long int ac__type_new_;
35399 if ((ac__type_new_ *) 0)
35401 if (sizeof (ac__type_new_))
35407 rm -f conftest.$ac_objext
35408 if { (ac_try="$ac_compile"
35409 case "(($ac_try" in
35410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35411 *) ac_try_echo=$ac_try;;
35413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35414 (eval "$ac_compile") 2>conftest.er1
35416 grep -v '^ *+' conftest.er1 >conftest.err
35418 cat conftest.err >&5
35419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420 (exit $ac_status); } && {
35421 test -z "$ac_c_werror_flag" ||
35422 test ! -s conftest.err
35423 } && test -s conftest.$ac_objext; then
35424 ac_cv_type_long_int=yes
35426 echo "$as_me: failed program was:" >&5
35427 sed 's/^/| /' conftest.$ac_ext >&5
35429 ac_cv_type_long_int=no
35432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35434 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35435 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35437 # The cast to long int works around a bug in the HP C Compiler
35438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35440 # This bug is HP SR number 8606223364.
35441 { echo "$as_me:$LINENO: checking size of long int" >&5
35442 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35443 if test "${ac_cv_sizeof_long_int+set}" = set; then
35444 echo $ECHO_N "(cached) $ECHO_C" >&6
35446 if test "$cross_compiling" = yes; then
35447 # Depending upon the size, compute the lo and hi bounds.
35448 cat >conftest.$ac_ext <<_ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h. */
35454 $ac_includes_default
35455 typedef long int ac__type_sizeof_;
35459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35466 rm -f conftest.$ac_objext
35467 if { (ac_try="$ac_compile"
35468 case "(($ac_try" in
35469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35470 *) ac_try_echo=$ac_try;;
35472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35473 (eval "$ac_compile") 2>conftest.er1
35475 grep -v '^ *+' conftest.er1 >conftest.err
35477 cat conftest.err >&5
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); } && {
35480 test -z "$ac_c_werror_flag" ||
35481 test ! -s conftest.err
35482 } && test -s conftest.$ac_objext; then
35485 cat >conftest.$ac_ext <<_ACEOF
35488 cat confdefs.h >>conftest.$ac_ext
35489 cat >>conftest.$ac_ext <<_ACEOF
35490 /* end confdefs.h. */
35491 $ac_includes_default
35492 typedef long int ac__type_sizeof_;
35496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35503 rm -f conftest.$ac_objext
35504 if { (ac_try="$ac_compile"
35505 case "(($ac_try" in
35506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35507 *) ac_try_echo=$ac_try;;
35509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35510 (eval "$ac_compile") 2>conftest.er1
35512 grep -v '^ *+' conftest.er1 >conftest.err
35514 cat conftest.err >&5
35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516 (exit $ac_status); } && {
35517 test -z "$ac_c_werror_flag" ||
35518 test ! -s conftest.err
35519 } && test -s conftest.$ac_objext; then
35520 ac_hi=$ac_mid; break
35522 echo "$as_me: failed program was:" >&5
35523 sed 's/^/| /' conftest.$ac_ext >&5
35525 ac_lo=`expr $ac_mid + 1`
35526 if test $ac_lo -le $ac_mid; then
35530 ac_mid=`expr 2 '*' $ac_mid + 1`
35533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35536 echo "$as_me: failed program was:" >&5
35537 sed 's/^/| /' conftest.$ac_ext >&5
35539 cat >conftest.$ac_ext <<_ACEOF
35542 cat confdefs.h >>conftest.$ac_ext
35543 cat >>conftest.$ac_ext <<_ACEOF
35544 /* end confdefs.h. */
35545 $ac_includes_default
35546 typedef long int ac__type_sizeof_;
35550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35557 rm -f conftest.$ac_objext
35558 if { (ac_try="$ac_compile"
35559 case "(($ac_try" in
35560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35561 *) ac_try_echo=$ac_try;;
35563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35564 (eval "$ac_compile") 2>conftest.er1
35566 grep -v '^ *+' conftest.er1 >conftest.err
35568 cat conftest.err >&5
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); } && {
35571 test -z "$ac_c_werror_flag" ||
35572 test ! -s conftest.err
35573 } && test -s conftest.$ac_objext; then
35576 cat >conftest.$ac_ext <<_ACEOF
35579 cat confdefs.h >>conftest.$ac_ext
35580 cat >>conftest.$ac_ext <<_ACEOF
35581 /* end confdefs.h. */
35582 $ac_includes_default
35583 typedef long int ac__type_sizeof_;
35587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35594 rm -f conftest.$ac_objext
35595 if { (ac_try="$ac_compile"
35596 case "(($ac_try" in
35597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35598 *) ac_try_echo=$ac_try;;
35600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35601 (eval "$ac_compile") 2>conftest.er1
35603 grep -v '^ *+' conftest.er1 >conftest.err
35605 cat conftest.err >&5
35606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607 (exit $ac_status); } && {
35608 test -z "$ac_c_werror_flag" ||
35609 test ! -s conftest.err
35610 } && test -s conftest.$ac_objext; then
35611 ac_lo=$ac_mid; break
35613 echo "$as_me: failed program was:" >&5
35614 sed 's/^/| /' conftest.$ac_ext >&5
35616 ac_hi=`expr '(' $ac_mid ')' - 1`
35617 if test $ac_mid -le $ac_hi; then
35621 ac_mid=`expr 2 '*' $ac_mid`
35624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35627 echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35637 # Binary search between lo and hi bounds.
35638 while test "x$ac_lo" != "x$ac_hi"; do
35639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35640 cat >conftest.$ac_ext <<_ACEOF
35643 cat confdefs.h >>conftest.$ac_ext
35644 cat >>conftest.$ac_ext <<_ACEOF
35645 /* end confdefs.h. */
35646 $ac_includes_default
35647 typedef long int ac__type_sizeof_;
35651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35658 rm -f conftest.$ac_objext
35659 if { (ac_try="$ac_compile"
35660 case "(($ac_try" in
35661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35662 *) ac_try_echo=$ac_try;;
35664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35665 (eval "$ac_compile") 2>conftest.er1
35667 grep -v '^ *+' conftest.er1 >conftest.err
35669 cat conftest.err >&5
35670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35671 (exit $ac_status); } && {
35672 test -z "$ac_c_werror_flag" ||
35673 test ! -s conftest.err
35674 } && test -s conftest.$ac_objext; then
35677 echo "$as_me: failed program was:" >&5
35678 sed 's/^/| /' conftest.$ac_ext >&5
35680 ac_lo=`expr '(' $ac_mid ')' + 1`
35683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35686 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35687 '') if test "$ac_cv_type_long_int" = yes; then
35688 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35689 See \`config.log' for more details." >&5
35690 echo "$as_me: error: cannot compute sizeof (long int)
35691 See \`config.log' for more details." >&2;}
35692 { (exit 77); exit 77; }; }
35694 ac_cv_sizeof_long_int=0
35698 cat >conftest.$ac_ext <<_ACEOF
35701 cat confdefs.h >>conftest.$ac_ext
35702 cat >>conftest.$ac_ext <<_ACEOF
35703 /* end confdefs.h. */
35704 $ac_includes_default
35705 typedef long int ac__type_sizeof_;
35706 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35707 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35709 #include <stdlib.h>
35714 FILE *f = fopen ("conftest.val", "w");
35717 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35719 long int i = longval ();
35720 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35722 fprintf (f, "%ld\n", i);
35726 unsigned long int i = ulongval ();
35727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35729 fprintf (f, "%lu\n", i);
35731 return ferror (f) || fclose (f) != 0;
35737 rm -f conftest$ac_exeext
35738 if { (ac_try="$ac_link"
35739 case "(($ac_try" in
35740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35741 *) ac_try_echo=$ac_try;;
35743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35744 (eval "$ac_link") 2>&5
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); }; }; then
35757 ac_cv_sizeof_long_int=`cat conftest.val`
35759 echo "$as_me: program exited with status $ac_status" >&5
35760 echo "$as_me: failed program was:" >&5
35761 sed 's/^/| /' conftest.$ac_ext >&5
35763 ( exit $ac_status )
35764 if test "$ac_cv_type_long_int" = yes; then
35765 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35766 See \`config.log' for more details." >&5
35767 echo "$as_me: error: cannot compute sizeof (long int)
35768 See \`config.log' for more details." >&2;}
35769 { (exit 77); exit 77; }; }
35771 ac_cv_sizeof_long_int=0
35774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35779 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35783 cat >>confdefs.h <<_ACEOF
35784 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35788 { echo "$as_me:$LINENO: checking for long long int" >&5
35789 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35790 if test "${ac_cv_type_long_long_int+set}" = set; then
35791 echo $ECHO_N "(cached) $ECHO_C" >&6
35793 cat >conftest.$ac_ext <<_ACEOF
35796 cat confdefs.h >>conftest.$ac_ext
35797 cat >>conftest.$ac_ext <<_ACEOF
35798 /* end confdefs.h. */
35799 $ac_includes_default
35800 typedef long long int ac__type_new_;
35804 if ((ac__type_new_ *) 0)
35806 if (sizeof (ac__type_new_))
35812 rm -f conftest.$ac_objext
35813 if { (ac_try="$ac_compile"
35814 case "(($ac_try" in
35815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35816 *) ac_try_echo=$ac_try;;
35818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35819 (eval "$ac_compile") 2>conftest.er1
35821 grep -v '^ *+' conftest.er1 >conftest.err
35823 cat conftest.err >&5
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); } && {
35826 test -z "$ac_c_werror_flag" ||
35827 test ! -s conftest.err
35828 } && test -s conftest.$ac_objext; then
35829 ac_cv_type_long_long_int=yes
35831 echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35834 ac_cv_type_long_long_int=no
35837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35839 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35840 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35842 # The cast to long int works around a bug in the HP C Compiler
35843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35845 # This bug is HP SR number 8606223364.
35846 { echo "$as_me:$LINENO: checking size of long long int" >&5
35847 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35848 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35849 echo $ECHO_N "(cached) $ECHO_C" >&6
35851 if test "$cross_compiling" = yes; then
35852 # Depending upon the size, compute the lo and hi bounds.
35853 cat >conftest.$ac_ext <<_ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h. */
35859 $ac_includes_default
35860 typedef long long int ac__type_sizeof_;
35864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35871 rm -f conftest.$ac_objext
35872 if { (ac_try="$ac_compile"
35873 case "(($ac_try" in
35874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35875 *) ac_try_echo=$ac_try;;
35877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35878 (eval "$ac_compile") 2>conftest.er1
35880 grep -v '^ *+' conftest.er1 >conftest.err
35882 cat conftest.err >&5
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); } && {
35885 test -z "$ac_c_werror_flag" ||
35886 test ! -s conftest.err
35887 } && test -s conftest.$ac_objext; then
35890 cat >conftest.$ac_ext <<_ACEOF
35893 cat confdefs.h >>conftest.$ac_ext
35894 cat >>conftest.$ac_ext <<_ACEOF
35895 /* end confdefs.h. */
35896 $ac_includes_default
35897 typedef long long int ac__type_sizeof_;
35901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35908 rm -f conftest.$ac_objext
35909 if { (ac_try="$ac_compile"
35910 case "(($ac_try" in
35911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35912 *) ac_try_echo=$ac_try;;
35914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35915 (eval "$ac_compile") 2>conftest.er1
35917 grep -v '^ *+' conftest.er1 >conftest.err
35919 cat conftest.err >&5
35920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921 (exit $ac_status); } && {
35922 test -z "$ac_c_werror_flag" ||
35923 test ! -s conftest.err
35924 } && test -s conftest.$ac_objext; then
35925 ac_hi=$ac_mid; break
35927 echo "$as_me: failed program was:" >&5
35928 sed 's/^/| /' conftest.$ac_ext >&5
35930 ac_lo=`expr $ac_mid + 1`
35931 if test $ac_lo -le $ac_mid; then
35935 ac_mid=`expr 2 '*' $ac_mid + 1`
35938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35941 echo "$as_me: failed program was:" >&5
35942 sed 's/^/| /' conftest.$ac_ext >&5
35944 cat >conftest.$ac_ext <<_ACEOF
35947 cat confdefs.h >>conftest.$ac_ext
35948 cat >>conftest.$ac_ext <<_ACEOF
35949 /* end confdefs.h. */
35950 $ac_includes_default
35951 typedef long long int ac__type_sizeof_;
35955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35962 rm -f conftest.$ac_objext
35963 if { (ac_try="$ac_compile"
35964 case "(($ac_try" in
35965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35966 *) ac_try_echo=$ac_try;;
35968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35969 (eval "$ac_compile") 2>conftest.er1
35971 grep -v '^ *+' conftest.er1 >conftest.err
35973 cat conftest.err >&5
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); } && {
35976 test -z "$ac_c_werror_flag" ||
35977 test ! -s conftest.err
35978 } && test -s conftest.$ac_objext; then
35981 cat >conftest.$ac_ext <<_ACEOF
35984 cat confdefs.h >>conftest.$ac_ext
35985 cat >>conftest.$ac_ext <<_ACEOF
35986 /* end confdefs.h. */
35987 $ac_includes_default
35988 typedef long long int ac__type_sizeof_;
35992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35999 rm -f conftest.$ac_objext
36000 if { (ac_try="$ac_compile"
36001 case "(($ac_try" in
36002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36003 *) ac_try_echo=$ac_try;;
36005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36006 (eval "$ac_compile") 2>conftest.er1
36008 grep -v '^ *+' conftest.er1 >conftest.err
36010 cat conftest.err >&5
36011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012 (exit $ac_status); } && {
36013 test -z "$ac_c_werror_flag" ||
36014 test ! -s conftest.err
36015 } && test -s conftest.$ac_objext; then
36016 ac_lo=$ac_mid; break
36018 echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36021 ac_hi=`expr '(' $ac_mid ')' - 1`
36022 if test $ac_mid -le $ac_hi; then
36026 ac_mid=`expr 2 '*' $ac_mid`
36029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36032 echo "$as_me: failed program was:" >&5
36033 sed 's/^/| /' conftest.$ac_ext >&5
36038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36042 # Binary search between lo and hi bounds.
36043 while test "x$ac_lo" != "x$ac_hi"; do
36044 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36045 cat >conftest.$ac_ext <<_ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h. */
36051 $ac_includes_default
36052 typedef long long int ac__type_sizeof_;
36056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36063 rm -f conftest.$ac_objext
36064 if { (ac_try="$ac_compile"
36065 case "(($ac_try" in
36066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36067 *) ac_try_echo=$ac_try;;
36069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36070 (eval "$ac_compile") 2>conftest.er1
36072 grep -v '^ *+' conftest.er1 >conftest.err
36074 cat conftest.err >&5
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); } && {
36077 test -z "$ac_c_werror_flag" ||
36078 test ! -s conftest.err
36079 } && test -s conftest.$ac_objext; then
36082 echo "$as_me: failed program was:" >&5
36083 sed 's/^/| /' conftest.$ac_ext >&5
36085 ac_lo=`expr '(' $ac_mid ')' + 1`
36088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36091 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36092 '') if test "$ac_cv_type_long_long_int" = yes; then
36093 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36094 See \`config.log' for more details." >&5
36095 echo "$as_me: error: cannot compute sizeof (long long int)
36096 See \`config.log' for more details." >&2;}
36097 { (exit 77); exit 77; }; }
36099 ac_cv_sizeof_long_long_int=0
36103 cat >conftest.$ac_ext <<_ACEOF
36106 cat confdefs.h >>conftest.$ac_ext
36107 cat >>conftest.$ac_ext <<_ACEOF
36108 /* end confdefs.h. */
36109 $ac_includes_default
36110 typedef long long int ac__type_sizeof_;
36111 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36112 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36114 #include <stdlib.h>
36119 FILE *f = fopen ("conftest.val", "w");
36122 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36124 long int i = longval ();
36125 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36127 fprintf (f, "%ld\n", i);
36131 unsigned long int i = ulongval ();
36132 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36134 fprintf (f, "%lu\n", i);
36136 return ferror (f) || fclose (f) != 0;
36142 rm -f conftest$ac_exeext
36143 if { (ac_try="$ac_link"
36144 case "(($ac_try" in
36145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36146 *) ac_try_echo=$ac_try;;
36148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36149 (eval "$ac_link") 2>&5
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); }; }; then
36162 ac_cv_sizeof_long_long_int=`cat conftest.val`
36164 echo "$as_me: program exited with status $ac_status" >&5
36165 echo "$as_me: failed program was:" >&5
36166 sed 's/^/| /' conftest.$ac_ext >&5
36168 ( exit $ac_status )
36169 if test "$ac_cv_type_long_long_int" = yes; then
36170 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36171 See \`config.log' for more details." >&5
36172 echo "$as_me: error: cannot compute sizeof (long long int)
36173 See \`config.log' for more details." >&2;}
36174 { (exit 77); exit 77; }; }
36176 ac_cv_sizeof_long_long_int=0
36179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36183 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36184 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36188 cat >>confdefs.h <<_ACEOF
36189 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36193 { echo "$as_me:$LINENO: checking for int *" >&5
36194 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36195 if test "${ac_cv_type_int_p+set}" = set; then
36196 echo $ECHO_N "(cached) $ECHO_C" >&6
36198 cat >conftest.$ac_ext <<_ACEOF
36201 cat confdefs.h >>conftest.$ac_ext
36202 cat >>conftest.$ac_ext <<_ACEOF
36203 /* end confdefs.h. */
36204 $ac_includes_default
36205 typedef int * ac__type_new_;
36209 if ((ac__type_new_ *) 0)
36211 if (sizeof (ac__type_new_))
36217 rm -f conftest.$ac_objext
36218 if { (ac_try="$ac_compile"
36219 case "(($ac_try" in
36220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36221 *) ac_try_echo=$ac_try;;
36223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36224 (eval "$ac_compile") 2>conftest.er1
36226 grep -v '^ *+' conftest.er1 >conftest.err
36228 cat conftest.err >&5
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } && {
36231 test -z "$ac_c_werror_flag" ||
36232 test ! -s conftest.err
36233 } && test -s conftest.$ac_objext; then
36234 ac_cv_type_int_p=yes
36236 echo "$as_me: failed program was:" >&5
36237 sed 's/^/| /' conftest.$ac_ext >&5
36239 ac_cv_type_int_p=no
36242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36244 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36245 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36247 # The cast to long int works around a bug in the HP C Compiler
36248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36250 # This bug is HP SR number 8606223364.
36251 { echo "$as_me:$LINENO: checking size of int *" >&5
36252 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36253 if test "${ac_cv_sizeof_int_p+set}" = set; then
36254 echo $ECHO_N "(cached) $ECHO_C" >&6
36256 if test "$cross_compiling" = yes; then
36257 # Depending upon the size, compute the lo and hi bounds.
36258 cat >conftest.$ac_ext <<_ACEOF
36261 cat confdefs.h >>conftest.$ac_ext
36262 cat >>conftest.$ac_ext <<_ACEOF
36263 /* end confdefs.h. */
36264 $ac_includes_default
36265 typedef int * ac__type_sizeof_;
36269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36276 rm -f conftest.$ac_objext
36277 if { (ac_try="$ac_compile"
36278 case "(($ac_try" in
36279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36280 *) ac_try_echo=$ac_try;;
36282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36283 (eval "$ac_compile") 2>conftest.er1
36285 grep -v '^ *+' conftest.er1 >conftest.err
36287 cat conftest.err >&5
36288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289 (exit $ac_status); } && {
36290 test -z "$ac_c_werror_flag" ||
36291 test ! -s conftest.err
36292 } && test -s conftest.$ac_objext; then
36295 cat >conftest.$ac_ext <<_ACEOF
36298 cat confdefs.h >>conftest.$ac_ext
36299 cat >>conftest.$ac_ext <<_ACEOF
36300 /* end confdefs.h. */
36301 $ac_includes_default
36302 typedef int * ac__type_sizeof_;
36306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36313 rm -f conftest.$ac_objext
36314 if { (ac_try="$ac_compile"
36315 case "(($ac_try" in
36316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36317 *) ac_try_echo=$ac_try;;
36319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36320 (eval "$ac_compile") 2>conftest.er1
36322 grep -v '^ *+' conftest.er1 >conftest.err
36324 cat conftest.err >&5
36325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326 (exit $ac_status); } && {
36327 test -z "$ac_c_werror_flag" ||
36328 test ! -s conftest.err
36329 } && test -s conftest.$ac_objext; then
36330 ac_hi=$ac_mid; break
36332 echo "$as_me: failed program was:" >&5
36333 sed 's/^/| /' conftest.$ac_ext >&5
36335 ac_lo=`expr $ac_mid + 1`
36336 if test $ac_lo -le $ac_mid; then
36340 ac_mid=`expr 2 '*' $ac_mid + 1`
36343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36346 echo "$as_me: failed program was:" >&5
36347 sed 's/^/| /' conftest.$ac_ext >&5
36349 cat >conftest.$ac_ext <<_ACEOF
36352 cat confdefs.h >>conftest.$ac_ext
36353 cat >>conftest.$ac_ext <<_ACEOF
36354 /* end confdefs.h. */
36355 $ac_includes_default
36356 typedef int * ac__type_sizeof_;
36360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36367 rm -f conftest.$ac_objext
36368 if { (ac_try="$ac_compile"
36369 case "(($ac_try" in
36370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36371 *) ac_try_echo=$ac_try;;
36373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36374 (eval "$ac_compile") 2>conftest.er1
36376 grep -v '^ *+' conftest.er1 >conftest.err
36378 cat conftest.err >&5
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); } && {
36381 test -z "$ac_c_werror_flag" ||
36382 test ! -s conftest.err
36383 } && test -s conftest.$ac_objext; then
36386 cat >conftest.$ac_ext <<_ACEOF
36389 cat confdefs.h >>conftest.$ac_ext
36390 cat >>conftest.$ac_ext <<_ACEOF
36391 /* end confdefs.h. */
36392 $ac_includes_default
36393 typedef int * ac__type_sizeof_;
36397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36404 rm -f conftest.$ac_objext
36405 if { (ac_try="$ac_compile"
36406 case "(($ac_try" in
36407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408 *) ac_try_echo=$ac_try;;
36410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36411 (eval "$ac_compile") 2>conftest.er1
36413 grep -v '^ *+' conftest.er1 >conftest.err
36415 cat conftest.err >&5
36416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417 (exit $ac_status); } && {
36418 test -z "$ac_c_werror_flag" ||
36419 test ! -s conftest.err
36420 } && test -s conftest.$ac_objext; then
36421 ac_lo=$ac_mid; break
36423 echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36426 ac_hi=`expr '(' $ac_mid ')' - 1`
36427 if test $ac_mid -le $ac_hi; then
36431 ac_mid=`expr 2 '*' $ac_mid`
36434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36437 echo "$as_me: failed program was:" >&5
36438 sed 's/^/| /' conftest.$ac_ext >&5
36443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36447 # Binary search between lo and hi bounds.
36448 while test "x$ac_lo" != "x$ac_hi"; do
36449 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36450 cat >conftest.$ac_ext <<_ACEOF
36453 cat confdefs.h >>conftest.$ac_ext
36454 cat >>conftest.$ac_ext <<_ACEOF
36455 /* end confdefs.h. */
36456 $ac_includes_default
36457 typedef int * ac__type_sizeof_;
36461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36468 rm -f conftest.$ac_objext
36469 if { (ac_try="$ac_compile"
36470 case "(($ac_try" in
36471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36472 *) ac_try_echo=$ac_try;;
36474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36475 (eval "$ac_compile") 2>conftest.er1
36477 grep -v '^ *+' conftest.er1 >conftest.err
36479 cat conftest.err >&5
36480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481 (exit $ac_status); } && {
36482 test -z "$ac_c_werror_flag" ||
36483 test ! -s conftest.err
36484 } && test -s conftest.$ac_objext; then
36487 echo "$as_me: failed program was:" >&5
36488 sed 's/^/| /' conftest.$ac_ext >&5
36490 ac_lo=`expr '(' $ac_mid ')' + 1`
36493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36496 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36497 '') if test "$ac_cv_type_int_p" = yes; then
36498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36499 See \`config.log' for more details." >&5
36500 echo "$as_me: error: cannot compute sizeof (int *)
36501 See \`config.log' for more details." >&2;}
36502 { (exit 77); exit 77; }; }
36504 ac_cv_sizeof_int_p=0
36508 cat >conftest.$ac_ext <<_ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h. */
36514 $ac_includes_default
36515 typedef int * ac__type_sizeof_;
36516 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36517 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36519 #include <stdlib.h>
36524 FILE *f = fopen ("conftest.val", "w");
36527 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36529 long int i = longval ();
36530 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36532 fprintf (f, "%ld\n", i);
36536 unsigned long int i = ulongval ();
36537 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36539 fprintf (f, "%lu\n", i);
36541 return ferror (f) || fclose (f) != 0;
36547 rm -f conftest$ac_exeext
36548 if { (ac_try="$ac_link"
36549 case "(($ac_try" in
36550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36551 *) ac_try_echo=$ac_try;;
36553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36554 (eval "$ac_link") 2>&5
36556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); }; }; then
36567 ac_cv_sizeof_int_p=`cat conftest.val`
36569 echo "$as_me: program exited with status $ac_status" >&5
36570 echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36573 ( exit $ac_status )
36574 if test "$ac_cv_type_int_p" = yes; then
36575 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36576 See \`config.log' for more details." >&5
36577 echo "$as_me: error: cannot compute sizeof (int *)
36578 See \`config.log' for more details." >&2;}
36579 { (exit 77); exit 77; }; }
36581 ac_cv_sizeof_int_p=0
36584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36588 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36589 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36593 cat >>confdefs.h <<_ACEOF
36594 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36599 { echo "$as_me:$LINENO: checking for u_int type" >&5
36600 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36601 if test "${ac_cv_have_u_int+set}" = set; then
36602 echo $ECHO_N "(cached) $ECHO_C" >&6
36605 cat >conftest.$ac_ext <<_ACEOF
36608 cat confdefs.h >>conftest.$ac_ext
36609 cat >>conftest.$ac_ext <<_ACEOF
36610 /* end confdefs.h. */
36612 #include <sys/types.h>
36624 rm -f conftest.$ac_objext
36625 if { (ac_try="$ac_compile"
36626 case "(($ac_try" in
36627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36628 *) ac_try_echo=$ac_try;;
36630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36631 (eval "$ac_compile") 2>conftest.er1
36633 grep -v '^ *+' conftest.er1 >conftest.err
36635 cat conftest.err >&5
36636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); } && {
36638 test -z "$ac_c_werror_flag" ||
36639 test ! -s conftest.err
36640 } && test -s conftest.$ac_objext; then
36642 ac_cv_have_u_int="yes"
36645 echo "$as_me: failed program was:" >&5
36646 sed 's/^/| /' conftest.$ac_ext >&5
36649 ac_cv_have_u_int="no"
36654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36658 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36659 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36660 if test "x$ac_cv_have_u_int" = "xyes" ; then
36661 cat >>confdefs.h <<\_ACEOF
36662 #define HAVE_U_INT 1
36668 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36669 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36670 if test "${ac_cv_have_intmax_t+set}" = set; then
36671 echo $ECHO_N "(cached) $ECHO_C" >&6
36674 cat >conftest.$ac_ext <<_ACEOF
36677 cat confdefs.h >>conftest.$ac_ext
36678 cat >>conftest.$ac_ext <<_ACEOF
36679 /* end confdefs.h. */
36681 #include <sys/types.h>
36693 rm -f conftest.$ac_objext
36694 if { (ac_try="$ac_compile"
36695 case "(($ac_try" in
36696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36697 *) ac_try_echo=$ac_try;;
36699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36700 (eval "$ac_compile") 2>conftest.er1
36702 grep -v '^ *+' conftest.er1 >conftest.err
36704 cat conftest.err >&5
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); } && {
36707 test -z "$ac_c_werror_flag" ||
36708 test ! -s conftest.err
36709 } && test -s conftest.$ac_objext; then
36711 ac_cv_have_intmax_t="yes"
36714 echo "$as_me: failed program was:" >&5
36715 sed 's/^/| /' conftest.$ac_ext >&5
36718 cat >conftest.$ac_ext <<_ACEOF
36721 cat confdefs.h >>conftest.$ac_ext
36722 cat >>conftest.$ac_ext <<_ACEOF
36723 /* end confdefs.h. */
36725 #include <stdint.h>
36737 rm -f conftest.$ac_objext
36738 if { (ac_try="$ac_compile"
36739 case "(($ac_try" in
36740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36741 *) ac_try_echo=$ac_try;;
36743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36744 (eval "$ac_compile") 2>conftest.er1
36746 grep -v '^ *+' conftest.er1 >conftest.err
36748 cat conftest.err >&5
36749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); } && {
36751 test -z "$ac_c_werror_flag" ||
36752 test ! -s conftest.err
36753 } && test -s conftest.$ac_objext; then
36755 ac_cv_have_intmax_t="yes"
36758 echo "$as_me: failed program was:" >&5
36759 sed 's/^/| /' conftest.$ac_ext >&5
36762 ac_cv_have_intmax_t="no"
36767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36776 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36777 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36778 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36779 cat >>confdefs.h <<\_ACEOF
36780 #define HAVE_INTMAX_T 1
36786 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36787 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36788 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36789 echo $ECHO_N "(cached) $ECHO_C" >&6
36792 cat >conftest.$ac_ext <<_ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h. */
36799 #include <sys/types.h>
36805 u_intmax_t a; a = 1;
36811 rm -f conftest.$ac_objext
36812 if { (ac_try="$ac_compile"
36813 case "(($ac_try" in
36814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36815 *) ac_try_echo=$ac_try;;
36817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36818 (eval "$ac_compile") 2>conftest.er1
36820 grep -v '^ *+' conftest.er1 >conftest.err
36822 cat conftest.err >&5
36823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36824 (exit $ac_status); } && {
36825 test -z "$ac_c_werror_flag" ||
36826 test ! -s conftest.err
36827 } && test -s conftest.$ac_objext; then
36829 ac_cv_have_u_intmax_t="yes"
36832 echo "$as_me: failed program was:" >&5
36833 sed 's/^/| /' conftest.$ac_ext >&5
36836 cat >conftest.$ac_ext <<_ACEOF
36839 cat confdefs.h >>conftest.$ac_ext
36840 cat >>conftest.$ac_ext <<_ACEOF
36841 /* end confdefs.h. */
36843 #include <stdint.h>
36849 u_intmax_t a; a = 1;
36855 rm -f conftest.$ac_objext
36856 if { (ac_try="$ac_compile"
36857 case "(($ac_try" in
36858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36859 *) ac_try_echo=$ac_try;;
36861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36862 (eval "$ac_compile") 2>conftest.er1
36864 grep -v '^ *+' conftest.er1 >conftest.err
36866 cat conftest.err >&5
36867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36868 (exit $ac_status); } && {
36869 test -z "$ac_c_werror_flag" ||
36870 test ! -s conftest.err
36871 } && test -s conftest.$ac_objext; then
36873 ac_cv_have_u_intmax_t="yes"
36876 echo "$as_me: failed program was:" >&5
36877 sed 's/^/| /' conftest.$ac_ext >&5
36880 ac_cv_have_u_intmax_t="no"
36885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36894 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36895 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36896 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36897 cat >>confdefs.h <<\_ACEOF
36898 #define HAVE_U_INTMAX_T 1
36904 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36905 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36906 if test "${ac_cv_have_intxx_t+set}" = set; then
36907 echo $ECHO_N "(cached) $ECHO_C" >&6
36910 cat >conftest.$ac_ext <<_ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h. */
36917 #include <sys/types.h>
36923 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36929 rm -f conftest.$ac_objext
36930 if { (ac_try="$ac_compile"
36931 case "(($ac_try" in
36932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36933 *) ac_try_echo=$ac_try;;
36935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36936 (eval "$ac_compile") 2>conftest.er1
36938 grep -v '^ *+' conftest.er1 >conftest.err
36940 cat conftest.err >&5
36941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942 (exit $ac_status); } && {
36943 test -z "$ac_c_werror_flag" ||
36944 test ! -s conftest.err
36945 } && test -s conftest.$ac_objext; then
36947 ac_cv_have_intxx_t="yes"
36950 echo "$as_me: failed program was:" >&5
36951 sed 's/^/| /' conftest.$ac_ext >&5
36954 ac_cv_have_intxx_t="no"
36959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36963 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36964 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36965 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36966 cat >>confdefs.h <<\_ACEOF
36967 #define HAVE_INTXX_T 1
36973 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36974 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36975 if test "${ac_cv_have_int64_t+set}" = set; then
36976 echo $ECHO_N "(cached) $ECHO_C" >&6
36979 cat >conftest.$ac_ext <<_ACEOF
36982 cat confdefs.h >>conftest.$ac_ext
36983 cat >>conftest.$ac_ext <<_ACEOF
36984 /* end confdefs.h. */
36986 #include <sys/types.h>
36998 rm -f conftest.$ac_objext
36999 if { (ac_try="$ac_compile"
37000 case "(($ac_try" in
37001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37002 *) ac_try_echo=$ac_try;;
37004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37005 (eval "$ac_compile") 2>conftest.er1
37007 grep -v '^ *+' conftest.er1 >conftest.err
37009 cat conftest.err >&5
37010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37011 (exit $ac_status); } && {
37012 test -z "$ac_c_werror_flag" ||
37013 test ! -s conftest.err
37014 } && test -s conftest.$ac_objext; then
37016 ac_cv_have_int64_t="yes"
37019 echo "$as_me: failed program was:" >&5
37020 sed 's/^/| /' conftest.$ac_ext >&5
37023 ac_cv_have_int64_t="no"
37028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37032 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37033 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37034 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37035 cat >>confdefs.h <<\_ACEOF
37036 #define HAVE_INT64_T 1
37042 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37043 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37044 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37045 echo $ECHO_N "(cached) $ECHO_C" >&6
37048 cat >conftest.$ac_ext <<_ACEOF
37051 cat confdefs.h >>conftest.$ac_ext
37052 cat >>conftest.$ac_ext <<_ACEOF
37053 /* end confdefs.h. */
37055 #include <sys/types.h>
37061 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37067 rm -f conftest.$ac_objext
37068 if { (ac_try="$ac_compile"
37069 case "(($ac_try" in
37070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37071 *) ac_try_echo=$ac_try;;
37073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37074 (eval "$ac_compile") 2>conftest.er1
37076 grep -v '^ *+' conftest.er1 >conftest.err
37078 cat conftest.err >&5
37079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37080 (exit $ac_status); } && {
37081 test -z "$ac_c_werror_flag" ||
37082 test ! -s conftest.err
37083 } && test -s conftest.$ac_objext; then
37085 ac_cv_have_u_intxx_t="yes"
37088 echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37092 ac_cv_have_u_intxx_t="no"
37097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37101 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37102 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37103 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37104 cat >>confdefs.h <<\_ACEOF
37105 #define HAVE_U_INTXX_T 1
37111 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37112 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37113 if test "${ac_cv_have_u_int64_t+set}" = set; then
37114 echo $ECHO_N "(cached) $ECHO_C" >&6
37117 cat >conftest.$ac_ext <<_ACEOF
37120 cat confdefs.h >>conftest.$ac_ext
37121 cat >>conftest.$ac_ext <<_ACEOF
37122 /* end confdefs.h. */
37124 #include <sys/types.h>
37130 u_int64_t a; a = 1;
37136 rm -f conftest.$ac_objext
37137 if { (ac_try="$ac_compile"
37138 case "(($ac_try" in
37139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37140 *) ac_try_echo=$ac_try;;
37142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37143 (eval "$ac_compile") 2>conftest.er1
37145 grep -v '^ *+' conftest.er1 >conftest.err
37147 cat conftest.err >&5
37148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149 (exit $ac_status); } && {
37150 test -z "$ac_c_werror_flag" ||
37151 test ! -s conftest.err
37152 } && test -s conftest.$ac_objext; then
37154 ac_cv_have_u_int64_t="yes"
37157 echo "$as_me: failed program was:" >&5
37158 sed 's/^/| /' conftest.$ac_ext >&5
37161 ac_cv_have_u_int64_t="no"
37166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37170 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37171 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37172 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37173 cat >>confdefs.h <<\_ACEOF
37174 #define HAVE_U_INT64_T 1
37180 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37181 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37183 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37184 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37185 cat >conftest.$ac_ext <<_ACEOF
37188 cat confdefs.h >>conftest.$ac_ext
37189 cat >>conftest.$ac_ext <<_ACEOF
37190 /* end confdefs.h. */
37192 #include <sys/bitypes.h>
37198 int8_t a; int16_t b; int32_t c;
37199 u_int8_t e; u_int16_t f; u_int32_t g;
37200 a = b = c = e = f = g = 1;
37206 rm -f conftest.$ac_objext
37207 if { (ac_try="$ac_compile"
37208 case "(($ac_try" in
37209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37210 *) ac_try_echo=$ac_try;;
37212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37213 (eval "$ac_compile") 2>conftest.er1
37215 grep -v '^ *+' conftest.er1 >conftest.err
37217 cat conftest.err >&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); } && {
37220 test -z "$ac_c_werror_flag" ||
37221 test ! -s conftest.err
37222 } && test -s conftest.$ac_objext; then
37224 cat >>confdefs.h <<\_ACEOF
37225 #define HAVE_U_INTXX_T 1
37228 cat >>confdefs.h <<\_ACEOF
37229 #define HAVE_INTXX_T 1
37232 cat >>confdefs.h <<\_ACEOF
37233 #define HAVE_SYS_BITYPES_H 1
37236 { echo "$as_me:$LINENO: result: yes" >&5
37237 echo "${ECHO_T}yes" >&6; }
37240 echo "$as_me: failed program was:" >&5
37241 sed 's/^/| /' conftest.$ac_ext >&5
37244 { echo "$as_me:$LINENO: result: no" >&5
37245 echo "${ECHO_T}no" >&6; }
37250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37253 if test -z "$have_u_intxx_t" ; then
37254 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37255 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37256 if test "${ac_cv_have_uintxx_t+set}" = set; then
37257 echo $ECHO_N "(cached) $ECHO_C" >&6
37260 cat >conftest.$ac_ext <<_ACEOF
37263 cat confdefs.h >>conftest.$ac_ext
37264 cat >>conftest.$ac_ext <<_ACEOF
37265 /* end confdefs.h. */
37267 #include <sys/types.h>
37273 uint8_t a; uint16_t b;
37274 uint32_t c; a = b = c = 1;
37280 rm -f conftest.$ac_objext
37281 if { (ac_try="$ac_compile"
37282 case "(($ac_try" in
37283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37284 *) ac_try_echo=$ac_try;;
37286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37287 (eval "$ac_compile") 2>conftest.er1
37289 grep -v '^ *+' conftest.er1 >conftest.err
37291 cat conftest.err >&5
37292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293 (exit $ac_status); } && {
37294 test -z "$ac_c_werror_flag" ||
37295 test ! -s conftest.err
37296 } && test -s conftest.$ac_objext; then
37298 ac_cv_have_uintxx_t="yes"
37301 echo "$as_me: failed program was:" >&5
37302 sed 's/^/| /' conftest.$ac_ext >&5
37305 ac_cv_have_uintxx_t="no"
37310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37314 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37315 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37316 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37317 cat >>confdefs.h <<\_ACEOF
37318 #define HAVE_UINTXX_T 1
37324 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37325 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37327 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37328 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37329 cat >conftest.$ac_ext <<_ACEOF
37332 cat confdefs.h >>conftest.$ac_ext
37333 cat >>conftest.$ac_ext <<_ACEOF
37334 /* end confdefs.h. */
37336 #include <sys/bitypes.h>
37342 int64_t a; u_int64_t b;
37349 rm -f conftest.$ac_objext
37350 if { (ac_try="$ac_compile"
37351 case "(($ac_try" in
37352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37353 *) ac_try_echo=$ac_try;;
37355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37356 (eval "$ac_compile") 2>conftest.er1
37358 grep -v '^ *+' conftest.er1 >conftest.err
37360 cat conftest.err >&5
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); } && {
37363 test -z "$ac_c_werror_flag" ||
37364 test ! -s conftest.err
37365 } && test -s conftest.$ac_objext; then
37367 cat >>confdefs.h <<\_ACEOF
37368 #define HAVE_U_INT64_T 1
37371 cat >>confdefs.h <<\_ACEOF
37372 #define HAVE_INT64_T 1
37375 { echo "$as_me:$LINENO: result: yes" >&5
37376 echo "${ECHO_T}yes" >&6; }
37379 echo "$as_me: failed program was:" >&5
37380 sed 's/^/| /' conftest.$ac_ext >&5
37383 { echo "$as_me:$LINENO: result: no" >&5
37384 echo "${ECHO_T}no" >&6; }
37389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37392 if (test -z "$have_uintxx_t" && \
37393 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37395 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37396 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37397 cat >conftest.$ac_ext <<_ACEOF
37400 cat confdefs.h >>conftest.$ac_ext
37401 cat >>conftest.$ac_ext <<_ACEOF
37402 /* end confdefs.h. */
37404 #include <sys/bitypes.h>
37410 uint8_t a; uint16_t b;
37411 uint32_t c; a = b = c = 1;
37417 rm -f conftest.$ac_objext
37418 if { (ac_try="$ac_compile"
37419 case "(($ac_try" in
37420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37421 *) ac_try_echo=$ac_try;;
37423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37424 (eval "$ac_compile") 2>conftest.er1
37426 grep -v '^ *+' conftest.er1 >conftest.err
37428 cat conftest.err >&5
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); } && {
37431 test -z "$ac_c_werror_flag" ||
37432 test ! -s conftest.err
37433 } && test -s conftest.$ac_objext; then
37435 cat >>confdefs.h <<\_ACEOF
37436 #define HAVE_UINTXX_T 1
37439 { echo "$as_me:$LINENO: result: yes" >&5
37440 echo "${ECHO_T}yes" >&6; }
37443 echo "$as_me: failed program was:" >&5
37444 sed 's/^/| /' conftest.$ac_ext >&5
37447 { echo "$as_me:$LINENO: result: no" >&5
37448 echo "${ECHO_T}no" >&6; }
37453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37489 echo $ECHO_N "(cached) $ECHO_C" >&6
37491 cat >conftest.$ac_ext <<_ACEOF
37494 cat confdefs.h >>conftest.$ac_ext
37495 cat >>conftest.$ac_ext <<_ACEOF
37496 /* end confdefs.h. */
37497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37499 #define $ac_func innocuous_$ac_func
37501 /* System header to define __stub macros and hopefully few prototypes,
37502 which can conflict with char $ac_func (); below.
37503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37504 <limits.h> exists even on freestanding compilers. */
37507 # include <limits.h>
37509 # include <assert.h>
37514 /* Override any GCC internal prototype to avoid an error.
37515 Use char because int might match the return type of a GCC
37516 builtin and then its argument prototype would still apply. */
37521 /* The GNU C library defines this for functions which it implements
37522 to always fail with ENOSYS. Some functions are actually named
37523 something starting with __ and the normal name is an alias. */
37524 #if defined __stub_$ac_func || defined __stub___$ac_func
37531 return $ac_func ();
37536 rm -f conftest.$ac_objext conftest$ac_exeext
37537 if { (ac_try="$ac_link"
37538 case "(($ac_try" in
37539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37540 *) ac_try_echo=$ac_try;;
37542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37543 (eval "$ac_link") 2>conftest.er1
37545 grep -v '^ *+' conftest.er1 >conftest.err
37547 cat conftest.err >&5
37548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); } && {
37550 test -z "$ac_c_werror_flag" ||
37551 test ! -s conftest.err
37552 } && test -s conftest$ac_exeext &&
37553 $as_test_x conftest$ac_exeext; then
37554 eval "$as_ac_var=yes"
37556 echo "$as_me: failed program was:" >&5
37557 sed 's/^/| /' conftest.$ac_ext >&5
37559 eval "$as_ac_var=no"
37562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37563 conftest$ac_exeext conftest.$ac_ext
37565 ac_res=`eval echo '${'$as_ac_var'}'`
37566 { echo "$as_me:$LINENO: result: $ac_res" >&5
37567 echo "${ECHO_T}$ac_res" >&6; }
37568 if test `eval echo '${'$as_ac_var'}'` = yes; then
37569 cat >>confdefs.h <<_ACEOF
37570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37574 echo 'configure: cannot find needed function.'; exit 1
37581 for ac_func in fchdir
37583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37587 echo $ECHO_N "(cached) $ECHO_C" >&6
37589 cat >conftest.$ac_ext <<_ACEOF
37592 cat confdefs.h >>conftest.$ac_ext
37593 cat >>conftest.$ac_ext <<_ACEOF
37594 /* end confdefs.h. */
37595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37597 #define $ac_func innocuous_$ac_func
37599 /* System header to define __stub macros and hopefully few prototypes,
37600 which can conflict with char $ac_func (); below.
37601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37602 <limits.h> exists even on freestanding compilers. */
37605 # include <limits.h>
37607 # include <assert.h>
37612 /* Override any GCC internal prototype to avoid an error.
37613 Use char because int might match the return type of a GCC
37614 builtin and then its argument prototype would still apply. */
37619 /* The GNU C library defines this for functions which it implements
37620 to always fail with ENOSYS. Some functions are actually named
37621 something starting with __ and the normal name is an alias. */
37622 #if defined __stub_$ac_func || defined __stub___$ac_func
37629 return $ac_func ();
37634 rm -f conftest.$ac_objext conftest$ac_exeext
37635 if { (ac_try="$ac_link"
37636 case "(($ac_try" in
37637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638 *) ac_try_echo=$ac_try;;
37640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37641 (eval "$ac_link") 2>conftest.er1
37643 grep -v '^ *+' conftest.er1 >conftest.err
37645 cat conftest.err >&5
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); } && {
37648 test -z "$ac_c_werror_flag" ||
37649 test ! -s conftest.err
37650 } && test -s conftest$ac_exeext &&
37651 $as_test_x conftest$ac_exeext; then
37652 eval "$as_ac_var=yes"
37654 echo "$as_me: failed program was:" >&5
37655 sed 's/^/| /' conftest.$ac_ext >&5
37657 eval "$as_ac_var=no"
37660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37661 conftest$ac_exeext conftest.$ac_ext
37663 ac_res=`eval echo '${'$as_ac_var'}'`
37664 { echo "$as_me:$LINENO: result: $ac_res" >&5
37665 echo "${ECHO_T}$ac_res" >&6; }
37666 if test `eval echo '${'$as_ac_var'}'` = yes; then
37667 cat >>confdefs.h <<_ACEOF
37668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37670 cat >>confdefs.h <<\_ACEOF
37671 #define HAVE_FCHDIR 1
37678 for ac_func in strtoll
37680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37684 echo $ECHO_N "(cached) $ECHO_C" >&6
37686 cat >conftest.$ac_ext <<_ACEOF
37689 cat confdefs.h >>conftest.$ac_ext
37690 cat >>conftest.$ac_ext <<_ACEOF
37691 /* end confdefs.h. */
37692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37694 #define $ac_func innocuous_$ac_func
37696 /* System header to define __stub macros and hopefully few prototypes,
37697 which can conflict with char $ac_func (); below.
37698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37699 <limits.h> exists even on freestanding compilers. */
37702 # include <limits.h>
37704 # include <assert.h>
37709 /* Override any GCC internal prototype to avoid an error.
37710 Use char because int might match the return type of a GCC
37711 builtin and then its argument prototype would still apply. */
37716 /* The GNU C library defines this for functions which it implements
37717 to always fail with ENOSYS. Some functions are actually named
37718 something starting with __ and the normal name is an alias. */
37719 #if defined __stub_$ac_func || defined __stub___$ac_func
37726 return $ac_func ();
37731 rm -f conftest.$ac_objext conftest$ac_exeext
37732 if { (ac_try="$ac_link"
37733 case "(($ac_try" in
37734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37735 *) ac_try_echo=$ac_try;;
37737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37738 (eval "$ac_link") 2>conftest.er1
37740 grep -v '^ *+' conftest.er1 >conftest.err
37742 cat conftest.err >&5
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); } && {
37745 test -z "$ac_c_werror_flag" ||
37746 test ! -s conftest.err
37747 } && test -s conftest$ac_exeext &&
37748 $as_test_x conftest$ac_exeext; then
37749 eval "$as_ac_var=yes"
37751 echo "$as_me: failed program was:" >&5
37752 sed 's/^/| /' conftest.$ac_ext >&5
37754 eval "$as_ac_var=no"
37757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37758 conftest$ac_exeext conftest.$ac_ext
37760 ac_res=`eval echo '${'$as_ac_var'}'`
37761 { echo "$as_me:$LINENO: result: $ac_res" >&5
37762 echo "${ECHO_T}$ac_res" >&6; }
37763 if test `eval echo '${'$as_ac_var'}'` = yes; then
37764 cat >>confdefs.h <<_ACEOF
37765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37767 cat >>confdefs.h <<\_ACEOF
37768 #define HAVE_STRTOLL 1
37775 for ac_func in posix_fadvise
37777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37781 echo $ECHO_N "(cached) $ECHO_C" >&6
37783 cat >conftest.$ac_ext <<_ACEOF
37786 cat confdefs.h >>conftest.$ac_ext
37787 cat >>conftest.$ac_ext <<_ACEOF
37788 /* end confdefs.h. */
37789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37791 #define $ac_func innocuous_$ac_func
37793 /* System header to define __stub macros and hopefully few prototypes,
37794 which can conflict with char $ac_func (); below.
37795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37796 <limits.h> exists even on freestanding compilers. */
37799 # include <limits.h>
37801 # include <assert.h>
37806 /* Override any GCC internal prototype to avoid an error.
37807 Use char because int might match the return type of a GCC
37808 builtin and then its argument prototype would still apply. */
37813 /* The GNU C library defines this for functions which it implements
37814 to always fail with ENOSYS. Some functions are actually named
37815 something starting with __ and the normal name is an alias. */
37816 #if defined __stub_$ac_func || defined __stub___$ac_func
37823 return $ac_func ();
37828 rm -f conftest.$ac_objext conftest$ac_exeext
37829 if { (ac_try="$ac_link"
37830 case "(($ac_try" in
37831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37832 *) ac_try_echo=$ac_try;;
37834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37835 (eval "$ac_link") 2>conftest.er1
37837 grep -v '^ *+' conftest.er1 >conftest.err
37839 cat conftest.err >&5
37840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841 (exit $ac_status); } && {
37842 test -z "$ac_c_werror_flag" ||
37843 test ! -s conftest.err
37844 } && test -s conftest$ac_exeext &&
37845 $as_test_x conftest$ac_exeext; then
37846 eval "$as_ac_var=yes"
37848 echo "$as_me: failed program was:" >&5
37849 sed 's/^/| /' conftest.$ac_ext >&5
37851 eval "$as_ac_var=no"
37854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37855 conftest$ac_exeext conftest.$ac_ext
37857 ac_res=`eval echo '${'$as_ac_var'}'`
37858 { echo "$as_me:$LINENO: result: $ac_res" >&5
37859 echo "${ECHO_T}$ac_res" >&6; }
37860 if test `eval echo '${'$as_ac_var'}'` = yes; then
37861 cat >>confdefs.h <<_ACEOF
37862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37869 for ac_func in fdatasync
37871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37875 echo $ECHO_N "(cached) $ECHO_C" >&6
37877 cat >conftest.$ac_ext <<_ACEOF
37880 cat confdefs.h >>conftest.$ac_ext
37881 cat >>conftest.$ac_ext <<_ACEOF
37882 /* end confdefs.h. */
37883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37885 #define $ac_func innocuous_$ac_func
37887 /* System header to define __stub macros and hopefully few prototypes,
37888 which can conflict with char $ac_func (); below.
37889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37890 <limits.h> exists even on freestanding compilers. */
37893 # include <limits.h>
37895 # include <assert.h>
37900 /* Override any GCC internal prototype to avoid an error.
37901 Use char because int might match the return type of a GCC
37902 builtin and then its argument prototype would still apply. */
37907 /* The GNU C library defines this for functions which it implements
37908 to always fail with ENOSYS. Some functions are actually named
37909 something starting with __ and the normal name is an alias. */
37910 #if defined __stub_$ac_func || defined __stub___$ac_func
37917 return $ac_func ();
37922 rm -f conftest.$ac_objext conftest$ac_exeext
37923 if { (ac_try="$ac_link"
37924 case "(($ac_try" in
37925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37926 *) ac_try_echo=$ac_try;;
37928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37929 (eval "$ac_link") 2>conftest.er1
37931 grep -v '^ *+' conftest.er1 >conftest.err
37933 cat conftest.err >&5
37934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935 (exit $ac_status); } && {
37936 test -z "$ac_c_werror_flag" ||
37937 test ! -s conftest.err
37938 } && test -s conftest$ac_exeext &&
37939 $as_test_x conftest$ac_exeext; then
37940 eval "$as_ac_var=yes"
37942 echo "$as_me: failed program was:" >&5
37943 sed 's/^/| /' conftest.$ac_ext >&5
37945 eval "$as_ac_var=no"
37948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37949 conftest$ac_exeext conftest.$ac_ext
37951 ac_res=`eval echo '${'$as_ac_var'}'`
37952 { echo "$as_me:$LINENO: result: $ac_res" >&5
37953 echo "${ECHO_T}$ac_res" >&6; }
37954 if test `eval echo '${'$as_ac_var'}'` = yes; then
37955 cat >>confdefs.h <<_ACEOF
37956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37964 for ac_func in chflags
37966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37970 echo $ECHO_N "(cached) $ECHO_C" >&6
37972 cat >conftest.$ac_ext <<_ACEOF
37975 cat confdefs.h >>conftest.$ac_ext
37976 cat >>conftest.$ac_ext <<_ACEOF
37977 /* end confdefs.h. */
37978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37980 #define $ac_func innocuous_$ac_func
37982 /* System header to define __stub macros and hopefully few prototypes,
37983 which can conflict with char $ac_func (); below.
37984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37985 <limits.h> exists even on freestanding compilers. */
37988 # include <limits.h>
37990 # include <assert.h>
37995 /* Override any GCC internal prototype to avoid an error.
37996 Use char because int might match the return type of a GCC
37997 builtin and then its argument prototype would still apply. */
38002 /* The GNU C library defines this for functions which it implements
38003 to always fail with ENOSYS. Some functions are actually named
38004 something starting with __ and the normal name is an alias. */
38005 #if defined __stub_$ac_func || defined __stub___$ac_func
38012 return $ac_func ();
38017 rm -f conftest.$ac_objext conftest$ac_exeext
38018 if { (ac_try="$ac_link"
38019 case "(($ac_try" in
38020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38021 *) ac_try_echo=$ac_try;;
38023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38024 (eval "$ac_link") 2>conftest.er1
38026 grep -v '^ *+' conftest.er1 >conftest.err
38028 cat conftest.err >&5
38029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38030 (exit $ac_status); } && {
38031 test -z "$ac_c_werror_flag" ||
38032 test ! -s conftest.err
38033 } && test -s conftest$ac_exeext &&
38034 $as_test_x conftest$ac_exeext; then
38035 eval "$as_ac_var=yes"
38037 echo "$as_me: failed program was:" >&5
38038 sed 's/^/| /' conftest.$ac_ext >&5
38040 eval "$as_ac_var=no"
38043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38044 conftest$ac_exeext conftest.$ac_ext
38046 ac_res=`eval echo '${'$as_ac_var'}'`
38047 { echo "$as_me:$LINENO: result: $ac_res" >&5
38048 echo "${ECHO_T}$ac_res" >&6; }
38049 if test `eval echo '${'$as_ac_var'}'` = yes; then
38050 cat >>confdefs.h <<_ACEOF
38051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38062 for ac_func in snprintf vsnprintf gethostid fseeko
38064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38068 echo $ECHO_N "(cached) $ECHO_C" >&6
38070 cat >conftest.$ac_ext <<_ACEOF
38073 cat confdefs.h >>conftest.$ac_ext
38074 cat >>conftest.$ac_ext <<_ACEOF
38075 /* end confdefs.h. */
38076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38078 #define $ac_func innocuous_$ac_func
38080 /* System header to define __stub macros and hopefully few prototypes,
38081 which can conflict with char $ac_func (); below.
38082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38083 <limits.h> exists even on freestanding compilers. */
38086 # include <limits.h>
38088 # include <assert.h>
38093 /* Override any GCC internal prototype to avoid an error.
38094 Use char because int might match the return type of a GCC
38095 builtin and then its argument prototype would still apply. */
38100 /* The GNU C library defines this for functions which it implements
38101 to always fail with ENOSYS. Some functions are actually named
38102 something starting with __ and the normal name is an alias. */
38103 #if defined __stub_$ac_func || defined __stub___$ac_func
38110 return $ac_func ();
38115 rm -f conftest.$ac_objext conftest$ac_exeext
38116 if { (ac_try="$ac_link"
38117 case "(($ac_try" in
38118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38119 *) ac_try_echo=$ac_try;;
38121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38122 (eval "$ac_link") 2>conftest.er1
38124 grep -v '^ *+' conftest.er1 >conftest.err
38126 cat conftest.err >&5
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); } && {
38129 test -z "$ac_c_werror_flag" ||
38130 test ! -s conftest.err
38131 } && test -s conftest$ac_exeext &&
38132 $as_test_x conftest$ac_exeext; then
38133 eval "$as_ac_var=yes"
38135 echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38138 eval "$as_ac_var=no"
38141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38142 conftest$ac_exeext conftest.$ac_ext
38144 ac_res=`eval echo '${'$as_ac_var'}'`
38145 { echo "$as_me:$LINENO: result: $ac_res" >&5
38146 echo "${ECHO_T}$ac_res" >&6; }
38147 if test `eval echo '${'$as_ac_var'}'` = yes; then
38148 cat >>confdefs.h <<_ACEOF
38149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38156 { echo "$as_me:$LINENO: checking for va_copy" >&5
38157 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38158 if test "${ba_cv_va_copy+set}" = set; then
38159 echo $ECHO_N "(cached) $ECHO_C" >&6
38162 cat >conftest.$ac_ext <<_ACEOF
38165 cat confdefs.h >>conftest.$ac_ext
38166 cat >>conftest.$ac_ext <<_ACEOF
38167 /* end confdefs.h. */
38169 #include <stdarg.h>
38170 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38171 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38177 call_use_va_copy(1,2,3)
38183 rm -f conftest.$ac_objext conftest$ac_exeext
38184 if { (ac_try="$ac_link"
38185 case "(($ac_try" in
38186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38187 *) ac_try_echo=$ac_try;;
38189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38190 (eval "$ac_link") 2>conftest.er1
38192 grep -v '^ *+' conftest.er1 >conftest.err
38194 cat conftest.err >&5
38195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38196 (exit $ac_status); } && {
38197 test -z "$ac_c_werror_flag" ||
38198 test ! -s conftest.err
38199 } && test -s conftest$ac_exeext &&
38200 $as_test_x conftest$ac_exeext; then
38205 echo "$as_me: failed program was:" >&5
38206 sed 's/^/| /' conftest.$ac_ext >&5
38214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38215 conftest$ac_exeext conftest.$ac_ext
38219 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38220 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38221 test $ba_cv_va_copy = yes &&
38222 cat >>confdefs.h <<\_ACEOF
38223 #define HAVE_VA_COPY 1
38231 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38237 echo $ECHO_N "(cached) $ECHO_C" >&6
38239 cat >conftest.$ac_ext <<_ACEOF
38242 cat confdefs.h >>conftest.$ac_ext
38243 cat >>conftest.$ac_ext <<_ACEOF
38244 /* end confdefs.h. */
38245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38247 #define $ac_func innocuous_$ac_func
38249 /* System header to define __stub macros and hopefully few prototypes,
38250 which can conflict with char $ac_func (); below.
38251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38252 <limits.h> exists even on freestanding compilers. */
38255 # include <limits.h>
38257 # include <assert.h>
38262 /* Override any GCC internal prototype to avoid an error.
38263 Use char because int might match the return type of a GCC
38264 builtin and then its argument prototype would still apply. */
38269 /* The GNU C library defines this for functions which it implements
38270 to always fail with ENOSYS. Some functions are actually named
38271 something starting with __ and the normal name is an alias. */
38272 #if defined __stub_$ac_func || defined __stub___$ac_func
38279 return $ac_func ();
38284 rm -f conftest.$ac_objext conftest$ac_exeext
38285 if { (ac_try="$ac_link"
38286 case "(($ac_try" in
38287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38288 *) ac_try_echo=$ac_try;;
38290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38291 (eval "$ac_link") 2>conftest.er1
38293 grep -v '^ *+' conftest.er1 >conftest.err
38295 cat conftest.err >&5
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); } && {
38298 test -z "$ac_c_werror_flag" ||
38299 test ! -s conftest.err
38300 } && test -s conftest$ac_exeext &&
38301 $as_test_x conftest$ac_exeext; then
38302 eval "$as_ac_var=yes"
38304 echo "$as_me: failed program was:" >&5
38305 sed 's/^/| /' conftest.$ac_ext >&5
38307 eval "$as_ac_var=no"
38310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38311 conftest$ac_exeext conftest.$ac_ext
38313 ac_res=`eval echo '${'$as_ac_var'}'`
38314 { echo "$as_me:$LINENO: result: $ac_res" >&5
38315 echo "${ECHO_T}$ac_res" >&6; }
38316 if test `eval echo '${'$as_ac_var'}'` = yes; then
38317 cat >>confdefs.h <<_ACEOF
38318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38325 # If resolver functions are not in libc check for -lnsl or -lresolv.
38326 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38327 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38328 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38329 echo $ECHO_N "(cached) $ECHO_C" >&6
38331 cat >conftest.$ac_ext <<_ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h. */
38337 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38339 #define gethostbyname_r innocuous_gethostbyname_r
38341 /* System header to define __stub macros and hopefully few prototypes,
38342 which can conflict with char gethostbyname_r (); below.
38343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38344 <limits.h> exists even on freestanding compilers. */
38347 # include <limits.h>
38349 # include <assert.h>
38352 #undef gethostbyname_r
38354 /* Override any GCC internal prototype to avoid an error.
38355 Use char because int might match the return type of a GCC
38356 builtin and then its argument prototype would still apply. */
38360 char gethostbyname_r ();
38361 /* The GNU C library defines this for functions which it implements
38362 to always fail with ENOSYS. Some functions are actually named
38363 something starting with __ and the normal name is an alias. */
38364 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38371 return gethostbyname_r ();
38376 rm -f conftest.$ac_objext conftest$ac_exeext
38377 if { (ac_try="$ac_link"
38378 case "(($ac_try" in
38379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38380 *) ac_try_echo=$ac_try;;
38382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38383 (eval "$ac_link") 2>conftest.er1
38385 grep -v '^ *+' conftest.er1 >conftest.err
38387 cat conftest.err >&5
38388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38389 (exit $ac_status); } && {
38390 test -z "$ac_c_werror_flag" ||
38391 test ! -s conftest.err
38392 } && test -s conftest$ac_exeext &&
38393 $as_test_x conftest$ac_exeext; then
38394 ac_cv_func_gethostbyname_r=yes
38396 echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38399 ac_cv_func_gethostbyname_r=no
38402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38403 conftest$ac_exeext conftest.$ac_ext
38405 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38406 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38407 if test $ac_cv_func_gethostbyname_r = yes; then
38408 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38409 echo "${ECHO_T}using libc's resolver" >&6; }
38412 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38413 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38414 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38415 echo $ECHO_N "(cached) $ECHO_C" >&6
38417 ac_check_lib_save_LIBS=$LIBS
38419 cat >conftest.$ac_ext <<_ACEOF
38422 cat confdefs.h >>conftest.$ac_ext
38423 cat >>conftest.$ac_ext <<_ACEOF
38424 /* end confdefs.h. */
38426 /* Override any GCC internal prototype to avoid an error.
38427 Use char because int might match the return type of a GCC
38428 builtin and then its argument prototype would still apply. */
38432 char gethostbyname_r ();
38436 return gethostbyname_r ();
38441 rm -f conftest.$ac_objext conftest$ac_exeext
38442 if { (ac_try="$ac_link"
38443 case "(($ac_try" in
38444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38445 *) ac_try_echo=$ac_try;;
38447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38448 (eval "$ac_link") 2>conftest.er1
38450 grep -v '^ *+' conftest.er1 >conftest.err
38452 cat conftest.err >&5
38453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454 (exit $ac_status); } && {
38455 test -z "$ac_c_werror_flag" ||
38456 test ! -s conftest.err
38457 } && test -s conftest$ac_exeext &&
38458 $as_test_x conftest$ac_exeext; then
38459 ac_cv_lib_nsl_gethostbyname_r=yes
38461 echo "$as_me: failed program was:" >&5
38462 sed 's/^/| /' conftest.$ac_ext >&5
38464 ac_cv_lib_nsl_gethostbyname_r=no
38467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38468 conftest$ac_exeext conftest.$ac_ext
38469 LIBS=$ac_check_lib_save_LIBS
38471 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38472 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38473 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38474 cat >>confdefs.h <<_ACEOF
38475 #define HAVE_LIBNSL 1
38483 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38484 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38485 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38486 echo $ECHO_N "(cached) $ECHO_C" >&6
38488 ac_check_lib_save_LIBS=$LIBS
38489 LIBS="-lresolv $LIBS"
38490 cat >conftest.$ac_ext <<_ACEOF
38493 cat confdefs.h >>conftest.$ac_ext
38494 cat >>conftest.$ac_ext <<_ACEOF
38495 /* end confdefs.h. */
38497 /* Override any GCC internal prototype to avoid an error.
38498 Use char because int might match the return type of a GCC
38499 builtin and then its argument prototype would still apply. */
38503 char gethostbyname_r ();
38507 return gethostbyname_r ();
38512 rm -f conftest.$ac_objext conftest$ac_exeext
38513 if { (ac_try="$ac_link"
38514 case "(($ac_try" in
38515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38516 *) ac_try_echo=$ac_try;;
38518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38519 (eval "$ac_link") 2>conftest.er1
38521 grep -v '^ *+' conftest.er1 >conftest.err
38523 cat conftest.err >&5
38524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525 (exit $ac_status); } && {
38526 test -z "$ac_c_werror_flag" ||
38527 test ! -s conftest.err
38528 } && test -s conftest$ac_exeext &&
38529 $as_test_x conftest$ac_exeext; then
38530 ac_cv_lib_resolv_gethostbyname_r=yes
38532 echo "$as_me: failed program was:" >&5
38533 sed 's/^/| /' conftest.$ac_ext >&5
38535 ac_cv_lib_resolv_gethostbyname_r=no
38538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38539 conftest$ac_exeext conftest.$ac_ext
38540 LIBS=$ac_check_lib_save_LIBS
38542 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38543 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38544 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38545 cat >>confdefs.h <<_ACEOF
38546 #define HAVE_LIBRESOLV 1
38549 LIBS="-lresolv $LIBS"
38557 for ac_func in inet_pton
38559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38563 echo $ECHO_N "(cached) $ECHO_C" >&6
38565 cat >conftest.$ac_ext <<_ACEOF
38568 cat confdefs.h >>conftest.$ac_ext
38569 cat >>conftest.$ac_ext <<_ACEOF
38570 /* end confdefs.h. */
38571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38573 #define $ac_func innocuous_$ac_func
38575 /* System header to define __stub macros and hopefully few prototypes,
38576 which can conflict with char $ac_func (); below.
38577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38578 <limits.h> exists even on freestanding compilers. */
38581 # include <limits.h>
38583 # include <assert.h>
38588 /* Override any GCC internal prototype to avoid an error.
38589 Use char because int might match the return type of a GCC
38590 builtin and then its argument prototype would still apply. */
38595 /* The GNU C library defines this for functions which it implements
38596 to always fail with ENOSYS. Some functions are actually named
38597 something starting with __ and the normal name is an alias. */
38598 #if defined __stub_$ac_func || defined __stub___$ac_func
38605 return $ac_func ();
38610 rm -f conftest.$ac_objext conftest$ac_exeext
38611 if { (ac_try="$ac_link"
38612 case "(($ac_try" in
38613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38614 *) ac_try_echo=$ac_try;;
38616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38617 (eval "$ac_link") 2>conftest.er1
38619 grep -v '^ *+' conftest.er1 >conftest.err
38621 cat conftest.err >&5
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); } && {
38624 test -z "$ac_c_werror_flag" ||
38625 test ! -s conftest.err
38626 } && test -s conftest$ac_exeext &&
38627 $as_test_x conftest$ac_exeext; then
38628 eval "$as_ac_var=yes"
38630 echo "$as_me: failed program was:" >&5
38631 sed 's/^/| /' conftest.$ac_ext >&5
38633 eval "$as_ac_var=no"
38636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38637 conftest$ac_exeext conftest.$ac_ext
38639 ac_res=`eval echo '${'$as_ac_var'}'`
38640 { echo "$as_me:$LINENO: result: $ac_res" >&5
38641 echo "${ECHO_T}$ac_res" >&6; }
38642 if test `eval echo '${'$as_ac_var'}'` = yes; then
38643 cat >>confdefs.h <<_ACEOF
38644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38646 cat >>confdefs.h <<\_ACEOF
38647 #define HAVE_INET_PTON 1
38654 for ac_func in inet_ntop
38656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38660 echo $ECHO_N "(cached) $ECHO_C" >&6
38662 cat >conftest.$ac_ext <<_ACEOF
38665 cat confdefs.h >>conftest.$ac_ext
38666 cat >>conftest.$ac_ext <<_ACEOF
38667 /* end confdefs.h. */
38668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38670 #define $ac_func innocuous_$ac_func
38672 /* System header to define __stub macros and hopefully few prototypes,
38673 which can conflict with char $ac_func (); below.
38674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38675 <limits.h> exists even on freestanding compilers. */
38678 # include <limits.h>
38680 # include <assert.h>
38685 /* Override any GCC internal prototype to avoid an error.
38686 Use char because int might match the return type of a GCC
38687 builtin and then its argument prototype would still apply. */
38692 /* The GNU C library defines this for functions which it implements
38693 to always fail with ENOSYS. Some functions are actually named
38694 something starting with __ and the normal name is an alias. */
38695 #if defined __stub_$ac_func || defined __stub___$ac_func
38702 return $ac_func ();
38707 rm -f conftest.$ac_objext conftest$ac_exeext
38708 if { (ac_try="$ac_link"
38709 case "(($ac_try" in
38710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38711 *) ac_try_echo=$ac_try;;
38713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38714 (eval "$ac_link") 2>conftest.er1
38716 grep -v '^ *+' conftest.er1 >conftest.err
38718 cat conftest.err >&5
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); } && {
38721 test -z "$ac_c_werror_flag" ||
38722 test ! -s conftest.err
38723 } && test -s conftest$ac_exeext &&
38724 $as_test_x conftest$ac_exeext; then
38725 eval "$as_ac_var=yes"
38727 echo "$as_me: failed program was:" >&5
38728 sed 's/^/| /' conftest.$ac_ext >&5
38730 eval "$as_ac_var=no"
38733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38734 conftest$ac_exeext conftest.$ac_ext
38736 ac_res=`eval echo '${'$as_ac_var'}'`
38737 { echo "$as_me:$LINENO: result: $ac_res" >&5
38738 echo "${ECHO_T}$ac_res" >&6; }
38739 if test `eval echo '${'$as_ac_var'}'` = yes; then
38740 cat >>confdefs.h <<_ACEOF
38741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38743 cat >>confdefs.h <<\_ACEOF
38744 #define HAVE_INET_NTOP 1
38751 for ac_func in gethostbyname2
38753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38757 echo $ECHO_N "(cached) $ECHO_C" >&6
38759 cat >conftest.$ac_ext <<_ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h. */
38765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38767 #define $ac_func innocuous_$ac_func
38769 /* System header to define __stub macros and hopefully few prototypes,
38770 which can conflict with char $ac_func (); below.
38771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38772 <limits.h> exists even on freestanding compilers. */
38775 # include <limits.h>
38777 # include <assert.h>
38782 /* Override any GCC internal prototype to avoid an error.
38783 Use char because int might match the return type of a GCC
38784 builtin and then its argument prototype would still apply. */
38789 /* The GNU C library defines this for functions which it implements
38790 to always fail with ENOSYS. Some functions are actually named
38791 something starting with __ and the normal name is an alias. */
38792 #if defined __stub_$ac_func || defined __stub___$ac_func
38799 return $ac_func ();
38804 rm -f conftest.$ac_objext conftest$ac_exeext
38805 if { (ac_try="$ac_link"
38806 case "(($ac_try" in
38807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38808 *) ac_try_echo=$ac_try;;
38810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38811 (eval "$ac_link") 2>conftest.er1
38813 grep -v '^ *+' conftest.er1 >conftest.err
38815 cat conftest.err >&5
38816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817 (exit $ac_status); } && {
38818 test -z "$ac_c_werror_flag" ||
38819 test ! -s conftest.err
38820 } && test -s conftest$ac_exeext &&
38821 $as_test_x conftest$ac_exeext; then
38822 eval "$as_ac_var=yes"
38824 echo "$as_me: failed program was:" >&5
38825 sed 's/^/| /' conftest.$ac_ext >&5
38827 eval "$as_ac_var=no"
38830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38831 conftest$ac_exeext conftest.$ac_ext
38833 ac_res=`eval echo '${'$as_ac_var'}'`
38834 { echo "$as_me:$LINENO: result: $ac_res" >&5
38835 echo "${ECHO_T}$ac_res" >&6; }
38836 if test `eval echo '${'$as_ac_var'}'` = yes; then
38837 cat >>confdefs.h <<_ACEOF
38838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38840 cat >>confdefs.h <<\_ACEOF
38841 #define HAVE_GETHOSTBYNAME2 1
38848 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38849 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38850 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38851 echo $ECHO_N "(cached) $ECHO_C" >&6
38854 cat >conftest.$ac_ext <<_ACEOF
38857 cat confdefs.h >>conftest.$ac_ext
38858 cat >>conftest.$ac_ext <<_ACEOF
38859 /* end confdefs.h. */
38861 #include <sys/socket.h>
38867 struct sockaddr s; s.sa_len;
38873 rm -f conftest.$ac_objext
38874 if { (ac_try="$ac_compile"
38875 case "(($ac_try" in
38876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38877 *) ac_try_echo=$ac_try;;
38879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38880 (eval "$ac_compile") 2>conftest.er1
38882 grep -v '^ *+' conftest.er1 >conftest.err
38884 cat conftest.err >&5
38885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); } && {
38887 test -z "$ac_c_werror_flag" ||
38888 test ! -s conftest.err
38889 } && test -s conftest.$ac_objext; then
38891 ac_cv_struct_sockaddr_sa_len=yes
38894 echo "$as_me: failed program was:" >&5
38895 sed 's/^/| /' conftest.$ac_ext >&5
38897 ac_cv_struct_sockaddr_sa_len=no
38902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38906 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38907 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38909 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38911 cat >>confdefs.h <<\_ACEOF
38912 #define HAVE_SA_LEN 1
38918 for ac_func in strftime
38920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38924 echo $ECHO_N "(cached) $ECHO_C" >&6
38926 cat >conftest.$ac_ext <<_ACEOF
38929 cat confdefs.h >>conftest.$ac_ext
38930 cat >>conftest.$ac_ext <<_ACEOF
38931 /* end confdefs.h. */
38932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38934 #define $ac_func innocuous_$ac_func
38936 /* System header to define __stub macros and hopefully few prototypes,
38937 which can conflict with char $ac_func (); below.
38938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38939 <limits.h> exists even on freestanding compilers. */
38942 # include <limits.h>
38944 # include <assert.h>
38949 /* Override any GCC internal prototype to avoid an error.
38950 Use char because int might match the return type of a GCC
38951 builtin and then its argument prototype would still apply. */
38956 /* The GNU C library defines this for functions which it implements
38957 to always fail with ENOSYS. Some functions are actually named
38958 something starting with __ and the normal name is an alias. */
38959 #if defined __stub_$ac_func || defined __stub___$ac_func
38966 return $ac_func ();
38971 rm -f conftest.$ac_objext conftest$ac_exeext
38972 if { (ac_try="$ac_link"
38973 case "(($ac_try" in
38974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38975 *) ac_try_echo=$ac_try;;
38977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38978 (eval "$ac_link") 2>conftest.er1
38980 grep -v '^ *+' conftest.er1 >conftest.err
38982 cat conftest.err >&5
38983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38984 (exit $ac_status); } && {
38985 test -z "$ac_c_werror_flag" ||
38986 test ! -s conftest.err
38987 } && test -s conftest$ac_exeext &&
38988 $as_test_x conftest$ac_exeext; then
38989 eval "$as_ac_var=yes"
38991 echo "$as_me: failed program was:" >&5
38992 sed 's/^/| /' conftest.$ac_ext >&5
38994 eval "$as_ac_var=no"
38997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38998 conftest$ac_exeext conftest.$ac_ext
39000 ac_res=`eval echo '${'$as_ac_var'}'`
39001 { echo "$as_me:$LINENO: result: $ac_res" >&5
39002 echo "${ECHO_T}$ac_res" >&6; }
39003 if test `eval echo '${'$as_ac_var'}'` = yes; then
39004 cat >>confdefs.h <<_ACEOF
39005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39009 # strftime is in -lintl on SCO UNIX.
39010 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39011 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39012 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39013 echo $ECHO_N "(cached) $ECHO_C" >&6
39015 ac_check_lib_save_LIBS=$LIBS
39016 LIBS="-lintl $LIBS"
39017 cat >conftest.$ac_ext <<_ACEOF
39020 cat confdefs.h >>conftest.$ac_ext
39021 cat >>conftest.$ac_ext <<_ACEOF
39022 /* end confdefs.h. */
39024 /* Override any GCC internal prototype to avoid an error.
39025 Use char because int might match the return type of a GCC
39026 builtin and then its argument prototype would still apply. */
39034 return strftime ();
39039 rm -f conftest.$ac_objext conftest$ac_exeext
39040 if { (ac_try="$ac_link"
39041 case "(($ac_try" in
39042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39043 *) ac_try_echo=$ac_try;;
39045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39046 (eval "$ac_link") 2>conftest.er1
39048 grep -v '^ *+' conftest.er1 >conftest.err
39050 cat conftest.err >&5
39051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); } && {
39053 test -z "$ac_c_werror_flag" ||
39054 test ! -s conftest.err
39055 } && test -s conftest$ac_exeext &&
39056 $as_test_x conftest$ac_exeext; then
39057 ac_cv_lib_intl_strftime=yes
39059 echo "$as_me: failed program was:" >&5
39060 sed 's/^/| /' conftest.$ac_ext >&5
39062 ac_cv_lib_intl_strftime=no
39065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39066 conftest$ac_exeext conftest.$ac_ext
39067 LIBS=$ac_check_lib_save_LIBS
39069 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39070 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39071 if test $ac_cv_lib_intl_strftime = yes; then
39072 cat >>confdefs.h <<\_ACEOF
39073 #define HAVE_STRFTIME 1
39076 LIBS="-lintl $LIBS"
39083 for ac_func in vprintf
39085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39089 echo $ECHO_N "(cached) $ECHO_C" >&6
39091 cat >conftest.$ac_ext <<_ACEOF
39094 cat confdefs.h >>conftest.$ac_ext
39095 cat >>conftest.$ac_ext <<_ACEOF
39096 /* end confdefs.h. */
39097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39099 #define $ac_func innocuous_$ac_func
39101 /* System header to define __stub macros and hopefully few prototypes,
39102 which can conflict with char $ac_func (); below.
39103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39104 <limits.h> exists even on freestanding compilers. */
39107 # include <limits.h>
39109 # include <assert.h>
39114 /* Override any GCC internal prototype to avoid an error.
39115 Use char because int might match the return type of a GCC
39116 builtin and then its argument prototype would still apply. */
39121 /* The GNU C library defines this for functions which it implements
39122 to always fail with ENOSYS. Some functions are actually named
39123 something starting with __ and the normal name is an alias. */
39124 #if defined __stub_$ac_func || defined __stub___$ac_func
39131 return $ac_func ();
39136 rm -f conftest.$ac_objext conftest$ac_exeext
39137 if { (ac_try="$ac_link"
39138 case "(($ac_try" in
39139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39140 *) ac_try_echo=$ac_try;;
39142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39143 (eval "$ac_link") 2>conftest.er1
39145 grep -v '^ *+' conftest.er1 >conftest.err
39147 cat conftest.err >&5
39148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39149 (exit $ac_status); } && {
39150 test -z "$ac_c_werror_flag" ||
39151 test ! -s conftest.err
39152 } && test -s conftest$ac_exeext &&
39153 $as_test_x conftest$ac_exeext; then
39154 eval "$as_ac_var=yes"
39156 echo "$as_me: failed program was:" >&5
39157 sed 's/^/| /' conftest.$ac_ext >&5
39159 eval "$as_ac_var=no"
39162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39163 conftest$ac_exeext conftest.$ac_ext
39165 ac_res=`eval echo '${'$as_ac_var'}'`
39166 { echo "$as_me:$LINENO: result: $ac_res" >&5
39167 echo "${ECHO_T}$ac_res" >&6; }
39168 if test `eval echo '${'$as_ac_var'}'` = yes; then
39169 cat >>confdefs.h <<_ACEOF
39170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39173 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39174 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39175 if test "${ac_cv_func__doprnt+set}" = set; then
39176 echo $ECHO_N "(cached) $ECHO_C" >&6
39178 cat >conftest.$ac_ext <<_ACEOF
39181 cat confdefs.h >>conftest.$ac_ext
39182 cat >>conftest.$ac_ext <<_ACEOF
39183 /* end confdefs.h. */
39184 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39186 #define _doprnt innocuous__doprnt
39188 /* System header to define __stub macros and hopefully few prototypes,
39189 which can conflict with char _doprnt (); below.
39190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39191 <limits.h> exists even on freestanding compilers. */
39194 # include <limits.h>
39196 # include <assert.h>
39201 /* Override any GCC internal prototype to avoid an error.
39202 Use char because int might match the return type of a GCC
39203 builtin and then its argument prototype would still apply. */
39208 /* The GNU C library defines this for functions which it implements
39209 to always fail with ENOSYS. Some functions are actually named
39210 something starting with __ and the normal name is an alias. */
39211 #if defined __stub__doprnt || defined __stub____doprnt
39223 rm -f conftest.$ac_objext conftest$ac_exeext
39224 if { (ac_try="$ac_link"
39225 case "(($ac_try" in
39226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39227 *) ac_try_echo=$ac_try;;
39229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39230 (eval "$ac_link") 2>conftest.er1
39232 grep -v '^ *+' conftest.er1 >conftest.err
39234 cat conftest.err >&5
39235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236 (exit $ac_status); } && {
39237 test -z "$ac_c_werror_flag" ||
39238 test ! -s conftest.err
39239 } && test -s conftest$ac_exeext &&
39240 $as_test_x conftest$ac_exeext; then
39241 ac_cv_func__doprnt=yes
39243 echo "$as_me: failed program was:" >&5
39244 sed 's/^/| /' conftest.$ac_ext >&5
39246 ac_cv_func__doprnt=no
39249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39250 conftest$ac_exeext conftest.$ac_ext
39252 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39253 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39254 if test $ac_cv_func__doprnt = yes; then
39256 cat >>confdefs.h <<\_ACEOF
39257 #define HAVE_DOPRNT 1
39266 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39267 # for constant arguments. Useless!
39268 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39269 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39270 if test "${ac_cv_working_alloca_h+set}" = set; then
39271 echo $ECHO_N "(cached) $ECHO_C" >&6
39273 cat >conftest.$ac_ext <<_ACEOF
39276 cat confdefs.h >>conftest.$ac_ext
39277 cat >>conftest.$ac_ext <<_ACEOF
39278 /* end confdefs.h. */
39279 #include <alloca.h>
39283 char *p = (char *) alloca (2 * sizeof (int));
39289 rm -f conftest.$ac_objext conftest$ac_exeext
39290 if { (ac_try="$ac_link"
39291 case "(($ac_try" in
39292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39293 *) ac_try_echo=$ac_try;;
39295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39296 (eval "$ac_link") 2>conftest.er1
39298 grep -v '^ *+' conftest.er1 >conftest.err
39300 cat conftest.err >&5
39301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39302 (exit $ac_status); } && {
39303 test -z "$ac_c_werror_flag" ||
39304 test ! -s conftest.err
39305 } && test -s conftest$ac_exeext &&
39306 $as_test_x conftest$ac_exeext; then
39307 ac_cv_working_alloca_h=yes
39309 echo "$as_me: failed program was:" >&5
39310 sed 's/^/| /' conftest.$ac_ext >&5
39312 ac_cv_working_alloca_h=no
39315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39316 conftest$ac_exeext conftest.$ac_ext
39318 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39319 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39320 if test $ac_cv_working_alloca_h = yes; then
39322 cat >>confdefs.h <<\_ACEOF
39323 #define HAVE_ALLOCA_H 1
39328 { echo "$as_me:$LINENO: checking for alloca" >&5
39329 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39330 if test "${ac_cv_func_alloca_works+set}" = set; then
39331 echo $ECHO_N "(cached) $ECHO_C" >&6
39333 cat >conftest.$ac_ext <<_ACEOF
39336 cat confdefs.h >>conftest.$ac_ext
39337 cat >>conftest.$ac_ext <<_ACEOF
39338 /* end confdefs.h. */
39340 # define alloca __builtin_alloca
39343 # include <malloc.h>
39344 # define alloca _alloca
39346 # ifdef HAVE_ALLOCA_H
39347 # include <alloca.h>
39352 # ifndef alloca /* predefined by HP cc +Olibcalls */
39363 char *p = (char *) alloca (1);
39369 rm -f conftest.$ac_objext conftest$ac_exeext
39370 if { (ac_try="$ac_link"
39371 case "(($ac_try" in
39372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39373 *) ac_try_echo=$ac_try;;
39375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39376 (eval "$ac_link") 2>conftest.er1
39378 grep -v '^ *+' conftest.er1 >conftest.err
39380 cat conftest.err >&5
39381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382 (exit $ac_status); } && {
39383 test -z "$ac_c_werror_flag" ||
39384 test ! -s conftest.err
39385 } && test -s conftest$ac_exeext &&
39386 $as_test_x conftest$ac_exeext; then
39387 ac_cv_func_alloca_works=yes
39389 echo "$as_me: failed program was:" >&5
39390 sed 's/^/| /' conftest.$ac_ext >&5
39392 ac_cv_func_alloca_works=no
39395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39396 conftest$ac_exeext conftest.$ac_ext
39398 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39399 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39401 if test $ac_cv_func_alloca_works = yes; then
39403 cat >>confdefs.h <<\_ACEOF
39404 #define HAVE_ALLOCA 1
39408 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39409 # that cause trouble. Some versions do not even contain alloca or
39410 # contain a buggy version. If you still want to use their alloca,
39411 # use ar to extract alloca.o from them instead of compiling alloca.c.
39413 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39415 cat >>confdefs.h <<\_ACEOF
39420 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39421 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39422 if test "${ac_cv_os_cray+set}" = set; then
39423 echo $ECHO_N "(cached) $ECHO_C" >&6
39425 cat >conftest.$ac_ext <<_ACEOF
39428 cat confdefs.h >>conftest.$ac_ext
39429 cat >>conftest.$ac_ext <<_ACEOF
39430 /* end confdefs.h. */
39431 #if defined CRAY && ! defined CRAY2
39438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39439 $EGREP "webecray" >/dev/null 2>&1; then
39447 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39448 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39449 if test $ac_cv_os_cray = yes; then
39450 for ac_func in _getb67 GETB67 getb67; do
39451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39455 echo $ECHO_N "(cached) $ECHO_C" >&6
39457 cat >conftest.$ac_ext <<_ACEOF
39460 cat confdefs.h >>conftest.$ac_ext
39461 cat >>conftest.$ac_ext <<_ACEOF
39462 /* end confdefs.h. */
39463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39465 #define $ac_func innocuous_$ac_func
39467 /* System header to define __stub macros and hopefully few prototypes,
39468 which can conflict with char $ac_func (); below.
39469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39470 <limits.h> exists even on freestanding compilers. */
39473 # include <limits.h>
39475 # include <assert.h>
39480 /* Override any GCC internal prototype to avoid an error.
39481 Use char because int might match the return type of a GCC
39482 builtin and then its argument prototype would still apply. */
39487 /* The GNU C library defines this for functions which it implements
39488 to always fail with ENOSYS. Some functions are actually named
39489 something starting with __ and the normal name is an alias. */
39490 #if defined __stub_$ac_func || defined __stub___$ac_func
39497 return $ac_func ();
39502 rm -f conftest.$ac_objext conftest$ac_exeext
39503 if { (ac_try="$ac_link"
39504 case "(($ac_try" in
39505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39506 *) ac_try_echo=$ac_try;;
39508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39509 (eval "$ac_link") 2>conftest.er1
39511 grep -v '^ *+' conftest.er1 >conftest.err
39513 cat conftest.err >&5
39514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39515 (exit $ac_status); } && {
39516 test -z "$ac_c_werror_flag" ||
39517 test ! -s conftest.err
39518 } && test -s conftest$ac_exeext &&
39519 $as_test_x conftest$ac_exeext; then
39520 eval "$as_ac_var=yes"
39522 echo "$as_me: failed program was:" >&5
39523 sed 's/^/| /' conftest.$ac_ext >&5
39525 eval "$as_ac_var=no"
39528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39529 conftest$ac_exeext conftest.$ac_ext
39531 ac_res=`eval echo '${'$as_ac_var'}'`
39532 { echo "$as_me:$LINENO: result: $ac_res" >&5
39533 echo "${ECHO_T}$ac_res" >&6; }
39534 if test `eval echo '${'$as_ac_var'}'` = yes; then
39536 cat >>confdefs.h <<_ACEOF
39537 #define CRAY_STACKSEG_END $ac_func
39546 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39547 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39548 if test "${ac_cv_c_stack_direction+set}" = set; then
39549 echo $ECHO_N "(cached) $ECHO_C" >&6
39551 if test "$cross_compiling" = yes; then
39552 ac_cv_c_stack_direction=0
39554 cat >conftest.$ac_ext <<_ACEOF
39557 cat confdefs.h >>conftest.$ac_ext
39558 cat >>conftest.$ac_ext <<_ACEOF
39559 /* end confdefs.h. */
39560 $ac_includes_default
39562 find_stack_direction ()
39564 static char *addr = 0;
39569 return find_stack_direction ();
39572 return (&dummy > addr) ? 1 : -1;
39578 return find_stack_direction () < 0;
39581 rm -f conftest$ac_exeext
39582 if { (ac_try="$ac_link"
39583 case "(($ac_try" in
39584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39585 *) ac_try_echo=$ac_try;;
39587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39588 (eval "$ac_link") 2>&5
39590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); }; }; then
39601 ac_cv_c_stack_direction=1
39603 echo "$as_me: program exited with status $ac_status" >&5
39604 echo "$as_me: failed program was:" >&5
39605 sed 's/^/| /' conftest.$ac_ext >&5
39607 ( exit $ac_status )
39608 ac_cv_c_stack_direction=-1
39610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39615 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39616 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39618 cat >>confdefs.h <<_ACEOF
39619 #define STACK_DIRECTION $ac_cv_c_stack_direction
39625 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39626 # -lseq on Dynix/PTX, -lgen on Unixware.
39627 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39628 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39629 if test "${ac_cv_search_getmntent+set}" = set; then
39630 echo $ECHO_N "(cached) $ECHO_C" >&6
39632 ac_func_search_save_LIBS=$LIBS
39633 cat >conftest.$ac_ext <<_ACEOF
39636 cat confdefs.h >>conftest.$ac_ext
39637 cat >>conftest.$ac_ext <<_ACEOF
39638 /* end confdefs.h. */
39640 /* Override any GCC internal prototype to avoid an error.
39641 Use char because int might match the return type of a GCC
39642 builtin and then its argument prototype would still apply. */
39650 return getmntent ();
39655 for ac_lib in '' sun seq gen; do
39656 if test -z "$ac_lib"; then
39657 ac_res="none required"
39660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39662 rm -f conftest.$ac_objext conftest$ac_exeext
39663 if { (ac_try="$ac_link"
39664 case "(($ac_try" in
39665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39666 *) ac_try_echo=$ac_try;;
39668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39669 (eval "$ac_link") 2>conftest.er1
39671 grep -v '^ *+' conftest.er1 >conftest.err
39673 cat conftest.err >&5
39674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 (exit $ac_status); } && {
39676 test -z "$ac_c_werror_flag" ||
39677 test ! -s conftest.err
39678 } && test -s conftest$ac_exeext &&
39679 $as_test_x conftest$ac_exeext; then
39680 ac_cv_search_getmntent=$ac_res
39682 echo "$as_me: failed program was:" >&5
39683 sed 's/^/| /' conftest.$ac_ext >&5
39688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39690 if test "${ac_cv_search_getmntent+set}" = set; then
39694 if test "${ac_cv_search_getmntent+set}" = set; then
39697 ac_cv_search_getmntent=no
39699 rm conftest.$ac_ext
39700 LIBS=$ac_func_search_save_LIBS
39702 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39703 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39704 ac_res=$ac_cv_search_getmntent
39705 if test "$ac_res" != no; then
39706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39707 ac_cv_func_getmntent=yes
39709 cat >>confdefs.h <<\_ACEOF
39710 #define HAVE_GETMNTENT 1
39714 ac_cv_func_getmntent=no
39718 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39719 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39720 if test "${ac_cv_func_closedir_void+set}" = set; then
39721 echo $ECHO_N "(cached) $ECHO_C" >&6
39723 if test "$cross_compiling" = yes; then
39724 ac_cv_func_closedir_void=yes
39726 cat >conftest.$ac_ext <<_ACEOF
39729 cat confdefs.h >>conftest.$ac_ext
39730 cat >>conftest.$ac_ext <<_ACEOF
39731 /* end confdefs.h. */
39732 $ac_includes_default
39733 #include <$ac_header_dirent>
39734 #ifndef __cplusplus
39741 return closedir (opendir (".")) != 0;
39746 rm -f conftest$ac_exeext
39747 if { (ac_try="$ac_link"
39748 case "(($ac_try" in
39749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39750 *) ac_try_echo=$ac_try;;
39752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39753 (eval "$ac_link") 2>&5
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); }; }; then
39766 ac_cv_func_closedir_void=no
39768 echo "$as_me: program exited with status $ac_status" >&5
39769 echo "$as_me: failed program was:" >&5
39770 sed 's/^/| /' conftest.$ac_ext >&5
39772 ( exit $ac_status )
39773 ac_cv_func_closedir_void=yes
39775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39780 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39781 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39782 if test $ac_cv_func_closedir_void = yes; then
39784 cat >>confdefs.h <<\_ACEOF
39785 #define CLOSEDIR_VOID 1
39790 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39791 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39792 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39793 echo $ECHO_N "(cached) $ECHO_C" >&6
39795 if test "$cross_compiling" = yes; then
39796 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39797 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39798 { (exit 1); exit 1; }; }
39800 cat >conftest.$ac_ext <<_ACEOF
39803 cat confdefs.h >>conftest.$ac_ext
39804 cat >>conftest.$ac_ext <<_ACEOF
39805 /* end confdefs.h. */
39806 $ac_includes_default
39810 /* If this system has a BSD-style setpgrp which takes arguments,
39811 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39812 exit successfully. */
39813 return setpgrp (1,1) != -1;
39818 rm -f conftest$ac_exeext
39819 if { (ac_try="$ac_link"
39820 case "(($ac_try" in
39821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39822 *) ac_try_echo=$ac_try;;
39824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39825 (eval "$ac_link") 2>&5
39827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); }; }; then
39838 ac_cv_func_setpgrp_void=no
39840 echo "$as_me: program exited with status $ac_status" >&5
39841 echo "$as_me: failed program was:" >&5
39842 sed 's/^/| /' conftest.$ac_ext >&5
39844 ( exit $ac_status )
39845 ac_cv_func_setpgrp_void=yes
39847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39852 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39853 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39854 if test $ac_cv_func_setpgrp_void = yes; then
39856 cat >>confdefs.h <<\_ACEOF
39857 #define SETPGRP_VOID 1
39861 # AC_FUNC_FNMATCH dnl use local version
39863 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39864 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39865 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39866 echo $ECHO_N "(cached) $ECHO_C" >&6
39868 ac_check_lib_save_LIBS=$LIBS
39869 LIBS="-lintl $LIBS"
39870 cat >conftest.$ac_ext <<_ACEOF
39873 cat confdefs.h >>conftest.$ac_ext
39874 cat >>conftest.$ac_ext <<_ACEOF
39875 /* end confdefs.h. */
39877 /* Override any GCC internal prototype to avoid an error.
39878 Use char because int might match the return type of a GCC
39879 builtin and then its argument prototype would still apply. */
39892 rm -f conftest.$ac_objext conftest$ac_exeext
39893 if { (ac_try="$ac_link"
39894 case "(($ac_try" in
39895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39896 *) ac_try_echo=$ac_try;;
39898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39899 (eval "$ac_link") 2>conftest.er1
39901 grep -v '^ *+' conftest.er1 >conftest.err
39903 cat conftest.err >&5
39904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905 (exit $ac_status); } && {
39906 test -z "$ac_c_werror_flag" ||
39907 test ! -s conftest.err
39908 } && test -s conftest$ac_exeext &&
39909 $as_test_x conftest$ac_exeext; then
39910 ac_cv_lib_intl_gettext=yes
39912 echo "$as_me: failed program was:" >&5
39913 sed 's/^/| /' conftest.$ac_ext >&5
39915 ac_cv_lib_intl_gettext=no
39918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39919 conftest$ac_exeext conftest.$ac_ext
39920 LIBS=$ac_check_lib_save_LIBS
39922 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39923 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39924 if test $ac_cv_lib_intl_gettext = yes; then
39925 LIBS="$LIBS -lintl"
39930 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39931 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39932 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39933 echo $ECHO_N "(cached) $ECHO_C" >&6
39935 ac_check_lib_save_LIBS=$LIBS
39937 cat >conftest.$ac_ext <<_ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h. */
39944 /* Override any GCC internal prototype to avoid an error.
39945 Use char because int might match the return type of a GCC
39946 builtin and then its argument prototype would still apply. */
39954 return getpwnam ();
39959 rm -f conftest.$ac_objext conftest$ac_exeext
39960 if { (ac_try="$ac_link"
39961 case "(($ac_try" in
39962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39963 *) ac_try_echo=$ac_try;;
39965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39966 (eval "$ac_link") 2>conftest.er1
39968 grep -v '^ *+' conftest.er1 >conftest.err
39970 cat conftest.err >&5
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); } && {
39973 test -z "$ac_c_werror_flag" ||
39974 test ! -s conftest.err
39975 } && test -s conftest$ac_exeext &&
39976 $as_test_x conftest$ac_exeext; then
39977 ac_cv_lib_sun_getpwnam=yes
39979 echo "$as_me: failed program was:" >&5
39980 sed 's/^/| /' conftest.$ac_ext >&5
39982 ac_cv_lib_sun_getpwnam=no
39985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39986 conftest$ac_exeext conftest.$ac_ext
39987 LIBS=$ac_check_lib_save_LIBS
39989 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39990 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39991 if test $ac_cv_lib_sun_getpwnam = yes; then
39992 cat >>confdefs.h <<_ACEOF
39993 #define HAVE_LIBSUN 1
40002 for ac_header in zlib.h
40004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40009 echo $ECHO_N "(cached) $ECHO_C" >&6
40011 ac_res=`eval echo '${'$as_ac_Header'}'`
40012 { echo "$as_me:$LINENO: result: $ac_res" >&5
40013 echo "${ECHO_T}$ac_res" >&6; }
40015 # Is the header compilable?
40016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40018 cat >conftest.$ac_ext <<_ACEOF
40021 cat confdefs.h >>conftest.$ac_ext
40022 cat >>conftest.$ac_ext <<_ACEOF
40023 /* end confdefs.h. */
40024 $ac_includes_default
40025 #include <$ac_header>
40027 rm -f conftest.$ac_objext
40028 if { (ac_try="$ac_compile"
40029 case "(($ac_try" in
40030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40031 *) ac_try_echo=$ac_try;;
40033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40034 (eval "$ac_compile") 2>conftest.er1
40036 grep -v '^ *+' conftest.er1 >conftest.err
40038 cat conftest.err >&5
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); } && {
40041 test -z "$ac_c_werror_flag" ||
40042 test ! -s conftest.err
40043 } && test -s conftest.$ac_objext; then
40044 ac_header_compiler=yes
40046 echo "$as_me: failed program was:" >&5
40047 sed 's/^/| /' conftest.$ac_ext >&5
40049 ac_header_compiler=no
40052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40054 echo "${ECHO_T}$ac_header_compiler" >&6; }
40056 # Is the header present?
40057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40059 cat >conftest.$ac_ext <<_ACEOF
40062 cat confdefs.h >>conftest.$ac_ext
40063 cat >>conftest.$ac_ext <<_ACEOF
40064 /* end confdefs.h. */
40065 #include <$ac_header>
40067 if { (ac_try="$ac_cpp conftest.$ac_ext"
40068 case "(($ac_try" in
40069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40070 *) ac_try_echo=$ac_try;;
40072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40075 grep -v '^ *+' conftest.er1 >conftest.err
40077 cat conftest.err >&5
40078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40079 (exit $ac_status); } >/dev/null && {
40080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40081 test ! -s conftest.err
40083 ac_header_preproc=yes
40085 echo "$as_me: failed program was:" >&5
40086 sed 's/^/| /' conftest.$ac_ext >&5
40088 ac_header_preproc=no
40091 rm -f conftest.err conftest.$ac_ext
40092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40093 echo "${ECHO_T}$ac_header_preproc" >&6; }
40095 # So? What about this header?
40096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40102 ac_header_preproc=yes
40105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40123 echo $ECHO_N "(cached) $ECHO_C" >&6
40125 eval "$as_ac_Header=\$ac_header_preproc"
40127 ac_res=`eval echo '${'$as_ac_Header'}'`
40128 { echo "$as_me:$LINENO: result: $ac_res" >&5
40129 echo "${ECHO_T}$ac_res" >&6; }
40132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40133 cat >>confdefs.h <<_ACEOF
40134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40141 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40142 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40143 if test "${ac_cv_lib_z_deflate+set}" = set; then
40144 echo $ECHO_N "(cached) $ECHO_C" >&6
40146 ac_check_lib_save_LIBS=$LIBS
40148 cat >conftest.$ac_ext <<_ACEOF
40151 cat confdefs.h >>conftest.$ac_ext
40152 cat >>conftest.$ac_ext <<_ACEOF
40153 /* end confdefs.h. */
40155 /* Override any GCC internal prototype to avoid an error.
40156 Use char because int might match the return type of a GCC
40157 builtin and then its argument prototype would still apply. */
40170 rm -f conftest.$ac_objext conftest$ac_exeext
40171 if { (ac_try="$ac_link"
40172 case "(($ac_try" in
40173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40174 *) ac_try_echo=$ac_try;;
40176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40177 (eval "$ac_link") 2>conftest.er1
40179 grep -v '^ *+' conftest.er1 >conftest.err
40181 cat conftest.err >&5
40182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40183 (exit $ac_status); } && {
40184 test -z "$ac_c_werror_flag" ||
40185 test ! -s conftest.err
40186 } && test -s conftest$ac_exeext &&
40187 $as_test_x conftest$ac_exeext; then
40188 ac_cv_lib_z_deflate=yes
40190 echo "$as_me: failed program was:" >&5
40191 sed 's/^/| /' conftest.$ac_ext >&5
40193 ac_cv_lib_z_deflate=no
40196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40197 conftest$ac_exeext conftest.$ac_ext
40198 LIBS=$ac_check_lib_save_LIBS
40200 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40201 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40202 if test $ac_cv_lib_z_deflate = yes; then
40207 if test x$FDLIBS = x-lz; then
40208 cat >>confdefs.h <<\_ACEOF
40209 #define HAVE_LIBZ 1
40216 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40217 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40218 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40219 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40220 echo $ECHO_N "(cached) $ECHO_C" >&6
40222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40223 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40225 # Is the header compilable?
40226 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40227 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40228 cat >conftest.$ac_ext <<_ACEOF
40231 cat confdefs.h >>conftest.$ac_ext
40232 cat >>conftest.$ac_ext <<_ACEOF
40233 /* end confdefs.h. */
40234 $ac_includes_default
40235 #include <sys/acl.h>
40237 rm -f conftest.$ac_objext
40238 if { (ac_try="$ac_compile"
40239 case "(($ac_try" in
40240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40241 *) ac_try_echo=$ac_try;;
40243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40244 (eval "$ac_compile") 2>conftest.er1
40246 grep -v '^ *+' conftest.er1 >conftest.err
40248 cat conftest.err >&5
40249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40250 (exit $ac_status); } && {
40251 test -z "$ac_c_werror_flag" ||
40252 test ! -s conftest.err
40253 } && test -s conftest.$ac_objext; then
40254 ac_header_compiler=yes
40256 echo "$as_me: failed program was:" >&5
40257 sed 's/^/| /' conftest.$ac_ext >&5
40259 ac_header_compiler=no
40262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40264 echo "${ECHO_T}$ac_header_compiler" >&6; }
40266 # Is the header present?
40267 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40268 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40269 cat >conftest.$ac_ext <<_ACEOF
40272 cat confdefs.h >>conftest.$ac_ext
40273 cat >>conftest.$ac_ext <<_ACEOF
40274 /* end confdefs.h. */
40275 #include <sys/acl.h>
40277 if { (ac_try="$ac_cpp conftest.$ac_ext"
40278 case "(($ac_try" in
40279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40280 *) ac_try_echo=$ac_try;;
40282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40285 grep -v '^ *+' conftest.er1 >conftest.err
40287 cat conftest.err >&5
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); } >/dev/null && {
40290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40291 test ! -s conftest.err
40293 ac_header_preproc=yes
40295 echo "$as_me: failed program was:" >&5
40296 sed 's/^/| /' conftest.$ac_ext >&5
40298 ac_header_preproc=no
40301 rm -f conftest.err conftest.$ac_ext
40302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40303 echo "${ECHO_T}$ac_header_preproc" >&6; }
40305 # So? What about this header?
40306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40308 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40309 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40310 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40311 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40312 ac_header_preproc=yes
40315 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40316 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40317 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40318 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40319 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40320 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40321 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40322 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40323 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40324 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40325 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40326 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40330 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40331 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40332 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40333 echo $ECHO_N "(cached) $ECHO_C" >&6
40335 ac_cv_header_sys_acl_h=$ac_header_preproc
40337 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40338 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40343 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40344 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40345 if test "${ac_cv_func_acl_get_file+set}" = set; then
40346 echo $ECHO_N "(cached) $ECHO_C" >&6
40348 cat >conftest.$ac_ext <<_ACEOF
40351 cat confdefs.h >>conftest.$ac_ext
40352 cat >>conftest.$ac_ext <<_ACEOF
40353 /* end confdefs.h. */
40354 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40356 #define acl_get_file innocuous_acl_get_file
40358 /* System header to define __stub macros and hopefully few prototypes,
40359 which can conflict with char acl_get_file (); below.
40360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40361 <limits.h> exists even on freestanding compilers. */
40364 # include <limits.h>
40366 # include <assert.h>
40369 #undef acl_get_file
40371 /* Override any GCC internal prototype to avoid an error.
40372 Use char because int might match the return type of a GCC
40373 builtin and then its argument prototype would still apply. */
40377 char acl_get_file ();
40378 /* The GNU C library defines this for functions which it implements
40379 to always fail with ENOSYS. Some functions are actually named
40380 something starting with __ and the normal name is an alias. */
40381 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40388 return acl_get_file ();
40393 rm -f conftest.$ac_objext conftest$ac_exeext
40394 if { (ac_try="$ac_link"
40395 case "(($ac_try" in
40396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40397 *) ac_try_echo=$ac_try;;
40399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40400 (eval "$ac_link") 2>conftest.er1
40402 grep -v '^ *+' conftest.er1 >conftest.err
40404 cat conftest.err >&5
40405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406 (exit $ac_status); } && {
40407 test -z "$ac_c_werror_flag" ||
40408 test ! -s conftest.err
40409 } && test -s conftest$ac_exeext &&
40410 $as_test_x conftest$ac_exeext; then
40411 ac_cv_func_acl_get_file=yes
40413 echo "$as_me: failed program was:" >&5
40414 sed 's/^/| /' conftest.$ac_ext >&5
40416 ac_cv_func_acl_get_file=no
40419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40420 conftest$ac_exeext conftest.$ac_ext
40422 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40423 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40424 if test $ac_cv_func_acl_get_file = yes; then
40428 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40429 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40430 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40431 echo $ECHO_N "(cached) $ECHO_C" >&6
40433 ac_check_lib_save_LIBS=$LIBS
40435 cat >conftest.$ac_ext <<_ACEOF
40438 cat confdefs.h >>conftest.$ac_ext
40439 cat >>conftest.$ac_ext <<_ACEOF
40440 /* end confdefs.h. */
40442 /* Override any GCC internal prototype to avoid an error.
40443 Use char because int might match the return type of a GCC
40444 builtin and then its argument prototype would still apply. */
40448 char acl_get_file ();
40452 return acl_get_file ();
40457 rm -f conftest.$ac_objext conftest$ac_exeext
40458 if { (ac_try="$ac_link"
40459 case "(($ac_try" in
40460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40461 *) ac_try_echo=$ac_try;;
40463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40464 (eval "$ac_link") 2>conftest.er1
40466 grep -v '^ *+' conftest.er1 >conftest.err
40468 cat conftest.err >&5
40469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40470 (exit $ac_status); } && {
40471 test -z "$ac_c_werror_flag" ||
40472 test ! -s conftest.err
40473 } && test -s conftest$ac_exeext &&
40474 $as_test_x conftest$ac_exeext; then
40475 ac_cv_lib_acl_acl_get_file=yes
40477 echo "$as_me: failed program was:" >&5
40478 sed 's/^/| /' conftest.$ac_ext >&5
40480 ac_cv_lib_acl_acl_get_file=no
40483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40484 conftest$ac_exeext conftest.$ac_ext
40485 LIBS=$ac_check_lib_save_LIBS
40487 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40488 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40489 if test $ac_cv_lib_acl_acl_get_file = yes; then
40492 FDLIBS="-lacl $FDLIBS"
40496 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40497 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40498 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40499 echo $ECHO_N "(cached) $ECHO_C" >&6
40501 ac_check_lib_save_LIBS=$LIBS
40503 cat >conftest.$ac_ext <<_ACEOF
40506 cat confdefs.h >>conftest.$ac_ext
40507 cat >>conftest.$ac_ext <<_ACEOF
40508 /* end confdefs.h. */
40510 /* Override any GCC internal prototype to avoid an error.
40511 Use char because int might match the return type of a GCC
40512 builtin and then its argument prototype would still apply. */
40520 return acltotext ();
40525 rm -f conftest.$ac_objext conftest$ac_exeext
40526 if { (ac_try="$ac_link"
40527 case "(($ac_try" in
40528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40529 *) ac_try_echo=$ac_try;;
40531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40532 (eval "$ac_link") 2>conftest.er1
40534 grep -v '^ *+' conftest.er1 >conftest.err
40536 cat conftest.err >&5
40537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40538 (exit $ac_status); } && {
40539 test -z "$ac_c_werror_flag" ||
40540 test ! -s conftest.err
40541 } && test -s conftest$ac_exeext &&
40542 $as_test_x conftest$ac_exeext; then
40543 ac_cv_lib_sec_acltotext=yes
40545 echo "$as_me: failed program was:" >&5
40546 sed 's/^/| /' conftest.$ac_ext >&5
40548 ac_cv_lib_sec_acltotext=no
40551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40552 conftest$ac_exeext conftest.$ac_ext
40553 LIBS=$ac_check_lib_save_LIBS
40555 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40556 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40557 if test $ac_cv_lib_sec_acltotext = yes; then
40560 FDLIBS="-lsec $FDLIBS"
40573 if test $have_acl = yes; then
40574 cat >>confdefs.h <<\_ACEOF
40581 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40582 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40583 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40584 echo $ECHO_N "(cached) $ECHO_C" >&6
40586 ac_check_lib_save_LIBS=$LIBS
40587 LIBS="-lpthread $LIBS"
40588 cat >conftest.$ac_ext <<_ACEOF
40591 cat confdefs.h >>conftest.$ac_ext
40592 cat >>conftest.$ac_ext <<_ACEOF
40593 /* end confdefs.h. */
40595 /* Override any GCC internal prototype to avoid an error.
40596 Use char because int might match the return type of a GCC
40597 builtin and then its argument prototype would still apply. */
40601 char pthread_create ();
40605 return pthread_create ();
40610 rm -f conftest.$ac_objext conftest$ac_exeext
40611 if { (ac_try="$ac_link"
40612 case "(($ac_try" in
40613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40614 *) ac_try_echo=$ac_try;;
40616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40617 (eval "$ac_link") 2>conftest.er1
40619 grep -v '^ *+' conftest.er1 >conftest.err
40621 cat conftest.err >&5
40622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623 (exit $ac_status); } && {
40624 test -z "$ac_c_werror_flag" ||
40625 test ! -s conftest.err
40626 } && test -s conftest$ac_exeext &&
40627 $as_test_x conftest$ac_exeext; then
40628 ac_cv_lib_pthread_pthread_create=yes
40630 echo "$as_me: failed program was:" >&5
40631 sed 's/^/| /' conftest.$ac_ext >&5
40633 ac_cv_lib_pthread_pthread_create=no
40636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40637 conftest$ac_exeext conftest.$ac_ext
40638 LIBS=$ac_check_lib_save_LIBS
40640 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40641 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40642 if test $ac_cv_lib_pthread_pthread_create = yes; then
40643 PTHREAD_LIB="-lpthread"
40646 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40647 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40648 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40649 echo $ECHO_N "(cached) $ECHO_C" >&6
40651 ac_check_lib_save_LIBS=$LIBS
40652 LIBS="-lpthreads $LIBS"
40653 cat >conftest.$ac_ext <<_ACEOF
40656 cat confdefs.h >>conftest.$ac_ext
40657 cat >>conftest.$ac_ext <<_ACEOF
40658 /* end confdefs.h. */
40660 /* Override any GCC internal prototype to avoid an error.
40661 Use char because int might match the return type of a GCC
40662 builtin and then its argument prototype would still apply. */
40666 char pthread_create ();
40670 return pthread_create ();
40675 rm -f conftest.$ac_objext conftest$ac_exeext
40676 if { (ac_try="$ac_link"
40677 case "(($ac_try" in
40678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40679 *) ac_try_echo=$ac_try;;
40681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40682 (eval "$ac_link") 2>conftest.er1
40684 grep -v '^ *+' conftest.er1 >conftest.err
40686 cat conftest.err >&5
40687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40688 (exit $ac_status); } && {
40689 test -z "$ac_c_werror_flag" ||
40690 test ! -s conftest.err
40691 } && test -s conftest$ac_exeext &&
40692 $as_test_x conftest$ac_exeext; then
40693 ac_cv_lib_pthreads_pthread_create=yes
40695 echo "$as_me: failed program was:" >&5
40696 sed 's/^/| /' conftest.$ac_ext >&5
40698 ac_cv_lib_pthreads_pthread_create=no
40701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40702 conftest$ac_exeext conftest.$ac_ext
40703 LIBS=$ac_check_lib_save_LIBS
40705 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40706 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40707 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40708 PTHREAD_LIB="-lpthreads"
40711 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40712 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40713 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40714 echo $ECHO_N "(cached) $ECHO_C" >&6
40716 ac_check_lib_save_LIBS=$LIBS
40718 cat >conftest.$ac_ext <<_ACEOF
40721 cat confdefs.h >>conftest.$ac_ext
40722 cat >>conftest.$ac_ext <<_ACEOF
40723 /* end confdefs.h. */
40725 /* Override any GCC internal prototype to avoid an error.
40726 Use char because int might match the return type of a GCC
40727 builtin and then its argument prototype would still apply. */
40731 char pthread_create ();
40735 return pthread_create ();
40740 rm -f conftest.$ac_objext conftest$ac_exeext
40741 if { (ac_try="$ac_link"
40742 case "(($ac_try" in
40743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40744 *) ac_try_echo=$ac_try;;
40746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40747 (eval "$ac_link") 2>conftest.er1
40749 grep -v '^ *+' conftest.er1 >conftest.err
40751 cat conftest.err >&5
40752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753 (exit $ac_status); } && {
40754 test -z "$ac_c_werror_flag" ||
40755 test ! -s conftest.err
40756 } && test -s conftest$ac_exeext &&
40757 $as_test_x conftest$ac_exeext; then
40758 ac_cv_lib_c_r_pthread_create=yes
40760 echo "$as_me: failed program was:" >&5
40761 sed 's/^/| /' conftest.$ac_ext >&5
40763 ac_cv_lib_c_r_pthread_create=no
40766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40767 conftest$ac_exeext conftest.$ac_ext
40768 LIBS=$ac_check_lib_save_LIBS
40770 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40771 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40772 if test $ac_cv_lib_c_r_pthread_create = yes; then
40773 PTHREAD_LIB="-lc_r"
40776 { echo "$as_me:$LINENO: checking for pthread_create" >&5
40777 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40778 if test "${ac_cv_func_pthread_create+set}" = set; then
40779 echo $ECHO_N "(cached) $ECHO_C" >&6
40781 cat >conftest.$ac_ext <<_ACEOF
40784 cat confdefs.h >>conftest.$ac_ext
40785 cat >>conftest.$ac_ext <<_ACEOF
40786 /* end confdefs.h. */
40787 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40789 #define pthread_create innocuous_pthread_create
40791 /* System header to define __stub macros and hopefully few prototypes,
40792 which can conflict with char pthread_create (); below.
40793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40794 <limits.h> exists even on freestanding compilers. */
40797 # include <limits.h>
40799 # include <assert.h>
40802 #undef pthread_create
40804 /* Override any GCC internal prototype to avoid an error.
40805 Use char because int might match the return type of a GCC
40806 builtin and then its argument prototype would still apply. */
40810 char pthread_create ();
40811 /* The GNU C library defines this for functions which it implements
40812 to always fail with ENOSYS. Some functions are actually named
40813 something starting with __ and the normal name is an alias. */
40814 #if defined __stub_pthread_create || defined __stub___pthread_create
40821 return pthread_create ();
40826 rm -f conftest.$ac_objext conftest$ac_exeext
40827 if { (ac_try="$ac_link"
40828 case "(($ac_try" in
40829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40830 *) ac_try_echo=$ac_try;;
40832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40833 (eval "$ac_link") 2>conftest.er1
40835 grep -v '^ *+' conftest.er1 >conftest.err
40837 cat conftest.err >&5
40838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40839 (exit $ac_status); } && {
40840 test -z "$ac_c_werror_flag" ||
40841 test ! -s conftest.err
40842 } && test -s conftest$ac_exeext &&
40843 $as_test_x conftest$ac_exeext; then
40844 ac_cv_func_pthread_create=yes
40846 echo "$as_me: failed program was:" >&5
40847 sed 's/^/| /' conftest.$ac_ext >&5
40849 ac_cv_func_pthread_create=no
40852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40853 conftest$ac_exeext conftest.$ac_ext
40855 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40856 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40872 cat >>confdefs.h <<\_ACEOF
40877 CFLAGS=${CFLAGS--O}
40879 if test x$have_gcc = xyes ; then
40880 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40881 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40883 LDFLAGS=${LDFLAGS--O}
40884 DB_LIBS="${SQL_LFLAGS}"
40885 CPPFLAGS="$CPPFLAGS"
40912 PFILES="platforms/Makefile"
40916 hostname=`uname -n | cut -d '.' -f 1`
40917 if test x${hostname} = x ; then
40918 hostname="localhost"
40920 case "$DISTNAME" in
40923 PSCMD="ps -e -o pid,comm"
40924 PFILES="${PFILES} \
40925 platforms/aix/Makefile"
40926 TAPEDRIVE="/dev/rmt0.1"
40930 PTHREAD_LIB="-lpthread -lexc"
40931 if test "${CC}" = "gcc" ; then
40938 TAPEDRIVE="/dev/nrmt0"
40941 DISTVER=`uname -a |awk '{print $3}'`
40942 TAPEDRIVE="/dev/nrmt0"
40943 PTHREAD_LIB="-pthread"
40944 CFLAGS="${CFLAGS} -pthread"
40945 PSCMD="ps -ax -o pid,command"
40948 PFILES="${PFILES} \
40949 platforms/bsdi/Makefile \
40950 platforms/bsdi/bacula-fd \
40951 platforms/bsdi/bacula-sd \
40952 platforms/bsdi/bacula-dir"
40953 largefile_support="yes"
40956 DISTVER=`uname -a |awk '{print $3}'`
40957 TAPEDRIVE="/dev/nrst0"
40959 WCFLAGS="-mwindows"
40960 WLDFLAGS="-mwindows"
40964 TAPEDRIVE="/dev/nst0"
40965 PSCMD="ps -e -o pid,command"
40967 PFILES="${PFILES} \
40968 platforms/darwin/Makefile"
40971 ping -c 1 $hostname 2>&1 1>/dev/null
40972 if test ! $? = 0; then
40973 hostname="localhost"
40975 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40978 DISTVER=`cat /etc/debian_version`
40979 if test -f /etc/lsb-release ; then
40981 if test "x$DISTRIB_ID" != "x" ; then
40982 DISTNAME=$DISTRIB_ID
40984 if test "x$DISTRIB_RELEASE" != "x" ; then
40985 DISTVER=$DISTRIB_RELEASE
40988 if test "$DISTNAME" = "Ubuntu" ; then
40991 TAPEDRIVE="/dev/nst0"
40992 PSCMD="ps -e -o pid,command"
40993 if test "$DISTNAME" = "ubuntu" ; then
40994 PFILES="${PFILES} \
40995 platforms/ubuntu/Makefile \
40996 platforms/ubuntu/bacula-fd \
40997 platforms/ubuntu/bacula-sd \
40998 platforms/ubuntu/bacula-dir"
41000 PFILES="${PFILES} \
41001 platforms/debian/Makefile \
41002 platforms/debian/bacula-fd \
41003 platforms/debian/bacula-sd \
41004 platforms/debian/bacula-dir"
41008 ping -c 1 $hostname 2>&1 1>/dev/null
41009 if test ! $? = 0; then
41010 hostname="localhost"
41012 DISTVER=`uname -a |awk '{print $3}'`
41013 VER=`echo $DISTVER | cut -c 1`
41014 if test x$VER = x4 ; then
41015 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41016 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41020 TAPEDRIVE="/dev/nrsa0"
41021 PSCMD="ps -ax -o pid,command"
41022 PFILES="${PFILES} \
41023 platforms/freebsd/Makefile \
41024 platforms/freebsd/bacula-fd \
41025 platforms/freebsd/bacula-sd \
41026 platforms/freebsd/bacula-dir"
41027 largefile_support="yes"
41030 PSCMD="UNIX95=1; ps -e -o pid,comm"
41031 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41033 TAPEDRIVE="/dev/rmt/0hnb"
41034 PTHREAD_LIB="-lpthread"
41035 cat >>confdefs.h <<\_ACEOF
41036 #define _INCLUDE_LONGLONG 1
41042 TAPEDRIVE="/dev/rmt/0cbn"
41043 PSCMD="ps -e -o pid,comm"
41044 PFILES="${PFILES} \
41045 platforms/irix/Makefile \
41046 platforms/irix/bacula-fd \
41047 platforms/irix/bacula-sd \
41048 platforms/irix/bacula-dir"
41051 DISTVER=`uname -a |awk '{print $3}'`
41054 TAPEDRIVE="/dev/nrst0"
41055 PSCMD="ps -ax -o pid,command"
41056 PTHREAD_LIB="-pthread"
41057 CFLAGS="${CFLAGS} -pthread"
41060 DISTVER=`uname -a |awk '{print $3}'`
41063 TAPEDRIVE="/dev/nrst0"
41064 PSCMD="ps -ax -o pid,command"
41065 PTHREAD_LIB="-pthread"
41066 CFLAGS="${CFLAGS} -pthread"
41067 PFILES="${PFILES} \
41068 platforms/openbsd/Makefile \
41069 platforms/openbsd/bacula-fd \
41070 platforms/openbsd/bacula-sd \
41071 platforms/openbsd/bacula-dir"
41074 ping -c 1 $hostname 2>&1 1>/dev/null
41075 if test ! $? = 0; then
41076 hostname="localhost"
41078 if test -f /etc/whitebox-release ; then
41079 f=/etc/whitebox-release
41081 f=/etc/redhat-release
41083 if test `cat $f | grep release |\
41084 cut -f 3 -d ' '`x = "Enterprise"x ; then
41085 DISTVER="Enterprise "`cat $f | grep release |\
41088 DISTVER=`cat /etc/redhat-release | grep release |\
41091 TAPEDRIVE="/dev/nst0"
41092 PSCMD="ps -e -o pid,command"
41093 PFILES="${PFILES} \
41094 platforms/redhat/Makefile \
41095 platforms/redhat/bacula-fd \
41096 platforms/redhat/bacula-sd \
41097 platforms/redhat/bacula-dir \
41098 platforms/redhat/bacula.spec \
41102 ping -c 1 $hostname 2>&1 1>/dev/null
41103 if test ! $? = 0; then
41104 hostname="localhost"
41106 DISTVER=`cat /etc/mandrake-release | grep release |\
41108 TAPEDRIVE="/dev/nst0"
41109 PSCMD="ps -e -o pid,command"
41110 PFILES="${PFILES} \
41111 platforms/mandrake/Makefile \
41112 platforms/mandrake/bacula-fd \
41113 platforms/mandrake/bacula-sd \
41114 platforms/mandrake/bacula-dir \
41115 platforms/mandrake/bacula.spec \
41119 ping -c 1 $hostname 2>&1 1>/dev/null
41120 if test ! $? = 0; then
41121 hostname="localhost"
41123 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41124 TAPEDRIVE="/dev/nst0"
41125 PSCMD="ps -e -o pid,command"
41126 PFILES="${PFILES} \
41127 platforms/gentoo/Makefile \
41128 platforms/gentoo/bacula-init \
41129 platforms/gentoo/bacula-fd \
41130 platforms/gentoo/bacula-sd \
41131 platforms/gentoo/bacula-dir"
41134 ping -c 1 $hostname 2>&1 1>/dev/null
41135 if test ! $? = 0; then
41136 hostname="localhost"
41138 DISTVER=`cat /etc/slackware-version`
41139 TAPEDRIVE="/dev/nst0"
41140 PSCMD="ps -e -o pid,command"
41141 PFILES="${PFILES} \
41142 platforms/slackware/Makefile \
41143 platforms/slackware/rc.bacula-fd \
41144 platforms/slackware/rc.bacula-sd \
41145 platforms/slackware/rc.bacula-dir\
41146 platforms/slackware/functions.bacula"
41150 TAPEDRIVE="/dev/rmt/0cbn"
41151 PSCMD="ps -e -o pid,comm"
41152 PFILES="${PFILES} \
41153 platforms/solaris/Makefile \
41154 platforms/solaris/bacula-fd \
41155 platforms/solaris/bacula-sd \
41156 platforms/solaris/bacula-dir"
41157 if test x$DISTVER = x5.6 ; then
41158 cat >>confdefs.h <<\_ACEOF
41159 #define HAVE_OLD_SOCKOPT 1
41163 LIBS="$LIBS -lresolv"
41166 ping -c 1 $hostname 2>&1 1>/dev/null
41167 if test ! $? = 0; then
41168 hostname="localhost"
41170 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41172 TAPEDRIVE="/dev/nst0"
41173 PSCMD="ps -e -o pid,command"
41174 PFILES="${PFILES} \
41175 platforms/suse/Makefile \
41176 platforms/suse/bacula-fd \
41177 platforms/suse/bacula-sd \
41178 platforms/suse/bacula-dir \
41179 platforms/suse/bacula \
41180 platforms/suse/bacula.spec"
41183 ping -c 1 $hostname 2>&1 1>/dev/null
41184 if test ! $? = 0; then
41185 hostname="localhost"
41189 TAPEDRIVE="/dev/nst0"
41190 PSCMD="ps -e -o pid,command"
41191 PFILES="${PFILES} \
41192 platforms/suse/Makefile \
41193 platforms/suse/bacula-fd \
41194 platforms/suse/bacula-sd \
41195 platforms/suse/bacula-dir"
41199 TAPEDRIVE="/dev/nst0"
41202 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41208 LIBS="$PTHREAD_LIB $LIBS"
41210 cat >>confdefs.h <<_ACEOF
41214 cat >>confdefs.h <<_ACEOF
41225 MCOMMON=./autoconf/Make.common
41228 if test "x${subsysdir}" = "x${sbindir}" ; then
41231 echo "You have set both --sbindir and --with-subsys-dir"
41232 echo " equal to: ${subsysdir} "
41233 echo "This is not permitted. Please reconfigure."
41235 echo "Aborting configuration ..."
41241 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 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"
41243 ac_config_commands="$ac_config_commands default"
41245 cat >confcache <<\_ACEOF
41246 # This file is a shell script that caches the results of configure
41247 # tests run on this system so they can be shared between configure
41248 # scripts and configure runs, see configure's option --config-cache.
41249 # It is not useful on other systems. If it contains results you don't
41250 # want to keep, you may remove or edit it.
41252 # config.status only pays attention to the cache file if you give it
41253 # the --recheck option to rerun configure.
41255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41257 # following values.
41261 # The following way of writing the cache mishandles newlines in values,
41262 # but we know of no workaround that is simple, portable, and efficient.
41263 # So, we kill variables containing newlines.
41264 # Ultrix sh set writes to stderr and can't be redirected directly,
41265 # and sets the high bit in the cache file unless we assign to the vars.
41267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41268 eval ac_val=\$$ac_var
41272 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41273 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41276 _ | IFS | as_nl) ;; #(
41277 *) $as_unset $ac_var ;;
41283 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41284 *${as_nl}ac_space=\ *)
41285 # `set' does not quote correctly, so add quotes (double-quote
41286 # substitution turns \\\\ into \\, and sed turns \\ into \).
41289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41292 # `set' quotes correctly as required by POSIX, so do not add quotes.
41293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41307 if test -w "$cache_file"; then
41308 test "x$cache_file" != "x/dev/null" &&
41309 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41310 echo "$as_me: updating cache $cache_file" >&6;}
41311 cat confcache >$cache_file
41313 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41314 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41320 # Let make expand exec_prefix.
41321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41323 DEFS=-DHAVE_CONFIG_H
41327 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41328 # 1. Remove the extension, and $U if already installed.
41329 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41330 ac_i=`echo "$ac_i" | sed "$ac_script"`
41331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41332 # will be set to the directory where LIBOBJS objects are built.
41333 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41334 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41336 LIBOBJS=$ac_libobjs
41338 LTLIBOBJS=$ac_ltlibobjs
41342 : ${CONFIG_STATUS=./config.status}
41343 ac_clean_files_save=$ac_clean_files
41344 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41345 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41346 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41347 cat >$CONFIG_STATUS <<_ACEOF
41349 # Generated by $as_me.
41350 # Run this file to recreate the current configuration.
41351 # Compiler output produced by configure, useful for debugging
41352 # configure, is in config.log if it exists.
41355 ac_cs_recheck=false
41357 SHELL=\${CONFIG_SHELL-$SHELL}
41360 cat >>$CONFIG_STATUS <<\_ACEOF
41361 ## --------------------- ##
41362 ## M4sh Initialization. ##
41363 ## --------------------- ##
41365 # Be more Bourne compatible
41366 DUALCASE=1; export DUALCASE # for MKS sh
41367 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41370 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41371 # is contrary to our usage. Disable this feature.
41372 alias -g '${1+"$@"}'='"$@"'
41373 setopt NO_GLOB_SUBST
41375 case `(set -o) 2>/dev/null` in
41376 *posix*) set -o posix ;;
41385 # Avoid depending upon Character Ranges.
41386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41389 as_cr_digits='0123456789'
41390 as_cr_alnum=$as_cr_Letters$as_cr_digits
41392 # The user is always right.
41393 if test "${PATH_SEPARATOR+set}" != set; then
41394 echo "#! /bin/sh" >conf$$.sh
41395 echo "exit 0" >>conf$$.sh
41397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41405 # Support unset when possible.
41406 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41414 # We need space, tab and new line, in precisely that order. Quoting is
41415 # there to prevent editors from complaining about space-tab.
41416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41417 # splitting by setting IFS to empty value.)
41422 # Find who we are. Look in the path if we contain no directory separator.
41424 *[\\/]* ) as_myself=$0 ;;
41425 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41426 for as_dir in $PATH
41429 test -z "$as_dir" && as_dir=.
41430 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41436 # We did not find ourselves, most probably we were run as `sh COMMAND'
41437 # in which case we are not to be found in the path.
41438 if test "x$as_myself" = x; then
41441 if test ! -f "$as_myself"; then
41442 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41443 { (exit 1); exit 1; }
41446 # Work around bugs in pre-3.0 UWIN ksh.
41447 for as_var in ENV MAIL MAILPATH
41448 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41456 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41457 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41458 LC_TELEPHONE LC_TIME
41460 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41461 eval $as_var=C; export $as_var
41463 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41467 # Required to use basename.
41468 if expr a : '\(a\)' >/dev/null 2>&1 &&
41469 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41475 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41476 as_basename=basename
41482 # Name of the executable.
41483 as_me=`$as_basename -- "$0" ||
41484 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41485 X"$0" : 'X\(//\)$' \| \
41486 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41488 sed '/^.*\/\([^/][^/]*\)\/*$/{
41507 as_lineno_1=$LINENO
41508 as_lineno_2=$LINENO
41509 test "x$as_lineno_1" != "x$as_lineno_2" &&
41510 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41512 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41513 # uniformly replaced by the line number. The first 'sed' inserts a
41514 # line-number line after each line using $LINENO; the second 'sed'
41515 # does the real work. The second script uses 'N' to pair each
41516 # line-number line with the line containing $LINENO, and appends
41517 # trailing '-' during substitution so that $LINENO is not a special
41518 # case at line end.
41519 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41520 # scripts with optimization help from Paolo Bonzini. Blame Lee
41521 # E. McMahon (1931-1989) for sed's syntax. :-)
41533 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41536 ' >$as_me.lineno &&
41537 chmod +x "$as_me.lineno" ||
41538 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41539 { (exit 1); exit 1; }; }
41541 # Don't try to exec as it changes $[0], causing all sort of problems
41542 # (the dirname of $[0] is not the place where we might find the
41543 # original and so on. Autoconf is especially sensitive to this).
41544 . "./$as_me.lineno"
41545 # Exit status is that of the last command.
41550 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41556 ECHO_C= ECHO_N= ECHO_T=
41557 case `echo -n x` in
41559 case `echo 'x\c'` in
41560 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41567 if expr a : '\(a\)' >/dev/null 2>&1 &&
41568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41574 rm -f conf$$ conf$$.exe conf$$.file
41575 if test -d conf$$.dir; then
41576 rm -f conf$$.dir/conf$$.file
41582 if ln -s conf$$.file conf$$ 2>/dev/null; then
41584 # ... but there are two gotchas:
41585 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41586 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41587 # In both cases, we have to default to `cp -p'.
41588 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41590 elif ln conf$$.file conf$$ 2>/dev/null; then
41595 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41596 rmdir conf$$.dir 2>/dev/null
41598 if mkdir -p . 2>/dev/null; then
41601 test -d ./-p && rmdir ./-p
41605 if test -x / >/dev/null 2>&1; then
41606 as_test_x='test -x'
41608 if ls -dL / >/dev/null 2>&1; then
41615 if test -d "$1"; then
41621 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41622 ???[sx]*):;;*)false;;esac;fi
41626 as_executable_p=$as_test_x
41628 # Sed expression to map a string onto a valid CPP name.
41629 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41631 # Sed expression to map a string onto a valid variable name.
41632 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41637 # Save the log message, to keep $[0] and so on meaningful, and to
41638 # report actual input values of CONFIG_FILES etc. instead of their
41639 # values after options handling.
41641 This file was extended by $as_me, which was
41642 generated by GNU Autoconf 2.61. Invocation command line was
41644 CONFIG_FILES = $CONFIG_FILES
41645 CONFIG_HEADERS = $CONFIG_HEADERS
41646 CONFIG_LINKS = $CONFIG_LINKS
41647 CONFIG_COMMANDS = $CONFIG_COMMANDS
41650 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41655 cat >>$CONFIG_STATUS <<_ACEOF
41656 # Files that config.status was made for.
41657 config_files="$ac_config_files"
41658 config_headers="$ac_config_headers"
41659 config_commands="$ac_config_commands"
41663 cat >>$CONFIG_STATUS <<\_ACEOF
41665 \`$as_me' instantiates files from templates according to the
41666 current configuration.
41668 Usage: $0 [OPTIONS] [FILE]...
41670 -h, --help print this help, then exit
41671 -V, --version print version number and configuration settings, then exit
41672 -q, --quiet do not print progress messages
41673 -d, --debug don't remove temporary files
41674 --recheck update $as_me by reconfiguring in the same conditions
41675 --file=FILE[:TEMPLATE]
41676 instantiate the configuration file FILE
41677 --header=FILE[:TEMPLATE]
41678 instantiate the configuration header FILE
41680 Configuration files:
41683 Configuration headers:
41686 Configuration commands:
41689 Report bugs to <bug-autoconf@gnu.org>."
41692 cat >>$CONFIG_STATUS <<_ACEOF
41695 configured by $0, generated by GNU Autoconf 2.61,
41696 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41698 Copyright (C) 2006 Free Software Foundation, Inc.
41699 This config.status script is free software; the Free Software Foundation
41700 gives unlimited permission to copy, distribute and modify it."
41707 cat >>$CONFIG_STATUS <<\_ACEOF
41708 # If no file are specified by the user, then we need to provide default
41709 # value. By we need to know if files were specified by the user.
41715 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41716 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41727 # Handling of the options.
41728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41730 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41731 echo "$ac_cs_version"; exit ;;
41732 --debug | --debu | --deb | --de | --d | -d )
41734 --file | --fil | --fi | --f )
41736 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41737 ac_need_defaults=false;;
41738 --header | --heade | --head | --hea )
41740 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41741 ac_need_defaults=false;;
41743 # Conflict between --help and --header
41744 { echo "$as_me: error: ambiguous option: $1
41745 Try \`$0 --help' for more information." >&2
41746 { (exit 1); exit 1; }; };;
41747 --help | --hel | -h )
41748 echo "$ac_cs_usage"; exit ;;
41749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41750 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41753 # This is an error.
41754 -*) { echo "$as_me: error: unrecognized option: $1
41755 Try \`$0 --help' for more information." >&2
41756 { (exit 1); exit 1; }; } ;;
41758 *) ac_config_targets="$ac_config_targets $1"
41759 ac_need_defaults=false ;;
41765 ac_configure_extra_args=
41767 if $ac_cs_silent; then
41769 ac_configure_extra_args="$ac_configure_extra_args --silent"
41773 cat >>$CONFIG_STATUS <<_ACEOF
41774 if \$ac_cs_recheck; then
41775 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41776 CONFIG_SHELL=$SHELL
41777 export CONFIG_SHELL
41778 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41782 cat >>$CONFIG_STATUS <<\_ACEOF
41786 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41787 ## Running $as_me. ##
41793 cat >>$CONFIG_STATUS <<_ACEOF
41799 # The HP-UX ksh and POSIX shell print the target directory to stdout
41800 # if CDPATH is set.
41801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41803 sed_quote_subst='$sed_quote_subst'
41804 double_quote_subst='$double_quote_subst'
41805 delay_variable_subst='$delay_variable_subst'
41806 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41807 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41808 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41809 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41810 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41811 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41812 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41813 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41814 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41815 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41816 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41817 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41818 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41819 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41820 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41821 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41822 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41823 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41824 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41825 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41826 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41827 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41828 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41829 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41831 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41832 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41833 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41834 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41835 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41836 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41837 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41838 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41839 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41840 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41841 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41842 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41844 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41845 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41846 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41847 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41848 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41849 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41850 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"`'
41851 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"`'
41852 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41853 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41854 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41855 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41856 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41857 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41858 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41859 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41860 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41861 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41862 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41863 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41864 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41865 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41866 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41867 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41868 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41869 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41870 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41871 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41872 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41873 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41874 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41875 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41876 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41879 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41880 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41881 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41882 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41883 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41884 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41885 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41888 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41890 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41891 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41892 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41893 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41894 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41895 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41896 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41897 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41898 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41899 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41900 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41901 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41902 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41903 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41904 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41905 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41906 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41907 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41908 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41909 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41910 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41911 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41912 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41913 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41914 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41915 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41916 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41917 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41918 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41919 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41920 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41921 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41922 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41923 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41924 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41925 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41926 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41927 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41928 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41929 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41930 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41973 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41974 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41975 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41976 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41979 LTCFLAGS='$LTCFLAGS'
41980 compiler='$compiler_DEFAULT'
41982 # Quote evaled strings.
41994 deplibs_check_method \
42003 lt_cv_sys_global_symbol_pipe \
42004 lt_cv_sys_global_symbol_to_cdecl \
42005 lt_cv_sys_global_symbol_to_c_name_address \
42006 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42009 lt_prog_compiler_no_builtin_flag \
42010 lt_prog_compiler_wl \
42011 lt_prog_compiler_pic \
42012 lt_prog_compiler_static \
42013 lt_cv_prog_compiler_c_o \
42021 export_dynamic_flag_spec \
42022 whole_archive_flag_spec \
42023 compiler_needs_object \
42025 allow_undefined_flag \
42026 no_undefined_flag \
42027 hardcode_libdir_flag_spec \
42028 hardcode_libdir_flag_spec_ld \
42029 hardcode_libdir_separator \
42034 variables_saved_for_relink \
42036 library_names_spec \
42041 compiler_lib_search_dirs \
42046 compiler_lib_search_path \
42049 lt_prog_compiler_no_builtin_flag_CXX \
42050 lt_prog_compiler_wl_CXX \
42051 lt_prog_compiler_pic_CXX \
42052 lt_prog_compiler_static_CXX \
42053 lt_cv_prog_compiler_c_o_CXX \
42054 export_dynamic_flag_spec_CXX \
42055 whole_archive_flag_spec_CXX \
42056 compiler_needs_object_CXX \
42058 allow_undefined_flag_CXX \
42059 no_undefined_flag_CXX \
42060 hardcode_libdir_flag_spec_CXX \
42061 hardcode_libdir_flag_spec_ld_CXX \
42062 hardcode_libdir_separator_CXX \
42063 fix_srcfile_path_CXX \
42064 exclude_expsyms_CXX \
42065 include_expsyms_CXX \
42066 file_list_spec_CXX \
42067 compiler_lib_search_dirs_CXX \
42068 predep_objects_CXX \
42069 postdep_objects_CXX \
42072 compiler_lib_search_path_CXX; do
42073 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42074 *[\\\\\\\`\\"\\\$]*)
42075 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42078 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42083 # Double-quote double-evaled strings.
42084 for var in reload_cmds \
42085 old_postinstall_cmds \
42086 old_postuninstall_cmds \
42088 extract_expsyms_cmds \
42089 old_archive_from_new_cmds \
42090 old_archive_from_expsyms_cmds \
42092 archive_expsym_cmds \
42094 module_expsym_cmds \
42095 export_symbols_cmds \
42098 postuninstall_cmds \
42100 sys_lib_search_path_spec \
42101 sys_lib_dlsearch_path_spec \
42102 old_archive_cmds_CXX \
42103 old_archive_from_new_cmds_CXX \
42104 old_archive_from_expsyms_cmds_CXX \
42106 archive_expsym_cmds_CXX \
42108 module_expsym_cmds_CXX \
42109 export_symbols_cmds_CXX \
42110 prelink_cmds_CXX; do
42111 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42112 *[\\\\\\\`\\"\\\$]*)
42113 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42116 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42121 # Fix-up fallback echo if it was mangled by the above quoting rules.
42123 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42127 ac_aux_dir='$ac_aux_dir'
42128 xsi_shell='$xsi_shell'
42129 lt_shell_append='$lt_shell_append'
42131 # See if we are running on zsh, and set the options which allow our
42132 # commands through without removal of \ escapes INIT.
42133 if test -n "\${ZSH_VERSION+set}" ; then
42134 setopt NO_GLOB_SUBST
42140 TIMESTAMP='$TIMESTAMP'
42148 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42149 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42151 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42152 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42153 LINGUAS="${LINGUAS-%UNSET%}"
42158 cat >>$CONFIG_STATUS <<\_ACEOF
42160 # Handling of arguments.
42161 for ac_config_target in $ac_config_targets
42163 case $ac_config_target in
42164 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42165 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42166 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42167 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42168 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42169 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42170 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42171 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42172 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42173 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42174 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42175 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42176 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42177 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42178 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42179 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42180 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42181 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42182 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42183 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42184 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42185 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42186 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42187 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42188 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42189 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42190 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42191 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42192 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42193 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42194 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42195 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42196 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42197 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42198 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42199 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42200 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42201 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42202 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42203 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42204 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42205 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42206 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42207 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42208 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42209 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42210 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42211 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42212 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42213 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42214 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42215 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42216 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42217 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42218 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42219 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42220 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42221 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42222 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42223 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42224 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42225 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42226 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42227 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42228 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42229 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42230 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42231 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42232 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42233 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42234 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42235 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42236 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42237 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42238 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42239 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42240 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42241 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42242 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42243 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42244 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42245 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42246 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42247 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42248 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42249 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42250 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42251 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42252 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42253 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42254 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42255 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42256 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42257 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42258 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42259 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42260 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42261 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42262 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42263 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42264 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42265 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42266 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42267 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42268 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42269 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42270 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42271 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42272 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42273 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42274 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42275 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42276 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42278 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42279 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42280 { (exit 1); exit 1; }; };;
42285 # If the user did not use the arguments to specify the items to instantiate,
42286 # then the envvar interface is used. Set only those that are not.
42287 # We use the long form for the default assignment because of an extremely
42288 # bizarre bug on SunOS 4.1.3.
42289 if $ac_need_defaults; then
42290 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42291 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42292 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42295 # Have a temporary directory for convenience. Make it in the build tree
42296 # simply because there is no reason against having it here, and in addition,
42297 # creating and moving files from /tmp can sometimes cause problems.
42298 # Hook for its removal unless debugging.
42299 # Note that there is a small window in which the directory will not be cleaned:
42300 # after its creation but before its name has been assigned to `$tmp'.
42304 trap 'exit_status=$?
42305 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42307 trap '{ (exit 1); exit 1; }' 1 2 13 15
42309 # Create a (secure) tmp directory for tmp files.
42312 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42313 test -n "$tmp" && test -d "$tmp"
42316 tmp=./conf$$-$RANDOM
42317 (umask 077 && mkdir "$tmp")
42320 echo "$me: cannot create a temporary directory in ." >&2
42321 { (exit 1); exit 1; }
42325 # Set up the sed scripts for CONFIG_FILES section.
42328 # No need to generate the scripts if there are no CONFIG_FILES.
42329 # This happens for instance when ./config.status config.h
42330 if test -n "$CONFIG_FILES"; then
42334 # Create sed commands to just substitute file output variables.
42336 # Remaining file output variables are in a fragment that also has non-file
42342 for ac_last_try in false false false false false :; do
42343 cat >conf$$subs.sed <<_ACEOF
42344 SHELL!$SHELL$ac_delim
42345 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42346 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42347 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42348 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42349 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42350 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42351 exec_prefix!$exec_prefix$ac_delim
42352 prefix!$prefix$ac_delim
42353 program_transform_name!$program_transform_name$ac_delim
42354 bindir!$bindir$ac_delim
42355 sbindir!$sbindir$ac_delim
42356 libexecdir!$libexecdir$ac_delim
42357 datarootdir!$datarootdir$ac_delim
42358 datadir!$datadir$ac_delim
42359 sysconfdir!$sysconfdir$ac_delim
42360 sharedstatedir!$sharedstatedir$ac_delim
42361 localstatedir!$localstatedir$ac_delim
42362 includedir!$includedir$ac_delim
42363 oldincludedir!$oldincludedir$ac_delim
42364 docdir!$docdir$ac_delim
42365 infodir!$infodir$ac_delim
42366 htmldir!$htmldir$ac_delim
42367 dvidir!$dvidir$ac_delim
42368 pdfdir!$pdfdir$ac_delim
42369 psdir!$psdir$ac_delim
42370 libdir!$libdir$ac_delim
42371 localedir!$localedir$ac_delim
42372 mandir!$mandir$ac_delim
42373 DEFS!$DEFS$ac_delim
42374 ECHO_C!$ECHO_C$ac_delim
42375 ECHO_N!$ECHO_N$ac_delim
42376 ECHO_T!$ECHO_T$ac_delim
42377 LIBS!$LIBS$ac_delim
42378 build_alias!$build_alias$ac_delim
42379 host_alias!$host_alias$ac_delim
42380 target_alias!$target_alias$ac_delim
42381 BUILD_DIR!$BUILD_DIR$ac_delim
42382 TOP_DIR!$TOP_DIR$ac_delim
42383 TRUEPRG!$TRUEPRG$ac_delim
42384 FALSEPRG!$FALSEPRG$ac_delim
42385 VERSION!$VERSION$ac_delim
42386 DATE!$DATE$ac_delim
42387 LSMDATE!$LSMDATE$ac_delim
42388 BACULA!$BACULA$ac_delim
42389 post_host!$post_host$ac_delim
42391 CFLAGS!$CFLAGS$ac_delim
42392 LDFLAGS!$LDFLAGS$ac_delim
42393 CPPFLAGS!$CPPFLAGS$ac_delim
42394 ac_ct_CC!$ac_ct_CC$ac_delim
42395 EXEEXT!$EXEEXT$ac_delim
42396 OBJEXT!$OBJEXT$ac_delim
42398 CXXFLAGS!$CXXFLAGS$ac_delim
42399 ac_ct_CXX!$ac_ct_CXX$ac_delim
42401 GREP!$GREP$ac_delim
42402 EGREP!$EGREP$ac_delim
42403 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42404 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42405 INSTALL_DATA!$INSTALL_DATA$ac_delim
42407 REMOVE!$REMOVE$ac_delim
42410 ECHO!$ECHO$ac_delim
42414 OPENSSL!$OPENSSL$ac_delim
42417 MKISOFS!$MKISOFS$ac_delim
42418 PYTHON!$PYTHON$ac_delim
42419 GROWISOFS!$GROWISOFS$ac_delim
42420 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42421 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42422 PKGCONFIG!$PKGCONFIG$ac_delim
42423 QMAKE!$QMAKE$ac_delim
42424 QMAKEQT4!$QMAKEQT4$ac_delim
42425 WXCONFIG!$WXCONFIG$ac_delim
42426 WXFLAGS!$WXFLAGS$ac_delim
42427 CDRECORD!$CDRECORD$ac_delim
42428 PIDOF!$PIDOF$ac_delim
42430 ARFLAGS!$ARFLAGS$ac_delim
42431 MAKE_SHELL!$MAKE_SHELL$ac_delim
42432 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42433 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42434 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42435 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42436 LIBTOOL!$LIBTOOL$ac_delim
42437 build!$build$ac_delim
42440 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42442 elif $ac_last_try; then
42443 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42444 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42445 { (exit 1); exit 1; }; }
42447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42451 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42452 if test -n "$ac_eof"; then
42453 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42454 ac_eof=`expr $ac_eof + 1`
42457 cat >>$CONFIG_STATUS <<_ACEOF
42458 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42460 /^[ ]*@MCOMMON@[ ]*$/{
42466 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42467 s/^/s,@/; s/!/@,|#_!!_#|/
42470 s/'"$ac_delim"'$/,g/; t
42472 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42473 ' >>$CONFIG_STATUS <conf$$subs.sed
42474 rm -f conf$$subs.sed
42475 cat >>$CONFIG_STATUS <<_ACEOF
42481 for ac_last_try in false false false false false :; do
42482 cat >conf$$subs.sed <<_ACEOF
42483 build_cpu!$build_cpu$ac_delim
42484 build_vendor!$build_vendor$ac_delim
42485 build_os!$build_os$ac_delim
42486 host!$host$ac_delim
42487 host_cpu!$host_cpu$ac_delim
42488 host_vendor!$host_vendor$ac_delim
42489 host_os!$host_os$ac_delim
42490 FGREP!$FGREP$ac_delim
42492 DUMPBIN!$DUMPBIN$ac_delim
42493 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42495 LN_S!$LN_S$ac_delim
42496 OBJDUMP!$OBJDUMP$ac_delim
42497 STRIP!$STRIP$ac_delim
42498 RANLIB!$RANLIB$ac_delim
42499 lt_ECHO!$lt_ECHO$ac_delim
42500 DSYMUTIL!$DSYMUTIL$ac_delim
42501 NMEDIT!$NMEDIT$ac_delim
42502 LIPO!$LIPO$ac_delim
42503 OTOOL!$OTOOL$ac_delim
42504 OTOOL64!$OTOOL64$ac_delim
42505 CXXCPP!$CXXCPP$ac_delim
42506 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42507 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42508 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42509 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42510 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42511 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42512 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42513 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42514 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42515 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42516 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42517 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42518 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42519 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42520 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42521 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42522 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42523 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42524 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42525 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42526 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42527 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42528 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42529 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42530 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42531 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42532 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42533 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42534 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42535 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42536 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42537 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42538 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42539 SET_MAKE!$SET_MAKE$ac_delim
42540 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42541 USE_NLS!$USE_NLS$ac_delim
42542 MSGFMT!$MSGFMT$ac_delim
42543 GMSGFMT!$GMSGFMT$ac_delim
42544 XGETTEXT!$XGETTEXT$ac_delim
42545 MSGMERGE!$MSGMERGE$ac_delim
42546 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42547 LIBICONV!$LIBICONV$ac_delim
42548 LTLIBICONV!$LTLIBICONV$ac_delim
42549 INTLLIBS!$INTLLIBS$ac_delim
42550 LIBINTL!$LIBINTL$ac_delim
42551 LTLIBINTL!$LTLIBINTL$ac_delim
42552 POSUB!$POSUB$ac_delim
42553 GLIBC2!$GLIBC2$ac_delim
42554 ALLOCA!$ALLOCA$ac_delim
42555 GLIBC21!$GLIBC21$ac_delim
42556 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42557 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42558 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42559 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42560 INTLBISON!$INTLBISON$ac_delim
42561 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42562 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42563 CATOBJEXT!$CATOBJEXT$ac_delim
42564 DATADIRNAME!$DATADIRNAME$ac_delim
42565 INSTOBJEXT!$INSTOBJEXT$ac_delim
42566 GENCAT!$GENCAT$ac_delim
42567 INTLOBJS!$INTLOBJS$ac_delim
42568 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42569 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42570 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42571 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42572 GNOME_LIBS!$GNOME_LIBS$ac_delim
42573 GNOME_DIR!$GNOME_DIR$ac_delim
42574 BAT_DIR!$BAT_DIR$ac_delim
42575 QWT_INC!$QWT_INC$ac_delim
42576 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42577 QWT_LIB!$QWT_LIB$ac_delim
42579 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42582 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42584 elif $ac_last_try; then
42585 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42587 { (exit 1); exit 1; }; }
42589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42594 if test -n "$ac_eof"; then
42595 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42596 ac_eof=`expr $ac_eof + 1`
42599 cat >>$CONFIG_STATUS <<_ACEOF
42600 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42605 s/^/s,@/; s/!/@,|#_!!_#|/
42608 s/'"$ac_delim"'$/,g/; t
42610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42611 ' >>$CONFIG_STATUS <conf$$subs.sed
42612 rm -f conf$$subs.sed
42613 cat >>$CONFIG_STATUS <<_ACEOF
42619 for ac_last_try in false false false false false :; do
42620 cat >conf$$subs.sed <<_ACEOF
42621 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42622 WX_DIR!$WX_DIR$ac_delim
42623 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42624 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42625 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42626 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42627 STATIC_FD!$STATIC_FD$ac_delim
42628 STATIC_SD!$STATIC_SD$ac_delim
42629 STATIC_DIR!$STATIC_DIR$ac_delim
42630 STATIC_CONS!$STATIC_CONS$ac_delim
42631 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42632 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42633 ALL_DIRS!$ALL_DIRS$ac_delim
42634 DIRD_DIR!$DIRD_DIR$ac_delim
42635 DIR_TOOLS!$DIR_TOOLS$ac_delim
42636 STORED_DIR!$STORED_DIR$ac_delim
42637 CONS_INC!$CONS_INC$ac_delim
42638 CONS_OBJ!$CONS_OBJ$ac_delim
42639 CONS_SRC!$CONS_SRC$ac_delim
42640 CONS_LIBS!$CONS_LIBS$ac_delim
42641 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42642 READLINE_SRC!$READLINE_SRC$ac_delim
42643 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42644 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42645 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42646 OPENSSL_INC!$OPENSSL_INC$ac_delim
42647 working_dir!$working_dir$ac_delim
42648 archivedir!$archivedir$ac_delim
42649 scriptdir!$scriptdir$ac_delim
42650 plugindir!$plugindir$ac_delim
42651 dump_email!$dump_email$ac_delim
42652 job_email!$job_email$ac_delim
42653 smtp_host!$smtp_host$ac_delim
42654 piddir!$piddir$ac_delim
42655 subsysdir!$subsysdir$ac_delim
42656 baseport!$baseport$ac_delim
42657 dir_port!$dir_port$ac_delim
42658 fd_port!$fd_port$ac_delim
42659 sd_port!$sd_port$ac_delim
42660 dir_password!$dir_password$ac_delim
42661 fd_password!$fd_password$ac_delim
42662 sd_password!$sd_password$ac_delim
42663 mon_dir_password!$mon_dir_password$ac_delim
42664 mon_fd_password!$mon_fd_password$ac_delim
42665 mon_sd_password!$mon_sd_password$ac_delim
42666 db_name!$db_name$ac_delim
42667 db_user!$db_user$ac_delim
42668 db_password!$db_password$ac_delim
42669 db_port!$db_port$ac_delim
42670 dir_user!$dir_user$ac_delim
42671 dir_group!$dir_group$ac_delim
42672 sd_user!$sd_user$ac_delim
42673 sd_group!$sd_group$ac_delim
42674 fd_user!$fd_user$ac_delim
42675 fd_group!$fd_group$ac_delim
42676 SBINPERM!$SBINPERM$ac_delim
42677 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42678 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42679 SQL_BINDIR!$SQL_BINDIR$ac_delim
42680 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42681 uncomment_dbi!$uncomment_dbi$ac_delim
42682 DB_PROG!$DB_PROG$ac_delim
42683 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42684 cats!$cats$ac_delim
42685 DB_TYPE!$DB_TYPE$ac_delim
42686 GETCONF!$GETCONF$ac_delim
42687 XMKMF!$XMKMF$ac_delim
42688 X_CFLAGS!$X_CFLAGS$ac_delim
42689 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42690 X_LIBS!$X_LIBS$ac_delim
42691 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42692 LIBOBJS!$LIBOBJS$ac_delim
42693 FDLIBS!$FDLIBS$ac_delim
42694 DEBUG!$DEBUG$ac_delim
42695 DINCLUDE!$DINCLUDE$ac_delim
42696 DLIB!$DLIB$ac_delim
42697 DB_LIBS!$DB_LIBS$ac_delim
42698 WCFLAGS!$WCFLAGS$ac_delim
42699 WLDFLAGS!$WLDFLAGS$ac_delim
42700 WRAPLIBS!$WRAPLIBS$ac_delim
42701 OBJLIST!$OBJLIST$ac_delim
42702 hostname!$hostname$ac_delim
42703 TAPEDRIVE!$TAPEDRIVE$ac_delim
42704 PSCMD!$PSCMD$ac_delim
42705 WIN32!$WIN32$ac_delim
42706 MACOSX!$MACOSX$ac_delim
42707 DISTNAME!$DISTNAME$ac_delim
42708 DISTVER!$DISTVER$ac_delim
42709 LTLIBOBJS!$LTLIBOBJS$ac_delim
42712 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42714 elif $ac_last_try; then
42715 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42716 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42717 { (exit 1); exit 1; }; }
42719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42723 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42724 if test -n "$ac_eof"; then
42725 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42726 ac_eof=`expr $ac_eof + 1`
42729 cat >>$CONFIG_STATUS <<_ACEOF
42730 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42734 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42735 s/^/s,@/; s/!/@,|#_!!_#|/
42738 s/'"$ac_delim"'$/,g/; t
42740 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42741 ' >>$CONFIG_STATUS <conf$$subs.sed
42742 rm -f conf$$subs.sed
42743 cat >>$CONFIG_STATUS <<_ACEOF
42750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42752 # trailing colons and then remove the whole line if VPATH becomes empty
42753 # (actually we leave an empty line to preserve line numbers).
42754 if test "x$srcdir" = x.; then
42755 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42756 s/:*\$(srcdir):*/:/
42757 s/:*\${srcdir}:*/:/
42759 s/^\([^=]*=[ ]*\):*/\1/
42765 cat >>$CONFIG_STATUS <<\_ACEOF
42766 fi # test -n "$CONFIG_FILES"
42769 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
42772 :[FHLC]) ac_mode=$ac_tag; continue;;
42774 case $ac_mode$ac_tag in
42776 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42777 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42778 { (exit 1); exit 1; }; };;
42779 :[FH]-) ac_tag=-:-;;
42780 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42797 -) ac_f="$tmp/stdin";;
42798 *) # Look for the file first in the build tree, then in the source tree
42799 # (if the path is not absolute). The absolute path cannot be DOS-style,
42800 # because $ac_f cannot contain `:'.
42804 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42806 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42807 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42808 { (exit 1); exit 1; }; };;
42810 ac_file_inputs="$ac_file_inputs $ac_f"
42813 # Let's still pretend it is `configure' which instantiates (i.e., don't
42814 # use $as_me), people would be surprised to read:
42815 # /* config.h. Generated by config.status. */
42816 configure_input="Generated from "`IFS=:
42817 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42818 if test x"$ac_file" != x-; then
42819 configure_input="$ac_file. $configure_input"
42820 { echo "$as_me:$LINENO: creating $ac_file" >&5
42821 echo "$as_me: creating $ac_file" >&6;}
42825 *:-:* | *:-) cat >"$tmp/stdin";;
42830 ac_dir=`$as_dirname -- "$ac_file" ||
42831 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42832 X"$ac_file" : 'X\(//\)[^/]' \| \
42833 X"$ac_file" : 'X\(//\)$' \| \
42834 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42840 /^X\(\/\/\)[^/].*/{
42855 -*) as_dir=./$as_dir;;
42857 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42861 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42862 *) as_qdir=$as_dir;;
42864 as_dirs="'$as_qdir' $as_dirs"
42865 as_dir=`$as_dirname -- "$as_dir" ||
42866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42867 X"$as_dir" : 'X\(//\)[^/]' \| \
42868 X"$as_dir" : 'X\(//\)$' \| \
42869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42875 /^X\(\/\/\)[^/].*/{
42888 test -d "$as_dir" && break
42890 test -z "$as_dirs" || eval "mkdir $as_dirs"
42891 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42892 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42893 { (exit 1); exit 1; }; }; }
42897 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42900 # A ".." for each directory in $ac_dir_suffix.
42901 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42902 case $ac_top_builddir_sub in
42903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42907 ac_abs_top_builddir=$ac_pwd
42908 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42909 # for backward compatibility:
42910 ac_top_builddir=$ac_top_build_prefix
42913 .) # We are building in place.
42915 ac_top_srcdir=$ac_top_builddir_sub
42916 ac_abs_top_srcdir=$ac_pwd ;;
42917 [\\/]* | ?:[\\/]* ) # Absolute name.
42918 ac_srcdir=$srcdir$ac_dir_suffix;
42919 ac_top_srcdir=$srcdir
42920 ac_abs_top_srcdir=$srcdir ;;
42921 *) # Relative name.
42922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42923 ac_top_srcdir=$ac_top_build_prefix$srcdir
42924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42926 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42936 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42937 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42941 cat >>$CONFIG_STATUS <<\_ACEOF
42942 # If the template does not know about datarootdir, expand it.
42943 # FIXME: This hack should be removed a few years after 2.60.
42944 ac_datarootdir_hack=; ac_datarootdir_seen=
42946 case `sed -n '/datarootdir/ {
42955 ' $ac_file_inputs` in
42956 *datarootdir*) ac_datarootdir_seen=yes;;
42957 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42958 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42959 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42961 cat >>$CONFIG_STATUS <<_ACEOF
42962 ac_datarootdir_hack='
42963 s&@datadir@&$datadir&g
42964 s&@docdir@&$docdir&g
42965 s&@infodir@&$infodir&g
42966 s&@localedir@&$localedir&g
42967 s&@mandir@&$mandir&g
42968 s&\\\${datarootdir}&$datarootdir&g' ;;
42972 # Neutralize VPATH when `$srcdir' = `.'.
42973 # Shell code in configure.ac might set extrasub.
42974 # FIXME: do we really want to maintain this feature?
42975 cat >>$CONFIG_STATUS <<_ACEOF
42979 cat >>$CONFIG_STATUS <<\_ACEOF
42981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42982 s&@configure_input@&$configure_input&;t t
42983 s&@top_builddir@&$ac_top_builddir_sub&;t t
42984 s&@srcdir@&$ac_srcdir&;t t
42985 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42986 s&@top_srcdir@&$ac_top_srcdir&;t t
42987 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42988 s&@builddir@&$ac_builddir&;t t
42989 s&@abs_builddir@&$ac_abs_builddir&;t t
42990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42991 s&@INSTALL@&$ac_INSTALL&;t t
42992 $ac_datarootdir_hack
42993 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42996 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42998 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42999 which seems to be undefined. Please make sure it is defined." >&5
43000 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43001 which seems to be undefined. Please make sure it is defined." >&2;}
43005 -) cat "$tmp/out"; rm -f "$tmp/out";;
43006 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43015 # Transform confdefs.h into a sed script `conftest.defines', that
43016 # substitutes the proper values into config.h.in to produce config.h.
43017 rm -f conftest.defines conftest.tail
43018 # First, append a space to every undef/define line, to ease matching.
43019 echo 's/$/ /' >conftest.defines
43020 # Then, protect against being on the right side of a sed subst, or in
43021 # an unquoted here document, in config.status. If some macros were
43022 # called several times there might be several #defines for the same
43023 # symbol, which is useless. But do not sort them, since the last
43024 # AC_DEFINE must be honored.
43025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43026 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43027 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43028 # PARAMS is the parameter list in the macro definition--in most cases, it's
43029 # just an empty string.
43030 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43031 ac_dB='\\)[ (].*,\\1define\\2'
43039 s/^[ ]*#[ ]*define[ ][ ]*//
43044 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43045 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43046 ' >>conftest.defines
43048 # Remove the space that was appended to ease matching.
43049 # Then replace #undef with comments. This is necessary, for
43050 # example, in the case of _POSIX_SOURCE, which is predefined and required
43051 # on some systems where configure will not decide to define it.
43052 # (The regexp can be short, since the line contains either #define or #undef.)
43054 s,^[ #]*u.*,/* & */,' >>conftest.defines
43056 # Break up conftest.defines:
43057 ac_max_sed_lines=50
43059 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43060 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43061 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43063 ac_in='$ac_file_inputs'
43064 ac_out='"$tmp/out1"'
43065 ac_nxt='"$tmp/out2"'
43069 # Write a here document:
43070 cat >>$CONFIG_STATUS <<_ACEOF
43071 # First, check the format of the line:
43072 cat >"\$tmp/defines.sed" <<\\CEOF
43073 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43074 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43078 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43080 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43081 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43082 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43083 grep . conftest.tail >/dev/null || break
43084 rm -f conftest.defines
43085 mv conftest.tail conftest.defines
43087 rm -f conftest.defines conftest.tail
43089 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43090 cat >>$CONFIG_STATUS <<\_ACEOF
43091 if test x"$ac_file" != x-; then
43092 echo "/* $configure_input */" >"$tmp/config.h"
43093 cat "$ac_result" >>"$tmp/config.h"
43094 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43095 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43096 echo "$as_me: $ac_file is unchanged" >&6;}
43099 mv "$tmp/config.h" $ac_file
43102 echo "/* $configure_input */"
43108 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43109 echo "$as_me: executing $ac_file commands" >&6;}
43114 case $ac_file$ac_mode in
43117 # See if we are running on zsh, and set the options which allow our
43118 # commands through without removal of \ escapes.
43119 if test -n "${ZSH_VERSION+set}" ; then
43120 setopt NO_GLOB_SUBST
43123 cfgfile="${ofile}T"
43124 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43127 cat <<_LT_EOF >> "$cfgfile"
43130 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43131 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43133 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43135 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43136 # 2006, 2007, 2008 Free Software Foundation, Inc.
43137 # Written by Gordon Matzigkeit, 1996
43139 # This file is part of GNU Libtool.
43141 # GNU Libtool is free software; you can redistribute it and/or
43142 # modify it under the terms of the GNU General Public License as
43143 # published by the Free Software Foundation; either version 2 of
43144 # the License, or (at your option) any later version.
43146 # As a special exception to the GNU General Public License,
43147 # if you distribute this file as part of a program or library that
43148 # is built using GNU Libtool, you may include this file under the
43149 # same distribution terms that you use for the rest of that program.
43151 # GNU Libtool is distributed in the hope that it will be useful,
43152 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43153 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43154 # GNU General Public License for more details.
43156 # You should have received a copy of the GNU General Public License
43157 # along with GNU Libtool; see the file COPYING. If not, a copy
43158 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43159 # obtained by writing to the Free Software Foundation, Inc.,
43160 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43163 # The names of the tagged configurations supported by this script.
43164 available_tags="CXX "
43166 # ### BEGIN LIBTOOL CONFIG
43168 # Which release of libtool.m4 was used?
43169 macro_version=$macro_version
43170 macro_revision=$macro_revision
43172 # Whether or not to build shared libraries.
43173 build_libtool_libs=$enable_shared
43175 # Whether or not to build static libraries.
43176 build_old_libs=$enable_static
43178 # What type of objects to build.
43181 # Whether or not to optimize for fast installation.
43182 fast_install=$enable_fast_install
43185 host_alias=$host_alias
43189 # The build system.
43190 build_alias=$build_alias
43194 # A sed program that does not truncate output.
43197 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43198 Xsed="\$SED -e 1s/^X//"
43200 # A grep program that handles long lines.
43206 # A literal string matcher.
43209 # A BSD- or MS-compatible name lister.
43212 # Whether we need soft or hard links.
43215 # What is the maximum length of a command?
43216 max_cmd_len=$max_cmd_len
43218 # Object file suffix (normally "o").
43221 # Executable file suffix (normally "").
43224 # whether the shell understands "unset".
43227 # turn spaces into newlines.
43230 # turn newlines into spaces.
43233 # How to create reloadable object files.
43234 reload_flag=$lt_reload_flag
43235 reload_cmds=$lt_reload_cmds
43237 # An object symbol dumper.
43238 OBJDUMP=$lt_OBJDUMP
43240 # Method to check whether dependent libraries are shared objects.
43241 deplibs_check_method=$lt_deplibs_check_method
43243 # Command to use when deplibs_check_method == "file_magic".
43244 file_magic_cmd=$lt_file_magic_cmd
43248 AR_FLAGS=$lt_AR_FLAGS
43250 # A symbol stripping program.
43253 # Commands used to install an old-style archive.
43255 old_postinstall_cmds=$lt_old_postinstall_cmds
43256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43261 # LTCC compiler flags.
43262 LTCFLAGS=$lt_CFLAGS
43264 # Take the output of nm and produce a listing of raw symbols and C names.
43265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43267 # Transform the output of nm in a proper C declaration.
43268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43270 # Transform the output of nm in a C name address pair.
43271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43273 # Transform the output of nm in a C name address pair when lib prefix is needed.
43274 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43276 # The name of the directory that contains temporary libtool files.
43279 # Shell to use when invoking shell scripts.
43282 # An echo program that does not interpret backslashes.
43285 # Used to examine libraries when file_magic_cmd begins with "file".
43286 MAGIC_CMD=$MAGIC_CMD
43288 # Must we lock files when doing compilation?
43289 need_locks=$lt_need_locks
43291 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43292 DSYMUTIL=$lt_DSYMUTIL
43294 # Tool to change global to local symbols on Mac OS X.
43297 # Tool to manipulate fat objects and archives on Mac OS X.
43300 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43303 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43304 OTOOL64=$lt_OTOOL64
43306 # Old archive suffix (normally "a").
43309 # Shared library suffix (normally ".so").
43310 shrext_cmds=$lt_shrext_cmds
43312 # The commands to extract the exported symbol list from a shared archive.
43313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43315 # Variables whose values should be saved in libtool wrapper scripts and
43316 # restored at link time.
43317 variables_saved_for_relink=$lt_variables_saved_for_relink
43319 # Do we need the "lib" prefix for modules?
43320 need_lib_prefix=$need_lib_prefix
43322 # Do we need a version for libraries?
43323 need_version=$need_version
43325 # Library versioning type.
43326 version_type=$version_type
43328 # Shared library runtime path variable.
43329 runpath_var=$runpath_var
43331 # Shared library path variable.
43332 shlibpath_var=$shlibpath_var
43334 # Is shlibpath searched before the hard-coded library search path?
43335 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43337 # Format of library name prefix.
43338 libname_spec=$lt_libname_spec
43340 # List of archive names. First name is the real one, the rest are links.
43341 # The last name is the one that the linker finds with -lNAME
43342 library_names_spec=$lt_library_names_spec
43344 # The coded name of the library, if different from the real name.
43345 soname_spec=$lt_soname_spec
43347 # Command to use after installation of a shared archive.
43348 postinstall_cmds=$lt_postinstall_cmds
43350 # Command to use after uninstallation of a shared archive.
43351 postuninstall_cmds=$lt_postuninstall_cmds
43353 # Commands used to finish a libtool library installation in a directory.
43354 finish_cmds=$lt_finish_cmds
43356 # As "finish_cmds", except a single script fragment to be evaled but
43358 finish_eval=$lt_finish_eval
43360 # Whether we should hardcode library paths into libraries.
43361 hardcode_into_libs=$hardcode_into_libs
43363 # Compile-time system search path for libraries.
43364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43366 # Run-time system search path for libraries.
43367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43369 # Whether dlopen is supported.
43370 dlopen_support=$enable_dlopen
43372 # Whether dlopen of programs is supported.
43373 dlopen_self=$enable_dlopen_self
43375 # Whether dlopen of statically linked programs is supported.
43376 dlopen_self_static=$enable_dlopen_self_static
43378 # Commands to strip libraries.
43379 old_striplib=$lt_old_striplib
43380 striplib=$lt_striplib
43383 # The linker used to build libraries.
43386 # Commands used to build an old-style archive.
43387 old_archive_cmds=$lt_old_archive_cmds
43389 # A language specific compiler.
43392 # Is the compiler the GNU compiler?
43395 # Compiler flag to turn off builtin functions.
43396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43398 # How to pass a linker flag through the compiler.
43399 wl=$lt_lt_prog_compiler_wl
43401 # Additional compiler flags for building library objects.
43402 pic_flag=$lt_lt_prog_compiler_pic
43404 # Compiler flag to prevent dynamic linking.
43405 link_static_flag=$lt_lt_prog_compiler_static
43407 # Does compiler simultaneously support -c and -o options?
43408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43410 # Whether or not to add -lc for building shared libraries.
43411 build_libtool_need_lc=$archive_cmds_need_lc
43413 # Whether or not to disallow shared libs when runtime libs are static.
43414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43416 # Compiler flag to allow reflexive dlopens.
43417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43419 # Compiler flag to generate shared objects directly from archives.
43420 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43422 # Whether the compiler copes with passing no objects directly.
43423 compiler_needs_object=$lt_compiler_needs_object
43425 # Create an old-style archive from a shared archive.
43426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43428 # Create a temporary old-style archive to link instead of a shared archive.
43429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43431 # Commands used to build a shared archive.
43432 archive_cmds=$lt_archive_cmds
43433 archive_expsym_cmds=$lt_archive_expsym_cmds
43435 # Commands used to build a loadable module if different from building
43436 # a shared archive.
43437 module_cmds=$lt_module_cmds
43438 module_expsym_cmds=$lt_module_expsym_cmds
43440 # Whether we are building with GNU ld or not.
43441 with_gnu_ld=$lt_with_gnu_ld
43443 # Flag that allows shared libraries with undefined symbols to be built.
43444 allow_undefined_flag=$lt_allow_undefined_flag
43446 # Flag that enforces no undefined symbols.
43447 no_undefined_flag=$lt_no_undefined_flag
43449 # Flag to hardcode \$libdir into a binary during linking.
43450 # This must work even if \$libdir does not exist
43451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43453 # If ld is used when linking, flag to hardcode \$libdir into a binary
43454 # during linking. This must work even if \$libdir does not exist.
43455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43457 # Whether we need a single "-rpath" flag with a separated argument.
43458 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43461 # DIR into the resulting binary.
43462 hardcode_direct=$hardcode_direct
43464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43465 # DIR into the resulting binary and the resulting library dependency is
43466 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43467 # library is relocated.
43468 hardcode_direct_absolute=$hardcode_direct_absolute
43470 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43471 # into the resulting binary.
43472 hardcode_minus_L=$hardcode_minus_L
43474 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43475 # into the resulting binary.
43476 hardcode_shlibpath_var=$hardcode_shlibpath_var
43478 # Set to "yes" if building a shared library automatically hardcodes DIR
43479 # into the library and all subsequent libraries and executables linked
43481 hardcode_automatic=$hardcode_automatic
43483 # Set to yes if linker adds runtime paths of dependent libraries
43484 # to runtime path list.
43485 inherit_rpath=$inherit_rpath
43487 # Whether libtool must link a program against all its dependency libraries.
43488 link_all_deplibs=$link_all_deplibs
43490 # Fix the shell variable \$srcfile for the compiler.
43491 fix_srcfile_path=$lt_fix_srcfile_path
43493 # Set to "yes" if exported symbols are required.
43494 always_export_symbols=$always_export_symbols
43496 # The commands to list exported symbols.
43497 export_symbols_cmds=$lt_export_symbols_cmds
43499 # Symbols that should not be listed in the preloaded symbols.
43500 exclude_expsyms=$lt_exclude_expsyms
43502 # Symbols that must always be exported.
43503 include_expsyms=$lt_include_expsyms
43505 # Commands necessary for linking programs (against libraries) with templates.
43506 prelink_cmds=$lt_prelink_cmds
43508 # Specify filename containing input files.
43509 file_list_spec=$lt_file_list_spec
43511 # How to hardcode a shared library path into an executable.
43512 hardcode_action=$hardcode_action
43514 # The directories searched by this compiler when creating a shared library.
43515 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43517 # Dependencies to place before and after the objects being linked to
43518 # create a shared library.
43519 predep_objects=$lt_predep_objects
43520 postdep_objects=$lt_postdep_objects
43521 predeps=$lt_predeps
43522 postdeps=$lt_postdeps
43524 # The library search path used internally by the compiler when linking
43525 # a shared library.
43526 compiler_lib_search_path=$lt_compiler_lib_search_path
43528 # ### END LIBTOOL CONFIG
43534 cat <<\_LT_EOF >> "$cfgfile"
43535 # AIX sometimes has problems with the GCC collect2 program. For some
43536 # reason, if we set the COLLECT_NAMES environment variable, the problems
43537 # vanish in a puff of smoke.
43538 if test "X${COLLECT_NAMES+set}" != Xset; then
43540 export COLLECT_NAMES
43547 ltmain="$ac_aux_dir/ltmain.sh"
43550 # We use sed instead of cat because bash on DJGPP gets confused if
43551 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43552 # text mode, it properly converts lines to CR/LF. This bash problem
43553 # is reportedly fixed, but why not run on old versions too?
43554 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43555 || (rm -f "$cfgfile"; exit 1)
43559 cat << \_LT_EOF >> "$cfgfile"
43561 # func_dirname file append nondir_replacement
43562 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43563 # otherwise set result to NONDIR_REPLACEMENT.
43567 */*) func_dirname_result="${1%/*}${2}" ;;
43568 * ) func_dirname_result="${3}" ;;
43572 # func_basename file
43575 func_basename_result="${1##*/}"
43578 # func_dirname_and_basename file append nondir_replacement
43579 # perform func_basename and func_dirname in a single function
43581 # dirname: Compute the dirname of FILE. If nonempty,
43582 # add APPEND to the result, otherwise set result
43583 # to NONDIR_REPLACEMENT.
43584 # value returned in "$func_dirname_result"
43585 # basename: Compute filename of FILE.
43586 # value retuned in "$func_basename_result"
43587 # Implementation must be kept synchronized with func_dirname
43588 # and func_basename. For efficiency, we do not delegate to
43589 # those functions but instead duplicate the functionality here.
43590 func_dirname_and_basename ()
43593 */*) func_dirname_result="${1%/*}${2}" ;;
43594 * ) func_dirname_result="${3}" ;;
43596 func_basename_result="${1##*/}"
43599 # func_stripname prefix suffix name
43600 # strip PREFIX and SUFFIX off of NAME.
43601 # PREFIX and SUFFIX must not contain globbing or regex special
43602 # characters, hashes, percent signs, but SUFFIX may contain a leading
43603 # dot (in which case that matches only a dot).
43606 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43607 # positional parameters, so assign one to ordinary parameter first.
43608 func_stripname_result=${3}
43609 func_stripname_result=${func_stripname_result#"${1}"}
43610 func_stripname_result=${func_stripname_result%"${2}"}
43616 func_opt_split_opt=${1%%=*}
43617 func_opt_split_arg=${1#*=}
43624 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43625 *) func_lo2o_result=${1} ;;
43629 # func_xform libobj-or-source
43632 func_xform_result=${1%.*}.lo
43635 # func_arith arithmetic-term...
43638 func_arith_result=$(( $* ))
43642 # STRING may not start with a hyphen.
43645 func_len_result=${#1}
43650 *) # Bourne compatible functions.
43651 cat << \_LT_EOF >> "$cfgfile"
43653 # func_dirname file append nondir_replacement
43654 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43655 # otherwise set result to NONDIR_REPLACEMENT.
43658 # Extract subdirectory from the argument.
43659 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43660 if test "X$func_dirname_result" = "X${1}"; then
43661 func_dirname_result="${3}"
43663 func_dirname_result="$func_dirname_result${2}"
43667 # func_basename file
43670 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43674 # func_stripname prefix suffix name
43675 # strip PREFIX and SUFFIX off of NAME.
43676 # PREFIX and SUFFIX must not contain globbing or regex special
43677 # characters, hashes, percent signs, but SUFFIX may contain a leading
43678 # dot (in which case that matches only a dot).
43679 # func_strip_suffix prefix name
43683 .*) func_stripname_result=`$ECHO "X${3}" \
43684 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43685 *) func_stripname_result=`$ECHO "X${3}" \
43686 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43691 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43692 my_sed_long_arg='1s/^-[^=]*=//'
43697 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43698 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43704 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43707 # func_xform libobj-or-source
43710 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43713 # func_arith arithmetic-term...
43716 func_arith_result=`expr "$@"`
43720 # STRING may not start with a hyphen.
43723 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43729 case $lt_shell_append in
43731 cat << \_LT_EOF >> "$cfgfile"
43733 # func_append var value
43734 # Append VALUE to the end of shell variable VAR.
43742 cat << \_LT_EOF >> "$cfgfile"
43744 # func_append var value
43745 # Append VALUE to the end of shell variable VAR.
43756 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43757 || (rm -f "$cfgfile"; exit 1)
43759 mv -f "$cfgfile" "$ofile" ||
43760 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43764 cat <<_LT_EOF >> "$ofile"
43766 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43768 # The linker used to build libraries.
43771 # Commands used to build an old-style archive.
43772 old_archive_cmds=$lt_old_archive_cmds_CXX
43774 # A language specific compiler.
43775 CC=$lt_compiler_CXX
43777 # Is the compiler the GNU compiler?
43780 # Compiler flag to turn off builtin functions.
43781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43783 # How to pass a linker flag through the compiler.
43784 wl=$lt_lt_prog_compiler_wl_CXX
43786 # Additional compiler flags for building library objects.
43787 pic_flag=$lt_lt_prog_compiler_pic_CXX
43789 # Compiler flag to prevent dynamic linking.
43790 link_static_flag=$lt_lt_prog_compiler_static_CXX
43792 # Does compiler simultaneously support -c and -o options?
43793 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43795 # Whether or not to add -lc for building shared libraries.
43796 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43798 # Whether or not to disallow shared libs when runtime libs are static.
43799 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43801 # Compiler flag to allow reflexive dlopens.
43802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43804 # Compiler flag to generate shared objects directly from archives.
43805 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43807 # Whether the compiler copes with passing no objects directly.
43808 compiler_needs_object=$lt_compiler_needs_object_CXX
43810 # Create an old-style archive from a shared archive.
43811 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43813 # Create a temporary old-style archive to link instead of a shared archive.
43814 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43816 # Commands used to build a shared archive.
43817 archive_cmds=$lt_archive_cmds_CXX
43818 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43820 # Commands used to build a loadable module if different from building
43821 # a shared archive.
43822 module_cmds=$lt_module_cmds_CXX
43823 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43825 # Whether we are building with GNU ld or not.
43826 with_gnu_ld=$lt_with_gnu_ld_CXX
43828 # Flag that allows shared libraries with undefined symbols to be built.
43829 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43831 # Flag that enforces no undefined symbols.
43832 no_undefined_flag=$lt_no_undefined_flag_CXX
43834 # Flag to hardcode \$libdir into a binary during linking.
43835 # This must work even if \$libdir does not exist
43836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43838 # If ld is used when linking, flag to hardcode \$libdir into a binary
43839 # during linking. This must work even if \$libdir does not exist.
43840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43842 # Whether we need a single "-rpath" flag with a separated argument.
43843 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43846 # DIR into the resulting binary.
43847 hardcode_direct=$hardcode_direct_CXX
43849 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43850 # DIR into the resulting binary and the resulting library dependency is
43851 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43852 # library is relocated.
43853 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43855 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43856 # into the resulting binary.
43857 hardcode_minus_L=$hardcode_minus_L_CXX
43859 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43860 # into the resulting binary.
43861 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43863 # Set to "yes" if building a shared library automatically hardcodes DIR
43864 # into the library and all subsequent libraries and executables linked
43866 hardcode_automatic=$hardcode_automatic_CXX
43868 # Set to yes if linker adds runtime paths of dependent libraries
43869 # to runtime path list.
43870 inherit_rpath=$inherit_rpath_CXX
43872 # Whether libtool must link a program against all its dependency libraries.
43873 link_all_deplibs=$link_all_deplibs_CXX
43875 # Fix the shell variable \$srcfile for the compiler.
43876 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43878 # Set to "yes" if exported symbols are required.
43879 always_export_symbols=$always_export_symbols_CXX
43881 # The commands to list exported symbols.
43882 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43884 # Symbols that should not be listed in the preloaded symbols.
43885 exclude_expsyms=$lt_exclude_expsyms_CXX
43887 # Symbols that must always be exported.
43888 include_expsyms=$lt_include_expsyms_CXX
43890 # Commands necessary for linking programs (against libraries) with templates.
43891 prelink_cmds=$lt_prelink_cmds_CXX
43893 # Specify filename containing input files.
43894 file_list_spec=$lt_file_list_spec_CXX
43896 # How to hardcode a shared library path into an executable.
43897 hardcode_action=$hardcode_action_CXX
43899 # The directories searched by this compiler when creating a shared library.
43900 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43902 # Dependencies to place before and after the objects being linked to
43903 # create a shared library.
43904 predep_objects=$lt_predep_objects_CXX
43905 postdep_objects=$lt_postdep_objects_CXX
43906 predeps=$lt_predeps_CXX
43907 postdeps=$lt_postdeps_CXX
43909 # The library search path used internally by the compiler when linking
43910 # a shared library.
43911 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43913 # ### END LIBTOOL TAG CONFIG: CXX
43918 for ac_file in $CONFIG_FILES; do
43919 # Support "outfile[:infile[:infile...]]"
43921 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43923 # PO directories have a Makefile.in generated from Makefile.in.in.
43924 case "$ac_file" in */Makefile.in)
43925 # Adjust a relative srcdir.
43926 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43927 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43928 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43929 # In autoconf-2.13 it is called $ac_given_srcdir.
43930 # In autoconf-2.50 it is called $srcdir.
43931 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43932 case "$ac_given_srcdir" in
43933 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43934 /*) top_srcdir="$ac_given_srcdir" ;;
43935 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
43937 # Treat a directory as a PO directory if and only if it has a
43938 # POTFILES.in file. This allows packages to have multiple PO
43939 # directories under different names or in different locations.
43940 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43941 rm -f "$ac_dir/POTFILES"
43942 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43943 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43944 POMAKEFILEDEPS="POTFILES.in"
43945 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43946 # on $ac_dir but don't depend on user-specified configuration
43948 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43949 # The LINGUAS file contains the set of available languages.
43950 if test -n "$OBSOLETE_ALL_LINGUAS"; then
43951 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43953 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43954 # Hide the ALL_LINGUAS assigment from automake.
43955 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43956 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43958 # The set of available languages was given in configure.in.
43959 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43962 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43963 # Compute UPDATEPOFILES
43964 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43965 # Compute DUMMYPOFILES
43966 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43968 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43969 case "$ac_given_srcdir" in
43971 *) srcdirpre='$(srcdir)/' ;;
43977 for lang in $ALL_LINGUAS; do
43978 POFILES="$POFILES $srcdirpre$lang.po"
43979 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43980 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43981 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43983 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43984 # environment variable.
43986 if test -n "$ALL_LINGUAS"; then
43987 for presentlang in $ALL_LINGUAS; do
43989 if test "%UNSET%" != "$LINGUAS"; then
43990 desiredlanguages="$LINGUAS"
43992 desiredlanguages="$ALL_LINGUAS"
43994 for desiredlang in $desiredlanguages; do
43995 # Use the presentlang catalog if desiredlang is
43996 # a. equal to presentlang, or
43997 # b. a variant of presentlang (because in this case,
43998 # presentlang can be used as a fallback for messages
43999 # which are not translated in the desiredlang catalog).
44000 case "$desiredlang" in
44001 "$presentlang"*) useit=yes;;
44004 if test $useit = yes; then
44005 INST_LINGUAS="$INST_LINGUAS $presentlang"
44010 if test -n "$INST_LINGUAS"; then
44011 for lang in $INST_LINGUAS; do
44012 CATALOGS="$CATALOGS $lang.gmo"
44015 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44016 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"
44017 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44018 if test -f "$f"; then
44020 *.orig | *.bak | *~) ;;
44021 *) cat "$f" >> "$ac_dir/Makefile" ;;
44036 { (exit 0); exit 0; }
44038 chmod +x $CONFIG_STATUS
44039 ac_clean_files=$ac_clean_files_save
44042 # configure is writing to config.log, and then calls config.status.
44043 # config.status does its own redirection, appending to config.log.
44044 # Unfortunately, on DOS this fails, as config.log is still kept open
44045 # by configure, so config.status won't be able to write to it; its
44046 # output is simply discarded. So we exec the FD to /dev/null,
44047 # effectively closing config.log, so it can be properly (re)opened and
44048 # appended to by config.status. When coming back to configure, we
44049 # need to make the FD available again.
44050 if test "$no_create" != yes; then
44052 ac_config_status_args=
44053 test "$silent" = yes &&
44054 ac_config_status_args="$ac_config_status_args --quiet"
44056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44059 # would make configure fail if this is the last instruction.
44060 $ac_cs_success || { (exit 1); exit 1; }
44064 if test "${support_bat}" = "yes" ; then
44065 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44066 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44072 if test "x$QMAKEQT4" != "xnone"; then
44077 chmod 755 install_conf_file build-depkgs-qt-console
44078 echo "Creating bat Makefile"
44084 if test X"$GCC" = "Xyes" ; then
44085 echo "Doing make of dependencies"
44086 ${MAKE:-make} depend
44090 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44091 chmod 755 dvd-handler dvd-simulator
44092 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44096 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44097 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44101 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44102 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44104 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44105 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44107 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44108 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44110 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44111 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44113 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44114 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44116 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44117 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44119 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44120 chmod 755 $c/sqlite
44123 chmod 755 src/win32/build-depkgs-mingw32
44125 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44126 largefile_support="yes"
44129 if test X"$GCC" = "Xyes" ; then
44130 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44131 if test "x${CCVERSION}" = "x" ; then
44132 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44134 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44135 if test x"${CXXVERSION}" = x ; then
44136 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44140 if test "x${db_type}" = "xInternal" ; then
44143 echo "You have not specified either --enable-client-only or one of the"
44144 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44145 echo " This is not permitted. Please reconfigure."
44147 echo "Aborting the configuration ..."
44154 Configuration on `date`:
44156 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44157 Bacula version: ${BACULA} ${VERSION} (${DATE})
44158 Source code location: ${srcdir}
44159 Install binaries: ${sbindir}
44160 Install libraries: ${libdir}
44161 Install config files: ${sysconfdir}
44162 Scripts directory: ${scriptdir}
44163 Archive directory: ${archivedir}
44164 Working directory: ${working_dir}
44165 PID directory: ${piddir}
44166 Subsys directory: ${subsysdir}
44167 Man directory: ${mandir}
44168 Data directory: ${datarootdir}
44169 C Compiler: ${CC} ${CCVERSION}
44170 C++ Compiler: ${CXX} ${CXXVERSION}
44171 Compiler flags: ${WCFLAGS} ${CFLAGS}
44172 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44174 Statically Linked Tools: ${support_static_tools}
44175 Statically Linked FD: ${support_static_fd}
44176 Statically Linked SD: ${support_static_sd}
44177 Statically Linked DIR: ${support_static_dir}
44178 Statically Linked CONS: ${support_static_cons}
44179 Database type: ${db_type}
44180 Database port: ${db_port}
44181 Database lib: ${DB_LIBS}
44182 Database name: ${db_name}
44183 Database user: ${db_user}
44185 Job Output Email: ${job_email}
44186 Traceback Email: ${dump_email}
44187 SMTP Host Address: ${smtp_host}
44189 Director Port: ${dir_port}
44190 File daemon Port: ${fd_port}
44191 Storage daemon Port: ${sd_port}
44193 Director User: ${dir_user}
44194 Director Group: ${dir_group}
44195 Storage Daemon User: ${sd_user}
44196 Storage DaemonGroup: ${sd_group}
44197 File Daemon User: ${fd_user}
44198 File Daemon Group: ${fd_group}
44200 SQL binaries Directory ${SQL_BINDIR}
44202 Large file support: $largefile_support
44203 Bacula conio support: ${got_conio} ${CONS_LIBS}
44204 readline support: ${got_readline} ${PRTREADLINE_SRC}
44205 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44206 TLS support: ${support_tls}
44207 Encryption support: ${support_crypto}
44208 ZLIB support: ${have_zlib}
44209 enable-smartalloc: ${support_smartalloc}
44210 bat support: ${support_bat} ${QWT_LDFLAGS}
44211 enable-gnome: ${support_gnome} ${gnome_version}
44212 enable-bwx-console: ${support_wx_console} ${wx_version}
44213 enable-tray-monitor: ${support_tray_monitor}
44214 client-only: ${build_client_only}
44215 build-dird: ${build_dird}
44216 build-stored: ${build_stored}
44217 ACL support: ${have_acl}
44218 Python support: ${support_python} ${PYTHON_LIBS}
44219 Batch insert enabled: ${support_batch_insert}