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, [default=/usr/local/pgsql]
1724 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1725 directory, default is to search through a number of
1726 common places for the MySQL files.
1727 --with-embedded-mysql[=DIR]
1728 Include MySQL support. DIR is the MySQL base install
1729 directory, default is to search through a number of
1730 common places for the MySQL files.
1731 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1732 install directory, default is to search through a
1733 number of common places for the SQLite3 files.
1734 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1735 install directory, default is to search through a
1736 number of common places for the SQLite files.
1737 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1738 directory, default is to search through a number of
1739 common places for the DBI files.
1740 --with-dbi-driver[=DRIVER]
1741 Suport for DBI driver. DRIVER is the one DBI driver
1742 like Mysql, Postgresql, others. Default is to not
1743 configure any driver.
1744 --with-x use the X Window System
1746 Some influential environment variables:
1747 CC C compiler command
1748 CFLAGS C compiler flags
1749 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1750 nonstandard directory <lib dir>
1751 LIBS libraries to pass to the linker, e.g. -l<library>
1752 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753 you have headers in a nonstandard directory <include dir>
1754 CXX C++ compiler command
1755 CXXFLAGS C++ compiler flags
1757 WXCONFIG wx-config command. On some systems, you must set it to
1758 wx-config-2.6 to use wxWidgets 2.6.
1759 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1760 CXXCPP C++ preprocessor
1761 XMKMF Path to xmkmf, Makefile generator for X Window System
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1770 if test "$ac_init_help" = "recursive"; then
1771 # If there are subdirs, report their specific --help.
1772 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773 test -d "$ac_dir" || continue
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1793 .) # We are building in place.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1817 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1827 generated by GNU Autoconf 2.61
1829 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1830 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.61. Invocation command line was
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1862 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1863 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1866 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1867 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1868 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 echo "PATH: $as_dir"
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_must_keep_next=false
1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909 | -silent | --silent | --silen | --sile | --sil)
1912 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1917 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1918 if test $ac_must_keep_next = true; then
1919 ac_must_keep_next=false # Got value, back to normal.
1922 *=* | --config-cache | -C | -disable-* | --disable-* \
1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925 | -with-* | --with-* | -without-* | --without-* | --x)
1926 case "$ac_configure_args0 " in
1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930 -* ) ac_must_keep_next=true ;;
1933 ac_configure_args="$ac_configure_args '$ac_arg'"
1938 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1939 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log. We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947 # Save into config.log some information that might help in debugging.
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1957 # The following way of writing the cache mishandles newlines in values,
1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960 eval ac_val=\$$ac_var
1964 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1968 _ | IFS | as_nl) ;; #(
1969 *) $as_unset $ac_var ;;
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989 ## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##
1994 for ac_var in $ac_subst_vars
1996 eval ac_val=\$$ac_var
1998 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 echo "$ac_var='\''$ac_val'\''"
2004 if test -n "$ac_subst_files"; then
2006 ## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##
2011 for ac_var in $ac_subst_files
2013 eval ac_val=\$$ac_var
2015 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017 echo "$ac_var='\''$ac_val'\''"
2022 if test -s confdefs.h; then
2032 test "$ac_signal" != 0 &&
2033 echo "$as_me: caught signal $ac_signal"
2034 echo "$as_me: exit $exit_status"
2036 rm -f core *.core core.conftest.* &&
2037 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040 for ac_signal in 1 2 13 15; do
2041 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2048 # Predefined preprocessor variables.
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078 set x "$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2082 set x "$ac_default_prefix/share/config.site" \
2083 "$ac_default_prefix/etc/config.site"
2088 if test -r "$ac_site_file"; then
2089 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2090 echo "$as_me: loading site script $ac_site_file" >&6;}
2091 sed 's/^/| /' "$ac_site_file" >&5
2096 if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special
2098 # files actually), so we avoid doing that.
2099 if test -f "$cache_file"; then
2100 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2101 echo "$as_me: loading cache $cache_file" >&6;}
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
2108 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2109 echo "$as_me: creating cache $cache_file" >&6;}
2113 # Check that the precious variables saved in the cache have kept the same
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118 eval ac_new_set=\$ac_env_${ac_var}_set
2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120 eval ac_new_val=\$ac_env_${ac_var}_value
2121 case $ac_old_set,$ac_new_set in
2123 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2127 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2132 if test "x$ac_old_val" != "x$ac_new_val"; then
2133 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2136 echo "$as_me: former value: $ac_old_val" >&2;}
2137 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2138 echo "$as_me: current value: $ac_new_val" >&2;}
2139 ac_cache_corrupted=:
2142 # Pass precious variables to config.status.
2143 if test "$ac_new_set" = set; then
2145 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146 *) ac_arg=$ac_var=$ac_new_val ;;
2148 case " $ac_configure_args " in
2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2150 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2154 if $ac_cache_corrupted; then
2155 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159 { (exit 1); exit 1; }; }
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2193 if test -f "$ac_dir/install-sh"; then
2195 ac_install_sh="$ac_aux_dir/install-sh -c"
2197 elif test -f "$ac_dir/install.sh"; then
2199 ac_install_sh="$ac_aux_dir/install.sh -c"
2201 elif test -f "$ac_dir/shtool"; then
2203 ac_install_sh="$ac_aux_dir/shtool install -c"
2207 if test -z "$ac_aux_dir"; then
2208 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2209 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2210 { (exit 1); exit 1; }; }
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2222 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2229 # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 set dummy $ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 TRUEPRG=$ac_cv_path_TRUEPRG
2260 if test -n "$TRUEPRG"; then
2261 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2262 echo "${ECHO_T}$TRUEPRG" >&6; }
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2269 test -n "$TRUEPRG" && break
2271 test -n "$TRUEPRG" || TRUEPRG=":"
2273 for ac_prog in false
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 FALSEPRG=$ac_cv_path_FALSEPRG
2306 if test -n "$FALSEPRG"; then
2307 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2308 echo "${ECHO_T}$FALSEPRG" >&6; }
2310 { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2315 test -n "$FALSEPRG" && break
2317 test -n "$FALSEPRG" || FALSEPRG=":"
2321 if test "x$BACULA" != x; then
2322 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2324 BACULA=${BACULA-Bacula}
2325 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2326 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 echo "configuring for ${BACULA} $VERSION ($DATE)"
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2375 if test -z "$ac_cv_prog_CC"; then
2377 # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_CC="gcc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2413 if test "x$ac_ct_CC" = x; then
2416 case $cross_compiling:$ac_tool_warned in
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet. If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet. If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}cc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_CC="${ac_tool_prefix}cc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2473 if test -z "$CC"; then
2474 # Extract the first word of "cc", so it can be a program name with args.
2475 set dummy cc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2493 ac_prog_rejected=yes
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 if test $ac_prog_rejected = yes; then
2505 # We found a bogon in the path, so make sure we never use it.
2506 set dummy $ac_cv_prog_CC
2508 if test $# != 0; then
2509 # We chose a different compiler from the bogus one.
2510 # However, it has the same basename, so the bogon will be chosen
2511 # first if we set CC to just the basename; use the full file name.
2513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2519 if test -n "$CC"; then
2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 if test -n "$ac_tool_prefix"; then
2531 for ac_prog in cl.exe
2533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2570 test -n "$CC" && break
2573 if test -z "$CC"; then
2575 for ac_prog in cl.exe
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$ac_ct_CC"; then
2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_ac_ct_CC="$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6; }
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2614 test -n "$ac_ct_CC" && break
2617 if test "x$ac_ct_CC" = x; then
2620 case $cross_compiling:$ac_tool_warned in
2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623 whose name does not start with the host triplet. If you think this
2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628 ac_tool_warned=yes ;;
2637 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&2;}
2641 { (exit 1); exit 1; }; }
2643 # Provide some information about the compiler.
2644 echo "$as_me:$LINENO: checking for C compiler version" >&5
2645 ac_compiler=`set X $ac_compile; echo $2`
2646 { (ac_try="$ac_compiler --version >&5"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compiler --version >&5") 2>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }
2656 { (ac_try="$ac_compiler -v >&5"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler -v >&5") 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -V >&5"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -V >&5") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 ac_clean_files_save=$ac_clean_files
2693 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2694 # Try to create an executable without -o first, disregard a.out.
2695 # It will help us diagnose broken compilers, and finding out an intuition
2697 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2698 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2699 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2701 # List of possible output files, starting from the most likely.
2702 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2703 # only as a last resort. b.out is created by i960 compilers.
2704 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2706 # The IRIX 6 linker writes into existing files which may not be
2707 # executable, retaining their permissions. Remove them first so a
2708 # subsequent execution test works.
2710 for ac_file in $ac_files
2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2714 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2719 if { (ac_try="$ac_link_default"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_link_default") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2731 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2732 # so that the user can short-circuit this test for compilers unknown to
2734 for ac_file in $ac_files ''
2736 test -f "$ac_file" || continue
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2741 # We found the default executable, but exeext='' is most
2745 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749 # We set ac_cv_exeext here because the later test for it is not
2750 # safe: cross compilers may not add the suffix if given an `-o'
2751 # argument, so we may need to know it at that point already.
2752 # Even if this section looks crufty: it has the advantage of
2759 test "$ac_cv_exeext" = no && ac_cv_exeext=
2765 { echo "$as_me:$LINENO: result: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 if test -z "$ac_file"; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2772 See \`config.log' for more details." >&5
2773 echo "$as_me: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&2;}
2775 { (exit 77); exit 77; }; }
2778 ac_exeext=$ac_cv_exeext
2780 # Check that the compiler produces executables we can run. If not, either
2781 # the compiler is broken, or we cross compile.
2782 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2785 # If not cross compiling, check that we can run a simple program.
2786 if test "$cross_compiling" != yes; then
2787 if { ac_try='./$ac_file'
2788 { (case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_try") 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2799 if test "$cross_compiling" = maybe; then
2802 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2803 If you meant to cross compile, use \`--host'.
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }
2812 { echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2815 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2816 ac_clean_files=$ac_clean_files_save
2817 # Check that the compiler produces executables we can run. If not, either
2818 # the compiler is broken, or we cross compile.
2819 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2820 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2822 echo "${ECHO_T}$cross_compiling" >&6; }
2824 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2825 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2826 if { (ac_try="$ac_link"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_link") 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; then
2836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2838 # work properly (i.e., refer to `conftest.exe'), while it won't with
2840 for ac_file in conftest.exe conftest conftest.*; do
2841 test -f "$ac_file" || continue
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2857 rm -f conftest$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2859 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2861 rm -f conftest.$ac_ext
2862 EXEEXT=$ac_cv_exeext
2864 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2866 if test "${ac_cv_objext+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 rm -f conftest.o conftest.obj
2885 if { (ac_try="$ac_compile"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compile") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; then
2895 for ac_file in conftest.o conftest.obj conftest.*; do
2896 test -f "$ac_file" || continue;
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2899 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2916 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2917 echo "${ECHO_T}$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2952 grep -v '^ *+' conftest.er1 >conftest.err
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } && {
2957 test -z "$ac_c_werror_flag" ||
2958 test ! -s conftest.err
2959 } && test -s conftest.$ac_objext; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2972 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2974 GCC=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CFLAGS=${CFLAGS+set}
2976 ac_save_CFLAGS=$CFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2978 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 ac_save_c_werror_flag=$ac_c_werror_flag
2983 ac_c_werror_flag=yes
2986 cat >conftest.$ac_ext <<_ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
3001 rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 ac_c_werror_flag=$ac_save_c_werror_flag
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_c_werror_flag=$ac_save_c_werror_flag
3112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3114 if test "$ac_test_CFLAGS" = set; then
3115 CFLAGS=$ac_save_CFLAGS
3116 elif test $ac_cv_prog_cc_g = yes; then
3117 if test "$GCC" = yes; then
3123 if test "$GCC" = yes; then
3129 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3130 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_cc_c89+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 ac_cv_prog_cc_c89=no
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3144 #include <sys/types.h>
3145 #include <sys/stat.h>
3146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3147 struct buf { int x; };
3148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149 static char *e (p, i)
3155 static char *f (char * (*g) (char **, int), char **p, ...)
3160 s = g (p, va_arg (v,int));
3165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3166 function prototypes and stuff, but not '\xHH' hex character constants.
3167 These don't provoke an error unfortunately, instead are silently treated
3168 as 'x'. The following induces an error, until -std is added to get
3169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3170 array size at least. It's necessary to write '\x00'==0 to get something
3171 that's true only with -std. */
3172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175 inside strings and character constants. */
3177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3179 int test (int i, double x);
3180 struct s1 {int (*f) (int a);};
3181 struct s2 {int (*f) (double a);};
3182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196 CC="$ac_save_CC $ac_arg"
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3214 ac_cv_prog_cc_c89=$ac_arg
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext
3223 test "x$ac_cv_prog_cc_c89" != "xno" && break
3225 rm -f conftest.$ac_ext
3230 case "x$ac_cv_prog_cc_c89" in
3232 { echo "$as_me:$LINENO: result: none needed" >&5
3233 echo "${ECHO_T}none needed" >&6; } ;;
3235 { echo "$as_me:$LINENO: result: unsupported" >&5
3236 echo "${ECHO_T}unsupported" >&6; } ;;
3238 CC="$CC $ac_cv_prog_cc_c89"
3239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 ac_cpp='$CXXCPP $CPPFLAGS'
3252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3255 if test -z "$CXX"; then
3256 if test -n "$CCC"; then
3259 if test -n "$ac_tool_prefix"; then
3260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3266 if test "${ac_cv_prog_CXX+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 if test -n "$CXX"; then
3270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 if test -n "$CXX"; then
3291 { echo "$as_me:$LINENO: result: $CXX" >&5
3292 echo "${ECHO_T}$CXX" >&6; }
3294 { echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6; }
3299 test -n "$CXX" && break
3302 if test -z "$CXX"; then
3304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$ac_ct_CXX"; then
3314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_ac_ct_CXX="$ac_prog"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3334 if test -n "$ac_ct_CXX"; then
3335 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3336 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3343 test -n "$ac_ct_CXX" && break
3346 if test "x$ac_ct_CXX" = x; then
3349 case $cross_compiling:$ac_tool_warned in
3351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3352 whose name does not start with the host triplet. If you think this
3353 configuration is useful to you, please write to autoconf@gnu.org." >&5
3354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3357 ac_tool_warned=yes ;;
3365 # Provide some information about the compiler.
3366 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3367 ac_compiler=`set X $ac_compile; echo $2`
3368 { (ac_try="$ac_compiler --version >&5"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_compiler --version >&5") 2>&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378 { (ac_try="$ac_compiler -v >&5"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compiler -v >&5") 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388 { (ac_try="$ac_compiler -V >&5"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compiler -V >&5") 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }
3399 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3401 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 cat >conftest.$ac_ext <<_ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_cxx_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3441 echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3451 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3453 GXX=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CXXFLAGS=${CXXFLAGS+set}
3455 ac_save_CXXFLAGS=$CXXFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3457 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cxx_g+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3462 ac_cxx_werror_flag=yes
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_cxx_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_prog_cxx_g=yes
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_cxx_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compile") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } && {
3571 test -z "$ac_cxx_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest.$ac_objext; then
3574 ac_cv_prog_cxx_g=yes
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3593 if test "$ac_test_CXXFLAGS" = set; then
3594 CXXFLAGS=$ac_save_CXXFLAGS
3595 elif test $ac_cv_prog_cxx_g = yes; then
3596 if test "$GXX" = yes; then
3602 if test "$GXX" = yes; then
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 if test "x$CC" != xcc; then
3615 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3616 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3618 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3619 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3621 set dummy $CC; ac_cc=`echo $2 |
3622 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3623 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3641 # Make sure it works both with $CC and with simple cc.
3642 # We do the test twice because some compilers refuse to overwrite an
3643 # existing .o file with -o, though they will create one.
3644 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3646 if { (case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_try") 2>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_try") 2>&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); };
3665 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3666 if test "x$CC" != xcc; then
3667 # Test first that cc exists at all.
3668 if { ac_try='cc -c conftest.$ac_ext >&5'
3669 { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_try") 2>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3680 if { (case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_try") 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); };
3702 # cc exists but doesn't like -o.
3703 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3708 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3710 rm -f core conftest*
3713 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3714 { echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6; }
3717 { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3720 cat >>confdefs.h <<\_ACEOF
3721 #define NO_MINUS_C_MINUS_O 1
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3732 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3733 # On Suns, sometimes $CPP names a directory.
3734 if test -n "$CPP" && test -d "$CPP"; then
3737 if test -z "$CPP"; then
3738 if test "${ac_cv_prog_CPP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 # Double quotes because CPP needs to be expanded
3742 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745 for ac_c_preproc_warn_flag in '' yes
3747 # Use a header file that comes with gcc, so configuring glibc
3748 # with a fresh cross-compiler works.
3749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3750 # <limits.h> exists even on freestanding compilers.
3751 # On the NeXT, cc -E runs the code through the compiler's parser,
3752 # not just through cpp. "Syntax error" is here to catch this case.
3753 cat >conftest.$ac_ext <<_ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3760 # include <limits.h>
3762 # include <assert.h>
3766 if { (ac_try="$ac_cpp conftest.$ac_ext"
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } >/dev/null && {
3779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 # Broken: fails on valid input.
3791 rm -f conftest.err conftest.$ac_ext
3793 # OK, works on sane cases. Now check whether nonexistent headers
3794 # can be detected and how.
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #include <ac_nonexistent.h>
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3819 # Broken: success on invalid input.
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3825 # Passes both tests.
3830 rm -f conftest.err conftest.$ac_ext
3833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3834 rm -f conftest.err conftest.$ac_ext
3835 if $ac_preproc_ok; then
3847 { echo "$as_me:$LINENO: result: $CPP" >&5
3848 echo "${ECHO_T}$CPP" >&6; }
3850 for ac_c_preproc_warn_flag in '' yes
3852 # Use a header file that comes with gcc, so configuring glibc
3853 # with a fresh cross-compiler works.
3854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855 # <limits.h> exists even on freestanding compilers.
3856 # On the NeXT, cc -E runs the code through the compiler's parser,
3857 # not just through cpp. "Syntax error" is here to catch this case.
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3865 # include <limits.h>
3867 # include <assert.h>
3871 if { (ac_try="$ac_cpp conftest.$ac_ext"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } >/dev/null && {
3884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3889 echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 # Broken: fails on valid input.
3896 rm -f conftest.err conftest.$ac_ext
3898 # OK, works on sane cases. Now check whether nonexistent headers
3899 # can be detected and how.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #include <ac_nonexistent.h>
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null && {
3921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3924 # Broken: success on invalid input.
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 # Passes both tests.
3935 rm -f conftest.err conftest.$ac_ext
3938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3939 rm -f conftest.err conftest.$ac_ext
3940 if $ac_preproc_ok; then
3943 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&2;}
3947 { (exit 1); exit 1; }; }
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3958 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_GREP+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 # Extract the first word of "grep ggrep" to use in msg output
3963 if test -z "$GREP"; then
3964 set dummy grep ggrep; ac_prog_name=$2
3965 if test "${ac_cv_path_GREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_path_GREP_found=false
3969 # Loop through the user's path and test for each of PROGNAME-LIST
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in grep ggrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3979 # Check for GNU ac_path_GREP and select it if it is found.
3980 # Check for GNU $ac_path_GREP
3981 case `"$ac_path_GREP" --version 2>&1` in
3983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 echo 'GREP' >> "conftest.nl"
3993 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 ac_count=`expr $ac_count + 1`
3996 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_GREP="$ac_path_GREP"
3999 ac_path_GREP_max=$ac_count
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 $ac_path_GREP_found && break 3
4018 GREP="$ac_cv_path_GREP"
4019 if test -z "$GREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4026 ac_cv_path_GREP=$GREP
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4033 GREP="$ac_cv_path_GREP"
4036 { echo "$as_me:$LINENO: checking for egrep" >&5
4037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4042 then ac_cv_path_EGREP="$GREP -E"
4044 # Extract the first word of "egrep" to use in msg output
4045 if test -z "$EGREP"; then
4046 set dummy egrep; ac_prog_name=$2
4047 if test "${ac_cv_path_EGREP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_path_EGREP_found=false
4051 # Loop through the user's path and test for each of PROGNAME-LIST
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 test -z "$as_dir" && as_dir=.
4057 for ac_prog in egrep; do
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4060 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4061 # Check for GNU ac_path_EGREP and select it if it is found.
4062 # Check for GNU $ac_path_EGREP
4063 case `"$ac_path_EGREP" --version 2>&1` in
4065 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4071 cat "conftest.in" "conftest.in" >"conftest.tmp"
4072 mv "conftest.tmp" "conftest.in"
4073 cp "conftest.in" "conftest.nl"
4074 echo 'EGREP' >> "conftest.nl"
4075 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4077 ac_count=`expr $ac_count + 1`
4078 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4079 # Best one so far, save it but keep looking for a better one
4080 ac_cv_path_EGREP="$ac_path_EGREP"
4081 ac_path_EGREP_max=$ac_count
4083 # 10*(2^10) chars as input seems more than enough
4084 test $ac_count -gt 10 && break
4086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 $ac_path_EGREP_found && break 3
4100 EGREP="$ac_cv_path_EGREP"
4101 if test -z "$EGREP"; then
4102 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4103 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4104 { (exit 1); exit 1; }; }
4108 ac_cv_path_EGREP=$EGREP
4114 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4115 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4116 EGREP="$ac_cv_path_EGREP"
4119 if test $ac_cv_c_compiler_gnu = yes; then
4120 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4121 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4122 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 ac_pattern="Autoconf.*'x'"
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4137 ac_cv_prog_gcc_traditional=yes
4139 ac_cv_prog_gcc_traditional=no
4144 if test $ac_cv_prog_gcc_traditional = no; then
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156 ac_cv_prog_gcc_traditional=yes
4162 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4164 if test $ac_cv_prog_gcc_traditional = yes; then
4165 CC="$CC -traditional"
4169 BASECC=`basename $CC`
4171 if test "x$BASECC" = xgcc; then
4172 cat >>confdefs.h <<\_ACEOF
4178 # Extract the first word of "$CXX", so it can be a program name with args.
4179 set dummy $CXX; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_CXX+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4210 if test -n "$CXX"; then
4211 { echo "$as_me:$LINENO: result: $CXX" >&5
4212 echo "${ECHO_T}$CXX" >&6; }
4214 { echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6; }
4219 if test ! -e $CXX; then
4220 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4221 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4222 { (exit 1); exit 1; }; }
4225 # Find a good install program. We prefer a C program (faster),
4226 # so one script is as good as another. But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 # Account for people who put trailing slashes in PATH elements.
4251 ./ | .// | /cC/* | \
4252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4256 # OSF1 and SCO ODT 3.0 have their own names for install.
4257 # Don't use installbsd from OSF since it installs stuff as root
4259 for ac_prog in ginstall scoinst install; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4262 if test $ac_prog = install &&
4263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264 # AIX install. It has an incompatible calling convention.
4266 elif test $ac_prog = install &&
4267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268 # program-specific install script used by HP pwplus--don't use.
4271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4284 if test "${ac_cv_path_install+set}" = set; then
4285 INSTALL=$ac_cv_path_install
4287 # As a last resort, use the slow shell script. Don't cache a
4288 # value for INSTALL within a source directory, because that will
4289 # break other packages using the cache if that directory is
4290 # removed, or if the value is a relative name.
4291 INSTALL=$ac_install_sh
4294 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4295 echo "${ECHO_T}$INSTALL" >&6; }
4297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4298 # It thinks the first close brace ends the variable substitution.
4299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4305 # Extract the first word of "mv", so it can be a program name with args.
4306 set dummy mv; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_path_MV+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4337 if test -n "$MV"; then
4338 { echo "$as_me:$LINENO: result: $MV" >&5
4339 echo "${ECHO_T}$MV" >&6; }
4341 { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4346 # Extract the first word of "rm", so it can be a program name with args.
4347 set dummy rm; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_REMOVE+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4377 REMOVE=$ac_cv_path_REMOVE
4378 if test -n "$REMOVE"; then
4379 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4380 echo "${ECHO_T}$REMOVE" >&6; }
4382 { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4387 # Extract the first word of "cp", so it can be a program name with args.
4388 set dummy cp; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_CP+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4419 if test -n "$CP"; then
4420 { echo "$as_me:$LINENO: result: $CP" >&5
4421 echo "${ECHO_T}$CP" >&6; }
4423 { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4428 # Extract the first word of "sed", so it can be a program name with args.
4429 set dummy sed; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_SED+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4460 if test -n "$SED"; then
4461 { echo "$as_me:$LINENO: result: $SED" >&5
4462 echo "${ECHO_T}$SED" >&6; }
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 # Extract the first word of "echo", so it can be a program name with args.
4470 set dummy echo; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_ECHO+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4500 ECHO=$ac_cv_path_ECHO
4501 if test -n "$ECHO"; then
4502 { echo "$as_me:$LINENO: result: $ECHO" >&5
4503 echo "${ECHO_T}$ECHO" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4510 # Extract the first word of "cmp", so it can be a program name with args.
4511 set dummy cmp; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_CMP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4542 if test -n "$CMP"; then
4543 { echo "$as_me:$LINENO: result: $CMP" >&5
4544 echo "${ECHO_T}$CMP" >&6; }
4546 { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4551 # Extract the first word of "tbl", so it can be a program name with args.
4552 set dummy tbl; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_TBL+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4583 if test -n "$TBL"; then
4584 { echo "$as_me:$LINENO: result: $TBL" >&5
4585 echo "${ECHO_T}$TBL" >&6; }
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4592 # Extract the first word of "ar", so it can be a program name with args.
4593 set dummy ar; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_AR+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4624 if test -n "$AR"; then
4625 { echo "$as_me:$LINENO: result: $AR" >&5
4626 echo "${ECHO_T}$AR" >&6; }
4628 { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4633 # Extract the first word of "openssl", so it can be a program name with args.
4634 set dummy openssl; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_OPENSSL+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4664 OPENSSL=$ac_cv_path_OPENSSL
4665 if test -n "$OPENSSL"; then
4666 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4667 echo "${ECHO_T}$OPENSSL" >&6; }
4669 { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4674 # Extract the first word of "mtx", so it can be a program name with args.
4675 set dummy mtx; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_MTX+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4706 if test -n "$MTX"; then
4707 { echo "$as_me:$LINENO: result: $MTX" >&5
4708 echo "${ECHO_T}$MTX" >&6; }
4710 { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4715 # Extract the first word of "dd", so it can be a program name with args.
4716 set dummy dd; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_DD+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4747 if test -n "$DD"; then
4748 { echo "$as_me:$LINENO: result: $DD" >&5
4749 echo "${ECHO_T}$DD" >&6; }
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4756 # Extract the first word of "mkisofs", so it can be a program name with args.
4757 set dummy mkisofs; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_MKISOFS+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4787 MKISOFS=$ac_cv_path_MKISOFS
4788 if test -n "$MKISOFS"; then
4789 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4790 echo "${ECHO_T}$MKISOFS" >&6; }
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4797 # Extract the first word of "python", so it can be a program name with args.
4798 set dummy python; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_PYTHON+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4828 PYTHON=$ac_cv_path_PYTHON
4829 if test -n "$PYTHON"; then
4830 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4831 echo "${ECHO_T}$PYTHON" >&6; }
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4838 # Extract the first word of "growisofs", so it can be a program name with args.
4839 set dummy growisofs; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4869 GROWISOFS=$ac_cv_path_GROWISOFS
4870 if test -n "$GROWISOFS"; then
4871 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4872 echo "${ECHO_T}$GROWISOFS" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4880 set dummy dvd+rw-mediainfo; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 case $DVDRWMEDIAINFO in
4888 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4910 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4911 if test -n "$DVDRWMEDIAINFO"; then
4912 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4913 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4921 set dummy dvd+rw-format; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 case $DVDRWFORMAT in
4929 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4951 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4952 if test -n "$DVDRWFORMAT"; then
4953 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4954 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4961 # Extract the first word of "pkg-config", so it can be a program name with args.
4962 set dummy pkg-config; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4992 PKGCONFIG=$ac_cv_path_PKGCONFIG
4993 if test -n "$PKGCONFIG"; then
4994 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4995 echo "${ECHO_T}$PKGCONFIG" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5002 # Extract the first word of "qmake", so it can be a program name with args.
5003 set dummy qmake; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_QMAKE+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5033 QMAKE=$ac_cv_path_QMAKE
5034 if test -n "$QMAKE"; then
5035 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5036 echo "${ECHO_T}$QMAKE" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5043 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5044 set dummy qmake-qt4; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5074 QMAKEQT4=$ac_cv_path_QMAKEQT4
5075 if test -n "$QMAKEQT4"; then
5076 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5077 echo "${ECHO_T}$QMAKEQT4" >&6; }
5079 { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5085 if test "x$WXCONFIG" = x; then
5088 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5089 set dummy ${WXCONFIG}; ac_word=$2
5090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5092 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5119 WXCONFIG=$ac_cv_path_WXCONFIG
5120 if test -n "$WXCONFIG"; then
5121 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5122 echo "${ECHO_T}$WXCONFIG" >&6; }
5124 { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5130 # Extract the first word of "cdrecord", so it can be a program name with args.
5131 set dummy cdrecord; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_CDRECORD+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5161 CDRECORD=$ac_cv_path_CDRECORD
5162 if test -n "$CDRECORD"; then
5163 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5164 echo "${ECHO_T}$CDRECORD" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5171 # Extract the first word of "pidof", so it can be a program name with args.
5172 set dummy pidof; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_PIDOF+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5202 PIDOF=$ac_cv_path_PIDOF
5203 if test -n "$PIDOF"; then
5204 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5205 echo "${ECHO_T}$PIDOF" >&6; }
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5212 for ac_prog in gawk mawk nawk awk
5214 # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5218 if test "${ac_cv_prog_AWK+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 if test -n "$AWK"; then
5222 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_AWK="$ac_prog"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 if test -n "$AWK"; then
5243 { echo "$as_me:$LINENO: result: $AWK" >&5
5244 echo "${ECHO_T}$AWK" >&6; }
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5251 test -n "$AWK" && break
5254 # Some AWK programs fail, so test it and warn the user
5255 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5256 { if ((prog == $2) || (("(" prog ")") == $2) ||
5257 (("" prog "") == $2) ||
5258 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5260 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5261 The regex engine of $AWK is too broken to be used you
5262 might want to install GNU AWK.
5263 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5264 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265 The regex engine of $AWK is too broken to be used you
5266 might want to install GNU AWK.
5267 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5268 { (exit 1); exit 1; }; }
5271 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5272 set dummy $THE_AWK; ac_word=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_path_AWK+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5303 if test -n "$AWK"; then
5304 { echo "$as_me:$LINENO: result: $AWK" >&5
5305 echo "${ECHO_T}$AWK" >&6; }
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5314 test -n "$ARFLAG" || ARFLAGS="cr"
5325 # Check whether --enable-libtool was given.
5326 if test "${enable_libtool+set}" = set; then
5327 enableval=$enable_libtool;
5328 if test x$enableval = xno; then
5337 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5338 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5343 macro_version='2.2.6'
5344 macro_revision='1.3012'
5358 ltmain="$ac_aux_dir/ltmain.sh"
5360 # Make sure we can run config.sub.
5361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5362 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5363 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5364 { (exit 1); exit 1; }; }
5366 { echo "$as_me:$LINENO: checking build system type" >&5
5367 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5368 if test "${ac_cv_build+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 ac_build_alias=$build_alias
5372 test "x$ac_build_alias" = x &&
5373 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5374 test "x$ac_build_alias" = x &&
5375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5377 { (exit 1); exit 1; }; }
5378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5379 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5380 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5381 { (exit 1); exit 1; }; }
5384 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5385 echo "${ECHO_T}$ac_cv_build" >&6; }
5386 case $ac_cv_build in
5388 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5389 echo "$as_me: error: invalid value of canonical build" >&2;}
5390 { (exit 1); exit 1; }; };;
5393 ac_save_IFS=$IFS; IFS='-'
5399 # Remember, the first character of IFS is used to create $*,
5400 # except with old shells:
5403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5406 { echo "$as_me:$LINENO: checking host system type" >&5
5407 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5408 if test "${ac_cv_host+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 if test "x$host_alias" = x; then
5412 ac_cv_host=$ac_cv_build
5414 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5415 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5416 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5417 { (exit 1); exit 1; }; }
5421 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5422 echo "${ECHO_T}$ac_cv_host" >&6; }
5425 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5426 echo "$as_me: error: invalid value of canonical host" >&2;}
5427 { (exit 1); exit 1; }; };;
5430 ac_save_IFS=$IFS; IFS='-'
5436 # Remember, the first character of IFS is used to create $*,
5437 # except with old shells:
5440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5443 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5444 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5445 if test "${ac_cv_path_SED+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5449 for ac_i in 1 2 3 4 5 6 7; do
5450 ac_script="$ac_script$as_nl$ac_script"
5452 echo "$ac_script" | sed 99q >conftest.sed
5453 $as_unset ac_script || ac_script=
5454 # Extract the first word of "sed gsed" to use in msg output
5455 if test -z "$SED"; then
5456 set dummy sed gsed; ac_prog_name=$2
5457 if test "${ac_cv_path_SED+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_path_SED_found=false
5461 # Loop through the user's path and test for each of PROGNAME-LIST
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_prog in sed gsed; do
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5470 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5471 # Check for GNU ac_path_SED and select it if it is found.
5472 # Check for GNU $ac_path_SED
5473 case `"$ac_path_SED" --version 2>&1` in
5475 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5478 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5481 cat "conftest.in" "conftest.in" >"conftest.tmp"
5482 mv "conftest.tmp" "conftest.in"
5483 cp "conftest.in" "conftest.nl"
5484 echo '' >> "conftest.nl"
5485 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5487 ac_count=`expr $ac_count + 1`
5488 if test $ac_count -gt ${ac_path_SED_max-0}; then
5489 # Best one so far, save it but keep looking for a better one
5490 ac_cv_path_SED="$ac_path_SED"
5491 ac_path_SED_max=$ac_count
5493 # 10*(2^10) chars as input seems more than enough
5494 test $ac_count -gt 10 && break
5496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5500 $ac_path_SED_found && break 3
5510 SED="$ac_cv_path_SED"
5511 if test -z "$SED"; then
5512 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5513 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5514 { (exit 1); exit 1; }; }
5522 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5523 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5524 SED="$ac_cv_path_SED"
5527 test -z "$SED" && SED=sed
5528 Xsed="$SED -e 1s/^X//"
5540 { echo "$as_me:$LINENO: checking for fgrep" >&5
5541 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5542 if test "${ac_cv_path_FGREP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5546 then ac_cv_path_FGREP="$GREP -F"
5548 # Extract the first word of "fgrep" to use in msg output
5549 if test -z "$FGREP"; then
5550 set dummy fgrep; ac_prog_name=$2
5551 if test "${ac_cv_path_FGREP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_path_FGREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 test -z "$as_dir" && as_dir=.
5561 for ac_prog in fgrep; do
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5564 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5565 # Check for GNU ac_path_FGREP and select it if it is found.
5566 # Check for GNU $ac_path_FGREP
5567 case `"$ac_path_FGREP" --version 2>&1` in
5569 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 echo 'FGREP' >> "conftest.nl"
5579 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581 ac_count=`expr $ac_count + 1`
5582 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_FGREP="$ac_path_FGREP"
5585 ac_path_FGREP_max=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594 $ac_path_FGREP_found && break 3
5604 FGREP="$ac_cv_path_FGREP"
5605 if test -z "$FGREP"; then
5606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608 { (exit 1); exit 1; }; }
5612 ac_cv_path_FGREP=$FGREP
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5620 FGREP="$ac_cv_path_FGREP"
5623 test -z "$GREP" && GREP=grep
5643 # Check whether --with-gnu-ld was given.
5644 if test "${with_gnu_ld+set}" = set; then
5645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5651 if test "$GCC" = yes; then
5652 # Check if gcc -print-prog-name=ld gives a path.
5653 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5654 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5657 # gcc leaves a trailing carriage return which upsets mingw
5658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5663 # Accept absolute paths.
5665 re_direlt='/[^/][^/]*/\.\./'
5666 # Canonicalize the pathname of ld
5667 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5668 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5669 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5671 test -z "$LD" && LD="$ac_prog"
5674 # If it fails, then pretend we aren't using GCC.
5678 # If it is relative, then search for the first ld in PATH.
5682 elif test "$with_gnu_ld" = yes; then
5683 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5684 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5686 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5687 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5689 if test "${lt_cv_path_LD+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test -z "$LD"; then
5693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5694 for ac_dir in $PATH; do
5696 test -z "$ac_dir" && ac_dir=.
5697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5698 lt_cv_path_LD="$ac_dir/$ac_prog"
5699 # Check to see if the program is GNU ld. I'd rather use --version,
5700 # but apparently some variants of GNU ld only accept -v.
5701 # Break only if it was the GNU/non-GNU ld that we prefer.
5702 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5703 *GNU* | *'with BFD'*)
5704 test "$with_gnu_ld" != no && break
5707 test "$with_gnu_ld" != yes && break
5714 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5719 if test -n "$LD"; then
5720 { echo "$as_me:$LINENO: result: $LD" >&5
5721 echo "${ECHO_T}$LD" >&6; }
5723 { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5726 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5728 { (exit 1); exit 1; }; }
5729 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5735 case `$LD -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737 lt_cv_prog_gnu_ld=yes
5740 lt_cv_prog_gnu_ld=no
5744 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5745 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5746 with_gnu_ld=$lt_cv_prog_gnu_ld
5756 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5757 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5758 if test "${lt_cv_path_NM+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test -n "$NM"; then
5762 # Let the user override the test.
5765 lt_nm_to_check="${ac_tool_prefix}nm"
5766 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767 lt_nm_to_check="$lt_nm_to_check nm"
5769 for lt_tmp_nm in $lt_nm_to_check; do
5770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5773 test -z "$ac_dir" && ac_dir=.
5774 tmp_nm="$ac_dir/$lt_tmp_nm"
5775 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776 # Check to see if the nm accepts a BSD-compat flag.
5777 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778 # nm: unknown option "B" ignored
5779 # Tru64's nm complains that /dev/null is an invalid object file
5780 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781 */dev/null* | *'Invalid file or object type'*)
5782 lt_cv_path_NM="$tmp_nm -B"
5786 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5788 lt_cv_path_NM="$tmp_nm -p"
5792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793 continue # so that we can try to find one that supports BSD flags
5802 : ${lt_cv_path_NM=no}
5805 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5807 if test "$lt_cv_path_NM" != "no"; then
5810 # Didn't find any BSD compatible name lister, look for dumpbin.
5811 if test -n "$ac_tool_prefix"; then
5812 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5818 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 if test -n "$DUMPBIN"; then
5822 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 DUMPBIN=$ac_cv_prog_DUMPBIN
5842 if test -n "$DUMPBIN"; then
5843 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5844 echo "${ECHO_T}$DUMPBIN" >&6; }
5846 { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5851 test -n "$DUMPBIN" && break
5854 if test -z "$DUMPBIN"; then
5855 ac_ct_DUMPBIN=$DUMPBIN
5856 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5862 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 if test -n "$ac_ct_DUMPBIN"; then
5866 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5888 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5890 { echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6; }
5895 test -n "$ac_ct_DUMPBIN" && break
5898 if test "x$ac_ct_DUMPBIN" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet. If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet. If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5911 DUMPBIN=$ac_ct_DUMPBIN
5916 if test "$DUMPBIN" != ":"; then
5920 test -z "$NM" && NM=nm
5927 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5928 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5929 if test "${lt_cv_nm_interface+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 lt_cv_nm_interface="BSD nm"
5933 echo "int some_variable = 0;" > conftest.$ac_ext
5934 (eval echo "\"\$as_me:5934: $ac_compile\"" >&5)
5935 (eval "$ac_compile" 2>conftest.err)
5936 cat conftest.err >&5
5937 (eval echo "\"\$as_me:5937: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5938 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5939 cat conftest.err >&5
5940 (eval echo "\"\$as_me:5940: output\"" >&5)
5941 cat conftest.out >&5
5942 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5943 lt_cv_nm_interface="MS dumpbin"
5947 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5948 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5950 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5951 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5953 if test "$LN_S" = "ln -s"; then
5954 { echo "$as_me:$LINENO: result: yes" >&5
5955 echo "${ECHO_T}yes" >&6; }
5957 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5958 echo "${ECHO_T}no, using $LN_S" >&6; }
5961 # find the maximum length of command line arguments
5962 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5963 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5964 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 # On DJGPP, this test can blow up pretty badly due to problems in libc
5973 # (any single argument exceeding 2000 bytes causes a buffer overrun
5974 # during glob expansion). Even if it were fixed, the result of this
5975 # check would be larger than it should be.
5976 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5980 # Under GNU Hurd, this test is not required because there is
5981 # no limit to the length of command line arguments.
5982 # Libtool will interpret -1 as no limit whatsoever
5983 lt_cv_sys_max_cmd_len=-1;
5986 cygwin* | mingw* | cegcc*)
5987 # On Win9x/ME, this test blows up -- it succeeds, but takes
5988 # about 5 minutes as the teststring grows exponentially.
5989 # Worse, since 9x/ME are not pre-emptively multitasking,
5990 # you end up with a "frozen" computer, even though with patience
5991 # the test eventually succeeds (with a max line length of 256k).
5992 # Instead, let's just punt: use the minimum linelength reported by
5993 # all of the supported platforms: 8192 (on NT/2K/XP).
5994 lt_cv_sys_max_cmd_len=8192;
5998 # On AmigaOS with pdksh, this test takes hours, literally.
5999 # So we just punt and use a minimum line length of 8192.
6000 lt_cv_sys_max_cmd_len=8192;
6003 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6004 # This has been around since 386BSD, at least. Likely further.
6005 if test -x /sbin/sysctl; then
6006 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6007 elif test -x /usr/sbin/sysctl; then
6008 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6010 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6012 # And add a safety zone
6013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6018 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6019 lt_cv_sys_max_cmd_len=196608
6023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6025 # nice to cause kernel panics so lets avoid the loop below.
6026 # First set a reasonable default.
6027 lt_cv_sys_max_cmd_len=16384
6029 if test -x /sbin/sysconfig; then
6030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6031 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6036 lt_cv_sys_max_cmd_len=102400
6038 sysv5* | sco5v6* | sysv4.2uw2*)
6039 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6040 if test -n "$kargmax"; then
6041 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6043 lt_cv_sys_max_cmd_len=32768
6047 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6048 if test -n "$lt_cv_sys_max_cmd_len"; then
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6052 # Make teststring a little bigger before we do anything with it.
6053 # a 1K string should be a reasonable start.
6054 for i in 1 2 3 4 5 6 7 8 ; do
6055 teststring=$teststring$teststring
6057 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6058 # If test is not a shell built-in, we'll probably end up computing a
6059 # maximum length that is only half of the actual maximum length, but
6061 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6062 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6063 test $i != 17 # 1/2 MB should be enough
6066 teststring=$teststring$teststring
6068 # Only check the string length outside the loop.
6069 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6071 # Add a significant safety factor because C++ compilers can tack on
6072 # massive amounts of additional arguments before passing them to the
6073 # linker. It appears as though 1/2 is a usable value.
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6081 if test -n $lt_cv_sys_max_cmd_len ; then
6082 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6083 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6085 { echo "$as_me:$LINENO: result: none" >&5
6086 echo "${ECHO_T}none" >&6; }
6088 max_cmd_len=$lt_cv_sys_max_cmd_len
6099 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6100 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6101 # Try some XSI features
6104 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6106 && eval 'test $(( 1 + 1 )) -eq 2 \
6107 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6109 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6110 echo "${ECHO_T}$xsi_shell" >&6; }
6113 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6114 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6116 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6118 && lt_shell_append=yes
6119 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6120 echo "${ECHO_T}$lt_shell_append" >&6; }
6123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6133 # test EBCDIC or ASCII
6134 case `echo X|tr X '\101'` in
6135 A) # ASCII based system
6136 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6137 lt_SP2NL='tr \040 \012'
6138 lt_NL2SP='tr \015\012 \040\040'
6140 *) # EBCDIC based system
6141 lt_SP2NL='tr \100 \n'
6142 lt_NL2SP='tr \r\n \100\100'
6154 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6155 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6156 if test "${lt_cv_ld_reload_flag+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 lt_cv_ld_reload_flag='-r'
6161 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6162 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6163 reload_flag=$lt_cv_ld_reload_flag
6164 case $reload_flag in
6166 *) reload_flag=" $reload_flag" ;;
6168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6171 if test "$GCC" = yes; then
6172 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 if test -n "$OBJDUMP"; then
6196 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 OBJDUMP=$ac_cv_prog_OBJDUMP
6216 if test -n "$OBJDUMP"; then
6217 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6218 echo "${ECHO_T}$OBJDUMP" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6226 if test -z "$ac_cv_prog_OBJDUMP"; then
6227 ac_ct_OBJDUMP=$OBJDUMP
6228 # Extract the first word of "objdump", so it can be a program name with args.
6229 set dummy objdump; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 if test -n "$ac_ct_OBJDUMP"; then
6236 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6256 if test -n "$ac_ct_OBJDUMP"; then
6257 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6258 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6264 if test "x$ac_ct_OBJDUMP" = x; then
6267 case $cross_compiling:$ac_tool_warned in
6269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6270 whose name does not start with the host triplet. If you think this
6271 configuration is useful to you, please write to autoconf@gnu.org." >&5
6272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6273 whose name does not start with the host triplet. If you think this
6274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6275 ac_tool_warned=yes ;;
6277 OBJDUMP=$ac_ct_OBJDUMP
6280 OBJDUMP="$ac_cv_prog_OBJDUMP"
6283 test -z "$OBJDUMP" && OBJDUMP=objdump
6293 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6294 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6295 if test "${lt_cv_deplibs_check_method+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 lt_cv_file_magic_cmd='$MAGIC_CMD'
6299 lt_cv_file_magic_test_file=
6300 lt_cv_deplibs_check_method='unknown'
6301 # Need to set the preceding variable on all platforms that support
6302 # interlibrary dependencies.
6303 # 'none' -- dependencies not supported.
6304 # `unknown' -- same as none, but documents that we really don't know.
6305 # 'pass_all' -- all dependencies passed with no checks.
6306 # 'test_compile' -- check by making test program.
6307 # 'file_magic [[regex]]' -- check by looking for files in library path
6308 # which responds to the $file_magic_cmd with a given extended regex.
6309 # If you have `file' or equivalent on your system and you're not sure
6310 # whether `pass_all' will *always* work, you probably want this one.
6314 lt_cv_deplibs_check_method=pass_all
6318 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6323 lt_cv_file_magic_cmd='/usr/bin/file -L'
6324 lt_cv_file_magic_test_file=/shlib/libc.so
6328 # func_win32_libid is a shell function defined in ltmain.sh
6329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330 lt_cv_file_magic_cmd='func_win32_libid'
6334 # Base MSYS/MinGW do not provide the 'file' command needed by
6335 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6336 # unless we find 'file', for example because we are cross-compiling.
6337 if ( file / ) >/dev/null 2>&1; then
6338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6339 lt_cv_file_magic_cmd='func_win32_libid'
6341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6342 lt_cv_file_magic_cmd='$OBJDUMP -f'
6347 # use the weaker test based on 'objdump'. See mingw*.
6348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6349 lt_cv_file_magic_cmd='$OBJDUMP -f'
6352 darwin* | rhapsody*)
6353 lt_cv_deplibs_check_method=pass_all
6356 freebsd* | dragonfly*)
6357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6360 # Not sure whether the presence of OpenBSD here was a mistake.
6361 # Let's accept both of them until this is cleared up.
6362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6363 lt_cv_file_magic_cmd=/usr/bin/file
6364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6368 lt_cv_deplibs_check_method=pass_all
6373 lt_cv_deplibs_check_method=pass_all
6376 hpux10.20* | hpux11*)
6377 lt_cv_file_magic_cmd=/usr/bin/file
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6384 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]'
6385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6399 irix5* | irix6* | nonstopux*)
6401 *-32|*"-32 ") libmagic=32-bit;;
6402 *-n32|*"-n32 ") libmagic=N32;;
6403 *-64|*"-64 ") libmagic=64-bit;;
6404 *) libmagic=never-match;;
6406 lt_cv_deplibs_check_method=pass_all
6409 # This must be Linux ELF.
6410 linux* | k*bsd*-gnu)
6411 lt_cv_deplibs_check_method=pass_all
6415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6429 lt_cv_deplibs_check_method=pass_all
6433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6440 osf3* | osf4* | osf5*)
6441 lt_cv_deplibs_check_method=pass_all
6445 lt_cv_deplibs_check_method=pass_all
6449 lt_cv_deplibs_check_method=pass_all
6452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453 lt_cv_deplibs_check_method=pass_all
6457 case $host_vendor in
6459 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]'
6460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6463 lt_cv_deplibs_check_method=pass_all
6466 lt_cv_file_magic_cmd='/bin/file'
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6470 lt_cv_file_magic_cmd='/bin/file'
6471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472 lt_cv_file_magic_test_file=/lib/libc.so
6475 lt_cv_deplibs_check_method=pass_all
6478 lt_cv_deplibs_check_method=pass_all
6484 lt_cv_deplibs_check_method=pass_all
6489 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6490 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6491 file_magic_cmd=$lt_cv_file_magic_cmd
6492 deplibs_check_method=$lt_cv_deplibs_check_method
6493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}ar; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_AR+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 if test -n "$AR"; then
6515 ac_cv_prog_AR="$AR" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_AR="${ac_tool_prefix}ar"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 if test -n "$AR"; then
6536 { echo "$as_me:$LINENO: result: $AR" >&5
6537 echo "${ECHO_T}$AR" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6545 if test -z "$ac_cv_prog_AR"; then
6547 # Extract the first word of "ar", so it can be a program name with args.
6548 set dummy ar; ac_word=$2
6549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 if test -n "$ac_ct_AR"; then
6555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_ac_ct_AR="ar"
6565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6575 if test -n "$ac_ct_AR"; then
6576 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6577 echo "${ECHO_T}$ac_ct_AR" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6583 if test "x$ac_ct_AR" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6589 whose name does not start with the host triplet. If you think this
6590 configuration is useful to you, please write to autoconf@gnu.org." >&5
6591 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6592 whose name does not start with the host triplet. If you think this
6593 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6594 ac_tool_warned=yes ;;
6602 test -z "$AR" && AR=ar
6603 test -z "$AR_FLAGS" && AR_FLAGS=cru
6615 if test -n "$ac_tool_prefix"; then
6616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}strip; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_prog_STRIP+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 if test -n "$STRIP"; then
6624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 STRIP=$ac_cv_prog_STRIP
6644 if test -n "$STRIP"; then
6645 { echo "$as_me:$LINENO: result: $STRIP" >&5
6646 echo "${ECHO_T}$STRIP" >&6; }
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6654 if test -z "$ac_cv_prog_STRIP"; then
6656 # Extract the first word of "strip", so it can be a program name with args.
6657 set dummy strip; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 if test -n "$ac_ct_STRIP"; then
6664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_ac_ct_STRIP="strip"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6684 if test -n "$ac_ct_STRIP"; then
6685 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6686 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6688 { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6692 if test "x$ac_ct_STRIP" = x; then
6695 case $cross_compiling:$ac_tool_warned in
6697 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6698 whose name does not start with the host triplet. If you think this
6699 configuration is useful to you, please write to autoconf@gnu.org." >&5
6700 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6701 whose name does not start with the host triplet. If you think this
6702 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6703 ac_tool_warned=yes ;;
6708 STRIP="$ac_cv_prog_STRIP"
6711 test -z "$STRIP" && STRIP=:
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 RANLIB=$ac_cv_prog_RANLIB
6747 if test -n "$RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749 echo "${ECHO_T}$RANLIB" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6757 if test -z "$ac_cv_prog_RANLIB"; then
6758 ac_ct_RANLIB=$RANLIB
6759 # Extract the first word of "ranlib", so it can be a program name with args.
6760 set dummy ranlib; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 if test -n "$ac_ct_RANLIB"; then
6767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_ac_ct_RANLIB="ranlib"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787 if test -n "$ac_ct_RANLIB"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6795 if test "x$ac_ct_RANLIB" = x; then
6798 case $cross_compiling:$ac_tool_warned in
6800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet. If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&5
6803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804 whose name does not start with the host triplet. If you think this
6805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806 ac_tool_warned=yes ;;
6808 RANLIB=$ac_ct_RANLIB
6811 RANLIB="$ac_cv_prog_RANLIB"
6814 test -z "$RANLIB" && RANLIB=:
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6826 if test -n "$RANLIB"; then
6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6871 # If no C compiler was specified, use CC.
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877 # Allow CC to be a program name with arguments.
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897 # Define system-specific variables.
6902 cygwin* | mingw* | pw32* | cegcc*)
6903 symcode='[ABCDGISTW]'
6906 if test "$host_cpu" = ia64; then
6907 symcode='[ABCDEGRST]'
6911 symcode='[BCDEGRST]'
6914 symcode='[BCDEGQRST]'
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936 symcode='[ABCDGIRSTW]' ;;
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6946 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'"
6948 # Handle CRLF in mingw tool chain
6952 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6959 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962 # Write the raw and C identifiers.
6963 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964 # Fake it for dumpbin and say T for any non-static function
6965 # and D for any global variable.
6966 # Also find C++ and __fastcall symbols from MSVC++,
6967 # which start with @ or ?.
6968 lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 " {last_section=section; section=\$ 3};"\
6970 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 " \$ 0!~/External *\|/{next};"\
6972 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 " {if(hide[section]) next};"\
6974 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 " ' prfx=^$ac_symprfx"
6980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6983 # Check to see that the pipe works correctly.
6987 cat > conftest.$ac_ext <<_LT_EOF
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; then
7005 # Now try to grab the symbols.
7007 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7008 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && test -s "$nlist"; then
7012 # Try sorting and uniquifying the output.
7013 if sort "$nlist" | uniq > "$nlist"T; then
7014 mv -f "$nlist"T "$nlist"
7019 # Make sure that we snagged all the symbols we need.
7020 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022 cat <<_LT_EOF > conftest.$ac_ext
7028 # Now generate the symbol file.
7029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7031 cat <<_LT_EOF >> conftest.$ac_ext
7033 /* The mapping between symbol names and symbols. */
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7040 { "@PROGRAM@", (void *) 0 },
7042 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043 cat <<\_LT_EOF >> conftest.$ac_ext
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050 return lt__PROGRAM__LTX_preloaded_symbols;
7058 # Now try linking the two files.
7059 mv conftest.$ac_objext conftstm.$ac_objext
7060 lt_save_LIBS="$LIBS"
7061 lt_save_CFLAGS="$CFLAGS"
7062 LIBS="conftstm.$ac_objext"
7063 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7071 LIBS="$lt_save_LIBS"
7072 CFLAGS="$lt_save_CFLAGS"
7074 echo "cannot find nm_test_func in $nlist" >&5
7077 echo "cannot find nm_test_var in $nlist" >&5
7080 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7083 echo "$progname: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7086 rm -rf conftest* conftst*
7088 # Do not use the global_symbol_pipe unless it works.
7089 if test "$pipe_works" = yes; then
7092 lt_cv_sys_global_symbol_pipe=
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099 lt_cv_sys_global_symbol_to_cdecl=
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102 { echo "$as_me:$LINENO: result: failed" >&5
7103 echo "${ECHO_T}failed" >&6; }
7105 { echo "$as_me:$LINENO: result: ok" >&5
7106 echo "${ECHO_T}ok" >&6; }
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then
7132 enableval=$enable_libtool_lock;
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137 # Some flags need to be propagated to the compiler or linker for good
7141 # Find out which ABI we are using.
7142 echo 'int i;' > conftest.$ac_ext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; then
7148 case `/usr/bin/file conftest.$ac_objext` in
7160 # Find out which ABI we are using.
7161 echo '#line 7161 "configure"' > conftest.$ac_ext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; then
7167 if test "$lt_cv_prog_gnu_ld" = yes; then
7168 case `/usr/bin/file conftest.$ac_objext` in
7170 LD="${LD-ld} -melf32bsmip"
7173 LD="${LD-ld} -melf32bmipn32"
7176 LD="${LD-ld} -melf64bmip"
7180 case `/usr/bin/file conftest.$ac_objext` in
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; then
7205 case `/usr/bin/file conftest.o` in
7208 x86_64-*kfreebsd*-gnu)
7209 LD="${LD-ld} -m elf_i386_fbsd"
7212 LD="${LD-ld} -m elf_i386"
7214 ppc64-*linux*|powerpc64-*linux*)
7215 LD="${LD-ld} -m elf32ppclinux"
7218 LD="${LD-ld} -m elf_s390"
7221 LD="${LD-ld} -m elf32_sparc"
7227 x86_64-*kfreebsd*-gnu)
7228 LD="${LD-ld} -m elf_x86_64_fbsd"
7231 LD="${LD-ld} -m elf_x86_64"
7233 ppc*-*linux*|powerpc*-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7240 LD="${LD-ld} -m elf64_sparc"
7250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251 SAVE_CFLAGS="$CFLAGS"
7252 CFLAGS="$CFLAGS -belf"
7253 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7254 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (ac_try="$ac_link"
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286 (eval "$ac_link") 2>conftest.er1
7288 grep -v '^ *+' conftest.er1 >conftest.err
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest$ac_exeext &&
7296 $as_test_x conftest$ac_exeext; then
7297 lt_cv_cc_needs_belf=yes
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7302 lt_cv_cc_needs_belf=no
7305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306 conftest$ac_exeext conftest.$ac_ext
7308 ac_cpp='$CPP $CPPFLAGS'
7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7314 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7315 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7316 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7317 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7318 CFLAGS="$SAVE_CFLAGS"
7322 # Find out which ABI we are using.
7323 echo 'int i;' > conftest.$ac_ext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; then
7329 case `/usr/bin/file conftest.o` in
7331 case $lt_cv_prog_gnu_ld in
7332 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7334 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7346 need_locks="$enable_libtool_lock"
7350 rhapsody* | darwin*)
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 if test -n "$DSYMUTIL"; then
7360 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7380 if test -n "$DSYMUTIL"; then
7381 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7382 echo "${ECHO_T}$DSYMUTIL" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7390 if test -z "$ac_cv_prog_DSYMUTIL"; then
7391 ac_ct_DSYMUTIL=$DSYMUTIL
7392 # Extract the first word of "dsymutil", so it can be a program name with args.
7393 set dummy dsymutil; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 if test -n "$ac_ct_DSYMUTIL"; then
7400 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7420 if test -n "$ac_ct_DSYMUTIL"; then
7421 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7422 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7424 { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7428 if test "x$ac_ct_DSYMUTIL" = x; then
7431 case $cross_compiling:$ac_tool_warned in
7433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7434 whose name does not start with the host triplet. If you think this
7435 configuration is useful to you, please write to autoconf@gnu.org." >&5
7436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7437 whose name does not start with the host triplet. If you think this
7438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7439 ac_tool_warned=yes ;;
7441 DSYMUTIL=$ac_ct_DSYMUTIL
7444 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7447 if test -n "$ac_tool_prefix"; then
7448 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 if test -n "$NMEDIT"; then
7456 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 NMEDIT=$ac_cv_prog_NMEDIT
7476 if test -n "$NMEDIT"; then
7477 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7478 echo "${ECHO_T}$NMEDIT" >&6; }
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7486 if test -z "$ac_cv_prog_NMEDIT"; then
7487 ac_ct_NMEDIT=$NMEDIT
7488 # Extract the first word of "nmedit", so it can be a program name with args.
7489 set dummy nmedit; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 if test -n "$ac_ct_NMEDIT"; then
7496 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7516 if test -n "$ac_ct_NMEDIT"; then
7517 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7518 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7520 { echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6; }
7524 if test "x$ac_ct_NMEDIT" = x; then
7527 case $cross_compiling:$ac_tool_warned in
7529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7530 whose name does not start with the host triplet. If you think this
7531 configuration is useful to you, please write to autoconf@gnu.org." >&5
7532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7533 whose name does not start with the host triplet. If you think this
7534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7535 ac_tool_warned=yes ;;
7537 NMEDIT=$ac_ct_NMEDIT
7540 NMEDIT="$ac_cv_prog_NMEDIT"
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_prog_LIPO+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 if test -n "$LIPO"; then
7552 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 LIPO=$ac_cv_prog_LIPO
7572 if test -n "$LIPO"; then
7573 { echo "$as_me:$LINENO: result: $LIPO" >&5
7574 echo "${ECHO_T}$LIPO" >&6; }
7576 { echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6; }
7582 if test -z "$ac_cv_prog_LIPO"; then
7584 # Extract the first word of "lipo", so it can be a program name with args.
7585 set dummy lipo; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 if test -n "$ac_ct_LIPO"; then
7592 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_prog_ac_ct_LIPO="lipo"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7612 if test -n "$ac_ct_LIPO"; then
7613 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7614 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7620 if test "x$ac_ct_LIPO" = x; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7626 whose name does not start with the host triplet. If you think this
7627 configuration is useful to you, please write to autoconf@gnu.org." >&5
7628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7629 whose name does not start with the host triplet. If you think this
7630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7631 ac_tool_warned=yes ;;
7636 LIPO="$ac_cv_prog_LIPO"
7639 if test -n "$ac_tool_prefix"; then
7640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7641 set dummy ${ac_tool_prefix}otool; ac_word=$2
7642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7644 if test "${ac_cv_prog_OTOOL+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 if test -n "$OTOOL"; then
7648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 OTOOL=$ac_cv_prog_OTOOL
7668 if test -n "$OTOOL"; then
7669 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7670 echo "${ECHO_T}$OTOOL" >&6; }
7672 { echo "$as_me:$LINENO: result: no" >&5
7673 echo "${ECHO_T}no" >&6; }
7678 if test -z "$ac_cv_prog_OTOOL"; then
7680 # Extract the first word of "otool", so it can be a program name with args.
7681 set dummy otool; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 if test -n "$ac_ct_OTOOL"; then
7688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_ac_ct_OTOOL="otool"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7708 if test -n "$ac_ct_OTOOL"; then
7709 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7710 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7712 { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7716 if test "x$ac_ct_OTOOL" = x; then
7719 case $cross_compiling:$ac_tool_warned in
7721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7722 whose name does not start with the host triplet. If you think this
7723 configuration is useful to you, please write to autoconf@gnu.org." >&5
7724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7725 whose name does not start with the host triplet. If you think this
7726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7727 ac_tool_warned=yes ;;
7732 OTOOL="$ac_cv_prog_OTOOL"
7735 if test -n "$ac_tool_prefix"; then
7736 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 if test -n "$OTOOL64"; then
7744 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 OTOOL64=$ac_cv_prog_OTOOL64
7764 if test -n "$OTOOL64"; then
7765 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7766 echo "${ECHO_T}$OTOOL64" >&6; }
7768 { echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6; }
7774 if test -z "$ac_cv_prog_OTOOL64"; then
7775 ac_ct_OTOOL64=$OTOOL64
7776 # Extract the first word of "otool64", so it can be a program name with args.
7777 set dummy otool64; ac_word=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 if test -n "$ac_ct_OTOOL64"; then
7784 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7793 ac_cv_prog_ac_ct_OTOOL64="otool64"
7794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804 if test -n "$ac_ct_OTOOL64"; then
7805 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7806 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7812 if test "x$ac_ct_OTOOL64" = x; then
7815 case $cross_compiling:$ac_tool_warned in
7817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7818 whose name does not start with the host triplet. If you think this
7819 configuration is useful to you, please write to autoconf@gnu.org." >&5
7820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7821 whose name does not start with the host triplet. If you think this
7822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7823 ac_tool_warned=yes ;;
7825 OTOOL64=$ac_ct_OTOOL64
7828 OTOOL64="$ac_cv_prog_OTOOL64"
7857 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7858 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7859 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 lt_cv_apple_cc_single_mod=no
7863 if test -z "${LT_MULTI_MODULE}"; then
7864 # By default we will add the -single_module flag. You can override
7865 # by either setting the environment variable LT_MULTI_MODULE
7866 # non-empty at configure time, or by adding -multi_module to the
7868 rm -rf libconftest.dylib*
7869 echo "int foo(void){return 1;}" > conftest.c
7870 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871 -dynamiclib -Wl,-single_module conftest.c" >&5
7872 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7875 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7876 lt_cv_apple_cc_single_mod=yes
7878 cat conftest.err >&5
7880 rm -rf libconftest.dylib*
7884 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7885 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7886 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7887 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7888 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 lt_cv_ld_exported_symbols_list=no
7892 save_LDFLAGS=$LDFLAGS
7893 echo "_main" > conftest.sym
7894 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7895 cat >conftest.$ac_ext <<_ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_link") 2>conftest.er1
7919 grep -v '^ *+' conftest.er1 >conftest.err
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && {
7924 test -z "$ac_c_werror_flag" ||
7925 test ! -s conftest.err
7926 } && test -s conftest$ac_exeext &&
7927 $as_test_x conftest$ac_exeext; then
7928 lt_cv_ld_exported_symbols_list=yes
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 lt_cv_ld_exported_symbols_list=no
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7937 conftest$ac_exeext conftest.$ac_ext
7938 LDFLAGS="$save_LDFLAGS"
7941 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7942 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7944 rhapsody* | darwin1.[012])
7945 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7948 darwin*) # darwin 5.x on
7949 # if running on 10.5 or later, the deployment target defaults
7950 # to the OS version, if on x86, and 10.4, the deployment
7951 # target defaults to 10.4. Don't you love it?
7952 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7953 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7954 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7956 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7962 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7963 _lt_dar_single_mod='$single_module'
7965 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7966 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7968 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7970 if test "$DSYMUTIL" != ":"; then
7971 _lt_dsymutil='~$DSYMUTIL $lib || :'
7978 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7980 if test "${ac_cv_header_stdc+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_cv_header_stdc=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_cv_header_stdc=no
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 if test $ac_cv_header_stdc = yes; then
8030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8041 $EGREP "memchr" >/dev/null 2>&1; then
8044 ac_cv_header_stdc=no
8050 if test $ac_cv_header_stdc = yes; then
8051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062 $EGREP "free" >/dev/null 2>&1; then
8065 ac_cv_header_stdc=no
8071 if test $ac_cv_header_stdc = yes; then
8072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8073 if test "$cross_compiling" = yes; then
8076 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8084 #if ((' ' & 0x0FF) == 0x020)
8085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8088 # define ISLOWER(c) \
8089 (('a' <= (c) && (c) <= 'i') \
8090 || ('j' <= (c) && (c) <= 'r') \
8091 || ('s' <= (c) && (c) <= 'z'))
8092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8100 for (i = 0; i < 256; i++)
8101 if (XOR (islower (i), ISLOWER (i))
8102 || toupper (i) != TOUPPER (i))
8107 rm -f conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8118 { (case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_try") 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8129 echo "$as_me: program exited with status $ac_status" >&5
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_cv_header_stdc=no
8136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8143 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8144 if test $ac_cv_header_stdc = yes; then
8146 cat >>confdefs.h <<\_ACEOF
8147 #define STDC_HEADERS 1
8152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8163 inttypes.h stdint.h unistd.h
8165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8179 #include <$ac_header>
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 eval "$as_ac_Header=yes"
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 eval "$as_ac_Header=no"
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 ac_res=`eval echo '${'$as_ac_Header'}'`
8209 { echo "$as_me:$LINENO: result: $ac_res" >&5
8210 echo "${ECHO_T}$ac_res" >&6; }
8211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212 cat >>confdefs.h <<_ACEOF
8213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8222 for ac_header in dlfcn.h
8224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8238 #include <$ac_header>
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_compile") 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && {
8254 test -z "$ac_c_werror_flag" ||
8255 test ! -s conftest.err
8256 } && test -s conftest.$ac_objext; then
8257 eval "$as_ac_Header=yes"
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 eval "$as_ac_Header=no"
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268 { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8271 cat >>confdefs.h <<_ACEOF
8272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282 ac_cpp='$CXXCPP $CPPFLAGS'
8283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8286 if test -z "$CXX"; then
8287 if test -n "$CCC"; then
8290 if test -n "$ac_tool_prefix"; then
8291 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8297 if test "${ac_cv_prog_CXX+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 if test -n "$CXX"; then
8301 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 if test -n "$CXX"; then
8322 { echo "$as_me:$LINENO: result: $CXX" >&5
8323 echo "${ECHO_T}$CXX" >&6; }
8325 { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8330 test -n "$CXX" && break
8333 if test -z "$CXX"; then
8335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8337 # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 if test -n "$ac_ct_CXX"; then
8345 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_ac_ct_CXX="$ac_prog"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8365 if test -n "$ac_ct_CXX"; then
8366 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8367 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8369 { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8374 test -n "$ac_ct_CXX" && break
8377 if test "x$ac_ct_CXX" = x; then
8380 case $cross_compiling:$ac_tool_warned in
8382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8383 whose name does not start with the host triplet. If you think this
8384 configuration is useful to you, please write to autoconf@gnu.org." >&5
8385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8386 whose name does not start with the host triplet. If you think this
8387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8388 ac_tool_warned=yes ;;
8396 # Provide some information about the compiler.
8397 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8398 ac_compiler=`set X $ac_compile; echo $2`
8399 { (ac_try="$ac_compiler --version >&5"
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compiler --version >&5") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }
8409 { (ac_try="$ac_compiler -v >&5"
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_compiler -v >&5") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }
8419 { (ac_try="$ac_compiler -V >&5"
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compiler -V >&5") 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }
8430 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8431 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_cxx_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.$ac_objext; then
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8482 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8483 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8484 GXX=`test $ac_compiler_gnu = yes && echo yes`
8485 ac_test_CXXFLAGS=${CXXFLAGS+set}
8486 ac_save_CXXFLAGS=$CXXFLAGS
8487 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8488 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8489 if test "${ac_cv_prog_cxx_g+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8493 ac_cxx_werror_flag=yes
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_cxx_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.$ac_objext; then
8528 ac_cv_prog_cxx_g=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8558 grep -v '^ *+' conftest.er1 >conftest.err
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_cxx_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8588 rm -f conftest.$ac_objext
8589 if { (ac_try="$ac_compile"
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_cxx_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_prog_cxx_g=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8622 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8624 if test "$ac_test_CXXFLAGS" = set; then
8625 CXXFLAGS=$ac_save_CXXFLAGS
8626 elif test $ac_cv_prog_cxx_g = yes; then
8627 if test "$GXX" = yes; then
8633 if test "$GXX" = yes; then
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8645 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8646 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8647 (test "X$CXX" != "Xg++"))) ; then
8649 ac_cpp='$CXXCPP $CPPFLAGS'
8650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8653 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8654 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8655 if test -z "$CXXCPP"; then
8656 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 # Double quotes because CXXCPP needs to be expanded
8660 for CXXCPP in "$CXX -E" "/lib/cpp"
8663 for ac_cxx_preproc_warn_flag in '' yes
8665 # Use a header file that comes with gcc, so configuring glibc
8666 # with a fresh cross-compiler works.
8667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668 # <limits.h> exists even on freestanding compilers.
8669 # On the NeXT, cc -E runs the code through the compiler's parser,
8670 # not just through cpp. "Syntax error" is here to catch this case.
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8678 # include <limits.h>
8680 # include <assert.h>
8684 if { (ac_try="$ac_cpp conftest.$ac_ext"
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } >/dev/null && {
8697 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8698 test ! -s conftest.err
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 # Broken: fails on valid input.
8709 rm -f conftest.err conftest.$ac_ext
8711 # OK, works on sane cases. Now check whether nonexistent headers
8712 # can be detected and how.
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8719 #include <ac_nonexistent.h>
8721 if { (ac_try="$ac_cpp conftest.$ac_ext"
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8729 grep -v '^ *+' conftest.er1 >conftest.err
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } >/dev/null && {
8734 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8735 test ! -s conftest.err
8737 # Broken: success on invalid input.
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 # Passes both tests.
8748 rm -f conftest.err conftest.$ac_ext
8751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8752 rm -f conftest.err conftest.$ac_ext
8753 if $ac_preproc_ok; then
8758 ac_cv_prog_CXXCPP=$CXXCPP
8761 CXXCPP=$ac_cv_prog_CXXCPP
8763 ac_cv_prog_CXXCPP=$CXXCPP
8765 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8766 echo "${ECHO_T}$CXXCPP" >&6; }
8768 for ac_cxx_preproc_warn_flag in '' yes
8770 # Use a header file that comes with gcc, so configuring glibc
8771 # with a fresh cross-compiler works.
8772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8773 # <limits.h> exists even on freestanding compilers.
8774 # On the NeXT, cc -E runs the code through the compiler's parser,
8775 # not just through cpp. "Syntax error" is here to catch this case.
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8783 # include <limits.h>
8785 # include <assert.h>
8789 if { (ac_try="$ac_cpp conftest.$ac_ext"
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } >/dev/null && {
8802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8803 test ! -s conftest.err
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 # Broken: fails on valid input.
8814 rm -f conftest.err conftest.$ac_ext
8816 # OK, works on sane cases. Now check whether nonexistent headers
8817 # can be detected and how.
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 #include <ac_nonexistent.h>
8826 if { (ac_try="$ac_cpp conftest.$ac_ext"
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } >/dev/null && {
8839 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8840 test ! -s conftest.err
8842 # Broken: success on invalid input.
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 # Passes both tests.
8853 rm -f conftest.err conftest.$ac_ext
8856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8857 rm -f conftest.err conftest.$ac_ext
8858 if $ac_preproc_ok; then
8861 _lt_caught_CXX_error=yes
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871 _lt_caught_CXX_error=yes
8879 # Check whether --enable-shared was given.
8880 if test "${enable_shared+set}" = set; then
8881 enableval=$enable_shared; p=${PACKAGE-default}
8883 yes) enable_shared=yes ;;
8884 no) enable_shared=no ;;
8887 # Look at the argument we got. We use all the common list separators.
8888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8889 for pkg in $enableval; do
8891 if test "X$pkg" = "X$p"; then
8908 # Check whether --enable-static was given.
8909 if test "${enable_static+set}" = set; then
8910 enableval=$enable_static; p=${PACKAGE-default}
8912 yes) enable_static=yes ;;
8913 no) enable_static=no ;;
8916 # Look at the argument we got. We use all the common list separators.
8917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8918 for pkg in $enableval; do
8920 if test "X$pkg" = "X$p"; then
8949 # Check whether --with-pic was given.
8950 if test "${with_pic+set}" = set; then
8951 withval=$with_pic; pic_mode="$withval"
8957 test -z "$pic_mode" && pic_mode=default
8965 # Check whether --enable-fast-install was given.
8966 if test "${enable_fast_install+set}" = set; then
8967 enableval=$enable_fast_install; p=${PACKAGE-default}
8969 yes) enable_fast_install=yes ;;
8970 no) enable_fast_install=no ;;
8972 enable_fast_install=no
8973 # Look at the argument we got. We use all the common list separators.
8974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8975 for pkg in $enableval; do
8977 if test "X$pkg" = "X$p"; then
8978 enable_fast_install=yes
8985 enable_fast_install=yes
8998 # This can be used to rebuild libtool when needed
8999 LIBTOOL_DEPS="$ltmain"
9001 # Always use our own libtool.
9002 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9028 test -z "$LN_S" && LN_S="ln -s"
9043 if test -n "${ZSH_VERSION+set}" ; then
9044 setopt NO_GLOB_SUBST
9047 { echo "$as_me:$LINENO: checking for objdir" >&5
9048 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9049 if test "${lt_cv_objdir+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 rm -f .libs 2>/dev/null
9053 mkdir .libs 2>/dev/null
9054 if test -d .libs; then
9057 # MS-DOS does not allow filenames that begin with a dot.
9060 rmdir .libs 2>/dev/null
9062 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9063 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9064 objdir=$lt_cv_objdir
9070 cat >>confdefs.h <<_ACEOF
9071 #define LT_OBJDIR "$lt_cv_objdir/"
9092 # AIX sometimes has problems with the GCC collect2 program. For some
9093 # reason, if we set the COLLECT_NAMES environment variable, the problems
9094 # vanish in a puff of smoke.
9095 if test "X${COLLECT_NAMES+set}" != Xset; then
9097 export COLLECT_NAMES
9102 # Sed substitution that helps us do robust quoting. It backslashifies
9103 # metacharacters that are still active within double-quoted strings.
9104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9106 # Same as above, but do not quote variable references.
9107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9109 # Sed substitution to delay expansion of an escaped shell variable in a
9110 # double_quote_subst'ed string.
9111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9113 # Sed substitution to delay expansion of an escaped single quote.
9114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9116 # Sed substitution to avoid accidental globbing in evaled expressions
9117 no_glob_subst='s/\*/\\\*/g'
9121 can_build_shared=yes
9123 # All known linkers require a `.a' archive for static linking (except MSVC,
9124 # which needs '.lib').
9127 with_gnu_ld="$lt_cv_prog_gnu_ld"
9130 old_CFLAGS="$CFLAGS"
9132 # Set sane defaults for various variables
9133 test -z "$CC" && CC=cc
9134 test -z "$LTCC" && LTCC=$CC
9135 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9136 test -z "$LD" && LD=ld
9137 test -z "$ac_objext" && ac_objext=o
9139 for cc_temp in $compiler""; do
9141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9147 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9150 # Only perform the check for file, if the check method requires it
9151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9152 case $deplibs_check_method in
9154 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9155 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9156 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9157 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9165 lt_save_MAGIC_CMD="$MAGIC_CMD"
9166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168 for ac_dir in $ac_dummy; do
9170 test -z "$ac_dir" && ac_dir=.
9171 if test -f $ac_dir/${ac_tool_prefix}file; then
9172 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9173 if test -n "$file_magic_test_file"; then
9174 case $deplibs_check_method in
9176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179 $EGREP "$file_magic_regex" > /dev/null; then
9184 *** Warning: the command libtool uses to detect shared libraries,
9185 *** $file_magic_cmd, produces output that libtool cannot recognize.
9186 *** The result is that libtool may fail to recognize shared libraries
9187 *** as such. This will affect the creation of libtool libraries that
9188 *** depend on shared libraries, but programs linked with such libtool
9189 *** libraries will work regardless of this problem. Nevertheless, you
9190 *** may want to report the problem to your system manager and/or to
9191 *** bug-libtool@gnu.org
9201 MAGIC_CMD="$lt_save_MAGIC_CMD"
9206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9207 if test -n "$MAGIC_CMD"; then
9208 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9209 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9211 { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9219 if test -z "$lt_cv_path_MAGIC_CMD"; then
9220 if test -n "$ac_tool_prefix"; then
9221 { echo "$as_me:$LINENO: checking for file" >&5
9222 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9231 lt_save_MAGIC_CMD="$MAGIC_CMD"
9232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9234 for ac_dir in $ac_dummy; do
9236 test -z "$ac_dir" && ac_dir=.
9237 if test -f $ac_dir/file; then
9238 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9239 if test -n "$file_magic_test_file"; then
9240 case $deplibs_check_method in
9242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9245 $EGREP "$file_magic_regex" > /dev/null; then
9250 *** Warning: the command libtool uses to detect shared libraries,
9251 *** $file_magic_cmd, produces output that libtool cannot recognize.
9252 *** The result is that libtool may fail to recognize shared libraries
9253 *** as such. This will affect the creation of libtool libraries that
9254 *** depend on shared libraries, but programs linked with such libtool
9255 *** libraries will work regardless of this problem. Nevertheless, you
9256 *** may want to report the problem to your system manager and/or to
9257 *** bug-libtool@gnu.org
9267 MAGIC_CMD="$lt_save_MAGIC_CMD"
9272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9273 if test -n "$MAGIC_CMD"; then
9274 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9277 { echo "$as_me:$LINENO: result: no" >&5
9278 echo "${ECHO_T}no" >&6; }
9291 # Use C for the default configuration in the libtool script
9295 ac_cpp='$CPP $CPPFLAGS'
9296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9301 # Source file extension for C test sources.
9304 # Object file extension for compiled C test sources.
9308 # Code to be used in simple compile tests
9309 lt_simple_compile_test_code="int some_variable = 0;"
9311 # Code to be used in simple link tests
9312 lt_simple_link_test_code='int main(){return(0);}'
9320 # If no C compiler was specified, use CC.
9323 # If no C compiler flags were specified, use CFLAGS.
9324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9326 # Allow CC to be a program name with arguments.
9329 # Save the default compiler, since it gets overwritten when the other
9330 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9331 compiler_DEFAULT=$CC
9333 # save warnings/boilerplate of simple test code
9334 ac_outfile=conftest.$ac_objext
9335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9337 _lt_compiler_boilerplate=`cat conftest.err`
9340 ac_outfile=conftest.$ac_objext
9341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9343 _lt_linker_boilerplate=`cat conftest.err`
9348 ## There is no encapsulation within the following macros, do not change
9349 ## the running order or otherwise move them around unless you know exactly
9350 ## what you are doing...
9351 if test -n "$compiler"; then
9353 lt_prog_compiler_no_builtin_flag=
9355 if test "$GCC" = yes; then
9356 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9358 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9359 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9360 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 lt_cv_prog_compiler_rtti_exceptions=no
9364 ac_outfile=conftest.$ac_objext
9365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9366 lt_compiler_flag="-fno-rtti -fno-exceptions"
9367 # Insert the option either (1) after the last *FLAGS variable, or
9368 # (2) before a word containing "conftest.", or (3) at the end.
9369 # Note that $ac_compile itself does not contain backslashes and begins
9370 # with a dollar sign (not a hyphen), so the echo should work correctly.
9371 # The option is referenced via a variable to avoid confusing sed.
9372 lt_compile=`echo "$ac_compile" | $SED \
9373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9375 -e 's:$: $lt_compiler_flag:'`
9376 (eval echo "\"\$as_me:9376: $lt_compile\"" >&5)
9377 (eval "$lt_compile" 2>conftest.err)
9379 cat conftest.err >&5
9380 echo "$as_me:9380: \$? = $ac_status" >&5
9381 if (exit $ac_status) && test -s "$ac_outfile"; then
9382 # The compiler can only warn and ignore the option if not recognized
9383 # So say no if there are warnings other than the usual output.
9384 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9387 lt_cv_prog_compiler_rtti_exceptions=yes
9393 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9394 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9396 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9409 lt_prog_compiler_wl=
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_static=
9413 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9414 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9416 if test "$GCC" = yes; then
9417 lt_prog_compiler_wl='-Wl,'
9418 lt_prog_compiler_static='-static'
9422 # All AIX code is PIC.
9423 if test "$host_cpu" = ia64; then
9424 # AIX 5 now supports IA64 processor
9425 lt_prog_compiler_static='-Bstatic'
9432 # see comment about AmigaOS4 .so support
9433 lt_prog_compiler_pic='-fPIC'
9436 # FIXME: we need at least 68020 code to build shared libraries, but
9437 # adding the `-m68020' flag to GCC prevents building anything better,
9439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9445 # PIC is the default for these OSes.
9448 mingw* | cygwin* | pw32* | os2* | cegcc*)
9449 # This hack is so that the source file can tell whether it is being
9450 # built for inclusion in a dll (and should export symbols for example).
9451 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9452 # (--disable-auto-import) libraries
9453 lt_prog_compiler_pic='-DDLL_EXPORT'
9456 darwin* | rhapsody*)
9457 # PIC is the default on this platform
9458 # Common symbols not allowed in MH_DYLIB files
9459 lt_prog_compiler_pic='-fno-common'
9463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9465 # sets the default TLS model and affects inlining.
9471 lt_prog_compiler_pic='-fPIC'
9477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9478 # Instead, we relocate shared libraries at runtime.
9482 # Just because we use GCC doesn't mean we suddenly get shared libraries
9483 # on systems that don't support them.
9484 lt_prog_compiler_can_build_shared=no
9489 # QNX uses GNU C++, but need to define -shared option too, otherwise
9491 lt_prog_compiler_pic='-fPIC -shared'
9495 if test -d /usr/nec; then
9496 lt_prog_compiler_pic=-Kconform_pic
9501 lt_prog_compiler_pic='-fPIC'
9505 # PORTME Check for flag to pass linker flags through the system compiler.
9508 lt_prog_compiler_wl='-Wl,'
9509 if test "$host_cpu" = ia64; then
9510 # AIX 5 now supports IA64 processor
9511 lt_prog_compiler_static='-Bstatic'
9513 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9517 mingw* | cygwin* | pw32* | os2* | cegcc*)
9518 # This hack is so that the source file can tell whether it is being
9519 # built for inclusion in a dll (and should export symbols for example).
9520 lt_prog_compiler_pic='-DDLL_EXPORT'
9523 hpux9* | hpux10* | hpux11*)
9524 lt_prog_compiler_wl='-Wl,'
9525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9532 lt_prog_compiler_pic='+Z'
9535 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9536 lt_prog_compiler_static='${wl}-a ${wl}archive'
9539 irix5* | irix6* | nonstopux*)
9540 lt_prog_compiler_wl='-Wl,'
9541 # PIC (with -KPIC) is the default.
9542 lt_prog_compiler_static='-non_shared'
9545 linux* | k*bsd*-gnu)
9546 case $cc_basename in
9547 # old Intel for x86_64 which still supported -KPIC.
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_pic='-KPIC'
9551 lt_prog_compiler_static='-static'
9553 # icc used to be incompatible with GCC.
9554 # ICC 10 doesn't accept -KPIC any more.
9556 lt_prog_compiler_wl='-Wl,'
9557 lt_prog_compiler_pic='-fPIC'
9558 lt_prog_compiler_static='-static'
9560 # Lahey Fortran 8.1.
9562 lt_prog_compiler_wl='-Wl,'
9563 lt_prog_compiler_pic='--shared'
9564 lt_prog_compiler_static='--static'
9566 pgcc* | pgf77* | pgf90* | pgf95*)
9567 # Portland Group compilers (*not* the Pentium gcc compiler,
9568 # which looks to be a dead project)
9569 lt_prog_compiler_wl='-Wl,'
9570 lt_prog_compiler_pic='-fpic'
9571 lt_prog_compiler_static='-Bstatic'
9574 lt_prog_compiler_wl='-Wl,'
9575 # All Alpha code is PIC.
9576 lt_prog_compiler_static='-non_shared'
9579 # IBM XL C 8.0/Fortran 10.1 on PPC
9580 lt_prog_compiler_wl='-Wl,'
9581 lt_prog_compiler_pic='-qpic'
9582 lt_prog_compiler_static='-qstaticlink'
9585 case `$CC -V 2>&1 | sed 5q` in
9588 lt_prog_compiler_pic='-KPIC'
9589 lt_prog_compiler_static='-Bstatic'
9590 lt_prog_compiler_wl='-Wl,'
9593 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9594 lt_prog_compiler_pic='-KPIC'
9595 lt_prog_compiler_static='-Bstatic'
9596 lt_prog_compiler_wl=''
9604 lt_prog_compiler_pic='-KPIC'
9605 lt_prog_compiler_static='-Bstatic'
9609 # QNX uses GNU C++, but need to define -shared option too, otherwise
9611 lt_prog_compiler_pic='-fPIC -shared'
9614 osf3* | osf4* | osf5*)
9615 lt_prog_compiler_wl='-Wl,'
9616 # All OSF/1 code is PIC.
9617 lt_prog_compiler_static='-non_shared'
9621 lt_prog_compiler_static='-non_shared'
9625 lt_prog_compiler_pic='-KPIC'
9626 lt_prog_compiler_static='-Bstatic'
9627 case $cc_basename in
9629 lt_prog_compiler_wl='-Qoption ld ';;
9631 lt_prog_compiler_wl='-Wl,';;
9636 lt_prog_compiler_wl='-Qoption ld '
9637 lt_prog_compiler_pic='-PIC'
9638 lt_prog_compiler_static='-Bstatic'
9641 sysv4 | sysv4.2uw2* | sysv4.3*)
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_pic='-KPIC'
9644 lt_prog_compiler_static='-Bstatic'
9648 if test -d /usr/nec ;then
9649 lt_prog_compiler_pic='-Kconform_pic'
9650 lt_prog_compiler_static='-Bstatic'
9654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9655 lt_prog_compiler_wl='-Wl,'
9656 lt_prog_compiler_pic='-KPIC'
9657 lt_prog_compiler_static='-Bstatic'
9661 lt_prog_compiler_wl='-Wl,'
9662 lt_prog_compiler_can_build_shared=no
9666 lt_prog_compiler_pic='-pic'
9667 lt_prog_compiler_static='-Bstatic'
9671 lt_prog_compiler_can_build_shared=no
9677 # For platforms which do not support PIC, -DPIC is meaningless:
9679 lt_prog_compiler_pic=
9682 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9694 # Check to make sure the PIC flag actually works.
9696 if test -n "$lt_prog_compiler_pic"; then
9697 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9699 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 lt_cv_prog_compiler_pic_works=no
9703 ac_outfile=conftest.$ac_objext
9704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9706 # Insert the option either (1) after the last *FLAGS variable, or
9707 # (2) before a word containing "conftest.", or (3) at the end.
9708 # Note that $ac_compile itself does not contain backslashes and begins
9709 # with a dollar sign (not a hyphen), so the echo should work correctly.
9710 # The option is referenced via a variable to avoid confusing sed.
9711 lt_compile=`echo "$ac_compile" | $SED \
9712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714 -e 's:$: $lt_compiler_flag:'`
9715 (eval echo "\"\$as_me:9715: $lt_compile\"" >&5)
9716 (eval "$lt_compile" 2>conftest.err)
9718 cat conftest.err >&5
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 if (exit $ac_status) && test -s "$ac_outfile"; then
9721 # The compiler can only warn and ignore the option if not recognized
9722 # So say no if there are warnings other than the usual output.
9723 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9726 lt_cv_prog_compiler_pic_works=yes
9732 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9733 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9736 case $lt_prog_compiler_pic in
9738 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9741 lt_prog_compiler_pic=
9742 lt_prog_compiler_can_build_shared=no
9753 # Check to make sure the static flag actually works.
9755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9758 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 lt_cv_prog_compiler_static_works=no
9762 save_LDFLAGS="$LDFLAGS"
9763 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9764 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9765 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9766 # The linker can only warn and ignore the option if not recognized
9767 # So say no if there are warnings
9768 if test -s conftest.err; then
9769 # Append any errors to the config.log.
9770 cat conftest.err 1>&5
9771 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9773 if diff conftest.exp conftest.er2 >/dev/null; then
9774 lt_cv_prog_compiler_static_works=yes
9777 lt_cv_prog_compiler_static_works=yes
9781 LDFLAGS="$save_LDFLAGS"
9784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9790 lt_prog_compiler_static=
9799 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 lt_cv_prog_compiler_c_o=no
9805 $RM -r conftest 2>/dev/null
9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9811 lt_compiler_flag="-o out/conftest2.$ac_objext"
9812 # Insert the option either (1) after the last *FLAGS variable, or
9813 # (2) before a word containing "conftest.", or (3) at the end.
9814 # Note that $ac_compile itself does not contain backslashes and begins
9815 # with a dollar sign (not a hyphen), so the echo should work correctly.
9816 lt_compile=`echo "$ac_compile" | $SED \
9817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9819 -e 's:$: $lt_compiler_flag:'`
9820 (eval echo "\"\$as_me:9820: $lt_compile\"" >&5)
9821 (eval "$lt_compile" 2>out/conftest.err)
9823 cat out/conftest.err >&5
9824 echo "$as_me:9824: \$? = $ac_status" >&5
9825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9827 # The compiler can only warn and ignore the option if not recognized
9828 # So say no if there are warnings
9829 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9832 lt_cv_prog_compiler_c_o=yes
9837 # SGI C++ compiler will create directory out/ii_files/ for
9838 # template instantiation
9839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9840 $RM out/* && rmdir out
9846 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9854 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9856 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 lt_cv_prog_compiler_c_o=no
9860 $RM -r conftest 2>/dev/null
9864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9866 lt_compiler_flag="-o out/conftest2.$ac_objext"
9867 # Insert the option either (1) after the last *FLAGS variable, or
9868 # (2) before a word containing "conftest.", or (3) at the end.
9869 # Note that $ac_compile itself does not contain backslashes and begins
9870 # with a dollar sign (not a hyphen), so the echo should work correctly.
9871 lt_compile=`echo "$ac_compile" | $SED \
9872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9874 -e 's:$: $lt_compiler_flag:'`
9875 (eval echo "\"\$as_me:9875: $lt_compile\"" >&5)
9876 (eval "$lt_compile" 2>out/conftest.err)
9878 cat out/conftest.err >&5
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9882 # The compiler can only warn and ignore the option if not recognized
9883 # So say no if there are warnings
9884 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler_c_o=yes
9892 # SGI C++ compiler will create directory out/ii_files/ for
9893 # template instantiation
9894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9895 $RM out/* && rmdir out
9901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9907 hard_links="nottested"
9908 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9909 # do not overwrite the value of need_locks provided by the user
9910 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9916 ln conftest.a conftest.b 2>&5 || hard_links=no
9917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9918 { echo "$as_me:$LINENO: result: $hard_links" >&5
9919 echo "${ECHO_T}$hard_links" >&6; }
9920 if test "$hard_links" = no; then
9921 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9934 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9938 allow_undefined_flag=
9939 always_export_symbols=no
9941 archive_expsym_cmds=
9942 compiler_needs_object=no
9943 enable_shared_with_static_runtimes=no
9944 export_dynamic_flag_spec=
9945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9946 hardcode_automatic=no
9948 hardcode_direct_absolute=no
9949 hardcode_libdir_flag_spec=
9950 hardcode_libdir_flag_spec_ld=
9951 hardcode_libdir_separator=
9953 hardcode_shlibpath_var=unsupported
9955 link_all_deplibs=unknown
9958 old_archive_from_new_cmds=
9959 old_archive_from_expsyms_cmds=
9960 thread_safe_flag_spec=
9961 whole_archive_flag_spec=
9962 # include_expsyms should be a list of space-separated symbols to be *always*
9963 # included in the symbol list
9965 # exclude_expsyms can be an extended regexp of symbols to exclude
9966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9968 # as well as any symbol that contains `d'.
9969 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9971 # platforms (ab)use it in PIC code, but their linkers get confused if
9972 # the symbol is explicitly referenced. Since portable code cannot
9973 # rely on this symbol name, it's probably fine to never include it in
9974 # preloaded symbol tables.
9975 # Exclude shared library initialization/finalization symbols.
9976 extract_expsyms_cmds=
9979 cygwin* | mingw* | pw32* | cegcc*)
9980 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9981 # When not using gcc, we currently assume that we are using
9982 # Microsoft Visual C++.
9983 if test "$GCC" != yes; then
9988 # we just hope/assume this is gcc and not c89 (= MSVC++)
9997 if test "$with_gnu_ld" = yes; then
9998 # If archive_cmds runs LD, not CC, wlarc should be empty
10001 # Set some defaults for GNU ld with shared library support. These
10002 # are reset later if shared libraries are not supported. Putting them
10003 # here allows them to be overridden if necessary.
10004 runpath_var=LD_RUN_PATH
10005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006 export_dynamic_flag_spec='${wl}--export-dynamic'
10007 # ancient GNU ld didn't support --whole-archive et. al.
10008 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10011 whole_archive_flag_spec=
10013 supports_anon_versioning=no
10014 case `$LD -v 2>&1` in
10015 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10016 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10017 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10018 *\ 2.11.*) ;; # other 2.11 versions
10019 *) supports_anon_versioning=yes ;;
10022 # See if GNU ld supports shared libraries.
10025 # On AIX/PPC, the GNU linker is very broken
10026 if test "$host_cpu" != ia64; then
10030 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10031 *** to be unable to reliably create shared libraries on AIX.
10032 *** Therefore, libtool is disabling shared libraries support. If you
10033 *** really care for shared libraries, you may want to modify your PATH
10034 *** so that a non-GNU linker is found, and then restart.
10043 # see comment about AmigaOS4 .so support
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10045 archive_expsym_cmds=''
10048 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)'
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 allow_undefined_flag=unsupported
10058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10059 # support --undefined. This deserves some investigation. FIXME
10060 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066 cygwin* | mingw* | pw32* | cegcc*)
10067 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068 # as there is no search path for DLLs.
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 allow_undefined_flag=unsupported
10071 always_export_symbols=no
10072 enable_shared_with_static_runtimes=yes
10073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10075 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077 # If the export-symbols file already is a .def file (1st line
10078 # is EXPORTS), use it as is; otherwise, prepend...
10079 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10080 cp $export_symbols $output_objdir/$soname.def;
10082 echo EXPORTS > $output_objdir/$soname.def;
10083 cat $export_symbols >> $output_objdir/$soname.def;
10085 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10093 hardcode_shlibpath_var=no
10094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10095 export_dynamic_flag_spec='${wl}-E'
10096 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10097 # Instead, shared libraries are loaded at an image base (0x10000000 by
10098 # default) and relocated if they conflict, which is a slow very memory
10099 # consuming and fragmenting process. To avoid this, we pick a random,
10100 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10101 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10103 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'
10106 gnu* | linux* | tpf* | k*bsd*-gnu)
10108 if test "$host_os" = linux-dietlibc; then
10109 case $cc_basename in
10110 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10113 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10114 && test "$tmp_diet" = no
10117 tmp_sharedflag='-shared'
10118 case $cc_basename,$host_cpu in
10119 pgcc*) # Portland Group C compiler
10120 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'
10121 tmp_addflag=' $pic_flag'
10123 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
10126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10127 tmp_addflag=' -i_dynamic' ;;
10128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10129 tmp_addflag=' -i_dynamic -nofor_main' ;;
10130 ifc* | ifort*) # Intel Fortran compiler
10131 tmp_addflag=' -nofor_main' ;;
10132 lf95*) # Lahey Fortran 8.1
10133 whole_archive_flag_spec=
10134 tmp_sharedflag='--shared' ;;
10135 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10136 tmp_sharedflag='-qmkshrobj'
10139 case `$CC -V 2>&1 | sed 5q` in
10140 *Sun\ C*) # Sun C 5.9
10141 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'
10142 compiler_needs_object=yes
10143 tmp_sharedflag='-G' ;;
10144 *Sun\ F*) # Sun Fortran 8.3
10145 tmp_sharedflag='-G' ;;
10147 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149 if test "x$supports_anon_versioning" = xyes; then
10150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10152 echo "local: *; };" >> $output_objdir/$libname.ver~
10153 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10156 case $cc_basename in
10158 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10159 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10160 hardcode_libdir_flag_spec=
10161 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10162 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10163 if test "x$supports_anon_versioning" = xyes; then
10164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10166 echo "local: *; };" >> $output_objdir/$libname.ver~
10167 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10192 *** create shared libraries on Solaris systems. Therefore, libtool
10193 *** is disabling shared libraries support. We urge you to upgrade GNU
10194 *** binutils to release 2.9.1 or newer. Another option is to modify
10195 *** your PATH or compiler configuration so that the native linker is
10196 *** used, and then restart.
10199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10208 case `$LD -v 2>&1` in
10209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10214 *** reliably create shared libraries on SCO systems. Therefore, libtool
10215 *** is disabling shared libraries support. We urge you to upgrade GNU
10216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10217 *** your PATH or compiler configuration so that the native linker is
10218 *** used, and then restart.
10223 # For security reasons, it is highly recommended that you always
10224 # use absolute paths for naming shared libraries, and exclude the
10225 # DT_RUNPATH tag from executables and libraries. But doing so
10226 # requires that you compile everything twice, which is a pain.
10227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_direct=yes
10242 hardcode_shlibpath_var=no
10246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10255 if test "$ld_shlibs" = no; then
10257 hardcode_libdir_flag_spec=
10258 export_dynamic_flag_spec=
10259 whole_archive_flag_spec=
10262 # PORTME fill in a description of your system's linker (not GNU ld)
10265 allow_undefined_flag=unsupported
10266 always_export_symbols=yes
10267 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'
10268 # Note: this linker hardcodes the directories in LIBPATH if there
10269 # are no directories specified by -L.
10270 hardcode_minus_L=yes
10271 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10272 # Neither direct hardcoding nor static linking is supported with a
10274 hardcode_direct=unsupported
10279 if test "$host_cpu" = ia64; then
10280 # On IA64, the linker does run time linking by default, so we don't
10281 # have to do anything special.
10282 aix_use_runtimelinking=no
10283 exp_sym_flag='-Bexport'
10286 # If we're using GNU nm, then we don't want the "-C" option.
10287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10288 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10289 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'
10291 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'
10293 aix_use_runtimelinking=no
10295 # Test if we are trying to use run time linking or normal
10296 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10297 # need to do runtime linking.
10298 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10299 for ld_flag in $LDFLAGS; do
10300 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10301 aix_use_runtimelinking=yes
10308 exp_sym_flag='-bexport'
10309 no_entry_flag='-bnoentry'
10312 # When large executables or shared objects are built, AIX ld can
10313 # have problems creating the table of contents. If linking a library
10314 # or program results in "error TOC overflow" add -mminimal-toc to
10315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10319 hardcode_direct=yes
10320 hardcode_direct_absolute=yes
10321 hardcode_libdir_separator=':'
10322 link_all_deplibs=yes
10323 file_list_spec='${wl}-f,'
10325 if test "$GCC" = yes; then
10326 case $host_os in aix4.[012]|aix4.[012].*)
10327 # We only want to do this on AIX 4.2 and lower, the check
10328 # below for broken collect2 doesn't work under 4.3+
10329 collect2name=`${CC} -print-prog-name=collect2`
10330 if test -f "$collect2name" &&
10331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10333 # We have reworked collect2
10336 # We have old collect2
10337 hardcode_direct=unsupported
10338 # It fails to find uninstalled libraries when the uninstalled
10339 # path is not listed in the libpath. Setting hardcode_minus_L
10340 # to unsupported forces relinking
10341 hardcode_minus_L=yes
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_libdir_separator=
10347 shared_flag='-shared'
10348 if test "$aix_use_runtimelinking" = yes; then
10349 shared_flag="$shared_flag "'${wl}-G'
10353 if test "$host_cpu" = ia64; then
10354 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355 # chokes on -Wl,-G. The following line is correct:
10358 if test "$aix_use_runtimelinking" = yes; then
10359 shared_flag='${wl}-G'
10361 shared_flag='${wl}-bM:SRE'
10366 export_dynamic_flag_spec='${wl}-bexpall'
10367 # It seems that -bexpall does not export symbols beginning with
10368 # underscore (_), so it is better to generate a list of symbols to export.
10369 always_export_symbols=yes
10370 if test "$aix_use_runtimelinking" = yes; then
10371 # Warning - without using the other runtime loading flags (-brtl),
10372 # -berok will link without error, but may produce a broken library.
10373 allow_undefined_flag='-berok'
10374 # Determine the default libpath from the value encoded in an
10375 # empty executable.
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest$ac_exeext &&
10408 $as_test_x conftest$ac_exeext; then
10410 lt_aix_libpath_sed='
10411 /Import File Strings/,/^$/ {
10417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418 # Check for a 64-bit object if we didn't find anything.
10419 if test -z "$aix_libpath"; then
10420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10430 conftest$ac_exeext conftest.$ac_ext
10431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10433 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10434 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"
10436 if test "$host_cpu" = ia64; then
10437 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10438 allow_undefined_flag="-z nodefs"
10439 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"
10441 # Determine the default libpath from the value encoded in an
10442 # empty executable.
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_link") 2>conftest.er1
10467 grep -v '^ *+' conftest.er1 >conftest.err
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest$ac_exeext &&
10475 $as_test_x conftest$ac_exeext; then
10477 lt_aix_libpath_sed='
10478 /Import File Strings/,/^$/ {
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501 # Warning - without using the other run time loading flags,
10502 # -berok will link without error, but may produce a broken library.
10503 no_undefined_flag=' ${wl}-bernotok'
10504 allow_undefined_flag=' ${wl}-berok'
10505 # Exported symbols can be pulled into shared objects from archives
10506 whole_archive_flag_spec='$convenience'
10507 archive_cmds_need_lc=yes
10508 # This is similar to how AIX traditionally builds its shared libraries.
10509 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'
10517 # see comment about AmigaOS4 .so support
10518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10519 archive_expsym_cmds=''
10522 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)'
10523 hardcode_libdir_flag_spec='-L$libdir'
10524 hardcode_minus_L=yes
10530 export_dynamic_flag_spec=-rdynamic
10533 cygwin* | mingw* | pw32* | cegcc*)
10534 # When not using gcc, we currently assume that we are using
10535 # Microsoft Visual C++.
10536 # hardcode_libdir_flag_spec is actually meaningless, as there is
10537 # no search path for DLLs.
10538 hardcode_libdir_flag_spec=' '
10539 allow_undefined_flag=unsupported
10540 # Tell ltmain to make .lib files, not .a files.
10542 # Tell ltmain to make .dll files, not .so files.
10544 # FIXME: Setting linknames here is a bad hack.
10545 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10546 # The linker will automatically build a .lib file if we build a DLL.
10547 old_archive_from_new_cmds='true'
10548 # FIXME: Should let the user specify the lib program.
10549 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10550 fix_srcfile_path='`cygpath -w "$srcfile"`'
10551 enable_shared_with_static_runtimes=yes
10554 darwin* | rhapsody*)
10557 archive_cmds_need_lc=no
10559 hardcode_automatic=yes
10560 hardcode_shlibpath_var=unsupported
10561 whole_archive_flag_spec=''
10562 link_all_deplibs=yes
10563 allow_undefined_flag="$_lt_dar_allow_undefined"
10564 case $cc_basename in
10565 ifort*) _lt_dar_can_shared=yes ;;
10566 *) _lt_dar_can_shared=$GCC ;;
10568 if test "$_lt_dar_can_shared" = "yes"; then
10569 output_verbose_link_cmd=echo
10570 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10571 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10572 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}"
10573 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}"
10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_libdir_flag_spec='-L$libdir'
10584 hardcode_shlibpath_var=no
10591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10592 # support. Future versions do this automatically, but an explicit c++rt0.o
10593 # does not break anything, and helps significantly (at the cost of a little
10596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10597 hardcode_libdir_flag_spec='-R$libdir'
10598 hardcode_direct=yes
10599 hardcode_shlibpath_var=no
10602 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_direct=yes
10606 hardcode_minus_L=yes
10607 hardcode_shlibpath_var=no
10610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10611 freebsd* | dragonfly*)
10612 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10613 hardcode_libdir_flag_spec='-R$libdir'
10614 hardcode_direct=yes
10615 hardcode_shlibpath_var=no
10619 if test "$GCC" = yes; then
10620 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'
10622 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'
10624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10625 hardcode_libdir_separator=:
10626 hardcode_direct=yes
10628 # hardcode_minus_L: Not really in the search PATH,
10629 # but as the default location of the library.
10630 hardcode_minus_L=yes
10631 export_dynamic_flag_spec='${wl}-E'
10635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10640 if test "$with_gnu_ld" = no; then
10641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10642 hardcode_libdir_flag_spec_ld='+b $libdir'
10643 hardcode_libdir_separator=:
10644 hardcode_direct=yes
10645 hardcode_direct_absolute=yes
10646 export_dynamic_flag_spec='${wl}-E'
10647 # hardcode_minus_L: Not really in the search PATH,
10648 # but as the default location of the library.
10649 hardcode_minus_L=yes
10654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10657 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10669 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10679 if test "$with_gnu_ld" = no; then
10680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10681 hardcode_libdir_separator=:
10686 hardcode_shlibpath_var=no
10689 hardcode_direct=yes
10690 hardcode_direct_absolute=yes
10691 export_dynamic_flag_spec='${wl}-E'
10693 # hardcode_minus_L: Not really in the search PATH,
10694 # but as the default location of the library.
10695 hardcode_minus_L=yes
10701 irix5* | irix6* | nonstopux*)
10702 if test "$GCC" = yes; then
10703 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'
10704 # Try to use the -exported_symbol ld option, if it does not
10705 # work, assume that -exports_file does not work either and
10706 # implicitly export all symbols.
10707 save_LDFLAGS="$LDFLAGS"
10708 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10709 cat >conftest.$ac_ext <<_ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext &&
10729 $as_test_x conftest$ac_exeext; then
10730 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'
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LDFLAGS="$save_LDFLAGS"
10743 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'
10744 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'
10746 archive_cmds_need_lc='no'
10747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748 hardcode_libdir_separator=:
10750 link_all_deplibs=yes
10754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10759 hardcode_libdir_flag_spec='-R$libdir'
10760 hardcode_direct=yes
10761 hardcode_shlibpath_var=no
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_direct=yes
10767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10768 hardcode_libdir_separator=:
10769 hardcode_shlibpath_var=no
10776 if test -f /usr/libexec/ld.so; then
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10779 hardcode_direct_absolute=yes
10780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10784 export_dynamic_flag_spec='${wl}-E'
10787 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789 hardcode_libdir_flag_spec='-R$libdir'
10792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10803 hardcode_libdir_flag_spec='-L$libdir'
10804 hardcode_minus_L=yes
10805 allow_undefined_flag=unsupported
10806 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'
10807 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10811 if test "$GCC" = yes; then
10812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813 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'
10815 allow_undefined_flag=' -expect_unresolved \*'
10816 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'
10818 archive_cmds_need_lc='no'
10819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820 hardcode_libdir_separator=:
10823 osf4* | osf5*) # as osf3* with the addition of -msym flag
10824 if test "$GCC" = yes; then
10825 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10826 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'
10827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10829 allow_undefined_flag=' -expect_unresolved \*'
10830 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'
10831 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~
10832 $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'
10834 # Both c and cxx compiler support -rpath directly
10835 hardcode_libdir_flag_spec='-rpath $libdir'
10837 archive_cmds_need_lc='no'
10838 hardcode_libdir_separator=:
10842 no_undefined_flag=' -z defs'
10843 if test "$GCC" = yes; then
10845 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10849 case `$CC -V 2>&1` in
10852 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10854 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10858 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10860 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10864 hardcode_libdir_flag_spec='-R$libdir'
10865 hardcode_shlibpath_var=no
10867 solaris2.[0-5] | solaris2.[0-5].*) ;;
10869 # The compiler driver will combine and reorder linker options,
10870 # but understands `-z linker_flag'. GCC discards it without `$wl',
10871 # but is careful enough not to reorder.
10872 # Supported since Solaris 2.6 (maybe 2.5.1?)
10873 if test "$GCC" = yes; then
10874 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10876 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10880 link_all_deplibs=yes
10884 if test "x$host_vendor" = xsequent; then
10885 # Use $CC to link under sequent, because it throws in some extra .o
10886 # files that make .init and .fini sections work.
10887 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10889 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10891 hardcode_libdir_flag_spec='-L$libdir'
10892 hardcode_direct=yes
10893 hardcode_minus_L=yes
10894 hardcode_shlibpath_var=no
10898 case $host_vendor in
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_direct=yes # is this really true???
10904 ## LD is ld it makes a PLAMLIB
10905 ## CC just makes a GrossModule.
10906 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10907 reload_cmds='$CC -r -o $output$reload_objs'
10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10915 runpath_var='LD_RUN_PATH'
10916 hardcode_shlibpath_var=no
10920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10921 hardcode_shlibpath_var=no
10922 export_dynamic_flag_spec='-Bexport'
10926 if test -d /usr/nec; then
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_shlibpath_var=no
10929 runpath_var=LD_RUN_PATH
10930 hardcode_runpath_var=yes
10935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10936 no_undefined_flag='${wl}-z,text'
10937 archive_cmds_need_lc=no
10938 hardcode_shlibpath_var=no
10939 runpath_var='LD_RUN_PATH'
10941 if test "$GCC" = yes; then
10942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 sysv5* | sco3.2v5* | sco5v6*)
10951 # Note: We can NOT use -z defs as we might desire, because we do not
10952 # link with -lc, and that would cause any symbols used from libc to
10953 # always be unresolved, which means just about no library would
10954 # ever link correctly. If we're not using GNU ld we use -z text
10955 # though, which does catch some bad symbols but isn't as heavy-handed
10957 no_undefined_flag='${wl}-z,text'
10958 allow_undefined_flag='${wl}-z,nodefs'
10959 archive_cmds_need_lc=no
10960 hardcode_shlibpath_var=no
10961 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10962 hardcode_libdir_separator=':'
10963 link_all_deplibs=yes
10964 export_dynamic_flag_spec='${wl}-Bexport'
10965 runpath_var='LD_RUN_PATH'
10967 if test "$GCC" = yes; then
10968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10978 hardcode_libdir_flag_spec='-L$libdir'
10979 hardcode_shlibpath_var=no
10987 if test x$host_vendor = xsni; then
10989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10990 export_dynamic_flag_spec='${wl}-Blargedynsym'
10996 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10997 echo "${ECHO_T}$ld_shlibs" >&6; }
10998 test "$ld_shlibs" = no && can_build_shared=no
11000 with_gnu_ld=$with_gnu_ld
11017 # Do we need to explicitly link libc?
11019 case "x$archive_cmds_need_lc" in
11021 # Assume -lc should be added
11022 archive_cmds_need_lc=yes
11024 if test "$enable_shared" = yes && test "$GCC" = yes; then
11025 case $archive_cmds in
11027 # FIXME: we may have to deal with multi-command sequences.
11030 # Test whether the compiler implicitly links with -lc since on some
11031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11032 # to ld, don't add -lc before -lgcc.
11033 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11039 (eval $ac_compile) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } 2>conftest.err; then
11045 libobjs=conftest.$ac_objext
11047 wl=$lt_prog_compiler_wl
11048 pic_flag=$lt_prog_compiler_pic
11054 lt_save_allow_undefined_flag=$allow_undefined_flag
11055 allow_undefined_flag=
11056 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11057 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }
11062 archive_cmds_need_lc=no
11064 archive_cmds_need_lc=yes
11066 allow_undefined_flag=$lt_save_allow_undefined_flag
11068 cat conftest.err 1>&5
11071 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11072 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11235 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11236 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11238 if test "$GCC" = yes; then
11240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11241 *) lt_awk_arg="/^libraries:/" ;;
11243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11244 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11245 # if the path contains ";" then we assume it to be the separator
11246 # otherwise default to the standard path separator (i.e. ":") - it is
11247 # assumed that no part of a normal pathname contains ";" but that should
11248 # okay in the real world where ";" in dirpaths is itself problematic.
11249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11251 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11253 # Ok, now we have the path, separated by spaces, we can step through it
11254 # and add multilib dir if necessary.
11255 lt_tmp_lt_search_path_spec=
11256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11257 for lt_sys_path in $lt_search_path_spec; do
11258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11261 test -d "$lt_sys_path" && \
11262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11265 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11266 BEGIN {RS=" "; FS="/|\n";} {
11269 for (lt_i = NF; lt_i > 0; lt_i--) {
11270 if ($lt_i != "" && $lt_i != ".") {
11271 if ($lt_i == "..") {
11274 if (lt_count == 0) {
11275 lt_foo="/" $lt_i lt_foo;
11282 if (lt_foo != "") { lt_freq[lt_foo]++; }
11283 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11285 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11289 library_names_spec=
11290 libname_spec='lib$name'
11294 postuninstall_cmds=
11298 shlibpath_overrides_runpath=unknown
11300 dynamic_linker="$host_os ld.so"
11301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313 shlibpath_var=LIBPATH
11315 # AIX 3 has no versioning support, so we append a major version to the name.
11316 soname_spec='${libname}${release}${shared_ext}$major'
11323 hardcode_into_libs=yes
11324 if test "$host_cpu" = ia64; then
11325 # AIX 5 supports IA64
11326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327 shlibpath_var=LD_LIBRARY_PATH
11329 # With GCC up to 2.95.x, collect2 would create an import file
11330 # for dependence libraries. The import file would start with
11331 # the line `#! .'. This would cause the generated library to
11332 # depend on `.', always an invalid library. This was fixed in
11333 # development snapshots of GCC prior to 3.0.
11335 aix4 | aix4.[01] | aix4.[01].*)
11336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11341 can_build_shared=no
11345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346 # soname into executable. Probably we can add versioning support to
11347 # collect2, so additional links can be useful in future.
11348 if test "$aix_use_runtimelinking" = yes; then
11349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350 # instead of lib<name>.a to let people know that these are not
11351 # typical AIX shared libraries.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 # We preserve .a as extension for shared libraries through AIX4.2
11355 # and later when we are not doing run time linking.
11356 library_names_spec='${libname}${release}.a $libname.a'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11359 shlibpath_var=LIBPATH
11366 # Since July 2007 AmigaOS4 officially supports .so libraries.
11367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 library_names_spec='$libname.ixlibrary $libname.a'
11372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373 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'
11379 library_names_spec='${libname}${shared_ext}'
11380 dynamic_linker="$host_os ld.so"
11381 shlibpath_var=LIBRARY_PATH
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11393 # the default ld.so.conf also contains /usr/contrib/lib and
11394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11395 # libtool to hard-code these into programs
11398 cygwin* | mingw* | pw32* | cegcc*)
11399 version_type=windows
11404 case $GCC,$host_os in
11405 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11406 library_names_spec='$libname.dll.a'
11407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11408 postinstall_cmds='base_file=`basename \${file}`~
11409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11410 dldir=$destdir/`dirname \$dlpath`~
11411 test -d \$dldir || mkdir -p \$dldir~
11412 $install_prog $dir/$dlname \$dldir/$dlname~
11413 chmod a+x \$dldir/$dlname~
11414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11418 dlpath=$dir/\$dldll~
11420 shlibpath_overrides_runpath=yes
11424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11426 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11429 # MinGW DLLs use traditional 'lib' prefix
11430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11432 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11433 # It is most probably a Windows format PATH printed by
11434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11435 # path with ; separators, and with drive letters. We can handle the
11436 # drive letters (cygwin fileutils understands them), so leave them,
11437 # especially as we might pass files found there to a mingw objdump,
11438 # which wouldn't understand a cygwinified path. Ahh.
11439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11445 # pw32 DLLs use 'pw' prefix rather than 'lib'
11446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11455 dynamic_linker='Win32 ld.exe'
11456 # FIXME: first we should search . and the directory the executable is in
11460 darwin* | rhapsody*)
11461 dynamic_linker="$host_os dyld"
11462 version_type=darwin
11465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11466 soname_spec='${libname}${release}${major}$shared_ext'
11467 shlibpath_overrides_runpath=yes
11468 shlibpath_var=DYLD_LIBRARY_PATH
11469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11488 freebsd* | dragonfly*)
11489 # DragonFly does not have aout. When/if they implement a new
11490 # versioning mechanism, adjust this.
11491 if test -x /usr/bin/objformat; then
11492 objformat=`/usr/bin/objformat`
11495 freebsd[123]*) objformat=aout ;;
11496 *) objformat=elf ;;
11499 version_type=freebsd-$objformat
11500 case $version_type in
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11511 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes
11516 freebsd3.[01]* | freebsdelf3.[01]*)
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11522 shlibpath_overrides_runpath=no
11523 hardcode_into_libs=yes
11525 *) # from 4.6 on, and DragonFly
11526 shlibpath_overrides_runpath=yes
11527 hardcode_into_libs=yes
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 hardcode_into_libs=yes
11542 hpux9* | hpux10* | hpux11*)
11543 # Give a soname corresponding to the major version so that dld.sl refuses to
11544 # link against other versions.
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.so"
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 if test "X$HPUX_IA64_MODE" = X32; then
11558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11566 hardcode_into_libs=yes
11567 dynamic_linker="$host_os dld.sl"
11568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11577 dynamic_linker="$host_os dld.sl"
11578 shlibpath_var=SHLIB_PATH
11579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11585 postinstall_cmds='chmod 555 $lib'
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597 hardcode_into_libs=yes
11600 irix5* | irix6* | nonstopux*)
11602 nonstopux*) version_type=nonstopux ;;
11604 if test "$lt_cv_prog_gnu_ld" = yes; then
11612 soname_spec='${libname}${release}${shared_ext}$major'
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11615 irix5* | nonstopux*)
11616 libsuff= shlibsuff=
11619 case $LD in # libtool.m4 will add one of these switches to LD
11620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11621 libsuff= shlibsuff= libmagic=32-bit;;
11622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11623 libsuff=32 shlibsuff=N32 libmagic=N32;;
11624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11626 *) libsuff= shlibsuff= libmagic=never-match;;
11630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11631 shlibpath_overrides_runpath=no
11632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11634 hardcode_into_libs=yes
11637 # No shared lib support for Linux oldld, aout, or coff.
11638 linux*oldld* | linux*aout* | linux*coff*)
11642 # This must be Linux ELF.
11643 linux* | k*bsd*-gnu)
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=no
11652 # Some binutils ld are patched to set DT_RUNPATH
11653 save_LDFLAGS=$LDFLAGS
11654 save_libdir=$libdir
11655 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11656 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_link") 2>conftest.er1
11681 grep -v '^ *+' conftest.er1 >conftest.err
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } && {
11686 test -z "$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11688 } && test -s conftest$ac_exeext &&
11689 $as_test_x conftest$ac_exeext; then
11690 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11691 shlibpath_overrides_runpath=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11702 conftest$ac_exeext conftest.$ac_ext
11703 LDFLAGS=$save_LDFLAGS
11704 libdir=$save_libdir
11706 # This implies no fast_install, which is unacceptable.
11707 # Some rework will be needed to allow for fast_install
11708 # before this can be enabled.
11709 hardcode_into_libs=yes
11711 # Append ld.so.conf contents to the search path
11712 if test -f /etc/ld.so.conf; then
11713 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' ' '`
11714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11717 # We used to test for /lib/ld.so.1 and disable shared libraries on
11718 # powerpc, because MkLinux only supported shared libraries with the
11719 # GNU dynamic linker. Since this was broken with cross compilers,
11720 # most powerpc-linux boxes support dynamic linking these days and
11721 # people can always --disable-shared, the test was removed, and we
11722 # assume the GNU/Linux dynamic linker is in use.
11723 dynamic_linker='GNU/Linux ld.so'
11730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11733 dynamic_linker='NetBSD (a.out) ld.so'
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 dynamic_linker='NetBSD ld.elf_so'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 hardcode_into_libs=yes
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 shlibpath_var=LD_LIBRARY_PATH
11748 shlibpath_overrides_runpath=yes
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=no
11759 hardcode_into_libs=yes
11760 dynamic_linker='ldqnx.so'
11765 sys_lib_dlsearch_path_spec="/usr/lib"
11767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11770 *) need_version=no ;;
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11777 openbsd2.[89] | openbsd2.[89].*)
11778 shlibpath_overrides_runpath=no
11781 shlibpath_overrides_runpath=yes
11785 shlibpath_overrides_runpath=yes
11790 libname_spec='$name'
11793 library_names_spec='$libname${shared_ext} $libname.a'
11794 dynamic_linker='OS/2 ld.exe'
11795 shlibpath_var=LIBPATH
11798 osf3* | osf4* | osf5*)
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 shlibpath_var=LD_LIBRARY_PATH
11805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=yes
11821 hardcode_into_libs=yes
11822 # ldd complains unless libraries are executable
11823 postinstall_cmds='chmod +x $lib'
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 shlibpath_overrides_runpath=yes
11832 if test "$with_gnu_ld" = yes; then
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 case $host_vendor in
11845 shlibpath_overrides_runpath=no
11847 runpath_var=LD_RUN_PATH
11855 shlibpath_overrides_runpath=no
11856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11862 if test -d /usr/nec ;then
11864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11865 soname_spec='$libname${shared_ext}.$major'
11866 shlibpath_var=LD_LIBRARY_PATH
11870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11871 version_type=freebsd-elf
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=yes
11878 hardcode_into_libs=yes
11879 if test "$with_gnu_ld" = yes; then
11880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11889 sys_lib_dlsearch_path_spec='/usr/lib'
11893 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=no
11900 hardcode_into_libs=yes
11905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11906 soname_spec='${libname}${release}${shared_ext}$major'
11907 shlibpath_var=LD_LIBRARY_PATH
11914 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11915 echo "${ECHO_T}$dynamic_linker" >&6; }
11916 test "$dynamic_linker" = no && can_build_shared=no
11918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11919 if test "$GCC" = yes; then
11920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11924 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11927 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12019 if test -n "$hardcode_libdir_flag_spec" ||
12020 test -n "$runpath_var" ||
12021 test "X$hardcode_automatic" = "Xyes" ; then
12023 # We can hardcode non-existent directories.
12024 if test "$hardcode_direct" != no &&
12025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12026 # have to relink, otherwise we might link with an installed library
12027 # when we should be linking with a yet-to-be-installed one
12028 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12029 test "$hardcode_minus_L" != no; then
12030 # Linking always hardcodes the temporary library directory.
12031 hardcode_action=relink
12033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12034 hardcode_action=immediate
12037 # We cannot hardcode anything, or else we can only hardcode existing
12039 hardcode_action=unsupported
12041 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12042 echo "${ECHO_T}$hardcode_action" >&6; }
12044 if test "$hardcode_action" = relink ||
12045 test "$inherit_rpath" = yes; then
12046 # Fast installation is not supported
12047 enable_fast_install=no
12048 elif test "$shlibpath_overrides_runpath" = yes ||
12049 test "$enable_shared" = no; then
12050 # Fast installation is not necessary
12051 enable_fast_install=needless
12059 if test "x$enable_dlopen" != xyes; then
12060 enable_dlopen=unknown
12061 enable_dlopen_self=unknown
12062 enable_dlopen_self_static=unknown
12069 lt_cv_dlopen="load_add_on"
12071 lt_cv_dlopen_self=yes
12074 mingw* | pw32* | cegcc*)
12075 lt_cv_dlopen="LoadLibrary"
12080 lt_cv_dlopen="dlopen"
12085 # if libdl is installed we need to link against it
12086 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12087 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12088 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 ac_check_lib_save_LIBS=$LIBS
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12115 rm -f conftest.$ac_objext conftest$ac_exeext
12116 if { (ac_try="$ac_link"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_link") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest$ac_exeext &&
12132 $as_test_x conftest$ac_exeext; then
12133 ac_cv_lib_dl_dlopen=yes
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 ac_cv_lib_dl_dlopen=no
12141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12142 conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12147 if test $ac_cv_lib_dl_dlopen = yes; then
12148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12151 lt_cv_dlopen="dyld"
12153 lt_cv_dlopen_self=yes
12160 { echo "$as_me:$LINENO: checking for shl_load" >&5
12161 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12162 if test "${ac_cv_func_shl_load+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12173 #define shl_load innocuous_shl_load
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char shl_load (); below.
12177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178 <limits.h> exists even on freestanding compilers. */
12181 # include <limits.h>
12183 # include <assert.h>
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12195 /* The GNU C library defines this for functions which it implements
12196 to always fail with ENOSYS. Some functions are actually named
12197 something starting with __ and the normal name is an alias. */
12198 #if defined __stub_shl_load || defined __stub___shl_load
12205 return shl_load ();
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest$ac_exeext &&
12227 $as_test_x conftest$ac_exeext; then
12228 ac_cv_func_shl_load=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_func_shl_load=no
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237 conftest$ac_exeext conftest.$ac_ext
12239 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12240 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12241 if test $ac_cv_func_shl_load = yes; then
12242 lt_cv_dlopen="shl_load"
12244 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12245 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12246 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 ac_check_lib_save_LIBS=$LIBS
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12268 return shl_load ();
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext &&
12290 $as_test_x conftest$ac_exeext; then
12291 ac_cv_lib_dld_shl_load=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_cv_lib_dld_shl_load=no
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12305 if test $ac_cv_lib_dld_shl_load = yes; then
12306 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12308 { echo "$as_me:$LINENO: checking for dlopen" >&5
12309 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12310 if test "${ac_cv_func_dlopen+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12321 #define dlopen innocuous_dlopen
12323 /* System header to define __stub macros and hopefully few prototypes,
12324 which can conflict with char dlopen (); below.
12325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12326 <limits.h> exists even on freestanding compilers. */
12329 # include <limits.h>
12331 # include <assert.h>
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12343 /* The GNU C library defines this for functions which it implements
12344 to always fail with ENOSYS. Some functions are actually named
12345 something starting with __ and the normal name is an alias. */
12346 #if defined __stub_dlopen || defined __stub___dlopen
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (ac_try="$ac_link"
12360 case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_link") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && {
12372 test -z "$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12374 } && test -s conftest$ac_exeext &&
12375 $as_test_x conftest$ac_exeext; then
12376 ac_cv_func_dlopen=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_func_dlopen=no
12384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12385 conftest$ac_exeext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12388 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12389 if test $ac_cv_func_dlopen = yes; then
12390 lt_cv_dlopen="dlopen"
12392 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12393 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12394 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 ac_check_lib_save_LIBS=$LIBS
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 ac_cv_lib_dl_dlopen=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_cv_lib_dl_dlopen=no
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12449 LIBS=$ac_check_lib_save_LIBS
12451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12453 if test $ac_cv_lib_dl_dlopen = yes; then
12454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12456 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12457 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lsvld $LIBS"
12463 cat >conftest.$ac_ext <<_ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_link") 2>conftest.er1
12494 grep -v '^ *+' conftest.er1 >conftest.err
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && {
12499 test -z "$ac_c_werror_flag" ||
12500 test ! -s conftest.err
12501 } && test -s conftest$ac_exeext &&
12502 $as_test_x conftest$ac_exeext; then
12503 ac_cv_lib_svld_dlopen=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_lib_svld_dlopen=no
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12515 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12517 if test $ac_cv_lib_svld_dlopen = yes; then
12518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12520 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12544 return dld_link ();
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 ac_cv_lib_dld_dld_link=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_cv_lib_dld_dld_link=no
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12581 if test $ac_cv_lib_dld_dld_link = yes; then
12582 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12603 if test "x$lt_cv_dlopen" != xno; then
12609 case $lt_cv_dlopen in
12611 save_CPPFLAGS="$CPPFLAGS"
12612 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12614 save_LDFLAGS="$LDFLAGS"
12615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12618 LIBS="$lt_cv_dlopen_libs $LIBS"
12620 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12621 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12622 if test "${lt_cv_dlopen_self+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 if test "$cross_compiling" = yes; then :
12626 lt_cv_dlopen_self=cross
12628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12629 lt_status=$lt_dlunknown
12630 cat > conftest.$ac_ext <<_LT_EOF
12631 #line 12631 "configure"
12632 #include "confdefs.h"
12641 # define LT_DLGLOBAL RTLD_GLOBAL
12644 # define LT_DLGLOBAL DL_GLOBAL
12646 # define LT_DLGLOBAL 0
12650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12651 find out it does not work in some platform. */
12652 #ifndef LT_DLLAZY_OR_NOW
12654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12657 # define LT_DLLAZY_OR_NOW DL_LAZY
12660 # define LT_DLLAZY_OR_NOW RTLD_NOW
12663 # define LT_DLLAZY_OR_NOW DL_NOW
12665 # define LT_DLLAZY_OR_NOW 0
12672 void fnord() { int i=42;}
12675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12676 int status = $lt_dlunknown;
12680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12681 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12682 /* dlclose (self); */
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12695 (./conftest; exit; ) >&5 2>/dev/null
12697 case x$lt_status in
12698 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12699 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12700 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12703 # compilation failed
12704 lt_cv_dlopen_self=no
12711 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12712 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12714 if test "x$lt_cv_dlopen_self" = xyes; then
12715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12716 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12717 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12718 if test "${lt_cv_dlopen_self_static+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 if test "$cross_compiling" = yes; then :
12722 lt_cv_dlopen_self_static=cross
12724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12725 lt_status=$lt_dlunknown
12726 cat > conftest.$ac_ext <<_LT_EOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12737 # define LT_DLGLOBAL RTLD_GLOBAL
12740 # define LT_DLGLOBAL DL_GLOBAL
12742 # define LT_DLGLOBAL 0
12746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12747 find out it does not work in some platform. */
12748 #ifndef LT_DLLAZY_OR_NOW
12750 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12753 # define LT_DLLAZY_OR_NOW DL_LAZY
12756 # define LT_DLLAZY_OR_NOW RTLD_NOW
12759 # define LT_DLLAZY_OR_NOW DL_NOW
12761 # define LT_DLLAZY_OR_NOW 0
12768 void fnord() { int i=42;}
12771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12772 int status = $lt_dlunknown;
12776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12778 /* dlclose (self); */
12786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787 (eval $ac_link) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12791 (./conftest; exit; ) >&5 2>/dev/null
12793 case x$lt_status in
12794 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12795 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12796 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12799 # compilation failed
12800 lt_cv_dlopen_self_static=no
12807 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12808 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12811 CPPFLAGS="$save_CPPFLAGS"
12812 LDFLAGS="$save_LDFLAGS"
12817 case $lt_cv_dlopen_self in
12818 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12819 *) enable_dlopen_self=unknown ;;
12822 case $lt_cv_dlopen_self_static in
12823 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12824 *) enable_dlopen_self_static=unknown ;;
12846 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12848 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12851 { echo "$as_me:$LINENO: result: yes" >&5
12852 echo "${ECHO_T}yes" >&6; }
12854 # FIXME - insert some real tests, host_os isn't really good enough
12857 if test -n "$STRIP" ; then
12858 striplib="$STRIP -x"
12859 old_striplib="$STRIP -S"
12860 { echo "$as_me:$LINENO: result: yes" >&5
12861 echo "${ECHO_T}yes" >&6; }
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12868 { echo "$as_me:$LINENO: result: no" >&5
12869 echo "${ECHO_T}no" >&6; }
12885 # Report which library types will actually be built
12886 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12887 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12888 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12889 echo "${ECHO_T}$can_build_shared" >&6; }
12891 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12892 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12893 test "$can_build_shared" = "no" && enable_shared=no
12895 # On AIX, shared libraries and static libraries use the same namespace, and
12896 # are all built from PIC.
12899 test "$enable_shared" = yes && enable_static=no
12900 if test -n "$RANLIB"; then
12901 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12902 postinstall_cmds='$RANLIB $lib'
12907 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12908 test "$enable_shared" = yes && enable_static=no
12912 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12913 echo "${ECHO_T}$enable_shared" >&6; }
12915 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12916 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12917 # Make sure either enable_shared or enable_static is yes.
12918 test "$enable_shared" = yes || enable_static=yes
12919 { echo "$as_me:$LINENO: result: $enable_static" >&5
12920 echo "${ECHO_T}$enable_static" >&6; }
12927 ac_cpp='$CPP $CPPFLAGS'
12928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12941 archive_cmds_need_lc_CXX=no
12942 allow_undefined_flag_CXX=
12943 always_export_symbols_CXX=no
12944 archive_expsym_cmds_CXX=
12945 compiler_needs_object_CXX=no
12946 export_dynamic_flag_spec_CXX=
12947 hardcode_direct_CXX=no
12948 hardcode_direct_absolute_CXX=no
12949 hardcode_libdir_flag_spec_CXX=
12950 hardcode_libdir_flag_spec_ld_CXX=
12951 hardcode_libdir_separator_CXX=
12952 hardcode_minus_L_CXX=no
12953 hardcode_shlibpath_var_CXX=unsupported
12954 hardcode_automatic_CXX=no
12955 inherit_rpath_CXX=no
12957 module_expsym_cmds_CXX=
12958 link_all_deplibs_CXX=unknown
12959 old_archive_cmds_CXX=$old_archive_cmds
12960 no_undefined_flag_CXX=
12961 whole_archive_flag_spec_CXX=
12962 enable_shared_with_static_runtimes_CXX=no
12964 # Source file extension for C++ test sources.
12967 # Object file extension for compiled C++ test sources.
12971 # No sense in running all these tests if we already determined that
12972 # the CXX compiler isn't working. Some variables (like enable_shared)
12973 # are currently assumed to apply to all compilers on this platform,
12974 # and will be corrupted by setting them based on a non-working compiler.
12975 if test "$_lt_caught_CXX_error" != yes; then
12976 # Code to be used in simple compile tests
12977 lt_simple_compile_test_code="int some_variable = 0;"
12979 # Code to be used in simple link tests
12980 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12989 # If no C compiler was specified, use CC.
12992 # If no C compiler flags were specified, use CFLAGS.
12993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12995 # Allow CC to be a program name with arguments.
12999 # save warnings/boilerplate of simple test code
13000 ac_outfile=conftest.$ac_objext
13001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13003 _lt_compiler_boilerplate=`cat conftest.err`
13006 ac_outfile=conftest.$ac_objext
13007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009 _lt_linker_boilerplate=`cat conftest.err`
13013 # Allow CC to be a program name with arguments.
13018 lt_save_with_gnu_ld=$with_gnu_ld
13019 lt_save_path_LD=$lt_cv_path_LD
13020 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13021 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13023 $as_unset lt_cv_prog_gnu_ld
13025 if test -n "${lt_cv_path_LDCXX+set}"; then
13026 lt_cv_path_LD=$lt_cv_path_LDCXX
13028 $as_unset lt_cv_path_LD
13030 test -z "${LDCXX+set}" || LD=$LDCXX
13034 for cc_temp in $compiler""; do
13036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13042 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13045 if test -n "$compiler"; then
13046 # We don't want -fno-exception when compiling C++ code, so set the
13047 # no_builtin_flag separately
13048 if test "$GXX" = yes; then
13049 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13051 lt_prog_compiler_no_builtin_flag_CXX=
13054 if test "$GXX" = yes; then
13055 # Set up default GNU C++ configuration
13059 # Check whether --with-gnu-ld was given.
13060 if test "${with_gnu_ld+set}" = set; then
13061 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13067 if test "$GCC" = yes; then
13068 # Check if gcc -print-prog-name=ld gives a path.
13069 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13070 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13073 # gcc leaves a trailing carriage return which upsets mingw
13074 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13076 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13079 # Accept absolute paths.
13081 re_direlt='/[^/][^/]*/\.\./'
13082 # Canonicalize the pathname of ld
13083 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13084 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13085 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13087 test -z "$LD" && LD="$ac_prog"
13090 # If it fails, then pretend we aren't using GCC.
13094 # If it is relative, then search for the first ld in PATH.
13095 with_gnu_ld=unknown
13098 elif test "$with_gnu_ld" = yes; then
13099 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13102 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13105 if test "${lt_cv_path_LD+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 if test -z "$LD"; then
13109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13110 for ac_dir in $PATH; do
13112 test -z "$ac_dir" && ac_dir=.
13113 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13114 lt_cv_path_LD="$ac_dir/$ac_prog"
13115 # Check to see if the program is GNU ld. I'd rather use --version,
13116 # but apparently some variants of GNU ld only accept -v.
13117 # Break only if it was the GNU/non-GNU ld that we prefer.
13118 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13119 *GNU* | *'with BFD'*)
13120 test "$with_gnu_ld" != no && break
13123 test "$with_gnu_ld" != yes && break
13130 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13134 LD="$lt_cv_path_LD"
13135 if test -n "$LD"; then
13136 { echo "$as_me:$LINENO: result: $LD" >&5
13137 echo "${ECHO_T}$LD" >&6; }
13139 { echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6; }
13142 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13143 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13144 { (exit 1); exit 1; }; }
13145 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13146 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13147 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13151 case `$LD -v 2>&1 </dev/null` in
13152 *GNU* | *'with BFD'*)
13153 lt_cv_prog_gnu_ld=yes
13156 lt_cv_prog_gnu_ld=no
13160 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13161 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13162 with_gnu_ld=$lt_cv_prog_gnu_ld
13170 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13171 # archiving commands below assume that GNU ld is being used.
13172 if test "$with_gnu_ld" = yes; then
13173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174 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'
13176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13179 # If archive_cmds runs LD, not CC, wlarc should be empty
13180 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13181 # investigate it a little bit more. (MM)
13184 # ancient GNU ld didn't support --whole-archive et. al.
13185 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13186 $GREP 'no-whole-archive' > /dev/null; then
13187 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13189 whole_archive_flag_spec_CXX=
13195 # A generic and very simple default shared library creation
13196 # command for GNU C++ for the case where it uses the native
13197 # linker, instead of GNU ld. If possible, this setting should
13198 # overridden to take advantage of the native linker features on
13199 # the platform it is being used on.
13200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13203 # Commands to make compiler produce verbose output that lists
13204 # what "hidden" libraries, object files and flags are used when
13205 # linking a shared library.
13206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13214 # PORTME: fill in a description of your system's C++ link characteristics
13215 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13220 # FIXME: insert proper C++ library support
13224 if test "$host_cpu" = ia64; then
13225 # On IA64, the linker does run time linking by default, so we don't
13226 # have to do anything special.
13227 aix_use_runtimelinking=no
13228 exp_sym_flag='-Bexport'
13231 aix_use_runtimelinking=no
13233 # Test if we are trying to use run time linking or normal
13234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235 # need to do runtime linking.
13236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13237 for ld_flag in $LDFLAGS; do
13240 aix_use_runtimelinking=yes
13248 exp_sym_flag='-bexport'
13249 no_entry_flag='-bnoentry'
13252 # When large executables or shared objects are built, AIX ld can
13253 # have problems creating the table of contents. If linking a library
13254 # or program results in "error TOC overflow" add -mminimal-toc to
13255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13258 archive_cmds_CXX=''
13259 hardcode_direct_CXX=yes
13260 hardcode_direct_absolute_CXX=yes
13261 hardcode_libdir_separator_CXX=':'
13262 link_all_deplibs_CXX=yes
13263 file_list_spec_CXX='${wl}-f,'
13265 if test "$GXX" = yes; then
13266 case $host_os in aix4.[012]|aix4.[012].*)
13267 # We only want to do this on AIX 4.2 and lower, the check
13268 # below for broken collect2 doesn't work under 4.3+
13269 collect2name=`${CC} -print-prog-name=collect2`
13270 if test -f "$collect2name" &&
13271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13273 # We have reworked collect2
13276 # We have old collect2
13277 hardcode_direct_CXX=unsupported
13278 # It fails to find uninstalled libraries when the uninstalled
13279 # path is not listed in the libpath. Setting hardcode_minus_L
13280 # to unsupported forces relinking
13281 hardcode_minus_L_CXX=yes
13282 hardcode_libdir_flag_spec_CXX='-L$libdir'
13283 hardcode_libdir_separator_CXX=
13286 shared_flag='-shared'
13287 if test "$aix_use_runtimelinking" = yes; then
13288 shared_flag="$shared_flag "'${wl}-G'
13292 if test "$host_cpu" = ia64; then
13293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13294 # chokes on -Wl,-G. The following line is correct:
13297 if test "$aix_use_runtimelinking" = yes; then
13298 shared_flag='${wl}-G'
13300 shared_flag='${wl}-bM:SRE'
13305 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13306 # It seems that -bexpall does not export symbols beginning with
13307 # underscore (_), so it is better to generate a list of symbols to
13309 always_export_symbols_CXX=yes
13310 if test "$aix_use_runtimelinking" = yes; then
13311 # Warning - without using the other runtime loading flags (-brtl),
13312 # -berok will link without error, but may produce a broken library.
13313 allow_undefined_flag_CXX='-berok'
13314 # Determine the default libpath from the value encoded in an empty
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13331 rm -f conftest.$ac_objext conftest$ac_exeext
13332 if { (ac_try="$ac_link"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_link") 2>conftest.er1
13340 grep -v '^ *+' conftest.er1 >conftest.err
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_cxx_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest$ac_exeext &&
13348 $as_test_x conftest$ac_exeext; then
13350 lt_aix_libpath_sed='
13351 /Import File Strings/,/^$/ {
13357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13358 # Check for a 64-bit object if we didn't find anything.
13359 if test -z "$aix_libpath"; then
13360 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13370 conftest$ac_exeext conftest.$ac_ext
13371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13373 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13375 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"
13377 if test "$host_cpu" = ia64; then
13378 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13379 allow_undefined_flag_CXX="-z nodefs"
13380 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"
13382 # Determine the default libpath from the value encoded in an
13383 # empty executable.
13384 cat >conftest.$ac_ext <<_ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>conftest.er1
13408 grep -v '^ *+' conftest.er1 >conftest.err
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } && {
13413 test -z "$ac_cxx_werror_flag" ||
13414 test ! -s conftest.err
13415 } && test -s conftest$ac_exeext &&
13416 $as_test_x conftest$ac_exeext; then
13418 lt_aix_libpath_sed='
13419 /Import File Strings/,/^$/ {
13425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 # Check for a 64-bit object if we didn't find anything.
13427 if test -z "$aix_libpath"; then
13428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13438 conftest$ac_exeext conftest.$ac_ext
13439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13441 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13442 # Warning - without using the other run time loading flags,
13443 # -berok will link without error, but may produce a broken library.
13444 no_undefined_flag_CXX=' ${wl}-bernotok'
13445 allow_undefined_flag_CXX=' ${wl}-berok'
13446 # Exported symbols can be pulled into shared objects from archives
13447 whole_archive_flag_spec_CXX='$convenience'
13448 archive_cmds_need_lc_CXX=yes
13449 # This is similar to how AIX traditionally builds its shared
13451 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'
13457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13458 allow_undefined_flag_CXX=unsupported
13459 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13460 # support --undefined. This deserves some investigation. FIXME
13461 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468 case $cc_basename in
13470 # FIXME: insert proper C++ library support
13476 cygwin* | mingw* | pw32* | cegcc*)
13477 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13478 # as there is no search path for DLLs.
13479 hardcode_libdir_flag_spec_CXX='-L$libdir'
13480 allow_undefined_flag_CXX=unsupported
13481 always_export_symbols_CXX=no
13482 enable_shared_with_static_runtimes_CXX=yes
13484 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13485 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'
13486 # If the export-symbols file already is a .def file (1st line
13487 # is EXPORTS), use it as is; otherwise, prepend...
13488 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13489 cp $export_symbols $output_objdir/$soname.def;
13491 echo EXPORTS > $output_objdir/$soname.def;
13492 cat $export_symbols >> $output_objdir/$soname.def;
13494 $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'
13499 darwin* | rhapsody*)
13502 archive_cmds_need_lc_CXX=no
13503 hardcode_direct_CXX=no
13504 hardcode_automatic_CXX=yes
13505 hardcode_shlibpath_var_CXX=unsupported
13506 whole_archive_flag_spec_CXX=''
13507 link_all_deplibs_CXX=yes
13508 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13509 case $cc_basename in
13510 ifort*) _lt_dar_can_shared=yes ;;
13511 *) _lt_dar_can_shared=$GCC ;;
13513 if test "$_lt_dar_can_shared" = "yes"; then
13514 output_verbose_link_cmd=echo
13515 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}"
13516 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13517 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}"
13518 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}"
13519 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13520 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}"
13521 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}"
13531 case $cc_basename in
13533 # FIXME: insert proper C++ library support
13537 # Green Hills C++ Compiler
13538 # FIXME: insert proper C++ library support
13542 # FIXME: insert proper C++ library support
13549 # C++ shared libraries reported to be fairly broken before
13555 archive_cmds_need_lc_CXX=no
13558 freebsd* | dragonfly*)
13559 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13569 hardcode_libdir_separator_CXX=:
13570 export_dynamic_flag_spec_CXX='${wl}-E'
13571 hardcode_direct_CXX=yes
13572 hardcode_minus_L_CXX=yes # Not in the search PATH,
13573 # but as the default
13574 # location of the library.
13576 case $cc_basename in
13578 # FIXME: insert proper C++ library support
13582 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'
13583 # Commands to make compiler produce verbose output that lists
13584 # what "hidden" libraries, object files and flags are used when
13585 # linking a shared library.
13587 # There doesn't appear to be a way to prevent this compiler from
13588 # explicitly linking system object files so we need to strip them
13589 # from the output so that they don't get included in the library
13591 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'
13594 if test "$GXX" = yes; then
13595 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'
13597 # FIXME: insert proper C++ library support
13605 if test $with_gnu_ld = no; then
13606 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13607 hardcode_libdir_separator_CXX=:
13613 export_dynamic_flag_spec_CXX='${wl}-E'
13619 hardcode_direct_CXX=no
13620 hardcode_shlibpath_var_CXX=no
13623 hardcode_direct_CXX=yes
13624 hardcode_direct_absolute_CXX=yes
13625 hardcode_minus_L_CXX=yes # Not in the search PATH,
13626 # but as the default
13627 # location of the library.
13631 case $cc_basename in
13633 # FIXME: insert proper C++ library support
13639 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13645 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648 # Commands to make compiler produce verbose output that lists
13649 # what "hidden" libraries, object files and flags are used when
13650 # linking a shared library.
13652 # There doesn't appear to be a way to prevent this compiler from
13653 # explicitly linking system object files so we need to strip them
13654 # from the output so that they don't get included in the library
13656 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'
13659 if test "$GXX" = yes; then
13660 if test $with_gnu_ld = no; then
13663 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13666 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669 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'
13674 # FIXME: insert proper C++ library support
13682 hardcode_direct_CXX=no
13683 hardcode_shlibpath_var_CXX=no
13684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685 export_dynamic_flag_spec_CXX='${wl}-E'
13686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13687 # Instead, shared libraries are loaded at an image base (0x10000000 by
13688 # default) and relocated if they conflict, which is a slow very memory
13689 # consuming and fragmenting process. To avoid this, we pick a random,
13690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13691 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13692 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'
13693 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'
13696 case $cc_basename in
13699 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'
13701 # Archives containing C++ object files must be created using
13702 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13703 # necessary to make sure instantiated templates are included
13705 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13708 if test "$GXX" = yes; then
13709 if test "$with_gnu_ld" = no; then
13710 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'
13712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13715 link_all_deplibs_CXX=yes
13718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13719 hardcode_libdir_separator_CXX=:
13720 inherit_rpath_CXX=yes
13723 linux* | k*bsd*-gnu)
13724 case $cc_basename in
13726 # Kuck and Associates, Inc. (KAI) C++ Compiler
13728 # KCC will only create a shared library if the output file
13729 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13730 # to its proper name (with version) after linking.
13731 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'
13732 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'
13733 # Commands to make compiler produce verbose output that lists
13734 # what "hidden" libraries, object files and flags are used when
13735 # linking a shared library.
13737 # There doesn't appear to be a way to prevent this compiler from
13738 # explicitly linking system object files so we need to strip them
13739 # from the output so that they don't get included in the library
13741 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'
13743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13746 # Archives containing C++ object files must be created using
13747 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13748 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13753 # version 8.0 and above of icpc choke on multiply defined symbols
13754 # if we add $predep_objects and $postdep_objects, however 7.1 and
13755 # earlier do not add the objects themselves.
13756 case `$CC -V 2>&1` in
13758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 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'
13761 *) # Version 8.0 or newer
13764 ia64*) tmp_idyn=' -i_dynamic';;
13766 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13767 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'
13770 archive_cmds_need_lc_CXX=no
13771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13773 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13776 # Portland Group C++ compiler
13778 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13779 prelink_cmds_CXX='tpldir=Template.dir~
13781 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13782 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13783 old_archive_cmds_CXX='tpldir=Template.dir~
13785 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13786 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13788 archive_cmds_CXX='tpldir=Template.dir~
13790 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13791 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13792 archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13797 *) # Version 6 will use weak symbols
13798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13799 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'
13803 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13805 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'
13809 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810 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'
13812 runpath_var=LD_RUN_PATH
13813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13814 hardcode_libdir_separator_CXX=:
13816 # Commands to make compiler produce verbose output that lists
13817 # what "hidden" libraries, object files and flags are used when
13818 # linking a shared library.
13820 # There doesn't appear to be a way to prevent this compiler from
13821 # explicitly linking system object files so we need to strip them
13822 # from the output so that they don't get included in the library
13824 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'
13827 # IBM XL 8.0 on PPC, with GNU ld
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13829 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13830 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831 if test "x$supports_anon_versioning" = xyes; then
13832 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13834 echo "local: *; };" >> $output_objdir/$libname.ver~
13835 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13839 case `$CC -V 2>&1 | sed 5q` in
13842 no_undefined_flag_CXX=' -zdefs'
13843 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13844 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'
13845 hardcode_libdir_flag_spec_CXX='-R$libdir'
13846 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'
13847 compiler_needs_object_CXX=yes
13849 # Not sure whether something based on
13850 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13852 output_verbose_link_cmd='echo'
13854 # Archives containing C++ object files must be created using
13855 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13856 # necessary to make sure instantiated templates are included
13858 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13866 # FIXME: insert proper C++ library support
13871 # FIXME: insert proper C++ library support
13876 case $cc_basename in
13878 # FIXME: insert proper C++ library support
13882 # FIXME: insert proper C++ library support
13889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13890 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13892 hardcode_libdir_flag_spec_CXX='-R$libdir'
13893 hardcode_direct_CXX=yes
13894 hardcode_shlibpath_var_CXX=no
13896 # Workaround some broken pre-1.5 toolchains
13897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13905 # C++ shared libraries are fairly broken
13910 if test -f /usr/libexec/ld.so; then
13911 hardcode_direct_CXX=yes
13912 hardcode_shlibpath_var_CXX=no
13913 hardcode_direct_absolute_CXX=yes
13914 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13915 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13917 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13918 export_dynamic_flag_spec_CXX='${wl}-E'
13919 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13921 output_verbose_link_cmd=echo
13927 osf3* | osf4* | osf5*)
13928 case $cc_basename in
13930 # Kuck and Associates, Inc. (KAI) C++ Compiler
13932 # KCC will only create a shared library if the output file
13933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13934 # to its proper name (with version) after linking.
13935 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'
13937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13938 hardcode_libdir_separator_CXX=:
13940 # Archives containing C++ object files must be created using
13941 # the KAI C++ compiler.
13943 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13944 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13948 # Rational C++ 2.4.1
13949 # FIXME: insert proper C++ library support
13955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13956 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'
13957 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13960 allow_undefined_flag_CXX=' -expect_unresolved \*'
13961 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'
13962 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13963 echo "-hidden">> $lib.exp~
13964 $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~
13966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13970 hardcode_libdir_separator_CXX=:
13972 # Commands to make compiler produce verbose output that lists
13973 # what "hidden" libraries, object files and flags are used when
13974 # linking a shared library.
13976 # There doesn't appear to be a way to prevent this compiler from
13977 # explicitly linking system object files so we need to strip them
13978 # from the output so that they don't get included in the library
13980 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'
13983 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13984 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13987 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'
13990 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'
13994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13995 hardcode_libdir_separator_CXX=:
13997 # Commands to make compiler produce verbose output that lists
13998 # what "hidden" libraries, object files and flags are used when
13999 # linking a shared library.
14000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14003 # FIXME: insert proper C++ library support
14011 # FIXME: insert proper C++ library support
14016 case $cc_basename in
14019 # FIXME: insert proper C++ library support
14024 # FIXME: insert proper C++ library support
14028 # FIXME: insert proper C++ library support
14035 case $cc_basename in
14037 # Sun C++ 4.2, 5.x and Centerline C++
14038 archive_cmds_need_lc_CXX=yes
14039 no_undefined_flag_CXX=' -zdefs'
14040 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14042 $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'
14044 hardcode_libdir_flag_spec_CXX='-R$libdir'
14045 hardcode_shlibpath_var_CXX=no
14047 solaris2.[0-5] | solaris2.[0-5].*) ;;
14049 # The compiler driver will combine and reorder linker options,
14050 # but understands `-z linker_flag'.
14051 # Supported since Solaris 2.6 (maybe 2.5.1?)
14052 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14055 link_all_deplibs_CXX=yes
14057 output_verbose_link_cmd='echo'
14059 # Archives containing C++ object files must be created using
14060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14061 # necessary to make sure instantiated templates are included
14063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14066 # Green Hills C++ Compiler
14067 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14069 # The C++ compiler must be used to create the archive.
14070 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14073 # GNU C++ compiler with Solaris linker
14074 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14075 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14076 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14077 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14078 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14079 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14081 # Commands to make compiler produce verbose output that lists
14082 # what "hidden" libraries, object files and flags are used when
14083 # linking a shared library.
14084 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14086 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14088 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14089 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14090 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14092 # Commands to make compiler produce verbose output that lists
14093 # what "hidden" libraries, object files and flags are used when
14094 # linking a shared library.
14095 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14098 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14100 solaris2.[0-5] | solaris2.[0-5].*) ;;
14102 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14110 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14111 no_undefined_flag_CXX='${wl}-z,text'
14112 archive_cmds_need_lc_CXX=no
14113 hardcode_shlibpath_var_CXX=no
14114 runpath_var='LD_RUN_PATH'
14116 case $cc_basename in
14118 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14122 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128 sysv5* | sco3.2v5* | sco5v6*)
14129 # Note: We can NOT use -z defs as we might desire, because we do not
14130 # link with -lc, and that would cause any symbols used from libc to
14131 # always be unresolved, which means just about no library would
14132 # ever link correctly. If we're not using GNU ld we use -z text
14133 # though, which does catch some bad symbols but isn't as heavy-handed
14135 no_undefined_flag_CXX='${wl}-z,text'
14136 allow_undefined_flag_CXX='${wl}-z,nodefs'
14137 archive_cmds_need_lc_CXX=no
14138 hardcode_shlibpath_var_CXX=no
14139 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14140 hardcode_libdir_separator_CXX=':'
14141 link_all_deplibs_CXX=yes
14142 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14143 runpath_var='LD_RUN_PATH'
14145 case $cc_basename in
14147 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14151 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14158 case $cc_basename in
14160 # NonStop-UX NCC 3.20
14161 # FIXME: insert proper C++ library support
14165 # FIXME: insert proper C++ library support
14172 # FIXME: insert proper C++ library support
14177 # FIXME: insert proper C++ library support
14182 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14184 test "$ld_shlibs_CXX" = no && can_build_shared=no
14190 ## There is no encapsulation within the following macros, do not change
14191 ## the running order or otherwise move them around unless you know exactly
14192 ## what you are doing...
14193 # Dependencies to place before and after the object being linked:
14194 predep_objects_CXX=
14195 postdep_objects_CXX=
14198 compiler_lib_search_path_CXX=
14200 cat > conftest.$ac_ext <<_LT_EOF
14204 Foo (void) { a = 0; }
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; then
14215 # Parse the compiler output and extract the necessary
14216 # objects, libraries and library flags.
14218 # Sentinel used to keep track of whether or not we are before
14219 # the conftest object file.
14220 pre_test_object_deps_done=no
14222 for p in `eval "$output_verbose_link_cmd"`; do
14226 # Some compilers place space between "-{L,R}" and the path.
14227 # Remove the space.
14228 if test $p = "-L" ||
14229 test $p = "-R"; then
14236 if test "$pre_test_object_deps_done" = no; then
14239 # Internal compiler library paths should come after those
14240 # provided the user. The postdeps already come after the
14241 # user supplied libs so there is no need to process them.
14242 if test -z "$compiler_lib_search_path_CXX"; then
14243 compiler_lib_search_path_CXX="${prev}${p}"
14245 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14248 # The "-l" case would never come before the object being
14249 # linked, so don't bother handling this case.
14252 if test -z "$postdeps_CXX"; then
14253 postdeps_CXX="${prev}${p}"
14255 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14261 # This assumes that the test object file only shows up
14262 # once in the compiler output.
14263 if test "$p" = "conftest.$objext"; then
14264 pre_test_object_deps_done=yes
14268 if test "$pre_test_object_deps_done" = no; then
14269 if test -z "$predep_objects_CXX"; then
14270 predep_objects_CXX="$p"
14272 predep_objects_CXX="$predep_objects_CXX $p"
14275 if test -z "$postdep_objects_CXX"; then
14276 postdep_objects_CXX="$p"
14278 postdep_objects_CXX="$postdep_objects_CXX $p"
14283 *) ;; # Ignore the rest.
14291 echo "libtool.m4: error: problem compiling CXX test program"
14294 $RM -f confest.$objext
14296 # PORTME: override above test on systems where it is broken
14299 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14300 # hack all around it, let's just trust "g++" to DTRT.
14301 predep_objects_CXX=
14302 postdep_objects_CXX=
14307 case `$CC -V 2>&1 | sed 5q` in
14311 # The more standards-conforming stlport4 library is
14312 # incompatible with the Cstd library. Avoid specifying
14313 # it if it's in CXXFLAGS. Ignore libCrun as
14314 # -library=stlport4 depends on it.
14315 case " $CXX $CXXFLAGS " in
14316 *" -library=stlport4 "*)
14317 solaris_use_stlport4=yes
14321 if test "$solaris_use_stlport4" != yes; then
14322 postdeps_CXX='-library=Cstd -library=Crun'
14329 case $cc_basename in
14331 # The more standards-conforming stlport4 library is
14332 # incompatible with the Cstd library. Avoid specifying
14333 # it if it's in CXXFLAGS. Ignore libCrun as
14334 # -library=stlport4 depends on it.
14335 case " $CXX $CXXFLAGS " in
14336 *" -library=stlport4 "*)
14337 solaris_use_stlport4=yes
14341 # Adding this requires a known-good setup of shared libraries for
14342 # Sun compiler versions before 5.6, else PIC objects from an old
14343 # archive will be linked into the output, leading to subtle bugs.
14344 if test "$solaris_use_stlport4" != yes; then
14345 postdeps_CXX='-library=Cstd -library=Crun'
14353 case " $postdeps_CXX " in
14354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14356 compiler_lib_search_dirs_CXX=
14357 if test -n "${compiler_lib_search_path_CXX}"; then
14358 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14391 lt_prog_compiler_wl_CXX=
14392 lt_prog_compiler_pic_CXX=
14393 lt_prog_compiler_static_CXX=
14395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14398 # C++ specific cases for pic, static, wl, etc.
14399 if test "$GXX" = yes; then
14400 lt_prog_compiler_wl_CXX='-Wl,'
14401 lt_prog_compiler_static_CXX='-static'
14405 # All AIX code is PIC.
14406 if test "$host_cpu" = ia64; then
14407 # AIX 5 now supports IA64 processor
14408 lt_prog_compiler_static_CXX='-Bstatic'
14415 # see comment about AmigaOS4 .so support
14416 lt_prog_compiler_pic_CXX='-fPIC'
14419 # FIXME: we need at least 68020 code to build shared libraries, but
14420 # adding the `-m68020' flag to GCC prevents building anything better,
14422 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14428 # PIC is the default for these OSes.
14430 mingw* | cygwin* | os2* | pw32* | cegcc*)
14431 # This hack is so that the source file can tell whether it is being
14432 # built for inclusion in a dll (and should export symbols for example).
14433 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14434 # (--disable-auto-import) libraries
14435 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14437 darwin* | rhapsody*)
14438 # PIC is the default on this platform
14439 # Common symbols not allowed in MH_DYLIB files
14440 lt_prog_compiler_pic_CXX='-fno-common'
14443 # DJGPP does not support shared libraries at all
14444 lt_prog_compiler_pic_CXX=
14447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14448 # Instead, we relocate shared libraries at runtime.
14451 if test -d /usr/nec; then
14452 lt_prog_compiler_pic_CXX=-Kconform_pic
14456 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14457 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14458 # sets the default TLS model and affects inlining.
14463 lt_prog_compiler_pic_CXX='-fPIC'
14468 # QNX uses GNU C++, but need to define -shared option too, otherwise
14469 # it will coredump.
14470 lt_prog_compiler_pic_CXX='-fPIC -shared'
14473 lt_prog_compiler_pic_CXX='-fPIC'
14479 # All AIX code is PIC.
14480 if test "$host_cpu" = ia64; then
14481 # AIX 5 now supports IA64 processor
14482 lt_prog_compiler_static_CXX='-Bstatic'
14484 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14488 case $cc_basename in
14490 # Green Hills C++ Compiler
14491 # _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"
14496 case $cc_basename in
14498 lt_prog_compiler_pic_CXX='-KPIC'
14501 # Green Hills C++ Compiler
14502 lt_prog_compiler_pic_CXX='-pic'
14508 freebsd* | dragonfly*)
14509 # FreeBSD uses GNU C++
14511 hpux9* | hpux10* | hpux11*)
14512 case $cc_basename in
14514 lt_prog_compiler_wl_CXX='-Wl,'
14515 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14516 if test "$host_cpu" != ia64; then
14517 lt_prog_compiler_pic_CXX='+Z'
14521 lt_prog_compiler_wl_CXX='-Wl,'
14522 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14528 lt_prog_compiler_pic_CXX='+Z'
14537 # This is c89, which is MS Visual C++ (no shared libs)
14538 # Anyone wants to do a port?
14540 irix5* | irix6* | nonstopux*)
14541 case $cc_basename in
14543 lt_prog_compiler_wl_CXX='-Wl,'
14544 lt_prog_compiler_static_CXX='-non_shared'
14545 # CC pic flag -KPIC is the default.
14551 linux* | k*bsd*-gnu)
14552 case $cc_basename in
14555 lt_prog_compiler_wl_CXX='--backend -Wl,'
14556 lt_prog_compiler_pic_CXX='-fPIC'
14559 # old Intel C++ for x86_64 which still supported -KPIC.
14560 lt_prog_compiler_wl_CXX='-Wl,'
14561 lt_prog_compiler_pic_CXX='-KPIC'
14562 lt_prog_compiler_static_CXX='-static'
14565 # Intel C++, used to be incompatible with GCC.
14566 # ICC 10 doesn't accept -KPIC any more.
14567 lt_prog_compiler_wl_CXX='-Wl,'
14568 lt_prog_compiler_pic_CXX='-fPIC'
14569 lt_prog_compiler_static_CXX='-static'
14572 # Portland Group C++ compiler
14573 lt_prog_compiler_wl_CXX='-Wl,'
14574 lt_prog_compiler_pic_CXX='-fpic'
14575 lt_prog_compiler_static_CXX='-Bstatic'
14579 # Make sure the PIC flag is empty. It appears that all Alpha
14580 # Linux and Compaq Tru64 Unix objects are PIC.
14581 lt_prog_compiler_pic_CXX=
14582 lt_prog_compiler_static_CXX='-non_shared'
14585 # IBM XL 8.0 on PPC
14586 lt_prog_compiler_wl_CXX='-Wl,'
14587 lt_prog_compiler_pic_CXX='-qpic'
14588 lt_prog_compiler_static_CXX='-qstaticlink'
14591 case `$CC -V 2>&1 | sed 5q` in
14594 lt_prog_compiler_pic_CXX='-KPIC'
14595 lt_prog_compiler_static_CXX='-Bstatic'
14596 lt_prog_compiler_wl_CXX='-Qoption ld '
14607 case $cc_basename in
14609 lt_prog_compiler_pic_CXX='-W c,exportall'
14618 # QNX uses GNU C++, but need to define -shared option too, otherwise
14619 # it will coredump.
14620 lt_prog_compiler_pic_CXX='-fPIC -shared'
14622 osf3* | osf4* | osf5*)
14623 case $cc_basename in
14625 lt_prog_compiler_wl_CXX='--backend -Wl,'
14628 # Rational C++ 2.4.1
14629 lt_prog_compiler_pic_CXX='-pic'
14632 # Digital/Compaq C++
14633 lt_prog_compiler_wl_CXX='-Wl,'
14634 # Make sure the PIC flag is empty. It appears that all Alpha
14635 # Linux and Compaq Tru64 Unix objects are PIC.
14636 lt_prog_compiler_pic_CXX=
14637 lt_prog_compiler_static_CXX='-non_shared'
14646 case $cc_basename in
14648 # Sun C++ 4.2, 5.x and Centerline C++
14649 lt_prog_compiler_pic_CXX='-KPIC'
14650 lt_prog_compiler_static_CXX='-Bstatic'
14651 lt_prog_compiler_wl_CXX='-Qoption ld '
14654 # Green Hills C++ Compiler
14655 lt_prog_compiler_pic_CXX='-PIC'
14662 case $cc_basename in
14665 lt_prog_compiler_pic_CXX='-pic'
14666 lt_prog_compiler_static_CXX='-Bstatic'
14670 lt_prog_compiler_pic_CXX='-pic'
14676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14677 case $cc_basename in
14679 lt_prog_compiler_wl_CXX='-Wl,'
14680 lt_prog_compiler_pic_CXX='-KPIC'
14681 lt_prog_compiler_static_CXX='-Bstatic'
14686 case $cc_basename in
14688 # NonStop-UX NCC 3.20
14689 lt_prog_compiler_pic_CXX='-KPIC'
14698 lt_prog_compiler_can_build_shared_CXX=no
14704 # For platforms which do not support PIC, -DPIC is meaningless:
14706 lt_prog_compiler_pic_CXX=
14709 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14713 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14718 # Check to make sure the PIC flag actually works.
14720 if test -n "$lt_prog_compiler_pic_CXX"; then
14721 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14722 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14723 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 lt_cv_prog_compiler_pic_works_CXX=no
14727 ac_outfile=conftest.$ac_objext
14728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14730 # Insert the option either (1) after the last *FLAGS variable, or
14731 # (2) before a word containing "conftest.", or (3) at the end.
14732 # Note that $ac_compile itself does not contain backslashes and begins
14733 # with a dollar sign (not a hyphen), so the echo should work correctly.
14734 # The option is referenced via a variable to avoid confusing sed.
14735 lt_compile=`echo "$ac_compile" | $SED \
14736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14738 -e 's:$: $lt_compiler_flag:'`
14739 (eval echo "\"\$as_me:14739: $lt_compile\"" >&5)
14740 (eval "$lt_compile" 2>conftest.err)
14742 cat conftest.err >&5
14743 echo "$as_me:14743: \$? = $ac_status" >&5
14744 if (exit $ac_status) && test -s "$ac_outfile"; then
14745 # The compiler can only warn and ignore the option if not recognized
14746 # So say no if there are warnings other than the usual output.
14747 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14750 lt_cv_prog_compiler_pic_works_CXX=yes
14756 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14757 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14759 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14760 case $lt_prog_compiler_pic_CXX in
14762 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14765 lt_prog_compiler_pic_CXX=
14766 lt_prog_compiler_can_build_shared_CXX=no
14774 # Check to make sure the static flag actually works.
14776 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14777 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14778 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14779 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 lt_cv_prog_compiler_static_works_CXX=no
14783 save_LDFLAGS="$LDFLAGS"
14784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14787 # The linker can only warn and ignore the option if not recognized
14788 # So say no if there are warnings
14789 if test -s conftest.err; then
14790 # Append any errors to the config.log.
14791 cat conftest.err 1>&5
14792 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14794 if diff conftest.exp conftest.er2 >/dev/null; then
14795 lt_cv_prog_compiler_static_works_CXX=yes
14798 lt_cv_prog_compiler_static_works_CXX=yes
14802 LDFLAGS="$save_LDFLAGS"
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14808 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14811 lt_prog_compiler_static_CXX=
14817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14819 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 lt_cv_prog_compiler_c_o_CXX=no
14823 $RM -r conftest 2>/dev/null
14827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14829 lt_compiler_flag="-o out/conftest2.$ac_objext"
14830 # Insert the option either (1) after the last *FLAGS variable, or
14831 # (2) before a word containing "conftest.", or (3) at the end.
14832 # Note that $ac_compile itself does not contain backslashes and begins
14833 # with a dollar sign (not a hyphen), so the echo should work correctly.
14834 lt_compile=`echo "$ac_compile" | $SED \
14835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14837 -e 's:$: $lt_compiler_flag:'`
14838 (eval echo "\"\$as_me:14838: $lt_compile\"" >&5)
14839 (eval "$lt_compile" 2>out/conftest.err)
14841 cat out/conftest.err >&5
14842 echo "$as_me:14842: \$? = $ac_status" >&5
14843 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14845 # The compiler can only warn and ignore the option if not recognized
14846 # So say no if there are warnings
14847 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14848 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14849 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14850 lt_cv_prog_compiler_c_o_CXX=yes
14855 # SGI C++ compiler will create directory out/ii_files/ for
14856 # template instantiation
14857 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14858 $RM out/* && rmdir out
14864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14869 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14871 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 lt_cv_prog_compiler_c_o_CXX=no
14875 $RM -r conftest 2>/dev/null
14879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14881 lt_compiler_flag="-o out/conftest2.$ac_objext"
14882 # Insert the option either (1) after the last *FLAGS variable, or
14883 # (2) before a word containing "conftest.", or (3) at the end.
14884 # Note that $ac_compile itself does not contain backslashes and begins
14885 # with a dollar sign (not a hyphen), so the echo should work correctly.
14886 lt_compile=`echo "$ac_compile" | $SED \
14887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889 -e 's:$: $lt_compiler_flag:'`
14890 (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891 (eval "$lt_compile" 2>out/conftest.err)
14893 cat out/conftest.err >&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14897 # The compiler can only warn and ignore the option if not recognized
14898 # So say no if there are warnings
14899 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902 lt_cv_prog_compiler_c_o_CXX=yes
14907 # SGI C++ compiler will create directory out/ii_files/ for
14908 # template instantiation
14909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910 $RM out/* && rmdir out
14916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14922 hard_links="nottested"
14923 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14924 # do not overwrite the value of need_locks provided by the user
14925 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14931 ln conftest.a conftest.b 2>&5 || hard_links=no
14932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933 { echo "$as_me:$LINENO: result: $hard_links" >&5
14934 echo "${ECHO_T}$hard_links" >&6; }
14935 if test "$hard_links" = no; then
14936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14952 # If we're using GNU nm, then we don't want the "-C" option.
14953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14954 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14955 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'
14957 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'
14961 export_symbols_cmds_CXX="$ltdll_cmds"
14963 cygwin* | mingw* | cegcc*)
14964 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'
14967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14970 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14972 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14973 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14974 test "$ld_shlibs_CXX" = no && can_build_shared=no
14976 with_gnu_ld_CXX=$with_gnu_ld
14984 # Do we need to explicitly link libc?
14986 case "x$archive_cmds_need_lc_CXX" in
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_CXX=yes
14991 if test "$enable_shared" = yes && test "$GCC" = yes; then
14992 case $archive_cmds_CXX in
14994 # FIXME: we may have to deal with multi-command sequences.
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15001 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006 (eval $ac_compile) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } 2>conftest.err; then
15012 libobjs=conftest.$ac_objext
15014 wl=$lt_prog_compiler_wl_CXX
15015 pic_flag=$lt_prog_compiler_pic_CXX
15021 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15022 allow_undefined_flag_CXX=
15023 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15024 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }
15029 archive_cmds_need_lc_CXX=no
15031 archive_cmds_need_lc_CXX=yes
15033 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15035 cat conftest.err 1>&5
15038 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15039 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15109 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15110 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15112 library_names_spec=
15113 libname_spec='lib$name'
15117 postuninstall_cmds=
15121 shlibpath_overrides_runpath=unknown
15123 dynamic_linker="$host_os ld.so"
15124 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15125 need_lib_prefix=unknown
15126 hardcode_into_libs=no
15128 # when you set need_version to no, make sure it does not cause -set_version
15129 # flags to be left without arguments
15130 need_version=unknown
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15136 shlibpath_var=LIBPATH
15138 # AIX 3 has no versioning support, so we append a major version to the name.
15139 soname_spec='${libname}${release}${shared_ext}$major'
15146 hardcode_into_libs=yes
15147 if test "$host_cpu" = ia64; then
15148 # AIX 5 supports IA64
15149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15150 shlibpath_var=LD_LIBRARY_PATH
15152 # With GCC up to 2.95.x, collect2 would create an import file
15153 # for dependence libraries. The import file would start with
15154 # the line `#! .'. This would cause the generated library to
15155 # depend on `.', always an invalid library. This was fixed in
15156 # development snapshots of GCC prior to 3.0.
15158 aix4 | aix4.[01] | aix4.[01].*)
15159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15161 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15164 can_build_shared=no
15168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15169 # soname into executable. Probably we can add versioning support to
15170 # collect2, so additional links can be useful in future.
15171 if test "$aix_use_runtimelinking" = yes; then
15172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15173 # instead of lib<name>.a to let people know that these are not
15174 # typical AIX shared libraries.
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 # We preserve .a as extension for shared libraries through AIX4.2
15178 # and later when we are not doing run time linking.
15179 library_names_spec='${libname}${release}.a $libname.a'
15180 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LIBPATH
15189 # Since July 2007 AmigaOS4 officially supports .so libraries.
15190 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 library_names_spec='$libname.ixlibrary $libname.a'
15195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15196 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'
15202 library_names_spec='${libname}${shared_ext}'
15203 dynamic_linker="$host_os ld.so"
15204 shlibpath_var=LIBRARY_PATH
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15216 # the default ld.so.conf also contains /usr/contrib/lib and
15217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15218 # libtool to hard-code these into programs
15221 cygwin* | mingw* | pw32* | cegcc*)
15222 version_type=windows
15227 case $GCC,$host_os in
15228 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15229 library_names_spec='$libname.dll.a'
15230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15231 postinstall_cmds='base_file=`basename \${file}`~
15232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15233 dldir=$destdir/`dirname \$dlpath`~
15234 test -d \$dldir || mkdir -p \$dldir~
15235 $install_prog $dir/$dlname \$dldir/$dlname~
15236 chmod a+x \$dldir/$dlname~
15237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241 dlpath=$dir/\$dldll~
15243 shlibpath_overrides_runpath=yes
15247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15252 # MinGW DLLs use traditional 'lib' prefix
15253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15256 # It is most probably a Windows format PATH printed by
15257 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15258 # path with ; separators, and with drive letters. We can handle the
15259 # drive letters (cygwin fileutils understands them), so leave them,
15260 # especially as we might pass files found there to a mingw objdump,
15261 # which wouldn't understand a cygwinified path. Ahh.
15262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15268 # pw32 DLLs use 'pw' prefix rather than 'lib'
15269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15275 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15278 dynamic_linker='Win32 ld.exe'
15279 # FIXME: first we should search . and the directory the executable is in
15283 darwin* | rhapsody*)
15284 dynamic_linker="$host_os dyld"
15285 version_type=darwin
15288 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15289 soname_spec='${libname}${release}${major}$shared_ext'
15290 shlibpath_overrides_runpath=yes
15291 shlibpath_var=DYLD_LIBRARY_PATH
15292 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15310 freebsd* | dragonfly*)
15311 # DragonFly does not have aout. When/if they implement a new
15312 # versioning mechanism, adjust this.
15313 if test -x /usr/bin/objformat; then
15314 objformat=`/usr/bin/objformat`
15317 freebsd[123]*) objformat=aout ;;
15318 *) objformat=elf ;;
15321 version_type=freebsd-$objformat
15322 case $version_type in
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15333 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=yes
15338 freebsd3.[01]* | freebsdelf3.[01]*)
15339 shlibpath_overrides_runpath=yes
15340 hardcode_into_libs=yes
15342 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15343 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15344 shlibpath_overrides_runpath=no
15345 hardcode_into_libs=yes
15347 *) # from 4.6 on, and DragonFly
15348 shlibpath_overrides_runpath=yes
15349 hardcode_into_libs=yes
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 shlibpath_var=LD_LIBRARY_PATH
15361 hardcode_into_libs=yes
15364 hpux9* | hpux10* | hpux11*)
15365 # Give a soname corresponding to the major version so that dld.sl refuses to
15366 # link against other versions.
15373 hardcode_into_libs=yes
15374 dynamic_linker="$host_os dld.so"
15375 shlibpath_var=LD_LIBRARY_PATH
15376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 if test "X$HPUX_IA64_MODE" = X32; then
15380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15388 hardcode_into_libs=yes
15389 dynamic_linker="$host_os dld.sl"
15390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15399 dynamic_linker="$host_os dld.sl"
15400 shlibpath_var=SHLIB_PATH
15401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15406 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15407 postinstall_cmds='chmod 555 $lib'
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=no
15419 hardcode_into_libs=yes
15422 irix5* | irix6* | nonstopux*)
15424 nonstopux*) version_type=nonstopux ;;
15426 if test "$lt_cv_prog_gnu_ld" = yes; then
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15437 irix5* | nonstopux*)
15438 libsuff= shlibsuff=
15441 case $LD in # libtool.m4 will add one of these switches to LD
15442 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15443 libsuff= shlibsuff= libmagic=32-bit;;
15444 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15445 libsuff=32 shlibsuff=N32 libmagic=N32;;
15446 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15447 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15448 *) libsuff= shlibsuff= libmagic=never-match;;
15452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15453 shlibpath_overrides_runpath=no
15454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15456 hardcode_into_libs=yes
15459 # No shared lib support for Linux oldld, aout, or coff.
15460 linux*oldld* | linux*aout* | linux*coff*)
15464 # This must be Linux ELF.
15465 linux* | k*bsd*-gnu)
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=no
15474 # Some binutils ld are patched to set DT_RUNPATH
15475 save_LDFLAGS=$LDFLAGS
15476 save_libdir=$libdir
15477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15479 cat >conftest.$ac_ext <<_ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h. */
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_link") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } && {
15508 test -z "$ac_cxx_werror_flag" ||
15509 test ! -s conftest.err
15510 } && test -s conftest$ac_exeext &&
15511 $as_test_x conftest$ac_exeext; then
15512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15513 shlibpath_overrides_runpath=yes
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15524 conftest$ac_exeext conftest.$ac_ext
15525 LDFLAGS=$save_LDFLAGS
15526 libdir=$save_libdir
15528 # This implies no fast_install, which is unacceptable.
15529 # Some rework will be needed to allow for fast_install
15530 # before this can be enabled.
15531 hardcode_into_libs=yes
15533 # Append ld.so.conf contents to the search path
15534 if test -f /etc/ld.so.conf; then
15535 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' ' '`
15536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15539 # We used to test for /lib/ld.so.1 and disable shared libraries on
15540 # powerpc, because MkLinux only supported shared libraries with the
15541 # GNU dynamic linker. Since this was broken with cross compilers,
15542 # most powerpc-linux boxes support dynamic linking these days and
15543 # people can always --disable-shared, the test was removed, and we
15544 # assume the GNU/Linux dynamic linker is in use.
15545 dynamic_linker='GNU/Linux ld.so'
15552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15555 dynamic_linker='NetBSD (a.out) ld.so'
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 dynamic_linker='NetBSD ld.elf_so'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes
15563 hardcode_into_libs=yes
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 shlibpath_overrides_runpath=yes
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=no
15581 hardcode_into_libs=yes
15582 dynamic_linker='ldqnx.so'
15587 sys_lib_dlsearch_path_spec="/usr/lib"
15589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15591 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15592 *) need_version=no ;;
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15599 openbsd2.[89] | openbsd2.[89].*)
15600 shlibpath_overrides_runpath=no
15603 shlibpath_overrides_runpath=yes
15607 shlibpath_overrides_runpath=yes
15612 libname_spec='$name'
15615 library_names_spec='$libname${shared_ext} $libname.a'
15616 dynamic_linker='OS/2 ld.exe'
15617 shlibpath_var=LIBPATH
15620 osf3* | osf4* | osf5*)
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15628 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 soname_spec='${libname}${release}${shared_ext}$major'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 shlibpath_overrides_runpath=yes
15643 hardcode_into_libs=yes
15644 # ldd complains unless libraries are executable
15645 postinstall_cmds='chmod +x $lib'
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 if test "$with_gnu_ld" = yes; then
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 case $host_vendor in
15667 shlibpath_overrides_runpath=no
15669 runpath_var=LD_RUN_PATH
15677 shlibpath_overrides_runpath=no
15678 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15684 if test -d /usr/nec ;then
15686 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15687 soname_spec='$libname${shared_ext}.$major'
15688 shlibpath_var=LD_LIBRARY_PATH
15692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15693 version_type=freebsd-elf
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=yes
15700 hardcode_into_libs=yes
15701 if test "$with_gnu_ld" = yes; then
15702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15711 sys_lib_dlsearch_path_spec='/usr/lib'
15715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=no
15722 hardcode_into_libs=yes
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 soname_spec='${libname}${release}${shared_ext}$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15736 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15737 echo "${ECHO_T}$dynamic_linker" >&6; }
15738 test "$dynamic_linker" = no && can_build_shared=no
15740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741 if test "$GCC" = yes; then
15742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15746 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15749 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15787 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15789 hardcode_action_CXX=
15790 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15791 test -n "$runpath_var_CXX" ||
15792 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15794 # We can hardcode non-existent directories.
15795 if test "$hardcode_direct_CXX" != no &&
15796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15797 # have to relink, otherwise we might link with an installed library
15798 # when we should be linking with a yet-to-be-installed one
15799 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15800 test "$hardcode_minus_L_CXX" != no; then
15801 # Linking always hardcodes the temporary library directory.
15802 hardcode_action_CXX=relink
15804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15805 hardcode_action_CXX=immediate
15808 # We cannot hardcode anything, or else we can only hardcode existing
15810 hardcode_action_CXX=unsupported
15812 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15813 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15815 if test "$hardcode_action_CXX" = relink ||
15816 test "$inherit_rpath_CXX" = yes; then
15817 # Fast installation is not supported
15818 enable_fast_install=no
15819 elif test "$shlibpath_overrides_runpath" = yes ||
15820 test "$enable_shared" = no; then
15821 # Fast installation is not necessary
15822 enable_fast_install=needless
15831 fi # test -n "$compiler"
15837 with_gnu_ld=$lt_save_with_gnu_ld
15838 lt_cv_path_LDCXX=$lt_cv_path_LD
15839 lt_cv_path_LD=$lt_save_path_LD
15840 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15841 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15842 fi # test "$_lt_caught_CXX_error" != yes
15845 ac_cpp='$CPP $CPPFLAGS'
15846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15862 ac_config_commands="$ac_config_commands libtool"
15867 # Only expand once:
15872 if test x$use_libtool != xno; then
15873 DEFAULT_OBJECT_TYPE=".lo"
15874 DEFAULT_ARCHIVE_TYPE=".la"
15875 DEFAULT_SHARED_OBJECT_TYPE=".la"
15876 LIBTOOL="\$(LIBTOOL)"
15877 LIBTOOL_INSTALL_TARGET="libtool-install"
15878 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15879 LIBTOOL_CLEAN_TARGET="libtool-clean"
15880 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15882 DEFAULT_OBJECT_TYPE=".o"
15883 DEFAULT_ARCHIVE_TYPE=".a"
15884 DEFAULT_SHARED_OBJECT_TYPE=".so"
15885 LIBTOOL="# \$(LIBTOOL)"
15886 LIBTOOL_INSTALL_TARGET=""
15887 LIBTOOL_UNINSTALL_TARGET=""
15888 LIBTOOL_CLEAN_TARGET=""
15889 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15901 # Check whether --enable-includes was given.
15902 if test "${enable_includes+set}" = set; then
15903 enableval=$enable_includes;
15904 if test x$enableval = xno; then
15905 install_includes=no
15913 if test x$use_libtool != xno -a x$install_includes != no; then
15914 INCLUDE_INSTALL_TARGET="install-includes"
15915 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15917 INCLUDE_INSTALL_TARGET=""
15918 INCLUDE_UNINSTALL_TARGET=""
15920 # Turn off install of includes
15921 INCLUDE_INSTALL_TARGET=""
15922 INCLUDE_UNINSTALL_TARGET=""
15927 { echo "$as_me:$LINENO: checking host system type" >&5
15928 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15929 if test "${ac_cv_host+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 if test "x$host_alias" = x; then
15933 ac_cv_host=$ac_cv_build
15935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15936 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15937 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15938 { (exit 1); exit 1; }; }
15942 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15943 echo "${ECHO_T}$ac_cv_host" >&6; }
15944 case $ac_cv_host in
15946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15947 echo "$as_me: error: invalid value of canonical host" >&2;}
15948 { (exit 1); exit 1; }; };;
15951 ac_save_IFS=$IFS; IFS='-'
15957 # Remember, the first character of IFS is used to create $*,
15958 # except with old shells:
15961 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15965 *cygwin* ) CYGWIN=yes;;
15969 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15975 HAVE_SUN_OS_FALSE='#'
15977 HAVE_SUN_OS_TRUE='#'
15980 cat >>confdefs.h <<\_ACEOF
15981 #define HAVE_SUN_OS 1
15989 HAVE_SUN_OS_FALSE='#'
15991 HAVE_SUN_OS_TRUE='#'
15996 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16002 HAVE_OSF1_OS_FALSE='#'
16004 HAVE_OSF1_OS_TRUE='#'
16005 HAVE_OSF1_OS_FALSE=
16007 cat >>confdefs.h <<\_ACEOF
16008 #define HAVE_OSF1_OS 1
16016 HAVE_OSF1_OS_FALSE='#'
16018 HAVE_OSF1_OS_TRUE='#'
16019 HAVE_OSF1_OS_FALSE=
16023 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16029 HAVE_AIX_OS_FALSE='#'
16031 HAVE_AIX_OS_TRUE='#'
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_AIX_OS 1
16043 HAVE_AIX_OS_FALSE='#'
16045 HAVE_AIX_OS_TRUE='#'
16050 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16056 HAVE_HPUX_OS_FALSE='#'
16058 HAVE_HPUX_OS_TRUE='#'
16059 HAVE_HPUX_OS_FALSE=
16061 cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_HPUX_OS 1
16070 HAVE_HPUX_OS_FALSE='#'
16072 HAVE_HPUX_OS_TRUE='#'
16073 HAVE_HPUX_OS_FALSE=
16077 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16082 HAVE_LINUX_OS_TRUE=
16083 HAVE_LINUX_OS_FALSE='#'
16085 HAVE_LINUX_OS_TRUE='#'
16086 HAVE_LINUX_OS_FALSE=
16088 cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_LINUX_OS 1
16096 HAVE_LINUX_OS_TRUE=
16097 HAVE_LINUX_OS_FALSE='#'
16099 HAVE_LINUX_OS_TRUE='#'
16100 HAVE_LINUX_OS_FALSE=
16104 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16109 HAVE_FREEBSD_OS_TRUE=
16110 HAVE_FREEBSD_OS_FALSE='#'
16112 HAVE_FREEBSD_OS_TRUE='#'
16113 HAVE_FREEBSD_OS_FALSE=
16115 cat >>confdefs.h <<\_ACEOF
16116 #define HAVE_FREEBSD_OS 1
16123 HAVE_FREEBSD_OS_TRUE=
16124 HAVE_FREEBSD_OS_FALSE='#'
16126 HAVE_FREEBSD_OS_TRUE='#'
16127 HAVE_FREEBSD_OS_FALSE=
16131 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16136 HAVE_NETBSD_OS_TRUE=
16137 HAVE_NETBSD_OS_FALSE='#'
16139 HAVE_NETBSD_OS_TRUE='#'
16140 HAVE_NETBSD_OS_FALSE=
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_NETBSD_OS 1
16150 HAVE_NETBSD_OS_TRUE=
16151 HAVE_NETBSD_OS_FALSE='#'
16153 HAVE_NETBSD_OS_TRUE='#'
16154 HAVE_NETBSD_OS_FALSE=
16158 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16163 HAVE_OPENBSD_OS_TRUE=
16164 HAVE_OPENBSD_OS_FALSE='#'
16166 HAVE_OPENBSD_OS_TRUE='#'
16167 HAVE_OPENBSD_OS_FALSE=
16169 cat >>confdefs.h <<\_ACEOF
16170 #define HAVE_OPENBSD_OS 1
16177 HAVE_OPENBSD_OS_TRUE=
16178 HAVE_OPENBSD_OS_FALSE='#'
16180 HAVE_OPENBSD_OS_TRUE='#'
16181 HAVE_OPENBSD_OS_FALSE=
16185 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16191 HAVE_BSDI_OS_FALSE='#'
16193 HAVE_BSDI_OS_TRUE='#'
16194 HAVE_BSDI_OS_FALSE=
16196 cat >>confdefs.h <<\_ACEOF
16197 #define HAVE_BSDI_OS 1
16205 HAVE_BSDI_OS_FALSE='#'
16207 HAVE_BSDI_OS_TRUE='#'
16208 HAVE_BSDI_OS_FALSE=
16212 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16218 HAVE_SGI_OS_FALSE='#'
16220 HAVE_SGI_OS_TRUE='#'
16223 cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_SGI_OS 1
16232 HAVE_SGI_OS_FALSE='#'
16234 HAVE_SGI_OS_TRUE='#'
16239 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16245 HAVE_IRIX_OS_FALSE='#'
16247 HAVE_IRIX_OS_TRUE='#'
16248 HAVE_IRIX_OS_FALSE=
16250 cat >>confdefs.h <<\_ACEOF
16251 #define HAVE_IRIX_OS 1
16259 HAVE_IRIX_OS_FALSE='#'
16261 HAVE_IRIX_OS_TRUE='#'
16262 HAVE_IRIX_OS_FALSE=
16266 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16271 HAVE_DARWIN_OS_TRUE=
16272 HAVE_DARWIN_OS_FALSE='#'
16274 HAVE_DARWIN_OS_TRUE='#'
16275 HAVE_DARWIN_OS_FALSE=
16277 cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_DARWIN_OS 1
16285 HAVE_DARWIN_OS_TRUE=
16286 HAVE_DARWIN_OS_FALSE='#'
16288 HAVE_DARWIN_OS_TRUE='#'
16289 HAVE_DARWIN_OS_FALSE=
16294 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16295 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16296 if test "x$DISTNAME" != "x"
16298 echo "distname set to $DISTNAME"
16299 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16302 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16305 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16308 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16311 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16314 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16323 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16326 elif test -f /etc/SuSE-release
16329 elif test -d /etc/SuSEconfig
16332 elif test -f /etc/mandrake-release
16335 elif test -f /etc/whitebox-release
16338 elif test -f /etc/redhat-release
16341 elif test -f /etc/gentoo-release
16344 elif test -f /etc/debian_version
16347 elif test -f /etc/slackware-version
16350 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16353 elif test -f /etc/engarde-version
16356 elif test "$CYGWIN" = yes
16359 cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_CYGWIN 1
16366 { echo "$as_me:$LINENO: result: done" >&5
16367 echo "${ECHO_T}done" >&6; }
16370 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16371 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16372 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16373 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 cat >conftest.make <<\_ACEOF
16379 @echo '@@@%%%=$(MAKE)=@@@%%%'
16381 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16382 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16383 *@@@%%%=?*=@@@%%%*)
16384 eval ac_cv_prog_make_${ac_make}_set=yes;;
16386 eval ac_cv_prog_make_${ac_make}_set=no;;
16388 rm -f conftest.make
16390 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16391 { echo "$as_me:$LINENO: result: yes" >&5
16392 echo "${ECHO_T}yes" >&6; }
16395 { echo "$as_me:$LINENO: result: no" >&5
16396 echo "${ECHO_T}no" >&6; }
16397 SET_MAKE="MAKE=${MAKE-make}"
16403 if test -n "$ac_aux_dir"; then
16404 case "$ac_aux_dir" in
16405 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16406 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16409 if test -z "$MKINSTALLDIRS"; then
16410 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16415 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16416 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16417 # Check whether --enable-nls was given.
16418 if test "${enable_nls+set}" = set; then
16419 enableval=$enable_nls; USE_NLS=$enableval
16424 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16425 echo "${ECHO_T}$USE_NLS" >&6; }
16432 # Prepare PATH_SEPARATOR.
16433 # The user is always right.
16434 if test "${PATH_SEPARATOR+set}" != set; then
16435 echo "#! /bin/sh" >conf$$.sh
16436 echo "exit 0" >>conf$$.sh
16438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16446 # Find out how to test for executable files. Don't use a zero-byte file,
16447 # as systems may use methods other than mode bits to determine executability.
16448 cat >conf$$.file <<_ASEOF
16452 chmod +x conf$$.file
16453 if test -x conf$$.file >/dev/null 2>&1; then
16454 ac_executable_p="test -x"
16456 ac_executable_p="test -f"
16460 # Extract the first word of "msgfmt", so it can be a program name with args.
16461 set dummy msgfmt; ac_word=$2
16462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16464 if test "${ac_cv_path_MSGFMT+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16472 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16473 for ac_dir in $PATH; do
16475 test -z "$ac_dir" && ac_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
16477 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16478 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16479 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16480 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16481 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16488 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16492 MSGFMT="$ac_cv_path_MSGFMT"
16493 if test "$MSGFMT" != ":"; then
16494 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16495 echo "${ECHO_T}$MSGFMT" >&6; }
16497 { echo "$as_me:$LINENO: result: no" >&5
16498 echo "${ECHO_T}no" >&6; }
16501 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16502 set dummy gmsgfmt; ac_word=$2
16503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16505 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16517 test -z "$as_dir" && as_dir=.
16518 for ac_exec_ext in '' $ac_executable_extensions; do
16519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16520 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16528 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16532 GMSGFMT=$ac_cv_path_GMSGFMT
16533 if test -n "$GMSGFMT"; then
16534 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16535 echo "${ECHO_T}$GMSGFMT" >&6; }
16537 { echo "$as_me:$LINENO: result: no" >&5
16538 echo "${ECHO_T}no" >&6; }
16544 # Prepare PATH_SEPARATOR.
16545 # The user is always right.
16546 if test "${PATH_SEPARATOR+set}" != set; then
16547 echo "#! /bin/sh" >conf$$.sh
16548 echo "exit 0" >>conf$$.sh
16550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16558 # Find out how to test for executable files. Don't use a zero-byte file,
16559 # as systems may use methods other than mode bits to determine executability.
16560 cat >conf$$.file <<_ASEOF
16564 chmod +x conf$$.file
16565 if test -x conf$$.file >/dev/null 2>&1; then
16566 ac_executable_p="test -x"
16568 ac_executable_p="test -f"
16572 # Extract the first word of "xgettext", so it can be a program name with args.
16573 set dummy xgettext; ac_word=$2
16574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16576 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 case "$XGETTEXT" in
16581 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16584 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16585 for ac_dir in $PATH; do
16587 test -z "$ac_dir" && ac_dir=.
16588 for ac_exec_ext in '' $ac_executable_extensions; do
16589 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16590 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16591 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16592 (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
16593 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16600 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16604 XGETTEXT="$ac_cv_path_XGETTEXT"
16605 if test "$XGETTEXT" != ":"; then
16606 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16607 echo "${ECHO_T}$XGETTEXT" >&6; }
16609 { echo "$as_me:$LINENO: result: no" >&5
16610 echo "${ECHO_T}no" >&6; }
16616 # Prepare PATH_SEPARATOR.
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16619 echo "#! /bin/sh" >conf$$.sh
16620 echo "exit 0" >>conf$$.sh
16622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16630 # Find out how to test for executable files. Don't use a zero-byte file,
16631 # as systems may use methods other than mode bits to determine executability.
16632 cat >conf$$.file <<_ASEOF
16636 chmod +x conf$$.file
16637 if test -x conf$$.file >/dev/null 2>&1; then
16638 ac_executable_p="test -x"
16640 ac_executable_p="test -f"
16644 # Extract the first word of "msgmerge", so it can be a program name with args.
16645 set dummy msgmerge; ac_word=$2
16646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16648 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 case "$MSGMERGE" in
16653 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16656 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16657 for ac_dir in $PATH; do
16659 test -z "$ac_dir" && ac_dir=.
16660 for ac_exec_ext in '' $ac_executable_extensions; do
16661 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16662 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16663 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16664 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16671 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16675 MSGMERGE="$ac_cv_path_MSGMERGE"
16676 if test "$MSGMERGE" != ":"; then
16677 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16678 echo "${ECHO_T}$MSGMERGE" >&6; }
16680 { echo "$as_me:$LINENO: result: no" >&5
16681 echo "${ECHO_T}no" >&6; }
16685 if test "$GMSGFMT" != ":"; then
16686 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16687 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16690 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16691 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16692 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16697 if test "$XGETTEXT" != ":"; then
16698 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16699 (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
16702 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16703 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16709 ac_config_commands="$ac_config_commands default-1"
16713 if test "X$prefix" = "XNONE"; then
16714 acl_final_prefix="$ac_default_prefix"
16716 acl_final_prefix="$prefix"
16718 if test "X$exec_prefix" = "XNONE"; then
16719 acl_final_exec_prefix='${prefix}'
16721 acl_final_exec_prefix="$exec_prefix"
16723 acl_save_prefix="$prefix"
16724 prefix="$acl_final_prefix"
16725 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16726 prefix="$acl_save_prefix"
16729 # Check whether --with-gnu-ld was given.
16730 if test "${with_gnu_ld+set}" = set; then
16731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16736 # Prepare PATH_SEPARATOR.
16737 # The user is always right.
16738 if test "${PATH_SEPARATOR+set}" != set; then
16739 echo "#! /bin/sh" >conf$$.sh
16740 echo "exit 0" >>conf$$.sh
16742 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16750 if test "$GCC" = yes; then
16751 # Check if gcc -print-prog-name=ld gives a path.
16752 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16753 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16756 # gcc leaves a trailing carriage return which upsets mingw
16757 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16759 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16762 # Accept absolute paths.
16763 [\\/]* | [A-Za-z]:[\\/]*)
16764 re_direlt='/[^/][^/]*/\.\./'
16765 # Canonicalize the path of ld
16766 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16767 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16768 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16770 test -z "$LD" && LD="$ac_prog"
16773 # If it fails, then pretend we aren't using GCC.
16777 # If it is relative, then search for the first ld in PATH.
16778 with_gnu_ld=unknown
16781 elif test "$with_gnu_ld" = yes; then
16782 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16785 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16788 if test "${acl_cv_path_LD+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 if test -z "$LD"; then
16792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16793 for ac_dir in $PATH; do
16794 test -z "$ac_dir" && ac_dir=.
16795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16796 acl_cv_path_LD="$ac_dir/$ac_prog"
16797 # Check to see if the program is GNU ld. I'd rather use --version,
16798 # but apparently some GNU ld's only accept -v.
16799 # Break only if it was the GNU/non-GNU ld that we prefer.
16800 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16801 *GNU* | *'with BFD'*)
16802 test "$with_gnu_ld" != no && break ;;
16804 test "$with_gnu_ld" != yes && break ;;
16810 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16814 LD="$acl_cv_path_LD"
16815 if test -n "$LD"; then
16816 { echo "$as_me:$LINENO: result: $LD" >&5
16817 echo "${ECHO_T}$LD" >&6; }
16819 { echo "$as_me:$LINENO: result: no" >&5
16820 echo "${ECHO_T}no" >&6; }
16822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16824 { (exit 1); exit 1; }; }
16825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16827 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16831 case `$LD -v 2>&1 </dev/null` in
16832 *GNU* | *'with BFD'*)
16833 acl_cv_prog_gnu_ld=yes ;;
16835 acl_cv_prog_gnu_ld=no ;;
16838 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16839 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16840 with_gnu_ld=$acl_cv_prog_gnu_ld
16845 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16846 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16847 if test "${acl_cv_rpath+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16852 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16854 rm -f ./conftest.sh
16858 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16859 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16861 libext="$acl_cv_libext"
16862 shlibext="$acl_cv_shlibext"
16863 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16864 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16865 hardcode_direct="$acl_cv_hardcode_direct"
16866 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16867 # Check whether --enable-rpath was given.
16868 if test "${enable_rpath+set}" = set; then
16869 enableval=$enable_rpath; :
16883 acl_save_prefix="$prefix"
16884 prefix="$acl_final_prefix"
16885 acl_save_exec_prefix="$exec_prefix"
16886 exec_prefix="$acl_final_exec_prefix"
16888 eval additional_includedir=\"$includedir\"
16889 eval additional_libdir=\"$libdir\"
16891 exec_prefix="$acl_save_exec_prefix"
16892 prefix="$acl_save_prefix"
16895 # Check whether --with-libiconv-prefix was given.
16896 if test "${with_libiconv_prefix+set}" = set; then
16897 withval=$with_libiconv_prefix;
16898 if test "X$withval" = "Xno"; then
16901 if test "X$withval" = "X"; then
16903 acl_save_prefix="$prefix"
16904 prefix="$acl_final_prefix"
16905 acl_save_exec_prefix="$exec_prefix"
16906 exec_prefix="$acl_final_exec_prefix"
16908 eval additional_includedir=\"$includedir\"
16909 eval additional_libdir=\"$libdir\"
16911 exec_prefix="$acl_save_exec_prefix"
16912 prefix="$acl_save_prefix"
16915 additional_includedir="$withval/include"
16916 additional_libdir="$withval/lib"
16927 names_already_handled=
16928 names_next_round='iconv '
16929 while test -n "$names_next_round"; do
16930 names_this_round="$names_next_round"
16932 for name in $names_this_round; do
16934 for n in $names_already_handled; do
16935 if test "$n" = "$name"; then
16936 already_handled=yes
16940 if test -z "$already_handled"; then
16941 names_already_handled="$names_already_handled $name"
16942 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16943 eval value=\"\$HAVE_LIB$uppername\"
16944 if test -n "$value"; then
16945 if test "$value" = yes; then
16946 eval value=\"\$LIB$uppername\"
16947 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16948 eval value=\"\$LTLIB$uppername\"
16949 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16958 if test $use_additional = yes; then
16959 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16960 found_dir="$additional_libdir"
16961 found_so="$additional_libdir/lib$name.$shlibext"
16962 if test -f "$additional_libdir/lib$name.la"; then
16963 found_la="$additional_libdir/lib$name.la"
16966 if test -f "$additional_libdir/lib$name.$libext"; then
16967 found_dir="$additional_libdir"
16968 found_a="$additional_libdir/lib$name.$libext"
16969 if test -f "$additional_libdir/lib$name.la"; then
16970 found_la="$additional_libdir/lib$name.la"
16975 if test "X$found_dir" = "X"; then
16976 for x in $LDFLAGS $LTLIBICONV; do
16978 acl_save_prefix="$prefix"
16979 prefix="$acl_final_prefix"
16980 acl_save_exec_prefix="$exec_prefix"
16981 exec_prefix="$acl_final_exec_prefix"
16983 exec_prefix="$acl_save_exec_prefix"
16984 prefix="$acl_save_prefix"
16988 dir=`echo "X$x" | sed -e 's/^X-L//'`
16989 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16991 found_so="$dir/lib$name.$shlibext"
16992 if test -f "$dir/lib$name.la"; then
16993 found_la="$dir/lib$name.la"
16996 if test -f "$dir/lib$name.$libext"; then
16998 found_a="$dir/lib$name.$libext"
16999 if test -f "$dir/lib$name.la"; then
17000 found_la="$dir/lib$name.la"
17006 if test "X$found_dir" != "X"; then
17011 if test "X$found_dir" != "X"; then
17012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17013 if test "X$found_so" != "X"; then
17014 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17018 for x in $ltrpathdirs; do
17019 if test "X$x" = "X$found_dir"; then
17024 if test -z "$haveit"; then
17025 ltrpathdirs="$ltrpathdirs $found_dir"
17027 if test "$hardcode_direct" = yes; then
17028 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17031 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17033 for x in $rpathdirs; do
17034 if test "X$x" = "X$found_dir"; then
17039 if test -z "$haveit"; then
17040 rpathdirs="$rpathdirs $found_dir"
17044 for x in $LDFLAGS $LIBICONV; do
17046 acl_save_prefix="$prefix"
17047 prefix="$acl_final_prefix"
17048 acl_save_exec_prefix="$exec_prefix"
17049 exec_prefix="$acl_final_exec_prefix"
17051 exec_prefix="$acl_save_exec_prefix"
17052 prefix="$acl_save_prefix"
17054 if test "X$x" = "X-L$found_dir"; then
17059 if test -z "$haveit"; then
17060 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17062 if test "$hardcode_minus_L" != no; then
17063 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17065 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17071 if test "X$found_a" != "X"; then
17072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17074 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17077 additional_includedir=
17078 case "$found_dir" in
17080 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17081 additional_includedir="$basedir/include"
17084 if test "X$additional_includedir" != "X"; then
17085 if test "X$additional_includedir" != "X/usr/include"; then
17087 if test "X$additional_includedir" = "X/usr/local/include"; then
17088 if test -n "$GCC"; then
17090 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17094 if test -z "$haveit"; then
17095 for x in $CPPFLAGS $INCICONV; do
17097 acl_save_prefix="$prefix"
17098 prefix="$acl_final_prefix"
17099 acl_save_exec_prefix="$exec_prefix"
17100 exec_prefix="$acl_final_exec_prefix"
17102 exec_prefix="$acl_save_exec_prefix"
17103 prefix="$acl_save_prefix"
17105 if test "X$x" = "X-I$additional_includedir"; then
17110 if test -z "$haveit"; then
17111 if test -d "$additional_includedir"; then
17112 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17118 if test -n "$found_la"; then
17119 save_libdir="$libdir"
17120 case "$found_la" in
17121 */* | *\\*) . "$found_la" ;;
17122 *) . "./$found_la" ;;
17124 libdir="$save_libdir"
17125 for dep in $dependency_libs; do
17128 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17129 if test "X$additional_libdir" != "X/usr/lib"; then
17131 if test "X$additional_libdir" = "X/usr/local/lib"; then
17132 if test -n "$GCC"; then
17134 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17138 if test -z "$haveit"; then
17140 for x in $LDFLAGS $LIBICONV; do
17142 acl_save_prefix="$prefix"
17143 prefix="$acl_final_prefix"
17144 acl_save_exec_prefix="$exec_prefix"
17145 exec_prefix="$acl_final_exec_prefix"
17147 exec_prefix="$acl_save_exec_prefix"
17148 prefix="$acl_save_prefix"
17150 if test "X$x" = "X-L$additional_libdir"; then
17155 if test -z "$haveit"; then
17156 if test -d "$additional_libdir"; then
17157 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17161 for x in $LDFLAGS $LTLIBICONV; do
17163 acl_save_prefix="$prefix"
17164 prefix="$acl_final_prefix"
17165 acl_save_exec_prefix="$exec_prefix"
17166 exec_prefix="$acl_final_exec_prefix"
17168 exec_prefix="$acl_save_exec_prefix"
17169 prefix="$acl_save_prefix"
17171 if test "X$x" = "X-L$additional_libdir"; then
17176 if test -z "$haveit"; then
17177 if test -d "$additional_libdir"; then
17178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17185 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17186 if test "$enable_rpath" != no; then
17188 for x in $rpathdirs; do
17189 if test "X$x" = "X$dir"; then
17194 if test -z "$haveit"; then
17195 rpathdirs="$rpathdirs $dir"
17198 for x in $ltrpathdirs; do
17199 if test "X$x" = "X$dir"; then
17204 if test -z "$haveit"; then
17205 ltrpathdirs="$ltrpathdirs $dir"
17210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17216 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17223 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17224 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17230 if test "X$rpathdirs" != "X"; then
17231 if test -n "$hardcode_libdir_separator"; then
17233 for found_dir in $rpathdirs; do
17234 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17236 acl_save_libdir="$libdir"
17238 eval flag=\"$hardcode_libdir_flag_spec\"
17239 libdir="$acl_save_libdir"
17240 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17242 for found_dir in $rpathdirs; do
17243 acl_save_libdir="$libdir"
17244 libdir="$found_dir"
17245 eval flag=\"$hardcode_libdir_flag_spec\"
17246 libdir="$acl_save_libdir"
17247 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17251 if test "X$ltrpathdirs" != "X"; then
17252 for found_dir in $ltrpathdirs; do
17253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17274 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17275 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17276 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 gt_save_CPPFLAGS="$CPPFLAGS"
17280 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17281 gt_save_LIBS="$LIBS"
17282 LIBS="$LIBS -framework CoreFoundation"
17283 cat >conftest.$ac_ext <<_ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #include <CFPreferences.h>
17293 CFPreferencesCopyAppValue(NULL, NULL)
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316 gt_cv_func_CFPreferencesCopyAppValue=yes
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 gt_cv_func_CFPreferencesCopyAppValue=no
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17326 CPPFLAGS="$gt_save_CPPFLAGS"
17327 LIBS="$gt_save_LIBS"
17329 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17330 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17331 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17333 cat >>confdefs.h <<\_ACEOF
17334 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17338 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17339 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17340 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 gt_save_CPPFLAGS="$CPPFLAGS"
17344 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17345 gt_save_LIBS="$LIBS"
17346 LIBS="$LIBS -framework CoreFoundation"
17347 cat >conftest.$ac_ext <<_ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 #include <CFLocale.h>
17357 CFLocaleCopyCurrent();
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
17371 grep -v '^ *+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } && {
17376 test -z "$ac_c_werror_flag" ||
17377 test ! -s conftest.err
17378 } && test -s conftest$ac_exeext &&
17379 $as_test_x conftest$ac_exeext; then
17380 gt_cv_func_CFLocaleCopyCurrent=yes
17382 echo "$as_me: failed program was:" >&5
17383 sed 's/^/| /' conftest.$ac_ext >&5
17385 gt_cv_func_CFLocaleCopyCurrent=no
17388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17389 conftest$ac_exeext conftest.$ac_ext
17390 CPPFLAGS="$gt_save_CPPFLAGS"
17391 LIBS="$gt_save_LIBS"
17393 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17394 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17395 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17397 cat >>confdefs.h <<\_ACEOF
17398 #define HAVE_CFLOCALECOPYCURRENT 1
17403 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17404 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17410 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17411 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17412 # Check whether --enable-nls was given.
17413 if test "${enable_nls+set}" = set; then
17414 enableval=$enable_nls; USE_NLS=$enableval
17419 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17420 echo "${ECHO_T}$USE_NLS" >&6; }
17429 if test "$USE_NLS" = "yes"; then
17430 gt_use_preinstalled_gnugettext=no
17437 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17438 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17439 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include <libintl.h>
17449 extern int _nl_msg_cat_cntr;
17450 extern int *_nl_domain_bindings;
17454 bindtextdomain ("", "");
17455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } && {
17474 test -z "$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 } && test -s conftest$ac_exeext &&
17477 $as_test_x conftest$ac_exeext; then
17478 gt_cv_func_gnugettext1_libc=yes
17480 echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17483 gt_cv_func_gnugettext1_libc=no
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487 conftest$ac_exeext conftest.$ac_ext
17489 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17492 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17498 am_save_CPPFLAGS="$CPPFLAGS"
17500 for element in $INCICONV; do
17502 for x in $CPPFLAGS; do
17504 acl_save_prefix="$prefix"
17505 prefix="$acl_final_prefix"
17506 acl_save_exec_prefix="$exec_prefix"
17507 exec_prefix="$acl_final_exec_prefix"
17509 exec_prefix="$acl_save_exec_prefix"
17510 prefix="$acl_save_prefix"
17512 if test "X$x" = "X$element"; then
17517 if test -z "$haveit"; then
17518 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17523 { echo "$as_me:$LINENO: checking for iconv" >&5
17524 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17525 if test "${am_cv_func_iconv+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 am_cv_func_iconv="no, consider installing GNU libiconv"
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 #include <stdlib.h>
17542 iconv_t cd = iconv_open("","");
17543 iconv(cd,NULL,NULL,NULL,NULL);
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (ac_try="$ac_link"
17551 case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_link") 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest$ac_exeext &&
17566 $as_test_x conftest$ac_exeext; then
17567 am_cv_func_iconv=yes
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17576 conftest$ac_exeext conftest.$ac_ext
17577 if test "$am_cv_func_iconv" != yes; then
17578 am_save_LIBS="$LIBS"
17579 LIBS="$LIBS $LIBICONV"
17580 cat >conftest.$ac_ext <<_ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 #include <stdlib.h>
17591 iconv_t cd = iconv_open("","");
17592 iconv(cd,NULL,NULL,NULL,NULL);
17598 rm -f conftest.$ac_objext conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_link") 2>conftest.er1
17607 grep -v '^ *+' conftest.er1 >conftest.err
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } && {
17612 test -z "$ac_c_werror_flag" ||
17613 test ! -s conftest.err
17614 } && test -s conftest$ac_exeext &&
17615 $as_test_x conftest$ac_exeext; then
17616 am_cv_lib_iconv=yes
17617 am_cv_func_iconv=yes
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17627 LIBS="$am_save_LIBS"
17631 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17632 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17633 if test "$am_cv_func_iconv" = yes; then
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_ICONV 1
17640 if test "$am_cv_lib_iconv" = yes; then
17641 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17642 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17643 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17644 echo "${ECHO_T}$LIBICONV" >&6; }
17646 CPPFLAGS="$am_save_CPPFLAGS"
17658 acl_save_prefix="$prefix"
17659 prefix="$acl_final_prefix"
17660 acl_save_exec_prefix="$exec_prefix"
17661 exec_prefix="$acl_final_exec_prefix"
17663 eval additional_includedir=\"$includedir\"
17664 eval additional_libdir=\"$libdir\"
17666 exec_prefix="$acl_save_exec_prefix"
17667 prefix="$acl_save_prefix"
17670 # Check whether --with-libintl-prefix was given.
17671 if test "${with_libintl_prefix+set}" = set; then
17672 withval=$with_libintl_prefix;
17673 if test "X$withval" = "Xno"; then
17676 if test "X$withval" = "X"; then
17678 acl_save_prefix="$prefix"
17679 prefix="$acl_final_prefix"
17680 acl_save_exec_prefix="$exec_prefix"
17681 exec_prefix="$acl_final_exec_prefix"
17683 eval additional_includedir=\"$includedir\"
17684 eval additional_libdir=\"$libdir\"
17686 exec_prefix="$acl_save_exec_prefix"
17687 prefix="$acl_save_prefix"
17690 additional_includedir="$withval/include"
17691 additional_libdir="$withval/lib"
17702 names_already_handled=
17703 names_next_round='intl '
17704 while test -n "$names_next_round"; do
17705 names_this_round="$names_next_round"
17707 for name in $names_this_round; do
17709 for n in $names_already_handled; do
17710 if test "$n" = "$name"; then
17711 already_handled=yes
17715 if test -z "$already_handled"; then
17716 names_already_handled="$names_already_handled $name"
17717 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17718 eval value=\"\$HAVE_LIB$uppername\"
17719 if test -n "$value"; then
17720 if test "$value" = yes; then
17721 eval value=\"\$LIB$uppername\"
17722 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17723 eval value=\"\$LTLIB$uppername\"
17724 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17733 if test $use_additional = yes; then
17734 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17735 found_dir="$additional_libdir"
17736 found_so="$additional_libdir/lib$name.$shlibext"
17737 if test -f "$additional_libdir/lib$name.la"; then
17738 found_la="$additional_libdir/lib$name.la"
17741 if test -f "$additional_libdir/lib$name.$libext"; then
17742 found_dir="$additional_libdir"
17743 found_a="$additional_libdir/lib$name.$libext"
17744 if test -f "$additional_libdir/lib$name.la"; then
17745 found_la="$additional_libdir/lib$name.la"
17750 if test "X$found_dir" = "X"; then
17751 for x in $LDFLAGS $LTLIBINTL; do
17753 acl_save_prefix="$prefix"
17754 prefix="$acl_final_prefix"
17755 acl_save_exec_prefix="$exec_prefix"
17756 exec_prefix="$acl_final_exec_prefix"
17758 exec_prefix="$acl_save_exec_prefix"
17759 prefix="$acl_save_prefix"
17763 dir=`echo "X$x" | sed -e 's/^X-L//'`
17764 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17766 found_so="$dir/lib$name.$shlibext"
17767 if test -f "$dir/lib$name.la"; then
17768 found_la="$dir/lib$name.la"
17771 if test -f "$dir/lib$name.$libext"; then
17773 found_a="$dir/lib$name.$libext"
17774 if test -f "$dir/lib$name.la"; then
17775 found_la="$dir/lib$name.la"
17781 if test "X$found_dir" != "X"; then
17786 if test "X$found_dir" != "X"; then
17787 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17788 if test "X$found_so" != "X"; then
17789 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17790 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17793 for x in $ltrpathdirs; do
17794 if test "X$x" = "X$found_dir"; then
17799 if test -z "$haveit"; then
17800 ltrpathdirs="$ltrpathdirs $found_dir"
17802 if test "$hardcode_direct" = yes; then
17803 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17805 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17806 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17808 for x in $rpathdirs; do
17809 if test "X$x" = "X$found_dir"; then
17814 if test -z "$haveit"; then
17815 rpathdirs="$rpathdirs $found_dir"
17819 for x in $LDFLAGS $LIBINTL; do
17821 acl_save_prefix="$prefix"
17822 prefix="$acl_final_prefix"
17823 acl_save_exec_prefix="$exec_prefix"
17824 exec_prefix="$acl_final_exec_prefix"
17826 exec_prefix="$acl_save_exec_prefix"
17827 prefix="$acl_save_prefix"
17829 if test "X$x" = "X-L$found_dir"; then
17834 if test -z "$haveit"; then
17835 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17837 if test "$hardcode_minus_L" != no; then
17838 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17840 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17846 if test "X$found_a" != "X"; then
17847 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17849 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17852 additional_includedir=
17853 case "$found_dir" in
17855 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17856 additional_includedir="$basedir/include"
17859 if test "X$additional_includedir" != "X"; then
17860 if test "X$additional_includedir" != "X/usr/include"; then
17862 if test "X$additional_includedir" = "X/usr/local/include"; then
17863 if test -n "$GCC"; then
17865 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17869 if test -z "$haveit"; then
17870 for x in $CPPFLAGS $INCINTL; do
17872 acl_save_prefix="$prefix"
17873 prefix="$acl_final_prefix"
17874 acl_save_exec_prefix="$exec_prefix"
17875 exec_prefix="$acl_final_exec_prefix"
17877 exec_prefix="$acl_save_exec_prefix"
17878 prefix="$acl_save_prefix"
17880 if test "X$x" = "X-I$additional_includedir"; then
17885 if test -z "$haveit"; then
17886 if test -d "$additional_includedir"; then
17887 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17893 if test -n "$found_la"; then
17894 save_libdir="$libdir"
17895 case "$found_la" in
17896 */* | *\\*) . "$found_la" ;;
17897 *) . "./$found_la" ;;
17899 libdir="$save_libdir"
17900 for dep in $dependency_libs; do
17903 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17904 if test "X$additional_libdir" != "X/usr/lib"; then
17906 if test "X$additional_libdir" = "X/usr/local/lib"; then
17907 if test -n "$GCC"; then
17909 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17913 if test -z "$haveit"; then
17915 for x in $LDFLAGS $LIBINTL; do
17917 acl_save_prefix="$prefix"
17918 prefix="$acl_final_prefix"
17919 acl_save_exec_prefix="$exec_prefix"
17920 exec_prefix="$acl_final_exec_prefix"
17922 exec_prefix="$acl_save_exec_prefix"
17923 prefix="$acl_save_prefix"
17925 if test "X$x" = "X-L$additional_libdir"; then
17930 if test -z "$haveit"; then
17931 if test -d "$additional_libdir"; then
17932 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17936 for x in $LDFLAGS $LTLIBINTL; do
17938 acl_save_prefix="$prefix"
17939 prefix="$acl_final_prefix"
17940 acl_save_exec_prefix="$exec_prefix"
17941 exec_prefix="$acl_final_exec_prefix"
17943 exec_prefix="$acl_save_exec_prefix"
17944 prefix="$acl_save_prefix"
17946 if test "X$x" = "X-L$additional_libdir"; then
17951 if test -z "$haveit"; then
17952 if test -d "$additional_libdir"; then
17953 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17960 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17961 if test "$enable_rpath" != no; then
17963 for x in $rpathdirs; do
17964 if test "X$x" = "X$dir"; then
17969 if test -z "$haveit"; then
17970 rpathdirs="$rpathdirs $dir"
17973 for x in $ltrpathdirs; do
17974 if test "X$x" = "X$dir"; then
17979 if test -z "$haveit"; then
17980 ltrpathdirs="$ltrpathdirs $dir"
17985 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17988 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17991 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17992 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17998 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17999 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18005 if test "X$rpathdirs" != "X"; then
18006 if test -n "$hardcode_libdir_separator"; then
18008 for found_dir in $rpathdirs; do
18009 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18011 acl_save_libdir="$libdir"
18013 eval flag=\"$hardcode_libdir_flag_spec\"
18014 libdir="$acl_save_libdir"
18015 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18017 for found_dir in $rpathdirs; do
18018 acl_save_libdir="$libdir"
18019 libdir="$found_dir"
18020 eval flag=\"$hardcode_libdir_flag_spec\"
18021 libdir="$acl_save_libdir"
18022 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18026 if test "X$ltrpathdirs" != "X"; then
18027 for found_dir in $ltrpathdirs; do
18028 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18032 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18033 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18034 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 gt_save_CPPFLAGS="$CPPFLAGS"
18038 CPPFLAGS="$CPPFLAGS $INCINTL"
18039 gt_save_LIBS="$LIBS"
18040 LIBS="$LIBS $LIBINTL"
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 #include <libintl.h>
18048 extern int _nl_msg_cat_cntr;
18053 const char *_nl_expand_alias (const char *);
18057 bindtextdomain ("", "");
18058 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18063 rm -f conftest.$ac_objext conftest$ac_exeext
18064 if { (ac_try="$ac_link"
18065 case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_link") 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } && {
18077 test -z "$ac_c_werror_flag" ||
18078 test ! -s conftest.err
18079 } && test -s conftest$ac_exeext &&
18080 $as_test_x conftest$ac_exeext; then
18081 gt_cv_func_gnugettext1_libintl=yes
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18086 gt_cv_func_gnugettext1_libintl=no
18089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18090 conftest$ac_exeext conftest.$ac_ext
18091 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18092 LIBS="$LIBS $LIBICONV"
18093 cat >conftest.$ac_ext <<_ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 #include <libintl.h>
18100 extern int _nl_msg_cat_cntr;
18105 const char *_nl_expand_alias (const char *);
18109 bindtextdomain ("", "");
18110 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_link") 2>conftest.er1
18124 grep -v '^ *+' conftest.er1 >conftest.err
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } && {
18129 test -z "$ac_c_werror_flag" ||
18130 test ! -s conftest.err
18131 } && test -s conftest$ac_exeext &&
18132 $as_test_x conftest$ac_exeext; then
18133 LIBINTL="$LIBINTL $LIBICONV"
18134 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18135 gt_cv_func_gnugettext1_libintl=yes
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18145 conftest$ac_exeext conftest.$ac_ext
18147 CPPFLAGS="$gt_save_CPPFLAGS"
18148 LIBS="$gt_save_LIBS"
18150 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18151 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18154 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18155 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18156 && test "$PACKAGE" != gettext-runtime \
18157 && test "$PACKAGE" != gettext-tools; }; then
18158 gt_use_preinstalled_gnugettext=yes
18167 if test -n "$INTL_MACOSX_LIBS"; then
18168 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18169 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18170 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18171 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18175 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18176 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18178 cat >>confdefs.h <<\_ACEOF
18179 #define ENABLE_NLS 1
18187 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18188 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18189 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18190 echo "${ECHO_T}$USE_NLS" >&6; }
18191 if test "$USE_NLS" = "yes"; then
18192 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18193 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18194 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18195 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18196 gt_source="external libintl"
18201 gt_source="included intl directory"
18203 { echo "$as_me:$LINENO: result: $gt_source" >&5
18204 echo "${ECHO_T}$gt_source" >&6; }
18207 if test "$USE_NLS" = "yes"; then
18209 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18210 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18211 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18212 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18213 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18214 echo "${ECHO_T}$LIBINTL" >&6; }
18216 for element in $INCINTL; do
18218 for x in $CPPFLAGS; do
18220 acl_save_prefix="$prefix"
18221 prefix="$acl_final_prefix"
18222 acl_save_exec_prefix="$exec_prefix"
18223 exec_prefix="$acl_final_exec_prefix"
18225 exec_prefix="$acl_save_exec_prefix"
18226 prefix="$acl_save_prefix"
18228 if test "X$x" = "X$element"; then
18233 if test -z "$haveit"; then
18234 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_GETTEXT 1
18246 cat >>confdefs.h <<\_ACEOF
18247 #define HAVE_DCGETTEXT 1
18257 INTLLIBS="$LIBINTL"
18264 if test x${prefix} = xNONE ; then
18265 if test `eval echo ${datarootdir}` = NONE/share ; then
18266 datarootdir=/usr/share
18270 if test x${prefix} = xNONE ; then
18271 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18272 sysconfdir=/etc/bacula
18275 if test `eval echo ${libdir}` = NONE/lib ; then
18276 sysconfdir=/usr/lib
18279 if test `eval echo ${includedir}` = NONE/include ; then
18280 sysconfdir=/usr/include
18285 sysconfdir=`eval echo ${sysconfdir}`
18286 datarootdir=`eval echo ${datarootdir}`
18287 localedir=`eval echo ${datarootdir}/locale`
18288 cat >>confdefs.h <<_ACEOF
18289 #define SYSCONFDIR "$sysconfdir"
18292 cat >>confdefs.h <<_ACEOF
18293 #define LOCALEDIR "$localedir"
18297 if test x${exec_prefix} = xNONE ; then
18298 exec_prefix=${prefix}
18301 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18302 sbindir=${exec_prefix}/sbin
18304 sbindir=`eval echo ${sbindir}`
18306 if test x$mandir = x'${prefix}/man' ; then
18307 mandir=/usr/share/man
18310 for ac_prog in msgfmt
18312 # Extract the first word of "$ac_prog", so it can be a program name with args.
18313 set dummy $ac_prog; ac_word=$2
18314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18316 if test "${ac_cv_path_MSGFMT+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18325 for as_dir in $PATH
18328 test -z "$as_dir" && as_dir=.
18329 for ac_exec_ext in '' $ac_executable_extensions; do
18330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18331 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18342 MSGFMT=$ac_cv_path_MSGFMT
18343 if test -n "$MSGFMT"; then
18344 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18345 echo "${ECHO_T}$MSGFMT" >&6; }
18347 { echo "$as_me:$LINENO: result: no" >&5
18348 echo "${ECHO_T}no" >&6; }
18352 test -n "$MSGFMT" && break
18354 test -n "$MSGFMT" || MSGFMT="no"
18356 if test "$MSGFMT" = "no"
18358 echo 'msgfmt program not found, disabling NLS !'
18360 USE_INCLUDED_LIBINTL=no
18363 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18364 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18365 if test "${ac_cv_gnu_library_2+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18368 cat >conftest.$ac_ext <<_ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18375 #include <features.h>
18376 #ifdef __GNU_LIBRARY__
18377 #if (__GLIBC__ >= 2)
18383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18384 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18385 ac_cv_gnu_library_2=yes
18387 ac_cv_gnu_library_2=no
18394 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18395 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18397 GLIBC2="$ac_cv_gnu_library_2"
18400 if test -n "$ac_tool_prefix"; then
18401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18405 if test "${ac_cv_prog_RANLIB+set}" = set; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 if test -n "$RANLIB"; then
18409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18412 for as_dir in $PATH
18415 test -z "$as_dir" && as_dir=.
18416 for ac_exec_ext in '' $ac_executable_extensions; do
18417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18418 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18428 RANLIB=$ac_cv_prog_RANLIB
18429 if test -n "$RANLIB"; then
18430 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18431 echo "${ECHO_T}$RANLIB" >&6; }
18433 { echo "$as_me:$LINENO: result: no" >&5
18434 echo "${ECHO_T}no" >&6; }
18439 if test -z "$ac_cv_prog_RANLIB"; then
18440 ac_ct_RANLIB=$RANLIB
18441 # Extract the first word of "ranlib", so it can be a program name with args.
18442 set dummy ranlib; ac_word=$2
18443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18445 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18446 echo $ECHO_N "(cached) $ECHO_C" >&6
18448 if test -n "$ac_ct_RANLIB"; then
18449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18452 for as_dir in $PATH
18455 test -z "$as_dir" && as_dir=.
18456 for ac_exec_ext in '' $ac_executable_extensions; do
18457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18458 ac_cv_prog_ac_ct_RANLIB="ranlib"
18459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18469 if test -n "$ac_ct_RANLIB"; then
18470 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18471 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18473 { echo "$as_me:$LINENO: result: no" >&5
18474 echo "${ECHO_T}no" >&6; }
18477 if test "x$ac_ct_RANLIB" = x; then
18480 case $cross_compiling:$ac_tool_warned in
18482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18483 whose name does not start with the host triplet. If you think this
18484 configuration is useful to you, please write to autoconf@gnu.org." >&5
18485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18486 whose name does not start with the host triplet. If you think this
18487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18488 ac_tool_warned=yes ;;
18490 RANLIB=$ac_ct_RANLIB
18493 RANLIB="$ac_cv_prog_RANLIB"
18497 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18498 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18499 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 ac_check_lib_save_LIBS=$LIBS
18503 LIBS="-lcposix $LIBS"
18504 cat >conftest.$ac_ext <<_ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18511 /* Override any GCC internal prototype to avoid an error.
18512 Use char because int might match the return type of a GCC
18513 builtin and then its argument prototype would still apply. */
18521 return strerror ();
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_link") 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext &&
18543 $as_test_x conftest$ac_exeext; then
18544 ac_cv_lib_cposix_strerror=yes
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 ac_cv_lib_cposix_strerror=no
18552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18553 conftest$ac_exeext conftest.$ac_ext
18554 LIBS=$ac_check_lib_save_LIBS
18556 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18557 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18558 if test $ac_cv_lib_cposix_strerror = yes; then
18559 LIBS="$LIBS -lcposix"
18564 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18565 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18566 if test "${ac_cv_c_const+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 cat >conftest.$ac_ext <<_ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18579 /* FIXME: Include the comments suggested by Paul. */
18580 #ifndef __cplusplus
18581 /* Ultrix mips cc rejects this. */
18582 typedef int charset[2];
18584 /* SunOS 4.1.1 cc rejects this. */
18585 char const *const *pcpcc;
18587 /* NEC SVR4.0.2 mips cc rejects this. */
18588 struct point {int x, y;};
18589 static struct point const zero = {0,0};
18590 /* AIX XL C 1.02.0.0 rejects this.
18591 It does not let you subtract one const X* pointer from another in
18592 an arm of an if-expression whose if-part is not a constant
18594 const char *g = "string";
18595 pcpcc = &g + (g ? g-g : 0);
18596 /* HPUX 7.0 cc rejects these. */
18598 ppc = (char**) pcpcc;
18599 pcpcc = (char const *const *) ppc;
18600 { /* SCO 3.2v4 cc rejects this. */
18602 char const *s = 0 ? (char *) 0 : (char const *) 0;
18607 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18608 int x[] = {25, 17};
18609 const int *foo = &x[0];
18612 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18613 typedef const int *iptr;
18617 { /* AIX XL C 1.02.0.0 rejects this saying
18618 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18619 struct s { int j; const int *ap[3]; };
18620 struct s *b; b->j = 5;
18622 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18623 const int foo = 10;
18624 if (!foo) return 0;
18626 return !cs[0] && !zero.x;
18633 rm -f conftest.$ac_objext
18634 if { (ac_try="$ac_compile"
18635 case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_compile") 2>conftest.er1
18642 grep -v '^ *+' conftest.er1 >conftest.err
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } && {
18647 test -z "$ac_c_werror_flag" ||
18648 test ! -s conftest.err
18649 } && test -s conftest.$ac_objext; then
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18660 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18661 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18662 if test $ac_cv_c_const = no; then
18664 cat >>confdefs.h <<\_ACEOF
18671 { echo "$as_me:$LINENO: checking for signed" >&5
18672 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18673 if test "${bh_cv_c_signed+set}" = set; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18691 rm -f conftest.$ac_objext
18692 if { (ac_try="$ac_compile"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_compile") 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } && {
18705 test -z "$ac_c_werror_flag" ||
18706 test ! -s conftest.err
18707 } && test -s conftest.$ac_objext; then
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18718 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18719 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18720 if test $bh_cv_c_signed = no; then
18722 cat >>confdefs.h <<\_ACEOF
18728 { echo "$as_me:$LINENO: checking for inline" >&5
18729 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18730 if test "${ac_cv_c_inline+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 for ac_kw in inline __inline__ __inline; do
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 #ifndef __cplusplus
18743 static $ac_kw foo_t static_foo () {return 0; }
18744 $ac_kw foo_t foo () {return 0; }
18748 rm -f conftest.$ac_objext
18749 if { (ac_try="$ac_compile"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_compile") 2>conftest.er1
18757 grep -v '^ *+' conftest.er1 >conftest.err
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } && {
18762 test -z "$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18764 } && test -s conftest.$ac_objext; then
18765 ac_cv_c_inline=$ac_kw
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774 test "$ac_cv_c_inline" != no && break
18778 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18779 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18782 case $ac_cv_c_inline in
18785 case $ac_cv_c_inline in
18787 *) ac_val=$ac_cv_c_inline;;
18789 cat >>confdefs.h <<_ACEOF
18790 #ifndef __cplusplus
18791 #define inline $ac_val
18797 { echo "$as_me:$LINENO: checking for off_t" >&5
18798 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18799 if test "${ac_cv_type_off_t+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18802 cat >conftest.$ac_ext <<_ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h. */
18808 $ac_includes_default
18809 typedef off_t ac__type_new_;
18813 if ((ac__type_new_ *) 0)
18815 if (sizeof (ac__type_new_))
18821 rm -f conftest.$ac_objext
18822 if { (ac_try="$ac_compile"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_compile") 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest.$ac_objext; then
18838 ac_cv_type_off_t=yes
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18843 ac_cv_type_off_t=no
18846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18848 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18849 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18850 if test $ac_cv_type_off_t = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855 #define off_t long int
18860 { echo "$as_me:$LINENO: checking for size_t" >&5
18861 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18862 if test "${ac_cv_type_size_t+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 cat >conftest.$ac_ext <<_ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871 $ac_includes_default
18872 typedef size_t ac__type_new_;
18876 if ((ac__type_new_ *) 0)
18878 if (sizeof (ac__type_new_))
18884 rm -f conftest.$ac_objext
18885 if { (ac_try="$ac_compile"
18886 case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_compile") 2>conftest.er1
18893 grep -v '^ *+' conftest.er1 >conftest.err
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } && {
18898 test -z "$ac_c_werror_flag" ||
18899 test ! -s conftest.err
18900 } && test -s conftest.$ac_objext; then
18901 ac_cv_type_size_t=yes
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ac_cv_type_size_t=no
18909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18912 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18913 if test $ac_cv_type_size_t = yes; then
18917 cat >>confdefs.h <<_ACEOF
18918 #define size_t unsigned int
18924 { echo "$as_me:$LINENO: checking for long long" >&5
18925 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18926 if test "${ac_cv_type_long_long+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 long long ll = 1LL; int i = 63;
18939 long long llmax = (long long) -1;
18940 return ll << i | ll >> i | llmax / ll | llmax % ll;
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext &&
18962 $as_test_x conftest$ac_exeext; then
18963 ac_cv_type_long_long=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_type_long_long=no
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18974 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18975 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18976 if test $ac_cv_type_long_long = yes; then
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_LONG_LONG 1
18985 { echo "$as_me:$LINENO: checking for long double" >&5
18986 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18987 if test "${gt_cv_c_long_double+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 if test "$GCC" = yes; then
18991 gt_cv_c_long_double=yes
18993 cat >conftest.$ac_ext <<_ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
19000 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19001 long double foo = 0.0;
19002 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19003 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest.$ac_objext; then
19030 gt_cv_c_long_double=yes
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 gt_cv_c_long_double=no
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19042 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19043 if test $gt_cv_c_long_double = yes; then
19045 cat >>confdefs.h <<\_ACEOF
19046 #define HAVE_LONG_DOUBLE 1
19052 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19053 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19054 if test "${gt_cv_c_wchar_t+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 cat >conftest.$ac_ext <<_ACEOF
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19063 #include <stddef.h>
19064 wchar_t foo = (wchar_t)'\0';
19073 rm -f conftest.$ac_objext
19074 if { (ac_try="$ac_compile"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_compile") 2>conftest.er1
19082 grep -v '^ *+' conftest.er1 >conftest.err
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } && {
19087 test -z "$ac_c_werror_flag" ||
19088 test ! -s conftest.err
19089 } && test -s conftest.$ac_objext; then
19090 gt_cv_c_wchar_t=yes
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19100 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19101 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19102 if test $gt_cv_c_wchar_t = yes; then
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_WCHAR_T 1
19111 { echo "$as_me:$LINENO: checking for wint_t" >&5
19112 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19113 if test "${gt_cv_c_wint_t+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19116 cat >conftest.$ac_ext <<_ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19123 wint_t foo = (wchar_t)'\0';
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_compile") 2>conftest.er1
19141 grep -v '^ *+' conftest.er1 >conftest.err
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest.$ac_objext; then
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19160 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19161 if test $gt_cv_c_wint_t = yes; then
19163 cat >>confdefs.h <<\_ACEOF
19164 #define HAVE_WINT_T 1
19170 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19171 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19172 if test "${gl_cv_header_inttypes_h+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 cat >conftest.$ac_ext <<_ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 #include <sys/types.h>
19182 #include <inttypes.h>
19186 uintmax_t i = (uintmax_t) -1;
19191 rm -f conftest.$ac_objext
19192 if { (ac_try="$ac_compile"
19193 case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_compile") 2>conftest.er1
19200 grep -v '^ *+' conftest.er1 >conftest.err
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } && {
19205 test -z "$ac_c_werror_flag" ||
19206 test ! -s conftest.err
19207 } && test -s conftest.$ac_objext; then
19208 gl_cv_header_inttypes_h=yes
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 gl_cv_header_inttypes_h=no
19216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19219 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19220 if test $gl_cv_header_inttypes_h = yes; then
19222 cat >>confdefs.h <<_ACEOF
19223 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19229 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19230 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19231 if test "${gl_cv_header_stdint_h+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 #include <sys/types.h>
19241 #include <stdint.h>
19245 uintmax_t i = (uintmax_t) -1;
19250 rm -f conftest.$ac_objext
19251 if { (ac_try="$ac_compile"
19252 case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_compile") 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } && {
19264 test -z "$ac_c_werror_flag" ||
19265 test ! -s conftest.err
19266 } && test -s conftest.$ac_objext; then
19267 gl_cv_header_stdint_h=yes
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 gl_cv_header_stdint_h=no
19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19278 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19279 if test $gl_cv_header_stdint_h = yes; then
19281 cat >>confdefs.h <<_ACEOF
19282 #define HAVE_STDINT_H_WITH_UINTMAX 1
19290 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19291 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19292 if test "${gt_cv_c_intmax_t+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19302 #include <stddef.h>
19303 #include <stdlib.h>
19304 #if HAVE_STDINT_H_WITH_UINTMAX
19305 #include <stdint.h>
19307 #if HAVE_INTTYPES_H_WITH_UINTMAX
19308 #include <inttypes.h>
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19328 grep -v '^ *+' conftest.er1 >conftest.err
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } && {
19333 test -z "$ac_c_werror_flag" ||
19334 test ! -s conftest.err
19335 } && test -s conftest.$ac_objext; then
19336 gt_cv_c_intmax_t=yes
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19341 gt_cv_c_intmax_t=no
19344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19347 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19348 if test $gt_cv_c_intmax_t = yes; then
19350 cat >>confdefs.h <<\_ACEOF
19351 #define HAVE_INTMAX_T 1
19358 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19359 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19360 if test "${gt_cv_func_printf_posix+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 if test "$cross_compiling" = yes; then
19366 cat >conftest.$ac_ext <<_ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19373 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19379 $EGREP "notposix" >/dev/null 2>&1; then
19380 gt_cv_func_printf_posix="guessing no"
19382 gt_cv_func_printf_posix="guessing yes"
19388 cat >conftest.$ac_ext <<_ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19396 #include <string.h>
19397 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19398 dollar expansion (possibly an autoconf bug). */
19399 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19400 static char buf[100];
19403 sprintf (buf, format, 33, 55);
19404 return (strcmp (buf, "55 33") != 0);
19407 rm -f conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19418 { (case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423 (eval "$ac_try") 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 gt_cv_func_printf_posix=yes
19429 echo "$as_me: program exited with status $ac_status" >&5
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ( exit $ac_status )
19434 gt_cv_func_printf_posix=no
19436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19442 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19443 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19444 case $gt_cv_func_printf_posix in
19447 cat >>confdefs.h <<\_ACEOF
19448 #define HAVE_POSIX_PRINTF 1
19454 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19455 # for constant arguments. Useless!
19456 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19457 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19458 if test "${ac_cv_working_alloca_h+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 cat >conftest.$ac_ext <<_ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <alloca.h>
19471 char *p = (char *) alloca (2 * sizeof (int));
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_link") 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest$ac_exeext &&
19494 $as_test_x conftest$ac_exeext; then
19495 ac_cv_working_alloca_h=yes
19497 echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19500 ac_cv_working_alloca_h=no
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504 conftest$ac_exeext conftest.$ac_ext
19506 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19507 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19508 if test $ac_cv_working_alloca_h = yes; then
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE_ALLOCA_H 1
19516 { echo "$as_me:$LINENO: checking for alloca" >&5
19517 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19518 if test "${ac_cv_func_alloca_works+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19528 # define alloca __builtin_alloca
19531 # include <malloc.h>
19532 # define alloca _alloca
19534 # ifdef HAVE_ALLOCA_H
19535 # include <alloca.h>
19540 # ifndef alloca /* predefined by HP cc +Olibcalls */
19551 char *p = (char *) alloca (1);
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_link") 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } && {
19571 test -z "$ac_c_werror_flag" ||
19572 test ! -s conftest.err
19573 } && test -s conftest$ac_exeext &&
19574 $as_test_x conftest$ac_exeext; then
19575 ac_cv_func_alloca_works=yes
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19580 ac_cv_func_alloca_works=no
19583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19584 conftest$ac_exeext conftest.$ac_ext
19586 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19587 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19589 if test $ac_cv_func_alloca_works = yes; then
19591 cat >>confdefs.h <<\_ACEOF
19592 #define HAVE_ALLOCA 1
19596 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19597 # that cause trouble. Some versions do not even contain alloca or
19598 # contain a buggy version. If you still want to use their alloca,
19599 # use ar to extract alloca.o from them instead of compiling alloca.c.
19601 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19603 cat >>confdefs.h <<\_ACEOF
19608 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19609 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19610 if test "${ac_cv_os_cray+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 #if defined CRAY && ! defined CRAY2
19626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19627 $EGREP "webecray" >/dev/null 2>&1; then
19635 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19636 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19637 if test $ac_cv_os_cray = yes; then
19638 for ac_func in _getb67 GETB67 getb67; do
19639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 cat >conftest.$ac_ext <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19653 #define $ac_func innocuous_$ac_func
19655 /* System header to define __stub macros and hopefully few prototypes,
19656 which can conflict with char $ac_func (); below.
19657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19658 <limits.h> exists even on freestanding compilers. */
19661 # include <limits.h>
19663 # include <assert.h>
19668 /* Override any GCC internal prototype to avoid an error.
19669 Use char because int might match the return type of a GCC
19670 builtin and then its argument prototype would still apply. */
19675 /* The GNU C library defines this for functions which it implements
19676 to always fail with ENOSYS. Some functions are actually named
19677 something starting with __ and the normal name is an alias. */
19678 #if defined __stub_$ac_func || defined __stub___$ac_func
19685 return $ac_func ();
19690 rm -f conftest.$ac_objext conftest$ac_exeext
19691 if { (ac_try="$ac_link"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 (eval "$ac_link") 2>conftest.er1
19699 grep -v '^ *+' conftest.er1 >conftest.err
19701 cat conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } && {
19704 test -z "$ac_c_werror_flag" ||
19705 test ! -s conftest.err
19706 } && test -s conftest$ac_exeext &&
19707 $as_test_x conftest$ac_exeext; then
19708 eval "$as_ac_var=yes"
19710 echo "$as_me: failed program was:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 eval "$as_ac_var=no"
19716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19717 conftest$ac_exeext conftest.$ac_ext
19719 ac_res=`eval echo '${'$as_ac_var'}'`
19720 { echo "$as_me:$LINENO: result: $ac_res" >&5
19721 echo "${ECHO_T}$ac_res" >&6; }
19722 if test `eval echo '${'$as_ac_var'}'` = yes; then
19724 cat >>confdefs.h <<_ACEOF
19725 #define CRAY_STACKSEG_END $ac_func
19734 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19735 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19736 if test "${ac_cv_c_stack_direction+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 if test "$cross_compiling" = yes; then
19740 ac_cv_c_stack_direction=0
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 $ac_includes_default
19750 find_stack_direction ()
19752 static char *addr = 0;
19757 return find_stack_direction ();
19760 return (&dummy > addr) ? 1 : -1;
19766 return find_stack_direction () < 0;
19769 rm -f conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_link") 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19780 { (case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_try") 2>&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789 ac_cv_c_stack_direction=1
19791 echo "$as_me: program exited with status $ac_status" >&5
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ( exit $ac_status )
19796 ac_cv_c_stack_direction=-1
19798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19803 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19804 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19806 cat >>confdefs.h <<_ACEOF
19807 #define STACK_DIRECTION $ac_cv_c_stack_direction
19815 for ac_header in stdlib.h unistd.h
19817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 ac_res=`eval echo '${'$as_ac_Header'}'`
19825 { echo "$as_me:$LINENO: result: $ac_res" >&5
19826 echo "${ECHO_T}$ac_res" >&6; }
19828 # Is the header compilable?
19829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19831 cat >conftest.$ac_ext <<_ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 $ac_includes_default
19838 #include <$ac_header>
19840 rm -f conftest.$ac_objext
19841 if { (ac_try="$ac_compile"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_compile") 2>conftest.er1
19849 grep -v '^ *+' conftest.er1 >conftest.err
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } && {
19854 test -z "$ac_c_werror_flag" ||
19855 test ! -s conftest.err
19856 } && test -s conftest.$ac_objext; then
19857 ac_header_compiler=yes
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 ac_header_compiler=no
19865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19867 echo "${ECHO_T}$ac_header_compiler" >&6; }
19869 # Is the header present?
19870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 #include <$ac_header>
19880 if { (ac_try="$ac_cpp conftest.$ac_ext"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } >/dev/null && {
19893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19896 ac_header_preproc=yes
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19901 ac_header_preproc=no
19904 rm -f conftest.err conftest.$ac_ext
19905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19906 echo "${ECHO_T}$ac_header_preproc" >&6; }
19908 # So? What about this header?
19909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19915 ac_header_preproc=yes
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 eval "$as_ac_Header=\$ac_header_preproc"
19940 ac_res=`eval echo '${'$as_ac_Header'}'`
19941 { echo "$as_me:$LINENO: result: $ac_res" >&5
19942 echo "${ECHO_T}$ac_res" >&6; }
19945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19946 cat >>confdefs.h <<_ACEOF
19947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19955 for ac_func in getpagesize
19957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19971 #define $ac_func innocuous_$ac_func
19973 /* System header to define __stub macros and hopefully few prototypes,
19974 which can conflict with char $ac_func (); below.
19975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19976 <limits.h> exists even on freestanding compilers. */
19979 # include <limits.h>
19981 # include <assert.h>
19986 /* Override any GCC internal prototype to avoid an error.
19987 Use char because int might match the return type of a GCC
19988 builtin and then its argument prototype would still apply. */
19993 /* The GNU C library defines this for functions which it implements
19994 to always fail with ENOSYS. Some functions are actually named
19995 something starting with __ and the normal name is an alias. */
19996 #if defined __stub_$ac_func || defined __stub___$ac_func
20003 return $ac_func ();
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (ac_try="$ac_link"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_link") 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } && {
20022 test -z "$ac_c_werror_flag" ||
20023 test ! -s conftest.err
20024 } && test -s conftest$ac_exeext &&
20025 $as_test_x conftest$ac_exeext; then
20026 eval "$as_ac_var=yes"
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 eval "$as_ac_var=no"
20034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20035 conftest$ac_exeext conftest.$ac_ext
20037 ac_res=`eval echo '${'$as_ac_var'}'`
20038 { echo "$as_me:$LINENO: result: $ac_res" >&5
20039 echo "${ECHO_T}$ac_res" >&6; }
20040 if test `eval echo '${'$as_ac_var'}'` = yes; then
20041 cat >>confdefs.h <<_ACEOF
20042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048 { echo "$as_me:$LINENO: checking for working mmap" >&5
20049 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20050 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 if test "$cross_compiling" = yes; then
20054 ac_cv_func_mmap_fixed_mapped=no
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 $ac_includes_default
20063 /* malloc might have been renamed as rpl_malloc. */
20066 /* Thanks to Mike Haertel and Jim Avera for this test.
20067 Here is a matrix of mmap possibilities:
20068 mmap private not fixed
20069 mmap private fixed at somewhere currently unmapped
20070 mmap private fixed at somewhere already mapped
20071 mmap shared not fixed
20072 mmap shared fixed at somewhere currently unmapped
20073 mmap shared fixed at somewhere already mapped
20074 For private mappings, we should verify that changes cannot be read()
20075 back from the file, nor mmap's back from the file at a different
20076 address. (There have been systems where private was not correctly
20077 implemented like the infamous i386 svr4.0, and systems where the
20078 VM page cache was not coherent with the file system buffer cache
20079 like early versions of FreeBSD and possibly contemporary NetBSD.)
20080 For shared mappings, we should conversely verify that changes get
20081 propagated back to all the places they're supposed to be.
20083 Grep wants private fixed already mapped.
20084 The main things grep needs to know about mmap are:
20085 * does it exist and is it safe to write into the mmap'd area
20086 * how to use it (BSD variants) */
20089 #include <sys/mman.h>
20091 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20095 /* This mess was copied from the GNU getpagesize.h. */
20096 #ifndef HAVE_GETPAGESIZE
20097 /* Assume that all systems that can run configure have sys/param.h. */
20098 # ifndef HAVE_SYS_PARAM_H
20099 # define HAVE_SYS_PARAM_H 1
20102 # ifdef _SC_PAGESIZE
20103 # define getpagesize() sysconf(_SC_PAGESIZE)
20104 # else /* no _SC_PAGESIZE */
20105 # ifdef HAVE_SYS_PARAM_H
20106 # include <sys/param.h>
20107 # ifdef EXEC_PAGESIZE
20108 # define getpagesize() EXEC_PAGESIZE
20109 # else /* no EXEC_PAGESIZE */
20111 # define getpagesize() NBPG * CLSIZE
20114 # endif /* no CLSIZE */
20115 # else /* no NBPG */
20117 # define getpagesize() NBPC
20118 # else /* no NBPC */
20120 # define getpagesize() PAGESIZE
20121 # endif /* PAGESIZE */
20122 # endif /* no NBPC */
20123 # endif /* no NBPG */
20124 # endif /* no EXEC_PAGESIZE */
20125 # else /* no HAVE_SYS_PARAM_H */
20126 # define getpagesize() 8192 /* punt totally */
20127 # endif /* no HAVE_SYS_PARAM_H */
20128 # endif /* no _SC_PAGESIZE */
20130 #endif /* no HAVE_GETPAGESIZE */
20135 char *data, *data2, *data3;
20139 pagesize = getpagesize ();
20141 /* First, make a file with some known garbage in it. */
20142 data = (char *) malloc (pagesize);
20145 for (i = 0; i < pagesize; ++i)
20146 *(data + i) = rand ();
20148 fd = creat ("conftest.mmap", 0600);
20151 if (write (fd, data, pagesize) != pagesize)
20155 /* Next, try to mmap the file at a fixed address which already has
20156 something else allocated at it. If we can, also make sure that
20157 we see the same garbage. */
20158 fd = open ("conftest.mmap", O_RDWR);
20161 data2 = (char *) malloc (2 * pagesize);
20164 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20165 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20166 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20168 for (i = 0; i < pagesize; ++i)
20169 if (*(data + i) != *(data2 + i))
20172 /* Finally, make sure that changes to the mapped area do not
20173 percolate back to the file as seen by read(). (This is a bug on
20174 some variants of i386 svr4.0.) */
20175 for (i = 0; i < pagesize; ++i)
20176 *(data2 + i) = *(data2 + i) + 1;
20177 data3 = (char *) malloc (pagesize);
20180 if (read (fd, data3, pagesize) != pagesize)
20182 for (i = 0; i < pagesize; ++i)
20183 if (*(data + i) != *(data3 + i))
20189 rm -f conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_link") 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20200 { (case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_try") 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_func_mmap_fixed_mapped=yes
20211 echo "$as_me: program exited with status $ac_status" >&5
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ( exit $ac_status )
20216 ac_cv_func_mmap_fixed_mapped=no
20218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20223 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20224 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20225 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20227 cat >>confdefs.h <<\_ACEOF
20228 #define HAVE_MMAP 1
20232 rm -f conftest.mmap
20235 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20236 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20237 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 cat >conftest.$ac_ext <<_ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20247 #include <features.h>
20248 #ifdef __GNU_LIBRARY__
20249 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20256 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20257 ac_cv_gnu_library_2_1=yes
20259 ac_cv_gnu_library_2_1=no
20266 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20267 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20269 GLIBC21="$ac_cv_gnu_library_2_1"
20274 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20275 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20276 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 if test "$cross_compiling" = yes; then
20282 # Guess based on the CPU.
20283 case "$host_cpu" in
20284 alpha* | i3456786 | m68k | s390*)
20285 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20287 gt_cv_int_divbyzero_sigfpe="guessing no";;
20291 cat >conftest.$ac_ext <<_ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h. */
20298 #include <stdlib.h>
20299 #include <signal.h>
20303 sigfpe_handler (int sig)
20305 sigfpe_handler (sig) int sig;
20308 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20309 exit (sig != SIGFPE);
20319 signal (SIGFPE, sigfpe_handler);
20320 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20321 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20322 signal (SIGTRAP, sigfpe_handler);
20324 /* Linux/SPARC yields signal SIGILL. */
20325 #if defined (__sparc__) && defined (__linux__)
20326 signal (SIGILL, sigfpe_handler);
20335 rm -f conftest$ac_exeext
20336 if { (ac_try="$ac_link"
20337 case "(($ac_try" in
20338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20339 *) ac_try_echo=$ac_try;;
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_link") 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 gt_cv_int_divbyzero_sigfpe=yes
20357 echo "$as_me: program exited with status $ac_status" >&5
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20361 ( exit $ac_status )
20362 gt_cv_int_divbyzero_sigfpe=no
20364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20370 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20371 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20372 case "$gt_cv_int_divbyzero_sigfpe" in
20377 cat >>confdefs.h <<_ACEOF
20378 #define INTDIV0_RAISES_SIGFPE $value
20383 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20384 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20385 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 unsigned long long ull = 1ULL; int i = 63;
20398 unsigned long long ullmax = (unsigned long long) -1;
20399 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20404 rm -f conftest.$ac_objext conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_link") 2>conftest.er1
20413 grep -v '^ *+' conftest.er1 >conftest.err
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest$ac_exeext &&
20421 $as_test_x conftest$ac_exeext; then
20422 ac_cv_type_unsigned_long_long=yes
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_type_unsigned_long_long=no
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431 conftest$ac_exeext conftest.$ac_ext
20433 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20434 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20435 if test $ac_cv_type_unsigned_long_long = yes; then
20437 cat >>confdefs.h <<\_ACEOF
20438 #define HAVE_UNSIGNED_LONG_LONG 1
20446 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20448 test $ac_cv_type_unsigned_long_long = yes \
20449 && ac_type='unsigned long long' \
20450 || ac_type='unsigned long'
20452 cat >>confdefs.h <<_ACEOF
20453 #define uintmax_t $ac_type
20458 cat >>confdefs.h <<\_ACEOF
20459 #define HAVE_UINTMAX_T 1
20465 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20466 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20467 if test "${gt_cv_header_inttypes_h+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 cat >conftest.$ac_ext <<_ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 #include <sys/types.h>
20478 #include <inttypes.h>
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_compile") 2>conftest.er1
20496 grep -v '^ *+' conftest.er1 >conftest.err
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest.$ac_objext; then
20504 gt_cv_header_inttypes_h=yes
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 gt_cv_header_inttypes_h=no
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20516 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20517 if test $gt_cv_header_inttypes_h = yes; then
20519 cat >>confdefs.h <<_ACEOF
20520 #define HAVE_INTTYPES_H 1
20527 if test $gt_cv_header_inttypes_h = yes; then
20528 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20529 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20530 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 #include <inttypes.h>
20553 rm -f conftest.$ac_objext
20554 if { (ac_try="$ac_compile"
20555 case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_compile") 2>conftest.er1
20562 grep -v '^ *+' conftest.er1 >conftest.err
20564 cat conftest.err >&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && {
20567 test -z "$ac_c_werror_flag" ||
20568 test ! -s conftest.err
20569 } && test -s conftest.$ac_objext; then
20570 gt_cv_inttypes_pri_broken=no
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 gt_cv_inttypes_pri_broken=yes
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20582 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20584 if test "$gt_cv_inttypes_pri_broken" = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define PRI_MACROS_BROKEN 1
20594 for ac_header in stdint.h
20596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 ac_res=`eval echo '${'$as_ac_Header'}'`
20604 { echo "$as_me:$LINENO: result: $ac_res" >&5
20605 echo "${ECHO_T}$ac_res" >&6; }
20607 # Is the header compilable?
20608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 $ac_includes_default
20617 #include <$ac_header>
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_compile") 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } && {
20633 test -z "$ac_c_werror_flag" ||
20634 test ! -s conftest.err
20635 } && test -s conftest.$ac_objext; then
20636 ac_header_compiler=yes
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 ac_header_compiler=no
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20646 echo "${ECHO_T}$ac_header_compiler" >&6; }
20648 # Is the header present?
20649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20657 #include <$ac_header>
20659 if { (ac_try="$ac_cpp conftest.$ac_ext"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } >/dev/null && {
20672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20675 ac_header_preproc=yes
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_header_preproc=no
20683 rm -f conftest.err conftest.$ac_ext
20684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20685 echo "${ECHO_T}$ac_header_preproc" >&6; }
20687 # So? What about this header?
20688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20694 ac_header_preproc=yes
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 eval "$as_ac_Header=\$ac_header_preproc"
20719 ac_res=`eval echo '${'$as_ac_Header'}'`
20720 { echo "$as_me:$LINENO: result: $ac_res" >&5
20721 echo "${ECHO_T}$ac_res" >&6; }
20724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20733 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20734 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20736 cat >conftest.$ac_ext <<_ACEOF
20739 cat confdefs.h >>conftest.$ac_ext
20740 cat >>conftest.$ac_ext <<_ACEOF
20741 /* end confdefs.h. */
20743 #include <limits.h>
20745 #include <stdint.h>
20752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20753 $EGREP "Found it" >/dev/null 2>&1; then
20758 if test -z "$result"; then
20759 if test "$cross_compiling" = yes; then
20760 # Depending upon the size, compute the lo and hi bounds.
20761 cat >conftest.$ac_ext <<_ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 #include <stddef.h>
20771 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_compile") 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } && {
20792 test -z "$ac_c_werror_flag" ||
20793 test ! -s conftest.err
20794 } && test -s conftest.$ac_objext; then
20797 cat >conftest.$ac_ext <<_ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20803 #include <stddef.h>
20807 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20814 rm -f conftest.$ac_objext
20815 if { (ac_try="$ac_compile"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest.$ac_objext; then
20831 ac_hi=$ac_mid; break
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_lo=`expr $ac_mid + 1`
20837 if test $ac_lo -le $ac_mid; then
20841 ac_mid=`expr 2 '*' $ac_mid + 1`
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20856 #include <stddef.h>
20860 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20867 rm -f conftest.$ac_objext
20868 if { (ac_try="$ac_compile"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_compile") 2>conftest.er1
20876 grep -v '^ *+' conftest.er1 >conftest.err
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } && {
20881 test -z "$ac_c_werror_flag" ||
20882 test ! -s conftest.err
20883 } && test -s conftest.$ac_objext; then
20886 cat >conftest.$ac_ext <<_ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <stddef.h>
20896 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20903 rm -f conftest.$ac_objext
20904 if { (ac_try="$ac_compile"
20905 case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_compile") 2>conftest.er1
20912 grep -v '^ *+' conftest.er1 >conftest.err
20914 cat conftest.err >&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } && {
20917 test -z "$ac_c_werror_flag" ||
20918 test ! -s conftest.err
20919 } && test -s conftest.$ac_objext; then
20920 ac_lo=$ac_mid; break
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ac_hi=`expr '(' $ac_mid ')' - 1`
20926 if test $ac_mid -le $ac_hi; then
20930 ac_mid=`expr 2 '*' $ac_mid`
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 # Binary search between lo and hi bounds.
20947 while test "x$ac_lo" != "x$ac_hi"; do
20948 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 #include <stddef.h>
20959 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_compile") 2>conftest.er1
20975 grep -v '^ *+' conftest.er1 >conftest.err
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } && {
20980 test -z "$ac_c_werror_flag" ||
20981 test ! -s conftest.err
20982 } && test -s conftest.$ac_objext; then
20985 echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20988 ac_lo=`expr '(' $ac_mid ')' + 1`
20991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 ?*) res_hi=$ac_lo;;
20998 cat >conftest.$ac_ext <<_ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21004 #include <stddef.h>
21005 static long int longval () { return ~(size_t)0 / 10; }
21006 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21008 #include <stdlib.h>
21013 FILE *f = fopen ("conftest.val", "w");
21016 if ((~(size_t)0 / 10) < 0)
21018 long int i = longval ();
21019 if (i != (~(size_t)0 / 10))
21021 fprintf (f, "%ld\n", i);
21025 unsigned long int i = ulongval ();
21026 if (i != (~(size_t)0 / 10))
21028 fprintf (f, "%lu\n", i);
21030 return ferror (f) || fclose (f) != 0;
21036 rm -f conftest$ac_exeext
21037 if { (ac_try="$ac_link"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_link") 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21047 { (case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_try") 2>&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; }; then
21056 res_hi=`cat conftest.val`
21058 echo "$as_me: program exited with status $ac_status" >&5
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21062 ( exit $ac_status )
21065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21069 if test "$cross_compiling" = yes; then
21070 # Depending upon the size, compute the lo and hi bounds.
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <stddef.h>
21081 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21088 rm -f conftest.$ac_objext
21089 if { (ac_try="$ac_compile"
21090 case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_compile") 2>conftest.er1
21097 grep -v '^ *+' conftest.er1 >conftest.err
21099 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); } && {
21102 test -z "$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21104 } && test -s conftest.$ac_objext; then
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <stddef.h>
21117 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_compile") 2>conftest.er1
21133 grep -v '^ *+' conftest.er1 >conftest.err
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest.$ac_objext; then
21141 ac_hi=$ac_mid; break
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ac_lo=`expr $ac_mid + 1`
21147 if test $ac_lo -le $ac_mid; then
21151 ac_mid=`expr 2 '*' $ac_mid + 1`
21154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <stddef.h>
21170 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_compile") 2>conftest.er1
21186 grep -v '^ *+' conftest.er1 >conftest.err
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && {
21191 test -z "$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21193 } && test -s conftest.$ac_objext; then
21196 cat >conftest.$ac_ext <<_ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 #include <stddef.h>
21206 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && {
21227 test -z "$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 } && test -s conftest.$ac_objext; then
21230 ac_lo=$ac_mid; break
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 ac_hi=`expr '(' $ac_mid ')' - 1`
21236 if test $ac_mid -le $ac_hi; then
21240 ac_mid=`expr 2 '*' $ac_mid`
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21256 # Binary search between lo and hi bounds.
21257 while test "x$ac_lo" != "x$ac_hi"; do
21258 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 #include <stddef.h>
21269 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21276 rm -f conftest.$ac_objext
21277 if { (ac_try="$ac_compile"
21278 case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_compile") 2>conftest.er1
21285 grep -v '^ *+' conftest.er1 >conftest.err
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest.$ac_objext; then
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21298 ac_lo=`expr '(' $ac_mid ')' + 1`
21301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 ?*) res_lo=$ac_lo;;
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 #include <stddef.h>
21315 static long int longval () { return ~(size_t)0 % 10; }
21316 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21318 #include <stdlib.h>
21323 FILE *f = fopen ("conftest.val", "w");
21326 if ((~(size_t)0 % 10) < 0)
21328 long int i = longval ();
21329 if (i != (~(size_t)0 % 10))
21331 fprintf (f, "%ld\n", i);
21335 unsigned long int i = ulongval ();
21336 if (i != (~(size_t)0 % 10))
21338 fprintf (f, "%lu\n", i);
21340 return ferror (f) || fclose (f) != 0;
21346 rm -f conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_link") 2>&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357 { (case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_try") 2>&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 res_lo=`cat conftest.val`
21368 echo "$as_me: program exited with status $ac_status" >&5
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ( exit $ac_status )
21375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21379 if test "$cross_compiling" = yes; then
21380 # Depending upon the size, compute the lo and hi bounds.
21381 cat >conftest.$ac_ext <<_ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <stddef.h>
21391 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21398 rm -f conftest.$ac_objext
21399 if { (ac_try="$ac_compile"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_compile") 2>conftest.er1
21407 grep -v '^ *+' conftest.er1 >conftest.err
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && {
21412 test -z "$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 } && test -s conftest.$ac_objext; then
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 #include <stddef.h>
21427 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21434 rm -f conftest.$ac_objext
21435 if { (ac_try="$ac_compile"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_compile") 2>conftest.er1
21443 grep -v '^ *+' conftest.er1 >conftest.err
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
21451 ac_hi=$ac_mid; break
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ac_lo=`expr $ac_mid + 1`
21457 if test $ac_lo -le $ac_mid; then
21461 ac_mid=`expr 2 '*' $ac_mid + 1`
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 cat >conftest.$ac_ext <<_ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21476 #include <stddef.h>
21480 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21487 rm -f conftest.$ac_objext
21488 if { (ac_try="$ac_compile"
21489 case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_compile") 2>conftest.er1
21496 grep -v '^ *+' conftest.er1 >conftest.err
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } && {
21501 test -z "$ac_c_werror_flag" ||
21502 test ! -s conftest.err
21503 } && test -s conftest.$ac_objext; then
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <stddef.h>
21516 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21523 rm -f conftest.$ac_objext
21524 if { (ac_try="$ac_compile"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_compile") 2>conftest.er1
21532 grep -v '^ *+' conftest.er1 >conftest.err
21534 cat conftest.err >&5
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); } && {
21537 test -z "$ac_c_werror_flag" ||
21538 test ! -s conftest.err
21539 } && test -s conftest.$ac_objext; then
21540 ac_lo=$ac_mid; break
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21545 ac_hi=`expr '(' $ac_mid ')' - 1`
21546 if test $ac_mid -le $ac_hi; then
21550 ac_mid=`expr 2 '*' $ac_mid`
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 # Binary search between lo and hi bounds.
21567 while test "x$ac_lo" != "x$ac_hi"; do
21568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21569 cat >conftest.$ac_ext <<_ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 #include <stddef.h>
21579 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21586 rm -f conftest.$ac_objext
21587 if { (ac_try="$ac_compile"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_compile") 2>conftest.er1
21595 grep -v '^ *+' conftest.er1 >conftest.err
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } && {
21600 test -z "$ac_c_werror_flag" ||
21601 test ! -s conftest.err
21602 } && test -s conftest.$ac_objext; then
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_lo=`expr '(' $ac_mid ')' + 1`
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 ?*) fits_in_uint=$ac_lo;;
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 #include <stddef.h>
21625 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21626 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21628 #include <stdlib.h>
21633 FILE *f = fopen ("conftest.val", "w");
21636 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21638 long int i = longval ();
21639 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21641 fprintf (f, "%ld\n", i);
21645 unsigned long int i = ulongval ();
21646 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21648 fprintf (f, "%lu\n", i);
21650 return ferror (f) || fclose (f) != 0;
21656 rm -f conftest$ac_exeext
21657 if { (ac_try="$ac_link"
21658 case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_link") 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21667 { (case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_try") 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 fits_in_uint=`cat conftest.val`
21678 echo "$as_me: program exited with status $ac_status" >&5
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ( exit $ac_status )
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21689 if test "$fits_in_uint" = 1; then
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <stddef.h>
21698 extern unsigned long foo;
21708 rm -f conftest.$ac_objext
21709 if { (ac_try="$ac_compile"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_compile") 2>conftest.er1
21717 grep -v '^ *+' conftest.er1 >conftest.err
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } && {
21722 test -z "$ac_c_werror_flag" ||
21723 test ! -s conftest.err
21724 } && test -s conftest.$ac_objext; then
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735 if test -z "$result"; then
21736 if test "$fits_in_uint" = 1; then
21737 result="$res_hi$res_lo"U
21739 result="$res_hi$res_lo"UL
21742 result='~(size_t)0'
21745 { echo "$as_me:$LINENO: result: $result" >&5
21746 echo "${ECHO_T}$result" >&6; }
21747 if test "$result" != yes; then
21749 cat >>confdefs.h <<_ACEOF
21750 #define SIZE_MAX $result
21759 for ac_header in stdint.h
21761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 ac_res=`eval echo '${'$as_ac_Header'}'`
21769 { echo "$as_me:$LINENO: result: $ac_res" >&5
21770 echo "${ECHO_T}$ac_res" >&6; }
21772 # Is the header compilable?
21773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 $ac_includes_default
21782 #include <$ac_header>
21784 rm -f conftest.$ac_objext
21785 if { (ac_try="$ac_compile"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_compile") 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest.$ac_objext; then
21801 ac_header_compiler=yes
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ac_header_compiler=no
21809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21811 echo "${ECHO_T}$ac_header_compiler" >&6; }
21813 # Is the header present?
21814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 #include <$ac_header>
21824 if { (ac_try="$ac_cpp conftest.$ac_ext"
21825 case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21832 grep -v '^ *+' conftest.er1 >conftest.err
21834 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } >/dev/null && {
21837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21838 test ! -s conftest.err
21840 ac_header_preproc=yes
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21845 ac_header_preproc=no
21848 rm -f conftest.err conftest.$ac_ext
21849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21850 echo "${ECHO_T}$ac_header_preproc" >&6; }
21852 # So? What about this header?
21853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21859 ac_header_preproc=yes
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 eval "$as_ac_Header=\$ac_header_preproc"
21884 ac_res=`eval echo '${'$as_ac_Header'}'`
21885 { echo "$as_me:$LINENO: result: $ac_res" >&5
21886 echo "${ECHO_T}$ac_res" >&6; }
21889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21890 cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21905 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21906 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21907 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 $ac_includes_default
21917 typedef ptrdiff_t ac__type_new_;
21921 if ((ac__type_new_ *) 0)
21923 if (sizeof (ac__type_new_))
21929 rm -f conftest.$ac_objext
21930 if { (ac_try="$ac_compile"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_compile") 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } && {
21943 test -z "$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21945 } && test -s conftest.$ac_objext; then
21946 ac_cv_type_ptrdiff_t=yes
21948 echo "$as_me: failed program was:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_cv_type_ptrdiff_t=no
21954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21956 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21957 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21958 if test $ac_cv_type_ptrdiff_t = yes; then
21962 cat >>confdefs.h <<\_ACEOF
21963 #define ptrdiff_t long
21979 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21980 stdlib.h string.h unistd.h sys/param.h
21982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21989 ac_res=`eval echo '${'$as_ac_Header'}'`
21990 { echo "$as_me:$LINENO: result: $ac_res" >&5
21991 echo "${ECHO_T}$ac_res" >&6; }
21993 # Is the header compilable?
21994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 $ac_includes_default
22003 #include <$ac_header>
22005 rm -f conftest.$ac_objext
22006 if { (ac_try="$ac_compile"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_compile") 2>conftest.er1
22014 grep -v '^ *+' conftest.er1 >conftest.err
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest.$ac_objext; then
22022 ac_header_compiler=yes
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22027 ac_header_compiler=no
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032 echo "${ECHO_T}$ac_header_compiler" >&6; }
22034 # Is the header present?
22035 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 #include <$ac_header>
22045 if { (ac_try="$ac_cpp conftest.$ac_ext"
22046 case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22053 grep -v '^ *+' conftest.er1 >conftest.err
22055 cat conftest.err >&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } >/dev/null && {
22058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22059 test ! -s conftest.err
22061 ac_header_preproc=yes
22063 echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ac_header_preproc=no
22069 rm -f conftest.err conftest.$ac_ext
22070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22071 echo "${ECHO_T}$ac_header_preproc" >&6; }
22073 # So? What about this header?
22074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22080 ac_header_preproc=yes
22083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 eval "$as_ac_Header=\$ac_header_preproc"
22105 ac_res=`eval echo '${'$as_ac_Header'}'`
22106 { echo "$as_me:$LINENO: result: $ac_res" >&5
22107 echo "${ECHO_T}$ac_res" >&6; }
22110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22111 cat >>confdefs.h <<_ACEOF
22112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22142 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22143 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22144 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 cat >conftest.$ac_ext <<_ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22161 #define $ac_func innocuous_$ac_func
22163 /* System header to define __stub macros and hopefully few prototypes,
22164 which can conflict with char $ac_func (); below.
22165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22166 <limits.h> exists even on freestanding compilers. */
22169 # include <limits.h>
22171 # include <assert.h>
22176 /* Override any GCC internal prototype to avoid an error.
22177 Use char because int might match the return type of a GCC
22178 builtin and then its argument prototype would still apply. */
22183 /* The GNU C library defines this for functions which it implements
22184 to always fail with ENOSYS. Some functions are actually named
22185 something starting with __ and the normal name is an alias. */
22186 #if defined __stub_$ac_func || defined __stub___$ac_func
22193 return $ac_func ();
22198 rm -f conftest.$ac_objext conftest$ac_exeext
22199 if { (ac_try="$ac_link"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_link") 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest$ac_exeext &&
22215 $as_test_x conftest$ac_exeext; then
22216 eval "$as_ac_var=yes"
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 eval "$as_ac_var=no"
22224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22225 conftest$ac_exeext conftest.$ac_ext
22227 ac_res=`eval echo '${'$as_ac_var'}'`
22228 { echo "$as_me:$LINENO: result: $ac_res" >&5
22229 echo "${ECHO_T}$ac_res" >&6; }
22230 if test `eval echo '${'$as_ac_var'}'` = yes; then
22231 cat >>confdefs.h <<_ACEOF
22232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22240 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22241 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22242 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22257 char *p = (char *) _snprintf;
22264 rm -f conftest.$ac_objext
22265 if { (ac_try="$ac_compile"
22266 case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_compile") 2>conftest.er1
22273 grep -v '^ *+' conftest.er1 >conftest.err
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } && {
22278 test -z "$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 } && test -s conftest.$ac_objext; then
22281 ac_cv_have_decl__snprintf=yes
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 ac_cv_have_decl__snprintf=no
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22292 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22293 if test $ac_cv_have_decl__snprintf = yes; then
22299 cat >>confdefs.h <<_ACEOF
22300 #define HAVE_DECL__SNPRINTF $gt_value
22305 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22306 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22307 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22308 echo $ECHO_N "(cached) $ECHO_C" >&6
22310 cat >conftest.$ac_ext <<_ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22322 char *p = (char *) _snwprintf;
22329 rm -f conftest.$ac_objext
22330 if { (ac_try="$ac_compile"
22331 case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_compile") 2>conftest.er1
22338 grep -v '^ *+' conftest.er1 >conftest.err
22340 cat conftest.err >&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && {
22343 test -z "$ac_c_werror_flag" ||
22344 test ! -s conftest.err
22345 } && test -s conftest.$ac_objext; then
22346 ac_cv_have_decl__snwprintf=yes
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22351 ac_cv_have_decl__snwprintf=no
22354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22356 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22357 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22358 if test $ac_cv_have_decl__snwprintf = yes; then
22364 cat >>confdefs.h <<_ACEOF
22365 #define HAVE_DECL__SNWPRINTF $gt_value
22371 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22372 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22373 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22376 cat >conftest.$ac_ext <<_ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22387 #ifndef feof_unlocked
22388 char *p = (char *) feof_unlocked;
22395 rm -f conftest.$ac_objext
22396 if { (ac_try="$ac_compile"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_compile") 2>conftest.er1
22404 grep -v '^ *+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest.$ac_objext; then
22412 ac_cv_have_decl_feof_unlocked=yes
22414 echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22417 ac_cv_have_decl_feof_unlocked=no
22420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22422 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22423 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22424 if test $ac_cv_have_decl_feof_unlocked = yes; then
22430 cat >>confdefs.h <<_ACEOF
22431 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22436 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22437 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22438 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22452 #ifndef fgets_unlocked
22453 char *p = (char *) fgets_unlocked;
22460 rm -f conftest.$ac_objext
22461 if { (ac_try="$ac_compile"
22462 case "(($ac_try" in
22463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_compile") 2>conftest.er1
22469 grep -v '^ *+' conftest.er1 >conftest.err
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } && {
22474 test -z "$ac_c_werror_flag" ||
22475 test ! -s conftest.err
22476 } && test -s conftest.$ac_objext; then
22477 ac_cv_have_decl_fgets_unlocked=yes
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ac_cv_have_decl_fgets_unlocked=no
22485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22488 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22489 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22495 cat >>confdefs.h <<_ACEOF
22496 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22501 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22502 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22503 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22506 cat >conftest.$ac_ext <<_ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h. */
22517 #ifndef getc_unlocked
22518 char *p = (char *) getc_unlocked;
22525 rm -f conftest.$ac_objext
22526 if { (ac_try="$ac_compile"
22527 case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_compile") 2>conftest.er1
22534 grep -v '^ *+' conftest.er1 >conftest.err
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && {
22539 test -z "$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22541 } && test -s conftest.$ac_objext; then
22542 ac_cv_have_decl_getc_unlocked=yes
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_cv_have_decl_getc_unlocked=no
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22553 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22554 if test $ac_cv_have_decl_getc_unlocked = yes; then
22560 cat >>confdefs.h <<_ACEOF
22561 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22566 case $gt_cv_func_printf_posix in
22567 *yes) HAVE_POSIX_PRINTF=1 ;;
22568 *) HAVE_POSIX_PRINTF=0 ;;
22571 if test "$ac_cv_func_asprintf" = yes; then
22577 if test "$ac_cv_func_snprintf" = yes; then
22583 if test "$ac_cv_func_wprintf" = yes; then
22595 am_save_CPPFLAGS="$CPPFLAGS"
22597 for element in $INCICONV; do
22599 for x in $CPPFLAGS; do
22601 acl_save_prefix="$prefix"
22602 prefix="$acl_final_prefix"
22603 acl_save_exec_prefix="$exec_prefix"
22604 exec_prefix="$acl_final_exec_prefix"
22606 exec_prefix="$acl_save_exec_prefix"
22607 prefix="$acl_save_prefix"
22609 if test "X$x" = "X$element"; then
22614 if test -z "$haveit"; then
22615 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22620 { echo "$as_me:$LINENO: checking for iconv" >&5
22621 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22622 if test "${am_cv_func_iconv+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 am_cv_func_iconv="no, consider installing GNU libiconv"
22628 cat >conftest.$ac_ext <<_ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 #include <stdlib.h>
22639 iconv_t cd = iconv_open("","");
22640 iconv(cd,NULL,NULL,NULL,NULL);
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653 (eval "$ac_link") 2>conftest.er1
22655 grep -v '^ *+' conftest.er1 >conftest.err
22657 cat conftest.err >&5
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); } && {
22660 test -z "$ac_c_werror_flag" ||
22661 test ! -s conftest.err
22662 } && test -s conftest$ac_exeext &&
22663 $as_test_x conftest$ac_exeext; then
22664 am_cv_func_iconv=yes
22666 echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22673 conftest$ac_exeext conftest.$ac_ext
22674 if test "$am_cv_func_iconv" != yes; then
22675 am_save_LIBS="$LIBS"
22676 LIBS="$LIBS $LIBICONV"
22677 cat >conftest.$ac_ext <<_ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22683 #include <stdlib.h>
22688 iconv_t cd = iconv_open("","");
22689 iconv(cd,NULL,NULL,NULL,NULL);
22695 rm -f conftest.$ac_objext conftest$ac_exeext
22696 if { (ac_try="$ac_link"
22697 case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_link") 2>conftest.er1
22704 grep -v '^ *+' conftest.er1 >conftest.err
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } && {
22709 test -z "$ac_c_werror_flag" ||
22710 test ! -s conftest.err
22711 } && test -s conftest$ac_exeext &&
22712 $as_test_x conftest$ac_exeext; then
22713 am_cv_lib_iconv=yes
22714 am_cv_func_iconv=yes
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22723 conftest$ac_exeext conftest.$ac_ext
22724 LIBS="$am_save_LIBS"
22728 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22729 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22730 if test "$am_cv_func_iconv" = yes; then
22732 cat >>confdefs.h <<\_ACEOF
22733 #define HAVE_ICONV 1
22737 if test "$am_cv_lib_iconv" = yes; then
22738 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22739 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22740 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22741 echo "${ECHO_T}$LIBICONV" >&6; }
22743 CPPFLAGS="$am_save_CPPFLAGS"
22750 if test "$am_cv_func_iconv" = yes; then
22751 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22752 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22753 if test "${am_cv_proto_iconv+set}" = set; then
22754 echo $ECHO_N "(cached) $ECHO_C" >&6
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22764 #include <stdlib.h>
22770 #if defined(__STDC__) || defined(__cplusplus)
22771 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22784 rm -f conftest.$ac_objext
22785 if { (ac_try="$ac_compile"
22786 case "(($ac_try" in
22787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791 (eval "$ac_compile") 2>conftest.er1
22793 grep -v '^ *+' conftest.er1 >conftest.err
22795 cat conftest.err >&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && {
22798 test -z "$ac_c_werror_flag" ||
22799 test ! -s conftest.err
22800 } && test -s conftest.$ac_objext; then
22801 am_cv_proto_iconv_arg1=""
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 am_cv_proto_iconv_arg1="const"
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 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);"
22813 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22814 { echo "$as_me:$LINENO: result: ${ac_t:-
22815 }$am_cv_proto_iconv" >&5
22816 echo "${ECHO_T}${ac_t:-
22817 }$am_cv_proto_iconv" >&6; }
22819 cat >>confdefs.h <<_ACEOF
22820 #define ICONV_CONST $am_cv_proto_iconv_arg1
22826 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22827 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22828 if test "${am_cv_langinfo_codeset+set}" = set; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 #include <langinfo.h>
22841 char* cs = nl_langinfo(CODESET);
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (ac_try="$ac_link"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_link") 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest$ac_exeext &&
22863 $as_test_x conftest$ac_exeext; then
22864 am_cv_langinfo_codeset=yes
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 am_cv_langinfo_codeset=no
22872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22873 conftest$ac_exeext conftest.$ac_ext
22876 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22877 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22878 if test $am_cv_langinfo_codeset = yes; then
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_LANGINFO_CODESET 1
22886 if test $ac_cv_header_locale_h = yes; then
22888 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22889 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22890 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 #include <locale.h>
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (ac_try="$ac_link"
22910 case "(($ac_try" in
22911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912 *) ac_try_echo=$ac_try;;
22914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915 (eval "$ac_link") 2>conftest.er1
22917 grep -v '^ *+' conftest.er1 >conftest.err
22919 cat conftest.err >&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } && {
22922 test -z "$ac_c_werror_flag" ||
22923 test ! -s conftest.err
22924 } && test -s conftest$ac_exeext &&
22925 $as_test_x conftest$ac_exeext; then
22926 gt_cv_val_LC_MESSAGES=yes
22928 echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22931 gt_cv_val_LC_MESSAGES=no
22934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22935 conftest$ac_exeext conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22938 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22939 if test $gt_cv_val_LC_MESSAGES = yes; then
22941 cat >>confdefs.h <<\_ACEOF
22942 #define HAVE_LC_MESSAGES 1
22949 if test -n "$INTL_MACOSX_LIBS"; then
22950 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22953 for ac_prog in bison
22955 # Extract the first word of "$ac_prog", so it can be a program name with args.
22956 set dummy $ac_prog; ac_word=$2
22957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22959 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22960 echo $ECHO_N "(cached) $ECHO_C" >&6
22962 if test -n "$INTLBISON"; then
22963 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22966 for as_dir in $PATH
22969 test -z "$as_dir" && as_dir=.
22970 for ac_exec_ext in '' $ac_executable_extensions; do
22971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22972 ac_cv_prog_INTLBISON="$ac_prog"
22973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22982 INTLBISON=$ac_cv_prog_INTLBISON
22983 if test -n "$INTLBISON"; then
22984 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22985 echo "${ECHO_T}$INTLBISON" >&6; }
22987 { echo "$as_me:$LINENO: result: no" >&5
22988 echo "${ECHO_T}no" >&6; }
22992 test -n "$INTLBISON" && break
22995 if test -z "$INTLBISON"; then
22998 { echo "$as_me:$LINENO: checking version of bison" >&5
22999 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23000 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23001 case $ac_prog_version in
23002 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23003 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23004 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23005 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23007 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23008 echo "${ECHO_T}$ac_prog_version" >&6; }
23010 if test $ac_verc_fail = yes; then
23029 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23030 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23031 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 gt_save_CPPFLAGS="$CPPFLAGS"
23035 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23036 gt_save_LIBS="$LIBS"
23037 LIBS="$LIBS -framework CoreFoundation"
23038 cat >conftest.$ac_ext <<_ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23044 #include <CFPreferences.h>
23048 CFPreferencesCopyAppValue(NULL, NULL)
23053 rm -f conftest.$ac_objext conftest$ac_exeext
23054 if { (ac_try="$ac_link"
23055 case "(($ac_try" in
23056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057 *) ac_try_echo=$ac_try;;
23059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23060 (eval "$ac_link") 2>conftest.er1
23062 grep -v '^ *+' conftest.er1 >conftest.err
23064 cat conftest.err >&5
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } && {
23067 test -z "$ac_c_werror_flag" ||
23068 test ! -s conftest.err
23069 } && test -s conftest$ac_exeext &&
23070 $as_test_x conftest$ac_exeext; then
23071 gt_cv_func_CFPreferencesCopyAppValue=yes
23073 echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23076 gt_cv_func_CFPreferencesCopyAppValue=no
23079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23080 conftest$ac_exeext conftest.$ac_ext
23081 CPPFLAGS="$gt_save_CPPFLAGS"
23082 LIBS="$gt_save_LIBS"
23084 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23085 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23086 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23088 cat >>confdefs.h <<\_ACEOF
23089 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23093 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23094 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23095 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23098 gt_save_CPPFLAGS="$CPPFLAGS"
23099 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23100 gt_save_LIBS="$LIBS"
23101 LIBS="$LIBS -framework CoreFoundation"
23102 cat >conftest.$ac_ext <<_ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h. */
23108 #include <CFLocale.h>
23112 CFLocaleCopyCurrent();
23117 rm -f conftest.$ac_objext conftest$ac_exeext
23118 if { (ac_try="$ac_link"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124 (eval "$ac_link") 2>conftest.er1
23126 grep -v '^ *+' conftest.er1 >conftest.err
23128 cat conftest.err >&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && {
23131 test -z "$ac_c_werror_flag" ||
23132 test ! -s conftest.err
23133 } && test -s conftest$ac_exeext &&
23134 $as_test_x conftest$ac_exeext; then
23135 gt_cv_func_CFLocaleCopyCurrent=yes
23137 echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 gt_cv_func_CFLocaleCopyCurrent=no
23143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23144 conftest$ac_exeext conftest.$ac_ext
23145 CPPFLAGS="$gt_save_CPPFLAGS"
23146 LIBS="$gt_save_LIBS"
23148 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23149 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23150 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23152 cat >>confdefs.h <<\_ACEOF
23153 #define HAVE_CFLOCALECOPYCURRENT 1
23158 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23159 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23165 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23166 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23167 # Check whether --enable-nls was given.
23168 if test "${enable_nls+set}" = set; then
23169 enableval=$enable_nls; USE_NLS=$enableval
23174 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23175 echo "${ECHO_T}$USE_NLS" >&6; }
23180 BUILD_INCLUDED_LIBINTL=no
23181 USE_INCLUDED_LIBINTL=no
23187 if test "$USE_NLS" = "yes"; then
23188 gt_use_preinstalled_gnugettext=no
23190 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23191 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23193 # Check whether --with-included-gettext was given.
23194 if test "${with_included_gettext+set}" = set; then
23195 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23197 nls_cv_force_use_gnu_gettext=no
23200 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23201 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23203 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23204 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23211 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23212 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23213 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23216 cat >conftest.$ac_ext <<_ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23222 #include <libintl.h>
23223 extern int _nl_msg_cat_cntr;
23224 extern int *_nl_domain_bindings;
23228 bindtextdomain ("", "");
23229 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23234 rm -f conftest.$ac_objext conftest$ac_exeext
23235 if { (ac_try="$ac_link"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241 (eval "$ac_link") 2>conftest.er1
23243 grep -v '^ *+' conftest.er1 >conftest.err
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } && {
23248 test -z "$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23250 } && test -s conftest$ac_exeext &&
23251 $as_test_x conftest$ac_exeext; then
23252 gt_cv_func_gnugettext1_libc=yes
23254 echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23257 gt_cv_func_gnugettext1_libc=no
23260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23261 conftest$ac_exeext conftest.$ac_ext
23263 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23264 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23266 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23272 acl_save_prefix="$prefix"
23273 prefix="$acl_final_prefix"
23274 acl_save_exec_prefix="$exec_prefix"
23275 exec_prefix="$acl_final_exec_prefix"
23277 eval additional_includedir=\"$includedir\"
23278 eval additional_libdir=\"$libdir\"
23280 exec_prefix="$acl_save_exec_prefix"
23281 prefix="$acl_save_prefix"
23284 # Check whether --with-libintl-prefix was given.
23285 if test "${with_libintl_prefix+set}" = set; then
23286 withval=$with_libintl_prefix;
23287 if test "X$withval" = "Xno"; then
23290 if test "X$withval" = "X"; then
23292 acl_save_prefix="$prefix"
23293 prefix="$acl_final_prefix"
23294 acl_save_exec_prefix="$exec_prefix"
23295 exec_prefix="$acl_final_exec_prefix"
23297 eval additional_includedir=\"$includedir\"
23298 eval additional_libdir=\"$libdir\"
23300 exec_prefix="$acl_save_exec_prefix"
23301 prefix="$acl_save_prefix"
23304 additional_includedir="$withval/include"
23305 additional_libdir="$withval/lib"
23316 names_already_handled=
23317 names_next_round='intl '
23318 while test -n "$names_next_round"; do
23319 names_this_round="$names_next_round"
23321 for name in $names_this_round; do
23323 for n in $names_already_handled; do
23324 if test "$n" = "$name"; then
23325 already_handled=yes
23329 if test -z "$already_handled"; then
23330 names_already_handled="$names_already_handled $name"
23331 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23332 eval value=\"\$HAVE_LIB$uppername\"
23333 if test -n "$value"; then
23334 if test "$value" = yes; then
23335 eval value=\"\$LIB$uppername\"
23336 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23337 eval value=\"\$LTLIB$uppername\"
23338 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23347 if test $use_additional = yes; then
23348 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23349 found_dir="$additional_libdir"
23350 found_so="$additional_libdir/lib$name.$shlibext"
23351 if test -f "$additional_libdir/lib$name.la"; then
23352 found_la="$additional_libdir/lib$name.la"
23355 if test -f "$additional_libdir/lib$name.$libext"; then
23356 found_dir="$additional_libdir"
23357 found_a="$additional_libdir/lib$name.$libext"
23358 if test -f "$additional_libdir/lib$name.la"; then
23359 found_la="$additional_libdir/lib$name.la"
23364 if test "X$found_dir" = "X"; then
23365 for x in $LDFLAGS $LTLIBINTL; do
23367 acl_save_prefix="$prefix"
23368 prefix="$acl_final_prefix"
23369 acl_save_exec_prefix="$exec_prefix"
23370 exec_prefix="$acl_final_exec_prefix"
23372 exec_prefix="$acl_save_exec_prefix"
23373 prefix="$acl_save_prefix"
23377 dir=`echo "X$x" | sed -e 's/^X-L//'`
23378 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23380 found_so="$dir/lib$name.$shlibext"
23381 if test -f "$dir/lib$name.la"; then
23382 found_la="$dir/lib$name.la"
23385 if test -f "$dir/lib$name.$libext"; then
23387 found_a="$dir/lib$name.$libext"
23388 if test -f "$dir/lib$name.la"; then
23389 found_la="$dir/lib$name.la"
23395 if test "X$found_dir" != "X"; then
23400 if test "X$found_dir" != "X"; then
23401 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23402 if test "X$found_so" != "X"; then
23403 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23404 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23407 for x in $ltrpathdirs; do
23408 if test "X$x" = "X$found_dir"; then
23413 if test -z "$haveit"; then
23414 ltrpathdirs="$ltrpathdirs $found_dir"
23416 if test "$hardcode_direct" = yes; then
23417 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23419 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23420 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23422 for x in $rpathdirs; do
23423 if test "X$x" = "X$found_dir"; then
23428 if test -z "$haveit"; then
23429 rpathdirs="$rpathdirs $found_dir"
23433 for x in $LDFLAGS $LIBINTL; do
23435 acl_save_prefix="$prefix"
23436 prefix="$acl_final_prefix"
23437 acl_save_exec_prefix="$exec_prefix"
23438 exec_prefix="$acl_final_exec_prefix"
23440 exec_prefix="$acl_save_exec_prefix"
23441 prefix="$acl_save_prefix"
23443 if test "X$x" = "X-L$found_dir"; then
23448 if test -z "$haveit"; then
23449 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23451 if test "$hardcode_minus_L" != no; then
23452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23454 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23460 if test "X$found_a" != "X"; then
23461 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23463 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23466 additional_includedir=
23467 case "$found_dir" in
23469 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23470 additional_includedir="$basedir/include"
23473 if test "X$additional_includedir" != "X"; then
23474 if test "X$additional_includedir" != "X/usr/include"; then
23476 if test "X$additional_includedir" = "X/usr/local/include"; then
23477 if test -n "$GCC"; then
23479 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23483 if test -z "$haveit"; then
23484 for x in $CPPFLAGS $INCINTL; do
23486 acl_save_prefix="$prefix"
23487 prefix="$acl_final_prefix"
23488 acl_save_exec_prefix="$exec_prefix"
23489 exec_prefix="$acl_final_exec_prefix"
23491 exec_prefix="$acl_save_exec_prefix"
23492 prefix="$acl_save_prefix"
23494 if test "X$x" = "X-I$additional_includedir"; then
23499 if test -z "$haveit"; then
23500 if test -d "$additional_includedir"; then
23501 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23507 if test -n "$found_la"; then
23508 save_libdir="$libdir"
23509 case "$found_la" in
23510 */* | *\\*) . "$found_la" ;;
23511 *) . "./$found_la" ;;
23513 libdir="$save_libdir"
23514 for dep in $dependency_libs; do
23517 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23518 if test "X$additional_libdir" != "X/usr/lib"; then
23520 if test "X$additional_libdir" = "X/usr/local/lib"; then
23521 if test -n "$GCC"; then
23523 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23527 if test -z "$haveit"; then
23529 for x in $LDFLAGS $LIBINTL; do
23531 acl_save_prefix="$prefix"
23532 prefix="$acl_final_prefix"
23533 acl_save_exec_prefix="$exec_prefix"
23534 exec_prefix="$acl_final_exec_prefix"
23536 exec_prefix="$acl_save_exec_prefix"
23537 prefix="$acl_save_prefix"
23539 if test "X$x" = "X-L$additional_libdir"; then
23544 if test -z "$haveit"; then
23545 if test -d "$additional_libdir"; then
23546 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23550 for x in $LDFLAGS $LTLIBINTL; do
23552 acl_save_prefix="$prefix"
23553 prefix="$acl_final_prefix"
23554 acl_save_exec_prefix="$exec_prefix"
23555 exec_prefix="$acl_final_exec_prefix"
23557 exec_prefix="$acl_save_exec_prefix"
23558 prefix="$acl_save_prefix"
23560 if test "X$x" = "X-L$additional_libdir"; then
23565 if test -z "$haveit"; then
23566 if test -d "$additional_libdir"; then
23567 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23574 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23575 if test "$enable_rpath" != no; then
23577 for x in $rpathdirs; do
23578 if test "X$x" = "X$dir"; then
23583 if test -z "$haveit"; then
23584 rpathdirs="$rpathdirs $dir"
23587 for x in $ltrpathdirs; do
23588 if test "X$x" = "X$dir"; then
23593 if test -z "$haveit"; then
23594 ltrpathdirs="$ltrpathdirs $dir"
23599 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23602 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23605 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23606 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23612 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23619 if test "X$rpathdirs" != "X"; then
23620 if test -n "$hardcode_libdir_separator"; then
23622 for found_dir in $rpathdirs; do
23623 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23625 acl_save_libdir="$libdir"
23627 eval flag=\"$hardcode_libdir_flag_spec\"
23628 libdir="$acl_save_libdir"
23629 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23631 for found_dir in $rpathdirs; do
23632 acl_save_libdir="$libdir"
23633 libdir="$found_dir"
23634 eval flag=\"$hardcode_libdir_flag_spec\"
23635 libdir="$acl_save_libdir"
23636 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23640 if test "X$ltrpathdirs" != "X"; then
23641 for found_dir in $ltrpathdirs; do
23642 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23646 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23647 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23648 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23651 gt_save_CPPFLAGS="$CPPFLAGS"
23652 CPPFLAGS="$CPPFLAGS $INCINTL"
23653 gt_save_LIBS="$LIBS"
23654 LIBS="$LIBS $LIBINTL"
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 #include <libintl.h>
23662 extern int _nl_msg_cat_cntr;
23667 const char *_nl_expand_alias (const char *);
23671 bindtextdomain ("", "");
23672 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (ac_try="$ac_link"
23679 case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_link") 2>conftest.er1
23686 grep -v '^ *+' conftest.er1 >conftest.err
23688 cat conftest.err >&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && {
23691 test -z "$ac_c_werror_flag" ||
23692 test ! -s conftest.err
23693 } && test -s conftest$ac_exeext &&
23694 $as_test_x conftest$ac_exeext; then
23695 gt_cv_func_gnugettext1_libintl=yes
23697 echo "$as_me: failed program was:" >&5
23698 sed 's/^/| /' conftest.$ac_ext >&5
23700 gt_cv_func_gnugettext1_libintl=no
23703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23704 conftest$ac_exeext conftest.$ac_ext
23705 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23706 LIBS="$LIBS $LIBICONV"
23707 cat >conftest.$ac_ext <<_ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23713 #include <libintl.h>
23714 extern int _nl_msg_cat_cntr;
23719 const char *_nl_expand_alias (const char *);
23723 bindtextdomain ("", "");
23724 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23729 rm -f conftest.$ac_objext conftest$ac_exeext
23730 if { (ac_try="$ac_link"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_link") 2>conftest.er1
23738 grep -v '^ *+' conftest.er1 >conftest.err
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } && {
23743 test -z "$ac_c_werror_flag" ||
23744 test ! -s conftest.err
23745 } && test -s conftest$ac_exeext &&
23746 $as_test_x conftest$ac_exeext; then
23747 LIBINTL="$LIBINTL $LIBICONV"
23748 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23749 gt_cv_func_gnugettext1_libintl=yes
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23759 conftest$ac_exeext conftest.$ac_ext
23761 CPPFLAGS="$gt_save_CPPFLAGS"
23762 LIBS="$gt_save_LIBS"
23764 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23765 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23768 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23769 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23770 && test "$PACKAGE" != gettext-runtime \
23771 && test "$PACKAGE" != gettext-tools; }; then
23772 gt_use_preinstalled_gnugettext=yes
23780 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23781 nls_cv_use_gnu_gettext=yes
23785 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23786 BUILD_INCLUDED_LIBINTL=yes
23787 USE_INCLUDED_LIBINTL=yes
23788 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23789 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23790 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23794 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23795 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23800 if test -n "$INTL_MACOSX_LIBS"; then
23801 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23802 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23803 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23804 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23808 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23809 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23811 cat >>confdefs.h <<\_ACEOF
23812 #define ENABLE_NLS 1
23820 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23821 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23822 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23823 echo "${ECHO_T}$USE_NLS" >&6; }
23824 if test "$USE_NLS" = "yes"; then
23825 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23826 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23827 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23828 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23829 gt_source="external libintl"
23834 gt_source="included intl directory"
23836 { echo "$as_me:$LINENO: result: $gt_source" >&5
23837 echo "${ECHO_T}$gt_source" >&6; }
23840 if test "$USE_NLS" = "yes"; then
23842 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23843 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23844 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23845 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23846 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23847 echo "${ECHO_T}$LIBINTL" >&6; }
23849 for element in $INCINTL; do
23851 for x in $CPPFLAGS; do
23853 acl_save_prefix="$prefix"
23854 prefix="$acl_final_prefix"
23855 acl_save_exec_prefix="$exec_prefix"
23856 exec_prefix="$acl_final_exec_prefix"
23858 exec_prefix="$acl_save_exec_prefix"
23859 prefix="$acl_save_prefix"
23861 if test "X$x" = "X$element"; then
23866 if test -z "$haveit"; then
23867 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23874 cat >>confdefs.h <<\_ACEOF
23875 #define HAVE_GETTEXT 1
23879 cat >>confdefs.h <<\_ACEOF
23880 #define HAVE_DCGETTEXT 1
23889 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23890 BUILD_INCLUDED_LIBINTL=yes
23897 nls_cv_header_intl=
23898 nls_cv_header_libgt=
23910 if test "$USE_INCLUDED_LIBINTL" = yes; then
23911 INTLOBJS="\$(GETTOBJS)"
23915 INTL_LIBTOOL_SUFFIX_PREFIX=
23919 INTLLIBS="$LIBINTL"
23931 support_postgresql=no
23933 support_smartalloc=yes
23934 support_readline=yes
23938 support_wx_console=no
23943 support_static_tools=no
23944 support_static_fd=no
23945 support_static_sd=no
23946 support_static_dir=no
23947 support_static_cons=no
23949 build_client_only=no
23957 # Check whether --enable-gnome was given.
23958 if test "${enable_gnome+set}" = set; then
23959 enableval=$enable_gnome;
23960 if test x$enableval = xyes; then
23969 if test x$support_gnome = xyes; then
23970 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23972 if test $pkg = 0; then
23973 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23974 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23975 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23976 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23981 GNOME_DIR=src/gnome2-console
23982 gnome_version="Version 2.x"
23984 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23985 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23986 { (exit 1); exit 1; }; }
23991 # Check whether --enable-bat was given.
23992 if test "${enable_bat+set}" = set; then
23993 enableval=$enable_bat;
23994 if test x$enableval = xyes; then
23996 cat >>confdefs.h <<\_ACEOF
24008 if test x$support_bat = xyes; then
24009 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24011 if test $pkg = 0; then
24012 BAT_DIR=src/qt-console
24014 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24015 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24016 { (exit 1); exit 1; }; }
24026 if test x$support_bat = xyes; then
24027 { echo "$as_me:$LINENO: checking for qwt support" >&5
24028 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24030 # Check whether --with-qwt was given.
24031 if test "${with_qwt+set}" = set; then
24033 case "$with_qwt" in
24038 if test -f ${with_qwt}/include/qwt.h; then
24039 QWT_INC="${with_qwt}/include"
24040 QWT_LDFLAGS="-L${with_qwt}/lib"
24051 if test $no_qwt = no; then
24052 if test x$QWT_INC = x; then
24053 for root in /usr /usr/local; do
24054 for ver in qwt qwt5 qwt-qt4; do
24055 if test -f ${root}/include/${ver}/qwt.h; then
24056 QWT_INC="${root}/include/${ver}"
24057 if test -d ${root}/lib64/; then
24058 QWT_LDFLAGS="-L${root}/lib64"
24059 elif test -d ${root}/lib/64/; then
24060 QWT_LDFLAGS="-L${root}/64"
24062 QWT_LDFLAGS="-L${root}/lib"
24073 if test x$QWT_INC = x; then
24074 { echo "$as_me:$LINENO: result: no" >&5
24075 echo "${ECHO_T}no" >&6; }
24078 cat >>confdefs.h <<\_ACEOF
24082 { echo "$as_me:$LINENO: result: yes" >&5
24083 echo "${ECHO_T}yes" >&6; }
24093 # Check whether --enable-bwx-console was given.
24094 if test "${enable_bwx_console+set}" = set; then
24095 enableval=$enable_bwx_console;
24096 if test x$enableval = xyes; then
24097 support_wx_console=yes
24105 if test x$support_wx_console = xyes; then
24106 abc=`$WXCONFIG $WXFLAGS --cppflags`
24108 if test $pkg = 0; then
24109 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24110 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24111 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24115 WX_DIR=src/wx-console
24118 echo "wx-config program not found. bwx-console disabled."
24120 support_wx_console=no
24125 # Check whether --enable-tray-monitor was given.
24126 if test "${enable_tray_monitor+set}" = set; then
24127 enableval=$enable_tray_monitor;
24128 if test x$enableval = xyes; then
24129 support_tray_monitor=yes
24137 if test x$support_tray_monitor = xyes; then
24138 abc=`$PKGCONFIG --exists gtk+-2.0`
24140 if test $pkg = 0; then
24141 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24142 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24145 TRAY_MONITOR_DIR=src/tray-monitor
24146 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24148 if test $pkg = 0; then
24150 cat >>confdefs.h <<\_ACEOF
24151 #define HAVE_GTK_2_4 1
24159 # Check whether --enable-smartalloc was given.
24160 if test "${enable_smartalloc+set}" = set; then
24161 enableval=$enable_smartalloc;
24162 if test x$enableval = xno; then
24163 support_smartalloc=no
24170 if test x$support_smartalloc = xyes; then
24172 cat >>confdefs.h <<\_ACEOF
24173 #define SMARTALLOC 1
24178 # Check whether --enable-static-tools was given.
24179 if test "${enable_static_tools+set}" = set; then
24180 enableval=$enable_static_tools;
24181 if test x$enableval = xyes; then
24182 support_static_tools=yes
24190 if test x$support_static_tools = xyes; then
24191 TTOOL_LDFLAGS="-static"
24195 # Check whether --enable-static-fd was given.
24196 if test "${enable_static_fd+set}" = set; then
24197 enableval=$enable_static_fd;
24198 if test x$enableval = xyes; then
24199 support_static_fd=yes
24207 if test x$support_static_fd = xyes; then
24208 STATIC_FD="static-bacula-fd"
24212 # Check whether --enable-static-sd was given.
24213 if test "${enable_static_sd+set}" = set; then
24214 enableval=$enable_static_sd;
24215 if test x$enableval = xyes; then
24216 support_static_sd=yes
24224 if test x$support_static_sd = xyes; then
24225 STATIC_SD="static-bacula-sd"
24229 # Check whether --enable-static-dir was given.
24230 if test "${enable_static_dir+set}" = set; then
24231 enableval=$enable_static_dir;
24232 if test x$enableval = xyes; then
24233 support_static_dir=yes
24241 if test x$support_static_dir = xyes; then
24242 STATIC_DIR="static-bacula-dir"
24246 # Check whether --enable-static-cons was given.
24247 if test "${enable_static_cons+set}" = set; then
24248 enableval=$enable_static_cons;
24249 if test x$enableval = xyes; then
24250 support_static_cons=yes
24260 if test x$support_static_cons = xyes; then
24261 STATIC_CONS="static-bconsole"
24262 STATIC_GNOME_CONS="static-bgnome-console"
24263 STATIC_WX_CONS="static-bwx-console"
24269 # Check whether --enable-client-only was given.
24270 if test "${enable_client_only+set}" = set; then
24271 enableval=$enable_client_only;
24272 if test x$enableval = xyes; then
24273 build_client_only=yes
24281 if test x$build_client_only = xno; then
24288 # Check whether --enable-build-dird was given.
24289 if test "${enable_build_dird+set}" = set; then
24290 enableval=$enable_build_dird;
24291 if test x$enableval = xno; then
24298 if test x$build_dird = xyes; then
24299 DIRD_DIR="src/dird"
24300 DIR_TOOLS="DIRTOOLS"
24303 DIR_TOOLS="NODIRTOOLS"
24308 # Check whether --enable-build-stored was given.
24309 if test "${enable_build_stored+set}" = set; then
24310 enableval=$enable_build_stored;
24311 if test x$enableval = xno; then
24318 if test x$build_stored = xyes; then
24319 STORED_DIR="src/stored"
24325 # Check whether --enable-conio was given.
24326 if test "${enable_conio+set}" = set; then
24327 enableval=$enable_conio;
24328 if test x$enableval = xno; then
24338 # Check whether --enable-ipv6 was given.
24339 if test "${enable_ipv6+set}" = set; then
24340 enableval=$enable_ipv6;
24341 if test x$enableval = xno; then
24349 if test x$support_ipv6 = xyes; then
24350 cat >conftest.$ac_ext <<_ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24356 #include <sys/types.h>
24357 #include <sys/socket.h>
24358 #include <netinet/in.h>
24362 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24367 rm -f conftest.$ac_objext conftest$ac_exeext
24368 if { (ac_try="$ac_link"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24374 (eval "$ac_link") 2>conftest.er1
24376 grep -v '^ *+' conftest.er1 >conftest.err
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } && {
24381 test -z "$ac_c_werror_flag" ||
24382 test ! -s conftest.err
24383 } && test -s conftest$ac_exeext &&
24384 $as_test_x conftest$ac_exeext; then
24387 echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24394 conftest$ac_exeext conftest.$ac_ext
24397 if test x$support_ipv6 = xyes; then
24399 cat >>confdefs.h <<\_ACEOF
24400 #define HAVE_IPV6 1
24406 if test x$support_conio = xyes; then
24407 if test "${ac_cv_header_termcap_h+set}" = set; then
24408 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24409 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24410 if test "${ac_cv_header_termcap_h+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24413 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24414 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24416 # Is the header compilable?
24417 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24418 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24419 cat >conftest.$ac_ext <<_ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h. */
24425 $ac_includes_default
24426 #include <termcap.h>
24428 rm -f conftest.$ac_objext
24429 if { (ac_try="$ac_compile"
24430 case "(($ac_try" in
24431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432 *) ac_try_echo=$ac_try;;
24434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435 (eval "$ac_compile") 2>conftest.er1
24437 grep -v '^ *+' conftest.er1 >conftest.err
24439 cat conftest.err >&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); } && {
24442 test -z "$ac_c_werror_flag" ||
24443 test ! -s conftest.err
24444 } && test -s conftest.$ac_objext; then
24445 ac_header_compiler=yes
24447 echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24450 ac_header_compiler=no
24453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24455 echo "${ECHO_T}$ac_header_compiler" >&6; }
24457 # Is the header present?
24458 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24459 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24460 cat >conftest.$ac_ext <<_ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h. */
24466 #include <termcap.h>
24468 if { (ac_try="$ac_cpp conftest.$ac_ext"
24469 case "(($ac_try" in
24470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471 *) ac_try_echo=$ac_try;;
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24476 grep -v '^ *+' conftest.er1 >conftest.err
24478 cat conftest.err >&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } >/dev/null && {
24481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24482 test ! -s conftest.err
24484 ac_header_preproc=yes
24486 echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24489 ac_header_preproc=no
24492 rm -f conftest.err conftest.$ac_ext
24493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24494 echo "${ECHO_T}$ac_header_preproc" >&6; }
24496 # So? What about this header?
24497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24499 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24500 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24501 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24502 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24503 ac_header_preproc=yes
24506 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24507 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24508 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24509 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24510 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24511 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24512 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24513 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24514 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24515 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24516 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24517 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24521 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24522 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24523 if test "${ac_cv_header_termcap_h+set}" = set; then
24524 echo $ECHO_N "(cached) $ECHO_C" >&6
24526 ac_cv_header_termcap_h=$ac_header_preproc
24528 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24529 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24532 if test $ac_cv_header_termcap_h = yes; then
24533 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24534 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24535 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24538 ac_check_lib_save_LIBS=$LIBS
24539 LIBS="-ltermcap $LIBS"
24540 cat >conftest.$ac_ext <<_ACEOF
24543 cat confdefs.h >>conftest.$ac_ext
24544 cat >>conftest.$ac_ext <<_ACEOF
24545 /* end confdefs.h. */
24547 /* Override any GCC internal prototype to avoid an error.
24548 Use char because int might match the return type of a GCC
24549 builtin and then its argument prototype would still apply. */
24562 rm -f conftest.$ac_objext conftest$ac_exeext
24563 if { (ac_try="$ac_link"
24564 case "(($ac_try" in
24565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_link") 2>conftest.er1
24571 grep -v '^ *+' conftest.er1 >conftest.err
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest$ac_exeext &&
24579 $as_test_x conftest$ac_exeext; then
24580 ac_cv_lib_termcap_tgetent=yes
24582 echo "$as_me: failed program was:" >&5
24583 sed 's/^/| /' conftest.$ac_ext >&5
24585 ac_cv_lib_termcap_tgetent=no
24588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24589 conftest$ac_exeext conftest.$ac_ext
24590 LIBS=$ac_check_lib_save_LIBS
24592 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24593 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24594 if test $ac_cv_lib_termcap_tgetent = yes; then
24595 CONS_LIBS="-ltermcap"
24599 support_readline=no
24601 cat >>confdefs.h <<\_ACEOF
24602 #define HAVE_CONIO 1
24607 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24608 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24609 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24610 echo $ECHO_N "(cached) $ECHO_C" >&6
24612 ac_check_lib_save_LIBS=$LIBS
24613 LIBS="-lncurses $LIBS"
24614 cat >conftest.$ac_ext <<_ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h. */
24621 /* Override any GCC internal prototype to avoid an error.
24622 Use char because int might match the return type of a GCC
24623 builtin and then its argument prototype would still apply. */
24636 rm -f conftest.$ac_objext conftest$ac_exeext
24637 if { (ac_try="$ac_link"
24638 case "(($ac_try" in
24639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24640 *) ac_try_echo=$ac_try;;
24642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24643 (eval "$ac_link") 2>conftest.er1
24645 grep -v '^ *+' conftest.er1 >conftest.err
24647 cat conftest.err >&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } && {
24650 test -z "$ac_c_werror_flag" ||
24651 test ! -s conftest.err
24652 } && test -s conftest$ac_exeext &&
24653 $as_test_x conftest$ac_exeext; then
24654 ac_cv_lib_ncurses_tgetent=yes
24656 echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24659 ac_cv_lib_ncurses_tgetent=no
24662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24663 conftest$ac_exeext conftest.$ac_ext
24664 LIBS=$ac_check_lib_save_LIBS
24666 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24667 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24668 if test $ac_cv_lib_ncurses_tgetent = yes; then
24669 CONS_LIBS="-lncurses"
24673 support_readline=no
24675 cat >>confdefs.h <<\_ACEOF
24676 #define HAVE_CONIO 1
24689 for ac_header in curses.h
24691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24696 echo $ECHO_N "(cached) $ECHO_C" >&6
24698 ac_res=`eval echo '${'$as_ac_Header'}'`
24699 { echo "$as_me:$LINENO: result: $ac_res" >&5
24700 echo "${ECHO_T}$ac_res" >&6; }
24702 # Is the header compilable?
24703 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24705 cat >conftest.$ac_ext <<_ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h. */
24711 $ac_includes_default
24712 #include <$ac_header>
24714 rm -f conftest.$ac_objext
24715 if { (ac_try="$ac_compile"
24716 case "(($ac_try" in
24717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718 *) ac_try_echo=$ac_try;;
24720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721 (eval "$ac_compile") 2>conftest.er1
24723 grep -v '^ *+' conftest.er1 >conftest.err
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } && {
24728 test -z "$ac_c_werror_flag" ||
24729 test ! -s conftest.err
24730 } && test -s conftest.$ac_objext; then
24731 ac_header_compiler=yes
24733 echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24736 ac_header_compiler=no
24739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24741 echo "${ECHO_T}$ac_header_compiler" >&6; }
24743 # Is the header present?
24744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24752 #include <$ac_header>
24754 if { (ac_try="$ac_cpp conftest.$ac_ext"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24762 grep -v '^ *+' conftest.er1 >conftest.err
24764 cat conftest.err >&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); } >/dev/null && {
24767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24768 test ! -s conftest.err
24770 ac_header_preproc=yes
24772 echo "$as_me: failed program was:" >&5
24773 sed 's/^/| /' conftest.$ac_ext >&5
24775 ac_header_preproc=no
24778 rm -f conftest.err conftest.$ac_ext
24779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24780 echo "${ECHO_T}$ac_header_preproc" >&6; }
24782 # So? What about this header?
24783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24789 ac_header_preproc=yes
24792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24812 eval "$as_ac_Header=\$ac_header_preproc"
24814 ac_res=`eval echo '${'$as_ac_Header'}'`
24815 { echo "$as_me:$LINENO: result: $ac_res" >&5
24816 echo "${ECHO_T}$ac_res" >&6; }
24819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24820 cat >>confdefs.h <<_ACEOF
24821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24828 { echo "$as_me:$LINENO: checking for term.h" >&5
24829 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24830 if test "${ac_cv_header_term_h+set}" = set; then
24831 echo $ECHO_N "(cached) $ECHO_C" >&6
24833 cat >conftest.$ac_ext <<_ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24840 #include <curses.h>
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850 *) ac_try_echo=$ac_try;;
24852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24853 (eval "$ac_compile") 2>conftest.er1
24855 grep -v '^ *+' conftest.er1 >conftest.err
24857 cat conftest.err >&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } && {
24860 test -z "$ac_c_werror_flag" ||
24861 test ! -s conftest.err
24862 } && test -s conftest.$ac_objext; then
24863 ac_cv_header_term_h=yes
24865 echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24868 ac_cv_header_term_h=no
24871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24874 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24875 if test $ac_cv_header_term_h = yes; then
24876 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24877 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24878 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24879 echo $ECHO_N "(cached) $ECHO_C" >&6
24881 ac_check_lib_save_LIBS=$LIBS
24882 LIBS="-lcurses $LIBS"
24883 cat >conftest.$ac_ext <<_ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h. */
24890 /* Override any GCC internal prototype to avoid an error.
24891 Use char because int might match the return type of a GCC
24892 builtin and then its argument prototype would still apply. */
24905 rm -f conftest.$ac_objext conftest$ac_exeext
24906 if { (ac_try="$ac_link"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912 (eval "$ac_link") 2>conftest.er1
24914 grep -v '^ *+' conftest.er1 >conftest.err
24916 cat conftest.err >&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } && {
24919 test -z "$ac_c_werror_flag" ||
24920 test ! -s conftest.err
24921 } && test -s conftest$ac_exeext &&
24922 $as_test_x conftest$ac_exeext; then
24923 ac_cv_lib_curses_tgetent=yes
24925 echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24928 ac_cv_lib_curses_tgetent=no
24931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24932 conftest$ac_exeext conftest.$ac_ext
24933 LIBS=$ac_check_lib_save_LIBS
24935 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24936 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24937 if test $ac_cv_lib_curses_tgetent = yes; then
24938 CONS_LIBS="-lcurses"
24942 support_readline=no
24944 cat >>confdefs.h <<\_ACEOF
24945 #define HAVE_CONIO 1
24953 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24964 # Check whether --enable-readline was given.
24965 if test "${enable_readline+set}" = set; then
24966 enableval=$enable_readline;
24967 if test x$enableval = xno; then
24968 support_readline=no
24977 if test x$support_readline = xyes; then
24979 # Check whether --with-readline was given.
24980 if test "${with_readline+set}" = set; then
24981 withval=$with_readline;
24982 case "$with_readline" in
24987 if test -f ${with_readline}/readline.h; then
24988 CONS_INC="-I${with_readline}"
24989 CONS_LDFLAGS="-L$with_readline"
24990 elif test -f ${with_readline}/include/readline/readline.h; then
24991 CONS_INC="-I${with_readline}/include/readline"
24992 CONS_LDFLAGS="-L${with_readline}/lib"
24993 with_readline="${with_readline}/include/readline"
24995 with_readline="/usr/include/readline"
24998 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
24999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25000 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25001 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25003 echo $ECHO_N "(cached) $ECHO_C" >&6
25005 ac_res=`eval echo '${'$as_ac_Header'}'`
25006 { echo "$as_me:$LINENO: result: $ac_res" >&5
25007 echo "${ECHO_T}$ac_res" >&6; }
25009 # Is the header compilable?
25010 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25011 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25012 cat >conftest.$ac_ext <<_ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25018 $ac_includes_default
25019 #include <${with_readline}/readline.h>
25021 rm -f conftest.$ac_objext
25022 if { (ac_try="$ac_compile"
25023 case "(($ac_try" in
25024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025 *) ac_try_echo=$ac_try;;
25027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028 (eval "$ac_compile") 2>conftest.er1
25030 grep -v '^ *+' conftest.er1 >conftest.err
25032 cat conftest.err >&5
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); } && {
25035 test -z "$ac_c_werror_flag" ||
25036 test ! -s conftest.err
25037 } && test -s conftest.$ac_objext; then
25038 ac_header_compiler=yes
25040 echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25043 ac_header_compiler=no
25046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25048 echo "${ECHO_T}$ac_header_compiler" >&6; }
25050 # Is the header present?
25051 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25052 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25053 cat >conftest.$ac_ext <<_ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25059 #include <${with_readline}/readline.h>
25061 if { (ac_try="$ac_cpp conftest.$ac_ext"
25062 case "(($ac_try" in
25063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25064 *) ac_try_echo=$ac_try;;
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25069 grep -v '^ *+' conftest.er1 >conftest.err
25071 cat conftest.err >&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } >/dev/null && {
25074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25077 ac_header_preproc=yes
25079 echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25082 ac_header_preproc=no
25085 rm -f conftest.err conftest.$ac_ext
25086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25087 echo "${ECHO_T}$ac_header_preproc" >&6; }
25089 # So? What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25092 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25093 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25094 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25095 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25096 ac_header_preproc=yes
25099 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25100 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25101 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25102 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25103 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25104 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25105 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25106 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25107 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25108 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25109 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25110 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25114 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25115 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25117 echo $ECHO_N "(cached) $ECHO_C" >&6
25119 eval "$as_ac_Header=\$ac_header_preproc"
25121 ac_res=`eval echo '${'$as_ac_Header'}'`
25122 { echo "$as_me:$LINENO: result: $ac_res" >&5
25123 echo "${ECHO_T}$ac_res" >&6; }
25126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25129 cat >>confdefs.h <<\_ACEOF
25130 #define HAVE_READLINE 1
25133 CONS_LIBS="-lreadline -lhistory -ltermcap"
25139 echo "readline.h not found. readline turned off ..."
25151 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25152 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25153 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25154 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25157 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25158 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25160 # Is the header compilable?
25161 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25162 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25163 cat >conftest.$ac_ext <<_ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h. */
25169 $ac_includes_default
25170 #include </usr/include/readline/readline.h>
25172 rm -f conftest.$ac_objext
25173 if { (ac_try="$ac_compile"
25174 case "(($ac_try" in
25175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176 *) ac_try_echo=$ac_try;;
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179 (eval "$ac_compile") 2>conftest.er1
25181 grep -v '^ *+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } && {
25186 test -z "$ac_c_werror_flag" ||
25187 test ! -s conftest.err
25188 } && test -s conftest.$ac_objext; then
25189 ac_header_compiler=yes
25191 echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25194 ac_header_compiler=no
25197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25199 echo "${ECHO_T}$ac_header_compiler" >&6; }
25201 # Is the header present?
25202 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25203 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 #include </usr/include/readline/readline.h>
25212 if { (ac_try="$ac_cpp conftest.$ac_ext"
25213 case "(($ac_try" in
25214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215 *) ac_try_echo=$ac_try;;
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25220 grep -v '^ *+' conftest.er1 >conftest.err
25222 cat conftest.err >&5
25223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224 (exit $ac_status); } >/dev/null && {
25225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25226 test ! -s conftest.err
25228 ac_header_preproc=yes
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25233 ac_header_preproc=no
25236 rm -f conftest.err conftest.$ac_ext
25237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25238 echo "${ECHO_T}$ac_header_preproc" >&6; }
25240 # So? What about this header?
25241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25243 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25244 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25245 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25246 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25247 ac_header_preproc=yes
25250 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25251 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25252 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25253 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25254 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25255 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25256 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25257 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25258 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25259 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25260 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25261 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25265 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25266 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25267 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
25270 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25272 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25273 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25276 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25279 cat >>confdefs.h <<\_ACEOF
25280 #define HAVE_READLINE 1
25284 CONS_INC="-I/usr/include/readline"
25285 CONS_LIBS="-lreadline -ltermcap"
25289 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25291 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25292 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
25296 ac_res=`eval echo '${'$as_ac_Header'}'`
25297 { echo "$as_me:$LINENO: result: $ac_res" >&5
25298 echo "${ECHO_T}$ac_res" >&6; }
25300 # Is the header compilable?
25301 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25302 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 $ac_includes_default
25310 #include <${TOP_DIR}/depkgs/readline/readline.h>
25312 rm -f conftest.$ac_objext
25313 if { (ac_try="$ac_compile"
25314 case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25319 (eval "$ac_compile") 2>conftest.er1
25321 grep -v '^ *+' conftest.er1 >conftest.err
25323 cat conftest.err >&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); } && {
25326 test -z "$ac_c_werror_flag" ||
25327 test ! -s conftest.err
25328 } && test -s conftest.$ac_objext; then
25329 ac_header_compiler=yes
25331 echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25334 ac_header_compiler=no
25337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25339 echo "${ECHO_T}$ac_header_compiler" >&6; }
25341 # Is the header present?
25342 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25343 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25344 cat >conftest.$ac_ext <<_ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h. */
25350 #include <${TOP_DIR}/depkgs/readline/readline.h>
25352 if { (ac_try="$ac_cpp conftest.$ac_ext"
25353 case "(($ac_try" in
25354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355 *) ac_try_echo=$ac_try;;
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25360 grep -v '^ *+' conftest.er1 >conftest.err
25362 cat conftest.err >&5
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); } >/dev/null && {
25365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25366 test ! -s conftest.err
25368 ac_header_preproc=yes
25370 echo "$as_me: failed program was:" >&5
25371 sed 's/^/| /' conftest.$ac_ext >&5
25373 ac_header_preproc=no
25376 rm -f conftest.err conftest.$ac_ext
25377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25378 echo "${ECHO_T}$ac_header_preproc" >&6; }
25380 # So? What about this header?
25381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25383 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25384 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25386 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25387 ac_header_preproc=yes
25390 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25391 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25392 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25393 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25394 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25395 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25396 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25397 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25398 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25399 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25400 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25405 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25406 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25410 eval "$as_ac_Header=\$ac_header_preproc"
25412 ac_res=`eval echo '${'$as_ac_Header'}'`
25413 { echo "$as_me:$LINENO: result: $ac_res" >&5
25414 echo "${ECHO_T}$ac_res" >&6; }
25417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25420 cat >>confdefs.h <<\_ACEOF
25421 #define HAVE_READLINE 1
25425 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25426 CONS_LIBS="-lreadline -lhistory -ltermcap"
25427 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25428 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25433 echo "readline.h not found. readline turned off ..."
25460 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25461 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25462 if test "${ac_cv_header_stat_broken+set}" = set; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25465 cat >conftest.$ac_ext <<_ACEOF
25468 cat confdefs.h >>conftest.$ac_ext
25469 cat >>conftest.$ac_ext <<_ACEOF
25470 /* end confdefs.h. */
25471 #include <sys/types.h>
25472 #include <sys/stat.h>
25474 #if defined S_ISBLK && defined S_IFDIR
25475 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25478 #if defined S_ISBLK && defined S_IFCHR
25479 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25482 #if defined S_ISLNK && defined S_IFREG
25483 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25486 #if defined S_ISSOCK && defined S_IFREG
25487 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25491 rm -f conftest.$ac_objext
25492 if { (ac_try="$ac_compile"
25493 case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498 (eval "$ac_compile") 2>conftest.er1
25500 grep -v '^ *+' conftest.er1 >conftest.err
25502 cat conftest.err >&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } && {
25505 test -z "$ac_c_werror_flag" ||
25506 test ! -s conftest.err
25507 } && test -s conftest.$ac_objext; then
25508 ac_cv_header_stat_broken=no
25510 echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25513 ac_cv_header_stat_broken=yes
25516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25518 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25519 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25520 if test $ac_cv_header_stat_broken = yes; then
25522 cat >>confdefs.h <<\_ACEOF
25523 #define STAT_MACROS_BROKEN 1
25533 ac_header_dirent=no
25534 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25535 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25536 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25537 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25539 echo $ECHO_N "(cached) $ECHO_C" >&6
25541 cat >conftest.$ac_ext <<_ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25547 #include <sys/types.h>
25559 rm -f conftest.$ac_objext
25560 if { (ac_try="$ac_compile"
25561 case "(($ac_try" in
25562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25563 *) ac_try_echo=$ac_try;;
25565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25566 (eval "$ac_compile") 2>conftest.er1
25568 grep -v '^ *+' conftest.er1 >conftest.err
25570 cat conftest.err >&5
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } && {
25573 test -z "$ac_c_werror_flag" ||
25574 test ! -s conftest.err
25575 } && test -s conftest.$ac_objext; then
25576 eval "$as_ac_Header=yes"
25578 echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25581 eval "$as_ac_Header=no"
25584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25586 ac_res=`eval echo '${'$as_ac_Header'}'`
25587 { echo "$as_me:$LINENO: result: $ac_res" >&5
25588 echo "${ECHO_T}$ac_res" >&6; }
25589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25590 cat >>confdefs.h <<_ACEOF
25591 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25594 ac_header_dirent=$ac_hdr; break
25598 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25599 if test $ac_header_dirent = dirent.h; then
25600 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25601 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25602 if test "${ac_cv_search_opendir+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25605 ac_func_search_save_LIBS=$LIBS
25606 cat >conftest.$ac_ext <<_ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h. */
25613 /* Override any GCC internal prototype to avoid an error.
25614 Use char because int might match the return type of a GCC
25615 builtin and then its argument prototype would still apply. */
25628 for ac_lib in '' dir; do
25629 if test -z "$ac_lib"; then
25630 ac_res="none required"
25633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25635 rm -f conftest.$ac_objext conftest$ac_exeext
25636 if { (ac_try="$ac_link"
25637 case "(($ac_try" in
25638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639 *) ac_try_echo=$ac_try;;
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642 (eval "$ac_link") 2>conftest.er1
25644 grep -v '^ *+' conftest.er1 >conftest.err
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } && {
25649 test -z "$ac_c_werror_flag" ||
25650 test ! -s conftest.err
25651 } && test -s conftest$ac_exeext &&
25652 $as_test_x conftest$ac_exeext; then
25653 ac_cv_search_opendir=$ac_res
25655 echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25663 if test "${ac_cv_search_opendir+set}" = set; then
25667 if test "${ac_cv_search_opendir+set}" = set; then
25670 ac_cv_search_opendir=no
25672 rm conftest.$ac_ext
25673 LIBS=$ac_func_search_save_LIBS
25675 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25676 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25677 ac_res=$ac_cv_search_opendir
25678 if test "$ac_res" != no; then
25679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25684 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25685 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25686 if test "${ac_cv_search_opendir+set}" = set; then
25687 echo $ECHO_N "(cached) $ECHO_C" >&6
25689 ac_func_search_save_LIBS=$LIBS
25690 cat >conftest.$ac_ext <<_ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h. */
25697 /* Override any GCC internal prototype to avoid an error.
25698 Use char because int might match the return type of a GCC
25699 builtin and then its argument prototype would still apply. */
25712 for ac_lib in '' x; do
25713 if test -z "$ac_lib"; then
25714 ac_res="none required"
25717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25719 rm -f conftest.$ac_objext conftest$ac_exeext
25720 if { (ac_try="$ac_link"
25721 case "(($ac_try" in
25722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726 (eval "$ac_link") 2>conftest.er1
25728 grep -v '^ *+' conftest.er1 >conftest.err
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } && {
25733 test -z "$ac_c_werror_flag" ||
25734 test ! -s conftest.err
25735 } && test -s conftest$ac_exeext &&
25736 $as_test_x conftest$ac_exeext; then
25737 ac_cv_search_opendir=$ac_res
25739 echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25747 if test "${ac_cv_search_opendir+set}" = set; then
25751 if test "${ac_cv_search_opendir+set}" = set; then
25754 ac_cv_search_opendir=no
25756 rm conftest.$ac_ext
25757 LIBS=$ac_func_search_save_LIBS
25759 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25760 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25761 ac_res=$ac_cv_search_opendir
25762 if test "$ac_res" != no; then
25763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25776 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25782 echo $ECHO_N "(cached) $ECHO_C" >&6
25784 cat >conftest.$ac_ext <<_ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h. */
25790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25792 #define $ac_func innocuous_$ac_func
25794 /* System header to define __stub macros and hopefully few prototypes,
25795 which can conflict with char $ac_func (); below.
25796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25797 <limits.h> exists even on freestanding compilers. */
25800 # include <limits.h>
25802 # include <assert.h>
25807 /* Override any GCC internal prototype to avoid an error.
25808 Use char because int might match the return type of a GCC
25809 builtin and then its argument prototype would still apply. */
25814 /* The GNU C library defines this for functions which it implements
25815 to always fail with ENOSYS. Some functions are actually named
25816 something starting with __ and the normal name is an alias. */
25817 #if defined __stub_$ac_func || defined __stub___$ac_func
25824 return $ac_func ();
25829 rm -f conftest.$ac_objext conftest$ac_exeext
25830 if { (ac_try="$ac_link"
25831 case "(($ac_try" in
25832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833 *) ac_try_echo=$ac_try;;
25835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25836 (eval "$ac_link") 2>conftest.er1
25838 grep -v '^ *+' conftest.er1 >conftest.err
25840 cat conftest.err >&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } && {
25843 test -z "$ac_c_werror_flag" ||
25844 test ! -s conftest.err
25845 } && test -s conftest$ac_exeext &&
25846 $as_test_x conftest$ac_exeext; then
25847 eval "$as_ac_var=yes"
25849 echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25852 eval "$as_ac_var=no"
25855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25856 conftest$ac_exeext conftest.$ac_ext
25858 ac_res=`eval echo '${'$as_ac_var'}'`
25859 { echo "$as_me:$LINENO: result: $ac_res" >&5
25860 echo "${ECHO_T}$ac_res" >&6; }
25861 if test `eval echo '${'$as_ac_var'}'` = yes; then
25862 cat >>confdefs.h <<_ACEOF
25863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25871 for ac_func in nanosleep nl_langinfo
25873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25877 echo $ECHO_N "(cached) $ECHO_C" >&6
25879 cat >conftest.$ac_ext <<_ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25887 #define $ac_func innocuous_$ac_func
25889 /* System header to define __stub macros and hopefully few prototypes,
25890 which can conflict with char $ac_func (); below.
25891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25892 <limits.h> exists even on freestanding compilers. */
25895 # include <limits.h>
25897 # include <assert.h>
25902 /* Override any GCC internal prototype to avoid an error.
25903 Use char because int might match the return type of a GCC
25904 builtin and then its argument prototype would still apply. */
25909 /* The GNU C library defines this for functions which it implements
25910 to always fail with ENOSYS. Some functions are actually named
25911 something starting with __ and the normal name is an alias. */
25912 #if defined __stub_$ac_func || defined __stub___$ac_func
25919 return $ac_func ();
25924 rm -f conftest.$ac_objext conftest$ac_exeext
25925 if { (ac_try="$ac_link"
25926 case "(($ac_try" in
25927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928 *) ac_try_echo=$ac_try;;
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931 (eval "$ac_link") 2>conftest.er1
25933 grep -v '^ *+' conftest.er1 >conftest.err
25935 cat conftest.err >&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } && {
25938 test -z "$ac_c_werror_flag" ||
25939 test ! -s conftest.err
25940 } && test -s conftest$ac_exeext &&
25941 $as_test_x conftest$ac_exeext; then
25942 eval "$as_ac_var=yes"
25944 echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25947 eval "$as_ac_var=no"
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951 conftest$ac_exeext conftest.$ac_ext
25953 ac_res=`eval echo '${'$as_ac_var'}'`
25954 { echo "$as_me:$LINENO: result: $ac_res" >&5
25955 echo "${ECHO_T}$ac_res" >&6; }
25956 if test `eval echo '${'$as_ac_var'}'` = yes; then
25957 cat >>confdefs.h <<_ACEOF
25958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25965 for ac_header in varargs.h
25967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25972 echo $ECHO_N "(cached) $ECHO_C" >&6
25974 ac_res=`eval echo '${'$as_ac_Header'}'`
25975 { echo "$as_me:$LINENO: result: $ac_res" >&5
25976 echo "${ECHO_T}$ac_res" >&6; }
25978 # Is the header compilable?
25979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25981 cat >conftest.$ac_ext <<_ACEOF
25984 cat confdefs.h >>conftest.$ac_ext
25985 cat >>conftest.$ac_ext <<_ACEOF
25986 /* end confdefs.h. */
25987 $ac_includes_default
25988 #include <$ac_header>
25990 rm -f conftest.$ac_objext
25991 if { (ac_try="$ac_compile"
25992 case "(($ac_try" in
25993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25994 *) ac_try_echo=$ac_try;;
25996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25997 (eval "$ac_compile") 2>conftest.er1
25999 grep -v '^ *+' conftest.er1 >conftest.err
26001 cat conftest.err >&5
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); } && {
26004 test -z "$ac_c_werror_flag" ||
26005 test ! -s conftest.err
26006 } && test -s conftest.$ac_objext; then
26007 ac_header_compiler=yes
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26012 ac_header_compiler=no
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26017 echo "${ECHO_T}$ac_header_compiler" >&6; }
26019 # Is the header present?
26020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26022 cat >conftest.$ac_ext <<_ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h. */
26028 #include <$ac_header>
26030 if { (ac_try="$ac_cpp conftest.$ac_ext"
26031 case "(($ac_try" in
26032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26033 *) ac_try_echo=$ac_try;;
26035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26038 grep -v '^ *+' conftest.er1 >conftest.err
26040 cat conftest.err >&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } >/dev/null && {
26043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26044 test ! -s conftest.err
26046 ac_header_preproc=yes
26048 echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26051 ac_header_preproc=no
26054 rm -f conftest.err conftest.$ac_ext
26055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26056 echo "${ECHO_T}$ac_header_preproc" >&6; }
26058 # So? What about this header?
26059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26065 ac_header_preproc=yes
26068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26086 echo $ECHO_N "(cached) $ECHO_C" >&6
26088 eval "$as_ac_Header=\$ac_header_preproc"
26090 ac_res=`eval echo '${'$as_ac_Header'}'`
26091 { echo "$as_me:$LINENO: result: $ac_res" >&5
26092 echo "${ECHO_T}$ac_res" >&6; }
26095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26096 cat >>confdefs.h <<_ACEOF
26097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26106 { echo "$as_me:$LINENO: checking for Python support" >&5
26107 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26109 # Check whether --with-python was given.
26110 if test "${with_python+set}" = set; then
26111 withval=$with_python;
26114 if test "$withval" != "no"; then
26115 if test "$withval" = "yes"; then
26116 for python_root in /usr /usr/local /usr/sfw; do
26117 for ver in python2.2 python2.3 python2.4 python2.5; do
26118 if test -f $python_root/include/${ver}/Python.h; then
26119 PYTHON_INCDIR=-I$python_root/include/${ver}
26120 if test -d $python_root/lib64/${ver}/config; then
26121 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26123 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26130 if test x$PYTHON_INCDIR = x; then
26131 if test -f $prefix/include/Python.h; then
26132 PYTHON_INCDIR=-I$prefix/include
26133 if test -d $prefix/lib64/config; then
26134 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26136 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26139 { echo "$as_me:$LINENO: result: no" >&5
26140 echo "${ECHO_T}no" >&6; }
26141 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26142 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26143 { (exit 1); exit 1; }; }
26147 if test -f $withval/Python.h; then
26148 PYTHON_INCDIR=-I$withval
26149 PYTHON_LIBS="-L$withval/config -lpython"
26150 elif test -f $withval/include/Python.h; then
26151 PYTHON_INCDIR=-I$withval/include
26152 if test -d $withval/lib64/config; then
26153 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26155 PYTHON_LIBS="-L$withval/lib/config -lpython"
26157 elif test -f $withval/include/python/Python.h; then
26158 PYTHON_INCDIR=-I$withval/include/python
26159 if test -d $withval/lib64/python/config; then
26160 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26162 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26165 { echo "$as_me:$LINENO: result: no" >&5
26166 echo "${ECHO_T}no" >&6; }
26167 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26168 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26169 { (exit 1); exit 1; }; }
26173 cat >>confdefs.h <<\_ACEOF
26174 #define HAVE_PYTHON 1
26177 { echo "$as_me:$LINENO: result: yes" >&5
26178 echo "${ECHO_T}yes" >&6; }
26180 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26181 echo "$as_me: checking for more Python libs" >&6;}
26182 saved_LIBS="$LIBS"; LIBS=
26183 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26184 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26185 if test "${ac_cv_search_shm_open+set}" = set; then
26186 echo $ECHO_N "(cached) $ECHO_C" >&6
26188 ac_func_search_save_LIBS=$LIBS
26189 cat >conftest.$ac_ext <<_ACEOF
26192 cat confdefs.h >>conftest.$ac_ext
26193 cat >>conftest.$ac_ext <<_ACEOF
26194 /* end confdefs.h. */
26196 /* Override any GCC internal prototype to avoid an error.
26197 Use char because int might match the return type of a GCC
26198 builtin and then its argument prototype would still apply. */
26206 return shm_open ();
26211 for ac_lib in '' rt; do
26212 if test -z "$ac_lib"; then
26213 ac_res="none required"
26216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26218 rm -f conftest.$ac_objext conftest$ac_exeext
26219 if { (ac_try="$ac_link"
26220 case "(($ac_try" in
26221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26222 *) ac_try_echo=$ac_try;;
26224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26225 (eval "$ac_link") 2>conftest.er1
26227 grep -v '^ *+' conftest.er1 >conftest.err
26229 cat conftest.err >&5
26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231 (exit $ac_status); } && {
26232 test -z "$ac_c_werror_flag" ||
26233 test ! -s conftest.err
26234 } && test -s conftest$ac_exeext &&
26235 $as_test_x conftest$ac_exeext; then
26236 ac_cv_search_shm_open=$ac_res
26238 echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26246 if test "${ac_cv_search_shm_open+set}" = set; then
26250 if test "${ac_cv_search_shm_open+set}" = set; then
26253 ac_cv_search_shm_open=no
26255 rm conftest.$ac_ext
26256 LIBS=$ac_func_search_save_LIBS
26258 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26259 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26260 ac_res=$ac_cv_search_shm_open
26261 if test "$ac_res" != no; then
26262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26267 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26268 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26269 if test "${ac_cv_lib_util_openpty+set}" = set; then
26270 echo $ECHO_N "(cached) $ECHO_C" >&6
26272 ac_check_lib_save_LIBS=$LIBS
26273 LIBS="-lutil $LIBS"
26274 cat >conftest.$ac_ext <<_ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26281 /* Override any GCC internal prototype to avoid an error.
26282 Use char because int might match the return type of a GCC
26283 builtin and then its argument prototype would still apply. */
26296 rm -f conftest.$ac_objext conftest$ac_exeext
26297 if { (ac_try="$ac_link"
26298 case "(($ac_try" in
26299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300 *) ac_try_echo=$ac_try;;
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303 (eval "$ac_link") 2>conftest.er1
26305 grep -v '^ *+' conftest.er1 >conftest.err
26307 cat conftest.err >&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); } && {
26310 test -z "$ac_c_werror_flag" ||
26311 test ! -s conftest.err
26312 } && test -s conftest$ac_exeext &&
26313 $as_test_x conftest$ac_exeext; then
26314 ac_cv_lib_util_openpty=yes
26316 echo "$as_me: failed program was:" >&5
26317 sed 's/^/| /' conftest.$ac_ext >&5
26319 ac_cv_lib_util_openpty=no
26322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26323 conftest$ac_exeext conftest.$ac_ext
26324 LIBS=$ac_check_lib_save_LIBS
26326 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26327 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26328 if test $ac_cv_lib_util_openpty = yes; then
26329 cat >>confdefs.h <<_ACEOF
26330 #define HAVE_LIBUTIL 1
26333 LIBS="-lutil $LIBS"
26337 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26340 { echo "$as_me:$LINENO: result: no" >&5
26341 echo "${ECHO_T}no" >&6; }
26346 { echo "$as_me:$LINENO: result: no" >&5
26347 echo "${ECHO_T}no" >&6; }
26355 { echo "$as_me:$LINENO: checking for socket" >&5
26356 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26357 if test "${ac_cv_func_socket+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 cat >conftest.$ac_ext <<_ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h. */
26366 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26368 #define socket innocuous_socket
26370 /* System header to define __stub macros and hopefully few prototypes,
26371 which can conflict with char socket (); below.
26372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26373 <limits.h> exists even on freestanding compilers. */
26376 # include <limits.h>
26378 # include <assert.h>
26383 /* Override any GCC internal prototype to avoid an error.
26384 Use char because int might match the return type of a GCC
26385 builtin and then its argument prototype would still apply. */
26390 /* The GNU C library defines this for functions which it implements
26391 to always fail with ENOSYS. Some functions are actually named
26392 something starting with __ and the normal name is an alias. */
26393 #if defined __stub_socket || defined __stub___socket
26405 rm -f conftest.$ac_objext conftest$ac_exeext
26406 if { (ac_try="$ac_link"
26407 case "(($ac_try" in
26408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409 *) ac_try_echo=$ac_try;;
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412 (eval "$ac_link") 2>conftest.er1
26414 grep -v '^ *+' conftest.er1 >conftest.err
26416 cat conftest.err >&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } && {
26419 test -z "$ac_c_werror_flag" ||
26420 test ! -s conftest.err
26421 } && test -s conftest$ac_exeext &&
26422 $as_test_x conftest$ac_exeext; then
26423 ac_cv_func_socket=yes
26425 echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26428 ac_cv_func_socket=no
26431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26432 conftest$ac_exeext conftest.$ac_ext
26434 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26435 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26436 if test $ac_cv_func_socket = yes; then
26437 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26438 echo "${ECHO_T}using libc's socket" >&6; }
26441 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26442 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26443 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26444 echo $ECHO_N "(cached) $ECHO_C" >&6
26446 ac_check_lib_save_LIBS=$LIBS
26447 LIBS="-lxnet $LIBS"
26448 cat >conftest.$ac_ext <<_ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26455 /* Override any GCC internal prototype to avoid an error.
26456 Use char because int might match the return type of a GCC
26457 builtin and then its argument prototype would still apply. */
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (ac_try="$ac_link"
26472 case "(($ac_try" in
26473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474 *) ac_try_echo=$ac_try;;
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477 (eval "$ac_link") 2>conftest.er1
26479 grep -v '^ *+' conftest.er1 >conftest.err
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } && {
26484 test -z "$ac_c_werror_flag" ||
26485 test ! -s conftest.err
26486 } && test -s conftest$ac_exeext &&
26487 $as_test_x conftest$ac_exeext; then
26488 ac_cv_lib_xnet_socket=yes
26490 echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26493 ac_cv_lib_xnet_socket=no
26496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26497 conftest$ac_exeext conftest.$ac_ext
26498 LIBS=$ac_check_lib_save_LIBS
26500 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26501 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26502 if test $ac_cv_lib_xnet_socket = yes; then
26503 cat >>confdefs.h <<_ACEOF
26504 #define HAVE_LIBXNET 1
26507 LIBS="-lxnet $LIBS"
26512 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26513 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26514 if test "${ac_cv_lib_socket_socket+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26517 ac_check_lib_save_LIBS=$LIBS
26518 LIBS="-lsocket $LIBS"
26519 cat >conftest.$ac_ext <<_ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26526 /* Override any GCC internal prototype to avoid an error.
26527 Use char because int might match the return type of a GCC
26528 builtin and then its argument prototype would still apply. */
26541 rm -f conftest.$ac_objext conftest$ac_exeext
26542 if { (ac_try="$ac_link"
26543 case "(($ac_try" in
26544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545 *) ac_try_echo=$ac_try;;
26547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548 (eval "$ac_link") 2>conftest.er1
26550 grep -v '^ *+' conftest.er1 >conftest.err
26552 cat conftest.err >&5
26553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); } && {
26555 test -z "$ac_c_werror_flag" ||
26556 test ! -s conftest.err
26557 } && test -s conftest$ac_exeext &&
26558 $as_test_x conftest$ac_exeext; then
26559 ac_cv_lib_socket_socket=yes
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ac_cv_lib_socket_socket=no
26567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26568 conftest$ac_exeext conftest.$ac_ext
26569 LIBS=$ac_check_lib_save_LIBS
26571 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26572 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26573 if test $ac_cv_lib_socket_socket = yes; then
26574 cat >>confdefs.h <<_ACEOF
26575 #define HAVE_LIBSOCKET 1
26578 LIBS="-lsocket $LIBS"
26583 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26584 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26585 if test "${ac_cv_lib_inet_socket+set}" = set; then
26586 echo $ECHO_N "(cached) $ECHO_C" >&6
26588 ac_check_lib_save_LIBS=$LIBS
26589 LIBS="-linet $LIBS"
26590 cat >conftest.$ac_ext <<_ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26597 /* Override any GCC internal prototype to avoid an error.
26598 Use char because int might match the return type of a GCC
26599 builtin and then its argument prototype would still apply. */
26612 rm -f conftest.$ac_objext conftest$ac_exeext
26613 if { (ac_try="$ac_link"
26614 case "(($ac_try" in
26615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26616 *) ac_try_echo=$ac_try;;
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619 (eval "$ac_link") 2>conftest.er1
26621 grep -v '^ *+' conftest.er1 >conftest.err
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } && {
26626 test -z "$ac_c_werror_flag" ||
26627 test ! -s conftest.err
26628 } && test -s conftest$ac_exeext &&
26629 $as_test_x conftest$ac_exeext; then
26630 ac_cv_lib_inet_socket=yes
26632 echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26635 ac_cv_lib_inet_socket=no
26638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26639 conftest$ac_exeext conftest.$ac_ext
26640 LIBS=$ac_check_lib_save_LIBS
26642 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26643 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26644 if test $ac_cv_lib_inet_socket = yes; then
26645 cat >>confdefs.h <<_ACEOF
26646 #define HAVE_LIBINET 1
26649 LIBS="-linet $LIBS"
26659 # Check whether --with-tcp-wrappers was given.
26660 if test "${with_tcp_wrappers+set}" = set; then
26661 withval=$with_tcp_wrappers;
26662 if test "x$withval" != "xno" ; then
26664 LIBS="$saved_LIBS -lwrap"
26665 { echo "$as_me:$LINENO: checking for libwrap" >&5
26666 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26667 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26668 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26669 if test "${ac_cv_search_nanosleep+set}" = set; then
26670 echo $ECHO_N "(cached) $ECHO_C" >&6
26672 ac_func_search_save_LIBS=$LIBS
26673 cat >conftest.$ac_ext <<_ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26680 /* Override any GCC internal prototype to avoid an error.
26681 Use char because int might match the return type of a GCC
26682 builtin and then its argument prototype would still apply. */
26690 return nanosleep ();
26695 for ac_lib in '' rt; do
26696 if test -z "$ac_lib"; then
26697 ac_res="none required"
26700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26702 rm -f conftest.$ac_objext conftest$ac_exeext
26703 if { (ac_try="$ac_link"
26704 case "(($ac_try" in
26705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706 *) ac_try_echo=$ac_try;;
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709 (eval "$ac_link") 2>conftest.er1
26711 grep -v '^ *+' conftest.er1 >conftest.err
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } && {
26716 test -z "$ac_c_werror_flag" ||
26717 test ! -s conftest.err
26718 } && test -s conftest$ac_exeext &&
26719 $as_test_x conftest$ac_exeext; then
26720 ac_cv_search_nanosleep=$ac_res
26722 echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26730 if test "${ac_cv_search_nanosleep+set}" = set; then
26734 if test "${ac_cv_search_nanosleep+set}" = set; then
26737 ac_cv_search_nanosleep=no
26739 rm conftest.$ac_ext
26740 LIBS=$ac_func_search_save_LIBS
26742 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26743 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26744 ac_res=$ac_cv_search_nanosleep
26745 if test "$ac_res" != no; then
26746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26750 cat >conftest.$ac_ext <<_ACEOF
26753 cat confdefs.h >>conftest.$ac_ext
26754 cat >>conftest.$ac_ext <<_ACEOF
26755 /* end confdefs.h. */
26757 #include <sys/types.h>
26759 int deny_severity = 0;
26760 int allow_severity = 0;
26761 struct request_info *req;
26773 rm -f conftest.$ac_objext conftest$ac_exeext
26774 if { (ac_try="$ac_link"
26775 case "(($ac_try" in
26776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777 *) ac_try_echo=$ac_try;;
26779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780 (eval "$ac_link") 2>conftest.er1
26782 grep -v '^ *+' conftest.er1 >conftest.err
26784 cat conftest.err >&5
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); } && {
26787 test -z "$ac_c_werror_flag" ||
26788 test ! -s conftest.err
26789 } && test -s conftest$ac_exeext &&
26790 $as_test_x conftest$ac_exeext; then
26792 { echo "$as_me:$LINENO: result: yes" >&5
26793 echo "${ECHO_T}yes" >&6; }
26795 cat >>confdefs.h <<\_ACEOF
26796 #define HAVE_LIBWRAP 1
26804 echo "$as_me: failed program was:" >&5
26805 sed 's/^/| /' conftest.$ac_ext >&5
26808 LIBS="$saved_LIBS -lwrap -lnsl"
26809 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26810 cat >conftest.$ac_ext <<_ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26817 #include <sys/types.h>
26819 int deny_severity = 0;
26820 int allow_severity = 0;
26821 struct request_info *req;
26833 rm -f conftest.$ac_objext conftest$ac_exeext
26834 if { (ac_try="$ac_link"
26835 case "(($ac_try" in
26836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837 *) ac_try_echo=$ac_try;;
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840 (eval "$ac_link") 2>conftest.er1
26842 grep -v '^ *+' conftest.er1 >conftest.err
26844 cat conftest.err >&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } && {
26847 test -z "$ac_c_werror_flag" ||
26848 test ! -s conftest.err
26849 } && test -s conftest$ac_exeext &&
26850 $as_test_x conftest$ac_exeext; then
26852 { echo "$as_me:$LINENO: result: yes" >&5
26853 echo "${ECHO_T}yes" >&6; }
26855 cat >>confdefs.h <<\_ACEOF
26856 #define HAVE_LIBWRAP 1
26864 echo "$as_me: failed program was:" >&5
26865 sed 's/^/| /' conftest.$ac_ext >&5
26868 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26869 echo "$as_me: error: *** libwrap missing" >&2;}
26870 { (exit 1); exit 1; }; }
26875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26876 conftest$ac_exeext conftest.$ac_ext
26881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26882 conftest$ac_exeext conftest.$ac_ext
26889 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26890 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26892 # Check whether --with-openssl was given.
26893 if test "${with_openssl+set}" = set; then
26894 withval=$with_openssl;
26895 with_openssl_directory=${withval}
26901 if test "x$with_openssl_directory" != "xno"; then
26902 OPENSSL_LIBS="-lssl -lcrypto"
26905 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26907 # Make sure the $with_openssl_directory also makes sense
26909 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26910 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26911 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26915 saved_LIBS="${LIBS}"
26916 saved_CFLAGS="${CFLAGS}"
26917 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26918 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26920 cat >conftest.$ac_ext <<_ACEOF
26923 cat confdefs.h >>conftest.$ac_ext
26924 cat >>conftest.$ac_ext <<_ACEOF
26925 /* end confdefs.h. */
26927 #include <openssl/ssl.h>
26933 CRYPTO_set_id_callback(NULL);
26939 rm -f conftest.$ac_objext conftest$ac_exeext
26940 if { (ac_try="$ac_link"
26941 case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_link") 2>conftest.er1
26948 grep -v '^ *+' conftest.er1 >conftest.err
26950 cat conftest.err >&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); } && {
26953 test -z "$ac_c_werror_flag" ||
26954 test ! -s conftest.err
26955 } && test -s conftest$ac_exeext &&
26956 $as_test_x conftest$ac_exeext; then
26959 support_crypto="yes"
26962 echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26972 conftest$ac_exeext conftest.$ac_ext
26974 cat >conftest.$ac_ext <<_ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h. */
26981 #include <openssl/evp.h>
26993 rm -f conftest.$ac_objext conftest$ac_exeext
26994 if { (ac_try="$ac_link"
26995 case "(($ac_try" in
26996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997 *) ac_try_echo=$ac_try;;
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000 (eval "$ac_link") 2>conftest.er1
27002 grep -v '^ *+' conftest.er1 >conftest.err
27004 cat conftest.err >&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } && {
27007 test -z "$ac_c_werror_flag" ||
27008 test ! -s conftest.err
27009 } && test -s conftest$ac_exeext &&
27010 $as_test_x conftest$ac_exeext; then
27012 ac_cv_openssl_sha2="yes"
27015 echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27019 ac_cv_openssl_sha2="no"
27024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27025 conftest$ac_exeext conftest.$ac_ext
27027 cat >conftest.$ac_ext <<_ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27034 #include <openssl/evp.h>
27046 rm -f conftest.$ac_objext conftest$ac_exeext
27047 if { (ac_try="$ac_link"
27048 case "(($ac_try" in
27049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050 *) ac_try_echo=$ac_try;;
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053 (eval "$ac_link") 2>conftest.er1
27055 grep -v '^ *+' conftest.er1 >conftest.err
27057 cat conftest.err >&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); } && {
27060 test -z "$ac_c_werror_flag" ||
27061 test ! -s conftest.err
27062 } && test -s conftest$ac_exeext &&
27063 $as_test_x conftest$ac_exeext; then
27065 ac_cv_openssl_export="no"
27068 echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27072 ac_cv_openssl_export="yes"
27077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27078 conftest$ac_exeext conftest.$ac_ext
27080 LIBS="${saved_LIBS}"
27081 CFLAGS="${saved_CFLAGS}"
27083 if test "$support_tls" = "yes"; then
27085 cat >>confdefs.h <<\_ACEOF
27086 #define HAVE_OPENSSL 1
27090 cat >>confdefs.h <<\_ACEOF
27095 cat >>confdefs.h <<\_ACEOF
27096 #define HAVE_CRYPTO 1
27101 if test "$ac_cv_openssl_sha2" = "yes"; then
27103 cat >>confdefs.h <<\_ACEOF
27104 #define HAVE_SHA2 1
27109 if test "$ac_cv_openssl_export" = "yes"; then
27111 cat >>confdefs.h <<\_ACEOF
27112 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27118 support_crypto="no"
27123 { echo "$as_me:$LINENO: result: $support_tls" >&5
27124 echo "${ECHO_T}$support_tls" >&6; }
27128 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27129 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27130 if test "${ac_cv_search_dlopen+set}" = set; then
27131 echo $ECHO_N "(cached) $ECHO_C" >&6
27133 ac_func_search_save_LIBS=$LIBS
27134 cat >conftest.$ac_ext <<_ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h. */
27141 /* Override any GCC internal prototype to avoid an error.
27142 Use char because int might match the return type of a GCC
27143 builtin and then its argument prototype would still apply. */
27156 for ac_lib in '' dl; do
27157 if test -z "$ac_lib"; then
27158 ac_res="none required"
27161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27163 rm -f conftest.$ac_objext conftest$ac_exeext
27164 if { (ac_try="$ac_link"
27165 case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27170 (eval "$ac_link") 2>conftest.er1
27172 grep -v '^ *+' conftest.er1 >conftest.err
27174 cat conftest.err >&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } && {
27177 test -z "$ac_c_werror_flag" ||
27178 test ! -s conftest.err
27179 } && test -s conftest$ac_exeext &&
27180 $as_test_x conftest$ac_exeext; then
27181 ac_cv_search_dlopen=$ac_res
27183 echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27191 if test "${ac_cv_search_dlopen+set}" = set; then
27195 if test "${ac_cv_search_dlopen+set}" = set; then
27198 ac_cv_search_dlopen=no
27200 rm conftest.$ac_ext
27201 LIBS=$ac_func_search_save_LIBS
27203 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27204 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27205 ac_res=$ac_cv_search_dlopen
27206 if test "$ac_res" != no; then
27207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27212 working_dir=`eval echo ${prefix}/var/bacula/working`
27214 # Check whether --with-working-dir was given.
27215 if test "${with_working_dir+set}" = set; then
27216 withval=$with_working_dir;
27217 if test "x$withval" != "xno" ; then
27218 working_dir=$withval
27229 # Check whether --with-archivedir was given.
27230 if test "${with_archivedir+set}" = set; then
27231 withval=$with_archivedir;
27232 if test "x$withval" != "xno" ; then
27233 archivedir=$withval
27242 scriptdir=`eval echo ${sysconfdir}`
27244 # Check whether --with-scriptdir was given.
27245 if test "${with_scriptdir+set}" = set; then
27246 withval=$with_scriptdir;
27247 if test "x$withval" != "xno" ; then
27257 # ------------------------------------------
27258 # Where to place plugindir (script files)
27259 # ------------------------------------------
27260 plugindir=`eval echo ${sysconfdir}`
27262 # Check whether --with-plugindir was given.
27263 if test "${with_plugindir+set}" = set; then
27264 withval=$with_plugindir;
27265 if test "x$withval" != "xno" ; then
27275 dump_email=root@localhost
27277 # Check whether --with-dump-email was given.
27278 if test "${with_dump_email+set}" = set; then
27279 withval=$with_dump_email;
27280 if test "x$withval" != "xno" ; then
27281 dump_email=$withval
27290 job_email=root@localhost
27292 # Check whether --with-job-email was given.
27293 if test "${with_job_email+set}" = set; then
27294 withval=$with_job_email;
27295 if test "x$withval" != "xno" ; then
27305 smtp_host=localhost
27307 # Check whether --with-smtp_host was given.
27308 if test "${with_smtp_host+set}" = set; then
27309 withval=$with_smtp_host;
27310 if test "x$withval" != "xno" ; then
27322 # Check whether --with-pid-dir was given.
27323 if test "${with_pid_dir+set}" = set; then
27324 withval=$with_pid_dir;
27325 if test "x$withval" != "xno" ; then
27333 cat >>confdefs.h <<_ACEOF
27334 #define _PATH_BACULA_PIDDIR "$piddir"
27339 subsysdir=/var/run/subsys
27340 if test -d /var/run/subsys; then
27341 subsysdir=/var/run/subsys
27342 elif test -d /var/lock/subsys; then
27343 subsysdir=/var/lock/subsys
27345 subsysdir=/var/run/subsys
27348 # Check whether --with-subsys-dir was given.
27349 if test "${with_subsys_dir+set}" = set; then
27350 withval=$with_subsys_dir;
27351 if test "x$withval" != "xno" ; then
27363 # Check whether --with-baseport was given.
27364 if test "${with_baseport+set}" = set; then
27365 withval=$with_baseport;
27366 if test "x$withval" != "xno" ; then
27375 dir_port=`expr $baseport`
27376 fd_port=`expr $baseport + 1`
27377 sd_port=`expr $fd_port + 1`
27385 # Check whether --with-dir-password was given.
27386 if test "${with_dir_password+set}" = set; then
27387 withval=$with_dir_password;
27388 if test "x$withval" != "xno" ; then
27389 dir_password=$withval
27396 if test "x$dir_password" = "x" ; then
27397 if test "x$OPENSSL" = "xnone" ; then
27398 key=`autoconf/randpass 33`
27400 key=`openssl rand -base64 33`
27407 # Check whether --with-fd-password was given.
27408 if test "${with_fd_password+set}" = set; then
27409 withval=$with_fd_password;
27410 if test "x$withval" != "xno" ; then
27411 fd_password=$withval
27418 if test "x$fd_password" = "x" ; then
27419 if test "x$OPENSSL" = "xnone" ; then
27420 key=`autoconf/randpass 37`
27422 key=`openssl rand -base64 33`
27429 # Check whether --with-sd-password was given.
27430 if test "${with_sd_password+set}" = set; then
27431 withval=$with_sd_password;
27432 if test "x$withval" != "xno" ; then
27433 sd_password=$withval
27440 if test "x$sd_password" = "x" ; then
27441 if test "x$OPENSSL" = "xnone" ; then
27442 key=`autoconf/randpass 41`
27444 key=`openssl rand -base64 33`
27451 # Check whether --with-mon-dir-password was given.
27452 if test "${with_mon_dir_password+set}" = set; then
27453 withval=$with_mon_dir_password;
27454 if test "x$withval" != "xno" ; then
27455 mon_dir_password=$withval
27462 if test "x$mon_dir_password" = "x" ; then
27463 if test "x$OPENSSL" = "xnone" ; then
27464 key=`autoconf/randpass 33`
27466 key=`openssl rand -base64 33`
27468 mon_dir_password=$key
27473 # Check whether --with-mon-fd-password was given.
27474 if test "${with_mon_fd_password+set}" = set; then
27475 withval=$with_mon_fd_password;
27476 if test "x$withval" != "xno" ; then
27477 mon_fd_password=$withval
27484 if test "x$mon_fd_password" = "x" ; then
27485 if test "x$OPENSSL" = "xnone" ; then
27486 key=`autoconf/randpass 37`
27488 key=`openssl rand -base64 33`
27490 mon_fd_password=$key
27495 # Check whether --with-mon-sd-password was given.
27496 if test "${with_mon_sd_password+set}" = set; then
27497 withval=$with_mon_sd_password;
27498 if test "x$withval" != "xno" ; then
27499 mon_sd_password=$withval
27506 if test "x$mon_sd_password" = "x" ; then
27507 if test "x$OPENSSL" = "xnone" ; then
27508 key=`autoconf/randpass 41`
27510 key=`openssl rand -base64 33`
27512 mon_sd_password=$key
27524 # Check whether --with-db_name was given.
27525 if test "${with_db_name+set}" = set; then
27526 withval=$with_db_name;
27527 if test "x$withval" != "x" ; then
27538 # Check whether --with-db_user was given.
27539 if test "${with_db_user+set}" = set; then
27540 withval=$with_db_user;
27541 if test "x$withval" != "x" ; then
27552 # Check whether --with-db_password was given.
27553 if test "${with_db_password+set}" = set; then
27554 withval=$with_db_password;
27555 if test "x$withval" != "x" ; then
27556 db_password=$withval
27566 # Check whether --with-db_port was given.
27567 if test "${with_db_port+set}" = set; then
27568 withval=$with_db_port;
27569 if test "x$withval" != "x" ; then
27579 # Handle users and groups for each daemon
27583 # Check whether --with-dir_user was given.
27584 if test "${with_dir_user+set}" = set; then
27585 withval=$with_dir_user;
27586 if test "x$withval" != "x" ; then
27596 # Check whether --with-dir_group was given.
27597 if test "${with_dir_group+set}" = set; then
27598 withval=$with_dir_group;
27599 if test "x$withval" != "x" ; then
27609 # Check whether --with-sd_user was given.
27610 if test "${with_sd_user+set}" = set; then
27611 withval=$with_sd_user;
27612 if test "x$withval" != "x" ; then
27622 # Check whether --with-sd_group was given.
27623 if test "${with_sd_group+set}" = set; then
27624 withval=$with_sd_group;
27625 if test "x$withval" != "x" ; then
27635 # Check whether --with-fd_user was given.
27636 if test "${with_fd_user+set}" = set; then
27637 withval=$with_fd_user;
27638 if test "x$withval" != "x" ; then
27648 # Check whether --with-fd_group was given.
27649 if test "${with_fd_group+set}" = set; then
27650 withval=$with_fd_group;
27651 if test "x$withval" != "x" ; then
27668 # Check whether --with-sbin-perm was given.
27669 if test "${with_sbin_perm+set}" = set; then
27670 withval=$with_sbin_perm;
27671 if test "x$withval" != "x" ; then
27684 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27685 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27687 # Check whether --with-postgresql was given.
27688 if test "${with_postgresql+set}" = set; then
27689 withval=$with_postgresql;
27690 if test "$withval" != "no"; then
27691 if test "$db_found" = "yes"; then
27692 { echo "$as_me:$LINENO: result: error" >&5
27693 echo "${ECHO_T}error" >&6; }
27694 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27695 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27696 { (exit 1); exit 1; }; };
27698 if test "$withval" = "yes"; then
27699 PG_CONFIG=`which pg_config`
27700 if test -n "$PG_CONFIG";then
27701 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27702 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27703 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27704 elif test -f /usr/local/include/libpq-fe.h; then
27705 POSTGRESQL_INCDIR=/usr/local/include
27706 if test -d /usr/local/lib64; then
27707 POSTGRESQL_LIBDIR=/usr/local/lib64
27709 POSTGRESQL_LIBDIR=/usr/local/lib
27711 POSTGRESQL_BINDIR=/usr/local/bin
27712 elif test -f /usr/include/libpq-fe.h; then
27713 POSTGRESQL_INCDIR=/usr/include
27714 if test -d /usr/lib64; then
27715 POSTGRESQL_LIBDIR=/usr/lib64
27717 POSTGRESQL_LIBDIR=/usr/lib
27719 POSTGRESQL_BINDIR=/usr/bin
27720 elif test -f /usr/include/pgsql/libpq-fe.h; then
27721 POSTGRESQL_INCDIR=/usr/include/pgsql
27722 if test -d /usr/lib64/pgsql; then
27723 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27725 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27727 POSTGRESQL_BINDIR=/usr/bin
27728 elif test -f /usr/include/postgresql/libpq-fe.h; then
27729 POSTGRESQL_INCDIR=/usr/include/postgresql
27730 if test -d /usr/lib64/postgresql; then
27731 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27733 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27735 POSTGRESQL_BINDIR=/usr/bin
27737 { echo "$as_me:$LINENO: result: no" >&5
27738 echo "${ECHO_T}no" >&6; }
27739 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27740 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27741 { (exit 1); exit 1; }; }
27743 elif test -f $withval/include/libpq-fe.h; then
27744 POSTGRESQL_INCDIR=$withval/include
27745 POSTGRESQL_LIBDIR=$withval/lib
27746 POSTGRESQL_BINDIR=$withval/bin
27747 elif test -f $withval/include/postgresql/libpq-fe.h; then
27748 POSTGRESQL_INCDIR=$withval/include/postgresql
27749 if test -d $withval/lib64; then
27750 POSTGRESQL_LIBDIR=$withval/lib64
27752 POSTGRESQL_LIBDIR=$withval/lib
27754 POSTGRESQL_BINDIR=$withval/bin
27756 { echo "$as_me:$LINENO: result: no" >&5
27757 echo "${ECHO_T}no" >&6; }
27758 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27759 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27760 { (exit 1); exit 1; }; }
27762 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27763 { echo "$as_me:$LINENO: checking for crypt" >&5
27764 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27765 if test "${ac_cv_func_crypt+set}" = set; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27768 cat >conftest.$ac_ext <<_ACEOF
27771 cat confdefs.h >>conftest.$ac_ext
27772 cat >>conftest.$ac_ext <<_ACEOF
27773 /* end confdefs.h. */
27774 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27776 #define crypt innocuous_crypt
27778 /* System header to define __stub macros and hopefully few prototypes,
27779 which can conflict with char crypt (); below.
27780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27781 <limits.h> exists even on freestanding compilers. */
27784 # include <limits.h>
27786 # include <assert.h>
27791 /* Override any GCC internal prototype to avoid an error.
27792 Use char because int might match the return type of a GCC
27793 builtin and then its argument prototype would still apply. */
27798 /* The GNU C library defines this for functions which it implements
27799 to always fail with ENOSYS. Some functions are actually named
27800 something starting with __ and the normal name is an alias. */
27801 #if defined __stub_crypt || defined __stub___crypt
27813 rm -f conftest.$ac_objext conftest$ac_exeext
27814 if { (ac_try="$ac_link"
27815 case "(($ac_try" in
27816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27817 *) ac_try_echo=$ac_try;;
27819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27820 (eval "$ac_link") 2>conftest.er1
27822 grep -v '^ *+' conftest.er1 >conftest.err
27824 cat conftest.err >&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); } && {
27827 test -z "$ac_c_werror_flag" ||
27828 test ! -s conftest.err
27829 } && test -s conftest$ac_exeext &&
27830 $as_test_x conftest$ac_exeext; then
27831 ac_cv_func_crypt=yes
27833 echo "$as_me: failed program was:" >&5
27834 sed 's/^/| /' conftest.$ac_ext >&5
27836 ac_cv_func_crypt=no
27839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27840 conftest$ac_exeext conftest.$ac_ext
27842 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27843 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27844 if test $ac_cv_func_crypt = yes; then
27847 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27848 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27849 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27852 ac_check_lib_save_LIBS=$LIBS
27853 LIBS="-lcrypt $LIBS"
27854 cat >conftest.$ac_ext <<_ACEOF
27857 cat confdefs.h >>conftest.$ac_ext
27858 cat >>conftest.$ac_ext <<_ACEOF
27859 /* end confdefs.h. */
27861 /* Override any GCC internal prototype to avoid an error.
27862 Use char because int might match the return type of a GCC
27863 builtin and then its argument prototype would still apply. */
27876 rm -f conftest.$ac_objext conftest$ac_exeext
27877 if { (ac_try="$ac_link"
27878 case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_link") 2>conftest.er1
27885 grep -v '^ *+' conftest.er1 >conftest.err
27887 cat conftest.err >&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); } && {
27890 test -z "$ac_c_werror_flag" ||
27891 test ! -s conftest.err
27892 } && test -s conftest$ac_exeext &&
27893 $as_test_x conftest$ac_exeext; then
27894 ac_cv_lib_crypt_crypt=yes
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27899 ac_cv_lib_crypt_crypt=no
27902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27903 conftest$ac_exeext conftest.$ac_ext
27904 LIBS=$ac_check_lib_save_LIBS
27906 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27907 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27908 if test $ac_cv_lib_crypt_crypt = yes; then
27909 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27914 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27915 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27916 SQL_BINDIR=$POSTGRESQL_BINDIR
27917 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27919 cat >>confdefs.h <<\_ACEOF
27920 #define HAVE_POSTGRESQL 1
27923 { echo "$as_me:$LINENO: result: yes" >&5
27924 echo "${ECHO_T}yes" >&6; }
27926 support_postgresql=yes
27930 { echo "$as_me:$LINENO: result: no" >&5
27931 echo "${ECHO_T}no" >&6; }
27936 { echo "$as_me:$LINENO: result: no" >&5
27937 echo "${ECHO_T}no" >&6; }
27949 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27950 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27952 # Check whether --with-mysql was given.
27953 if test "${with_mysql+set}" = set; then
27954 withval=$with_mysql;
27955 if test "$withval" != "no"; then
27956 if test "$withval" = "yes"; then
27957 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27958 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27959 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27960 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27961 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27963 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27965 MYSQL_BINDIR=/usr/local/mysql/bin
27966 elif test -f /usr/include/mysql/mysql.h; then
27967 MYSQL_INCDIR=/usr/include/mysql
27968 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27969 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27970 MYSQL_LIBDIR=/usr/lib64/mysql
27971 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27972 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27973 MYSQL_LIBDIR=/usr/lib/mysql
27975 MYSQL_LIBDIR=/usr/lib
27977 MYSQL_BINDIR=/usr/bin
27978 elif test -f /usr/include/mysql.h; then
27979 MYSQL_INCDIR=/usr/include
27980 if test -f /usr/lib64/libmysqlclient_r.a \
27981 -o -f /usr/lib64/libmysqlclient_r.so; then
27982 MYSQL_LIBDIR=/usr/lib64
27984 MYSQL_LIBDIR=/usr/lib
27986 MYSQL_BINDIR=/usr/bin
27987 elif test -f /usr/local/include/mysql/mysql.h; then
27988 MYSQL_INCDIR=/usr/local/include/mysql
27989 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27990 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27991 MYSQL_LIBDIR=/usr/local/lib64/mysql
27993 MYSQL_LIBDIR=/usr/local/lib/mysql
27995 MYSQL_BINDIR=/usr/local/bin
27996 elif test -f /usr/local/include/mysql.h; then
27997 MYSQL_INCDIR=/usr/local/include
27998 if test -f /usr/local/lib64/libmysqlclient_r.a \
27999 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28000 MYSQL_LIBDIR=/usr/local/lib64
28002 MYSQL_LIBDIR=/usr/local/lib
28004 MYSQL_BINDIR=/usr/local/bin
28006 { echo "$as_me:$LINENO: result: no" >&5
28007 echo "${ECHO_T}no" >&6; }
28008 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28009 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28010 { (exit 1); exit 1; }; }
28013 if test -f $withval/include/mysql/mysql.h; then
28014 MYSQL_INCDIR=$withval/include/mysql
28015 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28016 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28017 MYSQL_LIBDIR=$withval/lib64/mysql
28019 MYSQL_LIBDIR=$withval/lib/mysql
28021 if test -f $withval/lib/libmysqlclient_r.so; then
28022 MYSQL_LIBDIR=$withval/lib
28025 MYSQL_BINDIR=$withval/bin
28026 elif test -f $withval/include/mysql.h; then
28027 MYSQL_INCDIR=$withval/include
28028 if test -f $withval/lib64/libmysqlclient_r.a \
28029 -o -f $withval/lib64/libmysqlclient_r.so; then
28030 MYSQL_LIBDIR=$withval/lib64
28032 MYSQL_LIBDIR=$withval/lib
28034 MYSQL_BINDIR=$withval/bin
28036 { echo "$as_me:$LINENO: result: no" >&5
28037 echo "${ECHO_T}no" >&6; }
28038 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28039 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28040 { (exit 1); exit 1; }; }
28043 SQL_INCLUDE=-I$MYSQL_INCDIR
28044 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28045 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28046 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28047 cat >>confdefs.h <<\_ACEOF
28048 #define HAVE_THREAD_SAFE_MYSQL 1
28052 SQL_BINDIR=$MYSQL_BINDIR
28053 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28055 cat >>confdefs.h <<\_ACEOF
28056 #define HAVE_MYSQL 1
28059 { echo "$as_me:$LINENO: result: yes" >&5
28060 echo "${ECHO_T}yes" >&6; }
28067 { echo "$as_me:$LINENO: result: no" >&5
28068 echo "${ECHO_T}no" >&6; }
28076 # Check whether --with-embedded-mysql was given.
28077 if test "${with_embedded_mysql+set}" = set; then
28078 withval=$with_embedded_mysql;
28079 if test "$withval" != "no"; then
28080 if test "$withval" = "yes"; then
28081 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28082 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28083 if test -d /usr/local/mysql/lib64/mysql; then
28084 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28086 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28088 MYSQL_BINDIR=/usr/local/mysql/bin
28089 elif test -f /usr/include/mysql/mysql.h; then
28090 MYSQL_INCDIR=/usr/include/mysql
28091 if test -d /usr/lib64/mysql; then
28092 MYSQL_LIBDIR=/usr/lib64/mysql
28094 MYSQL_LIBDIR=/usr/lib/mysql
28096 MYSQL_BINDIR=/usr/bin
28097 elif test -f /usr/include/mysql.h; then
28098 MYSQL_INCDIR=/usr/include
28099 if test -d /usr/lib64; then
28100 MYSQL_LIBDIR=/usr/lib64
28102 MYSQL_LIBDIR=/usr/lib
28104 MYSQL_BINDIR=/usr/bin
28105 elif test -f /usr/local/include/mysql/mysql.h; then
28106 MYSQL_INCDIR=/usr/local/include/mysql
28107 if test -d /usr/local/lib64/mysql; then
28108 MYSQL_LIBDIR=/usr/local/lib64/mysql
28110 MYSQL_LIBDIR=/usr/local/lib/mysql
28112 MYSQL_BINDIR=/usr/local/bin
28113 elif test -f /usr/local/include/mysql.h; then
28114 MYSQL_INCDIR=/usr/local/include
28115 if test -d /usr/local/lib64; then
28116 MYSQL_LIBDIR=/usr/local/lib64
28118 MYSQL_LIBDIR=/usr/local/lib
28120 MYSQL_BINDIR=/usr/local/bin
28122 { echo "$as_me:$LINENO: result: no" >&5
28123 echo "${ECHO_T}no" >&6; }
28124 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28125 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28126 { (exit 1); exit 1; }; }
28129 if test -f $withval/include/mysql/mysql.h; then
28130 MYSQL_INCDIR=$withval/include/mysql
28131 if test -d $withval/lib64/mysql; then
28132 MYSQL_LIBDIR=$withval/lib64/mysql
28134 MYSQL_LIBDIR=$withval/lib/mysql
28136 MYSQL_BINDIR=$withval/bin
28137 elif test -f $withval/include/mysql.h; then
28138 MYSQL_INCDIR=$withval/include
28139 if test -d $withval/lib64; then
28140 MYSQL_LIBDIR=$withval/lib64
28142 MYSQL_LIBDIR=$withval/lib
28144 MYSQL_BINDIR=$withval/bin
28146 { echo "$as_me:$LINENO: result: no" >&5
28147 echo "${ECHO_T}no" >&6; }
28148 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28149 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28150 { (exit 1); exit 1; }; }
28153 SQL_INCLUDE=-I$MYSQL_INCDIR
28154 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28155 SQL_BINDIR=$MYSQL_BINDIR
28156 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28158 cat >>confdefs.h <<\_ACEOF
28159 #define HAVE_MYSQL 1
28162 cat >>confdefs.h <<\_ACEOF
28163 #define HAVE_EMBEDDED_MYSQL 1
28166 { echo "$as_me:$LINENO: result: yes" >&5
28167 echo "${ECHO_T}yes" >&6; }
28174 { echo "$as_me:$LINENO: result: no" >&5
28175 echo "${ECHO_T}no" >&6; }
28191 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28192 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28194 # Check whether --with-sqlite3 was given.
28195 if test "${with_sqlite3+set}" = set; then
28196 withval=$with_sqlite3;
28197 if test "$withval" != "no"; then
28198 if test "$withval" = "yes"; then
28199 if test -f /usr/local/include/sqlite3.h; then
28200 SQLITE_INCDIR=/usr/local/include
28201 if test -d /usr/local/lib64; then
28202 SQLITE_LIBDIR=/usr/local/lib64
28204 SQLITE_LIBDIR=/usr/local/lib
28206 SQLITE_BINDIR=/usr/local/bin
28207 elif test -f /usr/include/sqlite3.h; then
28208 SQLITE_INCDIR=/usr/include
28209 if test -d /usr/lib64; then
28210 SQLITE_LIBDIR=/usr/lib64
28212 SQLITE_LIBDIR=/usr/lib
28214 SQLITE_BINDIR=/usr/bin
28215 elif test -f $prefix/include/sqlite3.h; then
28216 SQLITE_INCDIR=$prefix/include
28217 if test -d $prefix/lib64; then
28218 SQLITE_LIBDIR=$prefix/lib64
28220 SQLITE_LIBDIR=$prefix/lib
28222 SQLITE_BINDIR=$prefix/bin
28224 { echo "$as_me:$LINENO: result: no" >&5
28225 echo "${ECHO_T}no" >&6; }
28226 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28227 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28228 { (exit 1); exit 1; }; }
28231 if test -f $withval/sqlite3.h; then
28232 SQLITE_INCDIR=$withval
28233 SQLITE_LIBDIR=$withval
28234 SQLITE_BINDIR=$withval
28235 elif test -f $withval/include/sqlite3.h; then
28236 SQLITE_INCDIR=$withval/include
28237 if test -d $withval/lib64; then
28238 SQLITE_LIBDIR=$withval/lib64
28240 SQLITE_LIBDIR=$withval/lib
28242 SQLITE_BINDIR=$withval/bin
28244 { echo "$as_me:$LINENO: result: no" >&5
28245 echo "${ECHO_T}no" >&6; }
28246 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28247 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28248 { (exit 1); exit 1; }; }
28251 SQL_INCLUDE=-I$SQLITE_INCDIR
28252 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28253 SQL_BINDIR=$SQLITE_BINDIR
28254 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28256 cat >>confdefs.h <<\_ACEOF
28257 #define HAVE_SQLITE3 1
28260 { echo "$as_me:$LINENO: result: yes" >&5
28261 echo "${ECHO_T}yes" >&6; }
28263 support_sqlite3=yes
28268 { echo "$as_me:$LINENO: result: no" >&5
28269 echo "${ECHO_T}no" >&6; }
28274 { echo "$as_me:$LINENO: result: no" >&5
28275 echo "${ECHO_T}no" >&6; }
28287 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28288 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28290 # Check whether --with-sqlite was given.
28291 if test "${with_sqlite+set}" = set; then
28292 withval=$with_sqlite;
28293 if test "$withval" != "no"; then
28294 if test "$withval" = "yes"; then
28295 if test -f /usr/local/include/sqlite.h; then
28296 SQLITE_INCDIR=/usr/local/include
28297 if test -d /usr/local/lib64; then
28298 SQLITE_LIBDIR=/usr/local/lib64
28300 SQLITE_LIBDIR=/usr/local/lib
28302 SQLITE_BINDIR=/usr/local/bin
28303 elif test -f /usr/include/sqlite.h; then
28304 SQLITE_INCDIR=/usr/include
28305 if test -d /usr/lib64; then
28306 SQLITE_LIBDIR=/usr/lib64
28308 SQLITE_LIBDIR=/usr/lib
28310 SQLITE_BINDIR=/usr/bin
28311 elif test -f $prefix/include/sqlite.h; then
28312 SQLITE_INCDIR=$prefix/include
28313 if test -d $prefix/lib64; then
28314 SQLITE_LIBDIR=$prefix/lib64
28316 SQLITE_LIBDIR=$prefix/lib
28318 SQLITE_BINDIR=$prefix/bin
28320 { echo "$as_me:$LINENO: result: no" >&5
28321 echo "${ECHO_T}no" >&6; }
28322 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28323 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28324 { (exit 1); exit 1; }; }
28327 if test -f $withval/sqlite.h; then
28328 SQLITE_INCDIR=$withval
28329 SQLITE_LIBDIR=$withval
28330 SQLITE_BINDIR=$withval
28331 elif test -f $withval/include/sqlite.h; then
28332 SQLITE_INCDIR=$withval/include
28333 if test -d $withval/lib64; then
28334 SQLITE_LIBDIR=$withval/lib64
28336 SQLITE_LIBDIR=$withval/lib
28338 SQLITE_BINDIR=$withval/bin
28340 { echo "$as_me:$LINENO: result: no" >&5
28341 echo "${ECHO_T}no" >&6; }
28342 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28343 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28344 { (exit 1); exit 1; }; }
28347 SQL_INCLUDE=-I$SQLITE_INCDIR
28348 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28349 SQL_BINDIR=$SQLITE_BINDIR
28350 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28352 cat >>confdefs.h <<\_ACEOF
28353 #define HAVE_SQLITE 1
28356 { echo "$as_me:$LINENO: result: yes" >&5
28357 echo "${ECHO_T}yes" >&6; }
28364 { echo "$as_me:$LINENO: result: no" >&5
28365 echo "${ECHO_T}no" >&6; }
28370 { echo "$as_me:$LINENO: result: no" >&5
28371 echo "${ECHO_T}no" >&6; }
28383 { echo "$as_me:$LINENO: checking for DBI support" >&5
28384 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28386 # Check whether --with-dbi was given.
28387 if test "${with_dbi+set}" = set; then
28389 if test "$withval" != "no"; then
28390 if test "$withval" = "yes"; then
28391 if test -f /usr/local/include/dbi/dbi.h; then
28392 DBI_INCDIR=/usr/local/dbi/include
28393 if test -d /usr/local/lib64; then
28394 DBI_LIBDIR=/usr/local/lib64
28396 DBI_LIBDIR=/usr/local/lib
28398 DBI_BINDIR=/usr/local/bin
28399 elif test -f /usr/include/dbi/dbi.h; then
28400 DBI_INCDIR=/usr/include
28401 if test -d /usr/lib64; then
28402 DBI_LIBDIR=/usr/lib64
28404 DBI_LIBDIR=/usr/lib
28406 DBI_BINDIR=/usr/bin
28407 elif test -f $prefix/include/dbi/dbi.h; then
28408 DBI_INCDIR=$prefix/include
28409 if test -d $prefix/lib64; then
28410 DBI_LIBDIR=$prefix/lib64
28412 DBI_LIBDIR=$prefix/lib
28414 DBI_BINDIR=$prefix/bin
28416 { echo "$as_me:$LINENO: result: no" >&5
28417 echo "${ECHO_T}no" >&6; }
28418 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28419 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28420 { (exit 1); exit 1; }; }
28422 if test -d /usr/local/lib/dbd; then
28423 DRIVERDIR=/usr/local/lib/dbd
28424 if test -d /usr/local/lib64/dbd; then
28425 DRIVERDIR=/usr/local/lib64/dbd
28427 DRIVERDIR=/usr/local/lib/dbd
28429 elif test -d /usr/lib/dbd; then
28430 DRIVERDIR=/usr/lib/dbd
28431 if test -d /usr/lib64/dbd; then
28432 DRIVERDIR=/usr/lib64/dbd
28434 DRIVERDIR=/usr/lib/dbd
28436 elif test -d $prefix/lib/dbd; then
28437 if test -d $prefix/lib64/dbd; then
28438 DRIVERDIR=$prefix/lib64/dbd
28440 DRIVERDIR=$prefix/lib/dbd
28443 { echo "$as_me:$LINENO: result: no" >&5
28444 echo "${ECHO_T}no" >&6; }
28445 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28446 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28447 { (exit 1); exit 1; }; }
28450 if test -f $withval/dbi.h; then
28451 DBI_INCDIR=$withval
28452 DBI_LIBDIR=$withval
28453 DBI_BINDIR=$withval
28454 elif test -f $withval/include/dbi/dbi.h; then
28455 DBI_INCDIR=$withval/include
28456 if test -d $withval/lib64; then
28457 DBI_LIBDIR=$withval/lib64
28459 DBI_LIBDIR=$withval/lib
28461 DBI_BINDIR=$withval/bin
28463 { echo "$as_me:$LINENO: result: no" >&5
28464 echo "${ECHO_T}no" >&6; }
28465 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28466 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28467 { (exit 1); exit 1; }; }
28469 if test -d $withval/dbd; then
28470 DRIVERDIR=$withval/dbd
28471 elif test -d $withval/lib/; then
28472 if test -d $withval/lib64/dbd; then
28473 DRIVERDIR=$withval/lib64/dbd
28475 DRIVERDIR=$withval/lib/dbd
28478 { echo "$as_me:$LINENO: result: no" >&5
28479 echo "${ECHO_T}no" >&6; }
28480 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28481 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28482 { (exit 1); exit 1; }; }
28485 SQL_INCLUDE=-I$DBI_INCDIR
28486 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28487 SQL_BINDIR=$DBI_BINDIR
28488 SQL_LIB=$DBI_LIBDIR/libdbi.a
28489 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28492 cat >>confdefs.h <<\_ACEOF
28496 { echo "$as_me:$LINENO: result: yes" >&5
28497 echo "${ECHO_T}yes" >&6; }
28505 { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28511 { echo "$as_me:$LINENO: result: no" >&5
28512 echo "${ECHO_T}no" >&6; }
28527 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28528 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28530 # Check whether --with-dbi-driver was given.
28531 if test "${with_dbi_driver+set}" = set; then
28532 withval=$with_dbi_driver;
28533 if test "$withval" != "no"; then
28537 if test -f /usr/local/mysql/bin/mysql; then
28538 SQL_BINDIR=/usr/local/mysql/bin
28539 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28540 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28541 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28543 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28545 elif test -f /usr/bin/mysql; then
28546 SQL_BINDIR=/usr/bin
28547 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28548 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28549 SQL_LIBDIR=/usr/lib64/mysql
28550 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28551 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28552 SQL_LIBDIR=/usr/lib/mysql
28554 SQL_LIBDIR=/usr/lib
28556 elif test -f /usr/local/bin/mysql; then
28557 SQL_BINDIR=/usr/local/bin
28558 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28559 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28560 SQL_LIBDIR=/usr/local/lib64/mysql
28561 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28562 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28563 SQL_LIBDIR=/usr/local/lib/mysql
28565 SQL_LIBDIR=/usr/local/lib
28567 elif test -f $withval/bin/mysql; then
28568 SQL_BINDIR=$withval/bin
28569 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28570 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28571 SQL_LIBDIR=$withval/lib64/mysql
28572 elif test -f $withval/lib64/libmysqlclient_r.a \
28573 -o -f $withval/lib64/libmysqlclient_r.so; then
28574 SQL_LIBDIR=$withval/lib64
28575 elif test -f $withval/lib/libmysqlclient_r.a \
28576 -o -f $withval/lib/libmysqlclient_r.so; then
28577 SQL_LIBDIR=$withval/lib/
28579 SQL_LIBDIR=$withval/lib/mysql
28582 { echo "$as_me:$LINENO: result: no" >&5
28583 echo "${ECHO_T}no" >&6; }
28584 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28585 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28586 { (exit 1); exit 1; }; }
28588 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28591 db_prog="postgresql"
28592 PG_CONFIG=`which pg_config`
28593 if test -n "$PG_CONFIG"; then
28594 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28595 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28596 elif test -f /usr/local/bin/psql; then
28597 SQL_BINDIR=/usr/local/bin
28598 if test -d /usr/local/lib64; then
28599 SQL_LIBDIR=/usr/local/lib64
28601 SQL_LIBDIR=/usr/local/lib
28603 elif test -f /usr/bin/psql; then
28604 SQL_BINDIR=/usr/local/bin
28605 if test -d /usr/lib64/postgresql; then
28606 SQL_LIBDIR=/usr/lib64/postgresql
28607 elif test -d /usr/lib/postgresql; then
28608 SQL_LIBDIR=/usr/lib/postgresql
28609 elif test -d /usr/lib64; then
28610 SQL_LIBDIR=/usr/lib64
28612 SQL_LIBDIR=/usr/lib
28614 elif test -f $withval/bin/psql; then
28615 SQL_BINDIR=$withval/bin
28616 if test -d $withval/lib64; then
28617 SQL_LIBDIR=$withval/lib64
28619 SQL_LIBDIR=$withval/lib
28622 { echo "$as_me:$LINENO: result: no" >&5
28623 echo "${ECHO_T}no" >&6; }
28624 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28625 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28626 { (exit 1); exit 1; }; }
28628 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28632 if test -f /usr/local/bin/sqlite; then
28633 SQL_BINDIR=/usr/local/bin
28634 if test -d /usr/local/lib64; then
28635 SQL_LIBDIR=/usr/local/lib64
28637 SQL_LIBDIR=/usr/local/lib
28639 elif test -f /usr/bin/sqlite; then
28640 SQL_BINDIR=/usr/bin
28641 if test -d /usr/lib64; then
28642 SQL_LIBDIR=/usr/lib64
28644 SQL_LIBDIR=/usr/lib
28646 elif test -f $withval/bin/sqlite; then
28647 SQL_BINDIR=$withval/bin
28648 if test -d $withval/lib64; then
28649 SQL_LIBDIR=$withval/lib64
28651 SQL_LIBDIR=$withval/lib
28654 { echo "$as_me:$LINENO: result: no" >&5
28655 echo "${ECHO_T}no" >&6; }
28656 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28657 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28658 { (exit 1); exit 1; }; }
28660 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28664 if test -f /usr/local/bin/sqlite3; then
28665 SQL_BINDIR=/usr/local/bin
28666 if test -d /usr/local/lib64; then
28667 SQL_LIBDIR=/usr/local/lib64
28669 SQL_LIBDIR=/usr/local/lib
28671 elif test -f /usr/bin/sqlite3; then
28672 SQL_BINDIR=/usr/bin
28673 if test -d /usr/lib64; then
28674 SQL_LIBDIR=/usr/lib64
28676 SQL_LIBDIR=/usr/lib
28678 elif test -f $withval/bin/sqlite3; then
28679 SQL_BINDIR=$withval/bin
28680 if test -d $withval/lib64; then
28681 SQL_LIBDIR=$withval/lib64
28683 SQL_LIBDIR=$withval/lib
28686 { echo "$as_me:$LINENO: result: no" >&5
28687 echo "${ECHO_T}no" >&6; }
28688 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28689 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28690 { (exit 1); exit 1; }; }
28692 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28695 { echo "$as_me:$LINENO: result: no" >&5
28696 echo "${ECHO_T}no" >&6; }
28697 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28698 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28699 { (exit 1); exit 1; }; }
28703 { echo "$as_me:$LINENO: result: yes" >&5
28704 echo "${ECHO_T}yes" >&6; }
28707 { echo "$as_me:$LINENO: result: no" >&5
28708 echo "${ECHO_T}no" >&6; }
28713 { echo "$as_me:$LINENO: result: no" >&5
28714 echo "${ECHO_T}no" >&6; }
28727 support_batch_insert=no
28728 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28730 if test $pkg = 0; then
28731 support_batch_insert=yes
28732 # Check whether --enable-batch-insert was given.
28733 if test "${enable_batch_insert+set}" = set; then
28734 enableval=$enable_batch_insert;
28735 if test x$enableval = xno; then
28736 support_batch_insert=no
28738 support_batch_insert=yes
28746 if test x$DB_TYPE = xpostgresql; then
28747 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28749 if test $pkg != 0; then
28750 support_batch_insert=no
28754 if test x$DB_TYPE = xdbi; then
28758 if test $DB_PROG = postgresql; then
28759 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28763 if test $DB_PROG = mysql; then
28764 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28768 if test $DB_PROG = sqlite3; then
28769 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28773 if test $pkg = 0; then
28774 # Check whether --enable-batch-insert was given.
28775 if test "${enable_batch_insert+set}" = set; then
28776 enableval=$enable_batch_insert;
28777 if test x$enableval = xno; then
28778 support_batch_insert=no
28780 support_batch_insert=yes
28793 if test $support_batch_insert = yes ; then
28795 cat >>confdefs.h <<\_ACEOF
28796 #define HAVE_BATCH_FILE_INSERT 1
28801 cat >>confdefs.h <<\_ACEOF
28802 #define PROTOTYPES 1
28806 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28807 if test -z "$CCOPTS"; then
28808 CCOPTS='-g -O2 -Wall'
28815 largefile_support="no"
28817 # Check whether --enable-largefile was given.
28818 if test "${enable_largefile+set}" = set; then
28819 enableval=$enable_largefile;
28822 if test "$enable_largefile" != no; then
28823 if test -n "$ac_tool_prefix"; then
28824 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28825 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28828 if test "${ac_cv_prog_GETCONF+set}" = set; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 if test -n "$GETCONF"; then
28832 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28835 for as_dir in $PATH
28838 test -z "$as_dir" && as_dir=.
28839 for ac_exec_ext in '' $ac_executable_extensions; do
28840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28841 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28851 GETCONF=$ac_cv_prog_GETCONF
28852 if test -n "$GETCONF"; then
28853 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28854 echo "${ECHO_T}$GETCONF" >&6; }
28856 { echo "$as_me:$LINENO: result: no" >&5
28857 echo "${ECHO_T}no" >&6; }
28862 if test -z "$ac_cv_prog_GETCONF"; then
28863 ac_ct_GETCONF=$GETCONF
28864 # Extract the first word of "getconf", so it can be a program name with args.
28865 set dummy getconf; ac_word=$2
28866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28868 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28869 echo $ECHO_N "(cached) $ECHO_C" >&6
28871 if test -n "$ac_ct_GETCONF"; then
28872 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28875 for as_dir in $PATH
28878 test -z "$as_dir" && as_dir=.
28879 for ac_exec_ext in '' $ac_executable_extensions; do
28880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28881 ac_cv_prog_ac_ct_GETCONF="getconf"
28882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28891 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28892 if test -n "$ac_ct_GETCONF"; then
28893 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28894 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28896 { echo "$as_me:$LINENO: result: no" >&5
28897 echo "${ECHO_T}no" >&6; }
28900 if test "x$ac_ct_GETCONF" = x; then
28903 case $cross_compiling:$ac_tool_warned in
28905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28906 whose name does not start with the host triplet. If you think this
28907 configuration is useful to you, please write to autoconf@gnu.org." >&5
28908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28909 whose name does not start with the host triplet. If you think this
28910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28911 ac_tool_warned=yes ;;
28913 GETCONF=$ac_ct_GETCONF
28916 GETCONF="$ac_cv_prog_GETCONF"
28919 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28920 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28921 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28924 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28925 ac_cv_sys_largefile_CFLAGS=no
28927 # IRIX 6.2 and later require cc -n32.
28928 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28929 if test "$GCC" != yes; then
28930 ac_cv_sys_largefile_CFLAGS=-n32
28933 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28934 cat >conftest.$ac_ext <<_ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h. */
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_link") 2>conftest.er1
28958 grep -v '^ *+' conftest.er1 >conftest.err
28960 cat conftest.err >&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); } && {
28963 test -z "$ac_c_werror_flag" ||
28964 test ! -s conftest.err
28965 } && test -s conftest$ac_exeext &&
28966 $as_test_x conftest$ac_exeext; then
28969 echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28972 ac_cv_sys_largefile_CFLAGS=no
28975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28976 conftest$ac_exeext conftest.$ac_ext
28981 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28982 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28983 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28984 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28985 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28988 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28989 ac_cv_sys_largefile_LDFLAGS=no
28993 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28994 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28995 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28996 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28997 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
29000 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29001 ac_cv_sys_largefile_LIBS=no
29005 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29006 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29008 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29011 -D_FILE_OFFSET_BITS=*) ;;
29012 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29013 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29018 case "$CPPFLAGS" in
29019 '') CPPFLAGS="$ac_flag" ;;
29020 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29028 '') CFLAGS="$ac_flag" ;;
29029 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29034 case "$ac_cv_sys_largefile_LDFLAGS" in
29038 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29039 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29042 case "$ac_cv_sys_largefile_LIBS" in
29046 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29047 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29050 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29051 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29052 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29053 echo $ECHO_N "(cached) $ECHO_C" >&6
29055 ac_cv_sys_file_offset_bits=no
29056 ac_cv_sys_file_offset_bits=64
29057 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29059 -D_FILE_OFFSET_BITS)
29060 ac_cv_sys_file_offset_bits=1 ;;
29061 -D_FILE_OFFSET_BITS=*)
29062 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29067 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29068 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29069 if test "$ac_cv_sys_file_offset_bits" != no; then
29071 cat >>confdefs.h <<_ACEOF
29072 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29076 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29077 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29078 if test "${ac_cv_sys_largefile_source+set}" = set; then
29079 echo $ECHO_N "(cached) $ECHO_C" >&6
29081 ac_cv_sys_largefile_source=no
29082 ac_cv_sys_largefile_source=1
29083 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29085 -D_LARGEFILE_SOURCE)
29086 ac_cv_sys_largefile_source=1 ;;
29087 -D_LARGEFILE_SOURCE=*)
29088 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29093 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29094 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29095 if test "$ac_cv_sys_largefile_source" != no; then
29097 cat >>confdefs.h <<_ACEOF
29098 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29102 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29103 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29104 if test "${ac_cv_sys_large_files+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29107 ac_cv_sys_large_files=no
29108 ac_cv_sys_large_files=1
29109 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29112 ac_cv_sys_large_files=1 ;;
29114 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29119 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29120 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29121 if test "$ac_cv_sys_large_files" != no; then
29123 cat >>confdefs.h <<_ACEOF
29124 #define _LARGE_FILES $ac_cv_sys_large_files
29131 { echo "$as_me:$LINENO: checking for X" >&5
29132 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29135 # Check whether --with-x was given.
29136 if test "${with_x+set}" = set; then
29140 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29141 if test "x$with_x" = xno; then
29142 # The user explicitly disabled X.
29145 case $x_includes,$x_libraries in #(
29146 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29147 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29148 { (exit 1); exit 1; }; };; #(
29149 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29152 # One or both of the vars are not set, and there is no cached value.
29153 ac_x_includes=no ac_x_libraries=no
29154 rm -f -r conftest.dir
29155 if mkdir conftest.dir; then
29157 cat >Imakefile <<'_ACEOF'
29159 @echo incroot='${INCROOT}'
29161 @echo usrlibdir='${USRLIBDIR}'
29163 @echo libdir='${LIBDIR}'
29165 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29167 for ac_var in incroot usrlibdir libdir; do
29168 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29170 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29171 for ac_extension in a so sl; do
29172 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29173 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29174 ac_im_usrlibdir=$ac_im_libdir; break
29177 # Screen out bogus values from the imake configuration. They are
29178 # bogus both because they are the default anyway, and because
29179 # using them would break gcc on systems where it needs fixed includes.
29180 case $ac_im_incroot in
29181 /usr/include) ac_x_includes= ;;
29182 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29184 case $ac_im_usrlibdir in
29185 /usr/lib | /lib) ;;
29186 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29190 rm -f -r conftest.dir
29193 # Standard set of common directories for X headers.
29194 # Check X11 before X11Rn because it is often a symlink to the current release.
29206 /usr/local/X11/include
29207 /usr/local/X11R6/include
29208 /usr/local/X11R5/include
29209 /usr/local/X11R4/include
29211 /usr/local/include/X11
29212 /usr/local/include/X11R6
29213 /usr/local/include/X11R5
29214 /usr/local/include/X11R4
29218 /usr/XFree86/include/X11
29222 /usr/unsupported/include
29223 /usr/athena/include
29224 /usr/local/x11r5/include
29225 /usr/lpp/Xamples/include
29227 /usr/openwin/include
29228 /usr/openwin/share/include'
29230 if test "$ac_x_includes" = no; then
29231 # Guess where to find include files, by looking for Xlib.h.
29232 # First, try using that file with no special directory specified.
29233 cat >conftest.$ac_ext <<_ACEOF
29236 cat confdefs.h >>conftest.$ac_ext
29237 cat >>conftest.$ac_ext <<_ACEOF
29238 /* end confdefs.h. */
29239 #include <X11/Xlib.h>
29241 if { (ac_try="$ac_cpp conftest.$ac_ext"
29242 case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29249 grep -v '^ *+' conftest.er1 >conftest.err
29251 cat conftest.err >&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); } >/dev/null && {
29254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29255 test ! -s conftest.err
29257 # We can compile using X headers with no special include directory.
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29263 for ac_dir in $ac_x_header_dirs; do
29264 if test -r "$ac_dir/X11/Xlib.h"; then
29265 ac_x_includes=$ac_dir
29271 rm -f conftest.err conftest.$ac_ext
29272 fi # $ac_x_includes = no
29274 if test "$ac_x_libraries" = no; then
29275 # Check for the libraries.
29276 # See if we find them without any special options.
29277 # Don't add to $LIBS permanently.
29280 cat >conftest.$ac_ext <<_ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h. */
29286 #include <X11/Xlib.h>
29295 rm -f conftest.$ac_objext conftest$ac_exeext
29296 if { (ac_try="$ac_link"
29297 case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_link") 2>conftest.er1
29304 grep -v '^ *+' conftest.er1 >conftest.err
29306 cat conftest.err >&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } && {
29309 test -z "$ac_c_werror_flag" ||
29310 test ! -s conftest.err
29311 } && test -s conftest$ac_exeext &&
29312 $as_test_x conftest$ac_exeext; then
29314 # We can link X programs with no special library path.
29317 echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29321 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29323 # Don't even attempt the hair of trying to link an X program!
29324 for ac_extension in a so sl; do
29325 if test -r "$ac_dir/libX11.$ac_extension"; then
29326 ac_x_libraries=$ac_dir
29333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29334 conftest$ac_exeext conftest.$ac_ext
29335 fi # $ac_x_libraries = no
29337 case $ac_x_includes,$ac_x_libraries in #(
29338 no,* | *,no | *\'*)
29339 # Didn't find X, or a directory has "'" in its name.
29340 ac_cv_have_x="have_x=no";; #(
29342 # Record where we found X for the cache.
29343 ac_cv_have_x="have_x=yes\
29344 ac_x_includes='$ac_x_includes'\
29345 ac_x_libraries='$ac_x_libraries'"
29351 eval "$ac_cv_have_x"
29354 if test "$have_x" != yes; then
29355 { echo "$as_me:$LINENO: result: $have_x" >&5
29356 echo "${ECHO_T}$have_x" >&6; }
29359 # If each of the values was on the command line, it overrides each guess.
29360 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29361 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29362 # Update the cache value to reflect the command line values.
29363 ac_cv_have_x="have_x=yes\
29364 ac_x_includes='$x_includes'\
29365 ac_x_libraries='$x_libraries'"
29366 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29367 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29370 if test "$no_x" = yes; then
29371 # Not all programs may use this symbol, but it does not hurt to define it.
29373 cat >>confdefs.h <<\_ACEOF
29374 #define X_DISPLAY_MISSING 1
29377 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29379 if test -n "$x_includes"; then
29380 X_CFLAGS="$X_CFLAGS -I$x_includes"
29383 # It would also be nice to do this for all -L options, not just this one.
29384 if test -n "$x_libraries"; then
29385 X_LIBS="$X_LIBS -L$x_libraries"
29386 # For Solaris; some versions of Sun CC require a space after -R and
29387 # others require no space. Words are not sufficient . . . .
29388 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29389 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29390 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29391 ac_xsave_c_werror_flag=$ac_c_werror_flag
29392 ac_c_werror_flag=yes
29393 cat >conftest.$ac_ext <<_ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h. */
29408 rm -f conftest.$ac_objext conftest$ac_exeext
29409 if { (ac_try="$ac_link"
29410 case "(($ac_try" in
29411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29412 *) ac_try_echo=$ac_try;;
29414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29415 (eval "$ac_link") 2>conftest.er1
29417 grep -v '^ *+' conftest.er1 >conftest.err
29419 cat conftest.err >&5
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); } && {
29422 test -z "$ac_c_werror_flag" ||
29423 test ! -s conftest.err
29424 } && test -s conftest$ac_exeext &&
29425 $as_test_x conftest$ac_exeext; then
29426 { echo "$as_me:$LINENO: result: no" >&5
29427 echo "${ECHO_T}no" >&6; }
29428 X_LIBS="$X_LIBS -R$x_libraries"
29430 echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29433 LIBS="$ac_xsave_LIBS -R $x_libraries"
29434 cat >conftest.$ac_ext <<_ACEOF
29437 cat confdefs.h >>conftest.$ac_ext
29438 cat >>conftest.$ac_ext <<_ACEOF
29439 /* end confdefs.h. */
29449 rm -f conftest.$ac_objext conftest$ac_exeext
29450 if { (ac_try="$ac_link"
29451 case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_link") 2>conftest.er1
29458 grep -v '^ *+' conftest.er1 >conftest.err
29460 cat conftest.err >&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); } && {
29463 test -z "$ac_c_werror_flag" ||
29464 test ! -s conftest.err
29465 } && test -s conftest$ac_exeext &&
29466 $as_test_x conftest$ac_exeext; then
29467 { echo "$as_me:$LINENO: result: yes" >&5
29468 echo "${ECHO_T}yes" >&6; }
29469 X_LIBS="$X_LIBS -R $x_libraries"
29471 echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29474 { echo "$as_me:$LINENO: result: neither works" >&5
29475 echo "${ECHO_T}neither works" >&6; }
29478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29479 conftest$ac_exeext conftest.$ac_ext
29482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29483 conftest$ac_exeext conftest.$ac_ext
29484 ac_c_werror_flag=$ac_xsave_c_werror_flag
29485 LIBS=$ac_xsave_LIBS
29488 # Check for system-dependent libraries X programs must link with.
29489 # Do this before checking for the system-independent R6 libraries
29490 # (-lICE), since we may need -lsocket or whatever for X linking.
29492 if test "$ISC" = yes; then
29493 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29495 # Martyn Johnson says this is needed for Ultrix, if the X
29496 # libraries were built with DECnet support. And Karl Berry says
29497 # the Alpha needs dnet_stub (dnet does not exist).
29498 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29499 cat >conftest.$ac_ext <<_ACEOF
29502 cat confdefs.h >>conftest.$ac_ext
29503 cat >>conftest.$ac_ext <<_ACEOF
29504 /* end confdefs.h. */
29506 /* Override any GCC internal prototype to avoid an error.
29507 Use char because int might match the return type of a GCC
29508 builtin and then its argument prototype would still apply. */
29512 char XOpenDisplay ();
29516 return XOpenDisplay ();
29521 rm -f conftest.$ac_objext conftest$ac_exeext
29522 if { (ac_try="$ac_link"
29523 case "(($ac_try" in
29524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29525 *) ac_try_echo=$ac_try;;
29527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29528 (eval "$ac_link") 2>conftest.er1
29530 grep -v '^ *+' conftest.er1 >conftest.err
29532 cat conftest.err >&5
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } && {
29535 test -z "$ac_c_werror_flag" ||
29536 test ! -s conftest.err
29537 } && test -s conftest$ac_exeext &&
29538 $as_test_x conftest$ac_exeext; then
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29544 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29545 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29546 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29549 ac_check_lib_save_LIBS=$LIBS
29550 LIBS="-ldnet $LIBS"
29551 cat >conftest.$ac_ext <<_ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h. */
29558 /* Override any GCC internal prototype to avoid an error.
29559 Use char because int might match the return type of a GCC
29560 builtin and then its argument prototype would still apply. */
29568 return dnet_ntoa ();
29573 rm -f conftest.$ac_objext conftest$ac_exeext
29574 if { (ac_try="$ac_link"
29575 case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580 (eval "$ac_link") 2>conftest.er1
29582 grep -v '^ *+' conftest.er1 >conftest.err
29584 cat conftest.err >&5
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); } && {
29587 test -z "$ac_c_werror_flag" ||
29588 test ! -s conftest.err
29589 } && test -s conftest$ac_exeext &&
29590 $as_test_x conftest$ac_exeext; then
29591 ac_cv_lib_dnet_dnet_ntoa=yes
29593 echo "$as_me: failed program was:" >&5
29594 sed 's/^/| /' conftest.$ac_ext >&5
29596 ac_cv_lib_dnet_dnet_ntoa=no
29599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29600 conftest$ac_exeext conftest.$ac_ext
29601 LIBS=$ac_check_lib_save_LIBS
29603 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29604 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29605 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29606 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29609 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29610 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29611 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29612 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29613 echo $ECHO_N "(cached) $ECHO_C" >&6
29615 ac_check_lib_save_LIBS=$LIBS
29616 LIBS="-ldnet_stub $LIBS"
29617 cat >conftest.$ac_ext <<_ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h. */
29624 /* Override any GCC internal prototype to avoid an error.
29625 Use char because int might match the return type of a GCC
29626 builtin and then its argument prototype would still apply. */
29634 return dnet_ntoa ();
29639 rm -f conftest.$ac_objext conftest$ac_exeext
29640 if { (ac_try="$ac_link"
29641 case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29646 (eval "$ac_link") 2>conftest.er1
29648 grep -v '^ *+' conftest.er1 >conftest.err
29650 cat conftest.err >&5
29651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652 (exit $ac_status); } && {
29653 test -z "$ac_c_werror_flag" ||
29654 test ! -s conftest.err
29655 } && test -s conftest$ac_exeext &&
29656 $as_test_x conftest$ac_exeext; then
29657 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29659 echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29662 ac_cv_lib_dnet_stub_dnet_ntoa=no
29665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29666 conftest$ac_exeext conftest.$ac_ext
29667 LIBS=$ac_check_lib_save_LIBS
29669 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29670 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29671 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29672 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29679 conftest$ac_exeext conftest.$ac_ext
29680 LIBS="$ac_xsave_LIBS"
29682 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29683 # to get the SysV transport functions.
29684 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29686 # The nsl library prevents programs from opening the X display
29687 # on Irix 5.2, according to T.E. Dickey.
29688 # The functions gethostbyname, getservbyname, and inet_addr are
29689 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29690 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29691 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29692 if test "${ac_cv_func_gethostbyname+set}" = set; then
29693 echo $ECHO_N "(cached) $ECHO_C" >&6
29695 cat >conftest.$ac_ext <<_ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h. */
29701 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29703 #define gethostbyname innocuous_gethostbyname
29705 /* System header to define __stub macros and hopefully few prototypes,
29706 which can conflict with char gethostbyname (); below.
29707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29708 <limits.h> exists even on freestanding compilers. */
29711 # include <limits.h>
29713 # include <assert.h>
29716 #undef gethostbyname
29718 /* Override any GCC internal prototype to avoid an error.
29719 Use char because int might match the return type of a GCC
29720 builtin and then its argument prototype would still apply. */
29724 char gethostbyname ();
29725 /* The GNU C library defines this for functions which it implements
29726 to always fail with ENOSYS. Some functions are actually named
29727 something starting with __ and the normal name is an alias. */
29728 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29735 return gethostbyname ();
29740 rm -f conftest.$ac_objext conftest$ac_exeext
29741 if { (ac_try="$ac_link"
29742 case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747 (eval "$ac_link") 2>conftest.er1
29749 grep -v '^ *+' conftest.er1 >conftest.err
29751 cat conftest.err >&5
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); } && {
29754 test -z "$ac_c_werror_flag" ||
29755 test ! -s conftest.err
29756 } && test -s conftest$ac_exeext &&
29757 $as_test_x conftest$ac_exeext; then
29758 ac_cv_func_gethostbyname=yes
29760 echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29763 ac_cv_func_gethostbyname=no
29766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29767 conftest$ac_exeext conftest.$ac_ext
29769 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29770 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29772 if test $ac_cv_func_gethostbyname = no; then
29773 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29774 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29775 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29776 echo $ECHO_N "(cached) $ECHO_C" >&6
29778 ac_check_lib_save_LIBS=$LIBS
29780 cat >conftest.$ac_ext <<_ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h. */
29787 /* Override any GCC internal prototype to avoid an error.
29788 Use char because int might match the return type of a GCC
29789 builtin and then its argument prototype would still apply. */
29793 char gethostbyname ();
29797 return gethostbyname ();
29802 rm -f conftest.$ac_objext conftest$ac_exeext
29803 if { (ac_try="$ac_link"
29804 case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809 (eval "$ac_link") 2>conftest.er1
29811 grep -v '^ *+' conftest.er1 >conftest.err
29813 cat conftest.err >&5
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); } && {
29816 test -z "$ac_c_werror_flag" ||
29817 test ! -s conftest.err
29818 } && test -s conftest$ac_exeext &&
29819 $as_test_x conftest$ac_exeext; then
29820 ac_cv_lib_nsl_gethostbyname=yes
29822 echo "$as_me: failed program was:" >&5
29823 sed 's/^/| /' conftest.$ac_ext >&5
29825 ac_cv_lib_nsl_gethostbyname=no
29828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29829 conftest$ac_exeext conftest.$ac_ext
29830 LIBS=$ac_check_lib_save_LIBS
29832 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29833 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29834 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29835 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29838 if test $ac_cv_lib_nsl_gethostbyname = no; then
29839 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29840 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29841 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29842 echo $ECHO_N "(cached) $ECHO_C" >&6
29844 ac_check_lib_save_LIBS=$LIBS
29846 cat >conftest.$ac_ext <<_ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h. */
29853 /* Override any GCC internal prototype to avoid an error.
29854 Use char because int might match the return type of a GCC
29855 builtin and then its argument prototype would still apply. */
29859 char gethostbyname ();
29863 return gethostbyname ();
29868 rm -f conftest.$ac_objext conftest$ac_exeext
29869 if { (ac_try="$ac_link"
29870 case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_link") 2>conftest.er1
29877 grep -v '^ *+' conftest.er1 >conftest.err
29879 cat conftest.err >&5
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); } && {
29882 test -z "$ac_c_werror_flag" ||
29883 test ! -s conftest.err
29884 } && test -s conftest$ac_exeext &&
29885 $as_test_x conftest$ac_exeext; then
29886 ac_cv_lib_bsd_gethostbyname=yes
29888 echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29891 ac_cv_lib_bsd_gethostbyname=no
29894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29895 conftest$ac_exeext conftest.$ac_ext
29896 LIBS=$ac_check_lib_save_LIBS
29898 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29899 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29900 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29907 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29908 # socket/setsockopt and other routines are undefined under SCO ODT
29909 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29910 # on later versions), says Simon Leinen: it contains gethostby*
29911 # variants that don't use the name server (or something). -lsocket
29912 # must be given before -lnsl if both are needed. We assume that
29913 # if connect needs -lnsl, so does gethostbyname.
29914 { echo "$as_me:$LINENO: checking for connect" >&5
29915 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29916 if test "${ac_cv_func_connect+set}" = set; then
29917 echo $ECHO_N "(cached) $ECHO_C" >&6
29919 cat >conftest.$ac_ext <<_ACEOF
29922 cat confdefs.h >>conftest.$ac_ext
29923 cat >>conftest.$ac_ext <<_ACEOF
29924 /* end confdefs.h. */
29925 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29927 #define connect innocuous_connect
29929 /* System header to define __stub macros and hopefully few prototypes,
29930 which can conflict with char connect (); below.
29931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29932 <limits.h> exists even on freestanding compilers. */
29935 # include <limits.h>
29937 # include <assert.h>
29942 /* Override any GCC internal prototype to avoid an error.
29943 Use char because int might match the return type of a GCC
29944 builtin and then its argument prototype would still apply. */
29949 /* The GNU C library defines this for functions which it implements
29950 to always fail with ENOSYS. Some functions are actually named
29951 something starting with __ and the normal name is an alias. */
29952 #if defined __stub_connect || defined __stub___connect
29964 rm -f conftest.$ac_objext conftest$ac_exeext
29965 if { (ac_try="$ac_link"
29966 case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_link") 2>conftest.er1
29973 grep -v '^ *+' conftest.er1 >conftest.err
29975 cat conftest.err >&5
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); } && {
29978 test -z "$ac_c_werror_flag" ||
29979 test ! -s conftest.err
29980 } && test -s conftest$ac_exeext &&
29981 $as_test_x conftest$ac_exeext; then
29982 ac_cv_func_connect=yes
29984 echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29987 ac_cv_func_connect=no
29990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29991 conftest$ac_exeext conftest.$ac_ext
29993 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29994 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29996 if test $ac_cv_func_connect = no; then
29997 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29998 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29999 if test "${ac_cv_lib_socket_connect+set}" = set; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30002 ac_check_lib_save_LIBS=$LIBS
30003 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30004 cat >conftest.$ac_ext <<_ACEOF
30007 cat confdefs.h >>conftest.$ac_ext
30008 cat >>conftest.$ac_ext <<_ACEOF
30009 /* end confdefs.h. */
30011 /* Override any GCC internal prototype to avoid an error.
30012 Use char because int might match the return type of a GCC
30013 builtin and then its argument prototype would still apply. */
30026 rm -f conftest.$ac_objext conftest$ac_exeext
30027 if { (ac_try="$ac_link"
30028 case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_link") 2>conftest.er1
30035 grep -v '^ *+' conftest.er1 >conftest.err
30037 cat conftest.err >&5
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); } && {
30040 test -z "$ac_c_werror_flag" ||
30041 test ! -s conftest.err
30042 } && test -s conftest$ac_exeext &&
30043 $as_test_x conftest$ac_exeext; then
30044 ac_cv_lib_socket_connect=yes
30046 echo "$as_me: failed program was:" >&5
30047 sed 's/^/| /' conftest.$ac_ext >&5
30049 ac_cv_lib_socket_connect=no
30052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30053 conftest$ac_exeext conftest.$ac_ext
30054 LIBS=$ac_check_lib_save_LIBS
30056 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30057 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30058 if test $ac_cv_lib_socket_connect = yes; then
30059 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30064 # Guillermo Gomez says -lposix is necessary on A/UX.
30065 { echo "$as_me:$LINENO: checking for remove" >&5
30066 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30067 if test "${ac_cv_func_remove+set}" = set; then
30068 echo $ECHO_N "(cached) $ECHO_C" >&6
30070 cat >conftest.$ac_ext <<_ACEOF
30073 cat confdefs.h >>conftest.$ac_ext
30074 cat >>conftest.$ac_ext <<_ACEOF
30075 /* end confdefs.h. */
30076 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30078 #define remove innocuous_remove
30080 /* System header to define __stub macros and hopefully few prototypes,
30081 which can conflict with char remove (); below.
30082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30083 <limits.h> exists even on freestanding compilers. */
30086 # include <limits.h>
30088 # include <assert.h>
30093 /* Override any GCC internal prototype to avoid an error.
30094 Use char because int might match the return type of a GCC
30095 builtin and then its argument prototype would still apply. */
30100 /* The GNU C library defines this for functions which it implements
30101 to always fail with ENOSYS. Some functions are actually named
30102 something starting with __ and the normal name is an alias. */
30103 #if defined __stub_remove || defined __stub___remove
30115 rm -f conftest.$ac_objext conftest$ac_exeext
30116 if { (ac_try="$ac_link"
30117 case "(($ac_try" in
30118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119 *) ac_try_echo=$ac_try;;
30121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122 (eval "$ac_link") 2>conftest.er1
30124 grep -v '^ *+' conftest.er1 >conftest.err
30126 cat conftest.err >&5
30127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); } && {
30129 test -z "$ac_c_werror_flag" ||
30130 test ! -s conftest.err
30131 } && test -s conftest$ac_exeext &&
30132 $as_test_x conftest$ac_exeext; then
30133 ac_cv_func_remove=yes
30135 echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30138 ac_cv_func_remove=no
30141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30142 conftest$ac_exeext conftest.$ac_ext
30144 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30145 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30147 if test $ac_cv_func_remove = no; then
30148 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30149 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30150 if test "${ac_cv_lib_posix_remove+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30153 ac_check_lib_save_LIBS=$LIBS
30154 LIBS="-lposix $LIBS"
30155 cat >conftest.$ac_ext <<_ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h. */
30162 /* Override any GCC internal prototype to avoid an error.
30163 Use char because int might match the return type of a GCC
30164 builtin and then its argument prototype would still apply. */
30177 rm -f conftest.$ac_objext conftest$ac_exeext
30178 if { (ac_try="$ac_link"
30179 case "(($ac_try" in
30180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30181 *) ac_try_echo=$ac_try;;
30183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30184 (eval "$ac_link") 2>conftest.er1
30186 grep -v '^ *+' conftest.er1 >conftest.err
30188 cat conftest.err >&5
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); } && {
30191 test -z "$ac_c_werror_flag" ||
30192 test ! -s conftest.err
30193 } && test -s conftest$ac_exeext &&
30194 $as_test_x conftest$ac_exeext; then
30195 ac_cv_lib_posix_remove=yes
30197 echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30200 ac_cv_lib_posix_remove=no
30203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30204 conftest$ac_exeext conftest.$ac_ext
30205 LIBS=$ac_check_lib_save_LIBS
30207 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30208 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30209 if test $ac_cv_lib_posix_remove = yes; then
30210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30216 { echo "$as_me:$LINENO: checking for shmat" >&5
30217 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30218 if test "${ac_cv_func_shmat+set}" = set; then
30219 echo $ECHO_N "(cached) $ECHO_C" >&6
30221 cat >conftest.$ac_ext <<_ACEOF
30224 cat confdefs.h >>conftest.$ac_ext
30225 cat >>conftest.$ac_ext <<_ACEOF
30226 /* end confdefs.h. */
30227 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30229 #define shmat innocuous_shmat
30231 /* System header to define __stub macros and hopefully few prototypes,
30232 which can conflict with char shmat (); below.
30233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30234 <limits.h> exists even on freestanding compilers. */
30237 # include <limits.h>
30239 # include <assert.h>
30244 /* Override any GCC internal prototype to avoid an error.
30245 Use char because int might match the return type of a GCC
30246 builtin and then its argument prototype would still apply. */
30251 /* The GNU C library defines this for functions which it implements
30252 to always fail with ENOSYS. Some functions are actually named
30253 something starting with __ and the normal name is an alias. */
30254 #if defined __stub_shmat || defined __stub___shmat
30266 rm -f conftest.$ac_objext conftest$ac_exeext
30267 if { (ac_try="$ac_link"
30268 case "(($ac_try" in
30269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270 *) ac_try_echo=$ac_try;;
30272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273 (eval "$ac_link") 2>conftest.er1
30275 grep -v '^ *+' conftest.er1 >conftest.err
30277 cat conftest.err >&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); } && {
30280 test -z "$ac_c_werror_flag" ||
30281 test ! -s conftest.err
30282 } && test -s conftest$ac_exeext &&
30283 $as_test_x conftest$ac_exeext; then
30284 ac_cv_func_shmat=yes
30286 echo "$as_me: failed program was:" >&5
30287 sed 's/^/| /' conftest.$ac_ext >&5
30289 ac_cv_func_shmat=no
30292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30293 conftest$ac_exeext conftest.$ac_ext
30295 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30296 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30298 if test $ac_cv_func_shmat = no; then
30299 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30300 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30301 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30304 ac_check_lib_save_LIBS=$LIBS
30306 cat >conftest.$ac_ext <<_ACEOF
30309 cat confdefs.h >>conftest.$ac_ext
30310 cat >>conftest.$ac_ext <<_ACEOF
30311 /* end confdefs.h. */
30313 /* Override any GCC internal prototype to avoid an error.
30314 Use char because int might match the return type of a GCC
30315 builtin and then its argument prototype would still apply. */
30328 rm -f conftest.$ac_objext conftest$ac_exeext
30329 if { (ac_try="$ac_link"
30330 case "(($ac_try" in
30331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332 *) ac_try_echo=$ac_try;;
30334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30335 (eval "$ac_link") 2>conftest.er1
30337 grep -v '^ *+' conftest.er1 >conftest.err
30339 cat conftest.err >&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); } && {
30342 test -z "$ac_c_werror_flag" ||
30343 test ! -s conftest.err
30344 } && test -s conftest$ac_exeext &&
30345 $as_test_x conftest$ac_exeext; then
30346 ac_cv_lib_ipc_shmat=yes
30348 echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30351 ac_cv_lib_ipc_shmat=no
30354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30355 conftest$ac_exeext conftest.$ac_ext
30356 LIBS=$ac_check_lib_save_LIBS
30358 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30359 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30360 if test $ac_cv_lib_ipc_shmat = yes; then
30361 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30367 # Check for libraries that X11R6 Xt/Xaw programs need.
30368 ac_save_LDFLAGS=$LDFLAGS
30369 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30370 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30371 # check for ICE first), but we must link in the order -lSM -lICE or
30372 # we get undefined symbols. So assume we have SM if we have ICE.
30373 # These have to be linked with before -lX11, unlike the other
30374 # libraries we check for below, so use a different variable.
30375 # John Interrante, Karl Berry
30376 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30377 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30378 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30379 echo $ECHO_N "(cached) $ECHO_C" >&6
30381 ac_check_lib_save_LIBS=$LIBS
30382 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30383 cat >conftest.$ac_ext <<_ACEOF
30386 cat confdefs.h >>conftest.$ac_ext
30387 cat >>conftest.$ac_ext <<_ACEOF
30388 /* end confdefs.h. */
30390 /* Override any GCC internal prototype to avoid an error.
30391 Use char because int might match the return type of a GCC
30392 builtin and then its argument prototype would still apply. */
30396 char IceConnectionNumber ();
30400 return IceConnectionNumber ();
30405 rm -f conftest.$ac_objext conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409 *) ac_try_echo=$ac_try;;
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412 (eval "$ac_link") 2>conftest.er1
30414 grep -v '^ *+' conftest.er1 >conftest.err
30416 cat conftest.err >&5
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); } && {
30419 test -z "$ac_c_werror_flag" ||
30420 test ! -s conftest.err
30421 } && test -s conftest$ac_exeext &&
30422 $as_test_x conftest$ac_exeext; then
30423 ac_cv_lib_ICE_IceConnectionNumber=yes
30425 echo "$as_me: failed program was:" >&5
30426 sed 's/^/| /' conftest.$ac_ext >&5
30428 ac_cv_lib_ICE_IceConnectionNumber=no
30431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30432 conftest$ac_exeext conftest.$ac_ext
30433 LIBS=$ac_check_lib_save_LIBS
30435 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30436 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30437 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30438 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30441 LDFLAGS=$ac_save_LDFLAGS
30509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30514 echo $ECHO_N "(cached) $ECHO_C" >&6
30516 ac_res=`eval echo '${'$as_ac_Header'}'`
30517 { echo "$as_me:$LINENO: result: $ac_res" >&5
30518 echo "${ECHO_T}$ac_res" >&6; }
30520 # Is the header compilable?
30521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30523 cat >conftest.$ac_ext <<_ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h. */
30529 $ac_includes_default
30530 #include <$ac_header>
30532 rm -f conftest.$ac_objext
30533 if { (ac_try="$ac_compile"
30534 case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_compile") 2>conftest.er1
30541 grep -v '^ *+' conftest.er1 >conftest.err
30543 cat conftest.err >&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); } && {
30546 test -z "$ac_c_werror_flag" ||
30547 test ! -s conftest.err
30548 } && test -s conftest.$ac_objext; then
30549 ac_header_compiler=yes
30551 echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30554 ac_header_compiler=no
30557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30559 echo "${ECHO_T}$ac_header_compiler" >&6; }
30561 # Is the header present?
30562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30564 cat >conftest.$ac_ext <<_ACEOF
30567 cat confdefs.h >>conftest.$ac_ext
30568 cat >>conftest.$ac_ext <<_ACEOF
30569 /* end confdefs.h. */
30570 #include <$ac_header>
30572 if { (ac_try="$ac_cpp conftest.$ac_ext"
30573 case "(($ac_try" in
30574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575 *) ac_try_echo=$ac_try;;
30577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30580 grep -v '^ *+' conftest.er1 >conftest.err
30582 cat conftest.err >&5
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); } >/dev/null && {
30585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30586 test ! -s conftest.err
30588 ac_header_preproc=yes
30590 echo "$as_me: failed program was:" >&5
30591 sed 's/^/| /' conftest.$ac_ext >&5
30593 ac_header_preproc=no
30596 rm -f conftest.err conftest.$ac_ext
30597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30598 echo "${ECHO_T}$ac_header_preproc" >&6; }
30600 # So? What about this header?
30601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30607 ac_header_preproc=yes
30610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30628 echo $ECHO_N "(cached) $ECHO_C" >&6
30630 eval "$as_ac_Header=\$ac_header_preproc"
30632 ac_res=`eval echo '${'$as_ac_Header'}'`
30633 { echo "$as_me:$LINENO: result: $ac_res" >&5
30634 echo "${ECHO_T}$ac_res" >&6; }
30637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30638 cat >>confdefs.h <<_ACEOF
30639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30646 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30648 if test "${ac_cv_header_stdc+set}" = set; then
30649 echo $ECHO_N "(cached) $ECHO_C" >&6
30651 cat >conftest.$ac_ext <<_ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h. */
30657 #include <stdlib.h>
30658 #include <stdarg.h>
30659 #include <string.h>
30670 rm -f conftest.$ac_objext
30671 if { (ac_try="$ac_compile"
30672 case "(($ac_try" in
30673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674 *) ac_try_echo=$ac_try;;
30676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677 (eval "$ac_compile") 2>conftest.er1
30679 grep -v '^ *+' conftest.er1 >conftest.err
30681 cat conftest.err >&5
30682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683 (exit $ac_status); } && {
30684 test -z "$ac_c_werror_flag" ||
30685 test ! -s conftest.err
30686 } && test -s conftest.$ac_objext; then
30687 ac_cv_header_stdc=yes
30689 echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30692 ac_cv_header_stdc=no
30695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30697 if test $ac_cv_header_stdc = yes; then
30698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30699 cat >conftest.$ac_ext <<_ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h. */
30705 #include <string.h>
30708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30709 $EGREP "memchr" >/dev/null 2>&1; then
30712 ac_cv_header_stdc=no
30718 if test $ac_cv_header_stdc = yes; then
30719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30720 cat >conftest.$ac_ext <<_ACEOF
30723 cat confdefs.h >>conftest.$ac_ext
30724 cat >>conftest.$ac_ext <<_ACEOF
30725 /* end confdefs.h. */
30726 #include <stdlib.h>
30729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30730 $EGREP "free" >/dev/null 2>&1; then
30733 ac_cv_header_stdc=no
30739 if test $ac_cv_header_stdc = yes; then
30740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30741 if test "$cross_compiling" = yes; then
30744 cat >conftest.$ac_ext <<_ACEOF
30747 cat confdefs.h >>conftest.$ac_ext
30748 cat >>conftest.$ac_ext <<_ACEOF
30749 /* end confdefs.h. */
30751 #include <stdlib.h>
30752 #if ((' ' & 0x0FF) == 0x020)
30753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30756 # define ISLOWER(c) \
30757 (('a' <= (c) && (c) <= 'i') \
30758 || ('j' <= (c) && (c) <= 'r') \
30759 || ('s' <= (c) && (c) <= 'z'))
30760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30768 for (i = 0; i < 256; i++)
30769 if (XOR (islower (i), ISLOWER (i))
30770 || toupper (i) != TOUPPER (i))
30775 rm -f conftest$ac_exeext
30776 if { (ac_try="$ac_link"
30777 case "(($ac_try" in
30778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779 *) ac_try_echo=$ac_try;;
30781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782 (eval "$ac_link") 2>&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30786 { (case "(($ac_try" in
30787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788 *) ac_try_echo=$ac_try;;
30790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791 (eval "$ac_try") 2>&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); }; }; then
30797 echo "$as_me: program exited with status $ac_status" >&5
30798 echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30801 ( exit $ac_status )
30802 ac_cv_header_stdc=no
30804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30810 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30811 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30812 if test $ac_cv_header_stdc = yes; then
30814 cat >>confdefs.h <<\_ACEOF
30815 #define STDC_HEADERS 1
30820 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30821 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30822 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30823 echo $ECHO_N "(cached) $ECHO_C" >&6
30825 cat >conftest.$ac_ext <<_ACEOF
30828 cat confdefs.h >>conftest.$ac_ext
30829 cat >>conftest.$ac_ext <<_ACEOF
30830 /* end confdefs.h. */
30831 #include <sys/types.h>
30835 return makedev(0, 0);
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844 *) ac_try_echo=$ac_try;;
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847 (eval "$ac_link") 2>conftest.er1
30849 grep -v '^ *+' conftest.er1 >conftest.err
30851 cat conftest.err >&5
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); } && {
30854 test -z "$ac_c_werror_flag" ||
30855 test ! -s conftest.err
30856 } && test -s conftest$ac_exeext &&
30857 $as_test_x conftest$ac_exeext; then
30858 ac_cv_header_sys_types_h_makedev=yes
30860 echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30863 ac_cv_header_sys_types_h_makedev=no
30866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30867 conftest$ac_exeext conftest.$ac_ext
30870 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30871 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30873 if test $ac_cv_header_sys_types_h_makedev = no; then
30874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30875 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30876 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30877 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30878 echo $ECHO_N "(cached) $ECHO_C" >&6
30880 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30881 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30883 # Is the header compilable?
30884 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30885 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30886 cat >conftest.$ac_ext <<_ACEOF
30889 cat confdefs.h >>conftest.$ac_ext
30890 cat >>conftest.$ac_ext <<_ACEOF
30891 /* end confdefs.h. */
30892 $ac_includes_default
30893 #include <sys/mkdev.h>
30895 rm -f conftest.$ac_objext
30896 if { (ac_try="$ac_compile"
30897 case "(($ac_try" in
30898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30899 *) ac_try_echo=$ac_try;;
30901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30902 (eval "$ac_compile") 2>conftest.er1
30904 grep -v '^ *+' conftest.er1 >conftest.err
30906 cat conftest.err >&5
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); } && {
30909 test -z "$ac_c_werror_flag" ||
30910 test ! -s conftest.err
30911 } && test -s conftest.$ac_objext; then
30912 ac_header_compiler=yes
30914 echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30917 ac_header_compiler=no
30920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30922 echo "${ECHO_T}$ac_header_compiler" >&6; }
30924 # Is the header present?
30925 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30926 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30927 cat >conftest.$ac_ext <<_ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30933 #include <sys/mkdev.h>
30935 if { (ac_try="$ac_cpp conftest.$ac_ext"
30936 case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30943 grep -v '^ *+' conftest.er1 >conftest.err
30945 cat conftest.err >&5
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } >/dev/null && {
30948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30949 test ! -s conftest.err
30951 ac_header_preproc=yes
30953 echo "$as_me: failed program was:" >&5
30954 sed 's/^/| /' conftest.$ac_ext >&5
30956 ac_header_preproc=no
30959 rm -f conftest.err conftest.$ac_ext
30960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30961 echo "${ECHO_T}$ac_header_preproc" >&6; }
30963 # So? What about this header?
30964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30966 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30967 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30969 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30970 ac_header_preproc=yes
30973 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30974 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30975 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30976 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30977 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30978 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30979 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30980 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30981 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30982 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30983 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30984 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30988 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30989 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30990 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30991 echo $ECHO_N "(cached) $ECHO_C" >&6
30993 ac_cv_header_sys_mkdev_h=$ac_header_preproc
30995 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30996 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30999 if test $ac_cv_header_sys_mkdev_h = yes; then
31001 cat >>confdefs.h <<\_ACEOF
31002 #define MAJOR_IN_MKDEV 1
31009 if test $ac_cv_header_sys_mkdev_h = no; then
31010 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31011 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31012 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31013 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31014 echo $ECHO_N "(cached) $ECHO_C" >&6
31016 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31017 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31019 # Is the header compilable?
31020 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31021 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31022 cat >conftest.$ac_ext <<_ACEOF
31025 cat confdefs.h >>conftest.$ac_ext
31026 cat >>conftest.$ac_ext <<_ACEOF
31027 /* end confdefs.h. */
31028 $ac_includes_default
31029 #include <sys/sysmacros.h>
31031 rm -f conftest.$ac_objext
31032 if { (ac_try="$ac_compile"
31033 case "(($ac_try" in
31034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_compile") 2>conftest.er1
31040 grep -v '^ *+' conftest.er1 >conftest.err
31042 cat conftest.err >&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } && {
31045 test -z "$ac_c_werror_flag" ||
31046 test ! -s conftest.err
31047 } && test -s conftest.$ac_objext; then
31048 ac_header_compiler=yes
31050 echo "$as_me: failed program was:" >&5
31051 sed 's/^/| /' conftest.$ac_ext >&5
31053 ac_header_compiler=no
31056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31058 echo "${ECHO_T}$ac_header_compiler" >&6; }
31060 # Is the header present?
31061 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31062 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31063 cat >conftest.$ac_ext <<_ACEOF
31066 cat confdefs.h >>conftest.$ac_ext
31067 cat >>conftest.$ac_ext <<_ACEOF
31068 /* end confdefs.h. */
31069 #include <sys/sysmacros.h>
31071 if { (ac_try="$ac_cpp conftest.$ac_ext"
31072 case "(($ac_try" in
31073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31074 *) ac_try_echo=$ac_try;;
31076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31079 grep -v '^ *+' conftest.er1 >conftest.err
31081 cat conftest.err >&5
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); } >/dev/null && {
31084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31085 test ! -s conftest.err
31087 ac_header_preproc=yes
31089 echo "$as_me: failed program was:" >&5
31090 sed 's/^/| /' conftest.$ac_ext >&5
31092 ac_header_preproc=no
31095 rm -f conftest.err conftest.$ac_ext
31096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31097 echo "${ECHO_T}$ac_header_preproc" >&6; }
31099 # So? What about this header?
31100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31102 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31103 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31105 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31106 ac_header_preproc=yes
31109 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31110 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31112 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31114 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31116 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31118 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31120 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31124 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31125 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31126 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31127 echo $ECHO_N "(cached) $ECHO_C" >&6
31129 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31131 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31132 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31135 if test $ac_cv_header_sys_sysmacros_h = yes; then
31137 cat >>confdefs.h <<\_ACEOF
31138 #define MAJOR_IN_SYSMACROS 1
31152 ac_header_dirent=no
31153 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31154 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31155 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31156 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31158 echo $ECHO_N "(cached) $ECHO_C" >&6
31160 cat >conftest.$ac_ext <<_ACEOF
31163 cat confdefs.h >>conftest.$ac_ext
31164 cat >>conftest.$ac_ext <<_ACEOF
31165 /* end confdefs.h. */
31166 #include <sys/types.h>
31178 rm -f conftest.$ac_objext
31179 if { (ac_try="$ac_compile"
31180 case "(($ac_try" in
31181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31182 *) ac_try_echo=$ac_try;;
31184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31185 (eval "$ac_compile") 2>conftest.er1
31187 grep -v '^ *+' conftest.er1 >conftest.err
31189 cat conftest.err >&5
31190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191 (exit $ac_status); } && {
31192 test -z "$ac_c_werror_flag" ||
31193 test ! -s conftest.err
31194 } && test -s conftest.$ac_objext; then
31195 eval "$as_ac_Header=yes"
31197 echo "$as_me: failed program was:" >&5
31198 sed 's/^/| /' conftest.$ac_ext >&5
31200 eval "$as_ac_Header=no"
31203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31205 ac_res=`eval echo '${'$as_ac_Header'}'`
31206 { echo "$as_me:$LINENO: result: $ac_res" >&5
31207 echo "${ECHO_T}$ac_res" >&6; }
31208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31209 cat >>confdefs.h <<_ACEOF
31210 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31213 ac_header_dirent=$ac_hdr; break
31217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31218 if test $ac_header_dirent = dirent.h; then
31219 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31220 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31221 if test "${ac_cv_search_opendir+set}" = set; then
31222 echo $ECHO_N "(cached) $ECHO_C" >&6
31224 ac_func_search_save_LIBS=$LIBS
31225 cat >conftest.$ac_ext <<_ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h. */
31232 /* Override any GCC internal prototype to avoid an error.
31233 Use char because int might match the return type of a GCC
31234 builtin and then its argument prototype would still apply. */
31247 for ac_lib in '' dir; do
31248 if test -z "$ac_lib"; then
31249 ac_res="none required"
31252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31254 rm -f conftest.$ac_objext conftest$ac_exeext
31255 if { (ac_try="$ac_link"
31256 case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_link") 2>conftest.er1
31263 grep -v '^ *+' conftest.er1 >conftest.err
31265 cat conftest.err >&5
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); } && {
31268 test -z "$ac_c_werror_flag" ||
31269 test ! -s conftest.err
31270 } && test -s conftest$ac_exeext &&
31271 $as_test_x conftest$ac_exeext; then
31272 ac_cv_search_opendir=$ac_res
31274 echo "$as_me: failed program was:" >&5
31275 sed 's/^/| /' conftest.$ac_ext >&5
31280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31282 if test "${ac_cv_search_opendir+set}" = set; then
31286 if test "${ac_cv_search_opendir+set}" = set; then
31289 ac_cv_search_opendir=no
31291 rm conftest.$ac_ext
31292 LIBS=$ac_func_search_save_LIBS
31294 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31295 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31296 ac_res=$ac_cv_search_opendir
31297 if test "$ac_res" != no; then
31298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31303 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31304 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31305 if test "${ac_cv_search_opendir+set}" = set; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31308 ac_func_search_save_LIBS=$LIBS
31309 cat >conftest.$ac_ext <<_ACEOF
31312 cat confdefs.h >>conftest.$ac_ext
31313 cat >>conftest.$ac_ext <<_ACEOF
31314 /* end confdefs.h. */
31316 /* Override any GCC internal prototype to avoid an error.
31317 Use char because int might match the return type of a GCC
31318 builtin and then its argument prototype would still apply. */
31331 for ac_lib in '' x; do
31332 if test -z "$ac_lib"; then
31333 ac_res="none required"
31336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31338 rm -f conftest.$ac_objext conftest$ac_exeext
31339 if { (ac_try="$ac_link"
31340 case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_link") 2>conftest.er1
31347 grep -v '^ *+' conftest.er1 >conftest.err
31349 cat conftest.err >&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); } && {
31352 test -z "$ac_c_werror_flag" ||
31353 test ! -s conftest.err
31354 } && test -s conftest$ac_exeext &&
31355 $as_test_x conftest$ac_exeext; then
31356 ac_cv_search_opendir=$ac_res
31358 echo "$as_me: failed program was:" >&5
31359 sed 's/^/| /' conftest.$ac_ext >&5
31364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31366 if test "${ac_cv_search_opendir+set}" = set; then
31370 if test "${ac_cv_search_opendir+set}" = set; then
31373 ac_cv_search_opendir=no
31375 rm conftest.$ac_ext
31376 LIBS=$ac_func_search_save_LIBS
31378 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31379 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31380 ac_res=$ac_cv_search_opendir
31381 if test "$ac_res" != no; then
31382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31388 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31389 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31390 if test "${ac_cv_header_stat_broken+set}" = set; then
31391 echo $ECHO_N "(cached) $ECHO_C" >&6
31393 cat >conftest.$ac_ext <<_ACEOF
31396 cat confdefs.h >>conftest.$ac_ext
31397 cat >>conftest.$ac_ext <<_ACEOF
31398 /* end confdefs.h. */
31399 #include <sys/types.h>
31400 #include <sys/stat.h>
31402 #if defined S_ISBLK && defined S_IFDIR
31403 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31406 #if defined S_ISBLK && defined S_IFCHR
31407 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31410 #if defined S_ISLNK && defined S_IFREG
31411 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31414 #if defined S_ISSOCK && defined S_IFREG
31415 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31419 rm -f conftest.$ac_objext
31420 if { (ac_try="$ac_compile"
31421 case "(($ac_try" in
31422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31423 *) ac_try_echo=$ac_try;;
31425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31426 (eval "$ac_compile") 2>conftest.er1
31428 grep -v '^ *+' conftest.er1 >conftest.err
31430 cat conftest.err >&5
31431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31432 (exit $ac_status); } && {
31433 test -z "$ac_c_werror_flag" ||
31434 test ! -s conftest.err
31435 } && test -s conftest.$ac_objext; then
31436 ac_cv_header_stat_broken=no
31438 echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31441 ac_cv_header_stat_broken=yes
31444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31446 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31447 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31448 if test $ac_cv_header_stat_broken = yes; then
31450 cat >>confdefs.h <<\_ACEOF
31451 #define STAT_MACROS_BROKEN 1
31456 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31457 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31458 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31459 echo $ECHO_N "(cached) $ECHO_C" >&6
31461 cat >conftest.$ac_ext <<_ACEOF
31464 cat confdefs.h >>conftest.$ac_ext
31465 cat >>conftest.$ac_ext <<_ACEOF
31466 /* end confdefs.h. */
31467 #include <sys/types.h>
31468 #include <sys/wait.h>
31469 #ifndef WEXITSTATUS
31470 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31473 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31481 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31486 rm -f conftest.$ac_objext
31487 if { (ac_try="$ac_compile"
31488 case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31493 (eval "$ac_compile") 2>conftest.er1
31495 grep -v '^ *+' conftest.er1 >conftest.err
31497 cat conftest.err >&5
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); } && {
31500 test -z "$ac_c_werror_flag" ||
31501 test ! -s conftest.err
31502 } && test -s conftest.$ac_objext; then
31503 ac_cv_header_sys_wait_h=yes
31505 echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31508 ac_cv_header_sys_wait_h=no
31511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31513 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31514 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31515 if test $ac_cv_header_sys_wait_h = yes; then
31517 cat >>confdefs.h <<\_ACEOF
31518 #define HAVE_SYS_WAIT_H 1
31523 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31525 if test "${ac_cv_header_time+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31528 cat >conftest.$ac_ext <<_ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h. */
31534 #include <sys/types.h>
31535 #include <sys/time.h>
31541 if ((struct tm *) 0)
31547 rm -f conftest.$ac_objext
31548 if { (ac_try="$ac_compile"
31549 case "(($ac_try" in
31550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31551 *) ac_try_echo=$ac_try;;
31553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31554 (eval "$ac_compile") 2>conftest.er1
31556 grep -v '^ *+' conftest.er1 >conftest.err
31558 cat conftest.err >&5
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); } && {
31561 test -z "$ac_c_werror_flag" ||
31562 test ! -s conftest.err
31563 } && test -s conftest.$ac_objext; then
31564 ac_cv_header_time=yes
31566 echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31569 ac_cv_header_time=no
31572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31574 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31575 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31576 if test $ac_cv_header_time = yes; then
31578 cat >>confdefs.h <<\_ACEOF
31579 #define TIME_WITH_SYS_TIME 1
31584 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31585 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31586 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31587 echo $ECHO_N "(cached) $ECHO_C" >&6
31589 cat >conftest.$ac_ext <<_ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31595 $ac_includes_default
31599 static struct stat ac_aggr;
31600 if (ac_aggr.st_blksize)
31606 rm -f conftest.$ac_objext
31607 if { (ac_try="$ac_compile"
31608 case "(($ac_try" in
31609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610 *) ac_try_echo=$ac_try;;
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_compile") 2>conftest.er1
31615 grep -v '^ *+' conftest.er1 >conftest.err
31617 cat conftest.err >&5
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); } && {
31620 test -z "$ac_c_werror_flag" ||
31621 test ! -s conftest.err
31622 } && test -s conftest.$ac_objext; then
31623 ac_cv_member_struct_stat_st_blksize=yes
31625 echo "$as_me: failed program was:" >&5
31626 sed 's/^/| /' conftest.$ac_ext >&5
31628 cat >conftest.$ac_ext <<_ACEOF
31631 cat confdefs.h >>conftest.$ac_ext
31632 cat >>conftest.$ac_ext <<_ACEOF
31633 /* end confdefs.h. */
31634 $ac_includes_default
31638 static struct stat ac_aggr;
31639 if (sizeof ac_aggr.st_blksize)
31645 rm -f conftest.$ac_objext
31646 if { (ac_try="$ac_compile"
31647 case "(($ac_try" in
31648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649 *) ac_try_echo=$ac_try;;
31651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652 (eval "$ac_compile") 2>conftest.er1
31654 grep -v '^ *+' conftest.er1 >conftest.err
31656 cat conftest.err >&5
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); } && {
31659 test -z "$ac_c_werror_flag" ||
31660 test ! -s conftest.err
31661 } && test -s conftest.$ac_objext; then
31662 ac_cv_member_struct_stat_st_blksize=yes
31664 echo "$as_me: failed program was:" >&5
31665 sed 's/^/| /' conftest.$ac_ext >&5
31667 ac_cv_member_struct_stat_st_blksize=no
31670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31675 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31676 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31677 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31679 cat >>confdefs.h <<_ACEOF
31680 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31684 cat >>confdefs.h <<\_ACEOF
31685 #define HAVE_ST_BLKSIZE 1
31691 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31692 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31693 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31694 echo $ECHO_N "(cached) $ECHO_C" >&6
31696 cat >conftest.$ac_ext <<_ACEOF
31699 cat confdefs.h >>conftest.$ac_ext
31700 cat >>conftest.$ac_ext <<_ACEOF
31701 /* end confdefs.h. */
31702 $ac_includes_default
31706 static struct stat ac_aggr;
31707 if (ac_aggr.st_blocks)
31713 rm -f conftest.$ac_objext
31714 if { (ac_try="$ac_compile"
31715 case "(($ac_try" in
31716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717 *) ac_try_echo=$ac_try;;
31719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720 (eval "$ac_compile") 2>conftest.er1
31722 grep -v '^ *+' conftest.er1 >conftest.err
31724 cat conftest.err >&5
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); } && {
31727 test -z "$ac_c_werror_flag" ||
31728 test ! -s conftest.err
31729 } && test -s conftest.$ac_objext; then
31730 ac_cv_member_struct_stat_st_blocks=yes
31732 echo "$as_me: failed program was:" >&5
31733 sed 's/^/| /' conftest.$ac_ext >&5
31735 cat >conftest.$ac_ext <<_ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h. */
31741 $ac_includes_default
31745 static struct stat ac_aggr;
31746 if (sizeof ac_aggr.st_blocks)
31752 rm -f conftest.$ac_objext
31753 if { (ac_try="$ac_compile"
31754 case "(($ac_try" in
31755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756 *) ac_try_echo=$ac_try;;
31758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759 (eval "$ac_compile") 2>conftest.er1
31761 grep -v '^ *+' conftest.er1 >conftest.err
31763 cat conftest.err >&5
31764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765 (exit $ac_status); } && {
31766 test -z "$ac_c_werror_flag" ||
31767 test ! -s conftest.err
31768 } && test -s conftest.$ac_objext; then
31769 ac_cv_member_struct_stat_st_blocks=yes
31771 echo "$as_me: failed program was:" >&5
31772 sed 's/^/| /' conftest.$ac_ext >&5
31774 ac_cv_member_struct_stat_st_blocks=no
31777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31782 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31783 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31784 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31786 cat >>confdefs.h <<_ACEOF
31787 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31791 cat >>confdefs.h <<\_ACEOF
31792 #define HAVE_ST_BLOCKS 1
31796 case " $LIBOBJS " in
31797 *" fileblocks.$ac_objext "* ) ;;
31798 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31805 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31806 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31807 if test "${ac_cv_struct_tm+set}" = set; then
31808 echo $ECHO_N "(cached) $ECHO_C" >&6
31810 cat >conftest.$ac_ext <<_ACEOF
31813 cat confdefs.h >>conftest.$ac_ext
31814 cat >>conftest.$ac_ext <<_ACEOF
31815 /* end confdefs.h. */
31816 #include <sys/types.h>
31823 int *p = &tm.tm_sec;
31829 rm -f conftest.$ac_objext
31830 if { (ac_try="$ac_compile"
31831 case "(($ac_try" in
31832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833 *) ac_try_echo=$ac_try;;
31835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836 (eval "$ac_compile") 2>conftest.er1
31838 grep -v '^ *+' conftest.er1 >conftest.err
31840 cat conftest.err >&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); } && {
31843 test -z "$ac_c_werror_flag" ||
31844 test ! -s conftest.err
31845 } && test -s conftest.$ac_objext; then
31846 ac_cv_struct_tm=time.h
31848 echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31851 ac_cv_struct_tm=sys/time.h
31854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31856 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31857 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31858 if test $ac_cv_struct_tm = sys/time.h; then
31860 cat >>confdefs.h <<\_ACEOF
31861 #define TM_IN_SYS_TIME 1
31866 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31867 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31868 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31869 echo $ECHO_N "(cached) $ECHO_C" >&6
31871 cat >conftest.$ac_ext <<_ACEOF
31874 cat confdefs.h >>conftest.$ac_ext
31875 cat >>conftest.$ac_ext <<_ACEOF
31876 /* end confdefs.h. */
31877 #include <sys/types.h>
31878 #include <$ac_cv_struct_tm>
31884 static struct tm ac_aggr;
31885 if (ac_aggr.tm_zone)
31891 rm -f conftest.$ac_objext
31892 if { (ac_try="$ac_compile"
31893 case "(($ac_try" in
31894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31895 *) ac_try_echo=$ac_try;;
31897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31898 (eval "$ac_compile") 2>conftest.er1
31900 grep -v '^ *+' conftest.er1 >conftest.err
31902 cat conftest.err >&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); } && {
31905 test -z "$ac_c_werror_flag" ||
31906 test ! -s conftest.err
31907 } && test -s conftest.$ac_objext; then
31908 ac_cv_member_struct_tm_tm_zone=yes
31910 echo "$as_me: failed program was:" >&5
31911 sed 's/^/| /' conftest.$ac_ext >&5
31913 cat >conftest.$ac_ext <<_ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h. */
31919 #include <sys/types.h>
31920 #include <$ac_cv_struct_tm>
31926 static struct tm ac_aggr;
31927 if (sizeof ac_aggr.tm_zone)
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_compile") 2>conftest.er1
31942 grep -v '^ *+' conftest.er1 >conftest.err
31944 cat conftest.err >&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } && {
31947 test -z "$ac_c_werror_flag" ||
31948 test ! -s conftest.err
31949 } && test -s conftest.$ac_objext; then
31950 ac_cv_member_struct_tm_tm_zone=yes
31952 echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31955 ac_cv_member_struct_tm_tm_zone=no
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31963 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31964 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31965 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31967 cat >>confdefs.h <<_ACEOF
31968 #define HAVE_STRUCT_TM_TM_ZONE 1
31974 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31976 cat >>confdefs.h <<\_ACEOF
31977 #define HAVE_TM_ZONE 1
31981 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31982 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31983 if test "${ac_cv_have_decl_tzname+set}" = set; then
31984 echo $ECHO_N "(cached) $ECHO_C" >&6
31986 cat >conftest.$ac_ext <<_ACEOF
31989 cat confdefs.h >>conftest.$ac_ext
31990 cat >>conftest.$ac_ext <<_ACEOF
31991 /* end confdefs.h. */
32005 rm -f conftest.$ac_objext
32006 if { (ac_try="$ac_compile"
32007 case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_compile") 2>conftest.er1
32014 grep -v '^ *+' conftest.er1 >conftest.err
32016 cat conftest.err >&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); } && {
32019 test -z "$ac_c_werror_flag" ||
32020 test ! -s conftest.err
32021 } && test -s conftest.$ac_objext; then
32022 ac_cv_have_decl_tzname=yes
32024 echo "$as_me: failed program was:" >&5
32025 sed 's/^/| /' conftest.$ac_ext >&5
32027 ac_cv_have_decl_tzname=no
32030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32032 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32033 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32034 if test $ac_cv_have_decl_tzname = yes; then
32036 cat >>confdefs.h <<_ACEOF
32037 #define HAVE_DECL_TZNAME 1
32042 cat >>confdefs.h <<_ACEOF
32043 #define HAVE_DECL_TZNAME 0
32050 { echo "$as_me:$LINENO: checking for tzname" >&5
32051 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32052 if test "${ac_cv_var_tzname+set}" = set; then
32053 echo $ECHO_N "(cached) $ECHO_C" >&6
32055 cat >conftest.$ac_ext <<_ACEOF
32058 cat confdefs.h >>conftest.$ac_ext
32059 cat >>conftest.$ac_ext <<_ACEOF
32060 /* end confdefs.h. */
32062 #if !HAVE_DECL_TZNAME
32063 extern char *tzname[];
32069 return tzname[0][0];
32074 rm -f conftest.$ac_objext conftest$ac_exeext
32075 if { (ac_try="$ac_link"
32076 case "(($ac_try" in
32077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32078 *) ac_try_echo=$ac_try;;
32080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32081 (eval "$ac_link") 2>conftest.er1
32083 grep -v '^ *+' conftest.er1 >conftest.err
32085 cat conftest.err >&5
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); } && {
32088 test -z "$ac_c_werror_flag" ||
32089 test ! -s conftest.err
32090 } && test -s conftest$ac_exeext &&
32091 $as_test_x conftest$ac_exeext; then
32092 ac_cv_var_tzname=yes
32094 echo "$as_me: failed program was:" >&5
32095 sed 's/^/| /' conftest.$ac_ext >&5
32097 ac_cv_var_tzname=no
32100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32101 conftest$ac_exeext conftest.$ac_ext
32103 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32104 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32105 if test $ac_cv_var_tzname = yes; then
32107 cat >>confdefs.h <<\_ACEOF
32108 #define HAVE_TZNAME 1
32115 { echo "$as_me:$LINENO: checking for utime.h" >&5
32116 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32117 if test "${ba_cv_header_utime_h+set}" = set; then
32118 echo $ECHO_N "(cached) $ECHO_C" >&6
32121 cat >conftest.$ac_ext <<_ACEOF
32124 cat confdefs.h >>conftest.$ac_ext
32125 cat >>conftest.$ac_ext <<_ACEOF
32126 /* end confdefs.h. */
32128 #include <sys/types.h>
32141 rm -f conftest.$ac_objext
32142 if { (ac_try="$ac_compile"
32143 case "(($ac_try" in
32144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145 *) ac_try_echo=$ac_try;;
32147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148 (eval "$ac_compile") 2>conftest.er1
32150 grep -v '^ *+' conftest.er1 >conftest.err
32152 cat conftest.err >&5
32153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); } && {
32155 test -z "$ac_c_werror_flag" ||
32156 test ! -s conftest.err
32157 } && test -s conftest.$ac_objext; then
32159 ba_cv_header_utime_h=yes
32162 echo "$as_me: failed program was:" >&5
32163 sed 's/^/| /' conftest.$ac_ext >&5
32166 ba_cv_header_utime_h=no
32171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32175 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32176 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32177 test $ba_cv_header_utime_h = yes &&
32178 cat >>confdefs.h <<\_ACEOF
32179 #define HAVE_UTIME_H 1
32183 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32184 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32185 if test "${ba_cv_header_socklen_t+set}" = set; then
32186 echo $ECHO_N "(cached) $ECHO_C" >&6
32189 cat >conftest.$ac_ext <<_ACEOF
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h. */
32196 #include <sys/types.h>
32197 #include <sys/socket.h>
32209 rm -f conftest.$ac_objext
32210 if { (ac_try="$ac_compile"
32211 case "(($ac_try" in
32212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213 *) ac_try_echo=$ac_try;;
32215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216 (eval "$ac_compile") 2>conftest.er1
32218 grep -v '^ *+' conftest.er1 >conftest.err
32220 cat conftest.err >&5
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); } && {
32223 test -z "$ac_c_werror_flag" ||
32224 test ! -s conftest.err
32225 } && test -s conftest.$ac_objext; then
32227 ba_cv_header_socklen_t=yes
32230 echo "$as_me: failed program was:" >&5
32231 sed 's/^/| /' conftest.$ac_ext >&5
32234 ba_cv_header_socklen_t=no
32239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32243 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32244 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32245 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32246 #define HAVE_SOCKLEN_T 1
32250 { echo "$as_me:$LINENO: checking for bigendian" >&5
32251 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32252 if test "${ba_cv_bigendian+set}" = set; then
32253 echo $ECHO_N "(cached) $ECHO_C" >&6
32256 if test "$cross_compiling" = yes; then
32262 cat >conftest.$ac_ext <<_ACEOF
32265 cat confdefs.h >>conftest.$ac_ext
32266 cat >>conftest.$ac_ext <<_ACEOF
32267 /* end confdefs.h. */
32269 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32272 rm -f conftest$ac_exeext
32273 if { (ac_try="$ac_link"
32274 case "(($ac_try" in
32275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276 *) ac_try_echo=$ac_try;;
32278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279 (eval "$ac_link") 2>&5
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32283 { (case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_try") 2>&5
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; }; then
32293 ba_cv_bigendian=yes
32296 echo "$as_me: program exited with status $ac_status" >&5
32297 echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.$ac_ext >&5
32300 ( exit $ac_status )
32305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32312 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32313 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32314 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32315 #define HAVE_BIGENDIAN 1
32320 ac_cpp='$CXXCPP $CPPFLAGS'
32321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32325 { echo "$as_me:$LINENO: checking for typeof" >&5
32326 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32327 if test "${ba_cv_have_typeof+set}" = set; then
32328 echo $ECHO_N "(cached) $ECHO_C" >&6
32331 if test "$cross_compiling" = yes; then
32333 ba_cv_have_typeof=no
32337 cat >conftest.$ac_ext <<_ACEOF
32340 cat confdefs.h >>conftest.$ac_ext
32341 cat >>conftest.$ac_ext <<_ACEOF
32342 /* end confdefs.h. */
32344 main(){char *a = 0; a = (typeof a)a;}
32347 rm -f conftest$ac_exeext
32348 if { (ac_try="$ac_link"
32349 case "(($ac_try" in
32350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32351 *) ac_try_echo=$ac_try;;
32353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32354 (eval "$ac_link") 2>&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; }; then
32368 ba_cv_have_typeof=yes
32371 echo "$as_me: program exited with status $ac_status" >&5
32372 echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32375 ( exit $ac_status )
32377 ba_cv_have_typeof=no
32380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32387 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32388 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32389 test $ba_cv_have_typeof = yes &&
32390 cat >>confdefs.h <<\_ACEOF
32391 #define HAVE_TYPEOF 1
32395 ac_cpp='$CPP $CPPFLAGS'
32396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32401 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32402 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32403 if test "${ac_cv_c_const+set}" = set; then
32404 echo $ECHO_N "(cached) $ECHO_C" >&6
32406 cat >conftest.$ac_ext <<_ACEOF
32409 cat confdefs.h >>conftest.$ac_ext
32410 cat >>conftest.$ac_ext <<_ACEOF
32411 /* end confdefs.h. */
32416 /* FIXME: Include the comments suggested by Paul. */
32417 #ifndef __cplusplus
32418 /* Ultrix mips cc rejects this. */
32419 typedef int charset[2];
32421 /* SunOS 4.1.1 cc rejects this. */
32422 char const *const *pcpcc;
32424 /* NEC SVR4.0.2 mips cc rejects this. */
32425 struct point {int x, y;};
32426 static struct point const zero = {0,0};
32427 /* AIX XL C 1.02.0.0 rejects this.
32428 It does not let you subtract one const X* pointer from another in
32429 an arm of an if-expression whose if-part is not a constant
32431 const char *g = "string";
32432 pcpcc = &g + (g ? g-g : 0);
32433 /* HPUX 7.0 cc rejects these. */
32435 ppc = (char**) pcpcc;
32436 pcpcc = (char const *const *) ppc;
32437 { /* SCO 3.2v4 cc rejects this. */
32439 char const *s = 0 ? (char *) 0 : (char const *) 0;
32444 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32445 int x[] = {25, 17};
32446 const int *foo = &x[0];
32449 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32450 typedef const int *iptr;
32454 { /* AIX XL C 1.02.0.0 rejects this saying
32455 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32456 struct s { int j; const int *ap[3]; };
32457 struct s *b; b->j = 5;
32459 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32460 const int foo = 10;
32461 if (!foo) return 0;
32463 return !cs[0] && !zero.x;
32470 rm -f conftest.$ac_objext
32471 if { (ac_try="$ac_compile"
32472 case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477 (eval "$ac_compile") 2>conftest.er1
32479 grep -v '^ *+' conftest.er1 >conftest.err
32481 cat conftest.err >&5
32482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32483 (exit $ac_status); } && {
32484 test -z "$ac_c_werror_flag" ||
32485 test ! -s conftest.err
32486 } && test -s conftest.$ac_objext; then
32489 echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32497 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32498 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32499 if test $ac_cv_c_const = no; then
32501 cat >>confdefs.h <<\_ACEOF
32508 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32509 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32511 # The order of these tests is important.
32512 cat >conftest.$ac_ext <<_ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h. */
32519 #include <sys/statvfs.h>
32520 #include <sys/fstyp.h>
32523 if { (ac_try="$ac_cpp conftest.$ac_ext"
32524 case "(($ac_try" in
32525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526 *) ac_try_echo=$ac_try;;
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32531 grep -v '^ *+' conftest.er1 >conftest.err
32533 cat conftest.err >&5
32534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); } >/dev/null && {
32536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32537 test ! -s conftest.err
32539 cat >>confdefs.h <<\_ACEOF
32540 #define FSTYPE_STATVFS 1
32545 echo "$as_me: failed program was:" >&5
32546 sed 's/^/| /' conftest.$ac_ext >&5
32551 rm -f conftest.err conftest.$ac_ext
32552 if test $fstype = no; then
32553 cat >conftest.$ac_ext <<_ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h. */
32560 #include <sys/statfs.h>
32561 #include <sys/fstyp.h>
32564 if { (ac_try="$ac_cpp conftest.$ac_ext"
32565 case "(($ac_try" in
32566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567 *) ac_try_echo=$ac_try;;
32569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32572 grep -v '^ *+' conftest.er1 >conftest.err
32574 cat conftest.err >&5
32575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32576 (exit $ac_status); } >/dev/null && {
32577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32578 test ! -s conftest.err
32580 cat >>confdefs.h <<\_ACEOF
32581 #define FSTYPE_USG_STATFS 1
32586 echo "$as_me: failed program was:" >&5
32587 sed 's/^/| /' conftest.$ac_ext >&5
32592 rm -f conftest.err conftest.$ac_ext
32594 if test $fstype = no; then
32595 cat >conftest.$ac_ext <<_ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h. */
32602 #include <sys/statfs.h>
32603 #include <sys/vmount.h>
32606 if { (ac_try="$ac_cpp conftest.$ac_ext"
32607 case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32614 grep -v '^ *+' conftest.er1 >conftest.err
32616 cat conftest.err >&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); } >/dev/null && {
32619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32620 test ! -s conftest.err
32622 cat >>confdefs.h <<\_ACEOF
32623 #define FSTYPE_AIX_STATFS 1
32628 echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32634 rm -f conftest.err conftest.$ac_ext
32636 if test $fstype = no; then
32637 cat >conftest.$ac_ext <<_ACEOF
32640 cat confdefs.h >>conftest.$ac_ext
32641 cat >>conftest.$ac_ext <<_ACEOF
32642 /* end confdefs.h. */
32644 #include <mntent.h>
32647 if { (ac_try="$ac_cpp conftest.$ac_ext"
32648 case "(($ac_try" in
32649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650 *) ac_try_echo=$ac_try;;
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32655 grep -v '^ *+' conftest.er1 >conftest.err
32657 cat conftest.err >&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } >/dev/null && {
32660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32661 test ! -s conftest.err
32663 cat >>confdefs.h <<\_ACEOF
32664 #define FSTYPE_MNTENT 1
32669 echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32675 rm -f conftest.err conftest.$ac_ext
32677 if test $fstype = no; then
32678 cat >conftest.$ac_ext <<_ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h. */
32684 #include <sys/mount.h>
32687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32688 $EGREP "f_type;" >/dev/null 2>&1; then
32689 cat >>confdefs.h <<\_ACEOF
32690 #define FSTYPE_STATFS 1
32697 if test $fstype = no; then
32698 cat >conftest.$ac_ext <<_ACEOF
32701 cat confdefs.h >>conftest.$ac_ext
32702 cat >>conftest.$ac_ext <<_ACEOF
32703 /* end confdefs.h. */
32705 #include <sys/mount.h>
32706 #include <sys/fs_types.h>
32709 if { (ac_try="$ac_cpp conftest.$ac_ext"
32710 case "(($ac_try" in
32711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712 *) ac_try_echo=$ac_try;;
32714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32717 grep -v '^ *+' conftest.er1 >conftest.err
32719 cat conftest.err >&5
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); } >/dev/null && {
32722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32723 test ! -s conftest.err
32725 cat >>confdefs.h <<\_ACEOF
32726 #define FSTYPE_GETMNT 1
32731 echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32737 rm -f conftest.err conftest.$ac_ext
32739 { echo "$as_me:$LINENO: result: $fstype" >&5
32740 echo "${ECHO_T}$fstype" >&6; }
32742 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32743 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32744 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32745 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32746 echo $ECHO_N "(cached) $ECHO_C" >&6
32748 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32749 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32751 # Is the header compilable?
32752 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32753 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32754 cat >conftest.$ac_ext <<_ACEOF
32757 cat confdefs.h >>conftest.$ac_ext
32758 cat >>conftest.$ac_ext <<_ACEOF
32759 /* end confdefs.h. */
32760 $ac_includes_default
32761 #include <sys/statvfs.h>
32763 rm -f conftest.$ac_objext
32764 if { (ac_try="$ac_compile"
32765 case "(($ac_try" in
32766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32767 *) ac_try_echo=$ac_try;;
32769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32770 (eval "$ac_compile") 2>conftest.er1
32772 grep -v '^ *+' conftest.er1 >conftest.err
32774 cat conftest.err >&5
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); } && {
32777 test -z "$ac_c_werror_flag" ||
32778 test ! -s conftest.err
32779 } && test -s conftest.$ac_objext; then
32780 ac_header_compiler=yes
32782 echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32785 ac_header_compiler=no
32788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32790 echo "${ECHO_T}$ac_header_compiler" >&6; }
32792 # Is the header present?
32793 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32794 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32795 cat >conftest.$ac_ext <<_ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h. */
32801 #include <sys/statvfs.h>
32803 if { (ac_try="$ac_cpp conftest.$ac_ext"
32804 case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32811 grep -v '^ *+' conftest.er1 >conftest.err
32813 cat conftest.err >&5
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); } >/dev/null && {
32816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32817 test ! -s conftest.err
32819 ac_header_preproc=yes
32821 echo "$as_me: failed program was:" >&5
32822 sed 's/^/| /' conftest.$ac_ext >&5
32824 ac_header_preproc=no
32827 rm -f conftest.err conftest.$ac_ext
32828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32829 echo "${ECHO_T}$ac_header_preproc" >&6; }
32831 # So? What about this header?
32832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32834 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32835 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32836 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32837 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32838 ac_header_preproc=yes
32841 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32842 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32843 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32844 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32845 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32846 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32847 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32848 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32849 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32850 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32851 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32852 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32856 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32857 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32858 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32859 echo $ECHO_N "(cached) $ECHO_C" >&6
32861 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32863 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32864 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32867 if test $ac_cv_header_sys_statvfs_h = yes; then
32869 cat >>confdefs.h <<\_ACEOF
32870 #define HAVE_SYS_STATVFS_H 1
32877 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32878 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32879 if test "${ac_cv_type_signal+set}" = set; then
32880 echo $ECHO_N "(cached) $ECHO_C" >&6
32882 cat >conftest.$ac_ext <<_ACEOF
32885 cat confdefs.h >>conftest.$ac_ext
32886 cat >>conftest.$ac_ext <<_ACEOF
32887 /* end confdefs.h. */
32888 #include <sys/types.h>
32889 #include <signal.h>
32894 return *(signal (0, 0)) (0) == 1;
32899 rm -f conftest.$ac_objext
32900 if { (ac_try="$ac_compile"
32901 case "(($ac_try" in
32902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903 *) ac_try_echo=$ac_try;;
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906 (eval "$ac_compile") 2>conftest.er1
32908 grep -v '^ *+' conftest.er1 >conftest.err
32910 cat conftest.err >&5
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); } && {
32913 test -z "$ac_c_werror_flag" ||
32914 test ! -s conftest.err
32915 } && test -s conftest.$ac_objext; then
32916 ac_cv_type_signal=int
32918 echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32921 ac_cv_type_signal=void
32924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32926 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32927 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32929 cat >>confdefs.h <<_ACEOF
32930 #define RETSIGTYPE $ac_cv_type_signal
32935 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32936 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32937 if test "${bash_cv_signal_vintage+set}" = set; then
32938 echo $ECHO_N "(cached) $ECHO_C" >&6
32941 cat >conftest.$ac_ext <<_ACEOF
32944 cat confdefs.h >>conftest.$ac_ext
32945 cat >>conftest.$ac_ext <<_ACEOF
32946 /* end confdefs.h. */
32947 #include <signal.h>
32953 struct sigaction sa;
32954 sigemptyset(&ss); sigsuspend(&ss);
32955 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32956 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32962 rm -f conftest.$ac_objext conftest$ac_exeext
32963 if { (ac_try="$ac_link"
32964 case "(($ac_try" in
32965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966 *) ac_try_echo=$ac_try;;
32968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969 (eval "$ac_link") 2>conftest.er1
32971 grep -v '^ *+' conftest.er1 >conftest.err
32973 cat conftest.err >&5
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); } && {
32976 test -z "$ac_c_werror_flag" ||
32977 test ! -s conftest.err
32978 } && test -s conftest$ac_exeext &&
32979 $as_test_x conftest$ac_exeext; then
32980 bash_cv_signal_vintage="posix"
32982 echo "$as_me: failed program was:" >&5
32983 sed 's/^/| /' conftest.$ac_ext >&5
32986 cat >conftest.$ac_ext <<_ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h. */
32992 #include <signal.h>
32997 int mask = sigmask(SIGINT);
32998 sigsetmask(mask); sigblock(mask); sigpause(mask);
33004 rm -f conftest.$ac_objext conftest$ac_exeext
33005 if { (ac_try="$ac_link"
33006 case "(($ac_try" in
33007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008 *) ac_try_echo=$ac_try;;
33010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011 (eval "$ac_link") 2>conftest.er1
33013 grep -v '^ *+' conftest.er1 >conftest.err
33015 cat conftest.err >&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } && {
33018 test -z "$ac_c_werror_flag" ||
33019 test ! -s conftest.err
33020 } && test -s conftest$ac_exeext &&
33021 $as_test_x conftest$ac_exeext; then
33022 bash_cv_signal_vintage="4.2bsd"
33024 echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33028 cat >conftest.$ac_ext <<_ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h. */
33035 #include <signal.h>
33036 RETSIGTYPE foo() { }
33041 int mask = sigmask(SIGINT);
33042 sigset(SIGINT, foo); sigrelse(SIGINT);
33043 sighold(SIGINT); sigpause(SIGINT);
33049 rm -f conftest.$ac_objext conftest$ac_exeext
33050 if { (ac_try="$ac_link"
33051 case "(($ac_try" in
33052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33053 *) ac_try_echo=$ac_try;;
33055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33056 (eval "$ac_link") 2>conftest.er1
33058 grep -v '^ *+' conftest.er1 >conftest.err
33060 cat conftest.err >&5
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); } && {
33063 test -z "$ac_c_werror_flag" ||
33064 test ! -s conftest.err
33065 } && test -s conftest$ac_exeext &&
33066 $as_test_x conftest$ac_exeext; then
33067 bash_cv_signal_vintage="svr3"
33069 echo "$as_me: failed program was:" >&5
33070 sed 's/^/| /' conftest.$ac_ext >&5
33072 bash_cv_signal_vintage="v7"
33076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33077 conftest$ac_exeext conftest.$ac_ext
33081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33082 conftest$ac_exeext conftest.$ac_ext
33086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33087 conftest$ac_exeext conftest.$ac_ext
33091 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33092 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33093 if test "$bash_cv_signal_vintage" = "posix"; then
33094 cat >>confdefs.h <<\_ACEOF
33095 #define HAVE_POSIX_SIGNALS 1
33098 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33099 cat >>confdefs.h <<\_ACEOF
33100 #define HAVE_BSD_SIGNALS 1
33103 elif test "$bash_cv_signal_vintage" = "svr3"; then
33104 cat >>confdefs.h <<\_ACEOF
33105 #define HAVE_USG_SIGHOLD 1
33110 { echo "$as_me:$LINENO: checking for mode_t" >&5
33111 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33112 if test "${ac_cv_type_mode_t+set}" = set; then
33113 echo $ECHO_N "(cached) $ECHO_C" >&6
33115 cat >conftest.$ac_ext <<_ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h. */
33121 $ac_includes_default
33122 typedef mode_t ac__type_new_;
33126 if ((ac__type_new_ *) 0)
33128 if (sizeof (ac__type_new_))
33134 rm -f conftest.$ac_objext
33135 if { (ac_try="$ac_compile"
33136 case "(($ac_try" in
33137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33138 *) ac_try_echo=$ac_try;;
33140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33141 (eval "$ac_compile") 2>conftest.er1
33143 grep -v '^ *+' conftest.er1 >conftest.err
33145 cat conftest.err >&5
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); } && {
33148 test -z "$ac_c_werror_flag" ||
33149 test ! -s conftest.err
33150 } && test -s conftest.$ac_objext; then
33151 ac_cv_type_mode_t=yes
33153 echo "$as_me: failed program was:" >&5
33154 sed 's/^/| /' conftest.$ac_ext >&5
33156 ac_cv_type_mode_t=no
33159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33161 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33162 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33163 if test $ac_cv_type_mode_t = yes; then
33167 cat >>confdefs.h <<_ACEOF
33173 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33174 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33175 if test "${ac_cv_type_uid_t+set}" = set; then
33176 echo $ECHO_N "(cached) $ECHO_C" >&6
33178 cat >conftest.$ac_ext <<_ACEOF
33181 cat confdefs.h >>conftest.$ac_ext
33182 cat >>conftest.$ac_ext <<_ACEOF
33183 /* end confdefs.h. */
33184 #include <sys/types.h>
33187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33188 $EGREP "uid_t" >/dev/null 2>&1; then
33189 ac_cv_type_uid_t=yes
33191 ac_cv_type_uid_t=no
33196 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33197 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33198 if test $ac_cv_type_uid_t = no; then
33200 cat >>confdefs.h <<\_ACEOF
33205 cat >>confdefs.h <<\_ACEOF
33211 { echo "$as_me:$LINENO: checking for size_t" >&5
33212 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33213 if test "${ac_cv_type_size_t+set}" = set; then
33214 echo $ECHO_N "(cached) $ECHO_C" >&6
33216 cat >conftest.$ac_ext <<_ACEOF
33219 cat confdefs.h >>conftest.$ac_ext
33220 cat >>conftest.$ac_ext <<_ACEOF
33221 /* end confdefs.h. */
33222 $ac_includes_default
33223 typedef size_t ac__type_new_;
33227 if ((ac__type_new_ *) 0)
33229 if (sizeof (ac__type_new_))
33235 rm -f conftest.$ac_objext
33236 if { (ac_try="$ac_compile"
33237 case "(($ac_try" in
33238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239 *) ac_try_echo=$ac_try;;
33241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242 (eval "$ac_compile") 2>conftest.er1
33244 grep -v '^ *+' conftest.er1 >conftest.err
33246 cat conftest.err >&5
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); } && {
33249 test -z "$ac_c_werror_flag" ||
33250 test ! -s conftest.err
33251 } && test -s conftest.$ac_objext; then
33252 ac_cv_type_size_t=yes
33254 echo "$as_me: failed program was:" >&5
33255 sed 's/^/| /' conftest.$ac_ext >&5
33257 ac_cv_type_size_t=no
33260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33262 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33263 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33264 if test $ac_cv_type_size_t = yes; then
33268 cat >>confdefs.h <<_ACEOF
33269 #define size_t unsigned int
33274 { echo "$as_me:$LINENO: checking for pid_t" >&5
33275 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33276 if test "${ac_cv_type_pid_t+set}" = set; then
33277 echo $ECHO_N "(cached) $ECHO_C" >&6
33279 cat >conftest.$ac_ext <<_ACEOF
33282 cat confdefs.h >>conftest.$ac_ext
33283 cat >>conftest.$ac_ext <<_ACEOF
33284 /* end confdefs.h. */
33285 $ac_includes_default
33286 typedef pid_t ac__type_new_;
33290 if ((ac__type_new_ *) 0)
33292 if (sizeof (ac__type_new_))
33298 rm -f conftest.$ac_objext
33299 if { (ac_try="$ac_compile"
33300 case "(($ac_try" in
33301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33302 *) ac_try_echo=$ac_try;;
33304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33305 (eval "$ac_compile") 2>conftest.er1
33307 grep -v '^ *+' conftest.er1 >conftest.err
33309 cat conftest.err >&5
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); } && {
33312 test -z "$ac_c_werror_flag" ||
33313 test ! -s conftest.err
33314 } && test -s conftest.$ac_objext; then
33315 ac_cv_type_pid_t=yes
33317 echo "$as_me: failed program was:" >&5
33318 sed 's/^/| /' conftest.$ac_ext >&5
33320 ac_cv_type_pid_t=no
33323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33325 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33326 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33327 if test $ac_cv_type_pid_t = yes; then
33331 cat >>confdefs.h <<_ACEOF
33337 { echo "$as_me:$LINENO: checking for off_t" >&5
33338 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33339 if test "${ac_cv_type_off_t+set}" = set; then
33340 echo $ECHO_N "(cached) $ECHO_C" >&6
33342 cat >conftest.$ac_ext <<_ACEOF
33345 cat confdefs.h >>conftest.$ac_ext
33346 cat >>conftest.$ac_ext <<_ACEOF
33347 /* end confdefs.h. */
33348 $ac_includes_default
33349 typedef off_t ac__type_new_;
33353 if ((ac__type_new_ *) 0)
33355 if (sizeof (ac__type_new_))
33361 rm -f conftest.$ac_objext
33362 if { (ac_try="$ac_compile"
33363 case "(($ac_try" in
33364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33365 *) ac_try_echo=$ac_try;;
33367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33368 (eval "$ac_compile") 2>conftest.er1
33370 grep -v '^ *+' conftest.er1 >conftest.err
33372 cat conftest.err >&5
33373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 (exit $ac_status); } && {
33375 test -z "$ac_c_werror_flag" ||
33376 test ! -s conftest.err
33377 } && test -s conftest.$ac_objext; then
33378 ac_cv_type_off_t=yes
33380 echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33383 ac_cv_type_off_t=no
33386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33388 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33389 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33390 if test $ac_cv_type_off_t = yes; then
33394 cat >>confdefs.h <<_ACEOF
33395 #define off_t long int
33400 { echo "$as_me:$LINENO: checking for ino_t" >&5
33401 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33402 if test "${ac_cv_type_ino_t+set}" = set; then
33403 echo $ECHO_N "(cached) $ECHO_C" >&6
33405 cat >conftest.$ac_ext <<_ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h. */
33411 $ac_includes_default
33412 typedef ino_t ac__type_new_;
33416 if ((ac__type_new_ *) 0)
33418 if (sizeof (ac__type_new_))
33424 rm -f conftest.$ac_objext
33425 if { (ac_try="$ac_compile"
33426 case "(($ac_try" in
33427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33428 *) ac_try_echo=$ac_try;;
33430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33431 (eval "$ac_compile") 2>conftest.er1
33433 grep -v '^ *+' conftest.er1 >conftest.err
33435 cat conftest.err >&5
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); } && {
33438 test -z "$ac_c_werror_flag" ||
33439 test ! -s conftest.err
33440 } && test -s conftest.$ac_objext; then
33441 ac_cv_type_ino_t=yes
33443 echo "$as_me: failed program was:" >&5
33444 sed 's/^/| /' conftest.$ac_ext >&5
33446 ac_cv_type_ino_t=no
33449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33451 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33452 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33453 if test $ac_cv_type_ino_t = yes; then
33457 cat >>confdefs.h <<_ACEOF
33458 #define ino_t unsigned long
33463 { echo "$as_me:$LINENO: checking for dev_t" >&5
33464 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33465 if test "${ac_cv_type_dev_t+set}" = set; then
33466 echo $ECHO_N "(cached) $ECHO_C" >&6
33468 cat >conftest.$ac_ext <<_ACEOF
33471 cat confdefs.h >>conftest.$ac_ext
33472 cat >>conftest.$ac_ext <<_ACEOF
33473 /* end confdefs.h. */
33474 $ac_includes_default
33475 typedef dev_t ac__type_new_;
33479 if ((ac__type_new_ *) 0)
33481 if (sizeof (ac__type_new_))
33487 rm -f conftest.$ac_objext
33488 if { (ac_try="$ac_compile"
33489 case "(($ac_try" in
33490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33491 *) ac_try_echo=$ac_try;;
33493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33494 (eval "$ac_compile") 2>conftest.er1
33496 grep -v '^ *+' conftest.er1 >conftest.err
33498 cat conftest.err >&5
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); } && {
33501 test -z "$ac_c_werror_flag" ||
33502 test ! -s conftest.err
33503 } && test -s conftest.$ac_objext; then
33504 ac_cv_type_dev_t=yes
33506 echo "$as_me: failed program was:" >&5
33507 sed 's/^/| /' conftest.$ac_ext >&5
33509 ac_cv_type_dev_t=no
33512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33514 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33515 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33516 if test $ac_cv_type_dev_t = yes; then
33520 cat >>confdefs.h <<_ACEOF
33521 #define dev_t unsigned long
33526 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33527 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33528 if test "${ac_cv_type_daddr_t+set}" = set; then
33529 echo $ECHO_N "(cached) $ECHO_C" >&6
33531 cat >conftest.$ac_ext <<_ACEOF
33534 cat confdefs.h >>conftest.$ac_ext
33535 cat >>conftest.$ac_ext <<_ACEOF
33536 /* end confdefs.h. */
33537 $ac_includes_default
33538 typedef daddr_t ac__type_new_;
33542 if ((ac__type_new_ *) 0)
33544 if (sizeof (ac__type_new_))
33550 rm -f conftest.$ac_objext
33551 if { (ac_try="$ac_compile"
33552 case "(($ac_try" in
33553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33554 *) ac_try_echo=$ac_try;;
33556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33557 (eval "$ac_compile") 2>conftest.er1
33559 grep -v '^ *+' conftest.er1 >conftest.err
33561 cat conftest.err >&5
33562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563 (exit $ac_status); } && {
33564 test -z "$ac_c_werror_flag" ||
33565 test ! -s conftest.err
33566 } && test -s conftest.$ac_objext; then
33567 ac_cv_type_daddr_t=yes
33569 echo "$as_me: failed program was:" >&5
33570 sed 's/^/| /' conftest.$ac_ext >&5
33572 ac_cv_type_daddr_t=no
33575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33577 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33578 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33579 if test $ac_cv_type_daddr_t = yes; then
33583 cat >>confdefs.h <<_ACEOF
33584 #define daddr_t long
33589 { echo "$as_me:$LINENO: checking for major_t" >&5
33590 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33591 if test "${ac_cv_type_major_t+set}" = set; then
33592 echo $ECHO_N "(cached) $ECHO_C" >&6
33594 cat >conftest.$ac_ext <<_ACEOF
33597 cat confdefs.h >>conftest.$ac_ext
33598 cat >>conftest.$ac_ext <<_ACEOF
33599 /* end confdefs.h. */
33600 $ac_includes_default
33601 typedef major_t ac__type_new_;
33605 if ((ac__type_new_ *) 0)
33607 if (sizeof (ac__type_new_))
33613 rm -f conftest.$ac_objext
33614 if { (ac_try="$ac_compile"
33615 case "(($ac_try" in
33616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33617 *) ac_try_echo=$ac_try;;
33619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33620 (eval "$ac_compile") 2>conftest.er1
33622 grep -v '^ *+' conftest.er1 >conftest.err
33624 cat conftest.err >&5
33625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626 (exit $ac_status); } && {
33627 test -z "$ac_c_werror_flag" ||
33628 test ! -s conftest.err
33629 } && test -s conftest.$ac_objext; then
33630 ac_cv_type_major_t=yes
33632 echo "$as_me: failed program was:" >&5
33633 sed 's/^/| /' conftest.$ac_ext >&5
33635 ac_cv_type_major_t=no
33638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33640 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33641 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33642 if test $ac_cv_type_major_t = yes; then
33646 cat >>confdefs.h <<_ACEOF
33647 #define major_t int
33652 { echo "$as_me:$LINENO: checking for minor_t" >&5
33653 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33654 if test "${ac_cv_type_minor_t+set}" = set; then
33655 echo $ECHO_N "(cached) $ECHO_C" >&6
33657 cat >conftest.$ac_ext <<_ACEOF
33660 cat confdefs.h >>conftest.$ac_ext
33661 cat >>conftest.$ac_ext <<_ACEOF
33662 /* end confdefs.h. */
33663 $ac_includes_default
33664 typedef minor_t ac__type_new_;
33668 if ((ac__type_new_ *) 0)
33670 if (sizeof (ac__type_new_))
33676 rm -f conftest.$ac_objext
33677 if { (ac_try="$ac_compile"
33678 case "(($ac_try" in
33679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33680 *) ac_try_echo=$ac_try;;
33682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33683 (eval "$ac_compile") 2>conftest.er1
33685 grep -v '^ *+' conftest.er1 >conftest.err
33687 cat conftest.err >&5
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); } && {
33690 test -z "$ac_c_werror_flag" ||
33691 test ! -s conftest.err
33692 } && test -s conftest.$ac_objext; then
33693 ac_cv_type_minor_t=yes
33695 echo "$as_me: failed program was:" >&5
33696 sed 's/^/| /' conftest.$ac_ext >&5
33698 ac_cv_type_minor_t=no
33701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33703 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33704 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33705 if test $ac_cv_type_minor_t = yes; then
33709 cat >>confdefs.h <<_ACEOF
33710 #define minor_t int
33715 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33716 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33717 if test "${ac_cv_type_ssize_t+set}" = set; then
33718 echo $ECHO_N "(cached) $ECHO_C" >&6
33720 cat >conftest.$ac_ext <<_ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h. */
33726 $ac_includes_default
33727 typedef ssize_t ac__type_new_;
33731 if ((ac__type_new_ *) 0)
33733 if (sizeof (ac__type_new_))
33739 rm -f conftest.$ac_objext
33740 if { (ac_try="$ac_compile"
33741 case "(($ac_try" in
33742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743 *) ac_try_echo=$ac_try;;
33745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33746 (eval "$ac_compile") 2>conftest.er1
33748 grep -v '^ *+' conftest.er1 >conftest.err
33750 cat conftest.err >&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); } && {
33753 test -z "$ac_c_werror_flag" ||
33754 test ! -s conftest.err
33755 } && test -s conftest.$ac_objext; then
33756 ac_cv_type_ssize_t=yes
33758 echo "$as_me: failed program was:" >&5
33759 sed 's/^/| /' conftest.$ac_ext >&5
33761 ac_cv_type_ssize_t=no
33764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33766 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33767 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33768 if test $ac_cv_type_ssize_t = yes; then
33772 cat >>confdefs.h <<_ACEOF
33773 #define ssize_t int
33778 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33779 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33780 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33781 echo $ECHO_N "(cached) $ECHO_C" >&6
33783 cat >conftest.$ac_ext <<_ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h. */
33789 $ac_includes_default
33793 static struct stat ac_aggr;
33794 if (ac_aggr.st_blocks)
33800 rm -f conftest.$ac_objext
33801 if { (ac_try="$ac_compile"
33802 case "(($ac_try" in
33803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33804 *) ac_try_echo=$ac_try;;
33806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33807 (eval "$ac_compile") 2>conftest.er1
33809 grep -v '^ *+' conftest.er1 >conftest.err
33811 cat conftest.err >&5
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); } && {
33814 test -z "$ac_c_werror_flag" ||
33815 test ! -s conftest.err
33816 } && test -s conftest.$ac_objext; then
33817 ac_cv_member_struct_stat_st_blocks=yes
33819 echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33822 cat >conftest.$ac_ext <<_ACEOF
33825 cat confdefs.h >>conftest.$ac_ext
33826 cat >>conftest.$ac_ext <<_ACEOF
33827 /* end confdefs.h. */
33828 $ac_includes_default
33832 static struct stat ac_aggr;
33833 if (sizeof ac_aggr.st_blocks)
33839 rm -f conftest.$ac_objext
33840 if { (ac_try="$ac_compile"
33841 case "(($ac_try" in
33842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33843 *) ac_try_echo=$ac_try;;
33845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33846 (eval "$ac_compile") 2>conftest.er1
33848 grep -v '^ *+' conftest.er1 >conftest.err
33850 cat conftest.err >&5
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); } && {
33853 test -z "$ac_c_werror_flag" ||
33854 test ! -s conftest.err
33855 } && test -s conftest.$ac_objext; then
33856 ac_cv_member_struct_stat_st_blocks=yes
33858 echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.$ac_ext >&5
33861 ac_cv_member_struct_stat_st_blocks=no
33864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33869 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33870 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33871 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33873 cat >>confdefs.h <<_ACEOF
33874 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33878 cat >>confdefs.h <<\_ACEOF
33879 #define HAVE_ST_BLOCKS 1
33883 case " $LIBOBJS " in
33884 *" fileblocks.$ac_objext "* ) ;;
33885 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33892 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33893 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33894 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33895 echo $ECHO_N "(cached) $ECHO_C" >&6
33897 cat >conftest.$ac_ext <<_ACEOF
33900 cat confdefs.h >>conftest.$ac_ext
33901 cat >>conftest.$ac_ext <<_ACEOF
33902 /* end confdefs.h. */
33903 $ac_includes_default
33907 static struct stat ac_aggr;
33908 if (ac_aggr.st_rdev)
33914 rm -f conftest.$ac_objext
33915 if { (ac_try="$ac_compile"
33916 case "(($ac_try" in
33917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_compile") 2>conftest.er1
33923 grep -v '^ *+' conftest.er1 >conftest.err
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } && {
33928 test -z "$ac_c_werror_flag" ||
33929 test ! -s conftest.err
33930 } && test -s conftest.$ac_objext; then
33931 ac_cv_member_struct_stat_st_rdev=yes
33933 echo "$as_me: failed program was:" >&5
33934 sed 's/^/| /' conftest.$ac_ext >&5
33936 cat >conftest.$ac_ext <<_ACEOF
33939 cat confdefs.h >>conftest.$ac_ext
33940 cat >>conftest.$ac_ext <<_ACEOF
33941 /* end confdefs.h. */
33942 $ac_includes_default
33946 static struct stat ac_aggr;
33947 if (sizeof ac_aggr.st_rdev)
33953 rm -f conftest.$ac_objext
33954 if { (ac_try="$ac_compile"
33955 case "(($ac_try" in
33956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33957 *) ac_try_echo=$ac_try;;
33959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33960 (eval "$ac_compile") 2>conftest.er1
33962 grep -v '^ *+' conftest.er1 >conftest.err
33964 cat conftest.err >&5
33965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33966 (exit $ac_status); } && {
33967 test -z "$ac_c_werror_flag" ||
33968 test ! -s conftest.err
33969 } && test -s conftest.$ac_objext; then
33970 ac_cv_member_struct_stat_st_rdev=yes
33972 echo "$as_me: failed program was:" >&5
33973 sed 's/^/| /' conftest.$ac_ext >&5
33975 ac_cv_member_struct_stat_st_rdev=no
33978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33983 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33984 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33985 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33987 cat >>confdefs.h <<_ACEOF
33988 #define HAVE_STRUCT_STAT_ST_RDEV 1
33992 cat >>confdefs.h <<\_ACEOF
33993 #define HAVE_ST_RDEV 1
33999 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34000 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34001 if test "${ac_cv_struct_tm+set}" = set; then
34002 echo $ECHO_N "(cached) $ECHO_C" >&6
34004 cat >conftest.$ac_ext <<_ACEOF
34007 cat confdefs.h >>conftest.$ac_ext
34008 cat >>conftest.$ac_ext <<_ACEOF
34009 /* end confdefs.h. */
34010 #include <sys/types.h>
34017 int *p = &tm.tm_sec;
34023 rm -f conftest.$ac_objext
34024 if { (ac_try="$ac_compile"
34025 case "(($ac_try" in
34026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34027 *) ac_try_echo=$ac_try;;
34029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34030 (eval "$ac_compile") 2>conftest.er1
34032 grep -v '^ *+' conftest.er1 >conftest.err
34034 cat conftest.err >&5
34035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); } && {
34037 test -z "$ac_c_werror_flag" ||
34038 test ! -s conftest.err
34039 } && test -s conftest.$ac_objext; then
34040 ac_cv_struct_tm=time.h
34042 echo "$as_me: failed program was:" >&5
34043 sed 's/^/| /' conftest.$ac_ext >&5
34045 ac_cv_struct_tm=sys/time.h
34048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34050 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34051 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34052 if test $ac_cv_struct_tm = sys/time.h; then
34054 cat >>confdefs.h <<\_ACEOF
34055 #define TM_IN_SYS_TIME 1
34060 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34061 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34062 if test "${ac_cv_c_const+set}" = set; then
34063 echo $ECHO_N "(cached) $ECHO_C" >&6
34065 cat >conftest.$ac_ext <<_ACEOF
34068 cat confdefs.h >>conftest.$ac_ext
34069 cat >>conftest.$ac_ext <<_ACEOF
34070 /* end confdefs.h. */
34075 /* FIXME: Include the comments suggested by Paul. */
34076 #ifndef __cplusplus
34077 /* Ultrix mips cc rejects this. */
34078 typedef int charset[2];
34080 /* SunOS 4.1.1 cc rejects this. */
34081 char const *const *pcpcc;
34083 /* NEC SVR4.0.2 mips cc rejects this. */
34084 struct point {int x, y;};
34085 static struct point const zero = {0,0};
34086 /* AIX XL C 1.02.0.0 rejects this.
34087 It does not let you subtract one const X* pointer from another in
34088 an arm of an if-expression whose if-part is not a constant
34090 const char *g = "string";
34091 pcpcc = &g + (g ? g-g : 0);
34092 /* HPUX 7.0 cc rejects these. */
34094 ppc = (char**) pcpcc;
34095 pcpcc = (char const *const *) ppc;
34096 { /* SCO 3.2v4 cc rejects this. */
34098 char const *s = 0 ? (char *) 0 : (char const *) 0;
34103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34104 int x[] = {25, 17};
34105 const int *foo = &x[0];
34108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34109 typedef const int *iptr;
34113 { /* AIX XL C 1.02.0.0 rejects this saying
34114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34115 struct s { int j; const int *ap[3]; };
34116 struct s *b; b->j = 5;
34118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34119 const int foo = 10;
34120 if (!foo) return 0;
34122 return !cs[0] && !zero.x;
34129 rm -f conftest.$ac_objext
34130 if { (ac_try="$ac_compile"
34131 case "(($ac_try" in
34132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34133 *) ac_try_echo=$ac_try;;
34135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34136 (eval "$ac_compile") 2>conftest.er1
34138 grep -v '^ *+' conftest.er1 >conftest.err
34140 cat conftest.err >&5
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); } && {
34143 test -z "$ac_c_werror_flag" ||
34144 test ! -s conftest.err
34145 } && test -s conftest.$ac_objext; then
34148 echo "$as_me: failed program was:" >&5
34149 sed 's/^/| /' conftest.$ac_ext >&5
34154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34156 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34157 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34158 if test $ac_cv_c_const = no; then
34160 cat >>confdefs.h <<\_ACEOF
34167 { echo "$as_me:$LINENO: checking for char" >&5
34168 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34169 if test "${ac_cv_type_char+set}" = set; then
34170 echo $ECHO_N "(cached) $ECHO_C" >&6
34172 cat >conftest.$ac_ext <<_ACEOF
34175 cat confdefs.h >>conftest.$ac_ext
34176 cat >>conftest.$ac_ext <<_ACEOF
34177 /* end confdefs.h. */
34178 $ac_includes_default
34179 typedef char ac__type_new_;
34183 if ((ac__type_new_ *) 0)
34185 if (sizeof (ac__type_new_))
34191 rm -f conftest.$ac_objext
34192 if { (ac_try="$ac_compile"
34193 case "(($ac_try" in
34194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34195 *) ac_try_echo=$ac_try;;
34197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34198 (eval "$ac_compile") 2>conftest.er1
34200 grep -v '^ *+' conftest.er1 >conftest.err
34202 cat conftest.err >&5
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); } && {
34205 test -z "$ac_c_werror_flag" ||
34206 test ! -s conftest.err
34207 } && test -s conftest.$ac_objext; then
34208 ac_cv_type_char=yes
34210 echo "$as_me: failed program was:" >&5
34211 sed 's/^/| /' conftest.$ac_ext >&5
34216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34218 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34219 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34221 # The cast to long int works around a bug in the HP C Compiler
34222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34224 # This bug is HP SR number 8606223364.
34225 { echo "$as_me:$LINENO: checking size of char" >&5
34226 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34227 if test "${ac_cv_sizeof_char+set}" = set; then
34228 echo $ECHO_N "(cached) $ECHO_C" >&6
34230 if test "$cross_compiling" = yes; then
34231 # Depending upon the size, compute the lo and hi bounds.
34232 cat >conftest.$ac_ext <<_ACEOF
34235 cat confdefs.h >>conftest.$ac_ext
34236 cat >>conftest.$ac_ext <<_ACEOF
34237 /* end confdefs.h. */
34238 $ac_includes_default
34239 typedef char ac__type_sizeof_;
34243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34250 rm -f conftest.$ac_objext
34251 if { (ac_try="$ac_compile"
34252 case "(($ac_try" in
34253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34254 *) ac_try_echo=$ac_try;;
34256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34257 (eval "$ac_compile") 2>conftest.er1
34259 grep -v '^ *+' conftest.er1 >conftest.err
34261 cat conftest.err >&5
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); } && {
34264 test -z "$ac_c_werror_flag" ||
34265 test ! -s conftest.err
34266 } && test -s conftest.$ac_objext; then
34269 cat >conftest.$ac_ext <<_ACEOF
34272 cat confdefs.h >>conftest.$ac_ext
34273 cat >>conftest.$ac_ext <<_ACEOF
34274 /* end confdefs.h. */
34275 $ac_includes_default
34276 typedef char ac__type_sizeof_;
34280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34287 rm -f conftest.$ac_objext
34288 if { (ac_try="$ac_compile"
34289 case "(($ac_try" in
34290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34291 *) ac_try_echo=$ac_try;;
34293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34294 (eval "$ac_compile") 2>conftest.er1
34296 grep -v '^ *+' conftest.er1 >conftest.err
34298 cat conftest.err >&5
34299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300 (exit $ac_status); } && {
34301 test -z "$ac_c_werror_flag" ||
34302 test ! -s conftest.err
34303 } && test -s conftest.$ac_objext; then
34304 ac_hi=$ac_mid; break
34306 echo "$as_me: failed program was:" >&5
34307 sed 's/^/| /' conftest.$ac_ext >&5
34309 ac_lo=`expr $ac_mid + 1`
34310 if test $ac_lo -le $ac_mid; then
34314 ac_mid=`expr 2 '*' $ac_mid + 1`
34317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34320 echo "$as_me: failed program was:" >&5
34321 sed 's/^/| /' conftest.$ac_ext >&5
34323 cat >conftest.$ac_ext <<_ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h. */
34329 $ac_includes_default
34330 typedef char ac__type_sizeof_;
34334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34341 rm -f conftest.$ac_objext
34342 if { (ac_try="$ac_compile"
34343 case "(($ac_try" in
34344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34345 *) ac_try_echo=$ac_try;;
34347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34348 (eval "$ac_compile") 2>conftest.er1
34350 grep -v '^ *+' conftest.er1 >conftest.err
34352 cat conftest.err >&5
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); } && {
34355 test -z "$ac_c_werror_flag" ||
34356 test ! -s conftest.err
34357 } && test -s conftest.$ac_objext; then
34360 cat >conftest.$ac_ext <<_ACEOF
34363 cat confdefs.h >>conftest.$ac_ext
34364 cat >>conftest.$ac_ext <<_ACEOF
34365 /* end confdefs.h. */
34366 $ac_includes_default
34367 typedef char ac__type_sizeof_;
34371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34378 rm -f conftest.$ac_objext
34379 if { (ac_try="$ac_compile"
34380 case "(($ac_try" in
34381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34382 *) ac_try_echo=$ac_try;;
34384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34385 (eval "$ac_compile") 2>conftest.er1
34387 grep -v '^ *+' conftest.er1 >conftest.err
34389 cat conftest.err >&5
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); } && {
34392 test -z "$ac_c_werror_flag" ||
34393 test ! -s conftest.err
34394 } && test -s conftest.$ac_objext; then
34395 ac_lo=$ac_mid; break
34397 echo "$as_me: failed program was:" >&5
34398 sed 's/^/| /' conftest.$ac_ext >&5
34400 ac_hi=`expr '(' $ac_mid ')' - 1`
34401 if test $ac_mid -le $ac_hi; then
34405 ac_mid=`expr 2 '*' $ac_mid`
34408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34411 echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34421 # Binary search between lo and hi bounds.
34422 while test "x$ac_lo" != "x$ac_hi"; do
34423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34424 cat >conftest.$ac_ext <<_ACEOF
34427 cat confdefs.h >>conftest.$ac_ext
34428 cat >>conftest.$ac_ext <<_ACEOF
34429 /* end confdefs.h. */
34430 $ac_includes_default
34431 typedef char ac__type_sizeof_;
34435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34442 rm -f conftest.$ac_objext
34443 if { (ac_try="$ac_compile"
34444 case "(($ac_try" in
34445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34446 *) ac_try_echo=$ac_try;;
34448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34449 (eval "$ac_compile") 2>conftest.er1
34451 grep -v '^ *+' conftest.er1 >conftest.err
34453 cat conftest.err >&5
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); } && {
34456 test -z "$ac_c_werror_flag" ||
34457 test ! -s conftest.err
34458 } && test -s conftest.$ac_objext; then
34461 echo "$as_me: failed program was:" >&5
34462 sed 's/^/| /' conftest.$ac_ext >&5
34464 ac_lo=`expr '(' $ac_mid ')' + 1`
34467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34470 ?*) ac_cv_sizeof_char=$ac_lo;;
34471 '') if test "$ac_cv_type_char" = yes; then
34472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34473 See \`config.log' for more details." >&5
34474 echo "$as_me: error: cannot compute sizeof (char)
34475 See \`config.log' for more details." >&2;}
34476 { (exit 77); exit 77; }; }
34478 ac_cv_sizeof_char=0
34482 cat >conftest.$ac_ext <<_ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h. */
34488 $ac_includes_default
34489 typedef char ac__type_sizeof_;
34490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34493 #include <stdlib.h>
34498 FILE *f = fopen ("conftest.val", "w");
34501 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34503 long int i = longval ();
34504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34506 fprintf (f, "%ld\n", i);
34510 unsigned long int i = ulongval ();
34511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34513 fprintf (f, "%lu\n", i);
34515 return ferror (f) || fclose (f) != 0;
34521 rm -f conftest$ac_exeext
34522 if { (ac_try="$ac_link"
34523 case "(($ac_try" in
34524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34525 *) ac_try_echo=$ac_try;;
34527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34528 (eval "$ac_link") 2>&5
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34532 { (case "(($ac_try" in
34533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34534 *) ac_try_echo=$ac_try;;
34536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34537 (eval "$ac_try") 2>&5
34539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540 (exit $ac_status); }; }; then
34541 ac_cv_sizeof_char=`cat conftest.val`
34543 echo "$as_me: program exited with status $ac_status" >&5
34544 echo "$as_me: failed program was:" >&5
34545 sed 's/^/| /' conftest.$ac_ext >&5
34547 ( exit $ac_status )
34548 if test "$ac_cv_type_char" = yes; then
34549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34550 See \`config.log' for more details." >&5
34551 echo "$as_me: error: cannot compute sizeof (char)
34552 See \`config.log' for more details." >&2;}
34553 { (exit 77); exit 77; }; }
34555 ac_cv_sizeof_char=0
34558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34563 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34567 cat >>confdefs.h <<_ACEOF
34568 #define SIZEOF_CHAR $ac_cv_sizeof_char
34572 { echo "$as_me:$LINENO: checking for short int" >&5
34573 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34574 if test "${ac_cv_type_short_int+set}" = set; then
34575 echo $ECHO_N "(cached) $ECHO_C" >&6
34577 cat >conftest.$ac_ext <<_ACEOF
34580 cat confdefs.h >>conftest.$ac_ext
34581 cat >>conftest.$ac_ext <<_ACEOF
34582 /* end confdefs.h. */
34583 $ac_includes_default
34584 typedef short int ac__type_new_;
34588 if ((ac__type_new_ *) 0)
34590 if (sizeof (ac__type_new_))
34596 rm -f conftest.$ac_objext
34597 if { (ac_try="$ac_compile"
34598 case "(($ac_try" in
34599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34600 *) ac_try_echo=$ac_try;;
34602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34603 (eval "$ac_compile") 2>conftest.er1
34605 grep -v '^ *+' conftest.er1 >conftest.err
34607 cat conftest.err >&5
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); } && {
34610 test -z "$ac_c_werror_flag" ||
34611 test ! -s conftest.err
34612 } && test -s conftest.$ac_objext; then
34613 ac_cv_type_short_int=yes
34615 echo "$as_me: failed program was:" >&5
34616 sed 's/^/| /' conftest.$ac_ext >&5
34618 ac_cv_type_short_int=no
34621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34623 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34624 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34626 # The cast to long int works around a bug in the HP C Compiler
34627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34629 # This bug is HP SR number 8606223364.
34630 { echo "$as_me:$LINENO: checking size of short int" >&5
34631 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34632 if test "${ac_cv_sizeof_short_int+set}" = set; then
34633 echo $ECHO_N "(cached) $ECHO_C" >&6
34635 if test "$cross_compiling" = yes; then
34636 # Depending upon the size, compute the lo and hi bounds.
34637 cat >conftest.$ac_ext <<_ACEOF
34640 cat confdefs.h >>conftest.$ac_ext
34641 cat >>conftest.$ac_ext <<_ACEOF
34642 /* end confdefs.h. */
34643 $ac_includes_default
34644 typedef short int ac__type_sizeof_;
34648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34655 rm -f conftest.$ac_objext
34656 if { (ac_try="$ac_compile"
34657 case "(($ac_try" in
34658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34659 *) ac_try_echo=$ac_try;;
34661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34662 (eval "$ac_compile") 2>conftest.er1
34664 grep -v '^ *+' conftest.er1 >conftest.err
34666 cat conftest.err >&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); } && {
34669 test -z "$ac_c_werror_flag" ||
34670 test ! -s conftest.err
34671 } && test -s conftest.$ac_objext; then
34674 cat >conftest.$ac_ext <<_ACEOF
34677 cat confdefs.h >>conftest.$ac_ext
34678 cat >>conftest.$ac_ext <<_ACEOF
34679 /* end confdefs.h. */
34680 $ac_includes_default
34681 typedef short int ac__type_sizeof_;
34685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34692 rm -f conftest.$ac_objext
34693 if { (ac_try="$ac_compile"
34694 case "(($ac_try" in
34695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34696 *) ac_try_echo=$ac_try;;
34698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34699 (eval "$ac_compile") 2>conftest.er1
34701 grep -v '^ *+' conftest.er1 >conftest.err
34703 cat conftest.err >&5
34704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705 (exit $ac_status); } && {
34706 test -z "$ac_c_werror_flag" ||
34707 test ! -s conftest.err
34708 } && test -s conftest.$ac_objext; then
34709 ac_hi=$ac_mid; break
34711 echo "$as_me: failed program was:" >&5
34712 sed 's/^/| /' conftest.$ac_ext >&5
34714 ac_lo=`expr $ac_mid + 1`
34715 if test $ac_lo -le $ac_mid; then
34719 ac_mid=`expr 2 '*' $ac_mid + 1`
34722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34725 echo "$as_me: failed program was:" >&5
34726 sed 's/^/| /' conftest.$ac_ext >&5
34728 cat >conftest.$ac_ext <<_ACEOF
34731 cat confdefs.h >>conftest.$ac_ext
34732 cat >>conftest.$ac_ext <<_ACEOF
34733 /* end confdefs.h. */
34734 $ac_includes_default
34735 typedef short int ac__type_sizeof_;
34739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34746 rm -f conftest.$ac_objext
34747 if { (ac_try="$ac_compile"
34748 case "(($ac_try" in
34749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34750 *) ac_try_echo=$ac_try;;
34752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34753 (eval "$ac_compile") 2>conftest.er1
34755 grep -v '^ *+' conftest.er1 >conftest.err
34757 cat conftest.err >&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); } && {
34760 test -z "$ac_c_werror_flag" ||
34761 test ! -s conftest.err
34762 } && test -s conftest.$ac_objext; then
34765 cat >conftest.$ac_ext <<_ACEOF
34768 cat confdefs.h >>conftest.$ac_ext
34769 cat >>conftest.$ac_ext <<_ACEOF
34770 /* end confdefs.h. */
34771 $ac_includes_default
34772 typedef short int ac__type_sizeof_;
34776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34783 rm -f conftest.$ac_objext
34784 if { (ac_try="$ac_compile"
34785 case "(($ac_try" in
34786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34787 *) ac_try_echo=$ac_try;;
34789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34790 (eval "$ac_compile") 2>conftest.er1
34792 grep -v '^ *+' conftest.er1 >conftest.err
34794 cat conftest.err >&5
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); } && {
34797 test -z "$ac_c_werror_flag" ||
34798 test ! -s conftest.err
34799 } && test -s conftest.$ac_objext; then
34800 ac_lo=$ac_mid; break
34802 echo "$as_me: failed program was:" >&5
34803 sed 's/^/| /' conftest.$ac_ext >&5
34805 ac_hi=`expr '(' $ac_mid ')' - 1`
34806 if test $ac_mid -le $ac_hi; then
34810 ac_mid=`expr 2 '*' $ac_mid`
34813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34816 echo "$as_me: failed program was:" >&5
34817 sed 's/^/| /' conftest.$ac_ext >&5
34822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34826 # Binary search between lo and hi bounds.
34827 while test "x$ac_lo" != "x$ac_hi"; do
34828 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34829 cat >conftest.$ac_ext <<_ACEOF
34832 cat confdefs.h >>conftest.$ac_ext
34833 cat >>conftest.$ac_ext <<_ACEOF
34834 /* end confdefs.h. */
34835 $ac_includes_default
34836 typedef short int ac__type_sizeof_;
34840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34847 rm -f conftest.$ac_objext
34848 if { (ac_try="$ac_compile"
34849 case "(($ac_try" in
34850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34851 *) ac_try_echo=$ac_try;;
34853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34854 (eval "$ac_compile") 2>conftest.er1
34856 grep -v '^ *+' conftest.er1 >conftest.err
34858 cat conftest.err >&5
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); } && {
34861 test -z "$ac_c_werror_flag" ||
34862 test ! -s conftest.err
34863 } && test -s conftest.$ac_objext; then
34866 echo "$as_me: failed program was:" >&5
34867 sed 's/^/| /' conftest.$ac_ext >&5
34869 ac_lo=`expr '(' $ac_mid ')' + 1`
34872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34876 '') if test "$ac_cv_type_short_int" = yes; then
34877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34878 See \`config.log' for more details." >&5
34879 echo "$as_me: error: cannot compute sizeof (short int)
34880 See \`config.log' for more details." >&2;}
34881 { (exit 77); exit 77; }; }
34883 ac_cv_sizeof_short_int=0
34887 cat >conftest.$ac_ext <<_ACEOF
34890 cat confdefs.h >>conftest.$ac_ext
34891 cat >>conftest.$ac_ext <<_ACEOF
34892 /* end confdefs.h. */
34893 $ac_includes_default
34894 typedef short int ac__type_sizeof_;
34895 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34896 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34898 #include <stdlib.h>
34903 FILE *f = fopen ("conftest.val", "w");
34906 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34908 long int i = longval ();
34909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34911 fprintf (f, "%ld\n", i);
34915 unsigned long int i = ulongval ();
34916 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34918 fprintf (f, "%lu\n", i);
34920 return ferror (f) || fclose (f) != 0;
34926 rm -f conftest$ac_exeext
34927 if { (ac_try="$ac_link"
34928 case "(($ac_try" in
34929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34930 *) ac_try_echo=$ac_try;;
34932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34933 (eval "$ac_link") 2>&5
34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34937 { (case "(($ac_try" in
34938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939 *) ac_try_echo=$ac_try;;
34941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942 (eval "$ac_try") 2>&5
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); }; }; then
34946 ac_cv_sizeof_short_int=`cat conftest.val`
34948 echo "$as_me: program exited with status $ac_status" >&5
34949 echo "$as_me: failed program was:" >&5
34950 sed 's/^/| /' conftest.$ac_ext >&5
34952 ( exit $ac_status )
34953 if test "$ac_cv_type_short_int" = yes; then
34954 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34955 See \`config.log' for more details." >&5
34956 echo "$as_me: error: cannot compute sizeof (short int)
34957 See \`config.log' for more details." >&2;}
34958 { (exit 77); exit 77; }; }
34960 ac_cv_sizeof_short_int=0
34963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34967 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34968 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34972 cat >>confdefs.h <<_ACEOF
34973 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34977 { echo "$as_me:$LINENO: checking for int" >&5
34978 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34979 if test "${ac_cv_type_int+set}" = set; then
34980 echo $ECHO_N "(cached) $ECHO_C" >&6
34982 cat >conftest.$ac_ext <<_ACEOF
34985 cat confdefs.h >>conftest.$ac_ext
34986 cat >>conftest.$ac_ext <<_ACEOF
34987 /* end confdefs.h. */
34988 $ac_includes_default
34989 typedef int ac__type_new_;
34993 if ((ac__type_new_ *) 0)
34995 if (sizeof (ac__type_new_))
35001 rm -f conftest.$ac_objext
35002 if { (ac_try="$ac_compile"
35003 case "(($ac_try" in
35004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35005 *) ac_try_echo=$ac_try;;
35007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35008 (eval "$ac_compile") 2>conftest.er1
35010 grep -v '^ *+' conftest.er1 >conftest.err
35012 cat conftest.err >&5
35013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014 (exit $ac_status); } && {
35015 test -z "$ac_c_werror_flag" ||
35016 test ! -s conftest.err
35017 } && test -s conftest.$ac_objext; then
35020 echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35028 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35029 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35031 # The cast to long int works around a bug in the HP C Compiler
35032 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35033 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35034 # This bug is HP SR number 8606223364.
35035 { echo "$as_me:$LINENO: checking size of int" >&5
35036 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35037 if test "${ac_cv_sizeof_int+set}" = set; then
35038 echo $ECHO_N "(cached) $ECHO_C" >&6
35040 if test "$cross_compiling" = yes; then
35041 # Depending upon the size, compute the lo and hi bounds.
35042 cat >conftest.$ac_ext <<_ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h. */
35048 $ac_includes_default
35049 typedef int ac__type_sizeof_;
35053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35060 rm -f conftest.$ac_objext
35061 if { (ac_try="$ac_compile"
35062 case "(($ac_try" in
35063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35064 *) ac_try_echo=$ac_try;;
35066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35067 (eval "$ac_compile") 2>conftest.er1
35069 grep -v '^ *+' conftest.er1 >conftest.err
35071 cat conftest.err >&5
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); } && {
35074 test -z "$ac_c_werror_flag" ||
35075 test ! -s conftest.err
35076 } && test -s conftest.$ac_objext; then
35079 cat >conftest.$ac_ext <<_ACEOF
35082 cat confdefs.h >>conftest.$ac_ext
35083 cat >>conftest.$ac_ext <<_ACEOF
35084 /* end confdefs.h. */
35085 $ac_includes_default
35086 typedef int ac__type_sizeof_;
35090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35097 rm -f conftest.$ac_objext
35098 if { (ac_try="$ac_compile"
35099 case "(($ac_try" in
35100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35101 *) ac_try_echo=$ac_try;;
35103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35104 (eval "$ac_compile") 2>conftest.er1
35106 grep -v '^ *+' conftest.er1 >conftest.err
35108 cat conftest.err >&5
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } && {
35111 test -z "$ac_c_werror_flag" ||
35112 test ! -s conftest.err
35113 } && test -s conftest.$ac_objext; then
35114 ac_hi=$ac_mid; break
35116 echo "$as_me: failed program was:" >&5
35117 sed 's/^/| /' conftest.$ac_ext >&5
35119 ac_lo=`expr $ac_mid + 1`
35120 if test $ac_lo -le $ac_mid; then
35124 ac_mid=`expr 2 '*' $ac_mid + 1`
35127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35130 echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35133 cat >conftest.$ac_ext <<_ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h. */
35139 $ac_includes_default
35140 typedef int ac__type_sizeof_;
35144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35151 rm -f conftest.$ac_objext
35152 if { (ac_try="$ac_compile"
35153 case "(($ac_try" in
35154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35155 *) ac_try_echo=$ac_try;;
35157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35158 (eval "$ac_compile") 2>conftest.er1
35160 grep -v '^ *+' conftest.er1 >conftest.err
35162 cat conftest.err >&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); } && {
35165 test -z "$ac_c_werror_flag" ||
35166 test ! -s conftest.err
35167 } && test -s conftest.$ac_objext; then
35170 cat >conftest.$ac_ext <<_ACEOF
35173 cat confdefs.h >>conftest.$ac_ext
35174 cat >>conftest.$ac_ext <<_ACEOF
35175 /* end confdefs.h. */
35176 $ac_includes_default
35177 typedef int ac__type_sizeof_;
35181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35188 rm -f conftest.$ac_objext
35189 if { (ac_try="$ac_compile"
35190 case "(($ac_try" in
35191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35192 *) ac_try_echo=$ac_try;;
35194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35195 (eval "$ac_compile") 2>conftest.er1
35197 grep -v '^ *+' conftest.er1 >conftest.err
35199 cat conftest.err >&5
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); } && {
35202 test -z "$ac_c_werror_flag" ||
35203 test ! -s conftest.err
35204 } && test -s conftest.$ac_objext; then
35205 ac_lo=$ac_mid; break
35207 echo "$as_me: failed program was:" >&5
35208 sed 's/^/| /' conftest.$ac_ext >&5
35210 ac_hi=`expr '(' $ac_mid ')' - 1`
35211 if test $ac_mid -le $ac_hi; then
35215 ac_mid=`expr 2 '*' $ac_mid`
35218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35221 echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35231 # Binary search between lo and hi bounds.
35232 while test "x$ac_lo" != "x$ac_hi"; do
35233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35234 cat >conftest.$ac_ext <<_ACEOF
35237 cat confdefs.h >>conftest.$ac_ext
35238 cat >>conftest.$ac_ext <<_ACEOF
35239 /* end confdefs.h. */
35240 $ac_includes_default
35241 typedef int ac__type_sizeof_;
35245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35252 rm -f conftest.$ac_objext
35253 if { (ac_try="$ac_compile"
35254 case "(($ac_try" in
35255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35256 *) ac_try_echo=$ac_try;;
35258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35259 (eval "$ac_compile") 2>conftest.er1
35261 grep -v '^ *+' conftest.er1 >conftest.err
35263 cat conftest.err >&5
35264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35265 (exit $ac_status); } && {
35266 test -z "$ac_c_werror_flag" ||
35267 test ! -s conftest.err
35268 } && test -s conftest.$ac_objext; then
35271 echo "$as_me: failed program was:" >&5
35272 sed 's/^/| /' conftest.$ac_ext >&5
35274 ac_lo=`expr '(' $ac_mid ')' + 1`
35277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35280 ?*) ac_cv_sizeof_int=$ac_lo;;
35281 '') if test "$ac_cv_type_int" = yes; then
35282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35283 See \`config.log' for more details." >&5
35284 echo "$as_me: error: cannot compute sizeof (int)
35285 See \`config.log' for more details." >&2;}
35286 { (exit 77); exit 77; }; }
35292 cat >conftest.$ac_ext <<_ACEOF
35295 cat confdefs.h >>conftest.$ac_ext
35296 cat >>conftest.$ac_ext <<_ACEOF
35297 /* end confdefs.h. */
35298 $ac_includes_default
35299 typedef int ac__type_sizeof_;
35300 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35301 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35303 #include <stdlib.h>
35308 FILE *f = fopen ("conftest.val", "w");
35311 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35313 long int i = longval ();
35314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35316 fprintf (f, "%ld\n", i);
35320 unsigned long int i = ulongval ();
35321 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35323 fprintf (f, "%lu\n", i);
35325 return ferror (f) || fclose (f) != 0;
35331 rm -f conftest$ac_exeext
35332 if { (ac_try="$ac_link"
35333 case "(($ac_try" in
35334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35335 *) ac_try_echo=$ac_try;;
35337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35338 (eval "$ac_link") 2>&5
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35342 { (case "(($ac_try" in
35343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35344 *) ac_try_echo=$ac_try;;
35346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35347 (eval "$ac_try") 2>&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; }; then
35351 ac_cv_sizeof_int=`cat conftest.val`
35353 echo "$as_me: program exited with status $ac_status" >&5
35354 echo "$as_me: failed program was:" >&5
35355 sed 's/^/| /' conftest.$ac_ext >&5
35357 ( exit $ac_status )
35358 if test "$ac_cv_type_int" = yes; then
35359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35360 See \`config.log' for more details." >&5
35361 echo "$as_me: error: cannot compute sizeof (int)
35362 See \`config.log' for more details." >&2;}
35363 { (exit 77); exit 77; }; }
35368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35372 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35373 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35377 cat >>confdefs.h <<_ACEOF
35378 #define SIZEOF_INT $ac_cv_sizeof_int
35382 { echo "$as_me:$LINENO: checking for long int" >&5
35383 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35384 if test "${ac_cv_type_long_int+set}" = set; then
35385 echo $ECHO_N "(cached) $ECHO_C" >&6
35387 cat >conftest.$ac_ext <<_ACEOF
35390 cat confdefs.h >>conftest.$ac_ext
35391 cat >>conftest.$ac_ext <<_ACEOF
35392 /* end confdefs.h. */
35393 $ac_includes_default
35394 typedef long int ac__type_new_;
35398 if ((ac__type_new_ *) 0)
35400 if (sizeof (ac__type_new_))
35406 rm -f conftest.$ac_objext
35407 if { (ac_try="$ac_compile"
35408 case "(($ac_try" in
35409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35410 *) ac_try_echo=$ac_try;;
35412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35413 (eval "$ac_compile") 2>conftest.er1
35415 grep -v '^ *+' conftest.er1 >conftest.err
35417 cat conftest.err >&5
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); } && {
35420 test -z "$ac_c_werror_flag" ||
35421 test ! -s conftest.err
35422 } && test -s conftest.$ac_objext; then
35423 ac_cv_type_long_int=yes
35425 echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35428 ac_cv_type_long_int=no
35431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35433 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35434 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35436 # The cast to long int works around a bug in the HP C Compiler
35437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35439 # This bug is HP SR number 8606223364.
35440 { echo "$as_me:$LINENO: checking size of long int" >&5
35441 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35442 if test "${ac_cv_sizeof_long_int+set}" = set; then
35443 echo $ECHO_N "(cached) $ECHO_C" >&6
35445 if test "$cross_compiling" = yes; then
35446 # Depending upon the size, compute the lo and hi bounds.
35447 cat >conftest.$ac_ext <<_ACEOF
35450 cat confdefs.h >>conftest.$ac_ext
35451 cat >>conftest.$ac_ext <<_ACEOF
35452 /* end confdefs.h. */
35453 $ac_includes_default
35454 typedef long int ac__type_sizeof_;
35458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35465 rm -f conftest.$ac_objext
35466 if { (ac_try="$ac_compile"
35467 case "(($ac_try" in
35468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35469 *) ac_try_echo=$ac_try;;
35471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35472 (eval "$ac_compile") 2>conftest.er1
35474 grep -v '^ *+' conftest.er1 >conftest.err
35476 cat conftest.err >&5
35477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35478 (exit $ac_status); } && {
35479 test -z "$ac_c_werror_flag" ||
35480 test ! -s conftest.err
35481 } && test -s conftest.$ac_objext; then
35484 cat >conftest.$ac_ext <<_ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h. */
35490 $ac_includes_default
35491 typedef long int ac__type_sizeof_;
35495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35502 rm -f conftest.$ac_objext
35503 if { (ac_try="$ac_compile"
35504 case "(($ac_try" in
35505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35506 *) ac_try_echo=$ac_try;;
35508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35509 (eval "$ac_compile") 2>conftest.er1
35511 grep -v '^ *+' conftest.er1 >conftest.err
35513 cat conftest.err >&5
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); } && {
35516 test -z "$ac_c_werror_flag" ||
35517 test ! -s conftest.err
35518 } && test -s conftest.$ac_objext; then
35519 ac_hi=$ac_mid; break
35521 echo "$as_me: failed program was:" >&5
35522 sed 's/^/| /' conftest.$ac_ext >&5
35524 ac_lo=`expr $ac_mid + 1`
35525 if test $ac_lo -le $ac_mid; then
35529 ac_mid=`expr 2 '*' $ac_mid + 1`
35532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35535 echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.$ac_ext >&5
35538 cat >conftest.$ac_ext <<_ACEOF
35541 cat confdefs.h >>conftest.$ac_ext
35542 cat >>conftest.$ac_ext <<_ACEOF
35543 /* end confdefs.h. */
35544 $ac_includes_default
35545 typedef long int ac__type_sizeof_;
35549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35556 rm -f conftest.$ac_objext
35557 if { (ac_try="$ac_compile"
35558 case "(($ac_try" in
35559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35560 *) ac_try_echo=$ac_try;;
35562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35563 (eval "$ac_compile") 2>conftest.er1
35565 grep -v '^ *+' conftest.er1 >conftest.err
35567 cat conftest.err >&5
35568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569 (exit $ac_status); } && {
35570 test -z "$ac_c_werror_flag" ||
35571 test ! -s conftest.err
35572 } && test -s conftest.$ac_objext; then
35575 cat >conftest.$ac_ext <<_ACEOF
35578 cat confdefs.h >>conftest.$ac_ext
35579 cat >>conftest.$ac_ext <<_ACEOF
35580 /* end confdefs.h. */
35581 $ac_includes_default
35582 typedef long int ac__type_sizeof_;
35586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35593 rm -f conftest.$ac_objext
35594 if { (ac_try="$ac_compile"
35595 case "(($ac_try" in
35596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35597 *) ac_try_echo=$ac_try;;
35599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35600 (eval "$ac_compile") 2>conftest.er1
35602 grep -v '^ *+' conftest.er1 >conftest.err
35604 cat conftest.err >&5
35605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606 (exit $ac_status); } && {
35607 test -z "$ac_c_werror_flag" ||
35608 test ! -s conftest.err
35609 } && test -s conftest.$ac_objext; then
35610 ac_lo=$ac_mid; break
35612 echo "$as_me: failed program was:" >&5
35613 sed 's/^/| /' conftest.$ac_ext >&5
35615 ac_hi=`expr '(' $ac_mid ')' - 1`
35616 if test $ac_mid -le $ac_hi; then
35620 ac_mid=`expr 2 '*' $ac_mid`
35623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35626 echo "$as_me: failed program was:" >&5
35627 sed 's/^/| /' conftest.$ac_ext >&5
35632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636 # Binary search between lo and hi bounds.
35637 while test "x$ac_lo" != "x$ac_hi"; do
35638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35639 cat >conftest.$ac_ext <<_ACEOF
35642 cat confdefs.h >>conftest.$ac_ext
35643 cat >>conftest.$ac_ext <<_ACEOF
35644 /* end confdefs.h. */
35645 $ac_includes_default
35646 typedef long int ac__type_sizeof_;
35650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35657 rm -f conftest.$ac_objext
35658 if { (ac_try="$ac_compile"
35659 case "(($ac_try" in
35660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35661 *) ac_try_echo=$ac_try;;
35663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35664 (eval "$ac_compile") 2>conftest.er1
35666 grep -v '^ *+' conftest.er1 >conftest.err
35668 cat conftest.err >&5
35669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35670 (exit $ac_status); } && {
35671 test -z "$ac_c_werror_flag" ||
35672 test ! -s conftest.err
35673 } && test -s conftest.$ac_objext; then
35676 echo "$as_me: failed program was:" >&5
35677 sed 's/^/| /' conftest.$ac_ext >&5
35679 ac_lo=`expr '(' $ac_mid ')' + 1`
35682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35685 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35686 '') if test "$ac_cv_type_long_int" = yes; then
35687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35688 See \`config.log' for more details." >&5
35689 echo "$as_me: error: cannot compute sizeof (long int)
35690 See \`config.log' for more details." >&2;}
35691 { (exit 77); exit 77; }; }
35693 ac_cv_sizeof_long_int=0
35697 cat >conftest.$ac_ext <<_ACEOF
35700 cat confdefs.h >>conftest.$ac_ext
35701 cat >>conftest.$ac_ext <<_ACEOF
35702 /* end confdefs.h. */
35703 $ac_includes_default
35704 typedef long int ac__type_sizeof_;
35705 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35706 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35708 #include <stdlib.h>
35713 FILE *f = fopen ("conftest.val", "w");
35716 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35718 long int i = longval ();
35719 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35721 fprintf (f, "%ld\n", i);
35725 unsigned long int i = ulongval ();
35726 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35728 fprintf (f, "%lu\n", i);
35730 return ferror (f) || fclose (f) != 0;
35736 rm -f conftest$ac_exeext
35737 if { (ac_try="$ac_link"
35738 case "(($ac_try" in
35739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35740 *) ac_try_echo=$ac_try;;
35742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35743 (eval "$ac_link") 2>&5
35745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35747 { (case "(($ac_try" in
35748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35749 *) ac_try_echo=$ac_try;;
35751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35752 (eval "$ac_try") 2>&5
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); }; }; then
35756 ac_cv_sizeof_long_int=`cat conftest.val`
35758 echo "$as_me: program exited with status $ac_status" >&5
35759 echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35762 ( exit $ac_status )
35763 if test "$ac_cv_type_long_int" = yes; then
35764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35765 See \`config.log' for more details." >&5
35766 echo "$as_me: error: cannot compute sizeof (long int)
35767 See \`config.log' for more details." >&2;}
35768 { (exit 77); exit 77; }; }
35770 ac_cv_sizeof_long_int=0
35773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35777 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35778 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35782 cat >>confdefs.h <<_ACEOF
35783 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35787 { echo "$as_me:$LINENO: checking for long long int" >&5
35788 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35789 if test "${ac_cv_type_long_long_int+set}" = set; then
35790 echo $ECHO_N "(cached) $ECHO_C" >&6
35792 cat >conftest.$ac_ext <<_ACEOF
35795 cat confdefs.h >>conftest.$ac_ext
35796 cat >>conftest.$ac_ext <<_ACEOF
35797 /* end confdefs.h. */
35798 $ac_includes_default
35799 typedef long long int ac__type_new_;
35803 if ((ac__type_new_ *) 0)
35805 if (sizeof (ac__type_new_))
35811 rm -f conftest.$ac_objext
35812 if { (ac_try="$ac_compile"
35813 case "(($ac_try" in
35814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35815 *) ac_try_echo=$ac_try;;
35817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35818 (eval "$ac_compile") 2>conftest.er1
35820 grep -v '^ *+' conftest.er1 >conftest.err
35822 cat conftest.err >&5
35823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824 (exit $ac_status); } && {
35825 test -z "$ac_c_werror_flag" ||
35826 test ! -s conftest.err
35827 } && test -s conftest.$ac_objext; then
35828 ac_cv_type_long_long_int=yes
35830 echo "$as_me: failed program was:" >&5
35831 sed 's/^/| /' conftest.$ac_ext >&5
35833 ac_cv_type_long_long_int=no
35836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35838 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35839 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35841 # The cast to long int works around a bug in the HP C Compiler
35842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35844 # This bug is HP SR number 8606223364.
35845 { echo "$as_me:$LINENO: checking size of long long int" >&5
35846 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35847 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35848 echo $ECHO_N "(cached) $ECHO_C" >&6
35850 if test "$cross_compiling" = yes; then
35851 # Depending upon the size, compute the lo and hi bounds.
35852 cat >conftest.$ac_ext <<_ACEOF
35855 cat confdefs.h >>conftest.$ac_ext
35856 cat >>conftest.$ac_ext <<_ACEOF
35857 /* end confdefs.h. */
35858 $ac_includes_default
35859 typedef long long int ac__type_sizeof_;
35863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35870 rm -f conftest.$ac_objext
35871 if { (ac_try="$ac_compile"
35872 case "(($ac_try" in
35873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35874 *) ac_try_echo=$ac_try;;
35876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35877 (eval "$ac_compile") 2>conftest.er1
35879 grep -v '^ *+' conftest.er1 >conftest.err
35881 cat conftest.err >&5
35882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35883 (exit $ac_status); } && {
35884 test -z "$ac_c_werror_flag" ||
35885 test ! -s conftest.err
35886 } && test -s conftest.$ac_objext; then
35889 cat >conftest.$ac_ext <<_ACEOF
35892 cat confdefs.h >>conftest.$ac_ext
35893 cat >>conftest.$ac_ext <<_ACEOF
35894 /* end confdefs.h. */
35895 $ac_includes_default
35896 typedef long long int ac__type_sizeof_;
35900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35907 rm -f conftest.$ac_objext
35908 if { (ac_try="$ac_compile"
35909 case "(($ac_try" in
35910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35911 *) ac_try_echo=$ac_try;;
35913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35914 (eval "$ac_compile") 2>conftest.er1
35916 grep -v '^ *+' conftest.er1 >conftest.err
35918 cat conftest.err >&5
35919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35920 (exit $ac_status); } && {
35921 test -z "$ac_c_werror_flag" ||
35922 test ! -s conftest.err
35923 } && test -s conftest.$ac_objext; then
35924 ac_hi=$ac_mid; break
35926 echo "$as_me: failed program was:" >&5
35927 sed 's/^/| /' conftest.$ac_ext >&5
35929 ac_lo=`expr $ac_mid + 1`
35930 if test $ac_lo -le $ac_mid; then
35934 ac_mid=`expr 2 '*' $ac_mid + 1`
35937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35940 echo "$as_me: failed program was:" >&5
35941 sed 's/^/| /' conftest.$ac_ext >&5
35943 cat >conftest.$ac_ext <<_ACEOF
35946 cat confdefs.h >>conftest.$ac_ext
35947 cat >>conftest.$ac_ext <<_ACEOF
35948 /* end confdefs.h. */
35949 $ac_includes_default
35950 typedef long long int ac__type_sizeof_;
35954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35961 rm -f conftest.$ac_objext
35962 if { (ac_try="$ac_compile"
35963 case "(($ac_try" in
35964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35965 *) ac_try_echo=$ac_try;;
35967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35968 (eval "$ac_compile") 2>conftest.er1
35970 grep -v '^ *+' conftest.er1 >conftest.err
35972 cat conftest.err >&5
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); } && {
35975 test -z "$ac_c_werror_flag" ||
35976 test ! -s conftest.err
35977 } && test -s conftest.$ac_objext; then
35980 cat >conftest.$ac_ext <<_ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h. */
35986 $ac_includes_default
35987 typedef long long int ac__type_sizeof_;
35991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35998 rm -f conftest.$ac_objext
35999 if { (ac_try="$ac_compile"
36000 case "(($ac_try" in
36001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36002 *) ac_try_echo=$ac_try;;
36004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36005 (eval "$ac_compile") 2>conftest.er1
36007 grep -v '^ *+' conftest.er1 >conftest.err
36009 cat conftest.err >&5
36010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011 (exit $ac_status); } && {
36012 test -z "$ac_c_werror_flag" ||
36013 test ! -s conftest.err
36014 } && test -s conftest.$ac_objext; then
36015 ac_lo=$ac_mid; break
36017 echo "$as_me: failed program was:" >&5
36018 sed 's/^/| /' conftest.$ac_ext >&5
36020 ac_hi=`expr '(' $ac_mid ')' - 1`
36021 if test $ac_mid -le $ac_hi; then
36025 ac_mid=`expr 2 '*' $ac_mid`
36028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36031 echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36041 # Binary search between lo and hi bounds.
36042 while test "x$ac_lo" != "x$ac_hi"; do
36043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36044 cat >conftest.$ac_ext <<_ACEOF
36047 cat confdefs.h >>conftest.$ac_ext
36048 cat >>conftest.$ac_ext <<_ACEOF
36049 /* end confdefs.h. */
36050 $ac_includes_default
36051 typedef long long int ac__type_sizeof_;
36055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36062 rm -f conftest.$ac_objext
36063 if { (ac_try="$ac_compile"
36064 case "(($ac_try" in
36065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36066 *) ac_try_echo=$ac_try;;
36068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36069 (eval "$ac_compile") 2>conftest.er1
36071 grep -v '^ *+' conftest.er1 >conftest.err
36073 cat conftest.err >&5
36074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075 (exit $ac_status); } && {
36076 test -z "$ac_c_werror_flag" ||
36077 test ! -s conftest.err
36078 } && test -s conftest.$ac_objext; then
36081 echo "$as_me: failed program was:" >&5
36082 sed 's/^/| /' conftest.$ac_ext >&5
36084 ac_lo=`expr '(' $ac_mid ')' + 1`
36087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36090 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36091 '') if test "$ac_cv_type_long_long_int" = yes; then
36092 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36093 See \`config.log' for more details." >&5
36094 echo "$as_me: error: cannot compute sizeof (long long int)
36095 See \`config.log' for more details." >&2;}
36096 { (exit 77); exit 77; }; }
36098 ac_cv_sizeof_long_long_int=0
36102 cat >conftest.$ac_ext <<_ACEOF
36105 cat confdefs.h >>conftest.$ac_ext
36106 cat >>conftest.$ac_ext <<_ACEOF
36107 /* end confdefs.h. */
36108 $ac_includes_default
36109 typedef long long int ac__type_sizeof_;
36110 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36111 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36113 #include <stdlib.h>
36118 FILE *f = fopen ("conftest.val", "w");
36121 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36123 long int i = longval ();
36124 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36126 fprintf (f, "%ld\n", i);
36130 unsigned long int i = ulongval ();
36131 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36133 fprintf (f, "%lu\n", i);
36135 return ferror (f) || fclose (f) != 0;
36141 rm -f conftest$ac_exeext
36142 if { (ac_try="$ac_link"
36143 case "(($ac_try" in
36144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36145 *) ac_try_echo=$ac_try;;
36147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36148 (eval "$ac_link") 2>&5
36150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36152 { (case "(($ac_try" in
36153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36154 *) ac_try_echo=$ac_try;;
36156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36157 (eval "$ac_try") 2>&5
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); }; }; then
36161 ac_cv_sizeof_long_long_int=`cat conftest.val`
36163 echo "$as_me: program exited with status $ac_status" >&5
36164 echo "$as_me: failed program was:" >&5
36165 sed 's/^/| /' conftest.$ac_ext >&5
36167 ( exit $ac_status )
36168 if test "$ac_cv_type_long_long_int" = yes; then
36169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36170 See \`config.log' for more details." >&5
36171 echo "$as_me: error: cannot compute sizeof (long long int)
36172 See \`config.log' for more details." >&2;}
36173 { (exit 77); exit 77; }; }
36175 ac_cv_sizeof_long_long_int=0
36178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36183 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36187 cat >>confdefs.h <<_ACEOF
36188 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36192 { echo "$as_me:$LINENO: checking for int *" >&5
36193 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36194 if test "${ac_cv_type_int_p+set}" = set; then
36195 echo $ECHO_N "(cached) $ECHO_C" >&6
36197 cat >conftest.$ac_ext <<_ACEOF
36200 cat confdefs.h >>conftest.$ac_ext
36201 cat >>conftest.$ac_ext <<_ACEOF
36202 /* end confdefs.h. */
36203 $ac_includes_default
36204 typedef int * ac__type_new_;
36208 if ((ac__type_new_ *) 0)
36210 if (sizeof (ac__type_new_))
36216 rm -f conftest.$ac_objext
36217 if { (ac_try="$ac_compile"
36218 case "(($ac_try" in
36219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36220 *) ac_try_echo=$ac_try;;
36222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36223 (eval "$ac_compile") 2>conftest.er1
36225 grep -v '^ *+' conftest.er1 >conftest.err
36227 cat conftest.err >&5
36228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36229 (exit $ac_status); } && {
36230 test -z "$ac_c_werror_flag" ||
36231 test ! -s conftest.err
36232 } && test -s conftest.$ac_objext; then
36233 ac_cv_type_int_p=yes
36235 echo "$as_me: failed program was:" >&5
36236 sed 's/^/| /' conftest.$ac_ext >&5
36238 ac_cv_type_int_p=no
36241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36243 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36244 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36246 # The cast to long int works around a bug in the HP C Compiler
36247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36249 # This bug is HP SR number 8606223364.
36250 { echo "$as_me:$LINENO: checking size of int *" >&5
36251 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36252 if test "${ac_cv_sizeof_int_p+set}" = set; then
36253 echo $ECHO_N "(cached) $ECHO_C" >&6
36255 if test "$cross_compiling" = yes; then
36256 # Depending upon the size, compute the lo and hi bounds.
36257 cat >conftest.$ac_ext <<_ACEOF
36260 cat confdefs.h >>conftest.$ac_ext
36261 cat >>conftest.$ac_ext <<_ACEOF
36262 /* end confdefs.h. */
36263 $ac_includes_default
36264 typedef int * ac__type_sizeof_;
36268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36275 rm -f conftest.$ac_objext
36276 if { (ac_try="$ac_compile"
36277 case "(($ac_try" in
36278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36279 *) ac_try_echo=$ac_try;;
36281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36282 (eval "$ac_compile") 2>conftest.er1
36284 grep -v '^ *+' conftest.er1 >conftest.err
36286 cat conftest.err >&5
36287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288 (exit $ac_status); } && {
36289 test -z "$ac_c_werror_flag" ||
36290 test ! -s conftest.err
36291 } && test -s conftest.$ac_objext; then
36294 cat >conftest.$ac_ext <<_ACEOF
36297 cat confdefs.h >>conftest.$ac_ext
36298 cat >>conftest.$ac_ext <<_ACEOF
36299 /* end confdefs.h. */
36300 $ac_includes_default
36301 typedef int * ac__type_sizeof_;
36305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36312 rm -f conftest.$ac_objext
36313 if { (ac_try="$ac_compile"
36314 case "(($ac_try" in
36315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36316 *) ac_try_echo=$ac_try;;
36318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36319 (eval "$ac_compile") 2>conftest.er1
36321 grep -v '^ *+' conftest.er1 >conftest.err
36323 cat conftest.err >&5
36324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325 (exit $ac_status); } && {
36326 test -z "$ac_c_werror_flag" ||
36327 test ! -s conftest.err
36328 } && test -s conftest.$ac_objext; then
36329 ac_hi=$ac_mid; break
36331 echo "$as_me: failed program was:" >&5
36332 sed 's/^/| /' conftest.$ac_ext >&5
36334 ac_lo=`expr $ac_mid + 1`
36335 if test $ac_lo -le $ac_mid; then
36339 ac_mid=`expr 2 '*' $ac_mid + 1`
36342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36345 echo "$as_me: failed program was:" >&5
36346 sed 's/^/| /' conftest.$ac_ext >&5
36348 cat >conftest.$ac_ext <<_ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h. */
36354 $ac_includes_default
36355 typedef int * ac__type_sizeof_;
36359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36366 rm -f conftest.$ac_objext
36367 if { (ac_try="$ac_compile"
36368 case "(($ac_try" in
36369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36370 *) ac_try_echo=$ac_try;;
36372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36373 (eval "$ac_compile") 2>conftest.er1
36375 grep -v '^ *+' conftest.er1 >conftest.err
36377 cat conftest.err >&5
36378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379 (exit $ac_status); } && {
36380 test -z "$ac_c_werror_flag" ||
36381 test ! -s conftest.err
36382 } && test -s conftest.$ac_objext; then
36385 cat >conftest.$ac_ext <<_ACEOF
36388 cat confdefs.h >>conftest.$ac_ext
36389 cat >>conftest.$ac_ext <<_ACEOF
36390 /* end confdefs.h. */
36391 $ac_includes_default
36392 typedef int * ac__type_sizeof_;
36396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36403 rm -f conftest.$ac_objext
36404 if { (ac_try="$ac_compile"
36405 case "(($ac_try" in
36406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36407 *) ac_try_echo=$ac_try;;
36409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36410 (eval "$ac_compile") 2>conftest.er1
36412 grep -v '^ *+' conftest.er1 >conftest.err
36414 cat conftest.err >&5
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); } && {
36417 test -z "$ac_c_werror_flag" ||
36418 test ! -s conftest.err
36419 } && test -s conftest.$ac_objext; then
36420 ac_lo=$ac_mid; break
36422 echo "$as_me: failed program was:" >&5
36423 sed 's/^/| /' conftest.$ac_ext >&5
36425 ac_hi=`expr '(' $ac_mid ')' - 1`
36426 if test $ac_mid -le $ac_hi; then
36430 ac_mid=`expr 2 '*' $ac_mid`
36433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36436 echo "$as_me: failed program was:" >&5
36437 sed 's/^/| /' conftest.$ac_ext >&5
36442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36446 # Binary search between lo and hi bounds.
36447 while test "x$ac_lo" != "x$ac_hi"; do
36448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36449 cat >conftest.$ac_ext <<_ACEOF
36452 cat confdefs.h >>conftest.$ac_ext
36453 cat >>conftest.$ac_ext <<_ACEOF
36454 /* end confdefs.h. */
36455 $ac_includes_default
36456 typedef int * ac__type_sizeof_;
36460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36467 rm -f conftest.$ac_objext
36468 if { (ac_try="$ac_compile"
36469 case "(($ac_try" in
36470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36471 *) ac_try_echo=$ac_try;;
36473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36474 (eval "$ac_compile") 2>conftest.er1
36476 grep -v '^ *+' conftest.er1 >conftest.err
36478 cat conftest.err >&5
36479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); } && {
36481 test -z "$ac_c_werror_flag" ||
36482 test ! -s conftest.err
36483 } && test -s conftest.$ac_objext; then
36486 echo "$as_me: failed program was:" >&5
36487 sed 's/^/| /' conftest.$ac_ext >&5
36489 ac_lo=`expr '(' $ac_mid ')' + 1`
36492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36495 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36496 '') if test "$ac_cv_type_int_p" = yes; then
36497 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36498 See \`config.log' for more details." >&5
36499 echo "$as_me: error: cannot compute sizeof (int *)
36500 See \`config.log' for more details." >&2;}
36501 { (exit 77); exit 77; }; }
36503 ac_cv_sizeof_int_p=0
36507 cat >conftest.$ac_ext <<_ACEOF
36510 cat confdefs.h >>conftest.$ac_ext
36511 cat >>conftest.$ac_ext <<_ACEOF
36512 /* end confdefs.h. */
36513 $ac_includes_default
36514 typedef int * ac__type_sizeof_;
36515 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36516 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36518 #include <stdlib.h>
36523 FILE *f = fopen ("conftest.val", "w");
36526 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36528 long int i = longval ();
36529 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36531 fprintf (f, "%ld\n", i);
36535 unsigned long int i = ulongval ();
36536 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36538 fprintf (f, "%lu\n", i);
36540 return ferror (f) || fclose (f) != 0;
36546 rm -f conftest$ac_exeext
36547 if { (ac_try="$ac_link"
36548 case "(($ac_try" in
36549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36550 *) ac_try_echo=$ac_try;;
36552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36553 (eval "$ac_link") 2>&5
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36557 { (case "(($ac_try" in
36558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36559 *) ac_try_echo=$ac_try;;
36561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36562 (eval "$ac_try") 2>&5
36564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565 (exit $ac_status); }; }; then
36566 ac_cv_sizeof_int_p=`cat conftest.val`
36568 echo "$as_me: program exited with status $ac_status" >&5
36569 echo "$as_me: failed program was:" >&5
36570 sed 's/^/| /' conftest.$ac_ext >&5
36572 ( exit $ac_status )
36573 if test "$ac_cv_type_int_p" = yes; then
36574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36575 See \`config.log' for more details." >&5
36576 echo "$as_me: error: cannot compute sizeof (int *)
36577 See \`config.log' for more details." >&2;}
36578 { (exit 77); exit 77; }; }
36580 ac_cv_sizeof_int_p=0
36583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36587 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36588 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36592 cat >>confdefs.h <<_ACEOF
36593 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36598 { echo "$as_me:$LINENO: checking for u_int type" >&5
36599 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36600 if test "${ac_cv_have_u_int+set}" = set; then
36601 echo $ECHO_N "(cached) $ECHO_C" >&6
36604 cat >conftest.$ac_ext <<_ACEOF
36607 cat confdefs.h >>conftest.$ac_ext
36608 cat >>conftest.$ac_ext <<_ACEOF
36609 /* end confdefs.h. */
36611 #include <sys/types.h>
36623 rm -f conftest.$ac_objext
36624 if { (ac_try="$ac_compile"
36625 case "(($ac_try" in
36626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36627 *) ac_try_echo=$ac_try;;
36629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36630 (eval "$ac_compile") 2>conftest.er1
36632 grep -v '^ *+' conftest.er1 >conftest.err
36634 cat conftest.err >&5
36635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636 (exit $ac_status); } && {
36637 test -z "$ac_c_werror_flag" ||
36638 test ! -s conftest.err
36639 } && test -s conftest.$ac_objext; then
36641 ac_cv_have_u_int="yes"
36644 echo "$as_me: failed program was:" >&5
36645 sed 's/^/| /' conftest.$ac_ext >&5
36648 ac_cv_have_u_int="no"
36653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36657 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36658 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36659 if test "x$ac_cv_have_u_int" = "xyes" ; then
36660 cat >>confdefs.h <<\_ACEOF
36661 #define HAVE_U_INT 1
36667 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36668 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36669 if test "${ac_cv_have_intmax_t+set}" = set; then
36670 echo $ECHO_N "(cached) $ECHO_C" >&6
36673 cat >conftest.$ac_ext <<_ACEOF
36676 cat confdefs.h >>conftest.$ac_ext
36677 cat >>conftest.$ac_ext <<_ACEOF
36678 /* end confdefs.h. */
36680 #include <sys/types.h>
36692 rm -f conftest.$ac_objext
36693 if { (ac_try="$ac_compile"
36694 case "(($ac_try" in
36695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36696 *) ac_try_echo=$ac_try;;
36698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36699 (eval "$ac_compile") 2>conftest.er1
36701 grep -v '^ *+' conftest.er1 >conftest.err
36703 cat conftest.err >&5
36704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705 (exit $ac_status); } && {
36706 test -z "$ac_c_werror_flag" ||
36707 test ! -s conftest.err
36708 } && test -s conftest.$ac_objext; then
36710 ac_cv_have_intmax_t="yes"
36713 echo "$as_me: failed program was:" >&5
36714 sed 's/^/| /' conftest.$ac_ext >&5
36717 cat >conftest.$ac_ext <<_ACEOF
36720 cat confdefs.h >>conftest.$ac_ext
36721 cat >>conftest.$ac_ext <<_ACEOF
36722 /* end confdefs.h. */
36724 #include <stdint.h>
36736 rm -f conftest.$ac_objext
36737 if { (ac_try="$ac_compile"
36738 case "(($ac_try" in
36739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36740 *) ac_try_echo=$ac_try;;
36742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36743 (eval "$ac_compile") 2>conftest.er1
36745 grep -v '^ *+' conftest.er1 >conftest.err
36747 cat conftest.err >&5
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); } && {
36750 test -z "$ac_c_werror_flag" ||
36751 test ! -s conftest.err
36752 } && test -s conftest.$ac_objext; then
36754 ac_cv_have_intmax_t="yes"
36757 echo "$as_me: failed program was:" >&5
36758 sed 's/^/| /' conftest.$ac_ext >&5
36761 ac_cv_have_intmax_t="no"
36766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36775 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36776 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36777 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36778 cat >>confdefs.h <<\_ACEOF
36779 #define HAVE_INTMAX_T 1
36785 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36786 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36787 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36788 echo $ECHO_N "(cached) $ECHO_C" >&6
36791 cat >conftest.$ac_ext <<_ACEOF
36794 cat confdefs.h >>conftest.$ac_ext
36795 cat >>conftest.$ac_ext <<_ACEOF
36796 /* end confdefs.h. */
36798 #include <sys/types.h>
36804 u_intmax_t a; a = 1;
36810 rm -f conftest.$ac_objext
36811 if { (ac_try="$ac_compile"
36812 case "(($ac_try" in
36813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36814 *) ac_try_echo=$ac_try;;
36816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36817 (eval "$ac_compile") 2>conftest.er1
36819 grep -v '^ *+' conftest.er1 >conftest.err
36821 cat conftest.err >&5
36822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36823 (exit $ac_status); } && {
36824 test -z "$ac_c_werror_flag" ||
36825 test ! -s conftest.err
36826 } && test -s conftest.$ac_objext; then
36828 ac_cv_have_u_intmax_t="yes"
36831 echo "$as_me: failed program was:" >&5
36832 sed 's/^/| /' conftest.$ac_ext >&5
36835 cat >conftest.$ac_ext <<_ACEOF
36838 cat confdefs.h >>conftest.$ac_ext
36839 cat >>conftest.$ac_ext <<_ACEOF
36840 /* end confdefs.h. */
36842 #include <stdint.h>
36848 u_intmax_t a; a = 1;
36854 rm -f conftest.$ac_objext
36855 if { (ac_try="$ac_compile"
36856 case "(($ac_try" in
36857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36858 *) ac_try_echo=$ac_try;;
36860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36861 (eval "$ac_compile") 2>conftest.er1
36863 grep -v '^ *+' conftest.er1 >conftest.err
36865 cat conftest.err >&5
36866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867 (exit $ac_status); } && {
36868 test -z "$ac_c_werror_flag" ||
36869 test ! -s conftest.err
36870 } && test -s conftest.$ac_objext; then
36872 ac_cv_have_u_intmax_t="yes"
36875 echo "$as_me: failed program was:" >&5
36876 sed 's/^/| /' conftest.$ac_ext >&5
36879 ac_cv_have_u_intmax_t="no"
36884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36894 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36895 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36896 cat >>confdefs.h <<\_ACEOF
36897 #define HAVE_U_INTMAX_T 1
36903 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36904 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36905 if test "${ac_cv_have_intxx_t+set}" = set; then
36906 echo $ECHO_N "(cached) $ECHO_C" >&6
36909 cat >conftest.$ac_ext <<_ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h. */
36916 #include <sys/types.h>
36922 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36928 rm -f conftest.$ac_objext
36929 if { (ac_try="$ac_compile"
36930 case "(($ac_try" in
36931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36932 *) ac_try_echo=$ac_try;;
36934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36935 (eval "$ac_compile") 2>conftest.er1
36937 grep -v '^ *+' conftest.er1 >conftest.err
36939 cat conftest.err >&5
36940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36941 (exit $ac_status); } && {
36942 test -z "$ac_c_werror_flag" ||
36943 test ! -s conftest.err
36944 } && test -s conftest.$ac_objext; then
36946 ac_cv_have_intxx_t="yes"
36949 echo "$as_me: failed program was:" >&5
36950 sed 's/^/| /' conftest.$ac_ext >&5
36953 ac_cv_have_intxx_t="no"
36958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36962 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36963 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36964 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36965 cat >>confdefs.h <<\_ACEOF
36966 #define HAVE_INTXX_T 1
36972 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36973 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36974 if test "${ac_cv_have_int64_t+set}" = set; then
36975 echo $ECHO_N "(cached) $ECHO_C" >&6
36978 cat >conftest.$ac_ext <<_ACEOF
36981 cat confdefs.h >>conftest.$ac_ext
36982 cat >>conftest.$ac_ext <<_ACEOF
36983 /* end confdefs.h. */
36985 #include <sys/types.h>
36997 rm -f conftest.$ac_objext
36998 if { (ac_try="$ac_compile"
36999 case "(($ac_try" in
37000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37001 *) ac_try_echo=$ac_try;;
37003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37004 (eval "$ac_compile") 2>conftest.er1
37006 grep -v '^ *+' conftest.er1 >conftest.err
37008 cat conftest.err >&5
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); } && {
37011 test -z "$ac_c_werror_flag" ||
37012 test ! -s conftest.err
37013 } && test -s conftest.$ac_objext; then
37015 ac_cv_have_int64_t="yes"
37018 echo "$as_me: failed program was:" >&5
37019 sed 's/^/| /' conftest.$ac_ext >&5
37022 ac_cv_have_int64_t="no"
37027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37031 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37032 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37033 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37034 cat >>confdefs.h <<\_ACEOF
37035 #define HAVE_INT64_T 1
37041 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37042 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37043 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37044 echo $ECHO_N "(cached) $ECHO_C" >&6
37047 cat >conftest.$ac_ext <<_ACEOF
37050 cat confdefs.h >>conftest.$ac_ext
37051 cat >>conftest.$ac_ext <<_ACEOF
37052 /* end confdefs.h. */
37054 #include <sys/types.h>
37060 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37066 rm -f conftest.$ac_objext
37067 if { (ac_try="$ac_compile"
37068 case "(($ac_try" in
37069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37070 *) ac_try_echo=$ac_try;;
37072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37073 (eval "$ac_compile") 2>conftest.er1
37075 grep -v '^ *+' conftest.er1 >conftest.err
37077 cat conftest.err >&5
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); } && {
37080 test -z "$ac_c_werror_flag" ||
37081 test ! -s conftest.err
37082 } && test -s conftest.$ac_objext; then
37084 ac_cv_have_u_intxx_t="yes"
37087 echo "$as_me: failed program was:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37091 ac_cv_have_u_intxx_t="no"
37096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37100 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37101 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37102 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37103 cat >>confdefs.h <<\_ACEOF
37104 #define HAVE_U_INTXX_T 1
37110 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37111 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37112 if test "${ac_cv_have_u_int64_t+set}" = set; then
37113 echo $ECHO_N "(cached) $ECHO_C" >&6
37116 cat >conftest.$ac_ext <<_ACEOF
37119 cat confdefs.h >>conftest.$ac_ext
37120 cat >>conftest.$ac_ext <<_ACEOF
37121 /* end confdefs.h. */
37123 #include <sys/types.h>
37129 u_int64_t a; a = 1;
37135 rm -f conftest.$ac_objext
37136 if { (ac_try="$ac_compile"
37137 case "(($ac_try" in
37138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37139 *) ac_try_echo=$ac_try;;
37141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37142 (eval "$ac_compile") 2>conftest.er1
37144 grep -v '^ *+' conftest.er1 >conftest.err
37146 cat conftest.err >&5
37147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37148 (exit $ac_status); } && {
37149 test -z "$ac_c_werror_flag" ||
37150 test ! -s conftest.err
37151 } && test -s conftest.$ac_objext; then
37153 ac_cv_have_u_int64_t="yes"
37156 echo "$as_me: failed program was:" >&5
37157 sed 's/^/| /' conftest.$ac_ext >&5
37160 ac_cv_have_u_int64_t="no"
37165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37169 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37170 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37171 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37172 cat >>confdefs.h <<\_ACEOF
37173 #define HAVE_U_INT64_T 1
37179 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37180 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37182 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37183 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37184 cat >conftest.$ac_ext <<_ACEOF
37187 cat confdefs.h >>conftest.$ac_ext
37188 cat >>conftest.$ac_ext <<_ACEOF
37189 /* end confdefs.h. */
37191 #include <sys/bitypes.h>
37197 int8_t a; int16_t b; int32_t c;
37198 u_int8_t e; u_int16_t f; u_int32_t g;
37199 a = b = c = e = f = g = 1;
37205 rm -f conftest.$ac_objext
37206 if { (ac_try="$ac_compile"
37207 case "(($ac_try" in
37208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37209 *) ac_try_echo=$ac_try;;
37211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37212 (eval "$ac_compile") 2>conftest.er1
37214 grep -v '^ *+' conftest.er1 >conftest.err
37216 cat conftest.err >&5
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); } && {
37219 test -z "$ac_c_werror_flag" ||
37220 test ! -s conftest.err
37221 } && test -s conftest.$ac_objext; then
37223 cat >>confdefs.h <<\_ACEOF
37224 #define HAVE_U_INTXX_T 1
37227 cat >>confdefs.h <<\_ACEOF
37228 #define HAVE_INTXX_T 1
37231 cat >>confdefs.h <<\_ACEOF
37232 #define HAVE_SYS_BITYPES_H 1
37235 { echo "$as_me:$LINENO: result: yes" >&5
37236 echo "${ECHO_T}yes" >&6; }
37239 echo "$as_me: failed program was:" >&5
37240 sed 's/^/| /' conftest.$ac_ext >&5
37243 { echo "$as_me:$LINENO: result: no" >&5
37244 echo "${ECHO_T}no" >&6; }
37249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37252 if test -z "$have_u_intxx_t" ; then
37253 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37254 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37255 if test "${ac_cv_have_uintxx_t+set}" = set; then
37256 echo $ECHO_N "(cached) $ECHO_C" >&6
37259 cat >conftest.$ac_ext <<_ACEOF
37262 cat confdefs.h >>conftest.$ac_ext
37263 cat >>conftest.$ac_ext <<_ACEOF
37264 /* end confdefs.h. */
37266 #include <sys/types.h>
37272 uint8_t a; uint16_t b;
37273 uint32_t c; a = b = c = 1;
37279 rm -f conftest.$ac_objext
37280 if { (ac_try="$ac_compile"
37281 case "(($ac_try" in
37282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37283 *) ac_try_echo=$ac_try;;
37285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37286 (eval "$ac_compile") 2>conftest.er1
37288 grep -v '^ *+' conftest.er1 >conftest.err
37290 cat conftest.err >&5
37291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37292 (exit $ac_status); } && {
37293 test -z "$ac_c_werror_flag" ||
37294 test ! -s conftest.err
37295 } && test -s conftest.$ac_objext; then
37297 ac_cv_have_uintxx_t="yes"
37300 echo "$as_me: failed program was:" >&5
37301 sed 's/^/| /' conftest.$ac_ext >&5
37304 ac_cv_have_uintxx_t="no"
37309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37313 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37314 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37315 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37316 cat >>confdefs.h <<\_ACEOF
37317 #define HAVE_UINTXX_T 1
37323 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37324 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37326 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37327 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37328 cat >conftest.$ac_ext <<_ACEOF
37331 cat confdefs.h >>conftest.$ac_ext
37332 cat >>conftest.$ac_ext <<_ACEOF
37333 /* end confdefs.h. */
37335 #include <sys/bitypes.h>
37341 int64_t a; u_int64_t b;
37348 rm -f conftest.$ac_objext
37349 if { (ac_try="$ac_compile"
37350 case "(($ac_try" in
37351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37352 *) ac_try_echo=$ac_try;;
37354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37355 (eval "$ac_compile") 2>conftest.er1
37357 grep -v '^ *+' conftest.er1 >conftest.err
37359 cat conftest.err >&5
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); } && {
37362 test -z "$ac_c_werror_flag" ||
37363 test ! -s conftest.err
37364 } && test -s conftest.$ac_objext; then
37366 cat >>confdefs.h <<\_ACEOF
37367 #define HAVE_U_INT64_T 1
37370 cat >>confdefs.h <<\_ACEOF
37371 #define HAVE_INT64_T 1
37374 { echo "$as_me:$LINENO: result: yes" >&5
37375 echo "${ECHO_T}yes" >&6; }
37378 echo "$as_me: failed program was:" >&5
37379 sed 's/^/| /' conftest.$ac_ext >&5
37382 { echo "$as_me:$LINENO: result: no" >&5
37383 echo "${ECHO_T}no" >&6; }
37388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37391 if (test -z "$have_uintxx_t" && \
37392 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37394 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37395 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37396 cat >conftest.$ac_ext <<_ACEOF
37399 cat confdefs.h >>conftest.$ac_ext
37400 cat >>conftest.$ac_ext <<_ACEOF
37401 /* end confdefs.h. */
37403 #include <sys/bitypes.h>
37409 uint8_t a; uint16_t b;
37410 uint32_t c; a = b = c = 1;
37416 rm -f conftest.$ac_objext
37417 if { (ac_try="$ac_compile"
37418 case "(($ac_try" in
37419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37420 *) ac_try_echo=$ac_try;;
37422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37423 (eval "$ac_compile") 2>conftest.er1
37425 grep -v '^ *+' conftest.er1 >conftest.err
37427 cat conftest.err >&5
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); } && {
37430 test -z "$ac_c_werror_flag" ||
37431 test ! -s conftest.err
37432 } && test -s conftest.$ac_objext; then
37434 cat >>confdefs.h <<\_ACEOF
37435 #define HAVE_UINTXX_T 1
37438 { echo "$as_me:$LINENO: result: yes" >&5
37439 echo "${ECHO_T}yes" >&6; }
37442 echo "$as_me: failed program was:" >&5
37443 sed 's/^/| /' conftest.$ac_ext >&5
37446 { echo "$as_me:$LINENO: result: no" >&5
37447 echo "${ECHO_T}no" >&6; }
37452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37488 echo $ECHO_N "(cached) $ECHO_C" >&6
37490 cat >conftest.$ac_ext <<_ACEOF
37493 cat confdefs.h >>conftest.$ac_ext
37494 cat >>conftest.$ac_ext <<_ACEOF
37495 /* end confdefs.h. */
37496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37498 #define $ac_func innocuous_$ac_func
37500 /* System header to define __stub macros and hopefully few prototypes,
37501 which can conflict with char $ac_func (); below.
37502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37503 <limits.h> exists even on freestanding compilers. */
37506 # include <limits.h>
37508 # include <assert.h>
37513 /* Override any GCC internal prototype to avoid an error.
37514 Use char because int might match the return type of a GCC
37515 builtin and then its argument prototype would still apply. */
37520 /* The GNU C library defines this for functions which it implements
37521 to always fail with ENOSYS. Some functions are actually named
37522 something starting with __ and the normal name is an alias. */
37523 #if defined __stub_$ac_func || defined __stub___$ac_func
37530 return $ac_func ();
37535 rm -f conftest.$ac_objext conftest$ac_exeext
37536 if { (ac_try="$ac_link"
37537 case "(($ac_try" in
37538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37539 *) ac_try_echo=$ac_try;;
37541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37542 (eval "$ac_link") 2>conftest.er1
37544 grep -v '^ *+' conftest.er1 >conftest.err
37546 cat conftest.err >&5
37547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37548 (exit $ac_status); } && {
37549 test -z "$ac_c_werror_flag" ||
37550 test ! -s conftest.err
37551 } && test -s conftest$ac_exeext &&
37552 $as_test_x conftest$ac_exeext; then
37553 eval "$as_ac_var=yes"
37555 echo "$as_me: failed program was:" >&5
37556 sed 's/^/| /' conftest.$ac_ext >&5
37558 eval "$as_ac_var=no"
37561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37562 conftest$ac_exeext conftest.$ac_ext
37564 ac_res=`eval echo '${'$as_ac_var'}'`
37565 { echo "$as_me:$LINENO: result: $ac_res" >&5
37566 echo "${ECHO_T}$ac_res" >&6; }
37567 if test `eval echo '${'$as_ac_var'}'` = yes; then
37568 cat >>confdefs.h <<_ACEOF
37569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37573 echo 'configure: cannot find needed function.'; exit 1
37580 for ac_func in fchdir
37582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37586 echo $ECHO_N "(cached) $ECHO_C" >&6
37588 cat >conftest.$ac_ext <<_ACEOF
37591 cat confdefs.h >>conftest.$ac_ext
37592 cat >>conftest.$ac_ext <<_ACEOF
37593 /* end confdefs.h. */
37594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37596 #define $ac_func innocuous_$ac_func
37598 /* System header to define __stub macros and hopefully few prototypes,
37599 which can conflict with char $ac_func (); below.
37600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37601 <limits.h> exists even on freestanding compilers. */
37604 # include <limits.h>
37606 # include <assert.h>
37611 /* Override any GCC internal prototype to avoid an error.
37612 Use char because int might match the return type of a GCC
37613 builtin and then its argument prototype would still apply. */
37618 /* The GNU C library defines this for functions which it implements
37619 to always fail with ENOSYS. Some functions are actually named
37620 something starting with __ and the normal name is an alias. */
37621 #if defined __stub_$ac_func || defined __stub___$ac_func
37628 return $ac_func ();
37633 rm -f conftest.$ac_objext conftest$ac_exeext
37634 if { (ac_try="$ac_link"
37635 case "(($ac_try" in
37636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37637 *) ac_try_echo=$ac_try;;
37639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37640 (eval "$ac_link") 2>conftest.er1
37642 grep -v '^ *+' conftest.er1 >conftest.err
37644 cat conftest.err >&5
37645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646 (exit $ac_status); } && {
37647 test -z "$ac_c_werror_flag" ||
37648 test ! -s conftest.err
37649 } && test -s conftest$ac_exeext &&
37650 $as_test_x conftest$ac_exeext; then
37651 eval "$as_ac_var=yes"
37653 echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37656 eval "$as_ac_var=no"
37659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37660 conftest$ac_exeext conftest.$ac_ext
37662 ac_res=`eval echo '${'$as_ac_var'}'`
37663 { echo "$as_me:$LINENO: result: $ac_res" >&5
37664 echo "${ECHO_T}$ac_res" >&6; }
37665 if test `eval echo '${'$as_ac_var'}'` = yes; then
37666 cat >>confdefs.h <<_ACEOF
37667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37669 cat >>confdefs.h <<\_ACEOF
37670 #define HAVE_FCHDIR 1
37677 for ac_func in strtoll
37679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37683 echo $ECHO_N "(cached) $ECHO_C" >&6
37685 cat >conftest.$ac_ext <<_ACEOF
37688 cat confdefs.h >>conftest.$ac_ext
37689 cat >>conftest.$ac_ext <<_ACEOF
37690 /* end confdefs.h. */
37691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37693 #define $ac_func innocuous_$ac_func
37695 /* System header to define __stub macros and hopefully few prototypes,
37696 which can conflict with char $ac_func (); below.
37697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37698 <limits.h> exists even on freestanding compilers. */
37701 # include <limits.h>
37703 # include <assert.h>
37708 /* Override any GCC internal prototype to avoid an error.
37709 Use char because int might match the return type of a GCC
37710 builtin and then its argument prototype would still apply. */
37715 /* The GNU C library defines this for functions which it implements
37716 to always fail with ENOSYS. Some functions are actually named
37717 something starting with __ and the normal name is an alias. */
37718 #if defined __stub_$ac_func || defined __stub___$ac_func
37725 return $ac_func ();
37730 rm -f conftest.$ac_objext conftest$ac_exeext
37731 if { (ac_try="$ac_link"
37732 case "(($ac_try" in
37733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37734 *) ac_try_echo=$ac_try;;
37736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37737 (eval "$ac_link") 2>conftest.er1
37739 grep -v '^ *+' conftest.er1 >conftest.err
37741 cat conftest.err >&5
37742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743 (exit $ac_status); } && {
37744 test -z "$ac_c_werror_flag" ||
37745 test ! -s conftest.err
37746 } && test -s conftest$ac_exeext &&
37747 $as_test_x conftest$ac_exeext; then
37748 eval "$as_ac_var=yes"
37750 echo "$as_me: failed program was:" >&5
37751 sed 's/^/| /' conftest.$ac_ext >&5
37753 eval "$as_ac_var=no"
37756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37757 conftest$ac_exeext conftest.$ac_ext
37759 ac_res=`eval echo '${'$as_ac_var'}'`
37760 { echo "$as_me:$LINENO: result: $ac_res" >&5
37761 echo "${ECHO_T}$ac_res" >&6; }
37762 if test `eval echo '${'$as_ac_var'}'` = yes; then
37763 cat >>confdefs.h <<_ACEOF
37764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37766 cat >>confdefs.h <<\_ACEOF
37767 #define HAVE_STRTOLL 1
37774 for ac_func in posix_fadvise
37776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37780 echo $ECHO_N "(cached) $ECHO_C" >&6
37782 cat >conftest.$ac_ext <<_ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h. */
37788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37790 #define $ac_func innocuous_$ac_func
37792 /* System header to define __stub macros and hopefully few prototypes,
37793 which can conflict with char $ac_func (); below.
37794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37795 <limits.h> exists even on freestanding compilers. */
37798 # include <limits.h>
37800 # include <assert.h>
37805 /* Override any GCC internal prototype to avoid an error.
37806 Use char because int might match the return type of a GCC
37807 builtin and then its argument prototype would still apply. */
37812 /* The GNU C library defines this for functions which it implements
37813 to always fail with ENOSYS. Some functions are actually named
37814 something starting with __ and the normal name is an alias. */
37815 #if defined __stub_$ac_func || defined __stub___$ac_func
37822 return $ac_func ();
37827 rm -f conftest.$ac_objext conftest$ac_exeext
37828 if { (ac_try="$ac_link"
37829 case "(($ac_try" in
37830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37831 *) ac_try_echo=$ac_try;;
37833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37834 (eval "$ac_link") 2>conftest.er1
37836 grep -v '^ *+' conftest.er1 >conftest.err
37838 cat conftest.err >&5
37839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840 (exit $ac_status); } && {
37841 test -z "$ac_c_werror_flag" ||
37842 test ! -s conftest.err
37843 } && test -s conftest$ac_exeext &&
37844 $as_test_x conftest$ac_exeext; then
37845 eval "$as_ac_var=yes"
37847 echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37850 eval "$as_ac_var=no"
37853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37854 conftest$ac_exeext conftest.$ac_ext
37856 ac_res=`eval echo '${'$as_ac_var'}'`
37857 { echo "$as_me:$LINENO: result: $ac_res" >&5
37858 echo "${ECHO_T}$ac_res" >&6; }
37859 if test `eval echo '${'$as_ac_var'}'` = yes; then
37860 cat >>confdefs.h <<_ACEOF
37861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37868 for ac_func in fdatasync
37870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37874 echo $ECHO_N "(cached) $ECHO_C" >&6
37876 cat >conftest.$ac_ext <<_ACEOF
37879 cat confdefs.h >>conftest.$ac_ext
37880 cat >>conftest.$ac_ext <<_ACEOF
37881 /* end confdefs.h. */
37882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37884 #define $ac_func innocuous_$ac_func
37886 /* System header to define __stub macros and hopefully few prototypes,
37887 which can conflict with char $ac_func (); below.
37888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37889 <limits.h> exists even on freestanding compilers. */
37892 # include <limits.h>
37894 # include <assert.h>
37899 /* Override any GCC internal prototype to avoid an error.
37900 Use char because int might match the return type of a GCC
37901 builtin and then its argument prototype would still apply. */
37906 /* The GNU C library defines this for functions which it implements
37907 to always fail with ENOSYS. Some functions are actually named
37908 something starting with __ and the normal name is an alias. */
37909 #if defined __stub_$ac_func || defined __stub___$ac_func
37916 return $ac_func ();
37921 rm -f conftest.$ac_objext conftest$ac_exeext
37922 if { (ac_try="$ac_link"
37923 case "(($ac_try" in
37924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37925 *) ac_try_echo=$ac_try;;
37927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37928 (eval "$ac_link") 2>conftest.er1
37930 grep -v '^ *+' conftest.er1 >conftest.err
37932 cat conftest.err >&5
37933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934 (exit $ac_status); } && {
37935 test -z "$ac_c_werror_flag" ||
37936 test ! -s conftest.err
37937 } && test -s conftest$ac_exeext &&
37938 $as_test_x conftest$ac_exeext; then
37939 eval "$as_ac_var=yes"
37941 echo "$as_me: failed program was:" >&5
37942 sed 's/^/| /' conftest.$ac_ext >&5
37944 eval "$as_ac_var=no"
37947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37948 conftest$ac_exeext conftest.$ac_ext
37950 ac_res=`eval echo '${'$as_ac_var'}'`
37951 { echo "$as_me:$LINENO: result: $ac_res" >&5
37952 echo "${ECHO_T}$ac_res" >&6; }
37953 if test `eval echo '${'$as_ac_var'}'` = yes; then
37954 cat >>confdefs.h <<_ACEOF
37955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37963 for ac_func in chflags
37965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37969 echo $ECHO_N "(cached) $ECHO_C" >&6
37971 cat >conftest.$ac_ext <<_ACEOF
37974 cat confdefs.h >>conftest.$ac_ext
37975 cat >>conftest.$ac_ext <<_ACEOF
37976 /* end confdefs.h. */
37977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37979 #define $ac_func innocuous_$ac_func
37981 /* System header to define __stub macros and hopefully few prototypes,
37982 which can conflict with char $ac_func (); below.
37983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37984 <limits.h> exists even on freestanding compilers. */
37987 # include <limits.h>
37989 # include <assert.h>
37994 /* Override any GCC internal prototype to avoid an error.
37995 Use char because int might match the return type of a GCC
37996 builtin and then its argument prototype would still apply. */
38001 /* The GNU C library defines this for functions which it implements
38002 to always fail with ENOSYS. Some functions are actually named
38003 something starting with __ and the normal name is an alias. */
38004 #if defined __stub_$ac_func || defined __stub___$ac_func
38011 return $ac_func ();
38016 rm -f conftest.$ac_objext conftest$ac_exeext
38017 if { (ac_try="$ac_link"
38018 case "(($ac_try" in
38019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38020 *) ac_try_echo=$ac_try;;
38022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38023 (eval "$ac_link") 2>conftest.er1
38025 grep -v '^ *+' conftest.er1 >conftest.err
38027 cat conftest.err >&5
38028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029 (exit $ac_status); } && {
38030 test -z "$ac_c_werror_flag" ||
38031 test ! -s conftest.err
38032 } && test -s conftest$ac_exeext &&
38033 $as_test_x conftest$ac_exeext; then
38034 eval "$as_ac_var=yes"
38036 echo "$as_me: failed program was:" >&5
38037 sed 's/^/| /' conftest.$ac_ext >&5
38039 eval "$as_ac_var=no"
38042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38043 conftest$ac_exeext conftest.$ac_ext
38045 ac_res=`eval echo '${'$as_ac_var'}'`
38046 { echo "$as_me:$LINENO: result: $ac_res" >&5
38047 echo "${ECHO_T}$ac_res" >&6; }
38048 if test `eval echo '${'$as_ac_var'}'` = yes; then
38049 cat >>confdefs.h <<_ACEOF
38050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38061 for ac_func in snprintf vsnprintf gethostid fseeko
38063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38069 cat >conftest.$ac_ext <<_ACEOF
38072 cat confdefs.h >>conftest.$ac_ext
38073 cat >>conftest.$ac_ext <<_ACEOF
38074 /* end confdefs.h. */
38075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38077 #define $ac_func innocuous_$ac_func
38079 /* System header to define __stub macros and hopefully few prototypes,
38080 which can conflict with char $ac_func (); below.
38081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38082 <limits.h> exists even on freestanding compilers. */
38085 # include <limits.h>
38087 # include <assert.h>
38092 /* Override any GCC internal prototype to avoid an error.
38093 Use char because int might match the return type of a GCC
38094 builtin and then its argument prototype would still apply. */
38099 /* The GNU C library defines this for functions which it implements
38100 to always fail with ENOSYS. Some functions are actually named
38101 something starting with __ and the normal name is an alias. */
38102 #if defined __stub_$ac_func || defined __stub___$ac_func
38109 return $ac_func ();
38114 rm -f conftest.$ac_objext conftest$ac_exeext
38115 if { (ac_try="$ac_link"
38116 case "(($ac_try" in
38117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38118 *) ac_try_echo=$ac_try;;
38120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38121 (eval "$ac_link") 2>conftest.er1
38123 grep -v '^ *+' conftest.er1 >conftest.err
38125 cat conftest.err >&5
38126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38127 (exit $ac_status); } && {
38128 test -z "$ac_c_werror_flag" ||
38129 test ! -s conftest.err
38130 } && test -s conftest$ac_exeext &&
38131 $as_test_x conftest$ac_exeext; then
38132 eval "$as_ac_var=yes"
38134 echo "$as_me: failed program was:" >&5
38135 sed 's/^/| /' conftest.$ac_ext >&5
38137 eval "$as_ac_var=no"
38140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38141 conftest$ac_exeext conftest.$ac_ext
38143 ac_res=`eval echo '${'$as_ac_var'}'`
38144 { echo "$as_me:$LINENO: result: $ac_res" >&5
38145 echo "${ECHO_T}$ac_res" >&6; }
38146 if test `eval echo '${'$as_ac_var'}'` = yes; then
38147 cat >>confdefs.h <<_ACEOF
38148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38155 { echo "$as_me:$LINENO: checking for va_copy" >&5
38156 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38157 if test "${ba_cv_va_copy+set}" = set; then
38158 echo $ECHO_N "(cached) $ECHO_C" >&6
38161 cat >conftest.$ac_ext <<_ACEOF
38164 cat confdefs.h >>conftest.$ac_ext
38165 cat >>conftest.$ac_ext <<_ACEOF
38166 /* end confdefs.h. */
38168 #include <stdarg.h>
38169 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38170 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38176 call_use_va_copy(1,2,3)
38182 rm -f conftest.$ac_objext conftest$ac_exeext
38183 if { (ac_try="$ac_link"
38184 case "(($ac_try" in
38185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38186 *) ac_try_echo=$ac_try;;
38188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38189 (eval "$ac_link") 2>conftest.er1
38191 grep -v '^ *+' conftest.er1 >conftest.err
38193 cat conftest.err >&5
38194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38195 (exit $ac_status); } && {
38196 test -z "$ac_c_werror_flag" ||
38197 test ! -s conftest.err
38198 } && test -s conftest$ac_exeext &&
38199 $as_test_x conftest$ac_exeext; then
38204 echo "$as_me: failed program was:" >&5
38205 sed 's/^/| /' conftest.$ac_ext >&5
38213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38214 conftest$ac_exeext conftest.$ac_ext
38218 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38219 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38220 test $ba_cv_va_copy = yes &&
38221 cat >>confdefs.h <<\_ACEOF
38222 #define HAVE_VA_COPY 1
38230 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38236 echo $ECHO_N "(cached) $ECHO_C" >&6
38238 cat >conftest.$ac_ext <<_ACEOF
38241 cat confdefs.h >>conftest.$ac_ext
38242 cat >>conftest.$ac_ext <<_ACEOF
38243 /* end confdefs.h. */
38244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38246 #define $ac_func innocuous_$ac_func
38248 /* System header to define __stub macros and hopefully few prototypes,
38249 which can conflict with char $ac_func (); below.
38250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38251 <limits.h> exists even on freestanding compilers. */
38254 # include <limits.h>
38256 # include <assert.h>
38261 /* Override any GCC internal prototype to avoid an error.
38262 Use char because int might match the return type of a GCC
38263 builtin and then its argument prototype would still apply. */
38268 /* The GNU C library defines this for functions which it implements
38269 to always fail with ENOSYS. Some functions are actually named
38270 something starting with __ and the normal name is an alias. */
38271 #if defined __stub_$ac_func || defined __stub___$ac_func
38278 return $ac_func ();
38283 rm -f conftest.$ac_objext conftest$ac_exeext
38284 if { (ac_try="$ac_link"
38285 case "(($ac_try" in
38286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38287 *) ac_try_echo=$ac_try;;
38289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38290 (eval "$ac_link") 2>conftest.er1
38292 grep -v '^ *+' conftest.er1 >conftest.err
38294 cat conftest.err >&5
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); } && {
38297 test -z "$ac_c_werror_flag" ||
38298 test ! -s conftest.err
38299 } && test -s conftest$ac_exeext &&
38300 $as_test_x conftest$ac_exeext; then
38301 eval "$as_ac_var=yes"
38303 echo "$as_me: failed program was:" >&5
38304 sed 's/^/| /' conftest.$ac_ext >&5
38306 eval "$as_ac_var=no"
38309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38310 conftest$ac_exeext conftest.$ac_ext
38312 ac_res=`eval echo '${'$as_ac_var'}'`
38313 { echo "$as_me:$LINENO: result: $ac_res" >&5
38314 echo "${ECHO_T}$ac_res" >&6; }
38315 if test `eval echo '${'$as_ac_var'}'` = yes; then
38316 cat >>confdefs.h <<_ACEOF
38317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38324 # If resolver functions are not in libc check for -lnsl or -lresolv.
38325 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38326 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38327 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38328 echo $ECHO_N "(cached) $ECHO_C" >&6
38330 cat >conftest.$ac_ext <<_ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h. */
38336 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38338 #define gethostbyname_r innocuous_gethostbyname_r
38340 /* System header to define __stub macros and hopefully few prototypes,
38341 which can conflict with char gethostbyname_r (); below.
38342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38343 <limits.h> exists even on freestanding compilers. */
38346 # include <limits.h>
38348 # include <assert.h>
38351 #undef gethostbyname_r
38353 /* Override any GCC internal prototype to avoid an error.
38354 Use char because int might match the return type of a GCC
38355 builtin and then its argument prototype would still apply. */
38359 char gethostbyname_r ();
38360 /* The GNU C library defines this for functions which it implements
38361 to always fail with ENOSYS. Some functions are actually named
38362 something starting with __ and the normal name is an alias. */
38363 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38370 return gethostbyname_r ();
38375 rm -f conftest.$ac_objext conftest$ac_exeext
38376 if { (ac_try="$ac_link"
38377 case "(($ac_try" in
38378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38379 *) ac_try_echo=$ac_try;;
38381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38382 (eval "$ac_link") 2>conftest.er1
38384 grep -v '^ *+' conftest.er1 >conftest.err
38386 cat conftest.err >&5
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); } && {
38389 test -z "$ac_c_werror_flag" ||
38390 test ! -s conftest.err
38391 } && test -s conftest$ac_exeext &&
38392 $as_test_x conftest$ac_exeext; then
38393 ac_cv_func_gethostbyname_r=yes
38395 echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38398 ac_cv_func_gethostbyname_r=no
38401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38402 conftest$ac_exeext conftest.$ac_ext
38404 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38405 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38406 if test $ac_cv_func_gethostbyname_r = yes; then
38407 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38408 echo "${ECHO_T}using libc's resolver" >&6; }
38411 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38412 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38413 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38414 echo $ECHO_N "(cached) $ECHO_C" >&6
38416 ac_check_lib_save_LIBS=$LIBS
38418 cat >conftest.$ac_ext <<_ACEOF
38421 cat confdefs.h >>conftest.$ac_ext
38422 cat >>conftest.$ac_ext <<_ACEOF
38423 /* end confdefs.h. */
38425 /* Override any GCC internal prototype to avoid an error.
38426 Use char because int might match the return type of a GCC
38427 builtin and then its argument prototype would still apply. */
38431 char gethostbyname_r ();
38435 return gethostbyname_r ();
38440 rm -f conftest.$ac_objext conftest$ac_exeext
38441 if { (ac_try="$ac_link"
38442 case "(($ac_try" in
38443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38444 *) ac_try_echo=$ac_try;;
38446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38447 (eval "$ac_link") 2>conftest.er1
38449 grep -v '^ *+' conftest.er1 >conftest.err
38451 cat conftest.err >&5
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); } && {
38454 test -z "$ac_c_werror_flag" ||
38455 test ! -s conftest.err
38456 } && test -s conftest$ac_exeext &&
38457 $as_test_x conftest$ac_exeext; then
38458 ac_cv_lib_nsl_gethostbyname_r=yes
38460 echo "$as_me: failed program was:" >&5
38461 sed 's/^/| /' conftest.$ac_ext >&5
38463 ac_cv_lib_nsl_gethostbyname_r=no
38466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38467 conftest$ac_exeext conftest.$ac_ext
38468 LIBS=$ac_check_lib_save_LIBS
38470 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38471 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38472 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38473 cat >>confdefs.h <<_ACEOF
38474 #define HAVE_LIBNSL 1
38482 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38483 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38484 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38485 echo $ECHO_N "(cached) $ECHO_C" >&6
38487 ac_check_lib_save_LIBS=$LIBS
38488 LIBS="-lresolv $LIBS"
38489 cat >conftest.$ac_ext <<_ACEOF
38492 cat confdefs.h >>conftest.$ac_ext
38493 cat >>conftest.$ac_ext <<_ACEOF
38494 /* end confdefs.h. */
38496 /* Override any GCC internal prototype to avoid an error.
38497 Use char because int might match the return type of a GCC
38498 builtin and then its argument prototype would still apply. */
38502 char gethostbyname_r ();
38506 return gethostbyname_r ();
38511 rm -f conftest.$ac_objext conftest$ac_exeext
38512 if { (ac_try="$ac_link"
38513 case "(($ac_try" in
38514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38515 *) ac_try_echo=$ac_try;;
38517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38518 (eval "$ac_link") 2>conftest.er1
38520 grep -v '^ *+' conftest.er1 >conftest.err
38522 cat conftest.err >&5
38523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524 (exit $ac_status); } && {
38525 test -z "$ac_c_werror_flag" ||
38526 test ! -s conftest.err
38527 } && test -s conftest$ac_exeext &&
38528 $as_test_x conftest$ac_exeext; then
38529 ac_cv_lib_resolv_gethostbyname_r=yes
38531 echo "$as_me: failed program was:" >&5
38532 sed 's/^/| /' conftest.$ac_ext >&5
38534 ac_cv_lib_resolv_gethostbyname_r=no
38537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38538 conftest$ac_exeext conftest.$ac_ext
38539 LIBS=$ac_check_lib_save_LIBS
38541 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38542 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38543 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38544 cat >>confdefs.h <<_ACEOF
38545 #define HAVE_LIBRESOLV 1
38548 LIBS="-lresolv $LIBS"
38556 for ac_func in inet_pton
38558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38562 echo $ECHO_N "(cached) $ECHO_C" >&6
38564 cat >conftest.$ac_ext <<_ACEOF
38567 cat confdefs.h >>conftest.$ac_ext
38568 cat >>conftest.$ac_ext <<_ACEOF
38569 /* end confdefs.h. */
38570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38572 #define $ac_func innocuous_$ac_func
38574 /* System header to define __stub macros and hopefully few prototypes,
38575 which can conflict with char $ac_func (); below.
38576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38577 <limits.h> exists even on freestanding compilers. */
38580 # include <limits.h>
38582 # include <assert.h>
38587 /* Override any GCC internal prototype to avoid an error.
38588 Use char because int might match the return type of a GCC
38589 builtin and then its argument prototype would still apply. */
38594 /* The GNU C library defines this for functions which it implements
38595 to always fail with ENOSYS. Some functions are actually named
38596 something starting with __ and the normal name is an alias. */
38597 #if defined __stub_$ac_func || defined __stub___$ac_func
38604 return $ac_func ();
38609 rm -f conftest.$ac_objext conftest$ac_exeext
38610 if { (ac_try="$ac_link"
38611 case "(($ac_try" in
38612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38613 *) ac_try_echo=$ac_try;;
38615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38616 (eval "$ac_link") 2>conftest.er1
38618 grep -v '^ *+' conftest.er1 >conftest.err
38620 cat conftest.err >&5
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); } && {
38623 test -z "$ac_c_werror_flag" ||
38624 test ! -s conftest.err
38625 } && test -s conftest$ac_exeext &&
38626 $as_test_x conftest$ac_exeext; then
38627 eval "$as_ac_var=yes"
38629 echo "$as_me: failed program was:" >&5
38630 sed 's/^/| /' conftest.$ac_ext >&5
38632 eval "$as_ac_var=no"
38635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38636 conftest$ac_exeext conftest.$ac_ext
38638 ac_res=`eval echo '${'$as_ac_var'}'`
38639 { echo "$as_me:$LINENO: result: $ac_res" >&5
38640 echo "${ECHO_T}$ac_res" >&6; }
38641 if test `eval echo '${'$as_ac_var'}'` = yes; then
38642 cat >>confdefs.h <<_ACEOF
38643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38645 cat >>confdefs.h <<\_ACEOF
38646 #define HAVE_INET_PTON 1
38653 for ac_func in inet_ntop
38655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38659 echo $ECHO_N "(cached) $ECHO_C" >&6
38661 cat >conftest.$ac_ext <<_ACEOF
38664 cat confdefs.h >>conftest.$ac_ext
38665 cat >>conftest.$ac_ext <<_ACEOF
38666 /* end confdefs.h. */
38667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38669 #define $ac_func innocuous_$ac_func
38671 /* System header to define __stub macros and hopefully few prototypes,
38672 which can conflict with char $ac_func (); below.
38673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38674 <limits.h> exists even on freestanding compilers. */
38677 # include <limits.h>
38679 # include <assert.h>
38684 /* Override any GCC internal prototype to avoid an error.
38685 Use char because int might match the return type of a GCC
38686 builtin and then its argument prototype would still apply. */
38691 /* The GNU C library defines this for functions which it implements
38692 to always fail with ENOSYS. Some functions are actually named
38693 something starting with __ and the normal name is an alias. */
38694 #if defined __stub_$ac_func || defined __stub___$ac_func
38701 return $ac_func ();
38706 rm -f conftest.$ac_objext conftest$ac_exeext
38707 if { (ac_try="$ac_link"
38708 case "(($ac_try" in
38709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38710 *) ac_try_echo=$ac_try;;
38712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38713 (eval "$ac_link") 2>conftest.er1
38715 grep -v '^ *+' conftest.er1 >conftest.err
38717 cat conftest.err >&5
38718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719 (exit $ac_status); } && {
38720 test -z "$ac_c_werror_flag" ||
38721 test ! -s conftest.err
38722 } && test -s conftest$ac_exeext &&
38723 $as_test_x conftest$ac_exeext; then
38724 eval "$as_ac_var=yes"
38726 echo "$as_me: failed program was:" >&5
38727 sed 's/^/| /' conftest.$ac_ext >&5
38729 eval "$as_ac_var=no"
38732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38733 conftest$ac_exeext conftest.$ac_ext
38735 ac_res=`eval echo '${'$as_ac_var'}'`
38736 { echo "$as_me:$LINENO: result: $ac_res" >&5
38737 echo "${ECHO_T}$ac_res" >&6; }
38738 if test `eval echo '${'$as_ac_var'}'` = yes; then
38739 cat >>confdefs.h <<_ACEOF
38740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38742 cat >>confdefs.h <<\_ACEOF
38743 #define HAVE_INET_NTOP 1
38750 for ac_func in gethostbyname2
38752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38756 echo $ECHO_N "(cached) $ECHO_C" >&6
38758 cat >conftest.$ac_ext <<_ACEOF
38761 cat confdefs.h >>conftest.$ac_ext
38762 cat >>conftest.$ac_ext <<_ACEOF
38763 /* end confdefs.h. */
38764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38766 #define $ac_func innocuous_$ac_func
38768 /* System header to define __stub macros and hopefully few prototypes,
38769 which can conflict with char $ac_func (); below.
38770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38771 <limits.h> exists even on freestanding compilers. */
38774 # include <limits.h>
38776 # include <assert.h>
38781 /* Override any GCC internal prototype to avoid an error.
38782 Use char because int might match the return type of a GCC
38783 builtin and then its argument prototype would still apply. */
38788 /* The GNU C library defines this for functions which it implements
38789 to always fail with ENOSYS. Some functions are actually named
38790 something starting with __ and the normal name is an alias. */
38791 #if defined __stub_$ac_func || defined __stub___$ac_func
38798 return $ac_func ();
38803 rm -f conftest.$ac_objext conftest$ac_exeext
38804 if { (ac_try="$ac_link"
38805 case "(($ac_try" in
38806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38807 *) ac_try_echo=$ac_try;;
38809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38810 (eval "$ac_link") 2>conftest.er1
38812 grep -v '^ *+' conftest.er1 >conftest.err
38814 cat conftest.err >&5
38815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); } && {
38817 test -z "$ac_c_werror_flag" ||
38818 test ! -s conftest.err
38819 } && test -s conftest$ac_exeext &&
38820 $as_test_x conftest$ac_exeext; then
38821 eval "$as_ac_var=yes"
38823 echo "$as_me: failed program was:" >&5
38824 sed 's/^/| /' conftest.$ac_ext >&5
38826 eval "$as_ac_var=no"
38829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38830 conftest$ac_exeext conftest.$ac_ext
38832 ac_res=`eval echo '${'$as_ac_var'}'`
38833 { echo "$as_me:$LINENO: result: $ac_res" >&5
38834 echo "${ECHO_T}$ac_res" >&6; }
38835 if test `eval echo '${'$as_ac_var'}'` = yes; then
38836 cat >>confdefs.h <<_ACEOF
38837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38839 cat >>confdefs.h <<\_ACEOF
38840 #define HAVE_GETHOSTBYNAME2 1
38847 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38848 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38849 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38850 echo $ECHO_N "(cached) $ECHO_C" >&6
38853 cat >conftest.$ac_ext <<_ACEOF
38856 cat confdefs.h >>conftest.$ac_ext
38857 cat >>conftest.$ac_ext <<_ACEOF
38858 /* end confdefs.h. */
38860 #include <sys/socket.h>
38866 struct sockaddr s; s.sa_len;
38872 rm -f conftest.$ac_objext
38873 if { (ac_try="$ac_compile"
38874 case "(($ac_try" in
38875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876 *) ac_try_echo=$ac_try;;
38878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38879 (eval "$ac_compile") 2>conftest.er1
38881 grep -v '^ *+' conftest.er1 >conftest.err
38883 cat conftest.err >&5
38884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885 (exit $ac_status); } && {
38886 test -z "$ac_c_werror_flag" ||
38887 test ! -s conftest.err
38888 } && test -s conftest.$ac_objext; then
38890 ac_cv_struct_sockaddr_sa_len=yes
38893 echo "$as_me: failed program was:" >&5
38894 sed 's/^/| /' conftest.$ac_ext >&5
38896 ac_cv_struct_sockaddr_sa_len=no
38901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38905 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38906 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38908 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38910 cat >>confdefs.h <<\_ACEOF
38911 #define HAVE_SA_LEN 1
38917 for ac_func in strftime
38919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38923 echo $ECHO_N "(cached) $ECHO_C" >&6
38925 cat >conftest.$ac_ext <<_ACEOF
38928 cat confdefs.h >>conftest.$ac_ext
38929 cat >>conftest.$ac_ext <<_ACEOF
38930 /* end confdefs.h. */
38931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38933 #define $ac_func innocuous_$ac_func
38935 /* System header to define __stub macros and hopefully few prototypes,
38936 which can conflict with char $ac_func (); below.
38937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38938 <limits.h> exists even on freestanding compilers. */
38941 # include <limits.h>
38943 # include <assert.h>
38948 /* Override any GCC internal prototype to avoid an error.
38949 Use char because int might match the return type of a GCC
38950 builtin and then its argument prototype would still apply. */
38955 /* The GNU C library defines this for functions which it implements
38956 to always fail with ENOSYS. Some functions are actually named
38957 something starting with __ and the normal name is an alias. */
38958 #if defined __stub_$ac_func || defined __stub___$ac_func
38965 return $ac_func ();
38970 rm -f conftest.$ac_objext conftest$ac_exeext
38971 if { (ac_try="$ac_link"
38972 case "(($ac_try" in
38973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38974 *) ac_try_echo=$ac_try;;
38976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38977 (eval "$ac_link") 2>conftest.er1
38979 grep -v '^ *+' conftest.er1 >conftest.err
38981 cat conftest.err >&5
38982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38983 (exit $ac_status); } && {
38984 test -z "$ac_c_werror_flag" ||
38985 test ! -s conftest.err
38986 } && test -s conftest$ac_exeext &&
38987 $as_test_x conftest$ac_exeext; then
38988 eval "$as_ac_var=yes"
38990 echo "$as_me: failed program was:" >&5
38991 sed 's/^/| /' conftest.$ac_ext >&5
38993 eval "$as_ac_var=no"
38996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38997 conftest$ac_exeext conftest.$ac_ext
38999 ac_res=`eval echo '${'$as_ac_var'}'`
39000 { echo "$as_me:$LINENO: result: $ac_res" >&5
39001 echo "${ECHO_T}$ac_res" >&6; }
39002 if test `eval echo '${'$as_ac_var'}'` = yes; then
39003 cat >>confdefs.h <<_ACEOF
39004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39008 # strftime is in -lintl on SCO UNIX.
39009 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39010 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39011 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39012 echo $ECHO_N "(cached) $ECHO_C" >&6
39014 ac_check_lib_save_LIBS=$LIBS
39015 LIBS="-lintl $LIBS"
39016 cat >conftest.$ac_ext <<_ACEOF
39019 cat confdefs.h >>conftest.$ac_ext
39020 cat >>conftest.$ac_ext <<_ACEOF
39021 /* end confdefs.h. */
39023 /* Override any GCC internal prototype to avoid an error.
39024 Use char because int might match the return type of a GCC
39025 builtin and then its argument prototype would still apply. */
39033 return strftime ();
39038 rm -f conftest.$ac_objext conftest$ac_exeext
39039 if { (ac_try="$ac_link"
39040 case "(($ac_try" in
39041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39042 *) ac_try_echo=$ac_try;;
39044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39045 (eval "$ac_link") 2>conftest.er1
39047 grep -v '^ *+' conftest.er1 >conftest.err
39049 cat conftest.err >&5
39050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051 (exit $ac_status); } && {
39052 test -z "$ac_c_werror_flag" ||
39053 test ! -s conftest.err
39054 } && test -s conftest$ac_exeext &&
39055 $as_test_x conftest$ac_exeext; then
39056 ac_cv_lib_intl_strftime=yes
39058 echo "$as_me: failed program was:" >&5
39059 sed 's/^/| /' conftest.$ac_ext >&5
39061 ac_cv_lib_intl_strftime=no
39064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39065 conftest$ac_exeext conftest.$ac_ext
39066 LIBS=$ac_check_lib_save_LIBS
39068 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39069 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39070 if test $ac_cv_lib_intl_strftime = yes; then
39071 cat >>confdefs.h <<\_ACEOF
39072 #define HAVE_STRFTIME 1
39075 LIBS="-lintl $LIBS"
39082 for ac_func in vprintf
39084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39088 echo $ECHO_N "(cached) $ECHO_C" >&6
39090 cat >conftest.$ac_ext <<_ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h. */
39096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39098 #define $ac_func innocuous_$ac_func
39100 /* System header to define __stub macros and hopefully few prototypes,
39101 which can conflict with char $ac_func (); below.
39102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39103 <limits.h> exists even on freestanding compilers. */
39106 # include <limits.h>
39108 # include <assert.h>
39113 /* Override any GCC internal prototype to avoid an error.
39114 Use char because int might match the return type of a GCC
39115 builtin and then its argument prototype would still apply. */
39120 /* The GNU C library defines this for functions which it implements
39121 to always fail with ENOSYS. Some functions are actually named
39122 something starting with __ and the normal name is an alias. */
39123 #if defined __stub_$ac_func || defined __stub___$ac_func
39130 return $ac_func ();
39135 rm -f conftest.$ac_objext conftest$ac_exeext
39136 if { (ac_try="$ac_link"
39137 case "(($ac_try" in
39138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39139 *) ac_try_echo=$ac_try;;
39141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39142 (eval "$ac_link") 2>conftest.er1
39144 grep -v '^ *+' conftest.er1 >conftest.err
39146 cat conftest.err >&5
39147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148 (exit $ac_status); } && {
39149 test -z "$ac_c_werror_flag" ||
39150 test ! -s conftest.err
39151 } && test -s conftest$ac_exeext &&
39152 $as_test_x conftest$ac_exeext; then
39153 eval "$as_ac_var=yes"
39155 echo "$as_me: failed program was:" >&5
39156 sed 's/^/| /' conftest.$ac_ext >&5
39158 eval "$as_ac_var=no"
39161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39162 conftest$ac_exeext conftest.$ac_ext
39164 ac_res=`eval echo '${'$as_ac_var'}'`
39165 { echo "$as_me:$LINENO: result: $ac_res" >&5
39166 echo "${ECHO_T}$ac_res" >&6; }
39167 if test `eval echo '${'$as_ac_var'}'` = yes; then
39168 cat >>confdefs.h <<_ACEOF
39169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39172 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39173 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39174 if test "${ac_cv_func__doprnt+set}" = set; then
39175 echo $ECHO_N "(cached) $ECHO_C" >&6
39177 cat >conftest.$ac_ext <<_ACEOF
39180 cat confdefs.h >>conftest.$ac_ext
39181 cat >>conftest.$ac_ext <<_ACEOF
39182 /* end confdefs.h. */
39183 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39185 #define _doprnt innocuous__doprnt
39187 /* System header to define __stub macros and hopefully few prototypes,
39188 which can conflict with char _doprnt (); below.
39189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39190 <limits.h> exists even on freestanding compilers. */
39193 # include <limits.h>
39195 # include <assert.h>
39200 /* Override any GCC internal prototype to avoid an error.
39201 Use char because int might match the return type of a GCC
39202 builtin and then its argument prototype would still apply. */
39207 /* The GNU C library defines this for functions which it implements
39208 to always fail with ENOSYS. Some functions are actually named
39209 something starting with __ and the normal name is an alias. */
39210 #if defined __stub__doprnt || defined __stub____doprnt
39222 rm -f conftest.$ac_objext conftest$ac_exeext
39223 if { (ac_try="$ac_link"
39224 case "(($ac_try" in
39225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39226 *) ac_try_echo=$ac_try;;
39228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39229 (eval "$ac_link") 2>conftest.er1
39231 grep -v '^ *+' conftest.er1 >conftest.err
39233 cat conftest.err >&5
39234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39235 (exit $ac_status); } && {
39236 test -z "$ac_c_werror_flag" ||
39237 test ! -s conftest.err
39238 } && test -s conftest$ac_exeext &&
39239 $as_test_x conftest$ac_exeext; then
39240 ac_cv_func__doprnt=yes
39242 echo "$as_me: failed program was:" >&5
39243 sed 's/^/| /' conftest.$ac_ext >&5
39245 ac_cv_func__doprnt=no
39248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39249 conftest$ac_exeext conftest.$ac_ext
39251 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39252 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39253 if test $ac_cv_func__doprnt = yes; then
39255 cat >>confdefs.h <<\_ACEOF
39256 #define HAVE_DOPRNT 1
39265 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39266 # for constant arguments. Useless!
39267 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39268 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39269 if test "${ac_cv_working_alloca_h+set}" = set; then
39270 echo $ECHO_N "(cached) $ECHO_C" >&6
39272 cat >conftest.$ac_ext <<_ACEOF
39275 cat confdefs.h >>conftest.$ac_ext
39276 cat >>conftest.$ac_ext <<_ACEOF
39277 /* end confdefs.h. */
39278 #include <alloca.h>
39282 char *p = (char *) alloca (2 * sizeof (int));
39288 rm -f conftest.$ac_objext conftest$ac_exeext
39289 if { (ac_try="$ac_link"
39290 case "(($ac_try" in
39291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39292 *) ac_try_echo=$ac_try;;
39294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39295 (eval "$ac_link") 2>conftest.er1
39297 grep -v '^ *+' conftest.er1 >conftest.err
39299 cat conftest.err >&5
39300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301 (exit $ac_status); } && {
39302 test -z "$ac_c_werror_flag" ||
39303 test ! -s conftest.err
39304 } && test -s conftest$ac_exeext &&
39305 $as_test_x conftest$ac_exeext; then
39306 ac_cv_working_alloca_h=yes
39308 echo "$as_me: failed program was:" >&5
39309 sed 's/^/| /' conftest.$ac_ext >&5
39311 ac_cv_working_alloca_h=no
39314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39315 conftest$ac_exeext conftest.$ac_ext
39317 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39318 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39319 if test $ac_cv_working_alloca_h = yes; then
39321 cat >>confdefs.h <<\_ACEOF
39322 #define HAVE_ALLOCA_H 1
39327 { echo "$as_me:$LINENO: checking for alloca" >&5
39328 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39329 if test "${ac_cv_func_alloca_works+set}" = set; then
39330 echo $ECHO_N "(cached) $ECHO_C" >&6
39332 cat >conftest.$ac_ext <<_ACEOF
39335 cat confdefs.h >>conftest.$ac_ext
39336 cat >>conftest.$ac_ext <<_ACEOF
39337 /* end confdefs.h. */
39339 # define alloca __builtin_alloca
39342 # include <malloc.h>
39343 # define alloca _alloca
39345 # ifdef HAVE_ALLOCA_H
39346 # include <alloca.h>
39351 # ifndef alloca /* predefined by HP cc +Olibcalls */
39362 char *p = (char *) alloca (1);
39368 rm -f conftest.$ac_objext conftest$ac_exeext
39369 if { (ac_try="$ac_link"
39370 case "(($ac_try" in
39371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39372 *) ac_try_echo=$ac_try;;
39374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39375 (eval "$ac_link") 2>conftest.er1
39377 grep -v '^ *+' conftest.er1 >conftest.err
39379 cat conftest.err >&5
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); } && {
39382 test -z "$ac_c_werror_flag" ||
39383 test ! -s conftest.err
39384 } && test -s conftest$ac_exeext &&
39385 $as_test_x conftest$ac_exeext; then
39386 ac_cv_func_alloca_works=yes
39388 echo "$as_me: failed program was:" >&5
39389 sed 's/^/| /' conftest.$ac_ext >&5
39391 ac_cv_func_alloca_works=no
39394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39395 conftest$ac_exeext conftest.$ac_ext
39397 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39398 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39400 if test $ac_cv_func_alloca_works = yes; then
39402 cat >>confdefs.h <<\_ACEOF
39403 #define HAVE_ALLOCA 1
39407 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39408 # that cause trouble. Some versions do not even contain alloca or
39409 # contain a buggy version. If you still want to use their alloca,
39410 # use ar to extract alloca.o from them instead of compiling alloca.c.
39412 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39414 cat >>confdefs.h <<\_ACEOF
39419 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39420 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39421 if test "${ac_cv_os_cray+set}" = set; then
39422 echo $ECHO_N "(cached) $ECHO_C" >&6
39424 cat >conftest.$ac_ext <<_ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h. */
39430 #if defined CRAY && ! defined CRAY2
39437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39438 $EGREP "webecray" >/dev/null 2>&1; then
39446 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39447 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39448 if test $ac_cv_os_cray = yes; then
39449 for ac_func in _getb67 GETB67 getb67; do
39450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39451 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39453 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39454 echo $ECHO_N "(cached) $ECHO_C" >&6
39456 cat >conftest.$ac_ext <<_ACEOF
39459 cat confdefs.h >>conftest.$ac_ext
39460 cat >>conftest.$ac_ext <<_ACEOF
39461 /* end confdefs.h. */
39462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39464 #define $ac_func innocuous_$ac_func
39466 /* System header to define __stub macros and hopefully few prototypes,
39467 which can conflict with char $ac_func (); below.
39468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39469 <limits.h> exists even on freestanding compilers. */
39472 # include <limits.h>
39474 # include <assert.h>
39479 /* Override any GCC internal prototype to avoid an error.
39480 Use char because int might match the return type of a GCC
39481 builtin and then its argument prototype would still apply. */
39486 /* The GNU C library defines this for functions which it implements
39487 to always fail with ENOSYS. Some functions are actually named
39488 something starting with __ and the normal name is an alias. */
39489 #if defined __stub_$ac_func || defined __stub___$ac_func
39496 return $ac_func ();
39501 rm -f conftest.$ac_objext conftest$ac_exeext
39502 if { (ac_try="$ac_link"
39503 case "(($ac_try" in
39504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39505 *) ac_try_echo=$ac_try;;
39507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39508 (eval "$ac_link") 2>conftest.er1
39510 grep -v '^ *+' conftest.er1 >conftest.err
39512 cat conftest.err >&5
39513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514 (exit $ac_status); } && {
39515 test -z "$ac_c_werror_flag" ||
39516 test ! -s conftest.err
39517 } && test -s conftest$ac_exeext &&
39518 $as_test_x conftest$ac_exeext; then
39519 eval "$as_ac_var=yes"
39521 echo "$as_me: failed program was:" >&5
39522 sed 's/^/| /' conftest.$ac_ext >&5
39524 eval "$as_ac_var=no"
39527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39528 conftest$ac_exeext conftest.$ac_ext
39530 ac_res=`eval echo '${'$as_ac_var'}'`
39531 { echo "$as_me:$LINENO: result: $ac_res" >&5
39532 echo "${ECHO_T}$ac_res" >&6; }
39533 if test `eval echo '${'$as_ac_var'}'` = yes; then
39535 cat >>confdefs.h <<_ACEOF
39536 #define CRAY_STACKSEG_END $ac_func
39545 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39546 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39547 if test "${ac_cv_c_stack_direction+set}" = set; then
39548 echo $ECHO_N "(cached) $ECHO_C" >&6
39550 if test "$cross_compiling" = yes; then
39551 ac_cv_c_stack_direction=0
39553 cat >conftest.$ac_ext <<_ACEOF
39556 cat confdefs.h >>conftest.$ac_ext
39557 cat >>conftest.$ac_ext <<_ACEOF
39558 /* end confdefs.h. */
39559 $ac_includes_default
39561 find_stack_direction ()
39563 static char *addr = 0;
39568 return find_stack_direction ();
39571 return (&dummy > addr) ? 1 : -1;
39577 return find_stack_direction () < 0;
39580 rm -f conftest$ac_exeext
39581 if { (ac_try="$ac_link"
39582 case "(($ac_try" in
39583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39584 *) ac_try_echo=$ac_try;;
39586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39587 (eval "$ac_link") 2>&5
39589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39591 { (case "(($ac_try" in
39592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39593 *) ac_try_echo=$ac_try;;
39595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39596 (eval "$ac_try") 2>&5
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); }; }; then
39600 ac_cv_c_stack_direction=1
39602 echo "$as_me: program exited with status $ac_status" >&5
39603 echo "$as_me: failed program was:" >&5
39604 sed 's/^/| /' conftest.$ac_ext >&5
39606 ( exit $ac_status )
39607 ac_cv_c_stack_direction=-1
39609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39614 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39615 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39617 cat >>confdefs.h <<_ACEOF
39618 #define STACK_DIRECTION $ac_cv_c_stack_direction
39624 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39625 # -lseq on Dynix/PTX, -lgen on Unixware.
39626 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39627 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39628 if test "${ac_cv_search_getmntent+set}" = set; then
39629 echo $ECHO_N "(cached) $ECHO_C" >&6
39631 ac_func_search_save_LIBS=$LIBS
39632 cat >conftest.$ac_ext <<_ACEOF
39635 cat confdefs.h >>conftest.$ac_ext
39636 cat >>conftest.$ac_ext <<_ACEOF
39637 /* end confdefs.h. */
39639 /* Override any GCC internal prototype to avoid an error.
39640 Use char because int might match the return type of a GCC
39641 builtin and then its argument prototype would still apply. */
39649 return getmntent ();
39654 for ac_lib in '' sun seq gen; do
39655 if test -z "$ac_lib"; then
39656 ac_res="none required"
39659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39661 rm -f conftest.$ac_objext conftest$ac_exeext
39662 if { (ac_try="$ac_link"
39663 case "(($ac_try" in
39664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39665 *) ac_try_echo=$ac_try;;
39667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39668 (eval "$ac_link") 2>conftest.er1
39670 grep -v '^ *+' conftest.er1 >conftest.err
39672 cat conftest.err >&5
39673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674 (exit $ac_status); } && {
39675 test -z "$ac_c_werror_flag" ||
39676 test ! -s conftest.err
39677 } && test -s conftest$ac_exeext &&
39678 $as_test_x conftest$ac_exeext; then
39679 ac_cv_search_getmntent=$ac_res
39681 echo "$as_me: failed program was:" >&5
39682 sed 's/^/| /' conftest.$ac_ext >&5
39687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39689 if test "${ac_cv_search_getmntent+set}" = set; then
39693 if test "${ac_cv_search_getmntent+set}" = set; then
39696 ac_cv_search_getmntent=no
39698 rm conftest.$ac_ext
39699 LIBS=$ac_func_search_save_LIBS
39701 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39702 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39703 ac_res=$ac_cv_search_getmntent
39704 if test "$ac_res" != no; then
39705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39706 ac_cv_func_getmntent=yes
39708 cat >>confdefs.h <<\_ACEOF
39709 #define HAVE_GETMNTENT 1
39713 ac_cv_func_getmntent=no
39717 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39718 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39719 if test "${ac_cv_func_closedir_void+set}" = set; then
39720 echo $ECHO_N "(cached) $ECHO_C" >&6
39722 if test "$cross_compiling" = yes; then
39723 ac_cv_func_closedir_void=yes
39725 cat >conftest.$ac_ext <<_ACEOF
39728 cat confdefs.h >>conftest.$ac_ext
39729 cat >>conftest.$ac_ext <<_ACEOF
39730 /* end confdefs.h. */
39731 $ac_includes_default
39732 #include <$ac_header_dirent>
39733 #ifndef __cplusplus
39740 return closedir (opendir (".")) != 0;
39745 rm -f conftest$ac_exeext
39746 if { (ac_try="$ac_link"
39747 case "(($ac_try" in
39748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39749 *) ac_try_echo=$ac_try;;
39751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39752 (eval "$ac_link") 2>&5
39754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39756 { (case "(($ac_try" in
39757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39758 *) ac_try_echo=$ac_try;;
39760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39761 (eval "$ac_try") 2>&5
39763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764 (exit $ac_status); }; }; then
39765 ac_cv_func_closedir_void=no
39767 echo "$as_me: program exited with status $ac_status" >&5
39768 echo "$as_me: failed program was:" >&5
39769 sed 's/^/| /' conftest.$ac_ext >&5
39771 ( exit $ac_status )
39772 ac_cv_func_closedir_void=yes
39774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39779 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39780 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39781 if test $ac_cv_func_closedir_void = yes; then
39783 cat >>confdefs.h <<\_ACEOF
39784 #define CLOSEDIR_VOID 1
39789 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39790 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39791 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39792 echo $ECHO_N "(cached) $ECHO_C" >&6
39794 if test "$cross_compiling" = yes; then
39795 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39796 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39797 { (exit 1); exit 1; }; }
39799 cat >conftest.$ac_ext <<_ACEOF
39802 cat confdefs.h >>conftest.$ac_ext
39803 cat >>conftest.$ac_ext <<_ACEOF
39804 /* end confdefs.h. */
39805 $ac_includes_default
39809 /* If this system has a BSD-style setpgrp which takes arguments,
39810 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39811 exit successfully. */
39812 return setpgrp (1,1) != -1;
39817 rm -f conftest$ac_exeext
39818 if { (ac_try="$ac_link"
39819 case "(($ac_try" in
39820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39821 *) ac_try_echo=$ac_try;;
39823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39824 (eval "$ac_link") 2>&5
39826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39828 { (case "(($ac_try" in
39829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39830 *) ac_try_echo=$ac_try;;
39832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39833 (eval "$ac_try") 2>&5
39835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836 (exit $ac_status); }; }; then
39837 ac_cv_func_setpgrp_void=no
39839 echo "$as_me: program exited with status $ac_status" >&5
39840 echo "$as_me: failed program was:" >&5
39841 sed 's/^/| /' conftest.$ac_ext >&5
39843 ( exit $ac_status )
39844 ac_cv_func_setpgrp_void=yes
39846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39851 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39852 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39853 if test $ac_cv_func_setpgrp_void = yes; then
39855 cat >>confdefs.h <<\_ACEOF
39856 #define SETPGRP_VOID 1
39860 # AC_FUNC_FNMATCH dnl use local version
39862 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39863 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39864 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39865 echo $ECHO_N "(cached) $ECHO_C" >&6
39867 ac_check_lib_save_LIBS=$LIBS
39868 LIBS="-lintl $LIBS"
39869 cat >conftest.$ac_ext <<_ACEOF
39872 cat confdefs.h >>conftest.$ac_ext
39873 cat >>conftest.$ac_ext <<_ACEOF
39874 /* end confdefs.h. */
39876 /* Override any GCC internal prototype to avoid an error.
39877 Use char because int might match the return type of a GCC
39878 builtin and then its argument prototype would still apply. */
39891 rm -f conftest.$ac_objext conftest$ac_exeext
39892 if { (ac_try="$ac_link"
39893 case "(($ac_try" in
39894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39895 *) ac_try_echo=$ac_try;;
39897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39898 (eval "$ac_link") 2>conftest.er1
39900 grep -v '^ *+' conftest.er1 >conftest.err
39902 cat conftest.err >&5
39903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904 (exit $ac_status); } && {
39905 test -z "$ac_c_werror_flag" ||
39906 test ! -s conftest.err
39907 } && test -s conftest$ac_exeext &&
39908 $as_test_x conftest$ac_exeext; then
39909 ac_cv_lib_intl_gettext=yes
39911 echo "$as_me: failed program was:" >&5
39912 sed 's/^/| /' conftest.$ac_ext >&5
39914 ac_cv_lib_intl_gettext=no
39917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39918 conftest$ac_exeext conftest.$ac_ext
39919 LIBS=$ac_check_lib_save_LIBS
39921 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39922 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39923 if test $ac_cv_lib_intl_gettext = yes; then
39924 LIBS="$LIBS -lintl"
39929 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39930 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39931 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39932 echo $ECHO_N "(cached) $ECHO_C" >&6
39934 ac_check_lib_save_LIBS=$LIBS
39936 cat >conftest.$ac_ext <<_ACEOF
39939 cat confdefs.h >>conftest.$ac_ext
39940 cat >>conftest.$ac_ext <<_ACEOF
39941 /* end confdefs.h. */
39943 /* Override any GCC internal prototype to avoid an error.
39944 Use char because int might match the return type of a GCC
39945 builtin and then its argument prototype would still apply. */
39953 return getpwnam ();
39958 rm -f conftest.$ac_objext conftest$ac_exeext
39959 if { (ac_try="$ac_link"
39960 case "(($ac_try" in
39961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39962 *) ac_try_echo=$ac_try;;
39964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39965 (eval "$ac_link") 2>conftest.er1
39967 grep -v '^ *+' conftest.er1 >conftest.err
39969 cat conftest.err >&5
39970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971 (exit $ac_status); } && {
39972 test -z "$ac_c_werror_flag" ||
39973 test ! -s conftest.err
39974 } && test -s conftest$ac_exeext &&
39975 $as_test_x conftest$ac_exeext; then
39976 ac_cv_lib_sun_getpwnam=yes
39978 echo "$as_me: failed program was:" >&5
39979 sed 's/^/| /' conftest.$ac_ext >&5
39981 ac_cv_lib_sun_getpwnam=no
39984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39985 conftest$ac_exeext conftest.$ac_ext
39986 LIBS=$ac_check_lib_save_LIBS
39988 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39989 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39990 if test $ac_cv_lib_sun_getpwnam = yes; then
39991 cat >>confdefs.h <<_ACEOF
39992 #define HAVE_LIBSUN 1
40001 for ac_header in zlib.h
40003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40008 echo $ECHO_N "(cached) $ECHO_C" >&6
40010 ac_res=`eval echo '${'$as_ac_Header'}'`
40011 { echo "$as_me:$LINENO: result: $ac_res" >&5
40012 echo "${ECHO_T}$ac_res" >&6; }
40014 # Is the header compilable?
40015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40017 cat >conftest.$ac_ext <<_ACEOF
40020 cat confdefs.h >>conftest.$ac_ext
40021 cat >>conftest.$ac_ext <<_ACEOF
40022 /* end confdefs.h. */
40023 $ac_includes_default
40024 #include <$ac_header>
40026 rm -f conftest.$ac_objext
40027 if { (ac_try="$ac_compile"
40028 case "(($ac_try" in
40029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40030 *) ac_try_echo=$ac_try;;
40032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40033 (eval "$ac_compile") 2>conftest.er1
40035 grep -v '^ *+' conftest.er1 >conftest.err
40037 cat conftest.err >&5
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); } && {
40040 test -z "$ac_c_werror_flag" ||
40041 test ! -s conftest.err
40042 } && test -s conftest.$ac_objext; then
40043 ac_header_compiler=yes
40045 echo "$as_me: failed program was:" >&5
40046 sed 's/^/| /' conftest.$ac_ext >&5
40048 ac_header_compiler=no
40051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40053 echo "${ECHO_T}$ac_header_compiler" >&6; }
40055 # Is the header present?
40056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40058 cat >conftest.$ac_ext <<_ACEOF
40061 cat confdefs.h >>conftest.$ac_ext
40062 cat >>conftest.$ac_ext <<_ACEOF
40063 /* end confdefs.h. */
40064 #include <$ac_header>
40066 if { (ac_try="$ac_cpp conftest.$ac_ext"
40067 case "(($ac_try" in
40068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40069 *) ac_try_echo=$ac_try;;
40071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40074 grep -v '^ *+' conftest.er1 >conftest.err
40076 cat conftest.err >&5
40077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078 (exit $ac_status); } >/dev/null && {
40079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40080 test ! -s conftest.err
40082 ac_header_preproc=yes
40084 echo "$as_me: failed program was:" >&5
40085 sed 's/^/| /' conftest.$ac_ext >&5
40087 ac_header_preproc=no
40090 rm -f conftest.err conftest.$ac_ext
40091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40092 echo "${ECHO_T}$ac_header_preproc" >&6; }
40094 # So? What about this header?
40095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40101 ac_header_preproc=yes
40104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40122 echo $ECHO_N "(cached) $ECHO_C" >&6
40124 eval "$as_ac_Header=\$ac_header_preproc"
40126 ac_res=`eval echo '${'$as_ac_Header'}'`
40127 { echo "$as_me:$LINENO: result: $ac_res" >&5
40128 echo "${ECHO_T}$ac_res" >&6; }
40131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40132 cat >>confdefs.h <<_ACEOF
40133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40140 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40141 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40142 if test "${ac_cv_lib_z_deflate+set}" = set; then
40143 echo $ECHO_N "(cached) $ECHO_C" >&6
40145 ac_check_lib_save_LIBS=$LIBS
40147 cat >conftest.$ac_ext <<_ACEOF
40150 cat confdefs.h >>conftest.$ac_ext
40151 cat >>conftest.$ac_ext <<_ACEOF
40152 /* end confdefs.h. */
40154 /* Override any GCC internal prototype to avoid an error.
40155 Use char because int might match the return type of a GCC
40156 builtin and then its argument prototype would still apply. */
40169 rm -f conftest.$ac_objext conftest$ac_exeext
40170 if { (ac_try="$ac_link"
40171 case "(($ac_try" in
40172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40173 *) ac_try_echo=$ac_try;;
40175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40176 (eval "$ac_link") 2>conftest.er1
40178 grep -v '^ *+' conftest.er1 >conftest.err
40180 cat conftest.err >&5
40181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182 (exit $ac_status); } && {
40183 test -z "$ac_c_werror_flag" ||
40184 test ! -s conftest.err
40185 } && test -s conftest$ac_exeext &&
40186 $as_test_x conftest$ac_exeext; then
40187 ac_cv_lib_z_deflate=yes
40189 echo "$as_me: failed program was:" >&5
40190 sed 's/^/| /' conftest.$ac_ext >&5
40192 ac_cv_lib_z_deflate=no
40195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40196 conftest$ac_exeext conftest.$ac_ext
40197 LIBS=$ac_check_lib_save_LIBS
40199 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40200 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40201 if test $ac_cv_lib_z_deflate = yes; then
40206 if test x$FDLIBS = x-lz; then
40207 cat >>confdefs.h <<\_ACEOF
40208 #define HAVE_LIBZ 1
40215 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40216 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40217 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40218 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40219 echo $ECHO_N "(cached) $ECHO_C" >&6
40221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40222 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40224 # Is the header compilable?
40225 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40226 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40227 cat >conftest.$ac_ext <<_ACEOF
40230 cat confdefs.h >>conftest.$ac_ext
40231 cat >>conftest.$ac_ext <<_ACEOF
40232 /* end confdefs.h. */
40233 $ac_includes_default
40234 #include <sys/acl.h>
40236 rm -f conftest.$ac_objext
40237 if { (ac_try="$ac_compile"
40238 case "(($ac_try" in
40239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40240 *) ac_try_echo=$ac_try;;
40242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40243 (eval "$ac_compile") 2>conftest.er1
40245 grep -v '^ *+' conftest.er1 >conftest.err
40247 cat conftest.err >&5
40248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249 (exit $ac_status); } && {
40250 test -z "$ac_c_werror_flag" ||
40251 test ! -s conftest.err
40252 } && test -s conftest.$ac_objext; then
40253 ac_header_compiler=yes
40255 echo "$as_me: failed program was:" >&5
40256 sed 's/^/| /' conftest.$ac_ext >&5
40258 ac_header_compiler=no
40261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40263 echo "${ECHO_T}$ac_header_compiler" >&6; }
40265 # Is the header present?
40266 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40267 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40268 cat >conftest.$ac_ext <<_ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h. */
40274 #include <sys/acl.h>
40276 if { (ac_try="$ac_cpp conftest.$ac_ext"
40277 case "(($ac_try" in
40278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40279 *) ac_try_echo=$ac_try;;
40281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40284 grep -v '^ *+' conftest.er1 >conftest.err
40286 cat conftest.err >&5
40287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288 (exit $ac_status); } >/dev/null && {
40289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40290 test ! -s conftest.err
40292 ac_header_preproc=yes
40294 echo "$as_me: failed program was:" >&5
40295 sed 's/^/| /' conftest.$ac_ext >&5
40297 ac_header_preproc=no
40300 rm -f conftest.err conftest.$ac_ext
40301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40302 echo "${ECHO_T}$ac_header_preproc" >&6; }
40304 # So? What about this header?
40305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40307 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40308 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40309 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40310 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40311 ac_header_preproc=yes
40314 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40315 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40316 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40317 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40318 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40319 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40320 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40321 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40322 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40323 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40324 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40325 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40329 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40330 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40331 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40332 echo $ECHO_N "(cached) $ECHO_C" >&6
40334 ac_cv_header_sys_acl_h=$ac_header_preproc
40336 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40337 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40342 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40343 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40344 if test "${ac_cv_func_acl_get_file+set}" = set; then
40345 echo $ECHO_N "(cached) $ECHO_C" >&6
40347 cat >conftest.$ac_ext <<_ACEOF
40350 cat confdefs.h >>conftest.$ac_ext
40351 cat >>conftest.$ac_ext <<_ACEOF
40352 /* end confdefs.h. */
40353 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40355 #define acl_get_file innocuous_acl_get_file
40357 /* System header to define __stub macros and hopefully few prototypes,
40358 which can conflict with char acl_get_file (); below.
40359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40360 <limits.h> exists even on freestanding compilers. */
40363 # include <limits.h>
40365 # include <assert.h>
40368 #undef acl_get_file
40370 /* Override any GCC internal prototype to avoid an error.
40371 Use char because int might match the return type of a GCC
40372 builtin and then its argument prototype would still apply. */
40376 char acl_get_file ();
40377 /* The GNU C library defines this for functions which it implements
40378 to always fail with ENOSYS. Some functions are actually named
40379 something starting with __ and the normal name is an alias. */
40380 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40387 return acl_get_file ();
40392 rm -f conftest.$ac_objext conftest$ac_exeext
40393 if { (ac_try="$ac_link"
40394 case "(($ac_try" in
40395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40396 *) ac_try_echo=$ac_try;;
40398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40399 (eval "$ac_link") 2>conftest.er1
40401 grep -v '^ *+' conftest.er1 >conftest.err
40403 cat conftest.err >&5
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); } && {
40406 test -z "$ac_c_werror_flag" ||
40407 test ! -s conftest.err
40408 } && test -s conftest$ac_exeext &&
40409 $as_test_x conftest$ac_exeext; then
40410 ac_cv_func_acl_get_file=yes
40412 echo "$as_me: failed program was:" >&5
40413 sed 's/^/| /' conftest.$ac_ext >&5
40415 ac_cv_func_acl_get_file=no
40418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40419 conftest$ac_exeext conftest.$ac_ext
40421 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40422 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40423 if test $ac_cv_func_acl_get_file = yes; then
40427 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40428 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40429 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40430 echo $ECHO_N "(cached) $ECHO_C" >&6
40432 ac_check_lib_save_LIBS=$LIBS
40434 cat >conftest.$ac_ext <<_ACEOF
40437 cat confdefs.h >>conftest.$ac_ext
40438 cat >>conftest.$ac_ext <<_ACEOF
40439 /* end confdefs.h. */
40441 /* Override any GCC internal prototype to avoid an error.
40442 Use char because int might match the return type of a GCC
40443 builtin and then its argument prototype would still apply. */
40447 char acl_get_file ();
40451 return acl_get_file ();
40456 rm -f conftest.$ac_objext conftest$ac_exeext
40457 if { (ac_try="$ac_link"
40458 case "(($ac_try" in
40459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40460 *) ac_try_echo=$ac_try;;
40462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40463 (eval "$ac_link") 2>conftest.er1
40465 grep -v '^ *+' conftest.er1 >conftest.err
40467 cat conftest.err >&5
40468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40469 (exit $ac_status); } && {
40470 test -z "$ac_c_werror_flag" ||
40471 test ! -s conftest.err
40472 } && test -s conftest$ac_exeext &&
40473 $as_test_x conftest$ac_exeext; then
40474 ac_cv_lib_acl_acl_get_file=yes
40476 echo "$as_me: failed program was:" >&5
40477 sed 's/^/| /' conftest.$ac_ext >&5
40479 ac_cv_lib_acl_acl_get_file=no
40482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40483 conftest$ac_exeext conftest.$ac_ext
40484 LIBS=$ac_check_lib_save_LIBS
40486 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40487 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40488 if test $ac_cv_lib_acl_acl_get_file = yes; then
40491 FDLIBS="-lacl $FDLIBS"
40495 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40496 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40497 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40498 echo $ECHO_N "(cached) $ECHO_C" >&6
40500 ac_check_lib_save_LIBS=$LIBS
40502 cat >conftest.$ac_ext <<_ACEOF
40505 cat confdefs.h >>conftest.$ac_ext
40506 cat >>conftest.$ac_ext <<_ACEOF
40507 /* end confdefs.h. */
40509 /* Override any GCC internal prototype to avoid an error.
40510 Use char because int might match the return type of a GCC
40511 builtin and then its argument prototype would still apply. */
40519 return acltotext ();
40524 rm -f conftest.$ac_objext conftest$ac_exeext
40525 if { (ac_try="$ac_link"
40526 case "(($ac_try" in
40527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40528 *) ac_try_echo=$ac_try;;
40530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40531 (eval "$ac_link") 2>conftest.er1
40533 grep -v '^ *+' conftest.er1 >conftest.err
40535 cat conftest.err >&5
40536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40537 (exit $ac_status); } && {
40538 test -z "$ac_c_werror_flag" ||
40539 test ! -s conftest.err
40540 } && test -s conftest$ac_exeext &&
40541 $as_test_x conftest$ac_exeext; then
40542 ac_cv_lib_sec_acltotext=yes
40544 echo "$as_me: failed program was:" >&5
40545 sed 's/^/| /' conftest.$ac_ext >&5
40547 ac_cv_lib_sec_acltotext=no
40550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40551 conftest$ac_exeext conftest.$ac_ext
40552 LIBS=$ac_check_lib_save_LIBS
40554 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40555 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40556 if test $ac_cv_lib_sec_acltotext = yes; then
40559 FDLIBS="-lsec $FDLIBS"
40572 if test $have_acl = yes; then
40573 cat >>confdefs.h <<\_ACEOF
40580 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40581 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40582 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40583 echo $ECHO_N "(cached) $ECHO_C" >&6
40585 ac_check_lib_save_LIBS=$LIBS
40586 LIBS="-lpthread $LIBS"
40587 cat >conftest.$ac_ext <<_ACEOF
40590 cat confdefs.h >>conftest.$ac_ext
40591 cat >>conftest.$ac_ext <<_ACEOF
40592 /* end confdefs.h. */
40594 /* Override any GCC internal prototype to avoid an error.
40595 Use char because int might match the return type of a GCC
40596 builtin and then its argument prototype would still apply. */
40600 char pthread_create ();
40604 return pthread_create ();
40609 rm -f conftest.$ac_objext conftest$ac_exeext
40610 if { (ac_try="$ac_link"
40611 case "(($ac_try" in
40612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40613 *) ac_try_echo=$ac_try;;
40615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40616 (eval "$ac_link") 2>conftest.er1
40618 grep -v '^ *+' conftest.er1 >conftest.err
40620 cat conftest.err >&5
40621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622 (exit $ac_status); } && {
40623 test -z "$ac_c_werror_flag" ||
40624 test ! -s conftest.err
40625 } && test -s conftest$ac_exeext &&
40626 $as_test_x conftest$ac_exeext; then
40627 ac_cv_lib_pthread_pthread_create=yes
40629 echo "$as_me: failed program was:" >&5
40630 sed 's/^/| /' conftest.$ac_ext >&5
40632 ac_cv_lib_pthread_pthread_create=no
40635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40636 conftest$ac_exeext conftest.$ac_ext
40637 LIBS=$ac_check_lib_save_LIBS
40639 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40640 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40641 if test $ac_cv_lib_pthread_pthread_create = yes; then
40642 PTHREAD_LIB="-lpthread"
40645 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40646 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40647 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40648 echo $ECHO_N "(cached) $ECHO_C" >&6
40650 ac_check_lib_save_LIBS=$LIBS
40651 LIBS="-lpthreads $LIBS"
40652 cat >conftest.$ac_ext <<_ACEOF
40655 cat confdefs.h >>conftest.$ac_ext
40656 cat >>conftest.$ac_ext <<_ACEOF
40657 /* end confdefs.h. */
40659 /* Override any GCC internal prototype to avoid an error.
40660 Use char because int might match the return type of a GCC
40661 builtin and then its argument prototype would still apply. */
40665 char pthread_create ();
40669 return pthread_create ();
40674 rm -f conftest.$ac_objext conftest$ac_exeext
40675 if { (ac_try="$ac_link"
40676 case "(($ac_try" in
40677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40678 *) ac_try_echo=$ac_try;;
40680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40681 (eval "$ac_link") 2>conftest.er1
40683 grep -v '^ *+' conftest.er1 >conftest.err
40685 cat conftest.err >&5
40686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40687 (exit $ac_status); } && {
40688 test -z "$ac_c_werror_flag" ||
40689 test ! -s conftest.err
40690 } && test -s conftest$ac_exeext &&
40691 $as_test_x conftest$ac_exeext; then
40692 ac_cv_lib_pthreads_pthread_create=yes
40694 echo "$as_me: failed program was:" >&5
40695 sed 's/^/| /' conftest.$ac_ext >&5
40697 ac_cv_lib_pthreads_pthread_create=no
40700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40701 conftest$ac_exeext conftest.$ac_ext
40702 LIBS=$ac_check_lib_save_LIBS
40704 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40705 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40706 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40707 PTHREAD_LIB="-lpthreads"
40710 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40711 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40712 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40713 echo $ECHO_N "(cached) $ECHO_C" >&6
40715 ac_check_lib_save_LIBS=$LIBS
40717 cat >conftest.$ac_ext <<_ACEOF
40720 cat confdefs.h >>conftest.$ac_ext
40721 cat >>conftest.$ac_ext <<_ACEOF
40722 /* end confdefs.h. */
40724 /* Override any GCC internal prototype to avoid an error.
40725 Use char because int might match the return type of a GCC
40726 builtin and then its argument prototype would still apply. */
40730 char pthread_create ();
40734 return pthread_create ();
40739 rm -f conftest.$ac_objext conftest$ac_exeext
40740 if { (ac_try="$ac_link"
40741 case "(($ac_try" in
40742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40743 *) ac_try_echo=$ac_try;;
40745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40746 (eval "$ac_link") 2>conftest.er1
40748 grep -v '^ *+' conftest.er1 >conftest.err
40750 cat conftest.err >&5
40751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40752 (exit $ac_status); } && {
40753 test -z "$ac_c_werror_flag" ||
40754 test ! -s conftest.err
40755 } && test -s conftest$ac_exeext &&
40756 $as_test_x conftest$ac_exeext; then
40757 ac_cv_lib_c_r_pthread_create=yes
40759 echo "$as_me: failed program was:" >&5
40760 sed 's/^/| /' conftest.$ac_ext >&5
40762 ac_cv_lib_c_r_pthread_create=no
40765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40766 conftest$ac_exeext conftest.$ac_ext
40767 LIBS=$ac_check_lib_save_LIBS
40769 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40770 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40771 if test $ac_cv_lib_c_r_pthread_create = yes; then
40772 PTHREAD_LIB="-lc_r"
40775 { echo "$as_me:$LINENO: checking for pthread_create" >&5
40776 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40777 if test "${ac_cv_func_pthread_create+set}" = set; then
40778 echo $ECHO_N "(cached) $ECHO_C" >&6
40780 cat >conftest.$ac_ext <<_ACEOF
40783 cat confdefs.h >>conftest.$ac_ext
40784 cat >>conftest.$ac_ext <<_ACEOF
40785 /* end confdefs.h. */
40786 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40788 #define pthread_create innocuous_pthread_create
40790 /* System header to define __stub macros and hopefully few prototypes,
40791 which can conflict with char pthread_create (); below.
40792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40793 <limits.h> exists even on freestanding compilers. */
40796 # include <limits.h>
40798 # include <assert.h>
40801 #undef pthread_create
40803 /* Override any GCC internal prototype to avoid an error.
40804 Use char because int might match the return type of a GCC
40805 builtin and then its argument prototype would still apply. */
40809 char pthread_create ();
40810 /* The GNU C library defines this for functions which it implements
40811 to always fail with ENOSYS. Some functions are actually named
40812 something starting with __ and the normal name is an alias. */
40813 #if defined __stub_pthread_create || defined __stub___pthread_create
40820 return pthread_create ();
40825 rm -f conftest.$ac_objext conftest$ac_exeext
40826 if { (ac_try="$ac_link"
40827 case "(($ac_try" in
40828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40829 *) ac_try_echo=$ac_try;;
40831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40832 (eval "$ac_link") 2>conftest.er1
40834 grep -v '^ *+' conftest.er1 >conftest.err
40836 cat conftest.err >&5
40837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838 (exit $ac_status); } && {
40839 test -z "$ac_c_werror_flag" ||
40840 test ! -s conftest.err
40841 } && test -s conftest$ac_exeext &&
40842 $as_test_x conftest$ac_exeext; then
40843 ac_cv_func_pthread_create=yes
40845 echo "$as_me: failed program was:" >&5
40846 sed 's/^/| /' conftest.$ac_ext >&5
40848 ac_cv_func_pthread_create=no
40851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40852 conftest$ac_exeext conftest.$ac_ext
40854 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40855 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40871 cat >>confdefs.h <<\_ACEOF
40876 CFLAGS=${CFLAGS--O}
40878 if test x$have_gcc = xyes ; then
40879 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40880 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40882 LDFLAGS=${LDFLAGS--O}
40883 DB_LIBS="${SQL_LFLAGS}"
40884 CPPFLAGS="$CPPFLAGS"
40911 PFILES="platforms/Makefile"
40915 hostname=`uname -n | cut -d '.' -f 1`
40916 if test x${hostname} = x ; then
40917 hostname="localhost"
40919 case "$DISTNAME" in
40922 PSCMD="ps -e -o pid,comm"
40923 PFILES="${PFILES} \
40924 platforms/aix/Makefile"
40925 TAPEDRIVE="/dev/rmt0.1"
40929 PTHREAD_LIB="-lpthread -lexc"
40930 if test "${CC}" = "gcc" ; then
40937 TAPEDRIVE="/dev/nrmt0"
40940 DISTVER=`uname -a |awk '{print $3}'`
40941 TAPEDRIVE="/dev/nrmt0"
40942 PTHREAD_LIB="-pthread"
40943 CFLAGS="${CFLAGS} -pthread"
40944 PSCMD="ps -ax -o pid,command"
40947 PFILES="${PFILES} \
40948 platforms/bsdi/Makefile \
40949 platforms/bsdi/bacula-fd \
40950 platforms/bsdi/bacula-sd \
40951 platforms/bsdi/bacula-dir"
40952 largefile_support="yes"
40955 DISTVER=`uname -a |awk '{print $3}'`
40956 TAPEDRIVE="/dev/nrst0"
40958 WCFLAGS="-mwindows"
40959 WLDFLAGS="-mwindows"
40963 TAPEDRIVE="/dev/nst0"
40964 PSCMD="ps -e -o pid,command"
40966 PFILES="${PFILES} \
40967 platforms/darwin/Makefile"
40970 ping -c 1 $hostname 2>&1 1>/dev/null
40971 if test ! $? = 0; then
40972 hostname="localhost"
40974 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40977 DISTVER=`cat /etc/debian_version`
40978 if test -f /etc/lsb-release ; then
40980 if test "x$DISTRIB_ID" != "x" ; then
40981 DISTNAME=$DISTRIB_ID
40983 if test "x$DISTRIB_RELEASE" != "x" ; then
40984 DISTVER=$DISTRIB_RELEASE
40987 if test "$DISTNAME" = "Ubuntu" ; then
40990 TAPEDRIVE="/dev/nst0"
40991 PSCMD="ps -e -o pid,command"
40992 if test "$DISTNAME" = "ubuntu" ; then
40993 PFILES="${PFILES} \
40994 platforms/ubuntu/Makefile \
40995 platforms/ubuntu/bacula-fd \
40996 platforms/ubuntu/bacula-sd \
40997 platforms/ubuntu/bacula-dir"
40999 PFILES="${PFILES} \
41000 platforms/debian/Makefile \
41001 platforms/debian/bacula-fd \
41002 platforms/debian/bacula-sd \
41003 platforms/debian/bacula-dir"
41007 ping -c 1 $hostname 2>&1 1>/dev/null
41008 if test ! $? = 0; then
41009 hostname="localhost"
41011 DISTVER=`uname -a |awk '{print $3}'`
41012 VER=`echo $DISTVER | cut -c 1`
41013 if test x$VER = x4 ; then
41014 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41015 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41019 TAPEDRIVE="/dev/nrsa0"
41020 PSCMD="ps -ax -o pid,command"
41021 PFILES="${PFILES} \
41022 platforms/freebsd/Makefile \
41023 platforms/freebsd/bacula-fd \
41024 platforms/freebsd/bacula-sd \
41025 platforms/freebsd/bacula-dir"
41026 largefile_support="yes"
41029 PSCMD="UNIX95=1; ps -e -o pid,comm"
41030 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41032 TAPEDRIVE="/dev/rmt/0hnb"
41033 PTHREAD_LIB="-lpthread"
41034 cat >>confdefs.h <<\_ACEOF
41035 #define _INCLUDE_LONGLONG 1
41041 TAPEDRIVE="/dev/rmt/0cbn"
41042 PSCMD="ps -e -o pid,comm"
41043 PFILES="${PFILES} \
41044 platforms/irix/Makefile \
41045 platforms/irix/bacula-fd \
41046 platforms/irix/bacula-sd \
41047 platforms/irix/bacula-dir"
41050 DISTVER=`uname -a |awk '{print $3}'`
41053 TAPEDRIVE="/dev/nrst0"
41054 PSCMD="ps -ax -o pid,command"
41055 PTHREAD_LIB="-pthread"
41056 CFLAGS="${CFLAGS} -pthread"
41059 DISTVER=`uname -a |awk '{print $3}'`
41062 TAPEDRIVE="/dev/nrst0"
41063 PSCMD="ps -ax -o pid,command"
41064 PTHREAD_LIB="-pthread"
41065 CFLAGS="${CFLAGS} -pthread"
41066 PFILES="${PFILES} \
41067 platforms/openbsd/Makefile \
41068 platforms/openbsd/bacula-fd \
41069 platforms/openbsd/bacula-sd \
41070 platforms/openbsd/bacula-dir"
41073 ping -c 1 $hostname 2>&1 1>/dev/null
41074 if test ! $? = 0; then
41075 hostname="localhost"
41077 if test -f /etc/whitebox-release ; then
41078 f=/etc/whitebox-release
41080 f=/etc/redhat-release
41082 if test `cat $f | grep release |\
41083 cut -f 3 -d ' '`x = "Enterprise"x ; then
41084 DISTVER="Enterprise "`cat $f | grep release |\
41087 DISTVER=`cat /etc/redhat-release | grep release |\
41090 TAPEDRIVE="/dev/nst0"
41091 PSCMD="ps -e -o pid,command"
41092 PFILES="${PFILES} \
41093 platforms/redhat/Makefile \
41094 platforms/redhat/bacula-fd \
41095 platforms/redhat/bacula-sd \
41096 platforms/redhat/bacula-dir \
41097 platforms/redhat/bacula.spec \
41101 ping -c 1 $hostname 2>&1 1>/dev/null
41102 if test ! $? = 0; then
41103 hostname="localhost"
41105 DISTVER=`cat /etc/mandrake-release | grep release |\
41107 TAPEDRIVE="/dev/nst0"
41108 PSCMD="ps -e -o pid,command"
41109 PFILES="${PFILES} \
41110 platforms/mandrake/Makefile \
41111 platforms/mandrake/bacula-fd \
41112 platforms/mandrake/bacula-sd \
41113 platforms/mandrake/bacula-dir \
41114 platforms/mandrake/bacula.spec \
41118 ping -c 1 $hostname 2>&1 1>/dev/null
41119 if test ! $? = 0; then
41120 hostname="localhost"
41122 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41123 TAPEDRIVE="/dev/nst0"
41124 PSCMD="ps -e -o pid,command"
41125 PFILES="${PFILES} \
41126 platforms/gentoo/Makefile \
41127 platforms/gentoo/bacula-init \
41128 platforms/gentoo/bacula-fd \
41129 platforms/gentoo/bacula-sd \
41130 platforms/gentoo/bacula-dir"
41133 ping -c 1 $hostname 2>&1 1>/dev/null
41134 if test ! $? = 0; then
41135 hostname="localhost"
41137 DISTVER=`cat /etc/slackware-version`
41138 TAPEDRIVE="/dev/nst0"
41139 PSCMD="ps -e -o pid,command"
41140 PFILES="${PFILES} \
41141 platforms/slackware/Makefile \
41142 platforms/slackware/rc.bacula-fd \
41143 platforms/slackware/rc.bacula-sd \
41144 platforms/slackware/rc.bacula-dir\
41145 platforms/slackware/functions.bacula"
41149 TAPEDRIVE="/dev/rmt/0cbn"
41150 PSCMD="ps -e -o pid,comm"
41151 PFILES="${PFILES} \
41152 platforms/solaris/Makefile \
41153 platforms/solaris/bacula-fd \
41154 platforms/solaris/bacula-sd \
41155 platforms/solaris/bacula-dir"
41156 if test x$DISTVER = x5.6 ; then
41157 cat >>confdefs.h <<\_ACEOF
41158 #define HAVE_OLD_SOCKOPT 1
41162 LIBS="$LIBS -lresolv"
41165 ping -c 1 $hostname 2>&1 1>/dev/null
41166 if test ! $? = 0; then
41167 hostname="localhost"
41169 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41171 TAPEDRIVE="/dev/nst0"
41172 PSCMD="ps -e -o pid,command"
41173 PFILES="${PFILES} \
41174 platforms/suse/Makefile \
41175 platforms/suse/bacula-fd \
41176 platforms/suse/bacula-sd \
41177 platforms/suse/bacula-dir \
41178 platforms/suse/bacula \
41179 platforms/suse/bacula.spec"
41182 ping -c 1 $hostname 2>&1 1>/dev/null
41183 if test ! $? = 0; then
41184 hostname="localhost"
41188 TAPEDRIVE="/dev/nst0"
41189 PSCMD="ps -e -o pid,command"
41190 PFILES="${PFILES} \
41191 platforms/suse/Makefile \
41192 platforms/suse/bacula-fd \
41193 platforms/suse/bacula-sd \
41194 platforms/suse/bacula-dir"
41198 TAPEDRIVE="/dev/nst0"
41201 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41207 LIBS="$PTHREAD_LIB $LIBS"
41209 cat >>confdefs.h <<_ACEOF
41213 cat >>confdefs.h <<_ACEOF
41224 MCOMMON=./autoconf/Make.common
41227 if test "x${subsysdir}" = "x${sbindir}" ; then
41230 echo "You have set both --sbindir and --with-subsys-dir"
41231 echo " equal to: ${subsysdir} "
41232 echo "This is not permitted. Please reconfigure."
41234 echo "Aborting configuration ..."
41240 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"
41242 ac_config_commands="$ac_config_commands default"
41244 cat >confcache <<\_ACEOF
41245 # This file is a shell script that caches the results of configure
41246 # tests run on this system so they can be shared between configure
41247 # scripts and configure runs, see configure's option --config-cache.
41248 # It is not useful on other systems. If it contains results you don't
41249 # want to keep, you may remove or edit it.
41251 # config.status only pays attention to the cache file if you give it
41252 # the --recheck option to rerun configure.
41254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41256 # following values.
41260 # The following way of writing the cache mishandles newlines in values,
41261 # but we know of no workaround that is simple, portable, and efficient.
41262 # So, we kill variables containing newlines.
41263 # Ultrix sh set writes to stderr and can't be redirected directly,
41264 # and sets the high bit in the cache file unless we assign to the vars.
41266 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41267 eval ac_val=\$$ac_var
41271 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41272 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41275 _ | IFS | as_nl) ;; #(
41276 *) $as_unset $ac_var ;;
41282 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41283 *${as_nl}ac_space=\ *)
41284 # `set' does not quote correctly, so add quotes (double-quote
41285 # substitution turns \\\\ into \\, and sed turns \\ into \).
41288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41291 # `set' quotes correctly as required by POSIX, so do not add quotes.
41292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41305 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41306 if test -w "$cache_file"; then
41307 test "x$cache_file" != "x/dev/null" &&
41308 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41309 echo "$as_me: updating cache $cache_file" >&6;}
41310 cat confcache >$cache_file
41312 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41313 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41318 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41319 # Let make expand exec_prefix.
41320 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41322 DEFS=-DHAVE_CONFIG_H
41326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41327 # 1. Remove the extension, and $U if already installed.
41328 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41329 ac_i=`echo "$ac_i" | sed "$ac_script"`
41330 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41331 # will be set to the directory where LIBOBJS objects are built.
41332 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41333 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41335 LIBOBJS=$ac_libobjs
41337 LTLIBOBJS=$ac_ltlibobjs
41341 : ${CONFIG_STATUS=./config.status}
41342 ac_clean_files_save=$ac_clean_files
41343 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41344 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41345 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41346 cat >$CONFIG_STATUS <<_ACEOF
41348 # Generated by $as_me.
41349 # Run this file to recreate the current configuration.
41350 # Compiler output produced by configure, useful for debugging
41351 # configure, is in config.log if it exists.
41354 ac_cs_recheck=false
41356 SHELL=\${CONFIG_SHELL-$SHELL}
41359 cat >>$CONFIG_STATUS <<\_ACEOF
41360 ## --------------------- ##
41361 ## M4sh Initialization. ##
41362 ## --------------------- ##
41364 # Be more Bourne compatible
41365 DUALCASE=1; export DUALCASE # for MKS sh
41366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41369 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41370 # is contrary to our usage. Disable this feature.
41371 alias -g '${1+"$@"}'='"$@"'
41372 setopt NO_GLOB_SUBST
41374 case `(set -o) 2>/dev/null` in
41375 *posix*) set -o posix ;;
41384 # Avoid depending upon Character Ranges.
41385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41388 as_cr_digits='0123456789'
41389 as_cr_alnum=$as_cr_Letters$as_cr_digits
41391 # The user is always right.
41392 if test "${PATH_SEPARATOR+set}" != set; then
41393 echo "#! /bin/sh" >conf$$.sh
41394 echo "exit 0" >>conf$$.sh
41396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41404 # Support unset when possible.
41405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41413 # We need space, tab and new line, in precisely that order. Quoting is
41414 # there to prevent editors from complaining about space-tab.
41415 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41416 # splitting by setting IFS to empty value.)
41421 # Find who we are. Look in the path if we contain no directory separator.
41423 *[\\/]* ) as_myself=$0 ;;
41424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41425 for as_dir in $PATH
41428 test -z "$as_dir" && as_dir=.
41429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41435 # We did not find ourselves, most probably we were run as `sh COMMAND'
41436 # in which case we are not to be found in the path.
41437 if test "x$as_myself" = x; then
41440 if test ! -f "$as_myself"; then
41441 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41442 { (exit 1); exit 1; }
41445 # Work around bugs in pre-3.0 UWIN ksh.
41446 for as_var in ENV MAIL MAILPATH
41447 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41455 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41456 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41457 LC_TELEPHONE LC_TIME
41459 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41460 eval $as_var=C; export $as_var
41462 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41466 # Required to use basename.
41467 if expr a : '\(a\)' >/dev/null 2>&1 &&
41468 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41474 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41475 as_basename=basename
41481 # Name of the executable.
41482 as_me=`$as_basename -- "$0" ||
41483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41484 X"$0" : 'X\(//\)$' \| \
41485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41487 sed '/^.*\/\([^/][^/]*\)\/*$/{
41506 as_lineno_1=$LINENO
41507 as_lineno_2=$LINENO
41508 test "x$as_lineno_1" != "x$as_lineno_2" &&
41509 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41511 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41512 # uniformly replaced by the line number. The first 'sed' inserts a
41513 # line-number line after each line using $LINENO; the second 'sed'
41514 # does the real work. The second script uses 'N' to pair each
41515 # line-number line with the line containing $LINENO, and appends
41516 # trailing '-' during substitution so that $LINENO is not a special
41517 # case at line end.
41518 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41519 # scripts with optimization help from Paolo Bonzini. Blame Lee
41520 # E. McMahon (1931-1989) for sed's syntax. :-)
41532 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41535 ' >$as_me.lineno &&
41536 chmod +x "$as_me.lineno" ||
41537 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41538 { (exit 1); exit 1; }; }
41540 # Don't try to exec as it changes $[0], causing all sort of problems
41541 # (the dirname of $[0] is not the place where we might find the
41542 # original and so on. Autoconf is especially sensitive to this).
41543 . "./$as_me.lineno"
41544 # Exit status is that of the last command.
41549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41555 ECHO_C= ECHO_N= ECHO_T=
41556 case `echo -n x` in
41558 case `echo 'x\c'` in
41559 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41566 if expr a : '\(a\)' >/dev/null 2>&1 &&
41567 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41573 rm -f conf$$ conf$$.exe conf$$.file
41574 if test -d conf$$.dir; then
41575 rm -f conf$$.dir/conf$$.file
41581 if ln -s conf$$.file conf$$ 2>/dev/null; then
41583 # ... but there are two gotchas:
41584 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41585 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41586 # In both cases, we have to default to `cp -p'.
41587 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41589 elif ln conf$$.file conf$$ 2>/dev/null; then
41594 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41595 rmdir conf$$.dir 2>/dev/null
41597 if mkdir -p . 2>/dev/null; then
41600 test -d ./-p && rmdir ./-p
41604 if test -x / >/dev/null 2>&1; then
41605 as_test_x='test -x'
41607 if ls -dL / >/dev/null 2>&1; then
41614 if test -d "$1"; then
41620 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41621 ???[sx]*):;;*)false;;esac;fi
41625 as_executable_p=$as_test_x
41627 # Sed expression to map a string onto a valid CPP name.
41628 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41630 # Sed expression to map a string onto a valid variable name.
41631 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41636 # Save the log message, to keep $[0] and so on meaningful, and to
41637 # report actual input values of CONFIG_FILES etc. instead of their
41638 # values after options handling.
41640 This file was extended by $as_me, which was
41641 generated by GNU Autoconf 2.61. Invocation command line was
41643 CONFIG_FILES = $CONFIG_FILES
41644 CONFIG_HEADERS = $CONFIG_HEADERS
41645 CONFIG_LINKS = $CONFIG_LINKS
41646 CONFIG_COMMANDS = $CONFIG_COMMANDS
41649 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41654 cat >>$CONFIG_STATUS <<_ACEOF
41655 # Files that config.status was made for.
41656 config_files="$ac_config_files"
41657 config_headers="$ac_config_headers"
41658 config_commands="$ac_config_commands"
41662 cat >>$CONFIG_STATUS <<\_ACEOF
41664 \`$as_me' instantiates files from templates according to the
41665 current configuration.
41667 Usage: $0 [OPTIONS] [FILE]...
41669 -h, --help print this help, then exit
41670 -V, --version print version number and configuration settings, then exit
41671 -q, --quiet do not print progress messages
41672 -d, --debug don't remove temporary files
41673 --recheck update $as_me by reconfiguring in the same conditions
41674 --file=FILE[:TEMPLATE]
41675 instantiate the configuration file FILE
41676 --header=FILE[:TEMPLATE]
41677 instantiate the configuration header FILE
41679 Configuration files:
41682 Configuration headers:
41685 Configuration commands:
41688 Report bugs to <bug-autoconf@gnu.org>."
41691 cat >>$CONFIG_STATUS <<_ACEOF
41694 configured by $0, generated by GNU Autoconf 2.61,
41695 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41697 Copyright (C) 2006 Free Software Foundation, Inc.
41698 This config.status script is free software; the Free Software Foundation
41699 gives unlimited permission to copy, distribute and modify it."
41706 cat >>$CONFIG_STATUS <<\_ACEOF
41707 # If no file are specified by the user, then we need to provide default
41708 # value. By we need to know if files were specified by the user.
41714 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41715 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41726 # Handling of the options.
41727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41729 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41730 echo "$ac_cs_version"; exit ;;
41731 --debug | --debu | --deb | --de | --d | -d )
41733 --file | --fil | --fi | --f )
41735 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41736 ac_need_defaults=false;;
41737 --header | --heade | --head | --hea )
41739 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41740 ac_need_defaults=false;;
41742 # Conflict between --help and --header
41743 { echo "$as_me: error: ambiguous option: $1
41744 Try \`$0 --help' for more information." >&2
41745 { (exit 1); exit 1; }; };;
41746 --help | --hel | -h )
41747 echo "$ac_cs_usage"; exit ;;
41748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41749 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41752 # This is an error.
41753 -*) { echo "$as_me: error: unrecognized option: $1
41754 Try \`$0 --help' for more information." >&2
41755 { (exit 1); exit 1; }; } ;;
41757 *) ac_config_targets="$ac_config_targets $1"
41758 ac_need_defaults=false ;;
41764 ac_configure_extra_args=
41766 if $ac_cs_silent; then
41768 ac_configure_extra_args="$ac_configure_extra_args --silent"
41772 cat >>$CONFIG_STATUS <<_ACEOF
41773 if \$ac_cs_recheck; then
41774 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41775 CONFIG_SHELL=$SHELL
41776 export CONFIG_SHELL
41777 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41781 cat >>$CONFIG_STATUS <<\_ACEOF
41785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41786 ## Running $as_me. ##
41792 cat >>$CONFIG_STATUS <<_ACEOF
41798 # The HP-UX ksh and POSIX shell print the target directory to stdout
41799 # if CDPATH is set.
41800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41802 sed_quote_subst='$sed_quote_subst'
41803 double_quote_subst='$double_quote_subst'
41804 delay_variable_subst='$delay_variable_subst'
41805 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41806 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41807 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41808 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41809 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41810 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41811 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41812 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41813 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41814 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41815 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41816 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41817 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41818 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41819 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41820 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41821 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41822 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41823 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41824 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41825 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41826 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41827 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41828 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41829 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41831 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41832 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41833 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41834 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41835 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41836 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41837 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41838 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41839 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41840 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41841 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41842 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41844 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41845 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41846 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41847 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41848 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41849 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"`'
41850 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"`'
41851 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41852 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41853 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41854 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41855 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41856 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41857 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41858 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41859 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41860 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41861 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41862 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41863 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41864 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41865 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41866 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41867 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41868 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41869 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41870 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41871 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41872 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41873 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41874 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41875 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41876 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41879 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41880 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41881 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41882 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41883 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41884 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41885 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41886 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41887 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41888 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41889 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41890 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41891 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41892 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41893 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41894 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41895 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41896 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41897 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41898 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41899 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41900 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41901 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41902 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41903 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41904 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41905 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41906 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41907 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41908 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41909 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41910 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41911 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41912 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41913 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41914 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41915 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41916 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41917 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41918 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41919 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41920 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41921 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41922 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41923 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41924 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41925 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41926 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41927 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41928 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41929 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41930 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41958 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41959 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41961 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41962 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41963 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41964 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41965 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41966 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41967 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41968 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41969 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41970 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41971 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41972 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41973 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41974 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41975 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41978 LTCFLAGS='$LTCFLAGS'
41979 compiler='$compiler_DEFAULT'
41981 # Quote evaled strings.
41993 deplibs_check_method \
42002 lt_cv_sys_global_symbol_pipe \
42003 lt_cv_sys_global_symbol_to_cdecl \
42004 lt_cv_sys_global_symbol_to_c_name_address \
42005 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42008 lt_prog_compiler_no_builtin_flag \
42009 lt_prog_compiler_wl \
42010 lt_prog_compiler_pic \
42011 lt_prog_compiler_static \
42012 lt_cv_prog_compiler_c_o \
42020 export_dynamic_flag_spec \
42021 whole_archive_flag_spec \
42022 compiler_needs_object \
42024 allow_undefined_flag \
42025 no_undefined_flag \
42026 hardcode_libdir_flag_spec \
42027 hardcode_libdir_flag_spec_ld \
42028 hardcode_libdir_separator \
42033 variables_saved_for_relink \
42035 library_names_spec \
42040 compiler_lib_search_dirs \
42045 compiler_lib_search_path \
42048 lt_prog_compiler_no_builtin_flag_CXX \
42049 lt_prog_compiler_wl_CXX \
42050 lt_prog_compiler_pic_CXX \
42051 lt_prog_compiler_static_CXX \
42052 lt_cv_prog_compiler_c_o_CXX \
42053 export_dynamic_flag_spec_CXX \
42054 whole_archive_flag_spec_CXX \
42055 compiler_needs_object_CXX \
42057 allow_undefined_flag_CXX \
42058 no_undefined_flag_CXX \
42059 hardcode_libdir_flag_spec_CXX \
42060 hardcode_libdir_flag_spec_ld_CXX \
42061 hardcode_libdir_separator_CXX \
42062 fix_srcfile_path_CXX \
42063 exclude_expsyms_CXX \
42064 include_expsyms_CXX \
42065 file_list_spec_CXX \
42066 compiler_lib_search_dirs_CXX \
42067 predep_objects_CXX \
42068 postdep_objects_CXX \
42071 compiler_lib_search_path_CXX; do
42072 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42073 *[\\\\\\\`\\"\\\$]*)
42074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42082 # Double-quote double-evaled strings.
42083 for var in reload_cmds \
42084 old_postinstall_cmds \
42085 old_postuninstall_cmds \
42087 extract_expsyms_cmds \
42088 old_archive_from_new_cmds \
42089 old_archive_from_expsyms_cmds \
42091 archive_expsym_cmds \
42093 module_expsym_cmds \
42094 export_symbols_cmds \
42097 postuninstall_cmds \
42099 sys_lib_search_path_spec \
42100 sys_lib_dlsearch_path_spec \
42101 old_archive_cmds_CXX \
42102 old_archive_from_new_cmds_CXX \
42103 old_archive_from_expsyms_cmds_CXX \
42105 archive_expsym_cmds_CXX \
42107 module_expsym_cmds_CXX \
42108 export_symbols_cmds_CXX \
42109 prelink_cmds_CXX; do
42110 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42111 *[\\\\\\\`\\"\\\$]*)
42112 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42115 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42120 # Fix-up fallback echo if it was mangled by the above quoting rules.
42122 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42126 ac_aux_dir='$ac_aux_dir'
42127 xsi_shell='$xsi_shell'
42128 lt_shell_append='$lt_shell_append'
42130 # See if we are running on zsh, and set the options which allow our
42131 # commands through without removal of \ escapes INIT.
42132 if test -n "\${ZSH_VERSION+set}" ; then
42133 setopt NO_GLOB_SUBST
42139 TIMESTAMP='$TIMESTAMP'
42147 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42148 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42150 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42151 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42152 LINGUAS="${LINGUAS-%UNSET%}"
42157 cat >>$CONFIG_STATUS <<\_ACEOF
42159 # Handling of arguments.
42160 for ac_config_target in $ac_config_targets
42162 case $ac_config_target in
42163 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42164 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42165 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42166 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42167 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42168 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42169 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42170 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42171 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42172 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42173 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42174 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42175 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42176 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42177 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42178 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42179 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42180 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42181 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42182 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42183 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42184 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42185 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42186 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42187 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42188 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42189 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42190 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42191 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42192 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42193 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42194 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42195 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42196 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42197 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42198 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42199 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42200 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42201 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42202 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42203 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42204 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42205 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42206 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42207 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42208 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42209 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42210 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42211 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42212 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42213 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42214 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42215 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42216 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42217 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42218 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42219 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42220 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42221 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42222 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42223 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42224 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42225 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42226 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42227 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42228 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42229 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42230 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42231 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42232 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42233 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42234 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42235 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42236 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42237 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42238 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42239 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42240 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42241 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42242 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42243 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42244 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42245 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42246 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42247 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42248 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42249 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42250 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42251 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42252 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42253 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42254 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42255 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42256 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42257 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42258 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42259 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42260 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42261 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42262 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42263 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42264 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42265 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42266 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42267 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42268 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42269 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42270 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42271 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42272 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42273 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42274 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42275 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42277 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42278 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42279 { (exit 1); exit 1; }; };;
42284 # If the user did not use the arguments to specify the items to instantiate,
42285 # then the envvar interface is used. Set only those that are not.
42286 # We use the long form for the default assignment because of an extremely
42287 # bizarre bug on SunOS 4.1.3.
42288 if $ac_need_defaults; then
42289 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42290 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42294 # Have a temporary directory for convenience. Make it in the build tree
42295 # simply because there is no reason against having it here, and in addition,
42296 # creating and moving files from /tmp can sometimes cause problems.
42297 # Hook for its removal unless debugging.
42298 # Note that there is a small window in which the directory will not be cleaned:
42299 # after its creation but before its name has been assigned to `$tmp'.
42303 trap 'exit_status=$?
42304 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42306 trap '{ (exit 1); exit 1; }' 1 2 13 15
42308 # Create a (secure) tmp directory for tmp files.
42311 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42312 test -n "$tmp" && test -d "$tmp"
42315 tmp=./conf$$-$RANDOM
42316 (umask 077 && mkdir "$tmp")
42319 echo "$me: cannot create a temporary directory in ." >&2
42320 { (exit 1); exit 1; }
42324 # Set up the sed scripts for CONFIG_FILES section.
42327 # No need to generate the scripts if there are no CONFIG_FILES.
42328 # This happens for instance when ./config.status config.h
42329 if test -n "$CONFIG_FILES"; then
42333 # Create sed commands to just substitute file output variables.
42335 # Remaining file output variables are in a fragment that also has non-file
42341 for ac_last_try in false false false false false :; do
42342 cat >conf$$subs.sed <<_ACEOF
42343 SHELL!$SHELL$ac_delim
42344 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42345 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42346 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42347 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42348 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42349 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42350 exec_prefix!$exec_prefix$ac_delim
42351 prefix!$prefix$ac_delim
42352 program_transform_name!$program_transform_name$ac_delim
42353 bindir!$bindir$ac_delim
42354 sbindir!$sbindir$ac_delim
42355 libexecdir!$libexecdir$ac_delim
42356 datarootdir!$datarootdir$ac_delim
42357 datadir!$datadir$ac_delim
42358 sysconfdir!$sysconfdir$ac_delim
42359 sharedstatedir!$sharedstatedir$ac_delim
42360 localstatedir!$localstatedir$ac_delim
42361 includedir!$includedir$ac_delim
42362 oldincludedir!$oldincludedir$ac_delim
42363 docdir!$docdir$ac_delim
42364 infodir!$infodir$ac_delim
42365 htmldir!$htmldir$ac_delim
42366 dvidir!$dvidir$ac_delim
42367 pdfdir!$pdfdir$ac_delim
42368 psdir!$psdir$ac_delim
42369 libdir!$libdir$ac_delim
42370 localedir!$localedir$ac_delim
42371 mandir!$mandir$ac_delim
42372 DEFS!$DEFS$ac_delim
42373 ECHO_C!$ECHO_C$ac_delim
42374 ECHO_N!$ECHO_N$ac_delim
42375 ECHO_T!$ECHO_T$ac_delim
42376 LIBS!$LIBS$ac_delim
42377 build_alias!$build_alias$ac_delim
42378 host_alias!$host_alias$ac_delim
42379 target_alias!$target_alias$ac_delim
42380 BUILD_DIR!$BUILD_DIR$ac_delim
42381 TOP_DIR!$TOP_DIR$ac_delim
42382 TRUEPRG!$TRUEPRG$ac_delim
42383 FALSEPRG!$FALSEPRG$ac_delim
42384 VERSION!$VERSION$ac_delim
42385 DATE!$DATE$ac_delim
42386 LSMDATE!$LSMDATE$ac_delim
42387 BACULA!$BACULA$ac_delim
42388 post_host!$post_host$ac_delim
42390 CFLAGS!$CFLAGS$ac_delim
42391 LDFLAGS!$LDFLAGS$ac_delim
42392 CPPFLAGS!$CPPFLAGS$ac_delim
42393 ac_ct_CC!$ac_ct_CC$ac_delim
42394 EXEEXT!$EXEEXT$ac_delim
42395 OBJEXT!$OBJEXT$ac_delim
42397 CXXFLAGS!$CXXFLAGS$ac_delim
42398 ac_ct_CXX!$ac_ct_CXX$ac_delim
42400 GREP!$GREP$ac_delim
42401 EGREP!$EGREP$ac_delim
42402 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42403 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42404 INSTALL_DATA!$INSTALL_DATA$ac_delim
42406 REMOVE!$REMOVE$ac_delim
42409 ECHO!$ECHO$ac_delim
42413 OPENSSL!$OPENSSL$ac_delim
42416 MKISOFS!$MKISOFS$ac_delim
42417 PYTHON!$PYTHON$ac_delim
42418 GROWISOFS!$GROWISOFS$ac_delim
42419 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42420 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42421 PKGCONFIG!$PKGCONFIG$ac_delim
42422 QMAKE!$QMAKE$ac_delim
42423 QMAKEQT4!$QMAKEQT4$ac_delim
42424 WXCONFIG!$WXCONFIG$ac_delim
42425 WXFLAGS!$WXFLAGS$ac_delim
42426 CDRECORD!$CDRECORD$ac_delim
42427 PIDOF!$PIDOF$ac_delim
42429 ARFLAGS!$ARFLAGS$ac_delim
42430 MAKE_SHELL!$MAKE_SHELL$ac_delim
42431 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42432 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42433 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42434 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42435 LIBTOOL!$LIBTOOL$ac_delim
42436 build!$build$ac_delim
42439 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42441 elif $ac_last_try; then
42442 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42443 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42444 { (exit 1); exit 1; }; }
42446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42450 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42451 if test -n "$ac_eof"; then
42452 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42453 ac_eof=`expr $ac_eof + 1`
42456 cat >>$CONFIG_STATUS <<_ACEOF
42457 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42459 /^[ ]*@MCOMMON@[ ]*$/{
42465 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42466 s/^/s,@/; s/!/@,|#_!!_#|/
42469 s/'"$ac_delim"'$/,g/; t
42471 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42472 ' >>$CONFIG_STATUS <conf$$subs.sed
42473 rm -f conf$$subs.sed
42474 cat >>$CONFIG_STATUS <<_ACEOF
42480 for ac_last_try in false false false false false :; do
42481 cat >conf$$subs.sed <<_ACEOF
42482 build_cpu!$build_cpu$ac_delim
42483 build_vendor!$build_vendor$ac_delim
42484 build_os!$build_os$ac_delim
42485 host!$host$ac_delim
42486 host_cpu!$host_cpu$ac_delim
42487 host_vendor!$host_vendor$ac_delim
42488 host_os!$host_os$ac_delim
42489 FGREP!$FGREP$ac_delim
42491 DUMPBIN!$DUMPBIN$ac_delim
42492 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42494 LN_S!$LN_S$ac_delim
42495 OBJDUMP!$OBJDUMP$ac_delim
42496 STRIP!$STRIP$ac_delim
42497 RANLIB!$RANLIB$ac_delim
42498 lt_ECHO!$lt_ECHO$ac_delim
42499 DSYMUTIL!$DSYMUTIL$ac_delim
42500 NMEDIT!$NMEDIT$ac_delim
42501 LIPO!$LIPO$ac_delim
42502 OTOOL!$OTOOL$ac_delim
42503 OTOOL64!$OTOOL64$ac_delim
42504 CXXCPP!$CXXCPP$ac_delim
42505 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42506 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42507 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42508 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42509 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42510 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42511 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42512 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42513 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42514 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42515 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42516 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42517 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42518 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42519 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42520 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42521 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42522 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42523 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42524 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42525 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42526 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42527 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42528 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42529 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42530 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42531 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42532 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42533 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42534 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42535 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42536 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42537 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42538 SET_MAKE!$SET_MAKE$ac_delim
42539 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42540 USE_NLS!$USE_NLS$ac_delim
42541 MSGFMT!$MSGFMT$ac_delim
42542 GMSGFMT!$GMSGFMT$ac_delim
42543 XGETTEXT!$XGETTEXT$ac_delim
42544 MSGMERGE!$MSGMERGE$ac_delim
42545 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42546 LIBICONV!$LIBICONV$ac_delim
42547 LTLIBICONV!$LTLIBICONV$ac_delim
42548 INTLLIBS!$INTLLIBS$ac_delim
42549 LIBINTL!$LIBINTL$ac_delim
42550 LTLIBINTL!$LTLIBINTL$ac_delim
42551 POSUB!$POSUB$ac_delim
42552 GLIBC2!$GLIBC2$ac_delim
42553 ALLOCA!$ALLOCA$ac_delim
42554 GLIBC21!$GLIBC21$ac_delim
42555 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42556 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42557 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42558 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42559 INTLBISON!$INTLBISON$ac_delim
42560 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42561 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42562 CATOBJEXT!$CATOBJEXT$ac_delim
42563 DATADIRNAME!$DATADIRNAME$ac_delim
42564 INSTOBJEXT!$INSTOBJEXT$ac_delim
42565 GENCAT!$GENCAT$ac_delim
42566 INTLOBJS!$INTLOBJS$ac_delim
42567 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42568 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42569 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42570 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42571 GNOME_LIBS!$GNOME_LIBS$ac_delim
42572 GNOME_DIR!$GNOME_DIR$ac_delim
42573 BAT_DIR!$BAT_DIR$ac_delim
42574 QWT_INC!$QWT_INC$ac_delim
42575 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42576 QWT_LIB!$QWT_LIB$ac_delim
42578 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42581 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42583 elif $ac_last_try; then
42584 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42585 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42586 { (exit 1); exit 1; }; }
42588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42592 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42593 if test -n "$ac_eof"; then
42594 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42595 ac_eof=`expr $ac_eof + 1`
42598 cat >>$CONFIG_STATUS <<_ACEOF
42599 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42603 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42604 s/^/s,@/; s/!/@,|#_!!_#|/
42607 s/'"$ac_delim"'$/,g/; t
42609 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42610 ' >>$CONFIG_STATUS <conf$$subs.sed
42611 rm -f conf$$subs.sed
42612 cat >>$CONFIG_STATUS <<_ACEOF
42618 for ac_last_try in false false false false false :; do
42619 cat >conf$$subs.sed <<_ACEOF
42620 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42621 WX_DIR!$WX_DIR$ac_delim
42622 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42623 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42624 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42625 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42626 STATIC_FD!$STATIC_FD$ac_delim
42627 STATIC_SD!$STATIC_SD$ac_delim
42628 STATIC_DIR!$STATIC_DIR$ac_delim
42629 STATIC_CONS!$STATIC_CONS$ac_delim
42630 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42631 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42632 ALL_DIRS!$ALL_DIRS$ac_delim
42633 DIRD_DIR!$DIRD_DIR$ac_delim
42634 DIR_TOOLS!$DIR_TOOLS$ac_delim
42635 STORED_DIR!$STORED_DIR$ac_delim
42636 CONS_INC!$CONS_INC$ac_delim
42637 CONS_OBJ!$CONS_OBJ$ac_delim
42638 CONS_SRC!$CONS_SRC$ac_delim
42639 CONS_LIBS!$CONS_LIBS$ac_delim
42640 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42641 READLINE_SRC!$READLINE_SRC$ac_delim
42642 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42643 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42644 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42645 OPENSSL_INC!$OPENSSL_INC$ac_delim
42646 working_dir!$working_dir$ac_delim
42647 archivedir!$archivedir$ac_delim
42648 scriptdir!$scriptdir$ac_delim
42649 plugindir!$plugindir$ac_delim
42650 dump_email!$dump_email$ac_delim
42651 job_email!$job_email$ac_delim
42652 smtp_host!$smtp_host$ac_delim
42653 piddir!$piddir$ac_delim
42654 subsysdir!$subsysdir$ac_delim
42655 baseport!$baseport$ac_delim
42656 dir_port!$dir_port$ac_delim
42657 fd_port!$fd_port$ac_delim
42658 sd_port!$sd_port$ac_delim
42659 dir_password!$dir_password$ac_delim
42660 fd_password!$fd_password$ac_delim
42661 sd_password!$sd_password$ac_delim
42662 mon_dir_password!$mon_dir_password$ac_delim
42663 mon_fd_password!$mon_fd_password$ac_delim
42664 mon_sd_password!$mon_sd_password$ac_delim
42665 db_name!$db_name$ac_delim
42666 db_user!$db_user$ac_delim
42667 db_password!$db_password$ac_delim
42668 db_port!$db_port$ac_delim
42669 dir_user!$dir_user$ac_delim
42670 dir_group!$dir_group$ac_delim
42671 sd_user!$sd_user$ac_delim
42672 sd_group!$sd_group$ac_delim
42673 fd_user!$fd_user$ac_delim
42674 fd_group!$fd_group$ac_delim
42675 SBINPERM!$SBINPERM$ac_delim
42676 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42677 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42678 SQL_BINDIR!$SQL_BINDIR$ac_delim
42679 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42680 uncomment_dbi!$uncomment_dbi$ac_delim
42681 DB_PROG!$DB_PROG$ac_delim
42682 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42683 cats!$cats$ac_delim
42684 DB_TYPE!$DB_TYPE$ac_delim
42685 GETCONF!$GETCONF$ac_delim
42686 XMKMF!$XMKMF$ac_delim
42687 X_CFLAGS!$X_CFLAGS$ac_delim
42688 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42689 X_LIBS!$X_LIBS$ac_delim
42690 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42691 LIBOBJS!$LIBOBJS$ac_delim
42692 FDLIBS!$FDLIBS$ac_delim
42693 DEBUG!$DEBUG$ac_delim
42694 DINCLUDE!$DINCLUDE$ac_delim
42695 DLIB!$DLIB$ac_delim
42696 DB_LIBS!$DB_LIBS$ac_delim
42697 WCFLAGS!$WCFLAGS$ac_delim
42698 WLDFLAGS!$WLDFLAGS$ac_delim
42699 WRAPLIBS!$WRAPLIBS$ac_delim
42700 OBJLIST!$OBJLIST$ac_delim
42701 hostname!$hostname$ac_delim
42702 TAPEDRIVE!$TAPEDRIVE$ac_delim
42703 PSCMD!$PSCMD$ac_delim
42704 WIN32!$WIN32$ac_delim
42705 MACOSX!$MACOSX$ac_delim
42706 DISTNAME!$DISTNAME$ac_delim
42707 DISTVER!$DISTVER$ac_delim
42708 LTLIBOBJS!$LTLIBOBJS$ac_delim
42711 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42713 elif $ac_last_try; then
42714 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42715 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42716 { (exit 1); exit 1; }; }
42718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42722 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42723 if test -n "$ac_eof"; then
42724 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42725 ac_eof=`expr $ac_eof + 1`
42728 cat >>$CONFIG_STATUS <<_ACEOF
42729 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42733 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42734 s/^/s,@/; s/!/@,|#_!!_#|/
42737 s/'"$ac_delim"'$/,g/; t
42739 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42740 ' >>$CONFIG_STATUS <conf$$subs.sed
42741 rm -f conf$$subs.sed
42742 cat >>$CONFIG_STATUS <<_ACEOF
42749 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42750 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42751 # trailing colons and then remove the whole line if VPATH becomes empty
42752 # (actually we leave an empty line to preserve line numbers).
42753 if test "x$srcdir" = x.; then
42754 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42755 s/:*\$(srcdir):*/:/
42756 s/:*\${srcdir}:*/:/
42758 s/^\([^=]*=[ ]*\):*/\1/
42764 cat >>$CONFIG_STATUS <<\_ACEOF
42765 fi # test -n "$CONFIG_FILES"
42768 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
42771 :[FHLC]) ac_mode=$ac_tag; continue;;
42773 case $ac_mode$ac_tag in
42775 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42776 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42777 { (exit 1); exit 1; }; };;
42778 :[FH]-) ac_tag=-:-;;
42779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42796 -) ac_f="$tmp/stdin";;
42797 *) # Look for the file first in the build tree, then in the source tree
42798 # (if the path is not absolute). The absolute path cannot be DOS-style,
42799 # because $ac_f cannot contain `:'.
42803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42805 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42806 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42807 { (exit 1); exit 1; }; };;
42809 ac_file_inputs="$ac_file_inputs $ac_f"
42812 # Let's still pretend it is `configure' which instantiates (i.e., don't
42813 # use $as_me), people would be surprised to read:
42814 # /* config.h. Generated by config.status. */
42815 configure_input="Generated from "`IFS=:
42816 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42817 if test x"$ac_file" != x-; then
42818 configure_input="$ac_file. $configure_input"
42819 { echo "$as_me:$LINENO: creating $ac_file" >&5
42820 echo "$as_me: creating $ac_file" >&6;}
42824 *:-:* | *:-) cat >"$tmp/stdin";;
42829 ac_dir=`$as_dirname -- "$ac_file" ||
42830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42831 X"$ac_file" : 'X\(//\)[^/]' \| \
42832 X"$ac_file" : 'X\(//\)$' \| \
42833 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42839 /^X\(\/\/\)[^/].*/{
42854 -*) as_dir=./$as_dir;;
42856 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42860 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42861 *) as_qdir=$as_dir;;
42863 as_dirs="'$as_qdir' $as_dirs"
42864 as_dir=`$as_dirname -- "$as_dir" ||
42865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42866 X"$as_dir" : 'X\(//\)[^/]' \| \
42867 X"$as_dir" : 'X\(//\)$' \| \
42868 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42874 /^X\(\/\/\)[^/].*/{
42887 test -d "$as_dir" && break
42889 test -z "$as_dirs" || eval "mkdir $as_dirs"
42890 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42891 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42892 { (exit 1); exit 1; }; }; }
42896 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42899 # A ".." for each directory in $ac_dir_suffix.
42900 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42901 case $ac_top_builddir_sub in
42902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42906 ac_abs_top_builddir=$ac_pwd
42907 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42908 # for backward compatibility:
42909 ac_top_builddir=$ac_top_build_prefix
42912 .) # We are building in place.
42914 ac_top_srcdir=$ac_top_builddir_sub
42915 ac_abs_top_srcdir=$ac_pwd ;;
42916 [\\/]* | ?:[\\/]* ) # Absolute name.
42917 ac_srcdir=$srcdir$ac_dir_suffix;
42918 ac_top_srcdir=$srcdir
42919 ac_abs_top_srcdir=$srcdir ;;
42920 *) # Relative name.
42921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42922 ac_top_srcdir=$ac_top_build_prefix$srcdir
42923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42925 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42936 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42940 cat >>$CONFIG_STATUS <<\_ACEOF
42941 # If the template does not know about datarootdir, expand it.
42942 # FIXME: This hack should be removed a few years after 2.60.
42943 ac_datarootdir_hack=; ac_datarootdir_seen=
42945 case `sed -n '/datarootdir/ {
42954 ' $ac_file_inputs` in
42955 *datarootdir*) ac_datarootdir_seen=yes;;
42956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42957 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42958 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42960 cat >>$CONFIG_STATUS <<_ACEOF
42961 ac_datarootdir_hack='
42962 s&@datadir@&$datadir&g
42963 s&@docdir@&$docdir&g
42964 s&@infodir@&$infodir&g
42965 s&@localedir@&$localedir&g
42966 s&@mandir@&$mandir&g
42967 s&\\\${datarootdir}&$datarootdir&g' ;;
42971 # Neutralize VPATH when `$srcdir' = `.'.
42972 # Shell code in configure.ac might set extrasub.
42973 # FIXME: do we really want to maintain this feature?
42974 cat >>$CONFIG_STATUS <<_ACEOF
42978 cat >>$CONFIG_STATUS <<\_ACEOF
42980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42981 s&@configure_input@&$configure_input&;t t
42982 s&@top_builddir@&$ac_top_builddir_sub&;t t
42983 s&@srcdir@&$ac_srcdir&;t t
42984 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42985 s&@top_srcdir@&$ac_top_srcdir&;t t
42986 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42987 s&@builddir@&$ac_builddir&;t t
42988 s&@abs_builddir@&$ac_abs_builddir&;t t
42989 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42990 s&@INSTALL@&$ac_INSTALL&;t t
42991 $ac_datarootdir_hack
42992 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42994 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42995 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42996 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42997 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42998 which seems to be undefined. Please make sure it is defined." >&5
42999 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43000 which seems to be undefined. Please make sure it is defined." >&2;}
43004 -) cat "$tmp/out"; rm -f "$tmp/out";;
43005 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43014 # Transform confdefs.h into a sed script `conftest.defines', that
43015 # substitutes the proper values into config.h.in to produce config.h.
43016 rm -f conftest.defines conftest.tail
43017 # First, append a space to every undef/define line, to ease matching.
43018 echo 's/$/ /' >conftest.defines
43019 # Then, protect against being on the right side of a sed subst, or in
43020 # an unquoted here document, in config.status. If some macros were
43021 # called several times there might be several #defines for the same
43022 # symbol, which is useless. But do not sort them, since the last
43023 # AC_DEFINE must be honored.
43024 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43025 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43026 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43027 # PARAMS is the parameter list in the macro definition--in most cases, it's
43028 # just an empty string.
43029 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43030 ac_dB='\\)[ (].*,\\1define\\2'
43038 s/^[ ]*#[ ]*define[ ][ ]*//
43043 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43044 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43045 ' >>conftest.defines
43047 # Remove the space that was appended to ease matching.
43048 # Then replace #undef with comments. This is necessary, for
43049 # example, in the case of _POSIX_SOURCE, which is predefined and required
43050 # on some systems where configure will not decide to define it.
43051 # (The regexp can be short, since the line contains either #define or #undef.)
43053 s,^[ #]*u.*,/* & */,' >>conftest.defines
43055 # Break up conftest.defines:
43056 ac_max_sed_lines=50
43058 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43059 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43060 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43062 ac_in='$ac_file_inputs'
43063 ac_out='"$tmp/out1"'
43064 ac_nxt='"$tmp/out2"'
43068 # Write a here document:
43069 cat >>$CONFIG_STATUS <<_ACEOF
43070 # First, check the format of the line:
43071 cat >"\$tmp/defines.sed" <<\\CEOF
43072 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43073 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43077 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43079 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43080 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43081 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43082 grep . conftest.tail >/dev/null || break
43083 rm -f conftest.defines
43084 mv conftest.tail conftest.defines
43086 rm -f conftest.defines conftest.tail
43088 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43089 cat >>$CONFIG_STATUS <<\_ACEOF
43090 if test x"$ac_file" != x-; then
43091 echo "/* $configure_input */" >"$tmp/config.h"
43092 cat "$ac_result" >>"$tmp/config.h"
43093 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43094 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43095 echo "$as_me: $ac_file is unchanged" >&6;}
43098 mv "$tmp/config.h" $ac_file
43101 echo "/* $configure_input */"
43107 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43108 echo "$as_me: executing $ac_file commands" >&6;}
43113 case $ac_file$ac_mode in
43116 # See if we are running on zsh, and set the options which allow our
43117 # commands through without removal of \ escapes.
43118 if test -n "${ZSH_VERSION+set}" ; then
43119 setopt NO_GLOB_SUBST
43122 cfgfile="${ofile}T"
43123 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43126 cat <<_LT_EOF >> "$cfgfile"
43129 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43130 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43131 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43132 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43134 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43135 # 2006, 2007, 2008 Free Software Foundation, Inc.
43136 # Written by Gordon Matzigkeit, 1996
43138 # This file is part of GNU Libtool.
43140 # GNU Libtool is free software; you can redistribute it and/or
43141 # modify it under the terms of the GNU General Public License as
43142 # published by the Free Software Foundation; either version 2 of
43143 # the License, or (at your option) any later version.
43145 # As a special exception to the GNU General Public License,
43146 # if you distribute this file as part of a program or library that
43147 # is built using GNU Libtool, you may include this file under the
43148 # same distribution terms that you use for the rest of that program.
43150 # GNU Libtool is distributed in the hope that it will be useful,
43151 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43152 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43153 # GNU General Public License for more details.
43155 # You should have received a copy of the GNU General Public License
43156 # along with GNU Libtool; see the file COPYING. If not, a copy
43157 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43158 # obtained by writing to the Free Software Foundation, Inc.,
43159 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43162 # The names of the tagged configurations supported by this script.
43163 available_tags="CXX "
43165 # ### BEGIN LIBTOOL CONFIG
43167 # Which release of libtool.m4 was used?
43168 macro_version=$macro_version
43169 macro_revision=$macro_revision
43171 # Whether or not to build shared libraries.
43172 build_libtool_libs=$enable_shared
43174 # Whether or not to build static libraries.
43175 build_old_libs=$enable_static
43177 # What type of objects to build.
43180 # Whether or not to optimize for fast installation.
43181 fast_install=$enable_fast_install
43184 host_alias=$host_alias
43188 # The build system.
43189 build_alias=$build_alias
43193 # A sed program that does not truncate output.
43196 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43197 Xsed="\$SED -e 1s/^X//"
43199 # A grep program that handles long lines.
43205 # A literal string matcher.
43208 # A BSD- or MS-compatible name lister.
43211 # Whether we need soft or hard links.
43214 # What is the maximum length of a command?
43215 max_cmd_len=$max_cmd_len
43217 # Object file suffix (normally "o").
43220 # Executable file suffix (normally "").
43223 # whether the shell understands "unset".
43226 # turn spaces into newlines.
43229 # turn newlines into spaces.
43232 # How to create reloadable object files.
43233 reload_flag=$lt_reload_flag
43234 reload_cmds=$lt_reload_cmds
43236 # An object symbol dumper.
43237 OBJDUMP=$lt_OBJDUMP
43239 # Method to check whether dependent libraries are shared objects.
43240 deplibs_check_method=$lt_deplibs_check_method
43242 # Command to use when deplibs_check_method == "file_magic".
43243 file_magic_cmd=$lt_file_magic_cmd
43247 AR_FLAGS=$lt_AR_FLAGS
43249 # A symbol stripping program.
43252 # Commands used to install an old-style archive.
43254 old_postinstall_cmds=$lt_old_postinstall_cmds
43255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43260 # LTCC compiler flags.
43261 LTCFLAGS=$lt_CFLAGS
43263 # Take the output of nm and produce a listing of raw symbols and C names.
43264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43266 # Transform the output of nm in a proper C declaration.
43267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43269 # Transform the output of nm in a C name address pair.
43270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43272 # Transform the output of nm in a C name address pair when lib prefix is needed.
43273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43275 # The name of the directory that contains temporary libtool files.
43278 # Shell to use when invoking shell scripts.
43281 # An echo program that does not interpret backslashes.
43284 # Used to examine libraries when file_magic_cmd begins with "file".
43285 MAGIC_CMD=$MAGIC_CMD
43287 # Must we lock files when doing compilation?
43288 need_locks=$lt_need_locks
43290 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43291 DSYMUTIL=$lt_DSYMUTIL
43293 # Tool to change global to local symbols on Mac OS X.
43296 # Tool to manipulate fat objects and archives on Mac OS X.
43299 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43302 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43303 OTOOL64=$lt_OTOOL64
43305 # Old archive suffix (normally "a").
43308 # Shared library suffix (normally ".so").
43309 shrext_cmds=$lt_shrext_cmds
43311 # The commands to extract the exported symbol list from a shared archive.
43312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43314 # Variables whose values should be saved in libtool wrapper scripts and
43315 # restored at link time.
43316 variables_saved_for_relink=$lt_variables_saved_for_relink
43318 # Do we need the "lib" prefix for modules?
43319 need_lib_prefix=$need_lib_prefix
43321 # Do we need a version for libraries?
43322 need_version=$need_version
43324 # Library versioning type.
43325 version_type=$version_type
43327 # Shared library runtime path variable.
43328 runpath_var=$runpath_var
43330 # Shared library path variable.
43331 shlibpath_var=$shlibpath_var
43333 # Is shlibpath searched before the hard-coded library search path?
43334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43336 # Format of library name prefix.
43337 libname_spec=$lt_libname_spec
43339 # List of archive names. First name is the real one, the rest are links.
43340 # The last name is the one that the linker finds with -lNAME
43341 library_names_spec=$lt_library_names_spec
43343 # The coded name of the library, if different from the real name.
43344 soname_spec=$lt_soname_spec
43346 # Command to use after installation of a shared archive.
43347 postinstall_cmds=$lt_postinstall_cmds
43349 # Command to use after uninstallation of a shared archive.
43350 postuninstall_cmds=$lt_postuninstall_cmds
43352 # Commands used to finish a libtool library installation in a directory.
43353 finish_cmds=$lt_finish_cmds
43355 # As "finish_cmds", except a single script fragment to be evaled but
43357 finish_eval=$lt_finish_eval
43359 # Whether we should hardcode library paths into libraries.
43360 hardcode_into_libs=$hardcode_into_libs
43362 # Compile-time system search path for libraries.
43363 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43365 # Run-time system search path for libraries.
43366 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43368 # Whether dlopen is supported.
43369 dlopen_support=$enable_dlopen
43371 # Whether dlopen of programs is supported.
43372 dlopen_self=$enable_dlopen_self
43374 # Whether dlopen of statically linked programs is supported.
43375 dlopen_self_static=$enable_dlopen_self_static
43377 # Commands to strip libraries.
43378 old_striplib=$lt_old_striplib
43379 striplib=$lt_striplib
43382 # The linker used to build libraries.
43385 # Commands used to build an old-style archive.
43386 old_archive_cmds=$lt_old_archive_cmds
43388 # A language specific compiler.
43391 # Is the compiler the GNU compiler?
43394 # Compiler flag to turn off builtin functions.
43395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43397 # How to pass a linker flag through the compiler.
43398 wl=$lt_lt_prog_compiler_wl
43400 # Additional compiler flags for building library objects.
43401 pic_flag=$lt_lt_prog_compiler_pic
43403 # Compiler flag to prevent dynamic linking.
43404 link_static_flag=$lt_lt_prog_compiler_static
43406 # Does compiler simultaneously support -c and -o options?
43407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43409 # Whether or not to add -lc for building shared libraries.
43410 build_libtool_need_lc=$archive_cmds_need_lc
43412 # Whether or not to disallow shared libs when runtime libs are static.
43413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43415 # Compiler flag to allow reflexive dlopens.
43416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43418 # Compiler flag to generate shared objects directly from archives.
43419 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43421 # Whether the compiler copes with passing no objects directly.
43422 compiler_needs_object=$lt_compiler_needs_object
43424 # Create an old-style archive from a shared archive.
43425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43427 # Create a temporary old-style archive to link instead of a shared archive.
43428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43430 # Commands used to build a shared archive.
43431 archive_cmds=$lt_archive_cmds
43432 archive_expsym_cmds=$lt_archive_expsym_cmds
43434 # Commands used to build a loadable module if different from building
43435 # a shared archive.
43436 module_cmds=$lt_module_cmds
43437 module_expsym_cmds=$lt_module_expsym_cmds
43439 # Whether we are building with GNU ld or not.
43440 with_gnu_ld=$lt_with_gnu_ld
43442 # Flag that allows shared libraries with undefined symbols to be built.
43443 allow_undefined_flag=$lt_allow_undefined_flag
43445 # Flag that enforces no undefined symbols.
43446 no_undefined_flag=$lt_no_undefined_flag
43448 # Flag to hardcode \$libdir into a binary during linking.
43449 # This must work even if \$libdir does not exist
43450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43452 # If ld is used when linking, flag to hardcode \$libdir into a binary
43453 # during linking. This must work even if \$libdir does not exist.
43454 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43456 # Whether we need a single "-rpath" flag with a separated argument.
43457 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43460 # DIR into the resulting binary.
43461 hardcode_direct=$hardcode_direct
43463 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43464 # DIR into the resulting binary and the resulting library dependency is
43465 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43466 # library is relocated.
43467 hardcode_direct_absolute=$hardcode_direct_absolute
43469 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43470 # into the resulting binary.
43471 hardcode_minus_L=$hardcode_minus_L
43473 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43474 # into the resulting binary.
43475 hardcode_shlibpath_var=$hardcode_shlibpath_var
43477 # Set to "yes" if building a shared library automatically hardcodes DIR
43478 # into the library and all subsequent libraries and executables linked
43480 hardcode_automatic=$hardcode_automatic
43482 # Set to yes if linker adds runtime paths of dependent libraries
43483 # to runtime path list.
43484 inherit_rpath=$inherit_rpath
43486 # Whether libtool must link a program against all its dependency libraries.
43487 link_all_deplibs=$link_all_deplibs
43489 # Fix the shell variable \$srcfile for the compiler.
43490 fix_srcfile_path=$lt_fix_srcfile_path
43492 # Set to "yes" if exported symbols are required.
43493 always_export_symbols=$always_export_symbols
43495 # The commands to list exported symbols.
43496 export_symbols_cmds=$lt_export_symbols_cmds
43498 # Symbols that should not be listed in the preloaded symbols.
43499 exclude_expsyms=$lt_exclude_expsyms
43501 # Symbols that must always be exported.
43502 include_expsyms=$lt_include_expsyms
43504 # Commands necessary for linking programs (against libraries) with templates.
43505 prelink_cmds=$lt_prelink_cmds
43507 # Specify filename containing input files.
43508 file_list_spec=$lt_file_list_spec
43510 # How to hardcode a shared library path into an executable.
43511 hardcode_action=$hardcode_action
43513 # The directories searched by this compiler when creating a shared library.
43514 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43516 # Dependencies to place before and after the objects being linked to
43517 # create a shared library.
43518 predep_objects=$lt_predep_objects
43519 postdep_objects=$lt_postdep_objects
43520 predeps=$lt_predeps
43521 postdeps=$lt_postdeps
43523 # The library search path used internally by the compiler when linking
43524 # a shared library.
43525 compiler_lib_search_path=$lt_compiler_lib_search_path
43527 # ### END LIBTOOL CONFIG
43533 cat <<\_LT_EOF >> "$cfgfile"
43534 # AIX sometimes has problems with the GCC collect2 program. For some
43535 # reason, if we set the COLLECT_NAMES environment variable, the problems
43536 # vanish in a puff of smoke.
43537 if test "X${COLLECT_NAMES+set}" != Xset; then
43539 export COLLECT_NAMES
43546 ltmain="$ac_aux_dir/ltmain.sh"
43549 # We use sed instead of cat because bash on DJGPP gets confused if
43550 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43551 # text mode, it properly converts lines to CR/LF. This bash problem
43552 # is reportedly fixed, but why not run on old versions too?
43553 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43554 || (rm -f "$cfgfile"; exit 1)
43558 cat << \_LT_EOF >> "$cfgfile"
43560 # func_dirname file append nondir_replacement
43561 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43562 # otherwise set result to NONDIR_REPLACEMENT.
43566 */*) func_dirname_result="${1%/*}${2}" ;;
43567 * ) func_dirname_result="${3}" ;;
43571 # func_basename file
43574 func_basename_result="${1##*/}"
43577 # func_dirname_and_basename file append nondir_replacement
43578 # perform func_basename and func_dirname in a single function
43580 # dirname: Compute the dirname of FILE. If nonempty,
43581 # add APPEND to the result, otherwise set result
43582 # to NONDIR_REPLACEMENT.
43583 # value returned in "$func_dirname_result"
43584 # basename: Compute filename of FILE.
43585 # value retuned in "$func_basename_result"
43586 # Implementation must be kept synchronized with func_dirname
43587 # and func_basename. For efficiency, we do not delegate to
43588 # those functions but instead duplicate the functionality here.
43589 func_dirname_and_basename ()
43592 */*) func_dirname_result="${1%/*}${2}" ;;
43593 * ) func_dirname_result="${3}" ;;
43595 func_basename_result="${1##*/}"
43598 # func_stripname prefix suffix name
43599 # strip PREFIX and SUFFIX off of NAME.
43600 # PREFIX and SUFFIX must not contain globbing or regex special
43601 # characters, hashes, percent signs, but SUFFIX may contain a leading
43602 # dot (in which case that matches only a dot).
43605 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43606 # positional parameters, so assign one to ordinary parameter first.
43607 func_stripname_result=${3}
43608 func_stripname_result=${func_stripname_result#"${1}"}
43609 func_stripname_result=${func_stripname_result%"${2}"}
43615 func_opt_split_opt=${1%%=*}
43616 func_opt_split_arg=${1#*=}
43623 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43624 *) func_lo2o_result=${1} ;;
43628 # func_xform libobj-or-source
43631 func_xform_result=${1%.*}.lo
43634 # func_arith arithmetic-term...
43637 func_arith_result=$(( $* ))
43641 # STRING may not start with a hyphen.
43644 func_len_result=${#1}
43649 *) # Bourne compatible functions.
43650 cat << \_LT_EOF >> "$cfgfile"
43652 # func_dirname file append nondir_replacement
43653 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43654 # otherwise set result to NONDIR_REPLACEMENT.
43657 # Extract subdirectory from the argument.
43658 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43659 if test "X$func_dirname_result" = "X${1}"; then
43660 func_dirname_result="${3}"
43662 func_dirname_result="$func_dirname_result${2}"
43666 # func_basename file
43669 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43673 # func_stripname prefix suffix name
43674 # strip PREFIX and SUFFIX off of NAME.
43675 # PREFIX and SUFFIX must not contain globbing or regex special
43676 # characters, hashes, percent signs, but SUFFIX may contain a leading
43677 # dot (in which case that matches only a dot).
43678 # func_strip_suffix prefix name
43682 .*) func_stripname_result=`$ECHO "X${3}" \
43683 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43684 *) func_stripname_result=`$ECHO "X${3}" \
43685 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43690 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43691 my_sed_long_arg='1s/^-[^=]*=//'
43696 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43697 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43703 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43706 # func_xform libobj-or-source
43709 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43712 # func_arith arithmetic-term...
43715 func_arith_result=`expr "$@"`
43719 # STRING may not start with a hyphen.
43722 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43728 case $lt_shell_append in
43730 cat << \_LT_EOF >> "$cfgfile"
43732 # func_append var value
43733 # Append VALUE to the end of shell variable VAR.
43741 cat << \_LT_EOF >> "$cfgfile"
43743 # func_append var value
43744 # Append VALUE to the end of shell variable VAR.
43755 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43756 || (rm -f "$cfgfile"; exit 1)
43758 mv -f "$cfgfile" "$ofile" ||
43759 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43763 cat <<_LT_EOF >> "$ofile"
43765 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43767 # The linker used to build libraries.
43770 # Commands used to build an old-style archive.
43771 old_archive_cmds=$lt_old_archive_cmds_CXX
43773 # A language specific compiler.
43774 CC=$lt_compiler_CXX
43776 # Is the compiler the GNU compiler?
43779 # Compiler flag to turn off builtin functions.
43780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43782 # How to pass a linker flag through the compiler.
43783 wl=$lt_lt_prog_compiler_wl_CXX
43785 # Additional compiler flags for building library objects.
43786 pic_flag=$lt_lt_prog_compiler_pic_CXX
43788 # Compiler flag to prevent dynamic linking.
43789 link_static_flag=$lt_lt_prog_compiler_static_CXX
43791 # Does compiler simultaneously support -c and -o options?
43792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43794 # Whether or not to add -lc for building shared libraries.
43795 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43797 # Whether or not to disallow shared libs when runtime libs are static.
43798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43800 # Compiler flag to allow reflexive dlopens.
43801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43803 # Compiler flag to generate shared objects directly from archives.
43804 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43806 # Whether the compiler copes with passing no objects directly.
43807 compiler_needs_object=$lt_compiler_needs_object_CXX
43809 # Create an old-style archive from a shared archive.
43810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43812 # Create a temporary old-style archive to link instead of a shared archive.
43813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43815 # Commands used to build a shared archive.
43816 archive_cmds=$lt_archive_cmds_CXX
43817 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43819 # Commands used to build a loadable module if different from building
43820 # a shared archive.
43821 module_cmds=$lt_module_cmds_CXX
43822 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43824 # Whether we are building with GNU ld or not.
43825 with_gnu_ld=$lt_with_gnu_ld_CXX
43827 # Flag that allows shared libraries with undefined symbols to be built.
43828 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43830 # Flag that enforces no undefined symbols.
43831 no_undefined_flag=$lt_no_undefined_flag_CXX
43833 # Flag to hardcode \$libdir into a binary during linking.
43834 # This must work even if \$libdir does not exist
43835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43837 # If ld is used when linking, flag to hardcode \$libdir into a binary
43838 # during linking. This must work even if \$libdir does not exist.
43839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43841 # Whether we need a single "-rpath" flag with a separated argument.
43842 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43845 # DIR into the resulting binary.
43846 hardcode_direct=$hardcode_direct_CXX
43848 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43849 # DIR into the resulting binary and the resulting library dependency is
43850 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43851 # library is relocated.
43852 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43854 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43855 # into the resulting binary.
43856 hardcode_minus_L=$hardcode_minus_L_CXX
43858 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43859 # into the resulting binary.
43860 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43862 # Set to "yes" if building a shared library automatically hardcodes DIR
43863 # into the library and all subsequent libraries and executables linked
43865 hardcode_automatic=$hardcode_automatic_CXX
43867 # Set to yes if linker adds runtime paths of dependent libraries
43868 # to runtime path list.
43869 inherit_rpath=$inherit_rpath_CXX
43871 # Whether libtool must link a program against all its dependency libraries.
43872 link_all_deplibs=$link_all_deplibs_CXX
43874 # Fix the shell variable \$srcfile for the compiler.
43875 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43877 # Set to "yes" if exported symbols are required.
43878 always_export_symbols=$always_export_symbols_CXX
43880 # The commands to list exported symbols.
43881 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43883 # Symbols that should not be listed in the preloaded symbols.
43884 exclude_expsyms=$lt_exclude_expsyms_CXX
43886 # Symbols that must always be exported.
43887 include_expsyms=$lt_include_expsyms_CXX
43889 # Commands necessary for linking programs (against libraries) with templates.
43890 prelink_cmds=$lt_prelink_cmds_CXX
43892 # Specify filename containing input files.
43893 file_list_spec=$lt_file_list_spec_CXX
43895 # How to hardcode a shared library path into an executable.
43896 hardcode_action=$hardcode_action_CXX
43898 # The directories searched by this compiler when creating a shared library.
43899 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43901 # Dependencies to place before and after the objects being linked to
43902 # create a shared library.
43903 predep_objects=$lt_predep_objects_CXX
43904 postdep_objects=$lt_postdep_objects_CXX
43905 predeps=$lt_predeps_CXX
43906 postdeps=$lt_postdeps_CXX
43908 # The library search path used internally by the compiler when linking
43909 # a shared library.
43910 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43912 # ### END LIBTOOL TAG CONFIG: CXX
43917 for ac_file in $CONFIG_FILES; do
43918 # Support "outfile[:infile[:infile...]]"
43920 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43922 # PO directories have a Makefile.in generated from Makefile.in.in.
43923 case "$ac_file" in */Makefile.in)
43924 # Adjust a relative srcdir.
43925 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43926 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43927 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43928 # In autoconf-2.13 it is called $ac_given_srcdir.
43929 # In autoconf-2.50 it is called $srcdir.
43930 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43931 case "$ac_given_srcdir" in
43932 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43933 /*) top_srcdir="$ac_given_srcdir" ;;
43934 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
43936 # Treat a directory as a PO directory if and only if it has a
43937 # POTFILES.in file. This allows packages to have multiple PO
43938 # directories under different names or in different locations.
43939 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43940 rm -f "$ac_dir/POTFILES"
43941 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43942 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43943 POMAKEFILEDEPS="POTFILES.in"
43944 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43945 # on $ac_dir but don't depend on user-specified configuration
43947 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43948 # The LINGUAS file contains the set of available languages.
43949 if test -n "$OBSOLETE_ALL_LINGUAS"; then
43950 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43952 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43953 # Hide the ALL_LINGUAS assigment from automake.
43954 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43955 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43957 # The set of available languages was given in configure.in.
43958 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43961 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43962 # Compute UPDATEPOFILES
43963 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43964 # Compute DUMMYPOFILES
43965 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43967 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43968 case "$ac_given_srcdir" in
43970 *) srcdirpre='$(srcdir)/' ;;
43976 for lang in $ALL_LINGUAS; do
43977 POFILES="$POFILES $srcdirpre$lang.po"
43978 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43979 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43980 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43982 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43983 # environment variable.
43985 if test -n "$ALL_LINGUAS"; then
43986 for presentlang in $ALL_LINGUAS; do
43988 if test "%UNSET%" != "$LINGUAS"; then
43989 desiredlanguages="$LINGUAS"
43991 desiredlanguages="$ALL_LINGUAS"
43993 for desiredlang in $desiredlanguages; do
43994 # Use the presentlang catalog if desiredlang is
43995 # a. equal to presentlang, or
43996 # b. a variant of presentlang (because in this case,
43997 # presentlang can be used as a fallback for messages
43998 # which are not translated in the desiredlang catalog).
43999 case "$desiredlang" in
44000 "$presentlang"*) useit=yes;;
44003 if test $useit = yes; then
44004 INST_LINGUAS="$INST_LINGUAS $presentlang"
44009 if test -n "$INST_LINGUAS"; then
44010 for lang in $INST_LINGUAS; do
44011 CATALOGS="$CATALOGS $lang.gmo"
44014 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44015 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"
44016 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44017 if test -f "$f"; then
44019 *.orig | *.bak | *~) ;;
44020 *) cat "$f" >> "$ac_dir/Makefile" ;;
44035 { (exit 0); exit 0; }
44037 chmod +x $CONFIG_STATUS
44038 ac_clean_files=$ac_clean_files_save
44041 # configure is writing to config.log, and then calls config.status.
44042 # config.status does its own redirection, appending to config.log.
44043 # Unfortunately, on DOS this fails, as config.log is still kept open
44044 # by configure, so config.status won't be able to write to it; its
44045 # output is simply discarded. So we exec the FD to /dev/null,
44046 # effectively closing config.log, so it can be properly (re)opened and
44047 # appended to by config.status. When coming back to configure, we
44048 # need to make the FD available again.
44049 if test "$no_create" != yes; then
44051 ac_config_status_args=
44052 test "$silent" = yes &&
44053 ac_config_status_args="$ac_config_status_args --quiet"
44055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44058 # would make configure fail if this is the last instruction.
44059 $ac_cs_success || { (exit 1); exit 1; }
44063 if test "${support_bat}" = "yes" ; then
44064 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44065 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44071 if test "x$QMAKEQT4" != "xnone"; then
44076 chmod 755 install_conf_file build-depkgs-qt-console
44077 echo "Creating bat Makefile"
44083 if test X"$GCC" = "Xyes" ; then
44084 echo "Doing make of dependencies"
44085 ${MAKE:-make} depend
44089 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44090 chmod 755 dvd-handler dvd-simulator
44091 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44095 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44096 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44100 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44101 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44103 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44104 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44106 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44107 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44109 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44110 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44112 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44113 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44115 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44116 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44118 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44119 chmod 755 $c/sqlite
44122 chmod 755 src/win32/build-depkgs-mingw32
44124 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44125 largefile_support="yes"
44128 if test X"$GCC" = "Xyes" ; then
44129 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44130 if test "x${CCVERSION}" = "x" ; then
44131 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44133 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44134 if test x"${CXXVERSION}" = x ; then
44135 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44139 if test "x${db_type}" = "xInternal" ; then
44142 echo "You have not specified either --enable-client-only or one of the"
44143 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44144 echo " This is not permitted. Please reconfigure."
44146 echo "Aborting the configuration ..."
44153 Configuration on `date`:
44155 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44156 Bacula version: ${BACULA} ${VERSION} (${DATE})
44157 Source code location: ${srcdir}
44158 Install binaries: ${sbindir}
44159 Install libraries: ${libdir}
44160 Install config files: ${sysconfdir}
44161 Scripts directory: ${scriptdir}
44162 Archive directory: ${archivedir}
44163 Working directory: ${working_dir}
44164 PID directory: ${piddir}
44165 Subsys directory: ${subsysdir}
44166 Man directory: ${mandir}
44167 Data directory: ${datarootdir}
44168 C Compiler: ${CC} ${CCVERSION}
44169 C++ Compiler: ${CXX} ${CXXVERSION}
44170 Compiler flags: ${WCFLAGS} ${CFLAGS}
44171 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44173 Statically Linked Tools: ${support_static_tools}
44174 Statically Linked FD: ${support_static_fd}
44175 Statically Linked SD: ${support_static_sd}
44176 Statically Linked DIR: ${support_static_dir}
44177 Statically Linked CONS: ${support_static_cons}
44178 Database type: ${db_type}
44179 Database port: ${db_port}
44180 Database lib: ${DB_LIBS}
44181 Database name: ${db_name}
44182 Database user: ${db_user}
44184 Job Output Email: ${job_email}
44185 Traceback Email: ${dump_email}
44186 SMTP Host Address: ${smtp_host}
44188 Director Port: ${dir_port}
44189 File daemon Port: ${fd_port}
44190 Storage daemon Port: ${sd_port}
44192 Director User: ${dir_user}
44193 Director Group: ${dir_group}
44194 Storage Daemon User: ${sd_user}
44195 Storage DaemonGroup: ${sd_group}
44196 File Daemon User: ${fd_user}
44197 File Daemon Group: ${fd_group}
44199 SQL binaries Directory ${SQL_BINDIR}
44201 Large file support: $largefile_support
44202 Bacula conio support: ${got_conio} ${CONS_LIBS}
44203 readline support: ${got_readline} ${PRTREADLINE_SRC}
44204 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44205 TLS support: ${support_tls}
44206 Encryption support: ${support_crypto}
44207 ZLIB support: ${have_zlib}
44208 enable-smartalloc: ${support_smartalloc}
44209 bat support: ${support_bat} ${QWT_LDFLAGS}
44210 enable-gnome: ${support_gnome} ${gnome_version}
44211 enable-bwx-console: ${support_wx_console} ${wx_version}
44212 enable-tray-monitor: ${support_tray_monitor}
44213 client-only: ${build_client_only}
44214 build-dird: ${build_dird}
44215 build-stored: ${build_stored}
44216 ACL support: ${have_acl}
44217 Python support: ${support_python} ${PYTHON_LIBS}
44218 Batch insert enabled: ${support_batch_insert}