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
888 INCLUDE_INSTALL_TARGET
889 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-shared[=PKGS] build shared libraries [default=yes]
1639 --enable-static[=PKGS] build static libraries [default=no]
1640 --enable-fast-install[=PKGS]
1641 optimize for fast installation [default=yes]
1642 --disable-libtool-lock avoid locking (might break parallel builds)
1643 --enable-libtool enable building using GNU libtool [default=yes]
1644 --disable-nls do not use Native Language Support
1645 --disable-rpath do not hardcode runtime library paths
1646 --enable-gnome enable build of bgnome-console GUI [default=no]
1647 --enable-bat enable build of bat Qt4 GUI [default=no]
1648 --enable-bwx-console enable build of wxWidgets console [default=no]
1649 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1651 --enable-smartalloc enable smartalloc debugging support [default=no]
1652 --enable-static-tools enable static tape tools [default=no]
1653 --enable-static-fd enable static File daemon [default=no]
1654 --enable-static-sd enable static Storage daemon [default=no]
1655 --enable-static-dir enable static Director [default=no]
1656 --enable-static-cons enable static Console [default=no]
1657 --enable-client-only build client (File daemon) only [default=no]
1658 --enable-build-dird enable building of dird (Director) [default=yes]
1659 --enable-build-stored enable building of stored (Storage daemon)
1661 --disable-conio disable conio support [default=no]
1662 --enable-ipv6 enable ipv6 support [default=yes]
1663 --disable-readline disable readline support [default=yes]
1664 --enable-batch-insert enable the DB batch insert code [default=no]
1665 --disable-largefile omit support for large files
1668 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1669 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1670 --with-pic try to use only PIC/non-PIC objects [default=use
1672 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1673 --with-gnu-ld assume the C compiler uses GNU ld default=no
1674 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1675 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1676 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1677 --without-libintl-prefix don't search for libintl in includedir and libdir
1678 --with-included-gettext use the GNU gettext library included here
1679 --with-qwt[=DIR] specify qwt library directory
1680 --with-readline[=DIR] specify readline library directory
1681 --with-python[=DIR] Include Python support. DIR is the Python base
1682 install directory, default is to search through a
1683 number of common places for the Python files.
1684 --with-tcp-wrappers[=DIR]
1685 enable tcpwrappers support
1686 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1687 --with-working-dir=PATH specify path of Bacula working directory
1688 --with-archivedir=PATH specify path of SD archive directory
1689 --with-scriptdir=PATH specify path of Bacula scripts directory
1690 --with-plugindir=PATH specify path of Bacula plugins directory
1691 --with-dump-email=EMAIL dump email address
1692 --with-job-email=EMAIL job output email address
1693 --with-smtp-host=HOST SMTP mail host address
1694 --with-pid-dir=PATH specify location of Bacula pid files
1695 --with-subsys-dir=PATH specify location of Bacula subsys file
1696 --with-baseport=PORT specify base port address for daemons
1697 --with-dir-password=PASSWORD
1698 specify Director's password
1699 --with-fd-password=PASSWORD
1700 specify Client's password
1701 --with-sd-password=PASSWORD
1702 specify Storage daemon's password
1703 --with-mon-dir-password=PASSWORD
1704 specify Director's password used by the monitor
1705 --with-mon-fd-password=PASSWORD
1706 specify Client's password used by the monitor
1707 --with-mon-sd-password=PASSWORD
1708 specify Storage daemon's password used by the
1710 --with-db-name=DBNAME specify database name [default=bacula]
1711 --with-db-user=UNAME specify database user [default=bacula]
1712 --with-db-password=PWD specify database password [default=*none*]
1713 --with-db-port=DBPORT specify a database port [default=null]
1714 --with-dir-user=USER specify user for Director daemon
1715 --with-dir-group=GROUP specify group for Director daemon
1716 --with-sd-user=USER specify user for Storage daemon
1717 --with-sd-group=GROUP specify group for Storage daemon
1718 --with-fd-user=USER specify user for File daemon
1719 --with-fd-group=GROUP specify group for File daemon
1720 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1721 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1722 base install directory, [default=/usr/local/pgsql]
1723 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1724 directory, default is to search through a number of
1725 common places for the MySQL files.
1726 --with-embedded-mysql[=DIR]
1727 Include MySQL support. DIR is the MySQL base install
1728 directory, default is to search through a number of
1729 common places for the MySQL files.
1730 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1731 install directory, default is to search through a
1732 number of common places for the SQLite3 files.
1733 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1734 install directory, default is to search through a
1735 number of common places for the SQLite files.
1736 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1737 directory, default is to search through a number of
1738 common places for the DBI files.
1739 --with-dbi-driver[=DRIVER]
1740 Suport for DBI driver. DRIVER is the one DBI driver
1741 like Mysql, Postgresql, others. Default is to not
1742 configure any driver.
1743 --with-x use the X Window System
1745 Some influential environment variables:
1746 CC C compiler command
1747 CFLAGS C compiler flags
1748 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1749 nonstandard directory <lib dir>
1750 LIBS libraries to pass to the linker, e.g. -l<library>
1751 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1752 you have headers in a nonstandard directory <include dir>
1753 CXX C++ compiler command
1754 CXXFLAGS C++ compiler flags
1756 WXCONFIG wx-config command. On some systems, you must set it to
1757 wx-config-2.6 to use wxWidgets 2.6.
1758 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1759 CXXCPP C++ preprocessor
1760 XMKMF Path to xmkmf, Makefile generator for X Window System
1762 Use these variables to override the choices made by `configure' or to help
1763 it to find libraries and programs with nonstandard names/locations.
1769 if test "$ac_init_help" = "recursive"; then
1770 # If there are subdirs, report their specific --help.
1771 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1772 test -d "$ac_dir" || continue
1776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1779 # A ".." for each directory in $ac_dir_suffix.
1780 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1781 case $ac_top_builddir_sub in
1782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1786 ac_abs_top_builddir=$ac_pwd
1787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir=$ac_top_build_prefix
1792 .) # We are building in place.
1794 ac_top_srcdir=$ac_top_builddir_sub
1795 ac_abs_top_srcdir=$ac_pwd ;;
1796 [\\/]* | ?:[\\/]* ) # Absolute name.
1797 ac_srcdir=$srcdir$ac_dir_suffix;
1798 ac_top_srcdir=$srcdir
1799 ac_abs_top_srcdir=$srcdir ;;
1801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802 ac_top_srcdir=$ac_top_build_prefix$srcdir
1803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807 cd "$ac_dir" || { ac_status=$?; continue; }
1808 # Check for guested configure.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1816 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 cd "$ac_pwd" || { ac_status=$?; break; }
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1826 generated by GNU Autoconf 2.61
1828 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1829 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1830 This configure script is free software; the Free Software Foundation
1831 gives unlimited permission to copy, distribute and modify it.
1835 cat >config.log <<_ACEOF
1836 This file contains any messages produced by compilers while
1837 running configure, to aid debugging if configure makes a mistake.
1839 It was created by $as_me, which was
1840 generated by GNU Autoconf 2.61. Invocation command line was
1852 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1861 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1862 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1863 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1865 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1866 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1867 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir=.
1876 echo "PATH: $as_dir"
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1900 ac_must_keep_next=false
1906 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908 | -silent | --silent | --silen | --sile | --sil)
1911 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1916 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1917 if test $ac_must_keep_next = true; then
1918 ac_must_keep_next=false # Got value, back to normal.
1921 *=* | --config-cache | -C | -disable-* | --disable-* \
1922 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924 | -with-* | --with-* | -without-* | --without-* | --x)
1925 case "$ac_configure_args0 " in
1926 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1929 -* ) ac_must_keep_next=true ;;
1932 ac_configure_args="$ac_configure_args '$ac_arg'"
1937 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1938 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log. We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946 # Save into config.log some information that might help in debugging.
1951 ## ---------------- ##
1952 ## Cache variables. ##
1953 ## ---------------- ##
1956 # The following way of writing the cache mishandles newlines in values,
1958 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959 eval ac_val=\$$ac_var
1963 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1964 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1967 _ | IFS | as_nl) ;; #(
1968 *) $as_unset $ac_var ;;
1973 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1974 *${as_nl}ac_space=\ *)
1976 "s/'\''/'\''\\\\'\'''\''/g;
1977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1988 ## ----------------- ##
1989 ## Output variables. ##
1990 ## ----------------- ##
1993 for ac_var in $ac_subst_vars
1995 eval ac_val=\$$ac_var
1997 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 echo "$ac_var='\''$ac_val'\''"
2003 if test -n "$ac_subst_files"; then
2005 ## ------------------- ##
2006 ## File substitutions. ##
2007 ## ------------------- ##
2010 for ac_var in $ac_subst_files
2012 eval ac_val=\$$ac_var
2014 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016 echo "$ac_var='\''$ac_val'\''"
2021 if test -s confdefs.h; then
2031 test "$ac_signal" != 0 &&
2032 echo "$as_me: caught signal $ac_signal"
2033 echo "$as_me: exit $exit_status"
2035 rm -f core *.core core.conftest.* &&
2036 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2039 for ac_signal in 1 2 13 15; do
2040 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2044 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2045 rm -f -r conftest* confdefs.h
2047 # Predefined preprocessor variables.
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_NAME "$PACKAGE_NAME"
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_STRING "$PACKAGE_STRING"
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074 # Let the site file select an alternate cache file if it wants to.
2075 # Prefer explicitly selected file to automatically selected ones.
2076 if test -n "$CONFIG_SITE"; then
2077 set x "$CONFIG_SITE"
2078 elif test "x$prefix" != xNONE; then
2079 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2081 set x "$ac_default_prefix/share/config.site" \
2082 "$ac_default_prefix/etc/config.site"
2087 if test -r "$ac_site_file"; then
2088 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2089 echo "$as_me: loading site script $ac_site_file" >&6;}
2090 sed 's/^/| /' "$ac_site_file" >&5
2095 if test -r "$cache_file"; then
2096 # Some versions of bash will fail to source /dev/null (special
2097 # files actually), so we avoid doing that.
2098 if test -f "$cache_file"; then
2099 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2100 echo "$as_me: loading cache $cache_file" >&6;}
2102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103 *) . "./$cache_file";;
2107 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2108 echo "$as_me: creating cache $cache_file" >&6;}
2112 # Check that the precious variables saved in the cache have kept the same
2114 ac_cache_corrupted=false
2115 for ac_var in $ac_precious_vars; do
2116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117 eval ac_new_set=\$ac_env_${ac_var}_set
2118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119 eval ac_new_val=\$ac_env_${ac_var}_value
2120 case $ac_old_set,$ac_new_set in
2122 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2124 ac_cache_corrupted=: ;;
2126 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2127 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2128 ac_cache_corrupted=: ;;
2131 if test "x$ac_old_val" != "x$ac_new_val"; then
2132 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2133 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2134 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2135 echo "$as_me: former value: $ac_old_val" >&2;}
2136 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2137 echo "$as_me: current value: $ac_new_val" >&2;}
2138 ac_cache_corrupted=:
2141 # Pass precious variables to config.status.
2142 if test "$ac_new_set" = set; then
2144 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 *) ac_arg=$ac_var=$ac_new_val ;;
2147 case " $ac_configure_args " in
2148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2149 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2153 if $ac_cache_corrupted; then
2154 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2155 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2156 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2157 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2158 { (exit 1); exit 1; }; }
2178 ac_cpp='$CPP $CPPFLAGS'
2179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2192 if test -f "$ac_dir/install-sh"; then
2194 ac_install_sh="$ac_aux_dir/install-sh -c"
2196 elif test -f "$ac_dir/install.sh"; then
2198 ac_install_sh="$ac_aux_dir/install.sh -c"
2200 elif test -f "$ac_dir/shtool"; then
2202 ac_install_sh="$ac_aux_dir/shtool install -c"
2206 if test -z "$ac_aux_dir"; then
2207 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2208 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2209 { (exit 1); exit 1; }; }
2212 # These three variables are undocumented and unsupported,
2213 # and are intended to be withdrawn in a future Autoconf release.
2214 # They can cause serious problems if a builder's source tree is in a directory
2215 # whose full name contains unusual characters.
2216 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2217 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2218 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2221 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=":"
2322 if test "x$BACULA" != x; then
2323 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2325 BACULA=${BACULA-Bacula}
2326 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2327 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2329 echo "configuring for ${BACULA} $VERSION ($DATE)"
2333 ac_cpp='$CPP $CPPFLAGS'
2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 if test -n "$ac_tool_prefix"; then
2338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 if test -n "$CC"; then
2367 { echo "$as_me:$LINENO: result: $CC" >&5
2368 echo "${ECHO_T}$CC" >&6; }
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2376 if test -z "$ac_cv_prog_CC"; then
2378 # Extract the first word of "gcc", so it can be a program name with args.
2379 set dummy gcc; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_ac_ct_CC="gcc"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406 if test -n "$ac_ct_CC"; then
2407 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408 echo "${ECHO_T}$ac_ct_CC" >&6; }
2410 { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2414 if test "x$ac_ct_CC" = x; then
2417 case $cross_compiling:$ac_tool_warned in
2419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&5
2422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet. If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2425 ac_tool_warned=yes ;;
2433 if test -z "$CC"; then
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}cc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$CC"; then
2443 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_CC="${ac_tool_prefix}cc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 if test -n "$CC"; then
2464 { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2474 if test -z "$CC"; then
2475 # Extract the first word of "cc", so it can be a program name with args.
2476 set dummy cc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$CC"; then
2483 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2494 ac_prog_rejected=yes
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 if test $ac_prog_rejected = yes; then
2506 # We found a bogon in the path, so make sure we never use it.
2507 set dummy $ac_cv_prog_CC
2509 if test $# != 0; then
2510 # We chose a different compiler from the bogus one.
2511 # However, it has the same basename, so the bogon will be chosen
2512 # first if we set CC to just the basename; use the full file name.
2514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2520 if test -n "$CC"; then
2521 { echo "$as_me:$LINENO: result: $CC" >&5
2522 echo "${ECHO_T}$CC" >&6; }
2524 { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2530 if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 for ac_prog in cl.exe
2534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2571 test -n "$CC" && break
2574 if test -z "$CC"; then
2576 for ac_prog in cl.exe
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_ac_ct_CC="$ac_prog"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606 if test -n "$ac_ct_CC"; then
2607 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2608 echo "${ECHO_T}$ac_ct_CC" >&6; }
2610 { echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6; }
2615 test -n "$ac_ct_CC" && break
2618 if test "x$ac_ct_CC" = x; then
2621 case $cross_compiling:$ac_tool_warned in
2623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2638 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: no acceptable C compiler found in \$PATH
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2644 # Provide some information about the compiler.
2645 echo "$as_me:$LINENO: checking for C compiler version" >&5
2646 ac_compiler=`set X $ac_compile; echo $2`
2647 { (ac_try="$ac_compiler --version >&5"
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compiler --version >&5") 2>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }
2657 { (ac_try="$ac_compiler -v >&5"
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compiler -v >&5") 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667 { (ac_try="$ac_compiler -V >&5"
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler -V >&5") 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 ac_clean_files_save=$ac_clean_files
2694 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2695 # Try to create an executable without -o first, disregard a.out.
2696 # It will help us diagnose broken compilers, and finding out an intuition
2698 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2699 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2700 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2702 # List of possible output files, starting from the most likely.
2703 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2704 # only as a last resort. b.out is created by i960 compilers.
2705 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2707 # The IRIX 6 linker writes into existing files which may not be
2708 # executable, retaining their permissions. Remove them first so a
2709 # subsequent execution test works.
2711 for ac_file in $ac_files
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2715 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2720 if { (ac_try="$ac_link_default"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_link_default") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; then
2730 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2731 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2732 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2733 # so that the user can short-circuit this test for compilers unknown to
2735 for ac_file in $ac_files ''
2737 test -f "$ac_file" || continue
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2742 # We found the default executable, but exeext='' is most
2746 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2748 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2750 # We set ac_cv_exeext here because the later test for it is not
2751 # safe: cross compilers may not add the suffix if given an `-o'
2752 # argument, so we may need to know it at that point already.
2753 # Even if this section looks crufty: it has the advantage of
2760 test "$ac_cv_exeext" = no && ac_cv_exeext=
2766 { echo "$as_me:$LINENO: result: $ac_file" >&5
2767 echo "${ECHO_T}$ac_file" >&6; }
2768 if test -z "$ac_file"; then
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2772 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2773 See \`config.log' for more details." >&5
2774 echo "$as_me: error: C compiler cannot create executables
2775 See \`config.log' for more details." >&2;}
2776 { (exit 77); exit 77; }; }
2779 ac_exeext=$ac_cv_exeext
2781 # Check that the compiler produces executables we can run. If not, either
2782 # the compiler is broken, or we cross compile.
2783 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2784 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2785 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2786 # If not cross compiling, check that we can run a simple program.
2787 if test "$cross_compiling" != yes; then
2788 if { ac_try='./$ac_file'
2789 { (case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_try") 2>&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2800 if test "$cross_compiling" = maybe; then
2803 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2804 If you meant to cross compile, use \`--host'.
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
2813 { echo "$as_me:$LINENO: result: yes" >&5
2814 echo "${ECHO_T}yes" >&6; }
2816 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2817 ac_clean_files=$ac_clean_files_save
2818 # Check that the compiler produces executables we can run. If not, either
2819 # the compiler is broken, or we cross compile.
2820 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2821 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2822 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2823 echo "${ECHO_T}$cross_compiling" >&6; }
2825 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2826 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2827 if { (ac_try="$ac_link"
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_link") 2>&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; then
2837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2839 # work properly (i.e., refer to `conftest.exe'), while it won't with
2841 for ac_file in conftest.exe conftest conftest.*; do
2842 test -f "$ac_file" || continue
2844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2854 See \`config.log' for more details." >&2;}
2855 { (exit 1); exit 1; }; }
2858 rm -f conftest$ac_cv_exeext
2859 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2860 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2862 rm -f conftest.$ac_ext
2863 EXEEXT=$ac_cv_exeext
2865 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2866 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2867 if test "${ac_cv_objext+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 cat >conftest.$ac_ext <<_ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2885 rm -f conftest.o conftest.obj
2886 if { (ac_try="$ac_compile"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compile") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; then
2896 for ac_file in conftest.o conftest.obj conftest.*; do
2897 test -f "$ac_file" || continue;
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2900 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }
2915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2917 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2918 echo "${ECHO_T}$ac_cv_objext" >&6; }
2919 OBJEXT=$ac_cv_objext
2921 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2922 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2923 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 cat >conftest.$ac_ext <<_ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2944 rm -f conftest.$ac_objext
2945 if { (ac_try="$ac_compile"
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } && {
2958 test -z "$ac_c_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2973 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2975 GCC=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CFLAGS=${CFLAGS+set}
2977 ac_save_CFLAGS=$CFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2979 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cc_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 ac_save_c_werror_flag=$ac_c_werror_flag
2984 ac_c_werror_flag=yes
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } && {
3016 test -z "$ac_c_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest.$ac_objext; then
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3025 cat >conftest.$ac_ext <<_ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } && {
3054 test -z "$ac_c_werror_flag" ||
3055 test ! -s conftest.err
3056 } && test -s conftest.$ac_objext; then
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 ac_c_werror_flag=$ac_save_c_werror_flag
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && {
3093 test -z "$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ac_c_werror_flag=$ac_save_c_werror_flag
3113 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3115 if test "$ac_test_CFLAGS" = set; then
3116 CFLAGS=$ac_save_CFLAGS
3117 elif test $ac_cv_prog_cc_g = yes; then
3118 if test "$GCC" = yes; then
3124 if test "$GCC" = yes; then
3130 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3131 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3132 if test "${ac_cv_prog_cc_c89+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 ac_cv_prog_cc_c89=no
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3145 #include <sys/types.h>
3146 #include <sys/stat.h>
3147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3148 struct buf { int x; };
3149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3150 static char *e (p, i)
3156 static char *f (char * (*g) (char **, int), char **p, ...)
3161 s = g (p, va_arg (v,int));
3166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3167 function prototypes and stuff, but not '\xHH' hex character constants.
3168 These don't provoke an error unfortunately, instead are silently treated
3169 as 'x'. The following induces an error, until -std is added to get
3170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3171 array size at least. It's necessary to write '\x00'==0 to get something
3172 that's true only with -std. */
3173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3176 inside strings and character constants. */
3178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3180 int test (int i, double x);
3181 struct s1 {int (*f) (int a);};
3182 struct s2 {int (*f) (double a);};
3183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3189 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3195 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3197 CC="$ac_save_CC $ac_arg"
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3207 grep -v '^ *+' conftest.er1 >conftest.err
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3215 ac_cv_prog_cc_c89=$ac_arg
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext
3224 test "x$ac_cv_prog_cc_c89" != "xno" && break
3226 rm -f conftest.$ac_ext
3231 case "x$ac_cv_prog_cc_c89" in
3233 { echo "$as_me:$LINENO: result: none needed" >&5
3234 echo "${ECHO_T}none needed" >&6; } ;;
3236 { echo "$as_me:$LINENO: result: unsupported" >&5
3237 echo "${ECHO_T}unsupported" >&6; } ;;
3239 CC="$CC $ac_cv_prog_cc_c89"
3240 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3241 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 ac_cpp='$CXXCPP $CPPFLAGS'
3253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3256 if test -z "$CXX"; then
3257 if test -n "$CCC"; then
3260 if test -n "$ac_tool_prefix"; then
3261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_CXX+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 if test -n "$CXX"; then
3271 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$CXX"; then
3292 { echo "$as_me:$LINENO: result: $CXX" >&5
3293 echo "${ECHO_T}$CXX" >&6; }
3295 { echo "$as_me:$LINENO: result: no" >&5
3296 echo "${ECHO_T}no" >&6; }
3300 test -n "$CXX" && break
3303 if test -z "$CXX"; then
3305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3307 # Extract the first word of "$ac_prog", so it can be a program name with args.
3308 set dummy $ac_prog; ac_word=$2
3309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3311 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 if test -n "$ac_ct_CXX"; then
3315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 ac_cv_prog_ac_ct_CXX="$ac_prog"
3325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3335 if test -n "$ac_ct_CXX"; then
3336 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3337 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3339 { echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6; }
3344 test -n "$ac_ct_CXX" && break
3347 if test "x$ac_ct_CXX" = x; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3353 whose name does not start with the host triplet. If you think this
3354 configuration is useful to you, please write to autoconf@gnu.org." >&5
3355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet. If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3358 ac_tool_warned=yes ;;
3366 # Provide some information about the compiler.
3367 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3368 ac_compiler=`set X $ac_compile; echo $2`
3369 { (ac_try="$ac_compiler --version >&5"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_compiler --version >&5") 2>&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }
3379 { (ac_try="$ac_compiler -v >&5"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_compiler -v >&5") 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }
3389 { (ac_try="$ac_compiler -V >&5"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compiler -V >&5") 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }
3400 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3401 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3402 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } && {
3437 test -z "$ac_cxx_werror_flag" ||
3438 test ! -s conftest.err
3439 } && test -s conftest.$ac_objext; then
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3452 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3453 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3454 GXX=`test $ac_compiler_gnu = yes && echo yes`
3455 ac_test_CXXFLAGS=${CXXFLAGS+set}
3456 ac_save_CXXFLAGS=$CXXFLAGS
3457 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3458 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3459 if test "${ac_cv_prog_cxx_g+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3463 ac_cxx_werror_flag=yes
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } && {
3495 test -z "$ac_cxx_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest.$ac_objext; then
3498 ac_cv_prog_cxx_g=yes
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_compile") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } && {
3533 test -z "$ac_cxx_werror_flag" ||
3534 test ! -s conftest.err
3535 } && test -s conftest.$ac_objext; then
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_compile") 2>conftest.er1
3567 grep -v '^ *+' conftest.er1 >conftest.err
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } && {
3572 test -z "$ac_cxx_werror_flag" ||
3573 test ! -s conftest.err
3574 } && test -s conftest.$ac_objext; then
3575 ac_cv_prog_cxx_g=yes
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3592 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3593 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3594 if test "$ac_test_CXXFLAGS" = set; then
3595 CXXFLAGS=$ac_save_CXXFLAGS
3596 elif test $ac_cv_prog_cxx_g = yes; then
3597 if test "$GXX" = yes; then
3603 if test "$GXX" = yes; then
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 if test "x$CC" != xcc; then
3616 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3617 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3619 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3620 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3622 set dummy $CC; ac_cc=`echo $2 |
3623 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3624 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3642 # Make sure it works both with $CC and with simple cc.
3643 # We do the test twice because some compilers refuse to overwrite an
3644 # existing .o file with -o, though they will create one.
3645 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3647 if { (case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_try") 2>&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
3656 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_try") 2>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); };
3666 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3667 if test "x$CC" != xcc; then
3668 # Test first that cc exists at all.
3669 if { ac_try='cc -c conftest.$ac_ext >&5'
3670 { (case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_try") 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3681 if { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_try") 2>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); };
3703 # cc exists but doesn't like -o.
3704 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3709 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3711 rm -f core conftest*
3714 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3715 { echo "$as_me:$LINENO: result: yes" >&5
3716 echo "${ECHO_T}yes" >&6; }
3718 { echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6; }
3721 cat >>confdefs.h <<\_ACEOF
3722 #define NO_MINUS_C_MINUS_O 1
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3733 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3738 if test -z "$CPP"; then
3739 if test "${ac_cv_prog_CPP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 # Double quotes because CPP needs to be expanded
3743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3746 for ac_c_preproc_warn_flag in '' yes
3748 # Use a header file that comes with gcc, so configuring glibc
3749 # with a fresh cross-compiler works.
3750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751 # <limits.h> exists even on freestanding compilers.
3752 # On the NeXT, cc -E runs the code through the compiler's parser,
3753 # not just through cpp. "Syntax error" is here to catch this case.
3754 cat >conftest.$ac_ext <<_ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3761 # include <limits.h>
3763 # include <assert.h>
3767 if { (ac_try="$ac_cpp conftest.$ac_ext"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } >/dev/null && {
3780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 # Broken: fails on valid input.
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <ac_nonexistent.h>
3804 if { (ac_try="$ac_cpp conftest.$ac_ext"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3820 # Broken: success on invalid input.
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 # Passes both tests.
3831 rm -f conftest.err conftest.$ac_ext
3834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835 rm -f conftest.err conftest.$ac_ext
3836 if $ac_preproc_ok; then
3848 { echo "$as_me:$LINENO: result: $CPP" >&5
3849 echo "${ECHO_T}$CPP" >&6; }
3851 for ac_c_preproc_warn_flag in '' yes
3853 # Use a header file that comes with gcc, so configuring glibc
3854 # with a fresh cross-compiler works.
3855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856 # <limits.h> exists even on freestanding compilers.
3857 # On the NeXT, cc -E runs the code through the compiler's parser,
3858 # not just through cpp. "Syntax error" is here to catch this case.
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3866 # include <limits.h>
3868 # include <assert.h>
3872 if { (ac_try="$ac_cpp conftest.$ac_ext"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 # Broken: fails on valid input.
3897 rm -f conftest.err conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3909 if { (ac_try="$ac_cpp conftest.$ac_ext"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3925 # Broken: success on invalid input.
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 # Passes both tests.
3936 rm -f conftest.err conftest.$ac_ext
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then
3944 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details." >&5
3946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details." >&2;}
3948 { (exit 1); exit 1; }; }
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in grep ggrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 ac_count=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP="$ac_path_GREP"
4000 ac_path_GREP_max=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 $ac_path_GREP_found && break 3
4019 GREP="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4027 ac_cv_path_GREP=$GREP
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP="$ac_cv_path_GREP"
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043 then ac_cv_path_EGREP="$GREP -E"
4045 # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy egrep; ac_prog_name=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 ac_path_EGREP_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4057 test -z "$as_dir" && as_dir=.
4058 for ac_prog in egrep; do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 echo 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078 ac_count=`expr $ac_count + 1`
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP="$ac_path_EGREP"
4082 ac_path_EGREP_max=$ac_count
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 $ac_path_EGREP_found && break 3
4101 EGREP="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4109 ac_cv_path_EGREP=$EGREP
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4120 if test $ac_cv_c_compiler_gnu = yes; then
4121 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4122 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4123 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 ac_pattern="Autoconf.*'x'"
4127 cat >conftest.$ac_ext <<_ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4138 ac_cv_prog_gcc_traditional=yes
4140 ac_cv_prog_gcc_traditional=no
4145 if test $ac_cv_prog_gcc_traditional = no; then
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4157 ac_cv_prog_gcc_traditional=yes
4163 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4164 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4165 if test $ac_cv_prog_gcc_traditional = yes; then
4166 CC="$CC -traditional"
4170 BASECC=`basename $CC`
4172 if test "x$BASECC" = xgcc; then
4173 cat >>confdefs.h <<\_ACEOF
4179 # Extract the first word of "$CXX", so it can be a program name with args.
4180 set dummy $CXX; ac_word=$2
4181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4183 if test "${ac_cv_path_CXX+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4211 if test -n "$CXX"; then
4212 { echo "$as_me:$LINENO: result: $CXX" >&5
4213 echo "${ECHO_T}$CXX" >&6; }
4215 { echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6; }
4220 if test ! -e $CXX; then
4221 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4222 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4223 { (exit 1); exit 1; }; }
4226 # Find a good install program. We prefer a C program (faster),
4227 # so one script is as good as another. But avoid the broken or
4228 # incompatible versions:
4229 # SysV /etc/install, /usr/sbin/install
4230 # SunOS /usr/etc/install
4231 # IRIX /sbin/install
4233 # AmigaOS /C/install, which installs bootblocks on floppy discs
4234 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4237 # OS/2's system install, which has a completely different semantic
4238 # ./install, which can be erroneously created by make from ./install.sh.
4239 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4240 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4241 if test -z "$INSTALL"; then
4242 if test "${ac_cv_path_install+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 # Account for people who put trailing slashes in PATH elements.
4252 ./ | .// | /cC/* | \
4253 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4254 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4257 # OSF1 and SCO ODT 3.0 have their own names for install.
4258 # Don't use installbsd from OSF since it installs stuff as root
4260 for ac_prog in ginstall scoinst install; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4263 if test $ac_prog = install &&
4264 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4265 # AIX install. It has an incompatible calling convention.
4267 elif test $ac_prog = install &&
4268 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4269 # program-specific install script used by HP pwplus--don't use.
4272 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4285 if test "${ac_cv_path_install+set}" = set; then
4286 INSTALL=$ac_cv_path_install
4288 # As a last resort, use the slow shell script. Don't cache a
4289 # value for INSTALL within a source directory, because that will
4290 # break other packages using the cache if that directory is
4291 # removed, or if the value is a relative name.
4292 INSTALL=$ac_install_sh
4295 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4296 echo "${ECHO_T}$INSTALL" >&6; }
4298 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4299 # It thinks the first close brace ends the variable substitution.
4300 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4302 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4304 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4306 # Extract the first word of "mv", so it can be a program name with args.
4307 set dummy mv; ac_word=$2
4308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4310 if test "${ac_cv_path_MV+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4315 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4338 if test -n "$MV"; then
4339 { echo "$as_me:$LINENO: result: $MV" >&5
4340 echo "${ECHO_T}$MV" >&6; }
4342 { echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6; }
4347 # Extract the first word of "rm", so it can be a program name with args.
4348 set dummy rm; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_path_REMOVE+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4378 REMOVE=$ac_cv_path_REMOVE
4379 if test -n "$REMOVE"; then
4380 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4381 echo "${ECHO_T}$REMOVE" >&6; }
4383 { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4388 # Extract the first word of "cp", so it can be a program name with args.
4389 set dummy cp; ac_word=$2
4390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392 if test "${ac_cv_path_CP+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4420 if test -n "$CP"; then
4421 { echo "$as_me:$LINENO: result: $CP" >&5
4422 echo "${ECHO_T}$CP" >&6; }
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4429 # Extract the first word of "sed", so it can be a program name with args.
4430 set dummy sed; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_path_SED+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4461 if test -n "$SED"; then
4462 { echo "$as_me:$LINENO: result: $SED" >&5
4463 echo "${ECHO_T}$SED" >&6; }
4465 { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4470 # Extract the first word of "echo", so it can be a program name with args.
4471 set dummy echo; ac_word=$2
4472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4474 if test "${ac_cv_path_ECHO+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4501 ECHO=$ac_cv_path_ECHO
4502 if test -n "$ECHO"; then
4503 { echo "$as_me:$LINENO: result: $ECHO" >&5
4504 echo "${ECHO_T}$ECHO" >&6; }
4506 { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4511 # Extract the first word of "cmp", so it can be a program name with args.
4512 set dummy cmp; ac_word=$2
4513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4515 if test "${ac_cv_path_CMP+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4543 if test -n "$CMP"; then
4544 { echo "$as_me:$LINENO: result: $CMP" >&5
4545 echo "${ECHO_T}$CMP" >&6; }
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4552 # Extract the first word of "tbl", so it can be a program name with args.
4553 set dummy tbl; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_path_TBL+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4584 if test -n "$TBL"; then
4585 { echo "$as_me:$LINENO: result: $TBL" >&5
4586 echo "${ECHO_T}$TBL" >&6; }
4588 { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4593 # Extract the first word of "ar", so it can be a program name with args.
4594 set dummy ar; ac_word=$2
4595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4597 if test "${ac_cv_path_AR+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4625 if test -n "$AR"; then
4626 { echo "$as_me:$LINENO: result: $AR" >&5
4627 echo "${ECHO_T}$AR" >&6; }
4629 { echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6; }
4634 # Extract the first word of "openssl", so it can be a program name with args.
4635 set dummy openssl; ac_word=$2
4636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4638 if test "${ac_cv_path_OPENSSL+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4665 OPENSSL=$ac_cv_path_OPENSSL
4666 if test -n "$OPENSSL"; then
4667 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4668 echo "${ECHO_T}$OPENSSL" >&6; }
4670 { echo "$as_me:$LINENO: result: no" >&5
4671 echo "${ECHO_T}no" >&6; }
4675 # Extract the first word of "mtx", so it can be a program name with args.
4676 set dummy mtx; ac_word=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_path_MTX+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4707 if test -n "$MTX"; then
4708 { echo "$as_me:$LINENO: result: $MTX" >&5
4709 echo "${ECHO_T}$MTX" >&6; }
4711 { echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6; }
4716 # Extract the first word of "dd", so it can be a program name with args.
4717 set dummy dd; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_path_DD+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4748 if test -n "$DD"; then
4749 { echo "$as_me:$LINENO: result: $DD" >&5
4750 echo "${ECHO_T}$DD" >&6; }
4752 { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4757 # Extract the first word of "mkisofs", so it can be a program name with args.
4758 set dummy mkisofs; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_path_MKISOFS+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4788 MKISOFS=$ac_cv_path_MKISOFS
4789 if test -n "$MKISOFS"; then
4790 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4791 echo "${ECHO_T}$MKISOFS" >&6; }
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4798 # Extract the first word of "python", so it can be a program name with args.
4799 set dummy python; ac_word=$2
4800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4802 if test "${ac_cv_path_PYTHON+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4829 PYTHON=$ac_cv_path_PYTHON
4830 if test -n "$PYTHON"; then
4831 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4832 echo "${ECHO_T}$PYTHON" >&6; }
4834 { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4839 # Extract the first word of "growisofs", so it can be a program name with args.
4840 set dummy growisofs; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4870 GROWISOFS=$ac_cv_path_GROWISOFS
4871 if test -n "$GROWISOFS"; then
4872 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4873 echo "${ECHO_T}$GROWISOFS" >&6; }
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4881 set dummy dvd+rw-mediainfo; ac_word=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 case $DVDRWMEDIAINFO in
4889 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4911 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4912 if test -n "$DVDRWMEDIAINFO"; then
4913 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4914 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4921 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4922 set dummy dvd+rw-format; ac_word=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 case $DVDRWFORMAT in
4930 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4952 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4953 if test -n "$DVDRWFORMAT"; then
4954 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4955 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4957 { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4962 # Extract the first word of "pkg-config", so it can be a program name with args.
4963 set dummy pkg-config; ac_word=$2
4964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4966 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4993 PKGCONFIG=$ac_cv_path_PKGCONFIG
4994 if test -n "$PKGCONFIG"; then
4995 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4996 echo "${ECHO_T}$PKGCONFIG" >&6; }
4998 { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5003 # Extract the first word of "qmake", so it can be a program name with args.
5004 set dummy qmake; ac_word=$2
5005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5007 if test "${ac_cv_path_QMAKE+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5034 QMAKE=$ac_cv_path_QMAKE
5035 if test -n "$QMAKE"; then
5036 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5037 echo "${ECHO_T}$QMAKE" >&6; }
5039 { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5044 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5045 set dummy qmake-qt4; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5075 QMAKEQT4=$ac_cv_path_QMAKEQT4
5076 if test -n "$QMAKEQT4"; then
5077 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5078 echo "${ECHO_T}$QMAKEQT4" >&6; }
5080 { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5086 if test "x$WXCONFIG" = x; then
5089 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5090 set dummy ${WXCONFIG}; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5120 WXCONFIG=$ac_cv_path_WXCONFIG
5121 if test -n "$WXCONFIG"; then
5122 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5123 echo "${ECHO_T}$WXCONFIG" >&6; }
5125 { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5131 # Extract the first word of "cdrecord", so it can be a program name with args.
5132 set dummy cdrecord; ac_word=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_path_CDRECORD+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5162 CDRECORD=$ac_cv_path_CDRECORD
5163 if test -n "$CDRECORD"; then
5164 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5165 echo "${ECHO_T}$CDRECORD" >&6; }
5167 { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5172 # Extract the first word of "pidof", so it can be a program name with args.
5173 set dummy pidof; ac_word=$2
5174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176 if test "${ac_cv_path_PIDOF+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5203 PIDOF=$ac_cv_path_PIDOF
5204 if test -n "$PIDOF"; then
5205 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5206 echo "${ECHO_T}$PIDOF" >&6; }
5208 { echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6; }
5213 for ac_prog in gawk mawk nawk awk
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy $ac_prog; ac_word=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_prog_AWK+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 if test -n "$AWK"; then
5223 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_AWK="$ac_prog"
5233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 if test -n "$AWK"; then
5244 { echo "$as_me:$LINENO: result: $AWK" >&5
5245 echo "${ECHO_T}$AWK" >&6; }
5247 { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5252 test -n "$AWK" && break
5255 # Some AWK programs fail, so test it and warn the user
5256 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5257 { if ((prog == $2) || (("(" prog ")") == $2) ||
5258 (("" prog "") == $2) ||
5259 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5261 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5262 The regex engine of $AWK is too broken to be used you
5263 might want to install GNU AWK.
5264 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5265 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5266 The regex engine of $AWK is too broken to be used you
5267 might want to install GNU AWK.
5268 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5269 { (exit 1); exit 1; }; }
5272 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5273 set dummy $THE_AWK; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_path_AWK+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5304 if test -n "$AWK"; then
5305 { echo "$as_me:$LINENO: result: $AWK" >&5
5306 echo "${ECHO_T}$AWK" >&6; }
5308 { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5315 test -n "$ARFLAG" || ARFLAGS="cr"
5328 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5329 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5334 macro_version='2.2.6'
5335 macro_revision='1.3012'
5349 ltmain="$ac_aux_dir/ltmain.sh"
5351 # Make sure we can run config.sub.
5352 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5353 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5354 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5355 { (exit 1); exit 1; }; }
5357 { echo "$as_me:$LINENO: checking build system type" >&5
5358 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5359 if test "${ac_cv_build+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 ac_build_alias=$build_alias
5363 test "x$ac_build_alias" = x &&
5364 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5365 test "x$ac_build_alias" = x &&
5366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5368 { (exit 1); exit 1; }; }
5369 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5370 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5371 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5372 { (exit 1); exit 1; }; }
5375 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5376 echo "${ECHO_T}$ac_cv_build" >&6; }
5377 case $ac_cv_build in
5379 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5380 echo "$as_me: error: invalid value of canonical build" >&2;}
5381 { (exit 1); exit 1; }; };;
5384 ac_save_IFS=$IFS; IFS='-'
5390 # Remember, the first character of IFS is used to create $*,
5391 # except with old shells:
5394 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5397 { echo "$as_me:$LINENO: checking host system type" >&5
5398 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5399 if test "${ac_cv_host+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 if test "x$host_alias" = x; then
5403 ac_cv_host=$ac_cv_build
5405 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5406 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5407 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5408 { (exit 1); exit 1; }; }
5412 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5413 echo "${ECHO_T}$ac_cv_host" >&6; }
5416 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5417 echo "$as_me: error: invalid value of canonical host" >&2;}
5418 { (exit 1); exit 1; }; };;
5421 ac_save_IFS=$IFS; IFS='-'
5427 # Remember, the first character of IFS is used to create $*,
5428 # except with old shells:
5431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5434 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5435 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5436 if test "${ac_cv_path_SED+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5440 for ac_i in 1 2 3 4 5 6 7; do
5441 ac_script="$ac_script$as_nl$ac_script"
5443 echo "$ac_script" | sed 99q >conftest.sed
5444 $as_unset ac_script || ac_script=
5445 # Extract the first word of "sed gsed" to use in msg output
5446 if test -z "$SED"; then
5447 set dummy sed gsed; ac_prog_name=$2
5448 if test "${ac_cv_path_SED+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 ac_path_SED_found=false
5452 # Loop through the user's path and test for each of PROGNAME-LIST
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_prog in sed gsed; do
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5461 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5462 # Check for GNU ac_path_SED and select it if it is found.
5463 # Check for GNU $ac_path_SED
5464 case `"$ac_path_SED" --version 2>&1` in
5466 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5469 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5472 cat "conftest.in" "conftest.in" >"conftest.tmp"
5473 mv "conftest.tmp" "conftest.in"
5474 cp "conftest.in" "conftest.nl"
5475 echo '' >> "conftest.nl"
5476 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5478 ac_count=`expr $ac_count + 1`
5479 if test $ac_count -gt ${ac_path_SED_max-0}; then
5480 # Best one so far, save it but keep looking for a better one
5481 ac_cv_path_SED="$ac_path_SED"
5482 ac_path_SED_max=$ac_count
5484 # 10*(2^10) chars as input seems more than enough
5485 test $ac_count -gt 10 && break
5487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5491 $ac_path_SED_found && break 3
5501 SED="$ac_cv_path_SED"
5502 if test -z "$SED"; then
5503 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5504 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5505 { (exit 1); exit 1; }; }
5513 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5514 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5515 SED="$ac_cv_path_SED"
5518 test -z "$SED" && SED=sed
5519 Xsed="$SED -e 1s/^X//"
5531 { echo "$as_me:$LINENO: checking for fgrep" >&5
5532 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5533 if test "${ac_cv_path_FGREP+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5537 then ac_cv_path_FGREP="$GREP -F"
5539 # Extract the first word of "fgrep" to use in msg output
5540 if test -z "$FGREP"; then
5541 set dummy fgrep; ac_prog_name=$2
5542 if test "${ac_cv_path_FGREP+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 ac_path_FGREP_found=false
5546 # Loop through the user's path and test for each of PROGNAME-LIST
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5551 test -z "$as_dir" && as_dir=.
5552 for ac_prog in fgrep; do
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5555 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5556 # Check for GNU ac_path_FGREP and select it if it is found.
5557 # Check for GNU $ac_path_FGREP
5558 case `"$ac_path_FGREP" --version 2>&1` in
5560 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5563 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5566 cat "conftest.in" "conftest.in" >"conftest.tmp"
5567 mv "conftest.tmp" "conftest.in"
5568 cp "conftest.in" "conftest.nl"
5569 echo 'FGREP' >> "conftest.nl"
5570 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5572 ac_count=`expr $ac_count + 1`
5573 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5574 # Best one so far, save it but keep looking for a better one
5575 ac_cv_path_FGREP="$ac_path_FGREP"
5576 ac_path_FGREP_max=$ac_count
5578 # 10*(2^10) chars as input seems more than enough
5579 test $ac_count -gt 10 && break
5581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5585 $ac_path_FGREP_found && break 3
5595 FGREP="$ac_cv_path_FGREP"
5596 if test -z "$FGREP"; then
5597 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5598 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5599 { (exit 1); exit 1; }; }
5603 ac_cv_path_FGREP=$FGREP
5609 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5610 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5611 FGREP="$ac_cv_path_FGREP"
5614 test -z "$GREP" && GREP=grep
5634 # Check whether --with-gnu-ld was given.
5635 if test "${with_gnu_ld+set}" = set; then
5636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5642 if test "$GCC" = yes; then
5643 # Check if gcc -print-prog-name=ld gives a path.
5644 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5645 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5648 # gcc leaves a trailing carriage return which upsets mingw
5649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5654 # Accept absolute paths.
5656 re_direlt='/[^/][^/]*/\.\./'
5657 # Canonicalize the pathname of ld
5658 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5659 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5660 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5662 test -z "$LD" && LD="$ac_prog"
5665 # If it fails, then pretend we aren't using GCC.
5669 # If it is relative, then search for the first ld in PATH.
5673 elif test "$with_gnu_ld" = yes; then
5674 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5677 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5680 if test "${lt_cv_path_LD+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 if test -z "$LD"; then
5684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5685 for ac_dir in $PATH; do
5687 test -z "$ac_dir" && ac_dir=.
5688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5689 lt_cv_path_LD="$ac_dir/$ac_prog"
5690 # Check to see if the program is GNU ld. I'd rather use --version,
5691 # but apparently some variants of GNU ld only accept -v.
5692 # Break only if it was the GNU/non-GNU ld that we prefer.
5693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5694 *GNU* | *'with BFD'*)
5695 test "$with_gnu_ld" != no && break
5698 test "$with_gnu_ld" != yes && break
5705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5710 if test -n "$LD"; then
5711 { echo "$as_me:$LINENO: result: $LD" >&5
5712 echo "${ECHO_T}$LD" >&6; }
5714 { echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6; }
5717 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5718 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5719 { (exit 1); exit 1; }; }
5720 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5721 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5722 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5726 case `$LD -v 2>&1 </dev/null` in
5727 *GNU* | *'with BFD'*)
5728 lt_cv_prog_gnu_ld=yes
5731 lt_cv_prog_gnu_ld=no
5735 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5736 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5737 with_gnu_ld=$lt_cv_prog_gnu_ld
5747 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5748 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5749 if test "${lt_cv_path_NM+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test -n "$NM"; then
5753 # Let the user override the test.
5756 lt_nm_to_check="${ac_tool_prefix}nm"
5757 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5758 lt_nm_to_check="$lt_nm_to_check nm"
5760 for lt_tmp_nm in $lt_nm_to_check; do
5761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5762 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5764 test -z "$ac_dir" && ac_dir=.
5765 tmp_nm="$ac_dir/$lt_tmp_nm"
5766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5767 # Check to see if the nm accepts a BSD-compat flag.
5768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5769 # nm: unknown option "B" ignored
5770 # Tru64's nm complains that /dev/null is an invalid object file
5771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5772 */dev/null* | *'Invalid file or object type'*)
5773 lt_cv_path_NM="$tmp_nm -B"
5777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5779 lt_cv_path_NM="$tmp_nm -p"
5783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5784 continue # so that we can try to find one that supports BSD flags
5793 : ${lt_cv_path_NM=no}
5796 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5797 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5798 if test "$lt_cv_path_NM" != "no"; then
5801 # Didn't find any BSD compatible name lister, look for dumpbin.
5802 if test -n "$ac_tool_prefix"; then
5803 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 if test -n "$DUMPBIN"; then
5813 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 DUMPBIN=$ac_cv_prog_DUMPBIN
5833 if test -n "$DUMPBIN"; then
5834 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5835 echo "${ECHO_T}$DUMPBIN" >&6; }
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5842 test -n "$DUMPBIN" && break
5845 if test -z "$DUMPBIN"; then
5846 ac_ct_DUMPBIN=$DUMPBIN
5847 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5849 # Extract the first word of "$ac_prog", so it can be a program name with args.
5850 set dummy $ac_prog; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if test -n "$ac_ct_DUMPBIN"; then
5857 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5877 if test -n "$ac_ct_DUMPBIN"; then
5878 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5879 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5881 { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5886 test -n "$ac_ct_DUMPBIN" && break
5889 if test "x$ac_ct_DUMPBIN" = x; then
5892 case $cross_compiling:$ac_tool_warned in
5894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5895 whose name does not start with the host triplet. If you think this
5896 configuration is useful to you, please write to autoconf@gnu.org." >&5
5897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5898 whose name does not start with the host triplet. If you think this
5899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5900 ac_tool_warned=yes ;;
5902 DUMPBIN=$ac_ct_DUMPBIN
5907 if test "$DUMPBIN" != ":"; then
5911 test -z "$NM" && NM=nm
5918 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5919 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5920 if test "${lt_cv_nm_interface+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 lt_cv_nm_interface="BSD nm"
5924 echo "int some_variable = 0;" > conftest.$ac_ext
5925 (eval echo "\"\$as_me:5925: $ac_compile\"" >&5)
5926 (eval "$ac_compile" 2>conftest.err)
5927 cat conftest.err >&5
5928 (eval echo "\"\$as_me:5928: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5929 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5930 cat conftest.err >&5
5931 (eval echo "\"\$as_me:5931: output\"" >&5)
5932 cat conftest.out >&5
5933 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5934 lt_cv_nm_interface="MS dumpbin"
5938 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5939 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5941 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5942 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5944 if test "$LN_S" = "ln -s"; then
5945 { echo "$as_me:$LINENO: result: yes" >&5
5946 echo "${ECHO_T}yes" >&6; }
5948 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5949 echo "${ECHO_T}no, using $LN_S" >&6; }
5952 # find the maximum length of command line arguments
5953 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5954 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5955 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 # On DJGPP, this test can blow up pretty badly due to problems in libc
5964 # (any single argument exceeding 2000 bytes causes a buffer overrun
5965 # during glob expansion). Even if it were fixed, the result of this
5966 # check would be larger than it should be.
5967 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5971 # Under GNU Hurd, this test is not required because there is
5972 # no limit to the length of command line arguments.
5973 # Libtool will interpret -1 as no limit whatsoever
5974 lt_cv_sys_max_cmd_len=-1;
5977 cygwin* | mingw* | cegcc*)
5978 # On Win9x/ME, this test blows up -- it succeeds, but takes
5979 # about 5 minutes as the teststring grows exponentially.
5980 # Worse, since 9x/ME are not pre-emptively multitasking,
5981 # you end up with a "frozen" computer, even though with patience
5982 # the test eventually succeeds (with a max line length of 256k).
5983 # Instead, let's just punt: use the minimum linelength reported by
5984 # all of the supported platforms: 8192 (on NT/2K/XP).
5985 lt_cv_sys_max_cmd_len=8192;
5989 # On AmigaOS with pdksh, this test takes hours, literally.
5990 # So we just punt and use a minimum line length of 8192.
5991 lt_cv_sys_max_cmd_len=8192;
5994 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5995 # This has been around since 386BSD, at least. Likely further.
5996 if test -x /sbin/sysctl; then
5997 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5998 elif test -x /usr/sbin/sysctl; then
5999 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6001 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6003 # And add a safety zone
6004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6009 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6010 lt_cv_sys_max_cmd_len=196608
6014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6016 # nice to cause kernel panics so lets avoid the loop below.
6017 # First set a reasonable default.
6018 lt_cv_sys_max_cmd_len=16384
6020 if test -x /sbin/sysconfig; then
6021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6022 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6027 lt_cv_sys_max_cmd_len=102400
6029 sysv5* | sco5v6* | sysv4.2uw2*)
6030 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6031 if test -n "$kargmax"; then
6032 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6034 lt_cv_sys_max_cmd_len=32768
6038 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6039 if test -n "$lt_cv_sys_max_cmd_len"; then
6040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6043 # Make teststring a little bigger before we do anything with it.
6044 # a 1K string should be a reasonable start.
6045 for i in 1 2 3 4 5 6 7 8 ; do
6046 teststring=$teststring$teststring
6048 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6049 # If test is not a shell built-in, we'll probably end up computing a
6050 # maximum length that is only half of the actual maximum length, but
6052 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6053 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6054 test $i != 17 # 1/2 MB should be enough
6057 teststring=$teststring$teststring
6059 # Only check the string length outside the loop.
6060 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6062 # Add a significant safety factor because C++ compilers can tack on
6063 # massive amounts of additional arguments before passing them to the
6064 # linker. It appears as though 1/2 is a usable value.
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6072 if test -n $lt_cv_sys_max_cmd_len ; then
6073 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6074 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6076 { echo "$as_me:$LINENO: result: none" >&5
6077 echo "${ECHO_T}none" >&6; }
6079 max_cmd_len=$lt_cv_sys_max_cmd_len
6090 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6091 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6092 # Try some XSI features
6095 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6097 && eval 'test $(( 1 + 1 )) -eq 2 \
6098 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6100 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6101 echo "${ECHO_T}$xsi_shell" >&6; }
6104 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6105 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6107 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6109 && lt_shell_append=yes
6110 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6111 echo "${ECHO_T}$lt_shell_append" >&6; }
6114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6124 # test EBCDIC or ASCII
6125 case `echo X|tr X '\101'` in
6126 A) # ASCII based system
6127 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6128 lt_SP2NL='tr \040 \012'
6129 lt_NL2SP='tr \015\012 \040\040'
6131 *) # EBCDIC based system
6132 lt_SP2NL='tr \100 \n'
6133 lt_NL2SP='tr \r\n \100\100'
6145 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6146 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6147 if test "${lt_cv_ld_reload_flag+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 lt_cv_ld_reload_flag='-r'
6152 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6153 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6154 reload_flag=$lt_cv_ld_reload_flag
6155 case $reload_flag in
6157 *) reload_flag=" $reload_flag" ;;
6159 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6162 if test "$GCC" = yes; then
6163 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6165 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6178 if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6180 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 if test -n "$OBJDUMP"; then
6187 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 OBJDUMP=$ac_cv_prog_OBJDUMP
6207 if test -n "$OBJDUMP"; then
6208 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6209 echo "${ECHO_T}$OBJDUMP" >&6; }
6211 { echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6; }
6217 if test -z "$ac_cv_prog_OBJDUMP"; then
6218 ac_ct_OBJDUMP=$OBJDUMP
6219 # Extract the first word of "objdump", so it can be a program name with args.
6220 set dummy objdump; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 if test -n "$ac_ct_OBJDUMP"; then
6227 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6247 if test -n "$ac_ct_OBJDUMP"; then
6248 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6249 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6251 { echo "$as_me:$LINENO: result: no" >&5
6252 echo "${ECHO_T}no" >&6; }
6255 if test "x$ac_ct_OBJDUMP" = x; then
6258 case $cross_compiling:$ac_tool_warned in
6260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6261 whose name does not start with the host triplet. If you think this
6262 configuration is useful to you, please write to autoconf@gnu.org." >&5
6263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6264 whose name does not start with the host triplet. If you think this
6265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6266 ac_tool_warned=yes ;;
6268 OBJDUMP=$ac_ct_OBJDUMP
6271 OBJDUMP="$ac_cv_prog_OBJDUMP"
6274 test -z "$OBJDUMP" && OBJDUMP=objdump
6284 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6285 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6286 if test "${lt_cv_deplibs_check_method+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 lt_cv_file_magic_cmd='$MAGIC_CMD'
6290 lt_cv_file_magic_test_file=
6291 lt_cv_deplibs_check_method='unknown'
6292 # Need to set the preceding variable on all platforms that support
6293 # interlibrary dependencies.
6294 # 'none' -- dependencies not supported.
6295 # `unknown' -- same as none, but documents that we really don't know.
6296 # 'pass_all' -- all dependencies passed with no checks.
6297 # 'test_compile' -- check by making test program.
6298 # 'file_magic [[regex]]' -- check by looking for files in library path
6299 # which responds to the $file_magic_cmd with a given extended regex.
6300 # If you have `file' or equivalent on your system and you're not sure
6301 # whether `pass_all' will *always* work, you probably want this one.
6305 lt_cv_deplibs_check_method=pass_all
6309 lt_cv_deplibs_check_method=pass_all
6313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6314 lt_cv_file_magic_cmd='/usr/bin/file -L'
6315 lt_cv_file_magic_test_file=/shlib/libc.so
6319 # func_win32_libid is a shell function defined in ltmain.sh
6320 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6321 lt_cv_file_magic_cmd='func_win32_libid'
6325 # Base MSYS/MinGW do not provide the 'file' command needed by
6326 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6327 # unless we find 'file', for example because we are cross-compiling.
6328 if ( file / ) >/dev/null 2>&1; then
6329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330 lt_cv_file_magic_cmd='func_win32_libid'
6332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6333 lt_cv_file_magic_cmd='$OBJDUMP -f'
6338 # use the weaker test based on 'objdump'. See mingw*.
6339 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6340 lt_cv_file_magic_cmd='$OBJDUMP -f'
6343 darwin* | rhapsody*)
6344 lt_cv_deplibs_check_method=pass_all
6347 freebsd* | dragonfly*)
6348 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6351 # Not sure whether the presence of OpenBSD here was a mistake.
6352 # Let's accept both of them until this is cleared up.
6353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6354 lt_cv_file_magic_cmd=/usr/bin/file
6355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6359 lt_cv_deplibs_check_method=pass_all
6364 lt_cv_deplibs_check_method=pass_all
6367 hpux10.20* | hpux11*)
6368 lt_cv_file_magic_cmd=/usr/bin/file
6371 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6372 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6375 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]'
6376 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6380 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6386 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6390 irix5* | irix6* | nonstopux*)
6392 *-32|*"-32 ") libmagic=32-bit;;
6393 *-n32|*"-n32 ") libmagic=N32;;
6394 *-64|*"-64 ") libmagic=64-bit;;
6395 *) libmagic=never-match;;
6397 lt_cv_deplibs_check_method=pass_all
6400 # This must be Linux ELF.
6401 linux* | k*bsd*-gnu)
6402 lt_cv_deplibs_check_method=pass_all
6406 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6415 lt_cv_file_magic_cmd=/usr/bin/file
6416 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6420 lt_cv_deplibs_check_method=pass_all
6424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6431 osf3* | osf4* | osf5*)
6432 lt_cv_deplibs_check_method=pass_all
6436 lt_cv_deplibs_check_method=pass_all
6440 lt_cv_deplibs_check_method=pass_all
6443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6444 lt_cv_deplibs_check_method=pass_all
6448 case $host_vendor in
6450 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]'
6451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6454 lt_cv_deplibs_check_method=pass_all
6457 lt_cv_file_magic_cmd='/bin/file'
6458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6461 lt_cv_file_magic_cmd='/bin/file'
6462 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6463 lt_cv_file_magic_test_file=/lib/libc.so
6466 lt_cv_deplibs_check_method=pass_all
6469 lt_cv_deplibs_check_method=pass_all
6475 lt_cv_deplibs_check_method=pass_all
6480 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6481 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6482 file_magic_cmd=$lt_cv_file_magic_cmd
6483 deplibs_check_method=$lt_cv_deplibs_check_method
6484 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ar; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_prog_AR+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 if test -n "$AR"; then
6506 ac_cv_prog_AR="$AR" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_prog_AR="${ac_tool_prefix}ar"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 if test -n "$AR"; then
6527 { echo "$as_me:$LINENO: result: $AR" >&5
6528 echo "${ECHO_T}$AR" >&6; }
6530 { echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6; }
6536 if test -z "$ac_cv_prog_AR"; then
6538 # Extract the first word of "ar", so it can be a program name with args.
6539 set dummy ar; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 if test -n "$ac_ct_AR"; then
6546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_ac_ct_AR="ar"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6566 if test -n "$ac_ct_AR"; then
6567 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6568 echo "${ECHO_T}$ac_ct_AR" >&6; }
6570 { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6574 if test "x$ac_ct_AR" = x; then
6577 case $cross_compiling:$ac_tool_warned in
6579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6580 whose name does not start with the host triplet. If you think this
6581 configuration is useful to you, please write to autoconf@gnu.org." >&5
6582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6583 whose name does not start with the host triplet. If you think this
6584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6585 ac_tool_warned=yes ;;
6593 test -z "$AR" && AR=ar
6594 test -z "$AR_FLAGS" && AR_FLAGS=cru
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}strip; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_STRIP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -n "$STRIP"; then
6615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 STRIP=$ac_cv_prog_STRIP
6635 if test -n "$STRIP"; then
6636 { echo "$as_me:$LINENO: result: $STRIP" >&5
6637 echo "${ECHO_T}$STRIP" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6645 if test -z "$ac_cv_prog_STRIP"; then
6647 # Extract the first word of "strip", so it can be a program name with args.
6648 set dummy strip; ac_word=$2
6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 if test -n "$ac_ct_STRIP"; then
6655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_STRIP="strip"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6675 if test -n "$ac_ct_STRIP"; then
6676 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6677 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6679 { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6683 if test "x$ac_ct_STRIP" = x; then
6686 case $cross_compiling:$ac_tool_warned in
6688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet. If you think this
6690 configuration is useful to you, please write to autoconf@gnu.org." >&5
6691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6692 whose name does not start with the host triplet. If you think this
6693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6694 ac_tool_warned=yes ;;
6699 STRIP="$ac_cv_prog_STRIP"
6702 test -z "$STRIP" && STRIP=:
6709 if test -n "$ac_tool_prefix"; then
6710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6711 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_prog_RANLIB+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 if test -n "$RANLIB"; then
6718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 RANLIB=$ac_cv_prog_RANLIB
6738 if test -n "$RANLIB"; then
6739 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6740 echo "${ECHO_T}$RANLIB" >&6; }
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6748 if test -z "$ac_cv_prog_RANLIB"; then
6749 ac_ct_RANLIB=$RANLIB
6750 # Extract the first word of "ranlib", so it can be a program name with args.
6751 set dummy ranlib; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 if test -n "$ac_ct_RANLIB"; then
6758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_prog_ac_ct_RANLIB="ranlib"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6778 if test -n "$ac_ct_RANLIB"; then
6779 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6780 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6786 if test "x$ac_ct_RANLIB" = x; then
6789 case $cross_compiling:$ac_tool_warned in
6791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6792 whose name does not start with the host triplet. If you think this
6793 configuration is useful to you, please write to autoconf@gnu.org." >&5
6794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6795 whose name does not start with the host triplet. If you think this
6796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6797 ac_tool_warned=yes ;;
6799 RANLIB=$ac_ct_RANLIB
6802 RANLIB="$ac_cv_prog_RANLIB"
6805 test -z "$RANLIB" && RANLIB=:
6812 # Determine commands to create old-style static archives.
6813 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6814 old_postinstall_cmds='chmod 644 $oldlib'
6815 old_postuninstall_cmds=
6817 if test -n "$RANLIB"; then
6820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6826 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6862 # If no C compiler was specified, use CC.
6865 # If no C compiler flags were specified, use CFLAGS.
6866 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6868 # Allow CC to be a program name with arguments.
6872 # Check for command to grab the raw symbol name followed by C symbol from nm.
6873 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6874 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6875 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 # These are sane defaults that work on at least a few old systems.
6880 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6882 # Character class describing NM global symbol codes.
6883 symcode='[BCDEGRST]'
6885 # Regexp to match symbols that can be accessed directly from C.
6886 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6888 # Define system-specific variables.
6893 cygwin* | mingw* | pw32* | cegcc*)
6894 symcode='[ABCDGISTW]'
6897 if test "$host_cpu" = ia64; then
6898 symcode='[ABCDEGRST]'
6902 symcode='[BCDEGRST]'
6905 symcode='[BCDEGQRST]'
6916 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6924 # If we're using GNU nm, then use its standard symbol codes.
6925 case `$NM -V 2>&1` in
6926 *GNU* | *'with BFD'*)
6927 symcode='[ABCDGIRSTW]' ;;
6930 # Transform an extracted symbol line into a proper C declaration.
6931 # Some systems (esp. on ia64) link data and code symbols differently,
6932 # so use this general approach.
6933 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6935 # Transform an extracted symbol line into symbol name and symbol address
6936 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6937 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'"
6939 # Handle CRLF in mingw tool chain
6943 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6947 # Try without a prefix underscore, then with it.
6948 for ac_symprfx in "" "_"; do
6950 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6951 symxfrm="\\1 $ac_symprfx\\2 \\2"
6953 # Write the raw and C identifiers.
6954 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6955 # Fake it for dumpbin and say T for any non-static function
6956 # and D for any global variable.
6957 # Also find C++ and __fastcall symbols from MSVC++,
6958 # which start with @ or ?.
6959 lt_cv_sys_global_symbol_pipe="$AWK '"\
6960 " {last_section=section; section=\$ 3};"\
6961 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6962 " \$ 0!~/External *\|/{next};"\
6963 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6964 " {if(hide[section]) next};"\
6965 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6966 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6967 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6968 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6969 " ' prfx=^$ac_symprfx"
6971 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6974 # Check to see that the pipe works correctly.
6978 cat > conftest.$ac_ext <<_LT_EOF
6983 void nm_test_func(void);
6984 void nm_test_func(void){}
6988 int main(){nm_test_var='a';nm_test_func();return(0);}
6991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6992 (eval $ac_compile) 2>&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; then
6996 # Now try to grab the symbols.
6998 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6999 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } && test -s "$nlist"; then
7003 # Try sorting and uniquifying the output.
7004 if sort "$nlist" | uniq > "$nlist"T; then
7005 mv -f "$nlist"T "$nlist"
7010 # Make sure that we snagged all the symbols we need.
7011 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7012 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7013 cat <<_LT_EOF > conftest.$ac_ext
7019 # Now generate the symbol file.
7020 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7022 cat <<_LT_EOF >> conftest.$ac_ext
7024 /* The mapping between symbol names and symbols. */
7029 lt__PROGRAM__LTX_preloaded_symbols[] =
7031 { "@PROGRAM@", (void *) 0 },
7033 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7034 cat <<\_LT_EOF >> conftest.$ac_ext
7038 /* This works around a problem in FreeBSD linker */
7039 #ifdef FREEBSD_WORKAROUND
7040 static const void *lt_preloaded_setup() {
7041 return lt__PROGRAM__LTX_preloaded_symbols;
7049 # Now try linking the two files.
7050 mv conftest.$ac_objext conftstm.$ac_objext
7051 lt_save_LIBS="$LIBS"
7052 lt_save_CFLAGS="$CFLAGS"
7053 LIBS="conftstm.$ac_objext"
7054 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7062 LIBS="$lt_save_LIBS"
7063 CFLAGS="$lt_save_CFLAGS"
7065 echo "cannot find nm_test_func in $nlist" >&5
7068 echo "cannot find nm_test_var in $nlist" >&5
7071 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7074 echo "$progname: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7077 rm -rf conftest* conftst*
7079 # Do not use the global_symbol_pipe unless it works.
7080 if test "$pipe_works" = yes; then
7083 lt_cv_sys_global_symbol_pipe=
7089 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7090 lt_cv_sys_global_symbol_to_cdecl=
7092 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7093 { echo "$as_me:$LINENO: result: failed" >&5
7094 echo "${ECHO_T}failed" >&6; }
7096 { echo "$as_me:$LINENO: result: ok" >&5
7097 echo "${ECHO_T}ok" >&6; }
7121 # Check whether --enable-libtool-lock was given.
7122 if test "${enable_libtool_lock+set}" = set; then
7123 enableval=$enable_libtool_lock;
7126 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7128 # Some flags need to be propagated to the compiler or linker for good
7132 # Find out which ABI we are using.
7133 echo 'int i;' > conftest.$ac_ext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135 (eval $ac_compile) 2>&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; then
7139 case `/usr/bin/file conftest.$ac_objext` in
7151 # Find out which ABI we are using.
7152 echo '#line 7152 "configure"' > conftest.$ac_ext
7153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); }; then
7158 if test "$lt_cv_prog_gnu_ld" = yes; then
7159 case `/usr/bin/file conftest.$ac_objext` in
7161 LD="${LD-ld} -melf32bsmip"
7164 LD="${LD-ld} -melf32bmipn32"
7167 LD="${LD-ld} -melf64bmip"
7171 case `/usr/bin/file conftest.$ac_objext` in
7187 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7188 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7189 # Find out which ABI we are using.
7190 echo 'int i;' > conftest.$ac_ext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192 (eval $ac_compile) 2>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; then
7196 case `/usr/bin/file conftest.o` in
7199 x86_64-*kfreebsd*-gnu)
7200 LD="${LD-ld} -m elf_i386_fbsd"
7203 LD="${LD-ld} -m elf_i386"
7205 ppc64-*linux*|powerpc64-*linux*)
7206 LD="${LD-ld} -m elf32ppclinux"
7209 LD="${LD-ld} -m elf_s390"
7212 LD="${LD-ld} -m elf32_sparc"
7218 x86_64-*kfreebsd*-gnu)
7219 LD="${LD-ld} -m elf_x86_64_fbsd"
7222 LD="${LD-ld} -m elf_x86_64"
7224 ppc*-*linux*|powerpc*-*linux*)
7225 LD="${LD-ld} -m elf64ppc"
7227 s390*-*linux*|s390*-*tpf*)
7228 LD="${LD-ld} -m elf64_s390"
7231 LD="${LD-ld} -m elf64_sparc"
7241 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7242 SAVE_CFLAGS="$CFLAGS"
7243 CFLAGS="$CFLAGS -belf"
7244 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7245 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7246 if test "${lt_cv_cc_needs_belf+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_cpp='$CPP $CPPFLAGS'
7251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255 cat >conftest.$ac_ext <<_ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (ac_try="$ac_link"
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_link") 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest$ac_exeext &&
7287 $as_test_x conftest$ac_exeext; then
7288 lt_cv_cc_needs_belf=yes
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 lt_cv_cc_needs_belf=no
7296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7297 conftest$ac_exeext conftest.$ac_ext
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7306 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7307 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7308 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7309 CFLAGS="$SAVE_CFLAGS"
7313 # Find out which ABI we are using.
7314 echo 'int i;' > conftest.$ac_ext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; then
7320 case `/usr/bin/file conftest.o` in
7322 case $lt_cv_prog_gnu_ld in
7323 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7325 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7337 need_locks="$enable_libtool_lock"
7341 rhapsody* | darwin*)
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 if test -n "$DSYMUTIL"; then
7351 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7360 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7371 if test -n "$DSYMUTIL"; then
7372 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7373 echo "${ECHO_T}$DSYMUTIL" >&6; }
7375 { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7381 if test -z "$ac_cv_prog_DSYMUTIL"; then
7382 ac_ct_DSYMUTIL=$DSYMUTIL
7383 # Extract the first word of "dsymutil", so it can be a program name with args.
7384 set dummy dsymutil; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 if test -n "$ac_ct_DSYMUTIL"; then
7391 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7411 if test -n "$ac_ct_DSYMUTIL"; then
7412 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7413 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7419 if test "x$ac_ct_DSYMUTIL" = x; then
7422 case $cross_compiling:$ac_tool_warned in
7424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7425 whose name does not start with the host triplet. If you think this
7426 configuration is useful to you, please write to autoconf@gnu.org." >&5
7427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7428 whose name does not start with the host triplet. If you think this
7429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7430 ac_tool_warned=yes ;;
7432 DSYMUTIL=$ac_ct_DSYMUTIL
7435 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7438 if test -n "$ac_tool_prefix"; then
7439 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7443 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 if test -n "$NMEDIT"; then
7447 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 NMEDIT=$ac_cv_prog_NMEDIT
7467 if test -n "$NMEDIT"; then
7468 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7469 echo "${ECHO_T}$NMEDIT" >&6; }
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7477 if test -z "$ac_cv_prog_NMEDIT"; then
7478 ac_ct_NMEDIT=$NMEDIT
7479 # Extract the first word of "nmedit", so it can be a program name with args.
7480 set dummy nmedit; ac_word=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 if test -n "$ac_ct_NMEDIT"; then
7487 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7507 if test -n "$ac_ct_NMEDIT"; then
7508 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7509 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7511 { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7515 if test "x$ac_ct_NMEDIT" = x; then
7518 case $cross_compiling:$ac_tool_warned in
7520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7521 whose name does not start with the host triplet. If you think this
7522 configuration is useful to you, please write to autoconf@gnu.org." >&5
7523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7524 whose name does not start with the host triplet. If you think this
7525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7526 ac_tool_warned=yes ;;
7528 NMEDIT=$ac_ct_NMEDIT
7531 NMEDIT="$ac_cv_prog_NMEDIT"
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_prog_LIPO+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 if test -n "$LIPO"; then
7543 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 LIPO=$ac_cv_prog_LIPO
7563 if test -n "$LIPO"; then
7564 { echo "$as_me:$LINENO: result: $LIPO" >&5
7565 echo "${ECHO_T}$LIPO" >&6; }
7567 { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7573 if test -z "$ac_cv_prog_LIPO"; then
7575 # Extract the first word of "lipo", so it can be a program name with args.
7576 set dummy lipo; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 if test -n "$ac_ct_LIPO"; then
7583 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_ac_ct_LIPO="lipo"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7603 if test -n "$ac_ct_LIPO"; then
7604 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7605 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7607 { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7611 if test "x$ac_ct_LIPO" = x; then
7614 case $cross_compiling:$ac_tool_warned in
7616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7617 whose name does not start with the host triplet. If you think this
7618 configuration is useful to you, please write to autoconf@gnu.org." >&5
7619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7620 whose name does not start with the host triplet. If you think this
7621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7622 ac_tool_warned=yes ;;
7627 LIPO="$ac_cv_prog_LIPO"
7630 if test -n "$ac_tool_prefix"; then
7631 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7632 set dummy ${ac_tool_prefix}otool; ac_word=$2
7633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635 if test "${ac_cv_prog_OTOOL+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 if test -n "$OTOOL"; then
7639 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 OTOOL=$ac_cv_prog_OTOOL
7659 if test -n "$OTOOL"; then
7660 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7661 echo "${ECHO_T}$OTOOL" >&6; }
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7669 if test -z "$ac_cv_prog_OTOOL"; then
7671 # Extract the first word of "otool", so it can be a program name with args.
7672 set dummy otool; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 if test -n "$ac_ct_OTOOL"; then
7679 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_prog_ac_ct_OTOOL="otool"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7699 if test -n "$ac_ct_OTOOL"; then
7700 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7701 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7703 { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7707 if test "x$ac_ct_OTOOL" = x; then
7710 case $cross_compiling:$ac_tool_warned in
7712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7713 whose name does not start with the host triplet. If you think this
7714 configuration is useful to you, please write to autoconf@gnu.org." >&5
7715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7716 whose name does not start with the host triplet. If you think this
7717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7718 ac_tool_warned=yes ;;
7723 OTOOL="$ac_cv_prog_OTOOL"
7726 if test -n "$ac_tool_prefix"; then
7727 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 if test -n "$OTOOL64"; then
7735 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 OTOOL64=$ac_cv_prog_OTOOL64
7755 if test -n "$OTOOL64"; then
7756 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7757 echo "${ECHO_T}$OTOOL64" >&6; }
7759 { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7765 if test -z "$ac_cv_prog_OTOOL64"; then
7766 ac_ct_OTOOL64=$OTOOL64
7767 # Extract the first word of "otool64", so it can be a program name with args.
7768 set dummy otool64; ac_word=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 if test -n "$ac_ct_OTOOL64"; then
7775 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_ac_ct_OTOOL64="otool64"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7795 if test -n "$ac_ct_OTOOL64"; then
7796 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7797 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7799 { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7803 if test "x$ac_ct_OTOOL64" = x; then
7806 case $cross_compiling:$ac_tool_warned in
7808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7809 whose name does not start with the host triplet. If you think this
7810 configuration is useful to you, please write to autoconf@gnu.org." >&5
7811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7812 whose name does not start with the host triplet. If you think this
7813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7814 ac_tool_warned=yes ;;
7816 OTOOL64=$ac_ct_OTOOL64
7819 OTOOL64="$ac_cv_prog_OTOOL64"
7848 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7849 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7850 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 lt_cv_apple_cc_single_mod=no
7854 if test -z "${LT_MULTI_MODULE}"; then
7855 # By default we will add the -single_module flag. You can override
7856 # by either setting the environment variable LT_MULTI_MODULE
7857 # non-empty at configure time, or by adding -multi_module to the
7859 rm -rf libconftest.dylib*
7860 echo "int foo(void){return 1;}" > conftest.c
7861 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862 -dynamiclib -Wl,-single_module conftest.c" >&5
7863 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7864 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7866 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7867 lt_cv_apple_cc_single_mod=yes
7869 cat conftest.err >&5
7871 rm -rf libconftest.dylib*
7875 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7876 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7877 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7878 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7879 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 lt_cv_ld_exported_symbols_list=no
7883 save_LDFLAGS=$LDFLAGS
7884 echo "_main" > conftest.sym
7885 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (ac_try="$ac_link"
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_link") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest$ac_exeext &&
7918 $as_test_x conftest$ac_exeext; then
7919 lt_cv_ld_exported_symbols_list=yes
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7924 lt_cv_ld_exported_symbols_list=no
7927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7928 conftest$ac_exeext conftest.$ac_ext
7929 LDFLAGS="$save_LDFLAGS"
7932 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7933 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7935 rhapsody* | darwin1.[012])
7936 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7938 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7939 darwin*) # darwin 5.x on
7940 # if running on 10.5 or later, the deployment target defaults
7941 # to the OS version, if on x86, and 10.4, the deployment
7942 # target defaults to 10.4. Don't you love it?
7943 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7944 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7945 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7947 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7953 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7954 _lt_dar_single_mod='$single_module'
7956 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7957 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7959 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7961 if test "$DSYMUTIL" != ":"; then
7962 _lt_dsymutil='~$DSYMUTIL $lib || :'
7969 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7970 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7971 if test "${ac_cv_header_stdc+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_compile") 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } && {
8007 test -z "$ac_c_werror_flag" ||
8008 test ! -s conftest.err
8009 } && test -s conftest.$ac_objext; then
8010 ac_cv_header_stdc=yes
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 ac_cv_header_stdc=no
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 if test $ac_cv_header_stdc = yes; then
8021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8022 cat >conftest.$ac_ext <<_ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8032 $EGREP "memchr" >/dev/null 2>&1; then
8035 ac_cv_header_stdc=no
8041 if test $ac_cv_header_stdc = yes; then
8042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8053 $EGREP "free" >/dev/null 2>&1; then
8056 ac_cv_header_stdc=no
8062 if test $ac_cv_header_stdc = yes; then
8063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8064 if test "$cross_compiling" = yes; then
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8075 #if ((' ' & 0x0FF) == 0x020)
8076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8079 # define ISLOWER(c) \
8080 (('a' <= (c) && (c) <= 'i') \
8081 || ('j' <= (c) && (c) <= 'r') \
8082 || ('s' <= (c) && (c) <= 'z'))
8083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8091 for (i = 0; i < 256; i++)
8092 if (XOR (islower (i), ISLOWER (i))
8093 || toupper (i) != TOUPPER (i))
8098 rm -f conftest$ac_exeext
8099 if { (ac_try="$ac_link"
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_link") 2>&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8109 { (case "(($ac_try" in
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_try") 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8120 echo "$as_me: program exited with status $ac_status" >&5
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8125 ac_cv_header_stdc=no
8127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8133 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8134 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8135 if test $ac_cv_header_stdc = yes; then
8137 cat >>confdefs.h <<\_ACEOF
8138 #define STDC_HEADERS 1
8143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8154 inttypes.h stdint.h unistd.h
8156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 $ac_includes_default
8170 #include <$ac_header>
8172 rm -f conftest.$ac_objext
8173 if { (ac_try="$ac_compile"
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8179 (eval "$ac_compile") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest.$ac_objext; then
8189 eval "$as_ac_Header=yes"
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 eval "$as_ac_Header=no"
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 ac_res=`eval echo '${'$as_ac_Header'}'`
8200 { echo "$as_me:$LINENO: result: $ac_res" >&5
8201 echo "${ECHO_T}$ac_res" >&6; }
8202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8203 cat >>confdefs.h <<_ACEOF
8204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8213 for ac_header in dlfcn.h
8215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $ac_includes_default
8229 #include <$ac_header>
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_compile") 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && {
8245 test -z "$ac_c_werror_flag" ||
8246 test ! -s conftest.err
8247 } && test -s conftest.$ac_objext; then
8248 eval "$as_ac_Header=yes"
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8253 eval "$as_ac_Header=no"
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 ac_res=`eval echo '${'$as_ac_Header'}'`
8259 { echo "$as_me:$LINENO: result: $ac_res" >&5
8260 echo "${ECHO_T}$ac_res" >&6; }
8261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8262 cat >>confdefs.h <<_ACEOF
8263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8273 ac_cpp='$CXXCPP $CPPFLAGS'
8274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8277 if test -z "$CXX"; then
8278 if test -n "$CCC"; then
8281 if test -n "$ac_tool_prefix"; then
8282 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8288 if test "${ac_cv_prog_CXX+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 if test -n "$CXX"; then
8292 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 test -z "$as_dir" && as_dir=.
8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8301 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 if test -n "$CXX"; then
8313 { echo "$as_me:$LINENO: result: $CXX" >&5
8314 echo "${ECHO_T}$CXX" >&6; }
8316 { echo "$as_me:$LINENO: result: no" >&5
8317 echo "${ECHO_T}no" >&6; }
8321 test -n "$CXX" && break
8324 if test -z "$CXX"; then
8326 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8328 # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy $ac_prog; ac_word=$2
8330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 if test -n "$ac_ct_CXX"; then
8336 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_ac_ct_CXX="$ac_prog"
8346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8356 if test -n "$ac_ct_CXX"; then
8357 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8358 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8360 { echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6; }
8365 test -n "$ac_ct_CXX" && break
8368 if test "x$ac_ct_CXX" = x; then
8371 case $cross_compiling:$ac_tool_warned in
8373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8374 whose name does not start with the host triplet. If you think this
8375 configuration is useful to you, please write to autoconf@gnu.org." >&5
8376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8377 whose name does not start with the host triplet. If you think this
8378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8379 ac_tool_warned=yes ;;
8387 # Provide some information about the compiler.
8388 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8389 ac_compiler=`set X $ac_compile; echo $2`
8390 { (ac_try="$ac_compiler --version >&5"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compiler --version >&5") 2>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }
8400 { (ac_try="$ac_compiler -v >&5"
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compiler -v >&5") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }
8410 { (ac_try="$ac_compiler -V >&5"
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_compiler -V >&5") 2>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }
8421 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8422 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8423 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_compile") 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_cxx_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest.$ac_objext; then
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8473 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8474 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8475 GXX=`test $ac_compiler_gnu = yes && echo yes`
8476 ac_test_CXXFLAGS=${CXXFLAGS+set}
8477 ac_save_CXXFLAGS=$CXXFLAGS
8478 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8479 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8480 if test "${ac_cv_prog_cxx_g+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8484 ac_cxx_werror_flag=yes
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_compile") 2>conftest.er1
8511 grep -v '^ *+' conftest.er1 >conftest.err
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } && {
8516 test -z "$ac_cxx_werror_flag" ||
8517 test ! -s conftest.err
8518 } && test -s conftest.$ac_objext; then
8519 ac_cv_prog_cxx_g=yes
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_compile") 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_cxx_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest.$ac_objext; then
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8564 cat >conftest.$ac_ext <<_ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_compile") 2>conftest.er1
8588 grep -v '^ *+' conftest.er1 >conftest.err
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } && {
8593 test -z "$ac_cxx_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest.$ac_objext; then
8596 ac_cv_prog_cxx_g=yes
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8614 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8615 if test "$ac_test_CXXFLAGS" = set; then
8616 CXXFLAGS=$ac_save_CXXFLAGS
8617 elif test $ac_cv_prog_cxx_g = yes; then
8618 if test "$GXX" = yes; then
8624 if test "$GXX" = yes; then
8631 ac_cpp='$CPP $CPPFLAGS'
8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8636 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8637 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8638 (test "X$CXX" != "Xg++"))) ; then
8640 ac_cpp='$CXXCPP $CPPFLAGS'
8641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8644 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8645 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8646 if test -z "$CXXCPP"; then
8647 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 # Double quotes because CXXCPP needs to be expanded
8651 for CXXCPP in "$CXX -E" "/lib/cpp"
8654 for ac_cxx_preproc_warn_flag in '' yes
8656 # Use a header file that comes with gcc, so configuring glibc
8657 # with a fresh cross-compiler works.
8658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8659 # <limits.h> exists even on freestanding compilers.
8660 # On the NeXT, cc -E runs the code through the compiler's parser,
8661 # not just through cpp. "Syntax error" is here to catch this case.
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8669 # include <limits.h>
8671 # include <assert.h>
8675 if { (ac_try="$ac_cpp conftest.$ac_ext"
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } >/dev/null && {
8688 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8689 test ! -s conftest.err
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 # Broken: fails on valid input.
8700 rm -f conftest.err conftest.$ac_ext
8702 # OK, works on sane cases. Now check whether nonexistent headers
8703 # can be detected and how.
8704 cat >conftest.$ac_ext <<_ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8710 #include <ac_nonexistent.h>
8712 if { (ac_try="$ac_cpp conftest.$ac_ext"
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8720 grep -v '^ *+' conftest.er1 >conftest.err
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } >/dev/null && {
8725 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8726 test ! -s conftest.err
8728 # Broken: success on invalid input.
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 # Passes both tests.
8739 rm -f conftest.err conftest.$ac_ext
8742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8743 rm -f conftest.err conftest.$ac_ext
8744 if $ac_preproc_ok; then
8749 ac_cv_prog_CXXCPP=$CXXCPP
8752 CXXCPP=$ac_cv_prog_CXXCPP
8754 ac_cv_prog_CXXCPP=$CXXCPP
8756 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8757 echo "${ECHO_T}$CXXCPP" >&6; }
8759 for ac_cxx_preproc_warn_flag in '' yes
8761 # Use a header file that comes with gcc, so configuring glibc
8762 # with a fresh cross-compiler works.
8763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8764 # <limits.h> exists even on freestanding compilers.
8765 # On the NeXT, cc -E runs the code through the compiler's parser,
8766 # not just through cpp. "Syntax error" is here to catch this case.
8767 cat >conftest.$ac_ext <<_ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8774 # include <limits.h>
8776 # include <assert.h>
8780 if { (ac_try="$ac_cpp conftest.$ac_ext"
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } >/dev/null && {
8793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8794 test ! -s conftest.err
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 # Broken: fails on valid input.
8805 rm -f conftest.err conftest.$ac_ext
8807 # OK, works on sane cases. Now check whether nonexistent headers
8808 # can be detected and how.
8809 cat >conftest.$ac_ext <<_ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 #include <ac_nonexistent.h>
8817 if { (ac_try="$ac_cpp conftest.$ac_ext"
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8825 grep -v '^ *+' conftest.er1 >conftest.err
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } >/dev/null && {
8830 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8831 test ! -s conftest.err
8833 # Broken: success on invalid input.
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 # Passes both tests.
8844 rm -f conftest.err conftest.$ac_ext
8847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8848 rm -f conftest.err conftest.$ac_ext
8849 if $ac_preproc_ok; then
8852 _lt_caught_CXX_error=yes
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862 _lt_caught_CXX_error=yes
8870 # Check whether --enable-shared was given.
8871 if test "${enable_shared+set}" = set; then
8872 enableval=$enable_shared; p=${PACKAGE-default}
8874 yes) enable_shared=yes ;;
8875 no) enable_shared=no ;;
8878 # Look at the argument we got. We use all the common list separators.
8879 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8880 for pkg in $enableval; do
8882 if test "X$pkg" = "X$p"; then
8899 # Check whether --enable-static was given.
8900 if test "${enable_static+set}" = set; then
8901 enableval=$enable_static; p=${PACKAGE-default}
8903 yes) enable_static=yes ;;
8904 no) enable_static=no ;;
8907 # Look at the argument we got. We use all the common list separators.
8908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8909 for pkg in $enableval; do
8911 if test "X$pkg" = "X$p"; then
8940 # Check whether --with-pic was given.
8941 if test "${with_pic+set}" = set; then
8942 withval=$with_pic; pic_mode="$withval"
8948 test -z "$pic_mode" && pic_mode=default
8956 # Check whether --enable-fast-install was given.
8957 if test "${enable_fast_install+set}" = set; then
8958 enableval=$enable_fast_install; p=${PACKAGE-default}
8960 yes) enable_fast_install=yes ;;
8961 no) enable_fast_install=no ;;
8963 enable_fast_install=no
8964 # Look at the argument we got. We use all the common list separators.
8965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8966 for pkg in $enableval; do
8968 if test "X$pkg" = "X$p"; then
8969 enable_fast_install=yes
8976 enable_fast_install=yes
8989 # This can be used to rebuild libtool when needed
8990 LIBTOOL_DEPS="$ltmain"
8992 # Always use our own libtool.
8993 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9019 test -z "$LN_S" && LN_S="ln -s"
9034 if test -n "${ZSH_VERSION+set}" ; then
9035 setopt NO_GLOB_SUBST
9038 { echo "$as_me:$LINENO: checking for objdir" >&5
9039 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9040 if test "${lt_cv_objdir+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 rm -f .libs 2>/dev/null
9044 mkdir .libs 2>/dev/null
9045 if test -d .libs; then
9048 # MS-DOS does not allow filenames that begin with a dot.
9051 rmdir .libs 2>/dev/null
9053 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9054 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9055 objdir=$lt_cv_objdir
9061 cat >>confdefs.h <<_ACEOF
9062 #define LT_OBJDIR "$lt_cv_objdir/"
9083 # AIX sometimes has problems with the GCC collect2 program. For some
9084 # reason, if we set the COLLECT_NAMES environment variable, the problems
9085 # vanish in a puff of smoke.
9086 if test "X${COLLECT_NAMES+set}" != Xset; then
9088 export COLLECT_NAMES
9093 # Sed substitution that helps us do robust quoting. It backslashifies
9094 # metacharacters that are still active within double-quoted strings.
9095 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9097 # Same as above, but do not quote variable references.
9098 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9100 # Sed substitution to delay expansion of an escaped shell variable in a
9101 # double_quote_subst'ed string.
9102 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9104 # Sed substitution to delay expansion of an escaped single quote.
9105 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9107 # Sed substitution to avoid accidental globbing in evaled expressions
9108 no_glob_subst='s/\*/\\\*/g'
9112 can_build_shared=yes
9114 # All known linkers require a `.a' archive for static linking (except MSVC,
9115 # which needs '.lib').
9118 with_gnu_ld="$lt_cv_prog_gnu_ld"
9121 old_CFLAGS="$CFLAGS"
9123 # Set sane defaults for various variables
9124 test -z "$CC" && CC=cc
9125 test -z "$LTCC" && LTCC=$CC
9126 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9127 test -z "$LD" && LD=ld
9128 test -z "$ac_objext" && ac_objext=o
9130 for cc_temp in $compiler""; do
9132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9138 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9141 # Only perform the check for file, if the check method requires it
9142 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9143 case $deplibs_check_method in
9145 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9146 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9147 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9148 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9156 lt_save_MAGIC_CMD="$MAGIC_CMD"
9157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9158 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9159 for ac_dir in $ac_dummy; do
9161 test -z "$ac_dir" && ac_dir=.
9162 if test -f $ac_dir/${ac_tool_prefix}file; then
9163 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9164 if test -n "$file_magic_test_file"; then
9165 case $deplibs_check_method in
9167 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9169 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9170 $EGREP "$file_magic_regex" > /dev/null; then
9175 *** Warning: the command libtool uses to detect shared libraries,
9176 *** $file_magic_cmd, produces output that libtool cannot recognize.
9177 *** The result is that libtool may fail to recognize shared libraries
9178 *** as such. This will affect the creation of libtool libraries that
9179 *** depend on shared libraries, but programs linked with such libtool
9180 *** libraries will work regardless of this problem. Nevertheless, you
9181 *** may want to report the problem to your system manager and/or to
9182 *** bug-libtool@gnu.org
9192 MAGIC_CMD="$lt_save_MAGIC_CMD"
9197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9198 if test -n "$MAGIC_CMD"; then
9199 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9200 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9202 { echo "$as_me:$LINENO: result: no" >&5
9203 echo "${ECHO_T}no" >&6; }
9210 if test -z "$lt_cv_path_MAGIC_CMD"; then
9211 if test -n "$ac_tool_prefix"; then
9212 { echo "$as_me:$LINENO: checking for file" >&5
9213 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9222 lt_save_MAGIC_CMD="$MAGIC_CMD"
9223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9225 for ac_dir in $ac_dummy; do
9227 test -z "$ac_dir" && ac_dir=.
9228 if test -f $ac_dir/file; then
9229 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9230 if test -n "$file_magic_test_file"; then
9231 case $deplibs_check_method in
9233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9236 $EGREP "$file_magic_regex" > /dev/null; then
9241 *** Warning: the command libtool uses to detect shared libraries,
9242 *** $file_magic_cmd, produces output that libtool cannot recognize.
9243 *** The result is that libtool may fail to recognize shared libraries
9244 *** as such. This will affect the creation of libtool libraries that
9245 *** depend on shared libraries, but programs linked with such libtool
9246 *** libraries will work regardless of this problem. Nevertheless, you
9247 *** may want to report the problem to your system manager and/or to
9248 *** bug-libtool@gnu.org
9258 MAGIC_CMD="$lt_save_MAGIC_CMD"
9263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9264 if test -n "$MAGIC_CMD"; then
9265 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9268 { echo "$as_me:$LINENO: result: no" >&5
9269 echo "${ECHO_T}no" >&6; }
9282 # Use C for the default configuration in the libtool script
9286 ac_cpp='$CPP $CPPFLAGS'
9287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9292 # Source file extension for C test sources.
9295 # Object file extension for compiled C test sources.
9299 # Code to be used in simple compile tests
9300 lt_simple_compile_test_code="int some_variable = 0;"
9302 # Code to be used in simple link tests
9303 lt_simple_link_test_code='int main(){return(0);}'
9311 # If no C compiler was specified, use CC.
9314 # If no C compiler flags were specified, use CFLAGS.
9315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9317 # Allow CC to be a program name with arguments.
9320 # Save the default compiler, since it gets overwritten when the other
9321 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9322 compiler_DEFAULT=$CC
9324 # save warnings/boilerplate of simple test code
9325 ac_outfile=conftest.$ac_objext
9326 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9327 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9328 _lt_compiler_boilerplate=`cat conftest.err`
9331 ac_outfile=conftest.$ac_objext
9332 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9333 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9334 _lt_linker_boilerplate=`cat conftest.err`
9339 ## There is no encapsulation within the following macros, do not change
9340 ## the running order or otherwise move them around unless you know exactly
9341 ## what you are doing...
9342 if test -n "$compiler"; then
9344 lt_prog_compiler_no_builtin_flag=
9346 if test "$GCC" = yes; then
9347 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9349 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9350 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9351 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 lt_cv_prog_compiler_rtti_exceptions=no
9355 ac_outfile=conftest.$ac_objext
9356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9357 lt_compiler_flag="-fno-rtti -fno-exceptions"
9358 # Insert the option either (1) after the last *FLAGS variable, or
9359 # (2) before a word containing "conftest.", or (3) at the end.
9360 # Note that $ac_compile itself does not contain backslashes and begins
9361 # with a dollar sign (not a hyphen), so the echo should work correctly.
9362 # The option is referenced via a variable to avoid confusing sed.
9363 lt_compile=`echo "$ac_compile" | $SED \
9364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9366 -e 's:$: $lt_compiler_flag:'`
9367 (eval echo "\"\$as_me:9367: $lt_compile\"" >&5)
9368 (eval "$lt_compile" 2>conftest.err)
9370 cat conftest.err >&5
9371 echo "$as_me:9371: \$? = $ac_status" >&5
9372 if (exit $ac_status) && test -s "$ac_outfile"; then
9373 # The compiler can only warn and ignore the option if not recognized
9374 # So say no if there are warnings other than the usual output.
9375 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9378 lt_cv_prog_compiler_rtti_exceptions=yes
9384 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9385 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9387 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9388 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9400 lt_prog_compiler_wl=
9401 lt_prog_compiler_pic=
9402 lt_prog_compiler_static=
9404 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9405 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9407 if test "$GCC" = yes; then
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_static='-static'
9413 # All AIX code is PIC.
9414 if test "$host_cpu" = ia64; then
9415 # AIX 5 now supports IA64 processor
9416 lt_prog_compiler_static='-Bstatic'
9423 # see comment about AmigaOS4 .so support
9424 lt_prog_compiler_pic='-fPIC'
9427 # FIXME: we need at least 68020 code to build shared libraries, but
9428 # adding the `-m68020' flag to GCC prevents building anything better,
9430 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9435 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9436 # PIC is the default for these OSes.
9439 mingw* | cygwin* | pw32* | os2* | cegcc*)
9440 # This hack is so that the source file can tell whether it is being
9441 # built for inclusion in a dll (and should export symbols for example).
9442 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9443 # (--disable-auto-import) libraries
9444 lt_prog_compiler_pic='-DDLL_EXPORT'
9447 darwin* | rhapsody*)
9448 # PIC is the default on this platform
9449 # Common symbols not allowed in MH_DYLIB files
9450 lt_prog_compiler_pic='-fno-common'
9454 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9455 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9456 # sets the default TLS model and affects inlining.
9462 lt_prog_compiler_pic='-fPIC'
9468 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9469 # Instead, we relocate shared libraries at runtime.
9473 # Just because we use GCC doesn't mean we suddenly get shared libraries
9474 # on systems that don't support them.
9475 lt_prog_compiler_can_build_shared=no
9480 # QNX uses GNU C++, but need to define -shared option too, otherwise
9482 lt_prog_compiler_pic='-fPIC -shared'
9486 if test -d /usr/nec; then
9487 lt_prog_compiler_pic=-Kconform_pic
9492 lt_prog_compiler_pic='-fPIC'
9496 # PORTME Check for flag to pass linker flags through the system compiler.
9499 lt_prog_compiler_wl='-Wl,'
9500 if test "$host_cpu" = ia64; then
9501 # AIX 5 now supports IA64 processor
9502 lt_prog_compiler_static='-Bstatic'
9504 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9508 mingw* | cygwin* | pw32* | os2* | cegcc*)
9509 # This hack is so that the source file can tell whether it is being
9510 # built for inclusion in a dll (and should export symbols for example).
9511 lt_prog_compiler_pic='-DDLL_EXPORT'
9514 hpux9* | hpux10* | hpux11*)
9515 lt_prog_compiler_wl='-Wl,'
9516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9523 lt_prog_compiler_pic='+Z'
9526 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9527 lt_prog_compiler_static='${wl}-a ${wl}archive'
9530 irix5* | irix6* | nonstopux*)
9531 lt_prog_compiler_wl='-Wl,'
9532 # PIC (with -KPIC) is the default.
9533 lt_prog_compiler_static='-non_shared'
9536 linux* | k*bsd*-gnu)
9537 case $cc_basename in
9538 # old Intel for x86_64 which still supported -KPIC.
9540 lt_prog_compiler_wl='-Wl,'
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-static'
9544 # icc used to be incompatible with GCC.
9545 # ICC 10 doesn't accept -KPIC any more.
9547 lt_prog_compiler_wl='-Wl,'
9548 lt_prog_compiler_pic='-fPIC'
9549 lt_prog_compiler_static='-static'
9551 # Lahey Fortran 8.1.
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_pic='--shared'
9555 lt_prog_compiler_static='--static'
9557 pgcc* | pgf77* | pgf90* | pgf95*)
9558 # Portland Group compilers (*not* the Pentium gcc compiler,
9559 # which looks to be a dead project)
9560 lt_prog_compiler_wl='-Wl,'
9561 lt_prog_compiler_pic='-fpic'
9562 lt_prog_compiler_static='-Bstatic'
9565 lt_prog_compiler_wl='-Wl,'
9566 # All Alpha code is PIC.
9567 lt_prog_compiler_static='-non_shared'
9570 # IBM XL C 8.0/Fortran 10.1 on PPC
9571 lt_prog_compiler_wl='-Wl,'
9572 lt_prog_compiler_pic='-qpic'
9573 lt_prog_compiler_static='-qstaticlink'
9576 case `$CC -V 2>&1 | sed 5q` in
9579 lt_prog_compiler_pic='-KPIC'
9580 lt_prog_compiler_static='-Bstatic'
9581 lt_prog_compiler_wl='-Wl,'
9584 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9585 lt_prog_compiler_pic='-KPIC'
9586 lt_prog_compiler_static='-Bstatic'
9587 lt_prog_compiler_wl=''
9595 lt_prog_compiler_pic='-KPIC'
9596 lt_prog_compiler_static='-Bstatic'
9600 # QNX uses GNU C++, but need to define -shared option too, otherwise
9602 lt_prog_compiler_pic='-fPIC -shared'
9605 osf3* | osf4* | osf5*)
9606 lt_prog_compiler_wl='-Wl,'
9607 # All OSF/1 code is PIC.
9608 lt_prog_compiler_static='-non_shared'
9612 lt_prog_compiler_static='-non_shared'
9616 lt_prog_compiler_pic='-KPIC'
9617 lt_prog_compiler_static='-Bstatic'
9618 case $cc_basename in
9620 lt_prog_compiler_wl='-Qoption ld ';;
9622 lt_prog_compiler_wl='-Wl,';;
9627 lt_prog_compiler_wl='-Qoption ld '
9628 lt_prog_compiler_pic='-PIC'
9629 lt_prog_compiler_static='-Bstatic'
9632 sysv4 | sysv4.2uw2* | sysv4.3*)
9633 lt_prog_compiler_wl='-Wl,'
9634 lt_prog_compiler_pic='-KPIC'
9635 lt_prog_compiler_static='-Bstatic'
9639 if test -d /usr/nec ;then
9640 lt_prog_compiler_pic='-Kconform_pic'
9641 lt_prog_compiler_static='-Bstatic'
9645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9646 lt_prog_compiler_wl='-Wl,'
9647 lt_prog_compiler_pic='-KPIC'
9648 lt_prog_compiler_static='-Bstatic'
9652 lt_prog_compiler_wl='-Wl,'
9653 lt_prog_compiler_can_build_shared=no
9657 lt_prog_compiler_pic='-pic'
9658 lt_prog_compiler_static='-Bstatic'
9662 lt_prog_compiler_can_build_shared=no
9668 # For platforms which do not support PIC, -DPIC is meaningless:
9670 lt_prog_compiler_pic=
9673 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9676 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9677 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9685 # Check to make sure the PIC flag actually works.
9687 if test -n "$lt_prog_compiler_pic"; then
9688 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9689 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9690 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 lt_cv_prog_compiler_pic_works=no
9694 ac_outfile=conftest.$ac_objext
9695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9696 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9697 # Insert the option either (1) after the last *FLAGS variable, or
9698 # (2) before a word containing "conftest.", or (3) at the end.
9699 # Note that $ac_compile itself does not contain backslashes and begins
9700 # with a dollar sign (not a hyphen), so the echo should work correctly.
9701 # The option is referenced via a variable to avoid confusing sed.
9702 lt_compile=`echo "$ac_compile" | $SED \
9703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9705 -e 's:$: $lt_compiler_flag:'`
9706 (eval echo "\"\$as_me:9706: $lt_compile\"" >&5)
9707 (eval "$lt_compile" 2>conftest.err)
9709 cat conftest.err >&5
9710 echo "$as_me:9710: \$? = $ac_status" >&5
9711 if (exit $ac_status) && test -s "$ac_outfile"; then
9712 # The compiler can only warn and ignore the option if not recognized
9713 # So say no if there are warnings other than the usual output.
9714 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9717 lt_cv_prog_compiler_pic_works=yes
9723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9724 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9726 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9727 case $lt_prog_compiler_pic in
9729 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9732 lt_prog_compiler_pic=
9733 lt_prog_compiler_can_build_shared=no
9744 # Check to make sure the static flag actually works.
9746 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9747 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9749 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 lt_cv_prog_compiler_static_works=no
9753 save_LDFLAGS="$LDFLAGS"
9754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9757 # The linker can only warn and ignore the option if not recognized
9758 # So say no if there are warnings
9759 if test -s conftest.err; then
9760 # Append any errors to the config.log.
9761 cat conftest.err 1>&5
9762 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9764 if diff conftest.exp conftest.er2 >/dev/null; then
9765 lt_cv_prog_compiler_static_works=yes
9768 lt_cv_prog_compiler_static_works=yes
9772 LDFLAGS="$save_LDFLAGS"
9775 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9776 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9778 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9781 lt_prog_compiler_static=
9790 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 lt_cv_prog_compiler_c_o=no
9796 $RM -r conftest 2>/dev/null
9800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802 lt_compiler_flag="-o out/conftest2.$ac_objext"
9803 # Insert the option either (1) after the last *FLAGS variable, or
9804 # (2) before a word containing "conftest.", or (3) at the end.
9805 # Note that $ac_compile itself does not contain backslashes and begins
9806 # with a dollar sign (not a hyphen), so the echo should work correctly.
9807 lt_compile=`echo "$ac_compile" | $SED \
9808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9810 -e 's:$: $lt_compiler_flag:'`
9811 (eval echo "\"\$as_me:9811: $lt_compile\"" >&5)
9812 (eval "$lt_compile" 2>out/conftest.err)
9814 cat out/conftest.err >&5
9815 echo "$as_me:9815: \$? = $ac_status" >&5
9816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9818 # The compiler can only warn and ignore the option if not recognized
9819 # So say no if there are warnings
9820 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9823 lt_cv_prog_compiler_c_o=yes
9828 # SGI C++ compiler will create directory out/ii_files/ for
9829 # template instantiation
9830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9831 $RM out/* && rmdir out
9837 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9838 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9845 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9846 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9847 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 lt_cv_prog_compiler_c_o=no
9851 $RM -r conftest 2>/dev/null
9855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9857 lt_compiler_flag="-o out/conftest2.$ac_objext"
9858 # Insert the option either (1) after the last *FLAGS variable, or
9859 # (2) before a word containing "conftest.", or (3) at the end.
9860 # Note that $ac_compile itself does not contain backslashes and begins
9861 # with a dollar sign (not a hyphen), so the echo should work correctly.
9862 lt_compile=`echo "$ac_compile" | $SED \
9863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9865 -e 's:$: $lt_compiler_flag:'`
9866 (eval echo "\"\$as_me:9866: $lt_compile\"" >&5)
9867 (eval "$lt_compile" 2>out/conftest.err)
9869 cat out/conftest.err >&5
9870 echo "$as_me:9870: \$? = $ac_status" >&5
9871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9873 # The compiler can only warn and ignore the option if not recognized
9874 # So say no if there are warnings
9875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9878 lt_cv_prog_compiler_c_o=yes
9883 # SGI C++ compiler will create directory out/ii_files/ for
9884 # template instantiation
9885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9886 $RM out/* && rmdir out
9892 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9893 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9898 hard_links="nottested"
9899 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9900 # do not overwrite the value of need_locks provided by the user
9901 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9902 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9907 ln conftest.a conftest.b 2>&5 || hard_links=no
9908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9909 { echo "$as_me:$LINENO: result: $hard_links" >&5
9910 echo "${ECHO_T}$hard_links" >&6; }
9911 if test "$hard_links" = no; then
9912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9913 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9925 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9929 allow_undefined_flag=
9930 always_export_symbols=no
9932 archive_expsym_cmds=
9933 compiler_needs_object=no
9934 enable_shared_with_static_runtimes=no
9935 export_dynamic_flag_spec=
9936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9937 hardcode_automatic=no
9939 hardcode_direct_absolute=no
9940 hardcode_libdir_flag_spec=
9941 hardcode_libdir_flag_spec_ld=
9942 hardcode_libdir_separator=
9944 hardcode_shlibpath_var=unsupported
9946 link_all_deplibs=unknown
9949 old_archive_from_new_cmds=
9950 old_archive_from_expsyms_cmds=
9951 thread_safe_flag_spec=
9952 whole_archive_flag_spec=
9953 # include_expsyms should be a list of space-separated symbols to be *always*
9954 # included in the symbol list
9956 # exclude_expsyms can be an extended regexp of symbols to exclude
9957 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9958 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9959 # as well as any symbol that contains `d'.
9960 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9961 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9962 # platforms (ab)use it in PIC code, but their linkers get confused if
9963 # the symbol is explicitly referenced. Since portable code cannot
9964 # rely on this symbol name, it's probably fine to never include it in
9965 # preloaded symbol tables.
9966 # Exclude shared library initialization/finalization symbols.
9967 extract_expsyms_cmds=
9970 cygwin* | mingw* | pw32* | cegcc*)
9971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9972 # When not using gcc, we currently assume that we are using
9973 # Microsoft Visual C++.
9974 if test "$GCC" != yes; then
9979 # we just hope/assume this is gcc and not c89 (= MSVC++)
9988 if test "$with_gnu_ld" = yes; then
9989 # If archive_cmds runs LD, not CC, wlarc should be empty
9992 # Set some defaults for GNU ld with shared library support. These
9993 # are reset later if shared libraries are not supported. Putting them
9994 # here allows them to be overridden if necessary.
9995 runpath_var=LD_RUN_PATH
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 export_dynamic_flag_spec='${wl}--export-dynamic'
9998 # ancient GNU ld didn't support --whole-archive et. al.
9999 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10000 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10002 whole_archive_flag_spec=
10004 supports_anon_versioning=no
10005 case `$LD -v 2>&1` in
10006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10009 *\ 2.11.*) ;; # other 2.11 versions
10010 *) supports_anon_versioning=yes ;;
10013 # See if GNU ld supports shared libraries.
10016 # On AIX/PPC, the GNU linker is very broken
10017 if test "$host_cpu" != ia64; then
10021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10022 *** to be unable to reliably create shared libraries on AIX.
10023 *** Therefore, libtool is disabling shared libraries support. If you
10024 *** really care for shared libraries, you may want to modify your PATH
10025 *** so that a non-GNU linker is found, and then restart.
10034 # see comment about AmigaOS4 .so support
10035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10036 archive_expsym_cmds=''
10039 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)'
10040 hardcode_libdir_flag_spec='-L$libdir'
10041 hardcode_minus_L=yes
10047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10048 allow_undefined_flag=unsupported
10049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10050 # support --undefined. This deserves some investigation. FIXME
10051 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 cygwin* | mingw* | pw32* | cegcc*)
10058 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10059 # as there is no search path for DLLs.
10060 hardcode_libdir_flag_spec='-L$libdir'
10061 allow_undefined_flag=unsupported
10062 always_export_symbols=no
10063 enable_shared_with_static_runtimes=yes
10064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10068 # If the export-symbols file already is a .def file (1st line
10069 # is EXPORTS), use it as is; otherwise, prepend...
10070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10071 cp $export_symbols $output_objdir/$soname.def;
10073 echo EXPORTS > $output_objdir/$soname.def;
10074 cat $export_symbols >> $output_objdir/$soname.def;
10076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10084 hardcode_shlibpath_var=no
10085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086 export_dynamic_flag_spec='${wl}-E'
10087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10088 # Instead, shared libraries are loaded at an image base (0x10000000 by
10089 # default) and relocated if they conflict, which is a slow very memory
10090 # consuming and fragmenting process. To avoid this, we pick a random,
10091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10094 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'
10097 gnu* | linux* | tpf* | k*bsd*-gnu)
10099 if test "$host_os" = linux-dietlibc; then
10100 case $cc_basename in
10101 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10104 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10105 && test "$tmp_diet" = no
10108 tmp_sharedflag='-shared'
10109 case $cc_basename,$host_cpu in
10110 pgcc*) # Portland Group C compiler
10111 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'
10112 tmp_addflag=' $pic_flag'
10114 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10115 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'
10116 tmp_addflag=' $pic_flag -Mnomain' ;;
10117 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10118 tmp_addflag=' -i_dynamic' ;;
10119 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10120 tmp_addflag=' -i_dynamic -nofor_main' ;;
10121 ifc* | ifort*) # Intel Fortran compiler
10122 tmp_addflag=' -nofor_main' ;;
10123 lf95*) # Lahey Fortran 8.1
10124 whole_archive_flag_spec=
10125 tmp_sharedflag='--shared' ;;
10126 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10127 tmp_sharedflag='-qmkshrobj'
10130 case `$CC -V 2>&1 | sed 5q` in
10131 *Sun\ C*) # Sun C 5.9
10132 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'
10133 compiler_needs_object=yes
10134 tmp_sharedflag='-G' ;;
10135 *Sun\ F*) # Sun Fortran 8.3
10136 tmp_sharedflag='-G' ;;
10138 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 if test "x$supports_anon_versioning" = xyes; then
10141 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10142 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10143 echo "local: *; };" >> $output_objdir/$libname.ver~
10144 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10147 case $cc_basename in
10149 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10150 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10151 hardcode_libdir_flag_spec=
10152 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10153 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10154 if test "x$supports_anon_versioning" = xyes; then
10155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10157 echo "local: *; };" >> $output_objdir/$libname.ver~
10158 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10169 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10178 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10183 *** create shared libraries on Solaris systems. Therefore, libtool
10184 *** is disabling shared libraries support. We urge you to upgrade GNU
10185 *** binutils to release 2.9.1 or newer. Another option is to modify
10186 *** your PATH or compiler configuration so that the native linker is
10187 *** used, and then restart.
10190 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10199 case `$LD -v 2>&1` in
10200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10204 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10205 *** reliably create shared libraries on SCO systems. Therefore, libtool
10206 *** is disabling shared libraries support. We urge you to upgrade GNU
10207 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10208 *** your PATH or compiler configuration so that the native linker is
10209 *** used, and then restart.
10214 # For security reasons, it is highly recommended that you always
10215 # use absolute paths for naming shared libraries, and exclude the
10216 # DT_RUNPATH tag from executables and libraries. But doing so
10217 # requires that you compile everything twice, which is a pain.
10218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10230 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_direct=yes
10233 hardcode_shlibpath_var=no
10237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10246 if test "$ld_shlibs" = no; then
10248 hardcode_libdir_flag_spec=
10249 export_dynamic_flag_spec=
10250 whole_archive_flag_spec=
10253 # PORTME fill in a description of your system's linker (not GNU ld)
10256 allow_undefined_flag=unsupported
10257 always_export_symbols=yes
10258 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'
10259 # Note: this linker hardcodes the directories in LIBPATH if there
10260 # are no directories specified by -L.
10261 hardcode_minus_L=yes
10262 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10263 # Neither direct hardcoding nor static linking is supported with a
10265 hardcode_direct=unsupported
10270 if test "$host_cpu" = ia64; then
10271 # On IA64, the linker does run time linking by default, so we don't
10272 # have to do anything special.
10273 aix_use_runtimelinking=no
10274 exp_sym_flag='-Bexport'
10277 # If we're using GNU nm, then we don't want the "-C" option.
10278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10279 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10280 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'
10282 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'
10284 aix_use_runtimelinking=no
10286 # Test if we are trying to use run time linking or normal
10287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10288 # need to do runtime linking.
10289 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10290 for ld_flag in $LDFLAGS; do
10291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10292 aix_use_runtimelinking=yes
10299 exp_sym_flag='-bexport'
10300 no_entry_flag='-bnoentry'
10303 # When large executables or shared objects are built, AIX ld can
10304 # have problems creating the table of contents. If linking a library
10305 # or program results in "error TOC overflow" add -mminimal-toc to
10306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10310 hardcode_direct=yes
10311 hardcode_direct_absolute=yes
10312 hardcode_libdir_separator=':'
10313 link_all_deplibs=yes
10314 file_list_spec='${wl}-f,'
10316 if test "$GCC" = yes; then
10317 case $host_os in aix4.[012]|aix4.[012].*)
10318 # We only want to do this on AIX 4.2 and lower, the check
10319 # below for broken collect2 doesn't work under 4.3+
10320 collect2name=`${CC} -print-prog-name=collect2`
10321 if test -f "$collect2name" &&
10322 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10324 # We have reworked collect2
10327 # We have old collect2
10328 hardcode_direct=unsupported
10329 # It fails to find uninstalled libraries when the uninstalled
10330 # path is not listed in the libpath. Setting hardcode_minus_L
10331 # to unsupported forces relinking
10332 hardcode_minus_L=yes
10333 hardcode_libdir_flag_spec='-L$libdir'
10334 hardcode_libdir_separator=
10338 shared_flag='-shared'
10339 if test "$aix_use_runtimelinking" = yes; then
10340 shared_flag="$shared_flag "'${wl}-G'
10344 if test "$host_cpu" = ia64; then
10345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10346 # chokes on -Wl,-G. The following line is correct:
10349 if test "$aix_use_runtimelinking" = yes; then
10350 shared_flag='${wl}-G'
10352 shared_flag='${wl}-bM:SRE'
10357 export_dynamic_flag_spec='${wl}-bexpall'
10358 # It seems that -bexpall does not export symbols beginning with
10359 # underscore (_), so it is better to generate a list of symbols to export.
10360 always_export_symbols=yes
10361 if test "$aix_use_runtimelinking" = yes; then
10362 # Warning - without using the other runtime loading flags (-brtl),
10363 # -berok will link without error, but may produce a broken library.
10364 allow_undefined_flag='-berok'
10365 # Determine the default libpath from the value encoded in an
10366 # empty executable.
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_link") 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && {
10396 test -z "$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest$ac_exeext &&
10399 $as_test_x conftest$ac_exeext; then
10401 lt_aix_libpath_sed='
10402 /Import File Strings/,/^$/ {
10408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10409 # Check for a 64-bit object if we didn't find anything.
10410 if test -z "$aix_libpath"; then
10411 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421 conftest$ac_exeext conftest.$ac_ext
10422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10425 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"
10427 if test "$host_cpu" = ia64; then
10428 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10429 allow_undefined_flag="-z nodefs"
10430 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"
10432 # Determine the default libpath from the value encoded in an
10433 # empty executable.
10434 cat >conftest.$ac_ext <<_ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10458 grep -v '^ *+' conftest.er1 >conftest.err
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } && {
10463 test -z "$ac_c_werror_flag" ||
10464 test ! -s conftest.err
10465 } && test -s conftest$ac_exeext &&
10466 $as_test_x conftest$ac_exeext; then
10468 lt_aix_libpath_sed='
10469 /Import File Strings/,/^$/ {
10475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10476 # Check for a 64-bit object if we didn't find anything.
10477 if test -z "$aix_libpath"; then
10478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10488 conftest$ac_exeext conftest.$ac_ext
10489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10491 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10492 # Warning - without using the other run time loading flags,
10493 # -berok will link without error, but may produce a broken library.
10494 no_undefined_flag=' ${wl}-bernotok'
10495 allow_undefined_flag=' ${wl}-berok'
10496 # Exported symbols can be pulled into shared objects from archives
10497 whole_archive_flag_spec='$convenience'
10498 archive_cmds_need_lc=yes
10499 # This is similar to how AIX traditionally builds its shared libraries.
10500 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'
10508 # see comment about AmigaOS4 .so support
10509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10510 archive_expsym_cmds=''
10513 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)'
10514 hardcode_libdir_flag_spec='-L$libdir'
10515 hardcode_minus_L=yes
10521 export_dynamic_flag_spec=-rdynamic
10524 cygwin* | mingw* | pw32* | cegcc*)
10525 # When not using gcc, we currently assume that we are using
10526 # Microsoft Visual C++.
10527 # hardcode_libdir_flag_spec is actually meaningless, as there is
10528 # no search path for DLLs.
10529 hardcode_libdir_flag_spec=' '
10530 allow_undefined_flag=unsupported
10531 # Tell ltmain to make .lib files, not .a files.
10533 # Tell ltmain to make .dll files, not .so files.
10535 # FIXME: Setting linknames here is a bad hack.
10536 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10537 # The linker will automatically build a .lib file if we build a DLL.
10538 old_archive_from_new_cmds='true'
10539 # FIXME: Should let the user specify the lib program.
10540 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10541 fix_srcfile_path='`cygpath -w "$srcfile"`'
10542 enable_shared_with_static_runtimes=yes
10545 darwin* | rhapsody*)
10548 archive_cmds_need_lc=no
10550 hardcode_automatic=yes
10551 hardcode_shlibpath_var=unsupported
10552 whole_archive_flag_spec=''
10553 link_all_deplibs=yes
10554 allow_undefined_flag="$_lt_dar_allow_undefined"
10555 case $cc_basename in
10556 ifort*) _lt_dar_can_shared=yes ;;
10557 *) _lt_dar_can_shared=$GCC ;;
10559 if test "$_lt_dar_can_shared" = "yes"; then
10560 output_verbose_link_cmd=echo
10561 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10562 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10563 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}"
10564 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}"
10573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574 hardcode_libdir_flag_spec='-L$libdir'
10575 hardcode_shlibpath_var=no
10582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10583 # support. Future versions do this automatically, but an explicit c++rt0.o
10584 # does not break anything, and helps significantly (at the cost of a little
10587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10588 hardcode_libdir_flag_spec='-R$libdir'
10589 hardcode_direct=yes
10590 hardcode_shlibpath_var=no
10593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10596 hardcode_direct=yes
10597 hardcode_minus_L=yes
10598 hardcode_shlibpath_var=no
10601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10602 freebsd* | dragonfly*)
10603 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10604 hardcode_libdir_flag_spec='-R$libdir'
10605 hardcode_direct=yes
10606 hardcode_shlibpath_var=no
10610 if test "$GCC" = yes; then
10611 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'
10613 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'
10615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10616 hardcode_libdir_separator=:
10617 hardcode_direct=yes
10619 # hardcode_minus_L: Not really in the search PATH,
10620 # but as the default location of the library.
10621 hardcode_minus_L=yes
10622 export_dynamic_flag_spec='${wl}-E'
10626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10627 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10629 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10631 if test "$with_gnu_ld" = no; then
10632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10633 hardcode_libdir_flag_spec_ld='+b $libdir'
10634 hardcode_libdir_separator=:
10635 hardcode_direct=yes
10636 hardcode_direct_absolute=yes
10637 export_dynamic_flag_spec='${wl}-E'
10638 # hardcode_minus_L: Not really in the search PATH,
10639 # but as the default location of the library.
10640 hardcode_minus_L=yes
10645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10648 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10654 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10660 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10666 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10670 if test "$with_gnu_ld" = no; then
10671 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10672 hardcode_libdir_separator=:
10677 hardcode_shlibpath_var=no
10680 hardcode_direct=yes
10681 hardcode_direct_absolute=yes
10682 export_dynamic_flag_spec='${wl}-E'
10684 # hardcode_minus_L: Not really in the search PATH,
10685 # but as the default location of the library.
10686 hardcode_minus_L=yes
10692 irix5* | irix6* | nonstopux*)
10693 if test "$GCC" = yes; then
10694 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'
10695 # Try to use the -exported_symbol ld option, if it does not
10696 # work, assume that -exports_file does not work either and
10697 # implicitly export all symbols.
10698 save_LDFLAGS="$LDFLAGS"
10699 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10700 cat >conftest.$ac_ext <<_ACEOF
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (ac_try="$ac_link"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_link") 2>conftest.er1
10712 grep -v '^ *+' conftest.er1 >conftest.err
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest$ac_exeext &&
10720 $as_test_x conftest$ac_exeext; then
10721 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'
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731 conftest$ac_exeext conftest.$ac_ext
10732 LDFLAGS="$save_LDFLAGS"
10734 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'
10735 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'
10737 archive_cmds_need_lc='no'
10738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10739 hardcode_libdir_separator=:
10741 link_all_deplibs=yes
10745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10748 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10750 hardcode_libdir_flag_spec='-R$libdir'
10751 hardcode_direct=yes
10752 hardcode_shlibpath_var=no
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_direct=yes
10758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10759 hardcode_libdir_separator=:
10760 hardcode_shlibpath_var=no
10767 if test -f /usr/libexec/ld.so; then
10768 hardcode_direct=yes
10769 hardcode_shlibpath_var=no
10770 hardcode_direct_absolute=yes
10771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10774 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10775 export_dynamic_flag_spec='${wl}-E'
10778 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10780 hardcode_libdir_flag_spec='-R$libdir'
10783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10784 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10794 hardcode_libdir_flag_spec='-L$libdir'
10795 hardcode_minus_L=yes
10796 allow_undefined_flag=unsupported
10797 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'
10798 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10802 if test "$GCC" = yes; then
10803 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10804 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'
10806 allow_undefined_flag=' -expect_unresolved \*'
10807 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'
10809 archive_cmds_need_lc='no'
10810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811 hardcode_libdir_separator=:
10814 osf4* | osf5*) # as osf3* with the addition of -msym flag
10815 if test "$GCC" = yes; then
10816 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10817 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
10818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10820 allow_undefined_flag=' -expect_unresolved \*'
10821 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'
10822 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~
10823 $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'
10825 # Both c and cxx compiler support -rpath directly
10826 hardcode_libdir_flag_spec='-rpath $libdir'
10828 archive_cmds_need_lc='no'
10829 hardcode_libdir_separator=:
10833 no_undefined_flag=' -z defs'
10834 if test "$GCC" = yes; then
10836 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10837 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10840 case `$CC -V 2>&1` in
10843 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10845 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10849 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10850 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10851 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10855 hardcode_libdir_flag_spec='-R$libdir'
10856 hardcode_shlibpath_var=no
10858 solaris2.[0-5] | solaris2.[0-5].*) ;;
10860 # The compiler driver will combine and reorder linker options,
10861 # but understands `-z linker_flag'. GCC discards it without `$wl',
10862 # but is careful enough not to reorder.
10863 # Supported since Solaris 2.6 (maybe 2.5.1?)
10864 if test "$GCC" = yes; then
10865 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10867 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10871 link_all_deplibs=yes
10875 if test "x$host_vendor" = xsequent; then
10876 # Use $CC to link under sequent, because it throws in some extra .o
10877 # files that make .init and .fini sections work.
10878 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10880 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10882 hardcode_libdir_flag_spec='-L$libdir'
10883 hardcode_direct=yes
10884 hardcode_minus_L=yes
10885 hardcode_shlibpath_var=no
10889 case $host_vendor in
10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892 hardcode_direct=yes # is this really true???
10895 ## LD is ld it makes a PLAMLIB
10896 ## CC just makes a GrossModule.
10897 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10898 reload_cmds='$CC -r -o $output$reload_objs'
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10906 runpath_var='LD_RUN_PATH'
10907 hardcode_shlibpath_var=no
10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 hardcode_shlibpath_var=no
10913 export_dynamic_flag_spec='-Bexport'
10917 if test -d /usr/nec; then
10918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919 hardcode_shlibpath_var=no
10920 runpath_var=LD_RUN_PATH
10921 hardcode_runpath_var=yes
10926 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10927 no_undefined_flag='${wl}-z,text'
10928 archive_cmds_need_lc=no
10929 hardcode_shlibpath_var=no
10930 runpath_var='LD_RUN_PATH'
10932 if test "$GCC" = yes; then
10933 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10936 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10941 sysv5* | sco3.2v5* | sco5v6*)
10942 # Note: We can NOT use -z defs as we might desire, because we do not
10943 # link with -lc, and that would cause any symbols used from libc to
10944 # always be unresolved, which means just about no library would
10945 # ever link correctly. If we're not using GNU ld we use -z text
10946 # though, which does catch some bad symbols but isn't as heavy-handed
10948 no_undefined_flag='${wl}-z,text'
10949 allow_undefined_flag='${wl}-z,nodefs'
10950 archive_cmds_need_lc=no
10951 hardcode_shlibpath_var=no
10952 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10953 hardcode_libdir_separator=':'
10954 link_all_deplibs=yes
10955 export_dynamic_flag_spec='${wl}-Bexport'
10956 runpath_var='LD_RUN_PATH'
10958 if test "$GCC" = yes; then
10959 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10969 hardcode_libdir_flag_spec='-L$libdir'
10970 hardcode_shlibpath_var=no
10978 if test x$host_vendor = xsni; then
10980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10981 export_dynamic_flag_spec='${wl}-Blargedynsym'
10987 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10988 echo "${ECHO_T}$ld_shlibs" >&6; }
10989 test "$ld_shlibs" = no && can_build_shared=no
10991 with_gnu_ld=$with_gnu_ld
11008 # Do we need to explicitly link libc?
11010 case "x$archive_cmds_need_lc" in
11012 # Assume -lc should be added
11013 archive_cmds_need_lc=yes
11015 if test "$enable_shared" = yes && test "$GCC" = yes; then
11016 case $archive_cmds in
11018 # FIXME: we may have to deal with multi-command sequences.
11021 # Test whether the compiler implicitly links with -lc since on some
11022 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11023 # to ld, don't add -lc before -lgcc.
11024 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11025 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } 2>conftest.err; then
11036 libobjs=conftest.$ac_objext
11038 wl=$lt_prog_compiler_wl
11039 pic_flag=$lt_prog_compiler_pic
11045 lt_save_allow_undefined_flag=$allow_undefined_flag
11046 allow_undefined_flag=
11047 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11048 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }
11053 archive_cmds_need_lc=no
11055 archive_cmds_need_lc=yes
11057 allow_undefined_flag=$lt_save_allow_undefined_flag
11059 cat conftest.err 1>&5
11062 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11063 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11226 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11227 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11229 if test "$GCC" = yes; then
11231 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11232 *) lt_awk_arg="/^libraries:/" ;;
11234 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11235 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11236 # if the path contains ";" then we assume it to be the separator
11237 # otherwise default to the standard path separator (i.e. ":") - it is
11238 # assumed that no part of a normal pathname contains ";" but that should
11239 # okay in the real world where ";" in dirpaths is itself problematic.
11240 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11242 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11244 # Ok, now we have the path, separated by spaces, we can step through it
11245 # and add multilib dir if necessary.
11246 lt_tmp_lt_search_path_spec=
11247 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11248 for lt_sys_path in $lt_search_path_spec; do
11249 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11250 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11252 test -d "$lt_sys_path" && \
11253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11256 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11257 BEGIN {RS=" "; FS="/|\n";} {
11260 for (lt_i = NF; lt_i > 0; lt_i--) {
11261 if ($lt_i != "" && $lt_i != ".") {
11262 if ($lt_i == "..") {
11265 if (lt_count == 0) {
11266 lt_foo="/" $lt_i lt_foo;
11273 if (lt_foo != "") { lt_freq[lt_foo]++; }
11274 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11276 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11278 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11280 library_names_spec=
11281 libname_spec='lib$name'
11285 postuninstall_cmds=
11289 shlibpath_overrides_runpath=unknown
11291 dynamic_linker="$host_os ld.so"
11292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11293 need_lib_prefix=unknown
11294 hardcode_into_libs=no
11296 # when you set need_version to no, make sure it does not cause -set_version
11297 # flags to be left without arguments
11298 need_version=unknown
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11304 shlibpath_var=LIBPATH
11306 # AIX 3 has no versioning support, so we append a major version to the name.
11307 soname_spec='${libname}${release}${shared_ext}$major'
11314 hardcode_into_libs=yes
11315 if test "$host_cpu" = ia64; then
11316 # AIX 5 supports IA64
11317 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11318 shlibpath_var=LD_LIBRARY_PATH
11320 # With GCC up to 2.95.x, collect2 would create an import file
11321 # for dependence libraries. The import file would start with
11322 # the line `#! .'. This would cause the generated library to
11323 # depend on `.', always an invalid library. This was fixed in
11324 # development snapshots of GCC prior to 3.0.
11326 aix4 | aix4.[01] | aix4.[01].*)
11327 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11329 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11332 can_build_shared=no
11336 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11337 # soname into executable. Probably we can add versioning support to
11338 # collect2, so additional links can be useful in future.
11339 if test "$aix_use_runtimelinking" = yes; then
11340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11341 # instead of lib<name>.a to let people know that these are not
11342 # typical AIX shared libraries.
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 # We preserve .a as extension for shared libraries through AIX4.2
11346 # and later when we are not doing run time linking.
11347 library_names_spec='${libname}${release}.a $libname.a'
11348 soname_spec='${libname}${release}${shared_ext}$major'
11350 shlibpath_var=LIBPATH
11357 # Since July 2007 AmigaOS4 officially supports .so libraries.
11358 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11362 library_names_spec='$libname.ixlibrary $libname.a'
11363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11364 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'
11370 library_names_spec='${libname}${shared_ext}'
11371 dynamic_linker="$host_os ld.so"
11372 shlibpath_var=LIBRARY_PATH
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11384 # the default ld.so.conf also contains /usr/contrib/lib and
11385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11386 # libtool to hard-code these into programs
11389 cygwin* | mingw* | pw32* | cegcc*)
11390 version_type=windows
11395 case $GCC,$host_os in
11396 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11397 library_names_spec='$libname.dll.a'
11398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11399 postinstall_cmds='base_file=`basename \${file}`~
11400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11401 dldir=$destdir/`dirname \$dlpath`~
11402 test -d \$dldir || mkdir -p \$dldir~
11403 $install_prog $dir/$dlname \$dldir/$dlname~
11404 chmod a+x \$dldir/$dlname~
11405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409 dlpath=$dir/\$dldll~
11411 shlibpath_overrides_runpath=yes
11415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11420 # MinGW DLLs use traditional 'lib' prefix
11421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11423 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11424 # It is most probably a Windows format PATH printed by
11425 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11426 # path with ; separators, and with drive letters. We can handle the
11427 # drive letters (cygwin fileutils understands them), so leave them,
11428 # especially as we might pass files found there to a mingw objdump,
11429 # which wouldn't understand a cygwinified path. Ahh.
11430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11432 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11436 # pw32 DLLs use 'pw' prefix rather than 'lib'
11437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11446 dynamic_linker='Win32 ld.exe'
11447 # FIXME: first we should search . and the directory the executable is in
11451 darwin* | rhapsody*)
11452 dynamic_linker="$host_os dyld"
11453 version_type=darwin
11456 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11457 soname_spec='${libname}${release}${major}$shared_ext'
11458 shlibpath_overrides_runpath=yes
11459 shlibpath_var=DYLD_LIBRARY_PATH
11460 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11479 freebsd* | dragonfly*)
11480 # DragonFly does not have aout. When/if they implement a new
11481 # versioning mechanism, adjust this.
11482 if test -x /usr/bin/objformat; then
11483 objformat=`/usr/bin/objformat`
11486 freebsd[123]*) objformat=aout ;;
11487 *) objformat=elf ;;
11490 version_type=freebsd-$objformat
11491 case $version_type in
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11502 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=yes
11507 freebsd3.[01]* | freebsdelf3.[01]*)
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11511 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11512 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11513 shlibpath_overrides_runpath=no
11514 hardcode_into_libs=yes
11516 *) # from 4.6 on, and DragonFly
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 hardcode_into_libs=yes
11533 hpux9* | hpux10* | hpux11*)
11534 # Give a soname corresponding to the major version so that dld.sl refuses to
11535 # link against other versions.
11542 hardcode_into_libs=yes
11543 dynamic_linker="$host_os dld.so"
11544 shlibpath_var=LD_LIBRARY_PATH
11545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 if test "X$HPUX_IA64_MODE" = X32; then
11549 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11551 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11557 hardcode_into_libs=yes
11558 dynamic_linker="$host_os dld.sl"
11559 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11568 dynamic_linker="$host_os dld.sl"
11569 shlibpath_var=SHLIB_PATH
11570 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 soname_spec='${libname}${release}${shared_ext}$major'
11575 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11576 postinstall_cmds='chmod 555 $lib'
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 shlibpath_overrides_runpath=no
11588 hardcode_into_libs=yes
11591 irix5* | irix6* | nonstopux*)
11593 nonstopux*) version_type=nonstopux ;;
11595 if test "$lt_cv_prog_gnu_ld" = yes; then
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11606 irix5* | nonstopux*)
11607 libsuff= shlibsuff=
11610 case $LD in # libtool.m4 will add one of these switches to LD
11611 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11612 libsuff= shlibsuff= libmagic=32-bit;;
11613 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11614 libsuff=32 shlibsuff=N32 libmagic=N32;;
11615 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11616 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11617 *) libsuff= shlibsuff= libmagic=never-match;;
11621 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11622 shlibpath_overrides_runpath=no
11623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11625 hardcode_into_libs=yes
11628 # No shared lib support for Linux oldld, aout, or coff.
11629 linux*oldld* | linux*aout* | linux*coff*)
11633 # This must be Linux ELF.
11634 linux* | k*bsd*-gnu)
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=no
11643 # Some binutils ld are patched to set DT_RUNPATH
11644 save_LDFLAGS=$LDFLAGS
11645 save_libdir=$libdir
11646 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11647 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest$ac_exeext &&
11680 $as_test_x conftest$ac_exeext; then
11681 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11682 shlibpath_overrides_runpath=yes
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11693 conftest$ac_exeext conftest.$ac_ext
11694 LDFLAGS=$save_LDFLAGS
11695 libdir=$save_libdir
11697 # This implies no fast_install, which is unacceptable.
11698 # Some rework will be needed to allow for fast_install
11699 # before this can be enabled.
11700 hardcode_into_libs=yes
11702 # Append ld.so.conf contents to the search path
11703 if test -f /etc/ld.so.conf; then
11704 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' ' '`
11705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11708 # We used to test for /lib/ld.so.1 and disable shared libraries on
11709 # powerpc, because MkLinux only supported shared libraries with the
11710 # GNU dynamic linker. Since this was broken with cross compilers,
11711 # most powerpc-linux boxes support dynamic linking these days and
11712 # people can always --disable-shared, the test was removed, and we
11713 # assume the GNU/Linux dynamic linker is in use.
11714 dynamic_linker='GNU/Linux ld.so'
11721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11724 dynamic_linker='NetBSD (a.out) ld.so'
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 dynamic_linker='NetBSD ld.elf_so'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 shlibpath_overrides_runpath=yes
11732 hardcode_into_libs=yes
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 shlibpath_overrides_runpath=yes
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 soname_spec='${libname}${release}${shared_ext}$major'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=no
11750 hardcode_into_libs=yes
11751 dynamic_linker='ldqnx.so'
11756 sys_lib_dlsearch_path_spec="/usr/lib"
11758 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11760 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11761 *) need_version=no ;;
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11768 openbsd2.[89] | openbsd2.[89].*)
11769 shlibpath_overrides_runpath=no
11772 shlibpath_overrides_runpath=yes
11776 shlibpath_overrides_runpath=yes
11781 libname_spec='$name'
11784 library_names_spec='$libname${shared_ext} $libname.a'
11785 dynamic_linker='OS/2 ld.exe'
11786 shlibpath_var=LIBPATH
11789 osf3* | osf4* | osf5*)
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11812 hardcode_into_libs=yes
11813 # ldd complains unless libraries are executable
11814 postinstall_cmds='chmod +x $lib'
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11820 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 shlibpath_overrides_runpath=yes
11823 if test "$with_gnu_ld" = yes; then
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832 soname_spec='${libname}${release}${shared_ext}$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 case $host_vendor in
11836 shlibpath_overrides_runpath=no
11838 runpath_var=LD_RUN_PATH
11846 shlibpath_overrides_runpath=no
11847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11853 if test -d /usr/nec ;then
11855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11856 soname_spec='$libname${shared_ext}.$major'
11857 shlibpath_var=LD_LIBRARY_PATH
11861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11862 version_type=freebsd-elf
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 shlibpath_overrides_runpath=yes
11869 hardcode_into_libs=yes
11870 if test "$with_gnu_ld" = yes; then
11871 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11873 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11876 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11880 sys_lib_dlsearch_path_spec='/usr/lib'
11884 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11889 shlibpath_var=LD_LIBRARY_PATH
11890 shlibpath_overrides_runpath=no
11891 hardcode_into_libs=yes
11896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11897 soname_spec='${libname}${release}${shared_ext}$major'
11898 shlibpath_var=LD_LIBRARY_PATH
11905 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11906 echo "${ECHO_T}$dynamic_linker" >&6; }
11907 test "$dynamic_linker" = no && can_build_shared=no
11909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11910 if test "$GCC" = yes; then
11911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11914 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11915 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11917 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11918 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12007 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12008 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12010 if test -n "$hardcode_libdir_flag_spec" ||
12011 test -n "$runpath_var" ||
12012 test "X$hardcode_automatic" = "Xyes" ; then
12014 # We can hardcode non-existent directories.
12015 if test "$hardcode_direct" != no &&
12016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12017 # have to relink, otherwise we might link with an installed library
12018 # when we should be linking with a yet-to-be-installed one
12019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12020 test "$hardcode_minus_L" != no; then
12021 # Linking always hardcodes the temporary library directory.
12022 hardcode_action=relink
12024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12025 hardcode_action=immediate
12028 # We cannot hardcode anything, or else we can only hardcode existing
12030 hardcode_action=unsupported
12032 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12033 echo "${ECHO_T}$hardcode_action" >&6; }
12035 if test "$hardcode_action" = relink ||
12036 test "$inherit_rpath" = yes; then
12037 # Fast installation is not supported
12038 enable_fast_install=no
12039 elif test "$shlibpath_overrides_runpath" = yes ||
12040 test "$enable_shared" = no; then
12041 # Fast installation is not necessary
12042 enable_fast_install=needless
12050 if test "x$enable_dlopen" != xyes; then
12051 enable_dlopen=unknown
12052 enable_dlopen_self=unknown
12053 enable_dlopen_self_static=unknown
12060 lt_cv_dlopen="load_add_on"
12062 lt_cv_dlopen_self=yes
12065 mingw* | pw32* | cegcc*)
12066 lt_cv_dlopen="LoadLibrary"
12071 lt_cv_dlopen="dlopen"
12076 # if libdl is installed we need to link against it
12077 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12078 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 ac_check_lib_save_LIBS=$LIBS
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12091 /* Override any GCC internal prototype to avoid an error.
12092 Use char because int might match the return type of a GCC
12093 builtin and then its argument prototype would still apply. */
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest$ac_exeext &&
12123 $as_test_x conftest$ac_exeext; then
12124 ac_cv_lib_dl_dlopen=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_cv_lib_dl_dlopen=no
12132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12133 conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12137 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12138 if test $ac_cv_lib_dl_dlopen = yes; then
12139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12142 lt_cv_dlopen="dyld"
12144 lt_cv_dlopen_self=yes
12151 { echo "$as_me:$LINENO: checking for shl_load" >&5
12152 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12153 if test "${ac_cv_func_shl_load+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12164 #define shl_load innocuous_shl_load
12166 /* System header to define __stub macros and hopefully few prototypes,
12167 which can conflict with char shl_load (); below.
12168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169 <limits.h> exists even on freestanding compilers. */
12172 # include <limits.h>
12174 # include <assert.h>
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12186 /* The GNU C library defines this for functions which it implements
12187 to always fail with ENOSYS. Some functions are actually named
12188 something starting with __ and the normal name is an alias. */
12189 #if defined __stub_shl_load || defined __stub___shl_load
12196 return shl_load ();
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } && {
12215 test -z "$ac_c_werror_flag" ||
12216 test ! -s conftest.err
12217 } && test -s conftest$ac_exeext &&
12218 $as_test_x conftest$ac_exeext; then
12219 ac_cv_func_shl_load=yes
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_cv_func_shl_load=no
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228 conftest$ac_exeext conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12231 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12232 if test $ac_cv_func_shl_load = yes; then
12233 lt_cv_dlopen="shl_load"
12235 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12236 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12237 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 ac_check_lib_save_LIBS=$LIBS
12242 cat >conftest.$ac_ext <<_ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12259 return shl_load ();
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (ac_try="$ac_link"
12266 case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_link") 2>conftest.er1
12273 grep -v '^ *+' conftest.er1 >conftest.err
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest$ac_exeext &&
12281 $as_test_x conftest$ac_exeext; then
12282 ac_cv_lib_dld_shl_load=yes
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ac_cv_lib_dld_shl_load=no
12290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12295 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12296 if test $ac_cv_lib_dld_shl_load = yes; then
12297 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12299 { echo "$as_me:$LINENO: checking for dlopen" >&5
12300 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12301 if test "${ac_cv_func_dlopen+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 cat >conftest.$ac_ext <<_ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12312 #define dlopen innocuous_dlopen
12314 /* System header to define __stub macros and hopefully few prototypes,
12315 which can conflict with char dlopen (); below.
12316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12317 <limits.h> exists even on freestanding compilers. */
12320 # include <limits.h>
12322 # include <assert.h>
12327 /* Override any GCC internal prototype to avoid an error.
12328 Use char because int might match the return type of a GCC
12329 builtin and then its argument prototype would still apply. */
12334 /* The GNU C library defines this for functions which it implements
12335 to always fail with ENOSYS. Some functions are actually named
12336 something starting with __ and the normal name is an alias. */
12337 #if defined __stub_dlopen || defined __stub___dlopen
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (ac_try="$ac_link"
12351 case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_link") 2>conftest.er1
12358 grep -v '^ *+' conftest.er1 >conftest.err
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } && {
12363 test -z "$ac_c_werror_flag" ||
12364 test ! -s conftest.err
12365 } && test -s conftest$ac_exeext &&
12366 $as_test_x conftest$ac_exeext; then
12367 ac_cv_func_dlopen=yes
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12372 ac_cv_func_dlopen=no
12375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12376 conftest$ac_exeext conftest.$ac_ext
12378 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12379 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12380 if test $ac_cv_func_dlopen = yes; then
12381 lt_cv_dlopen="dlopen"
12383 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12384 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 ac_check_lib_save_LIBS=$LIBS
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12397 /* Override any GCC internal prototype to avoid an error.
12398 Use char because int might match the return type of a GCC
12399 builtin and then its argument prototype would still apply. */
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (ac_try="$ac_link"
12414 case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_link") 2>conftest.er1
12421 grep -v '^ *+' conftest.er1 >conftest.err
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_c_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest$ac_exeext &&
12429 $as_test_x conftest$ac_exeext; then
12430 ac_cv_lib_dl_dlopen=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_cv_lib_dl_dlopen=no
12438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12439 conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12442 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12443 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12444 if test $ac_cv_lib_dl_dlopen = yes; then
12445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12447 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12448 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12449 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-lsvld $LIBS"
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } && {
12490 test -z "$ac_c_werror_flag" ||
12491 test ! -s conftest.err
12492 } && test -s conftest$ac_exeext &&
12493 $as_test_x conftest$ac_exeext; then
12494 ac_cv_lib_svld_dlopen=yes
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_svld_dlopen=no
12502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12507 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12508 if test $ac_cv_lib_svld_dlopen = yes; then
12509 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12511 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12512 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12513 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 ac_check_lib_save_LIBS=$LIBS
12518 cat >conftest.$ac_ext <<_ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12535 return dld_link ();
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_link") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1 >conftest.err
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } && {
12554 test -z "$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12556 } && test -s conftest$ac_exeext &&
12557 $as_test_x conftest$ac_exeext; then
12558 ac_cv_lib_dld_dld_link=yes
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_cv_lib_dld_dld_link=no
12566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12570 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12571 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12572 if test $ac_cv_lib_dld_dld_link = yes; then
12573 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12594 if test "x$lt_cv_dlopen" != xno; then
12600 case $lt_cv_dlopen in
12602 save_CPPFLAGS="$CPPFLAGS"
12603 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12605 save_LDFLAGS="$LDFLAGS"
12606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12609 LIBS="$lt_cv_dlopen_libs $LIBS"
12611 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12612 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12613 if test "${lt_cv_dlopen_self+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 if test "$cross_compiling" = yes; then :
12617 lt_cv_dlopen_self=cross
12619 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12620 lt_status=$lt_dlunknown
12621 cat > conftest.$ac_ext <<_LT_EOF
12622 #line 12622 "configure"
12623 #include "confdefs.h"
12632 # define LT_DLGLOBAL RTLD_GLOBAL
12635 # define LT_DLGLOBAL DL_GLOBAL
12637 # define LT_DLGLOBAL 0
12641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12642 find out it does not work in some platform. */
12643 #ifndef LT_DLLAZY_OR_NOW
12645 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12648 # define LT_DLLAZY_OR_NOW DL_LAZY
12651 # define LT_DLLAZY_OR_NOW RTLD_NOW
12654 # define LT_DLLAZY_OR_NOW DL_NOW
12656 # define LT_DLLAZY_OR_NOW 0
12663 void fnord() { int i=42;}
12666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12667 int status = $lt_dlunknown;
12671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12672 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12673 /* dlclose (self); */
12681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12682 (eval $ac_link) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12686 (./conftest; exit; ) >&5 2>/dev/null
12688 case x$lt_status in
12689 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12690 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12691 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12694 # compilation failed
12695 lt_cv_dlopen_self=no
12702 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12703 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12705 if test "x$lt_cv_dlopen_self" = xyes; then
12706 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12707 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12708 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12709 if test "${lt_cv_dlopen_self_static+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 if test "$cross_compiling" = yes; then :
12713 lt_cv_dlopen_self_static=cross
12715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12716 lt_status=$lt_dlunknown
12717 cat > conftest.$ac_ext <<_LT_EOF
12718 #line 12718 "configure"
12719 #include "confdefs.h"
12728 # define LT_DLGLOBAL RTLD_GLOBAL
12731 # define LT_DLGLOBAL DL_GLOBAL
12733 # define LT_DLGLOBAL 0
12737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12738 find out it does not work in some platform. */
12739 #ifndef LT_DLLAZY_OR_NOW
12741 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12744 # define LT_DLLAZY_OR_NOW DL_LAZY
12747 # define LT_DLLAZY_OR_NOW RTLD_NOW
12750 # define LT_DLLAZY_OR_NOW DL_NOW
12752 # define LT_DLLAZY_OR_NOW 0
12759 void fnord() { int i=42;}
12762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12763 int status = $lt_dlunknown;
12767 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12768 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12769 /* dlclose (self); */
12777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778 (eval $ac_link) 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12782 (./conftest; exit; ) >&5 2>/dev/null
12784 case x$lt_status in
12785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12787 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12790 # compilation failed
12791 lt_cv_dlopen_self_static=no
12798 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12799 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12802 CPPFLAGS="$save_CPPFLAGS"
12803 LDFLAGS="$save_LDFLAGS"
12808 case $lt_cv_dlopen_self in
12809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12810 *) enable_dlopen_self=unknown ;;
12813 case $lt_cv_dlopen_self_static in
12814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12815 *) enable_dlopen_self_static=unknown ;;
12837 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12838 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12839 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12842 { echo "$as_me:$LINENO: result: yes" >&5
12843 echo "${ECHO_T}yes" >&6; }
12845 # FIXME - insert some real tests, host_os isn't really good enough
12848 if test -n "$STRIP" ; then
12849 striplib="$STRIP -x"
12850 old_striplib="$STRIP -S"
12851 { echo "$as_me:$LINENO: result: yes" >&5
12852 echo "${ECHO_T}yes" >&6; }
12854 { echo "$as_me:$LINENO: result: no" >&5
12855 echo "${ECHO_T}no" >&6; }
12859 { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12876 # Report which library types will actually be built
12877 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12878 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12879 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12880 echo "${ECHO_T}$can_build_shared" >&6; }
12882 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12883 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12884 test "$can_build_shared" = "no" && enable_shared=no
12886 # On AIX, shared libraries and static libraries use the same namespace, and
12887 # are all built from PIC.
12890 test "$enable_shared" = yes && enable_static=no
12891 if test -n "$RANLIB"; then
12892 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12893 postinstall_cmds='$RANLIB $lib'
12898 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12899 test "$enable_shared" = yes && enable_static=no
12903 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12904 echo "${ECHO_T}$enable_shared" >&6; }
12906 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12907 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12908 # Make sure either enable_shared or enable_static is yes.
12909 test "$enable_shared" = yes || enable_static=yes
12910 { echo "$as_me:$LINENO: result: $enable_static" >&5
12911 echo "${ECHO_T}$enable_static" >&6; }
12918 ac_cpp='$CPP $CPPFLAGS'
12919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927 ac_cpp='$CXXCPP $CPPFLAGS'
12928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12932 archive_cmds_need_lc_CXX=no
12933 allow_undefined_flag_CXX=
12934 always_export_symbols_CXX=no
12935 archive_expsym_cmds_CXX=
12936 compiler_needs_object_CXX=no
12937 export_dynamic_flag_spec_CXX=
12938 hardcode_direct_CXX=no
12939 hardcode_direct_absolute_CXX=no
12940 hardcode_libdir_flag_spec_CXX=
12941 hardcode_libdir_flag_spec_ld_CXX=
12942 hardcode_libdir_separator_CXX=
12943 hardcode_minus_L_CXX=no
12944 hardcode_shlibpath_var_CXX=unsupported
12945 hardcode_automatic_CXX=no
12946 inherit_rpath_CXX=no
12948 module_expsym_cmds_CXX=
12949 link_all_deplibs_CXX=unknown
12950 old_archive_cmds_CXX=$old_archive_cmds
12951 no_undefined_flag_CXX=
12952 whole_archive_flag_spec_CXX=
12953 enable_shared_with_static_runtimes_CXX=no
12955 # Source file extension for C++ test sources.
12958 # Object file extension for compiled C++ test sources.
12962 # No sense in running all these tests if we already determined that
12963 # the CXX compiler isn't working. Some variables (like enable_shared)
12964 # are currently assumed to apply to all compilers on this platform,
12965 # and will be corrupted by setting them based on a non-working compiler.
12966 if test "$_lt_caught_CXX_error" != yes; then
12967 # Code to be used in simple compile tests
12968 lt_simple_compile_test_code="int some_variable = 0;"
12970 # Code to be used in simple link tests
12971 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12980 # If no C compiler was specified, use CC.
12983 # If no C compiler flags were specified, use CFLAGS.
12984 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12986 # Allow CC to be a program name with arguments.
12990 # save warnings/boilerplate of simple test code
12991 ac_outfile=conftest.$ac_objext
12992 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12994 _lt_compiler_boilerplate=`cat conftest.err`
12997 ac_outfile=conftest.$ac_objext
12998 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13000 _lt_linker_boilerplate=`cat conftest.err`
13004 # Allow CC to be a program name with arguments.
13009 lt_save_with_gnu_ld=$with_gnu_ld
13010 lt_save_path_LD=$lt_cv_path_LD
13011 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13012 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13014 $as_unset lt_cv_prog_gnu_ld
13016 if test -n "${lt_cv_path_LDCXX+set}"; then
13017 lt_cv_path_LD=$lt_cv_path_LDCXX
13019 $as_unset lt_cv_path_LD
13021 test -z "${LDCXX+set}" || LD=$LDCXX
13025 for cc_temp in $compiler""; do
13027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13033 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13036 if test -n "$compiler"; then
13037 # We don't want -fno-exception when compiling C++ code, so set the
13038 # no_builtin_flag separately
13039 if test "$GXX" = yes; then
13040 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13042 lt_prog_compiler_no_builtin_flag_CXX=
13045 if test "$GXX" = yes; then
13046 # Set up default GNU C++ configuration
13050 # Check whether --with-gnu-ld was given.
13051 if test "${with_gnu_ld+set}" = set; then
13052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13058 if test "$GCC" = yes; then
13059 # Check if gcc -print-prog-name=ld gives a path.
13060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13064 # gcc leaves a trailing carriage return which upsets mingw
13065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13070 # Accept absolute paths.
13072 re_direlt='/[^/][^/]*/\.\./'
13073 # Canonicalize the pathname of ld
13074 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13075 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13076 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13078 test -z "$LD" && LD="$ac_prog"
13081 # If it fails, then pretend we aren't using GCC.
13085 # If it is relative, then search for the first ld in PATH.
13086 with_gnu_ld=unknown
13089 elif test "$with_gnu_ld" = yes; then
13090 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13096 if test "${lt_cv_path_LD+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 if test -z "$LD"; then
13100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13101 for ac_dir in $PATH; do
13103 test -z "$ac_dir" && ac_dir=.
13104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13105 lt_cv_path_LD="$ac_dir/$ac_prog"
13106 # Check to see if the program is GNU ld. I'd rather use --version,
13107 # but apparently some variants of GNU ld only accept -v.
13108 # Break only if it was the GNU/non-GNU ld that we prefer.
13109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13110 *GNU* | *'with BFD'*)
13111 test "$with_gnu_ld" != no && break
13114 test "$with_gnu_ld" != yes && break
13121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13125 LD="$lt_cv_path_LD"
13126 if test -n "$LD"; then
13127 { echo "$as_me:$LINENO: result: $LD" >&5
13128 echo "${ECHO_T}$LD" >&6; }
13130 { echo "$as_me:$LINENO: result: no" >&5
13131 echo "${ECHO_T}no" >&6; }
13133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13135 { (exit 1); exit 1; }; }
13136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13142 case `$LD -v 2>&1 </dev/null` in
13143 *GNU* | *'with BFD'*)
13144 lt_cv_prog_gnu_ld=yes
13147 lt_cv_prog_gnu_ld=no
13151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13153 with_gnu_ld=$lt_cv_prog_gnu_ld
13161 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13162 # archiving commands below assume that GNU ld is being used.
13163 if test "$with_gnu_ld" = yes; then
13164 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13165 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'
13167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13170 # If archive_cmds runs LD, not CC, wlarc should be empty
13171 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13172 # investigate it a little bit more. (MM)
13175 # ancient GNU ld didn't support --whole-archive et. al.
13176 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13177 $GREP 'no-whole-archive' > /dev/null; then
13178 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13180 whole_archive_flag_spec_CXX=
13186 # A generic and very simple default shared library creation
13187 # command for GNU C++ for the case where it uses the native
13188 # linker, instead of GNU ld. If possible, this setting should
13189 # overridden to take advantage of the native linker features on
13190 # the platform it is being used on.
13191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13194 # Commands to make compiler produce verbose output that lists
13195 # what "hidden" libraries, object files and flags are used when
13196 # linking a shared library.
13197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13205 # PORTME: fill in a description of your system's C++ link characteristics
13206 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13207 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13211 # FIXME: insert proper C++ library support
13215 if test "$host_cpu" = ia64; then
13216 # On IA64, the linker does run time linking by default, so we don't
13217 # have to do anything special.
13218 aix_use_runtimelinking=no
13219 exp_sym_flag='-Bexport'
13222 aix_use_runtimelinking=no
13224 # Test if we are trying to use run time linking or normal
13225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13226 # need to do runtime linking.
13227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13228 for ld_flag in $LDFLAGS; do
13231 aix_use_runtimelinking=yes
13239 exp_sym_flag='-bexport'
13240 no_entry_flag='-bnoentry'
13243 # When large executables or shared objects are built, AIX ld can
13244 # have problems creating the table of contents. If linking a library
13245 # or program results in "error TOC overflow" add -mminimal-toc to
13246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13249 archive_cmds_CXX=''
13250 hardcode_direct_CXX=yes
13251 hardcode_direct_absolute_CXX=yes
13252 hardcode_libdir_separator_CXX=':'
13253 link_all_deplibs_CXX=yes
13254 file_list_spec_CXX='${wl}-f,'
13256 if test "$GXX" = yes; then
13257 case $host_os in aix4.[012]|aix4.[012].*)
13258 # We only want to do this on AIX 4.2 and lower, the check
13259 # below for broken collect2 doesn't work under 4.3+
13260 collect2name=`${CC} -print-prog-name=collect2`
13261 if test -f "$collect2name" &&
13262 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13264 # We have reworked collect2
13267 # We have old collect2
13268 hardcode_direct_CXX=unsupported
13269 # It fails to find uninstalled libraries when the uninstalled
13270 # path is not listed in the libpath. Setting hardcode_minus_L
13271 # to unsupported forces relinking
13272 hardcode_minus_L_CXX=yes
13273 hardcode_libdir_flag_spec_CXX='-L$libdir'
13274 hardcode_libdir_separator_CXX=
13277 shared_flag='-shared'
13278 if test "$aix_use_runtimelinking" = yes; then
13279 shared_flag="$shared_flag "'${wl}-G'
13283 if test "$host_cpu" = ia64; then
13284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13285 # chokes on -Wl,-G. The following line is correct:
13288 if test "$aix_use_runtimelinking" = yes; then
13289 shared_flag='${wl}-G'
13291 shared_flag='${wl}-bM:SRE'
13296 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13297 # It seems that -bexpall does not export symbols beginning with
13298 # underscore (_), so it is better to generate a list of symbols to
13300 always_export_symbols_CXX=yes
13301 if test "$aix_use_runtimelinking" = yes; then
13302 # Warning - without using the other runtime loading flags (-brtl),
13303 # -berok will link without error, but may produce a broken library.
13304 allow_undefined_flag_CXX='-berok'
13305 # Determine the default libpath from the value encoded in an empty
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_link") 2>conftest.er1
13331 grep -v '^ *+' conftest.er1 >conftest.err
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } && {
13336 test -z "$ac_cxx_werror_flag" ||
13337 test ! -s conftest.err
13338 } && test -s conftest$ac_exeext &&
13339 $as_test_x conftest$ac_exeext; then
13341 lt_aix_libpath_sed='
13342 /Import File Strings/,/^$/ {
13348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13349 # Check for a 64-bit object if we didn't find anything.
13350 if test -z "$aix_libpath"; then
13351 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13361 conftest$ac_exeext conftest.$ac_ext
13362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13366 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"
13368 if test "$host_cpu" = ia64; then
13369 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13370 allow_undefined_flag_CXX="-z nodefs"
13371 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"
13373 # Determine the default libpath from the value encoded in an
13374 # empty executable.
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13390 rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (ac_try="$ac_link"
13392 case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_link") 2>conftest.er1
13399 grep -v '^ *+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } && {
13404 test -z "$ac_cxx_werror_flag" ||
13405 test ! -s conftest.err
13406 } && test -s conftest$ac_exeext &&
13407 $as_test_x conftest$ac_exeext; then
13409 lt_aix_libpath_sed='
13410 /Import File Strings/,/^$/ {
13416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13417 # Check for a 64-bit object if we didn't find anything.
13418 if test -z "$aix_libpath"; then
13419 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13429 conftest$ac_exeext conftest.$ac_ext
13430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13432 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13433 # Warning - without using the other run time loading flags,
13434 # -berok will link without error, but may produce a broken library.
13435 no_undefined_flag_CXX=' ${wl}-bernotok'
13436 allow_undefined_flag_CXX=' ${wl}-berok'
13437 # Exported symbols can be pulled into shared objects from archives
13438 whole_archive_flag_spec_CXX='$convenience'
13439 archive_cmds_need_lc_CXX=yes
13440 # This is similar to how AIX traditionally builds its shared
13442 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'
13448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13449 allow_undefined_flag_CXX=unsupported
13450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13451 # support --undefined. This deserves some investigation. FIXME
13452 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459 case $cc_basename in
13461 # FIXME: insert proper C++ library support
13467 cygwin* | mingw* | pw32* | cegcc*)
13468 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13469 # as there is no search path for DLLs.
13470 hardcode_libdir_flag_spec_CXX='-L$libdir'
13471 allow_undefined_flag_CXX=unsupported
13472 always_export_symbols_CXX=no
13473 enable_shared_with_static_runtimes_CXX=yes
13475 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13476 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'
13477 # If the export-symbols file already is a .def file (1st line
13478 # is EXPORTS), use it as is; otherwise, prepend...
13479 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13480 cp $export_symbols $output_objdir/$soname.def;
13482 echo EXPORTS > $output_objdir/$soname.def;
13483 cat $export_symbols >> $output_objdir/$soname.def;
13485 $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'
13490 darwin* | rhapsody*)
13493 archive_cmds_need_lc_CXX=no
13494 hardcode_direct_CXX=no
13495 hardcode_automatic_CXX=yes
13496 hardcode_shlibpath_var_CXX=unsupported
13497 whole_archive_flag_spec_CXX=''
13498 link_all_deplibs_CXX=yes
13499 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13500 case $cc_basename in
13501 ifort*) _lt_dar_can_shared=yes ;;
13502 *) _lt_dar_can_shared=$GCC ;;
13504 if test "$_lt_dar_can_shared" = "yes"; then
13505 output_verbose_link_cmd=echo
13506 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}"
13507 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13508 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}"
13509 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}"
13510 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13511 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}"
13512 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}"
13522 case $cc_basename in
13524 # FIXME: insert proper C++ library support
13528 # Green Hills C++ Compiler
13529 # FIXME: insert proper C++ library support
13533 # FIXME: insert proper C++ library support
13540 # C++ shared libraries reported to be fairly broken before
13546 archive_cmds_need_lc_CXX=no
13549 freebsd* | dragonfly*)
13550 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13559 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13560 hardcode_libdir_separator_CXX=:
13561 export_dynamic_flag_spec_CXX='${wl}-E'
13562 hardcode_direct_CXX=yes
13563 hardcode_minus_L_CXX=yes # Not in the search PATH,
13564 # but as the default
13565 # location of the library.
13567 case $cc_basename in
13569 # FIXME: insert proper C++ library support
13573 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'
13574 # Commands to make compiler produce verbose output that lists
13575 # what "hidden" libraries, object files and flags are used when
13576 # linking a shared library.
13578 # There doesn't appear to be a way to prevent this compiler from
13579 # explicitly linking system object files so we need to strip them
13580 # from the output so that they don't get included in the library
13582 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'
13585 if test "$GXX" = yes; then
13586 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'
13588 # FIXME: insert proper C++ library support
13596 if test $with_gnu_ld = no; then
13597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13598 hardcode_libdir_separator_CXX=:
13604 export_dynamic_flag_spec_CXX='${wl}-E'
13610 hardcode_direct_CXX=no
13611 hardcode_shlibpath_var_CXX=no
13614 hardcode_direct_CXX=yes
13615 hardcode_direct_absolute_CXX=yes
13616 hardcode_minus_L_CXX=yes # Not in the search PATH,
13617 # but as the default
13618 # location of the library.
13622 case $cc_basename in
13624 # FIXME: insert proper C++ library support
13630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13633 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13636 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13639 # Commands to make compiler produce verbose output that lists
13640 # what "hidden" libraries, object files and flags are used when
13641 # linking a shared library.
13643 # There doesn't appear to be a way to prevent this compiler from
13644 # explicitly linking system object files so we need to strip them
13645 # from the output so that they don't get included in the library
13647 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'
13650 if test "$GXX" = yes; then
13651 if test $with_gnu_ld = no; then
13654 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13657 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13660 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'
13665 # FIXME: insert proper C++ library support
13673 hardcode_direct_CXX=no
13674 hardcode_shlibpath_var_CXX=no
13675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13676 export_dynamic_flag_spec_CXX='${wl}-E'
13677 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13678 # Instead, shared libraries are loaded at an image base (0x10000000 by
13679 # default) and relocated if they conflict, which is a slow very memory
13680 # consuming and fragmenting process. To avoid this, we pick a random,
13681 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13682 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13683 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'
13684 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'
13687 case $cc_basename in
13690 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'
13692 # Archives containing C++ object files must be created using
13693 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13694 # necessary to make sure instantiated templates are included
13696 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13699 if test "$GXX" = yes; then
13700 if test "$with_gnu_ld" = no; then
13701 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'
13703 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'
13706 link_all_deplibs_CXX=yes
13709 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13710 hardcode_libdir_separator_CXX=:
13711 inherit_rpath_CXX=yes
13714 linux* | k*bsd*-gnu)
13715 case $cc_basename in
13717 # Kuck and Associates, Inc. (KAI) C++ Compiler
13719 # KCC will only create a shared library if the output file
13720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13721 # to its proper name (with version) after linking.
13722 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'
13723 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'
13724 # Commands to make compiler produce verbose output that lists
13725 # what "hidden" libraries, object files and flags are used when
13726 # linking a shared library.
13728 # There doesn't appear to be a way to prevent this compiler from
13729 # explicitly linking system object files so we need to strip them
13730 # from the output so that they don't get included in the library
13732 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'
13734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13737 # Archives containing C++ object files must be created using
13738 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13739 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13744 # version 8.0 and above of icpc choke on multiply defined symbols
13745 # if we add $predep_objects and $postdep_objects, however 7.1 and
13746 # earlier do not add the objects themselves.
13747 case `$CC -V 2>&1` in
13749 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13750 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'
13752 *) # Version 8.0 or newer
13755 ia64*) tmp_idyn=' -i_dynamic';;
13757 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13758 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'
13761 archive_cmds_need_lc_CXX=no
13762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13763 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13764 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13767 # Portland Group C++ compiler
13769 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13770 prelink_cmds_CXX='tpldir=Template.dir~
13772 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13773 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13774 old_archive_cmds_CXX='tpldir=Template.dir~
13776 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13777 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13779 archive_cmds_CXX='tpldir=Template.dir~
13781 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13782 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13783 archive_expsym_cmds_CXX='tpldir=Template.dir~
13785 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13786 $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'
13788 *) # Version 6 will use weak symbols
13789 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13790 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'
13794 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13796 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'
13800 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13801 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'
13803 runpath_var=LD_RUN_PATH
13804 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13805 hardcode_libdir_separator_CXX=:
13807 # Commands to make compiler produce verbose output that lists
13808 # what "hidden" libraries, object files and flags are used when
13809 # linking a shared library.
13811 # There doesn't appear to be a way to prevent this compiler from
13812 # explicitly linking system object files so we need to strip them
13813 # from the output so that they don't get included in the library
13815 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'
13818 # IBM XL 8.0 on PPC, with GNU ld
13819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13821 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 if test "x$supports_anon_versioning" = xyes; then
13823 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13825 echo "local: *; };" >> $output_objdir/$libname.ver~
13826 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13830 case `$CC -V 2>&1 | sed 5q` in
13833 no_undefined_flag_CXX=' -zdefs'
13834 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13835 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'
13836 hardcode_libdir_flag_spec_CXX='-R$libdir'
13837 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'
13838 compiler_needs_object_CXX=yes
13840 # Not sure whether something based on
13841 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13843 output_verbose_link_cmd='echo'
13845 # Archives containing C++ object files must be created using
13846 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13847 # necessary to make sure instantiated templates are included
13849 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13857 # FIXME: insert proper C++ library support
13862 # FIXME: insert proper C++ library support
13867 case $cc_basename in
13869 # FIXME: insert proper C++ library support
13873 # FIXME: insert proper C++ library support
13880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13881 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13883 hardcode_libdir_flag_spec_CXX='-R$libdir'
13884 hardcode_direct_CXX=yes
13885 hardcode_shlibpath_var_CXX=no
13887 # Workaround some broken pre-1.5 toolchains
13888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13896 # C++ shared libraries are fairly broken
13901 if test -f /usr/libexec/ld.so; then
13902 hardcode_direct_CXX=yes
13903 hardcode_shlibpath_var_CXX=no
13904 hardcode_direct_absolute_CXX=yes
13905 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13906 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13908 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13909 export_dynamic_flag_spec_CXX='${wl}-E'
13910 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13912 output_verbose_link_cmd=echo
13918 osf3* | osf4* | osf5*)
13919 case $cc_basename in
13921 # Kuck and Associates, Inc. (KAI) C++ Compiler
13923 # KCC will only create a shared library if the output file
13924 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13925 # to its proper name (with version) after linking.
13926 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'
13928 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13929 hardcode_libdir_separator_CXX=:
13931 # Archives containing C++ object files must be created using
13932 # the KAI C++ compiler.
13934 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13935 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13939 # Rational C++ 2.4.1
13940 # FIXME: insert proper C++ library support
13946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13947 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'
13948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13951 allow_undefined_flag_CXX=' -expect_unresolved \*'
13952 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'
13953 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13954 echo "-hidden">> $lib.exp~
13955 $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~
13957 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13961 hardcode_libdir_separator_CXX=:
13963 # Commands to make compiler produce verbose output that lists
13964 # what "hidden" libraries, object files and flags are used when
13965 # linking a shared library.
13967 # There doesn't appear to be a way to prevent this compiler from
13968 # explicitly linking system object files so we need to strip them
13969 # from the output so that they don't get included in the library
13971 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'
13974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13978 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'
13981 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'
13985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13986 hardcode_libdir_separator_CXX=:
13988 # Commands to make compiler produce verbose output that lists
13989 # what "hidden" libraries, object files and flags are used when
13990 # linking a shared library.
13991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13994 # FIXME: insert proper C++ library support
14002 # FIXME: insert proper C++ library support
14007 case $cc_basename in
14010 # FIXME: insert proper C++ library support
14015 # FIXME: insert proper C++ library support
14019 # FIXME: insert proper C++ library support
14026 case $cc_basename in
14028 # Sun C++ 4.2, 5.x and Centerline C++
14029 archive_cmds_need_lc_CXX=yes
14030 no_undefined_flag_CXX=' -zdefs'
14031 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14032 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14033 $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'
14035 hardcode_libdir_flag_spec_CXX='-R$libdir'
14036 hardcode_shlibpath_var_CXX=no
14038 solaris2.[0-5] | solaris2.[0-5].*) ;;
14040 # The compiler driver will combine and reorder linker options,
14041 # but understands `-z linker_flag'.
14042 # Supported since Solaris 2.6 (maybe 2.5.1?)
14043 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14046 link_all_deplibs_CXX=yes
14048 output_verbose_link_cmd='echo'
14050 # Archives containing C++ object files must be created using
14051 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14052 # necessary to make sure instantiated templates are included
14054 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14057 # Green Hills C++ Compiler
14058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14060 # The C++ compiler must be used to create the archive.
14061 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14064 # GNU C++ compiler with Solaris linker
14065 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14066 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14067 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14068 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14069 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14070 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14072 # Commands to make compiler produce verbose output that lists
14073 # what "hidden" libraries, object files and flags are used when
14074 # linking a shared library.
14075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14077 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14079 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14080 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14081 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14083 # Commands to make compiler produce verbose output that lists
14084 # what "hidden" libraries, object files and flags are used when
14085 # linking a shared library.
14086 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14089 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14091 solaris2.[0-5] | solaris2.[0-5].*) ;;
14093 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14101 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14102 no_undefined_flag_CXX='${wl}-z,text'
14103 archive_cmds_need_lc_CXX=no
14104 hardcode_shlibpath_var_CXX=no
14105 runpath_var='LD_RUN_PATH'
14107 case $cc_basename in
14109 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14110 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14113 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14114 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14119 sysv5* | sco3.2v5* | sco5v6*)
14120 # Note: We can NOT use -z defs as we might desire, because we do not
14121 # link with -lc, and that would cause any symbols used from libc to
14122 # always be unresolved, which means just about no library would
14123 # ever link correctly. If we're not using GNU ld we use -z text
14124 # though, which does catch some bad symbols but isn't as heavy-handed
14126 no_undefined_flag_CXX='${wl}-z,text'
14127 allow_undefined_flag_CXX='${wl}-z,nodefs'
14128 archive_cmds_need_lc_CXX=no
14129 hardcode_shlibpath_var_CXX=no
14130 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14131 hardcode_libdir_separator_CXX=':'
14132 link_all_deplibs_CXX=yes
14133 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14134 runpath_var='LD_RUN_PATH'
14136 case $cc_basename in
14138 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14139 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14142 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14143 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14149 case $cc_basename in
14151 # NonStop-UX NCC 3.20
14152 # FIXME: insert proper C++ library support
14156 # FIXME: insert proper C++ library support
14163 # FIXME: insert proper C++ library support
14168 # FIXME: insert proper C++ library support
14173 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14174 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14175 test "$ld_shlibs_CXX" = no && can_build_shared=no
14181 ## There is no encapsulation within the following macros, do not change
14182 ## the running order or otherwise move them around unless you know exactly
14183 ## what you are doing...
14184 # Dependencies to place before and after the object being linked:
14185 predep_objects_CXX=
14186 postdep_objects_CXX=
14189 compiler_lib_search_path_CXX=
14191 cat > conftest.$ac_ext <<_LT_EOF
14195 Foo (void) { a = 0; }
14201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14202 (eval $ac_compile) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; then
14206 # Parse the compiler output and extract the necessary
14207 # objects, libraries and library flags.
14209 # Sentinel used to keep track of whether or not we are before
14210 # the conftest object file.
14211 pre_test_object_deps_done=no
14213 for p in `eval "$output_verbose_link_cmd"`; do
14217 # Some compilers place space between "-{L,R}" and the path.
14218 # Remove the space.
14219 if test $p = "-L" ||
14220 test $p = "-R"; then
14227 if test "$pre_test_object_deps_done" = no; then
14230 # Internal compiler library paths should come after those
14231 # provided the user. The postdeps already come after the
14232 # user supplied libs so there is no need to process them.
14233 if test -z "$compiler_lib_search_path_CXX"; then
14234 compiler_lib_search_path_CXX="${prev}${p}"
14236 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14239 # The "-l" case would never come before the object being
14240 # linked, so don't bother handling this case.
14243 if test -z "$postdeps_CXX"; then
14244 postdeps_CXX="${prev}${p}"
14246 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14252 # This assumes that the test object file only shows up
14253 # once in the compiler output.
14254 if test "$p" = "conftest.$objext"; then
14255 pre_test_object_deps_done=yes
14259 if test "$pre_test_object_deps_done" = no; then
14260 if test -z "$predep_objects_CXX"; then
14261 predep_objects_CXX="$p"
14263 predep_objects_CXX="$predep_objects_CXX $p"
14266 if test -z "$postdep_objects_CXX"; then
14267 postdep_objects_CXX="$p"
14269 postdep_objects_CXX="$postdep_objects_CXX $p"
14274 *) ;; # Ignore the rest.
14282 echo "libtool.m4: error: problem compiling CXX test program"
14285 $RM -f confest.$objext
14287 # PORTME: override above test on systems where it is broken
14290 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14291 # hack all around it, let's just trust "g++" to DTRT.
14292 predep_objects_CXX=
14293 postdep_objects_CXX=
14298 case `$CC -V 2>&1 | sed 5q` in
14302 # The more standards-conforming stlport4 library is
14303 # incompatible with the Cstd library. Avoid specifying
14304 # it if it's in CXXFLAGS. Ignore libCrun as
14305 # -library=stlport4 depends on it.
14306 case " $CXX $CXXFLAGS " in
14307 *" -library=stlport4 "*)
14308 solaris_use_stlport4=yes
14312 if test "$solaris_use_stlport4" != yes; then
14313 postdeps_CXX='-library=Cstd -library=Crun'
14320 case $cc_basename in
14322 # The more standards-conforming stlport4 library is
14323 # incompatible with the Cstd library. Avoid specifying
14324 # it if it's in CXXFLAGS. Ignore libCrun as
14325 # -library=stlport4 depends on it.
14326 case " $CXX $CXXFLAGS " in
14327 *" -library=stlport4 "*)
14328 solaris_use_stlport4=yes
14332 # Adding this requires a known-good setup of shared libraries for
14333 # Sun compiler versions before 5.6, else PIC objects from an old
14334 # archive will be linked into the output, leading to subtle bugs.
14335 if test "$solaris_use_stlport4" != yes; then
14336 postdeps_CXX='-library=Cstd -library=Crun'
14344 case " $postdeps_CXX " in
14345 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14347 compiler_lib_search_dirs_CXX=
14348 if test -n "${compiler_lib_search_path_CXX}"; then
14349 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14382 lt_prog_compiler_wl_CXX=
14383 lt_prog_compiler_pic_CXX=
14384 lt_prog_compiler_static_CXX=
14386 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14389 # C++ specific cases for pic, static, wl, etc.
14390 if test "$GXX" = yes; then
14391 lt_prog_compiler_wl_CXX='-Wl,'
14392 lt_prog_compiler_static_CXX='-static'
14396 # All AIX code is PIC.
14397 if test "$host_cpu" = ia64; then
14398 # AIX 5 now supports IA64 processor
14399 lt_prog_compiler_static_CXX='-Bstatic'
14406 # see comment about AmigaOS4 .so support
14407 lt_prog_compiler_pic_CXX='-fPIC'
14410 # FIXME: we need at least 68020 code to build shared libraries, but
14411 # adding the `-m68020' flag to GCC prevents building anything better,
14413 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14419 # PIC is the default for these OSes.
14421 mingw* | cygwin* | os2* | pw32* | cegcc*)
14422 # This hack is so that the source file can tell whether it is being
14423 # built for inclusion in a dll (and should export symbols for example).
14424 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14425 # (--disable-auto-import) libraries
14426 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14428 darwin* | rhapsody*)
14429 # PIC is the default on this platform
14430 # Common symbols not allowed in MH_DYLIB files
14431 lt_prog_compiler_pic_CXX='-fno-common'
14434 # DJGPP does not support shared libraries at all
14435 lt_prog_compiler_pic_CXX=
14438 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14439 # Instead, we relocate shared libraries at runtime.
14442 if test -d /usr/nec; then
14443 lt_prog_compiler_pic_CXX=-Kconform_pic
14447 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14448 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14449 # sets the default TLS model and affects inlining.
14454 lt_prog_compiler_pic_CXX='-fPIC'
14459 # QNX uses GNU C++, but need to define -shared option too, otherwise
14460 # it will coredump.
14461 lt_prog_compiler_pic_CXX='-fPIC -shared'
14464 lt_prog_compiler_pic_CXX='-fPIC'
14470 # All AIX code is PIC.
14471 if test "$host_cpu" = ia64; then
14472 # AIX 5 now supports IA64 processor
14473 lt_prog_compiler_static_CXX='-Bstatic'
14475 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14479 case $cc_basename in
14481 # Green Hills C++ Compiler
14482 # _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"
14487 case $cc_basename in
14489 lt_prog_compiler_pic_CXX='-KPIC'
14492 # Green Hills C++ Compiler
14493 lt_prog_compiler_pic_CXX='-pic'
14499 freebsd* | dragonfly*)
14500 # FreeBSD uses GNU C++
14502 hpux9* | hpux10* | hpux11*)
14503 case $cc_basename in
14505 lt_prog_compiler_wl_CXX='-Wl,'
14506 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14507 if test "$host_cpu" != ia64; then
14508 lt_prog_compiler_pic_CXX='+Z'
14512 lt_prog_compiler_wl_CXX='-Wl,'
14513 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14519 lt_prog_compiler_pic_CXX='+Z'
14528 # This is c89, which is MS Visual C++ (no shared libs)
14529 # Anyone wants to do a port?
14531 irix5* | irix6* | nonstopux*)
14532 case $cc_basename in
14534 lt_prog_compiler_wl_CXX='-Wl,'
14535 lt_prog_compiler_static_CXX='-non_shared'
14536 # CC pic flag -KPIC is the default.
14542 linux* | k*bsd*-gnu)
14543 case $cc_basename in
14546 lt_prog_compiler_wl_CXX='--backend -Wl,'
14547 lt_prog_compiler_pic_CXX='-fPIC'
14550 # old Intel C++ for x86_64 which still supported -KPIC.
14551 lt_prog_compiler_wl_CXX='-Wl,'
14552 lt_prog_compiler_pic_CXX='-KPIC'
14553 lt_prog_compiler_static_CXX='-static'
14556 # Intel C++, used to be incompatible with GCC.
14557 # ICC 10 doesn't accept -KPIC any more.
14558 lt_prog_compiler_wl_CXX='-Wl,'
14559 lt_prog_compiler_pic_CXX='-fPIC'
14560 lt_prog_compiler_static_CXX='-static'
14563 # Portland Group C++ compiler
14564 lt_prog_compiler_wl_CXX='-Wl,'
14565 lt_prog_compiler_pic_CXX='-fpic'
14566 lt_prog_compiler_static_CXX='-Bstatic'
14570 # Make sure the PIC flag is empty. It appears that all Alpha
14571 # Linux and Compaq Tru64 Unix objects are PIC.
14572 lt_prog_compiler_pic_CXX=
14573 lt_prog_compiler_static_CXX='-non_shared'
14576 # IBM XL 8.0 on PPC
14577 lt_prog_compiler_wl_CXX='-Wl,'
14578 lt_prog_compiler_pic_CXX='-qpic'
14579 lt_prog_compiler_static_CXX='-qstaticlink'
14582 case `$CC -V 2>&1 | sed 5q` in
14585 lt_prog_compiler_pic_CXX='-KPIC'
14586 lt_prog_compiler_static_CXX='-Bstatic'
14587 lt_prog_compiler_wl_CXX='-Qoption ld '
14598 case $cc_basename in
14600 lt_prog_compiler_pic_CXX='-W c,exportall'
14609 # QNX uses GNU C++, but need to define -shared option too, otherwise
14610 # it will coredump.
14611 lt_prog_compiler_pic_CXX='-fPIC -shared'
14613 osf3* | osf4* | osf5*)
14614 case $cc_basename in
14616 lt_prog_compiler_wl_CXX='--backend -Wl,'
14619 # Rational C++ 2.4.1
14620 lt_prog_compiler_pic_CXX='-pic'
14623 # Digital/Compaq C++
14624 lt_prog_compiler_wl_CXX='-Wl,'
14625 # Make sure the PIC flag is empty. It appears that all Alpha
14626 # Linux and Compaq Tru64 Unix objects are PIC.
14627 lt_prog_compiler_pic_CXX=
14628 lt_prog_compiler_static_CXX='-non_shared'
14637 case $cc_basename in
14639 # Sun C++ 4.2, 5.x and Centerline C++
14640 lt_prog_compiler_pic_CXX='-KPIC'
14641 lt_prog_compiler_static_CXX='-Bstatic'
14642 lt_prog_compiler_wl_CXX='-Qoption ld '
14645 # Green Hills C++ Compiler
14646 lt_prog_compiler_pic_CXX='-PIC'
14653 case $cc_basename in
14656 lt_prog_compiler_pic_CXX='-pic'
14657 lt_prog_compiler_static_CXX='-Bstatic'
14661 lt_prog_compiler_pic_CXX='-pic'
14667 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14668 case $cc_basename in
14670 lt_prog_compiler_wl_CXX='-Wl,'
14671 lt_prog_compiler_pic_CXX='-KPIC'
14672 lt_prog_compiler_static_CXX='-Bstatic'
14677 case $cc_basename in
14679 # NonStop-UX NCC 3.20
14680 lt_prog_compiler_pic_CXX='-KPIC'
14689 lt_prog_compiler_can_build_shared_CXX=no
14695 # For platforms which do not support PIC, -DPIC is meaningless:
14697 lt_prog_compiler_pic_CXX=
14700 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14703 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14704 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14709 # Check to make sure the PIC flag actually works.
14711 if test -n "$lt_prog_compiler_pic_CXX"; then
14712 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14714 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 lt_cv_prog_compiler_pic_works_CXX=no
14718 ac_outfile=conftest.$ac_objext
14719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14720 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14721 # Insert the option either (1) after the last *FLAGS variable, or
14722 # (2) before a word containing "conftest.", or (3) at the end.
14723 # Note that $ac_compile itself does not contain backslashes and begins
14724 # with a dollar sign (not a hyphen), so the echo should work correctly.
14725 # The option is referenced via a variable to avoid confusing sed.
14726 lt_compile=`echo "$ac_compile" | $SED \
14727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14729 -e 's:$: $lt_compiler_flag:'`
14730 (eval echo "\"\$as_me:14730: $lt_compile\"" >&5)
14731 (eval "$lt_compile" 2>conftest.err)
14733 cat conftest.err >&5
14734 echo "$as_me:14734: \$? = $ac_status" >&5
14735 if (exit $ac_status) && test -s "$ac_outfile"; then
14736 # The compiler can only warn and ignore the option if not recognized
14737 # So say no if there are warnings other than the usual output.
14738 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14741 lt_cv_prog_compiler_pic_works_CXX=yes
14747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14748 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14750 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14751 case $lt_prog_compiler_pic_CXX in
14753 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14756 lt_prog_compiler_pic_CXX=
14757 lt_prog_compiler_can_build_shared_CXX=no
14765 # Check to make sure the static flag actually works.
14767 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14768 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14769 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14770 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 lt_cv_prog_compiler_static_works_CXX=no
14774 save_LDFLAGS="$LDFLAGS"
14775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14776 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14778 # The linker can only warn and ignore the option if not recognized
14779 # So say no if there are warnings
14780 if test -s conftest.err; then
14781 # Append any errors to the config.log.
14782 cat conftest.err 1>&5
14783 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14785 if diff conftest.exp conftest.er2 >/dev/null; then
14786 lt_cv_prog_compiler_static_works_CXX=yes
14789 lt_cv_prog_compiler_static_works_CXX=yes
14793 LDFLAGS="$save_LDFLAGS"
14796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14797 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14799 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14802 lt_prog_compiler_static_CXX=
14808 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14809 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14810 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 lt_cv_prog_compiler_c_o_CXX=no
14814 $RM -r conftest 2>/dev/null
14818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14820 lt_compiler_flag="-o out/conftest2.$ac_objext"
14821 # Insert the option either (1) after the last *FLAGS variable, or
14822 # (2) before a word containing "conftest.", or (3) at the end.
14823 # Note that $ac_compile itself does not contain backslashes and begins
14824 # with a dollar sign (not a hyphen), so the echo should work correctly.
14825 lt_compile=`echo "$ac_compile" | $SED \
14826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14828 -e 's:$: $lt_compiler_flag:'`
14829 (eval echo "\"\$as_me:14829: $lt_compile\"" >&5)
14830 (eval "$lt_compile" 2>out/conftest.err)
14832 cat out/conftest.err >&5
14833 echo "$as_me:14833: \$? = $ac_status" >&5
14834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14836 # The compiler can only warn and ignore the option if not recognized
14837 # So say no if there are warnings
14838 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14841 lt_cv_prog_compiler_c_o_CXX=yes
14846 # SGI C++ compiler will create directory out/ii_files/ for
14847 # template instantiation
14848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14849 $RM out/* && rmdir out
14855 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14856 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14860 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14861 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14862 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 lt_cv_prog_compiler_c_o_CXX=no
14866 $RM -r conftest 2>/dev/null
14870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14872 lt_compiler_flag="-o out/conftest2.$ac_objext"
14873 # Insert the option either (1) after the last *FLAGS variable, or
14874 # (2) before a word containing "conftest.", or (3) at the end.
14875 # Note that $ac_compile itself does not contain backslashes and begins
14876 # with a dollar sign (not a hyphen), so the echo should work correctly.
14877 lt_compile=`echo "$ac_compile" | $SED \
14878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14880 -e 's:$: $lt_compiler_flag:'`
14881 (eval echo "\"\$as_me:14881: $lt_compile\"" >&5)
14882 (eval "$lt_compile" 2>out/conftest.err)
14884 cat out/conftest.err >&5
14885 echo "$as_me:14885: \$? = $ac_status" >&5
14886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14888 # The compiler can only warn and ignore the option if not recognized
14889 # So say no if there are warnings
14890 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14893 lt_cv_prog_compiler_c_o_CXX=yes
14898 # SGI C++ compiler will create directory out/ii_files/ for
14899 # template instantiation
14900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14901 $RM out/* && rmdir out
14907 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14908 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14913 hard_links="nottested"
14914 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14915 # do not overwrite the value of need_locks provided by the user
14916 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14922 ln conftest.a conftest.b 2>&5 || hard_links=no
14923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14924 { echo "$as_me:$LINENO: result: $hard_links" >&5
14925 echo "${ECHO_T}$hard_links" >&6; }
14926 if test "$hard_links" = no; then
14927 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14937 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14943 # If we're using GNU nm, then we don't want the "-C" option.
14944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14946 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'
14948 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'
14952 export_symbols_cmds_CXX="$ltdll_cmds"
14954 cygwin* | mingw* | cegcc*)
14955 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'
14958 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14961 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14963 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14964 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14965 test "$ld_shlibs_CXX" = no && can_build_shared=no
14967 with_gnu_ld_CXX=$with_gnu_ld
14975 # Do we need to explicitly link libc?
14977 case "x$archive_cmds_need_lc_CXX" in
14979 # Assume -lc should be added
14980 archive_cmds_need_lc_CXX=yes
14982 if test "$enable_shared" = yes && test "$GCC" = yes; then
14983 case $archive_cmds_CXX in
14985 # FIXME: we may have to deal with multi-command sequences.
14988 # Test whether the compiler implicitly links with -lc since on some
14989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14990 # to ld, don't add -lc before -lgcc.
14991 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14992 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14997 (eval $ac_compile) 2>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } 2>conftest.err; then
15003 libobjs=conftest.$ac_objext
15005 wl=$lt_prog_compiler_wl_CXX
15006 pic_flag=$lt_prog_compiler_pic_CXX
15012 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15013 allow_undefined_flag_CXX=
15014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15015 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }
15020 archive_cmds_need_lc_CXX=no
15022 archive_cmds_need_lc_CXX=yes
15024 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15026 cat conftest.err 1>&5
15029 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15030 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15100 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15101 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15103 library_names_spec=
15104 libname_spec='lib$name'
15108 postuninstall_cmds=
15112 shlibpath_overrides_runpath=unknown
15114 dynamic_linker="$host_os ld.so"
15115 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15116 need_lib_prefix=unknown
15117 hardcode_into_libs=no
15119 # when you set need_version to no, make sure it does not cause -set_version
15120 # flags to be left without arguments
15121 need_version=unknown
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15127 shlibpath_var=LIBPATH
15129 # AIX 3 has no versioning support, so we append a major version to the name.
15130 soname_spec='${libname}${release}${shared_ext}$major'
15137 hardcode_into_libs=yes
15138 if test "$host_cpu" = ia64; then
15139 # AIX 5 supports IA64
15140 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15141 shlibpath_var=LD_LIBRARY_PATH
15143 # With GCC up to 2.95.x, collect2 would create an import file
15144 # for dependence libraries. The import file would start with
15145 # the line `#! .'. This would cause the generated library to
15146 # depend on `.', always an invalid library. This was fixed in
15147 # development snapshots of GCC prior to 3.0.
15149 aix4 | aix4.[01] | aix4.[01].*)
15150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15152 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15155 can_build_shared=no
15159 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15160 # soname into executable. Probably we can add versioning support to
15161 # collect2, so additional links can be useful in future.
15162 if test "$aix_use_runtimelinking" = yes; then
15163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15164 # instead of lib<name>.a to let people know that these are not
15165 # typical AIX shared libraries.
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168 # We preserve .a as extension for shared libraries through AIX4.2
15169 # and later when we are not doing run time linking.
15170 library_names_spec='${libname}${release}.a $libname.a'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15173 shlibpath_var=LIBPATH
15180 # Since July 2007 AmigaOS4 officially supports .so libraries.
15181 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 library_names_spec='$libname.ixlibrary $libname.a'
15186 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15187 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'
15193 library_names_spec='${libname}${shared_ext}'
15194 dynamic_linker="$host_os ld.so"
15195 shlibpath_var=LIBRARY_PATH
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15207 # the default ld.so.conf also contains /usr/contrib/lib and
15208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15209 # libtool to hard-code these into programs
15212 cygwin* | mingw* | pw32* | cegcc*)
15213 version_type=windows
15218 case $GCC,$host_os in
15219 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15220 library_names_spec='$libname.dll.a'
15221 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15222 postinstall_cmds='base_file=`basename \${file}`~
15223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15224 dldir=$destdir/`dirname \$dlpath`~
15225 test -d \$dldir || mkdir -p \$dldir~
15226 $install_prog $dir/$dlname \$dldir/$dlname~
15227 chmod a+x \$dldir/$dlname~
15228 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15229 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15232 dlpath=$dir/\$dldll~
15234 shlibpath_overrides_runpath=yes
15238 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15239 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15240 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15243 # MinGW DLLs use traditional 'lib' prefix
15244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15245 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15246 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15247 # It is most probably a Windows format PATH printed by
15248 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15249 # path with ; separators, and with drive letters. We can handle the
15250 # drive letters (cygwin fileutils understands them), so leave them,
15251 # especially as we might pass files found there to a mingw objdump,
15252 # which wouldn't understand a cygwinified path. Ahh.
15253 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15255 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15259 # pw32 DLLs use 'pw' prefix rather than 'lib'
15260 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15269 dynamic_linker='Win32 ld.exe'
15270 # FIXME: first we should search . and the directory the executable is in
15274 darwin* | rhapsody*)
15275 dynamic_linker="$host_os dyld"
15276 version_type=darwin
15279 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15280 soname_spec='${libname}${release}${major}$shared_ext'
15281 shlibpath_overrides_runpath=yes
15282 shlibpath_var=DYLD_LIBRARY_PATH
15283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15301 freebsd* | dragonfly*)
15302 # DragonFly does not have aout. When/if they implement a new
15303 # versioning mechanism, adjust this.
15304 if test -x /usr/bin/objformat; then
15305 objformat=`/usr/bin/objformat`
15308 freebsd[123]*) objformat=aout ;;
15309 *) objformat=elf ;;
15312 version_type=freebsd-$objformat
15313 case $version_type in
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15324 shlibpath_var=LD_LIBRARY_PATH
15327 shlibpath_overrides_runpath=yes
15329 freebsd3.[01]* | freebsdelf3.[01]*)
15330 shlibpath_overrides_runpath=yes
15331 hardcode_into_libs=yes
15333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15335 shlibpath_overrides_runpath=no
15336 hardcode_into_libs=yes
15338 *) # from 4.6 on, and DragonFly
15339 shlibpath_overrides_runpath=yes
15340 hardcode_into_libs=yes
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 hardcode_into_libs=yes
15355 hpux9* | hpux10* | hpux11*)
15356 # Give a soname corresponding to the major version so that dld.sl refuses to
15357 # link against other versions.
15364 hardcode_into_libs=yes
15365 dynamic_linker="$host_os dld.so"
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 if test "X$HPUX_IA64_MODE" = X32; then
15371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15379 hardcode_into_libs=yes
15380 dynamic_linker="$host_os dld.sl"
15381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15390 dynamic_linker="$host_os dld.sl"
15391 shlibpath_var=SHLIB_PATH
15392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15398 postinstall_cmds='chmod 555 $lib'
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=no
15410 hardcode_into_libs=yes
15413 irix5* | irix6* | nonstopux*)
15415 nonstopux*) version_type=nonstopux ;;
15417 if test "$lt_cv_prog_gnu_ld" = yes; then
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15428 irix5* | nonstopux*)
15429 libsuff= shlibsuff=
15432 case $LD in # libtool.m4 will add one of these switches to LD
15433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15434 libsuff= shlibsuff= libmagic=32-bit;;
15435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15436 libsuff=32 shlibsuff=N32 libmagic=N32;;
15437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15439 *) libsuff= shlibsuff= libmagic=never-match;;
15443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15444 shlibpath_overrides_runpath=no
15445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15447 hardcode_into_libs=yes
15450 # No shared lib support for Linux oldld, aout, or coff.
15451 linux*oldld* | linux*aout* | linux*coff*)
15455 # This must be Linux ELF.
15456 linux* | k*bsd*-gnu)
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 shlibpath_overrides_runpath=no
15465 # Some binutils ld are patched to set DT_RUNPATH
15466 save_LDFLAGS=$LDFLAGS
15467 save_libdir=$libdir
15468 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15469 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15470 cat >conftest.$ac_ext <<_ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_cxx_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest$ac_exeext &&
15502 $as_test_x conftest$ac_exeext; then
15503 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15504 shlibpath_overrides_runpath=yes
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LDFLAGS=$save_LDFLAGS
15517 libdir=$save_libdir
15519 # This implies no fast_install, which is unacceptable.
15520 # Some rework will be needed to allow for fast_install
15521 # before this can be enabled.
15522 hardcode_into_libs=yes
15524 # Append ld.so.conf contents to the search path
15525 if test -f /etc/ld.so.conf; then
15526 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' ' '`
15527 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15530 # We used to test for /lib/ld.so.1 and disable shared libraries on
15531 # powerpc, because MkLinux only supported shared libraries with the
15532 # GNU dynamic linker. Since this was broken with cross compilers,
15533 # most powerpc-linux boxes support dynamic linking these days and
15534 # people can always --disable-shared, the test was removed, and we
15535 # assume the GNU/Linux dynamic linker is in use.
15536 dynamic_linker='GNU/Linux ld.so'
15543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15546 dynamic_linker='NetBSD (a.out) ld.so'
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 dynamic_linker='NetBSD ld.elf_so'
15552 shlibpath_var=LD_LIBRARY_PATH
15553 shlibpath_overrides_runpath=yes
15554 hardcode_into_libs=yes
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560 shlibpath_var=LD_LIBRARY_PATH
15561 shlibpath_overrides_runpath=yes
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 shlibpath_var=LD_LIBRARY_PATH
15571 shlibpath_overrides_runpath=no
15572 hardcode_into_libs=yes
15573 dynamic_linker='ldqnx.so'
15578 sys_lib_dlsearch_path_spec="/usr/lib"
15580 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15582 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15583 *) need_version=no ;;
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15590 openbsd2.[89] | openbsd2.[89].*)
15591 shlibpath_overrides_runpath=no
15594 shlibpath_overrides_runpath=yes
15598 shlibpath_overrides_runpath=yes
15603 libname_spec='$name'
15606 library_names_spec='$libname${shared_ext} $libname.a'
15607 dynamic_linker='OS/2 ld.exe'
15608 shlibpath_var=LIBPATH
15611 osf3* | osf4* | osf5*)
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15619 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 shlibpath_overrides_runpath=yes
15634 hardcode_into_libs=yes
15635 # ldd complains unless libraries are executable
15636 postinstall_cmds='chmod +x $lib'
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15642 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=yes
15645 if test "$with_gnu_ld" = yes; then
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 case $host_vendor in
15658 shlibpath_overrides_runpath=no
15660 runpath_var=LD_RUN_PATH
15668 shlibpath_overrides_runpath=no
15669 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15675 if test -d /usr/nec ;then
15677 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15678 soname_spec='$libname${shared_ext}.$major'
15679 shlibpath_var=LD_LIBRARY_PATH
15683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15684 version_type=freebsd-elf
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=yes
15691 hardcode_into_libs=yes
15692 if test "$with_gnu_ld" = yes; then
15693 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15695 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15698 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15702 sys_lib_dlsearch_path_spec='/usr/lib'
15706 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=no
15713 hardcode_into_libs=yes
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 shlibpath_var=LD_LIBRARY_PATH
15727 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15728 echo "${ECHO_T}$dynamic_linker" >&6; }
15729 test "$dynamic_linker" = no && can_build_shared=no
15731 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15732 if test "$GCC" = yes; then
15733 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15736 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15737 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15739 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15740 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15778 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15779 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15780 hardcode_action_CXX=
15781 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15782 test -n "$runpath_var_CXX" ||
15783 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15785 # We can hardcode non-existent directories.
15786 if test "$hardcode_direct_CXX" != no &&
15787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15788 # have to relink, otherwise we might link with an installed library
15789 # when we should be linking with a yet-to-be-installed one
15790 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15791 test "$hardcode_minus_L_CXX" != no; then
15792 # Linking always hardcodes the temporary library directory.
15793 hardcode_action_CXX=relink
15795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15796 hardcode_action_CXX=immediate
15799 # We cannot hardcode anything, or else we can only hardcode existing
15801 hardcode_action_CXX=unsupported
15803 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15804 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15806 if test "$hardcode_action_CXX" = relink ||
15807 test "$inherit_rpath_CXX" = yes; then
15808 # Fast installation is not supported
15809 enable_fast_install=no
15810 elif test "$shlibpath_overrides_runpath" = yes ||
15811 test "$enable_shared" = no; then
15812 # Fast installation is not necessary
15813 enable_fast_install=needless
15822 fi # test -n "$compiler"
15828 with_gnu_ld=$lt_save_with_gnu_ld
15829 lt_cv_path_LDCXX=$lt_cv_path_LD
15830 lt_cv_path_LD=$lt_save_path_LD
15831 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15832 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15833 fi # test "$_lt_caught_CXX_error" != yes
15836 ac_cpp='$CPP $CPPFLAGS'
15837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15853 ac_config_commands="$ac_config_commands libtool"
15858 # Only expand once:
15862 # Check whether --enable-libtool was given.
15863 if test "${enable_libtool+set}" = set; then
15864 enableval=$enable_libtool;
15865 if test x$enableval = xno; then
15873 if test x$use_libtool != xno; then
15874 DEFAULT_OBJECT_TYPE=".lo"
15875 DEFAULT_ARCHIVE_TYPE=".la"
15876 DEFAULT_SHARED_OBJECT_TYPE=".la"
15877 LIBTOOL="\$(LIBTOOL)"
15878 LIBTOOL_INSTALL_TARGET="libtool-install"
15879 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15880 LIBTOOL_CLEAN_TARGET="libtool-clean"
15881 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15883 DEFAULT_OBJECT_TYPE=".o"
15884 DEFAULT_ARCHIVE_TYPE=".a"
15885 DEFAULT_SHARED_OBJECT_TYPE=".so"
15886 LIBTOOL="# \$(LIBTOOL)"
15887 LIBTOOL_INSTALL_TARGET=""
15888 LIBTOOL_UNINSTALL_TARGET=""
15889 LIBTOOL_CLEAN_TARGET=""
15890 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15893 INCLUDE_INSTALL_TARGET=""
15894 INCLUDE_UNINSTALL_TARGET=""
15908 { echo "$as_me:$LINENO: checking host system type" >&5
15909 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15910 if test "${ac_cv_host+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 if test "x$host_alias" = x; then
15914 ac_cv_host=$ac_cv_build
15916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15917 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15919 { (exit 1); exit 1; }; }
15923 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15924 echo "${ECHO_T}$ac_cv_host" >&6; }
15925 case $ac_cv_host in
15927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15928 echo "$as_me: error: invalid value of canonical host" >&2;}
15929 { (exit 1); exit 1; }; };;
15932 ac_save_IFS=$IFS; IFS='-'
15938 # Remember, the first character of IFS is used to create $*,
15939 # except with old shells:
15942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15946 *cygwin* ) CYGWIN=yes;;
15950 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15956 HAVE_SUN_OS_FALSE='#'
15958 HAVE_SUN_OS_TRUE='#'
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_SUN_OS 1
15970 HAVE_SUN_OS_FALSE='#'
15972 HAVE_SUN_OS_TRUE='#'
15977 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15983 HAVE_OSF1_OS_FALSE='#'
15985 HAVE_OSF1_OS_TRUE='#'
15986 HAVE_OSF1_OS_FALSE=
15988 cat >>confdefs.h <<\_ACEOF
15989 #define HAVE_OSF1_OS 1
15997 HAVE_OSF1_OS_FALSE='#'
15999 HAVE_OSF1_OS_TRUE='#'
16000 HAVE_OSF1_OS_FALSE=
16004 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16010 HAVE_AIX_OS_FALSE='#'
16012 HAVE_AIX_OS_TRUE='#'
16015 cat >>confdefs.h <<\_ACEOF
16016 #define HAVE_AIX_OS 1
16024 HAVE_AIX_OS_FALSE='#'
16026 HAVE_AIX_OS_TRUE='#'
16031 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16037 HAVE_HPUX_OS_FALSE='#'
16039 HAVE_HPUX_OS_TRUE='#'
16040 HAVE_HPUX_OS_FALSE=
16042 cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_HPUX_OS 1
16051 HAVE_HPUX_OS_FALSE='#'
16053 HAVE_HPUX_OS_TRUE='#'
16054 HAVE_HPUX_OS_FALSE=
16058 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16063 HAVE_LINUX_OS_TRUE=
16064 HAVE_LINUX_OS_FALSE='#'
16066 HAVE_LINUX_OS_TRUE='#'
16067 HAVE_LINUX_OS_FALSE=
16069 cat >>confdefs.h <<\_ACEOF
16070 #define HAVE_LINUX_OS 1
16077 HAVE_LINUX_OS_TRUE=
16078 HAVE_LINUX_OS_FALSE='#'
16080 HAVE_LINUX_OS_TRUE='#'
16081 HAVE_LINUX_OS_FALSE=
16085 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16090 HAVE_FREEBSD_OS_TRUE=
16091 HAVE_FREEBSD_OS_FALSE='#'
16093 HAVE_FREEBSD_OS_TRUE='#'
16094 HAVE_FREEBSD_OS_FALSE=
16096 cat >>confdefs.h <<\_ACEOF
16097 #define HAVE_FREEBSD_OS 1
16104 HAVE_FREEBSD_OS_TRUE=
16105 HAVE_FREEBSD_OS_FALSE='#'
16107 HAVE_FREEBSD_OS_TRUE='#'
16108 HAVE_FREEBSD_OS_FALSE=
16112 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16117 HAVE_NETBSD_OS_TRUE=
16118 HAVE_NETBSD_OS_FALSE='#'
16120 HAVE_NETBSD_OS_TRUE='#'
16121 HAVE_NETBSD_OS_FALSE=
16123 cat >>confdefs.h <<\_ACEOF
16124 #define HAVE_NETBSD_OS 1
16131 HAVE_NETBSD_OS_TRUE=
16132 HAVE_NETBSD_OS_FALSE='#'
16134 HAVE_NETBSD_OS_TRUE='#'
16135 HAVE_NETBSD_OS_FALSE=
16139 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16144 HAVE_OPENBSD_OS_TRUE=
16145 HAVE_OPENBSD_OS_FALSE='#'
16147 HAVE_OPENBSD_OS_TRUE='#'
16148 HAVE_OPENBSD_OS_FALSE=
16150 cat >>confdefs.h <<\_ACEOF
16151 #define HAVE_OPENBSD_OS 1
16158 HAVE_OPENBSD_OS_TRUE=
16159 HAVE_OPENBSD_OS_FALSE='#'
16161 HAVE_OPENBSD_OS_TRUE='#'
16162 HAVE_OPENBSD_OS_FALSE=
16166 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16172 HAVE_BSDI_OS_FALSE='#'
16174 HAVE_BSDI_OS_TRUE='#'
16175 HAVE_BSDI_OS_FALSE=
16177 cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_BSDI_OS 1
16186 HAVE_BSDI_OS_FALSE='#'
16188 HAVE_BSDI_OS_TRUE='#'
16189 HAVE_BSDI_OS_FALSE=
16193 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16199 HAVE_SGI_OS_FALSE='#'
16201 HAVE_SGI_OS_TRUE='#'
16204 cat >>confdefs.h <<\_ACEOF
16205 #define HAVE_SGI_OS 1
16213 HAVE_SGI_OS_FALSE='#'
16215 HAVE_SGI_OS_TRUE='#'
16220 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16226 HAVE_IRIX_OS_FALSE='#'
16228 HAVE_IRIX_OS_TRUE='#'
16229 HAVE_IRIX_OS_FALSE=
16231 cat >>confdefs.h <<\_ACEOF
16232 #define HAVE_IRIX_OS 1
16240 HAVE_IRIX_OS_FALSE='#'
16242 HAVE_IRIX_OS_TRUE='#'
16243 HAVE_IRIX_OS_FALSE=
16247 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16252 HAVE_DARWIN_OS_TRUE=
16253 HAVE_DARWIN_OS_FALSE='#'
16255 HAVE_DARWIN_OS_TRUE='#'
16256 HAVE_DARWIN_OS_FALSE=
16258 cat >>confdefs.h <<\_ACEOF
16259 #define HAVE_DARWIN_OS 1
16266 HAVE_DARWIN_OS_TRUE=
16267 HAVE_DARWIN_OS_FALSE='#'
16269 HAVE_DARWIN_OS_TRUE='#'
16270 HAVE_DARWIN_OS_FALSE=
16275 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16276 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16277 if test "x$DISTNAME" != "x"
16279 echo "distname set to $DISTNAME"
16280 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16283 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16286 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16289 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16292 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16295 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16298 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16301 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16304 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16307 elif test -f /etc/SuSE-release
16310 elif test -d /etc/SuSEconfig
16313 elif test -f /etc/mandrake-release
16316 elif test -f /etc/whitebox-release
16319 elif test -f /etc/redhat-release
16322 elif test -f /etc/gentoo-release
16325 elif test -f /etc/debian_version
16328 elif test -f /etc/slackware-version
16331 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16334 elif test -f /etc/engarde-version
16337 elif test "$CYGWIN" = yes
16340 cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_CYGWIN 1
16347 { echo "$as_me:$LINENO: result: done" >&5
16348 echo "${ECHO_T}done" >&6; }
16351 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16352 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16353 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16354 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 cat >conftest.make <<\_ACEOF
16360 @echo '@@@%%%=$(MAKE)=@@@%%%'
16362 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16364 *@@@%%%=?*=@@@%%%*)
16365 eval ac_cv_prog_make_${ac_make}_set=yes;;
16367 eval ac_cv_prog_make_${ac_make}_set=no;;
16369 rm -f conftest.make
16371 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16372 { echo "$as_me:$LINENO: result: yes" >&5
16373 echo "${ECHO_T}yes" >&6; }
16376 { echo "$as_me:$LINENO: result: no" >&5
16377 echo "${ECHO_T}no" >&6; }
16378 SET_MAKE="MAKE=${MAKE-make}"
16384 if test -n "$ac_aux_dir"; then
16385 case "$ac_aux_dir" in
16386 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16387 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16390 if test -z "$MKINSTALLDIRS"; then
16391 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16396 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16397 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16398 # Check whether --enable-nls was given.
16399 if test "${enable_nls+set}" = set; then
16400 enableval=$enable_nls; USE_NLS=$enableval
16405 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16406 echo "${ECHO_T}$USE_NLS" >&6; }
16413 # Prepare PATH_SEPARATOR.
16414 # The user is always right.
16415 if test "${PATH_SEPARATOR+set}" != set; then
16416 echo "#! /bin/sh" >conf$$.sh
16417 echo "exit 0" >>conf$$.sh
16419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16427 # Find out how to test for executable files. Don't use a zero-byte file,
16428 # as systems may use methods other than mode bits to determine executability.
16429 cat >conf$$.file <<_ASEOF
16433 chmod +x conf$$.file
16434 if test -x conf$$.file >/dev/null 2>&1; then
16435 ac_executable_p="test -x"
16437 ac_executable_p="test -f"
16441 # Extract the first word of "msgfmt", so it can be a program name with args.
16442 set dummy msgfmt; ac_word=$2
16443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16445 if test "${ac_cv_path_MSGFMT+set}" = set; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16453 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16454 for ac_dir in $PATH; do
16456 test -z "$ac_dir" && ac_dir=.
16457 for ac_exec_ext in '' $ac_executable_extensions; do
16458 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16459 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16460 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16461 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16462 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16469 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16473 MSGFMT="$ac_cv_path_MSGFMT"
16474 if test "$MSGFMT" != ":"; then
16475 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16476 echo "${ECHO_T}$MSGFMT" >&6; }
16478 { echo "$as_me:$LINENO: result: no" >&5
16479 echo "${ECHO_T}no" >&6; }
16482 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16483 set dummy gmsgfmt; ac_word=$2
16484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16486 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16495 for as_dir in $PATH
16498 test -z "$as_dir" && as_dir=.
16499 for ac_exec_ext in '' $ac_executable_extensions; do
16500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16501 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16509 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16513 GMSGFMT=$ac_cv_path_GMSGFMT
16514 if test -n "$GMSGFMT"; then
16515 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16516 echo "${ECHO_T}$GMSGFMT" >&6; }
16518 { echo "$as_me:$LINENO: result: no" >&5
16519 echo "${ECHO_T}no" >&6; }
16525 # Prepare PATH_SEPARATOR.
16526 # The user is always right.
16527 if test "${PATH_SEPARATOR+set}" != set; then
16528 echo "#! /bin/sh" >conf$$.sh
16529 echo "exit 0" >>conf$$.sh
16531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16539 # Find out how to test for executable files. Don't use a zero-byte file,
16540 # as systems may use methods other than mode bits to determine executability.
16541 cat >conf$$.file <<_ASEOF
16545 chmod +x conf$$.file
16546 if test -x conf$$.file >/dev/null 2>&1; then
16547 ac_executable_p="test -x"
16549 ac_executable_p="test -f"
16553 # Extract the first word of "xgettext", so it can be a program name with args.
16554 set dummy xgettext; ac_word=$2
16555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16557 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 case "$XGETTEXT" in
16562 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16565 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16566 for ac_dir in $PATH; do
16568 test -z "$ac_dir" && ac_dir=.
16569 for ac_exec_ext in '' $ac_executable_extensions; do
16570 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16571 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16572 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16573 (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
16574 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16581 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16585 XGETTEXT="$ac_cv_path_XGETTEXT"
16586 if test "$XGETTEXT" != ":"; then
16587 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16588 echo "${ECHO_T}$XGETTEXT" >&6; }
16590 { echo "$as_me:$LINENO: result: no" >&5
16591 echo "${ECHO_T}no" >&6; }
16597 # Prepare PATH_SEPARATOR.
16598 # The user is always right.
16599 if test "${PATH_SEPARATOR+set}" != set; then
16600 echo "#! /bin/sh" >conf$$.sh
16601 echo "exit 0" >>conf$$.sh
16603 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16611 # Find out how to test for executable files. Don't use a zero-byte file,
16612 # as systems may use methods other than mode bits to determine executability.
16613 cat >conf$$.file <<_ASEOF
16617 chmod +x conf$$.file
16618 if test -x conf$$.file >/dev/null 2>&1; then
16619 ac_executable_p="test -x"
16621 ac_executable_p="test -f"
16625 # Extract the first word of "msgmerge", so it can be a program name with args.
16626 set dummy msgmerge; ac_word=$2
16627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16629 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 case "$MSGMERGE" in
16634 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16637 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16638 for ac_dir in $PATH; do
16640 test -z "$ac_dir" && ac_dir=.
16641 for ac_exec_ext in '' $ac_executable_extensions; do
16642 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16643 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16644 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16645 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16652 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16656 MSGMERGE="$ac_cv_path_MSGMERGE"
16657 if test "$MSGMERGE" != ":"; then
16658 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16659 echo "${ECHO_T}$MSGMERGE" >&6; }
16661 { echo "$as_me:$LINENO: result: no" >&5
16662 echo "${ECHO_T}no" >&6; }
16666 if test "$GMSGFMT" != ":"; then
16667 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16668 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16671 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16672 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16673 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16678 if test "$XGETTEXT" != ":"; then
16679 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16680 (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
16683 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16684 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16690 ac_config_commands="$ac_config_commands default-1"
16694 if test "X$prefix" = "XNONE"; then
16695 acl_final_prefix="$ac_default_prefix"
16697 acl_final_prefix="$prefix"
16699 if test "X$exec_prefix" = "XNONE"; then
16700 acl_final_exec_prefix='${prefix}'
16702 acl_final_exec_prefix="$exec_prefix"
16704 acl_save_prefix="$prefix"
16705 prefix="$acl_final_prefix"
16706 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16707 prefix="$acl_save_prefix"
16710 # Check whether --with-gnu-ld was given.
16711 if test "${with_gnu_ld+set}" = set; then
16712 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16717 # Prepare PATH_SEPARATOR.
16718 # The user is always right.
16719 if test "${PATH_SEPARATOR+set}" != set; then
16720 echo "#! /bin/sh" >conf$$.sh
16721 echo "exit 0" >>conf$$.sh
16723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16731 if test "$GCC" = yes; then
16732 # Check if gcc -print-prog-name=ld gives a path.
16733 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16734 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16737 # gcc leaves a trailing carriage return which upsets mingw
16738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16743 # Accept absolute paths.
16744 [\\/]* | [A-Za-z]:[\\/]*)
16745 re_direlt='/[^/][^/]*/\.\./'
16746 # Canonicalize the path of ld
16747 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16748 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16749 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16751 test -z "$LD" && LD="$ac_prog"
16754 # If it fails, then pretend we aren't using GCC.
16758 # If it is relative, then search for the first ld in PATH.
16759 with_gnu_ld=unknown
16762 elif test "$with_gnu_ld" = yes; then
16763 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16764 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16766 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16767 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16769 if test "${acl_cv_path_LD+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 if test -z "$LD"; then
16773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16774 for ac_dir in $PATH; do
16775 test -z "$ac_dir" && ac_dir=.
16776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16777 acl_cv_path_LD="$ac_dir/$ac_prog"
16778 # Check to see if the program is GNU ld. I'd rather use --version,
16779 # but apparently some GNU ld's only accept -v.
16780 # Break only if it was the GNU/non-GNU ld that we prefer.
16781 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16782 *GNU* | *'with BFD'*)
16783 test "$with_gnu_ld" != no && break ;;
16785 test "$with_gnu_ld" != yes && break ;;
16791 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16795 LD="$acl_cv_path_LD"
16796 if test -n "$LD"; then
16797 { echo "$as_me:$LINENO: result: $LD" >&5
16798 echo "${ECHO_T}$LD" >&6; }
16800 { echo "$as_me:$LINENO: result: no" >&5
16801 echo "${ECHO_T}no" >&6; }
16803 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16804 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16805 { (exit 1); exit 1; }; }
16806 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16807 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16808 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16812 case `$LD -v 2>&1 </dev/null` in
16813 *GNU* | *'with BFD'*)
16814 acl_cv_prog_gnu_ld=yes ;;
16816 acl_cv_prog_gnu_ld=no ;;
16819 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16820 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16821 with_gnu_ld=$acl_cv_prog_gnu_ld
16826 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16827 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16828 if test "${acl_cv_rpath+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16833 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16835 rm -f ./conftest.sh
16839 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16840 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16842 libext="$acl_cv_libext"
16843 shlibext="$acl_cv_shlibext"
16844 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16845 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16846 hardcode_direct="$acl_cv_hardcode_direct"
16847 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16848 # Check whether --enable-rpath was given.
16849 if test "${enable_rpath+set}" = set; then
16850 enableval=$enable_rpath; :
16864 acl_save_prefix="$prefix"
16865 prefix="$acl_final_prefix"
16866 acl_save_exec_prefix="$exec_prefix"
16867 exec_prefix="$acl_final_exec_prefix"
16869 eval additional_includedir=\"$includedir\"
16870 eval additional_libdir=\"$libdir\"
16872 exec_prefix="$acl_save_exec_prefix"
16873 prefix="$acl_save_prefix"
16876 # Check whether --with-libiconv-prefix was given.
16877 if test "${with_libiconv_prefix+set}" = set; then
16878 withval=$with_libiconv_prefix;
16879 if test "X$withval" = "Xno"; then
16882 if test "X$withval" = "X"; then
16884 acl_save_prefix="$prefix"
16885 prefix="$acl_final_prefix"
16886 acl_save_exec_prefix="$exec_prefix"
16887 exec_prefix="$acl_final_exec_prefix"
16889 eval additional_includedir=\"$includedir\"
16890 eval additional_libdir=\"$libdir\"
16892 exec_prefix="$acl_save_exec_prefix"
16893 prefix="$acl_save_prefix"
16896 additional_includedir="$withval/include"
16897 additional_libdir="$withval/lib"
16908 names_already_handled=
16909 names_next_round='iconv '
16910 while test -n "$names_next_round"; do
16911 names_this_round="$names_next_round"
16913 for name in $names_this_round; do
16915 for n in $names_already_handled; do
16916 if test "$n" = "$name"; then
16917 already_handled=yes
16921 if test -z "$already_handled"; then
16922 names_already_handled="$names_already_handled $name"
16923 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16924 eval value=\"\$HAVE_LIB$uppername\"
16925 if test -n "$value"; then
16926 if test "$value" = yes; then
16927 eval value=\"\$LIB$uppername\"
16928 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16929 eval value=\"\$LTLIB$uppername\"
16930 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16939 if test $use_additional = yes; then
16940 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16941 found_dir="$additional_libdir"
16942 found_so="$additional_libdir/lib$name.$shlibext"
16943 if test -f "$additional_libdir/lib$name.la"; then
16944 found_la="$additional_libdir/lib$name.la"
16947 if test -f "$additional_libdir/lib$name.$libext"; then
16948 found_dir="$additional_libdir"
16949 found_a="$additional_libdir/lib$name.$libext"
16950 if test -f "$additional_libdir/lib$name.la"; then
16951 found_la="$additional_libdir/lib$name.la"
16956 if test "X$found_dir" = "X"; then
16957 for x in $LDFLAGS $LTLIBICONV; do
16959 acl_save_prefix="$prefix"
16960 prefix="$acl_final_prefix"
16961 acl_save_exec_prefix="$exec_prefix"
16962 exec_prefix="$acl_final_exec_prefix"
16964 exec_prefix="$acl_save_exec_prefix"
16965 prefix="$acl_save_prefix"
16969 dir=`echo "X$x" | sed -e 's/^X-L//'`
16970 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16972 found_so="$dir/lib$name.$shlibext"
16973 if test -f "$dir/lib$name.la"; then
16974 found_la="$dir/lib$name.la"
16977 if test -f "$dir/lib$name.$libext"; then
16979 found_a="$dir/lib$name.$libext"
16980 if test -f "$dir/lib$name.la"; then
16981 found_la="$dir/lib$name.la"
16987 if test "X$found_dir" != "X"; then
16992 if test "X$found_dir" != "X"; then
16993 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16994 if test "X$found_so" != "X"; then
16995 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16996 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16999 for x in $ltrpathdirs; do
17000 if test "X$x" = "X$found_dir"; then
17005 if test -z "$haveit"; then
17006 ltrpathdirs="$ltrpathdirs $found_dir"
17008 if test "$hardcode_direct" = yes; then
17009 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17011 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17012 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17014 for x in $rpathdirs; do
17015 if test "X$x" = "X$found_dir"; then
17020 if test -z "$haveit"; then
17021 rpathdirs="$rpathdirs $found_dir"
17025 for x in $LDFLAGS $LIBICONV; do
17027 acl_save_prefix="$prefix"
17028 prefix="$acl_final_prefix"
17029 acl_save_exec_prefix="$exec_prefix"
17030 exec_prefix="$acl_final_exec_prefix"
17032 exec_prefix="$acl_save_exec_prefix"
17033 prefix="$acl_save_prefix"
17035 if test "X$x" = "X-L$found_dir"; then
17040 if test -z "$haveit"; then
17041 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17043 if test "$hardcode_minus_L" != no; then
17044 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17046 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17052 if test "X$found_a" != "X"; then
17053 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17055 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17058 additional_includedir=
17059 case "$found_dir" in
17061 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17062 additional_includedir="$basedir/include"
17065 if test "X$additional_includedir" != "X"; then
17066 if test "X$additional_includedir" != "X/usr/include"; then
17068 if test "X$additional_includedir" = "X/usr/local/include"; then
17069 if test -n "$GCC"; then
17071 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17075 if test -z "$haveit"; then
17076 for x in $CPPFLAGS $INCICONV; do
17078 acl_save_prefix="$prefix"
17079 prefix="$acl_final_prefix"
17080 acl_save_exec_prefix="$exec_prefix"
17081 exec_prefix="$acl_final_exec_prefix"
17083 exec_prefix="$acl_save_exec_prefix"
17084 prefix="$acl_save_prefix"
17086 if test "X$x" = "X-I$additional_includedir"; then
17091 if test -z "$haveit"; then
17092 if test -d "$additional_includedir"; then
17093 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17099 if test -n "$found_la"; then
17100 save_libdir="$libdir"
17101 case "$found_la" in
17102 */* | *\\*) . "$found_la" ;;
17103 *) . "./$found_la" ;;
17105 libdir="$save_libdir"
17106 for dep in $dependency_libs; do
17109 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17110 if test "X$additional_libdir" != "X/usr/lib"; then
17112 if test "X$additional_libdir" = "X/usr/local/lib"; then
17113 if test -n "$GCC"; then
17115 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17119 if test -z "$haveit"; then
17121 for x in $LDFLAGS $LIBICONV; do
17123 acl_save_prefix="$prefix"
17124 prefix="$acl_final_prefix"
17125 acl_save_exec_prefix="$exec_prefix"
17126 exec_prefix="$acl_final_exec_prefix"
17128 exec_prefix="$acl_save_exec_prefix"
17129 prefix="$acl_save_prefix"
17131 if test "X$x" = "X-L$additional_libdir"; then
17136 if test -z "$haveit"; then
17137 if test -d "$additional_libdir"; then
17138 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17142 for x in $LDFLAGS $LTLIBICONV; do
17144 acl_save_prefix="$prefix"
17145 prefix="$acl_final_prefix"
17146 acl_save_exec_prefix="$exec_prefix"
17147 exec_prefix="$acl_final_exec_prefix"
17149 exec_prefix="$acl_save_exec_prefix"
17150 prefix="$acl_save_prefix"
17152 if test "X$x" = "X-L$additional_libdir"; then
17157 if test -z "$haveit"; then
17158 if test -d "$additional_libdir"; then
17159 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17166 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17167 if test "$enable_rpath" != no; then
17169 for x in $rpathdirs; do
17170 if test "X$x" = "X$dir"; then
17175 if test -z "$haveit"; then
17176 rpathdirs="$rpathdirs $dir"
17179 for x in $ltrpathdirs; do
17180 if test "X$x" = "X$dir"; then
17185 if test -z "$haveit"; then
17186 ltrpathdirs="$ltrpathdirs $dir"
17191 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17194 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17197 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17204 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17205 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17211 if test "X$rpathdirs" != "X"; then
17212 if test -n "$hardcode_libdir_separator"; then
17214 for found_dir in $rpathdirs; do
17215 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17217 acl_save_libdir="$libdir"
17219 eval flag=\"$hardcode_libdir_flag_spec\"
17220 libdir="$acl_save_libdir"
17221 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17223 for found_dir in $rpathdirs; do
17224 acl_save_libdir="$libdir"
17225 libdir="$found_dir"
17226 eval flag=\"$hardcode_libdir_flag_spec\"
17227 libdir="$acl_save_libdir"
17228 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17232 if test "X$ltrpathdirs" != "X"; then
17233 for found_dir in $ltrpathdirs; do
17234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17255 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17256 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17257 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 gt_save_CPPFLAGS="$CPPFLAGS"
17261 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17262 gt_save_LIBS="$LIBS"
17263 LIBS="$LIBS -framework CoreFoundation"
17264 cat >conftest.$ac_ext <<_ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 #include <CFPreferences.h>
17274 CFPreferencesCopyAppValue(NULL, NULL)
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (ac_try="$ac_link"
17281 case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_link") 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && {
17293 test -z "$ac_c_werror_flag" ||
17294 test ! -s conftest.err
17295 } && test -s conftest$ac_exeext &&
17296 $as_test_x conftest$ac_exeext; then
17297 gt_cv_func_CFPreferencesCopyAppValue=yes
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 gt_cv_func_CFPreferencesCopyAppValue=no
17305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17306 conftest$ac_exeext conftest.$ac_ext
17307 CPPFLAGS="$gt_save_CPPFLAGS"
17308 LIBS="$gt_save_LIBS"
17310 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17311 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17312 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17314 cat >>confdefs.h <<\_ACEOF
17315 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17319 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17320 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17321 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 gt_save_CPPFLAGS="$CPPFLAGS"
17325 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17326 gt_save_LIBS="$LIBS"
17327 LIBS="$LIBS -framework CoreFoundation"
17328 cat >conftest.$ac_ext <<_ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 #include <CFLocale.h>
17338 CFLocaleCopyCurrent();
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext &&
17360 $as_test_x conftest$ac_exeext; then
17361 gt_cv_func_CFLocaleCopyCurrent=yes
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 gt_cv_func_CFLocaleCopyCurrent=no
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370 conftest$ac_exeext conftest.$ac_ext
17371 CPPFLAGS="$gt_save_CPPFLAGS"
17372 LIBS="$gt_save_LIBS"
17374 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17375 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17376 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_CFLOCALECOPYCURRENT 1
17384 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17385 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17391 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17392 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17393 # Check whether --enable-nls was given.
17394 if test "${enable_nls+set}" = set; then
17395 enableval=$enable_nls; USE_NLS=$enableval
17400 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17401 echo "${ECHO_T}$USE_NLS" >&6; }
17410 if test "$USE_NLS" = "yes"; then
17411 gt_use_preinstalled_gnugettext=no
17418 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17419 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17420 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 cat >conftest.$ac_ext <<_ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17429 #include <libintl.h>
17430 extern int _nl_msg_cat_cntr;
17431 extern int *_nl_domain_bindings;
17435 bindtextdomain ("", "");
17436 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1 >conftest.err
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest$ac_exeext &&
17458 $as_test_x conftest$ac_exeext; then
17459 gt_cv_func_gnugettext1_libc=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 gt_cv_func_gnugettext1_libc=no
17467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17468 conftest$ac_exeext conftest.$ac_ext
17470 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17471 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17473 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17479 am_save_CPPFLAGS="$CPPFLAGS"
17481 for element in $INCICONV; do
17483 for x in $CPPFLAGS; do
17485 acl_save_prefix="$prefix"
17486 prefix="$acl_final_prefix"
17487 acl_save_exec_prefix="$exec_prefix"
17488 exec_prefix="$acl_final_exec_prefix"
17490 exec_prefix="$acl_save_exec_prefix"
17491 prefix="$acl_save_prefix"
17493 if test "X$x" = "X$element"; then
17498 if test -z "$haveit"; then
17499 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17504 { echo "$as_me:$LINENO: checking for iconv" >&5
17505 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17506 if test "${am_cv_func_iconv+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 am_cv_func_iconv="no, consider installing GNU libiconv"
17512 cat >conftest.$ac_ext <<_ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17518 #include <stdlib.h>
17523 iconv_t cd = iconv_open("","");
17524 iconv(cd,NULL,NULL,NULL,NULL);
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_link") 2>conftest.er1
17539 grep -v '^ *+' conftest.er1 >conftest.err
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } && {
17544 test -z "$ac_c_werror_flag" ||
17545 test ! -s conftest.err
17546 } && test -s conftest$ac_exeext &&
17547 $as_test_x conftest$ac_exeext; then
17548 am_cv_func_iconv=yes
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17557 conftest$ac_exeext conftest.$ac_ext
17558 if test "$am_cv_func_iconv" != yes; then
17559 am_save_LIBS="$LIBS"
17560 LIBS="$LIBS $LIBICONV"
17561 cat >conftest.$ac_ext <<_ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17567 #include <stdlib.h>
17572 iconv_t cd = iconv_open("","");
17573 iconv(cd,NULL,NULL,NULL,NULL);
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (ac_try="$ac_link"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } && {
17593 test -z "$ac_c_werror_flag" ||
17594 test ! -s conftest.err
17595 } && test -s conftest$ac_exeext &&
17596 $as_test_x conftest$ac_exeext; then
17597 am_cv_lib_iconv=yes
17598 am_cv_func_iconv=yes
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17607 conftest$ac_exeext conftest.$ac_ext
17608 LIBS="$am_save_LIBS"
17612 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17613 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17614 if test "$am_cv_func_iconv" = yes; then
17616 cat >>confdefs.h <<\_ACEOF
17617 #define HAVE_ICONV 1
17621 if test "$am_cv_lib_iconv" = yes; then
17622 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17623 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17624 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17625 echo "${ECHO_T}$LIBICONV" >&6; }
17627 CPPFLAGS="$am_save_CPPFLAGS"
17639 acl_save_prefix="$prefix"
17640 prefix="$acl_final_prefix"
17641 acl_save_exec_prefix="$exec_prefix"
17642 exec_prefix="$acl_final_exec_prefix"
17644 eval additional_includedir=\"$includedir\"
17645 eval additional_libdir=\"$libdir\"
17647 exec_prefix="$acl_save_exec_prefix"
17648 prefix="$acl_save_prefix"
17651 # Check whether --with-libintl-prefix was given.
17652 if test "${with_libintl_prefix+set}" = set; then
17653 withval=$with_libintl_prefix;
17654 if test "X$withval" = "Xno"; then
17657 if test "X$withval" = "X"; then
17659 acl_save_prefix="$prefix"
17660 prefix="$acl_final_prefix"
17661 acl_save_exec_prefix="$exec_prefix"
17662 exec_prefix="$acl_final_exec_prefix"
17664 eval additional_includedir=\"$includedir\"
17665 eval additional_libdir=\"$libdir\"
17667 exec_prefix="$acl_save_exec_prefix"
17668 prefix="$acl_save_prefix"
17671 additional_includedir="$withval/include"
17672 additional_libdir="$withval/lib"
17683 names_already_handled=
17684 names_next_round='intl '
17685 while test -n "$names_next_round"; do
17686 names_this_round="$names_next_round"
17688 for name in $names_this_round; do
17690 for n in $names_already_handled; do
17691 if test "$n" = "$name"; then
17692 already_handled=yes
17696 if test -z "$already_handled"; then
17697 names_already_handled="$names_already_handled $name"
17698 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17699 eval value=\"\$HAVE_LIB$uppername\"
17700 if test -n "$value"; then
17701 if test "$value" = yes; then
17702 eval value=\"\$LIB$uppername\"
17703 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17704 eval value=\"\$LTLIB$uppername\"
17705 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17714 if test $use_additional = yes; then
17715 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17716 found_dir="$additional_libdir"
17717 found_so="$additional_libdir/lib$name.$shlibext"
17718 if test -f "$additional_libdir/lib$name.la"; then
17719 found_la="$additional_libdir/lib$name.la"
17722 if test -f "$additional_libdir/lib$name.$libext"; then
17723 found_dir="$additional_libdir"
17724 found_a="$additional_libdir/lib$name.$libext"
17725 if test -f "$additional_libdir/lib$name.la"; then
17726 found_la="$additional_libdir/lib$name.la"
17731 if test "X$found_dir" = "X"; then
17732 for x in $LDFLAGS $LTLIBINTL; do
17734 acl_save_prefix="$prefix"
17735 prefix="$acl_final_prefix"
17736 acl_save_exec_prefix="$exec_prefix"
17737 exec_prefix="$acl_final_exec_prefix"
17739 exec_prefix="$acl_save_exec_prefix"
17740 prefix="$acl_save_prefix"
17744 dir=`echo "X$x" | sed -e 's/^X-L//'`
17745 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17747 found_so="$dir/lib$name.$shlibext"
17748 if test -f "$dir/lib$name.la"; then
17749 found_la="$dir/lib$name.la"
17752 if test -f "$dir/lib$name.$libext"; then
17754 found_a="$dir/lib$name.$libext"
17755 if test -f "$dir/lib$name.la"; then
17756 found_la="$dir/lib$name.la"
17762 if test "X$found_dir" != "X"; then
17767 if test "X$found_dir" != "X"; then
17768 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17769 if test "X$found_so" != "X"; then
17770 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17771 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17774 for x in $ltrpathdirs; do
17775 if test "X$x" = "X$found_dir"; then
17780 if test -z "$haveit"; then
17781 ltrpathdirs="$ltrpathdirs $found_dir"
17783 if test "$hardcode_direct" = yes; then
17784 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17786 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17787 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17789 for x in $rpathdirs; do
17790 if test "X$x" = "X$found_dir"; then
17795 if test -z "$haveit"; then
17796 rpathdirs="$rpathdirs $found_dir"
17800 for x in $LDFLAGS $LIBINTL; do
17802 acl_save_prefix="$prefix"
17803 prefix="$acl_final_prefix"
17804 acl_save_exec_prefix="$exec_prefix"
17805 exec_prefix="$acl_final_exec_prefix"
17807 exec_prefix="$acl_save_exec_prefix"
17808 prefix="$acl_save_prefix"
17810 if test "X$x" = "X-L$found_dir"; then
17815 if test -z "$haveit"; then
17816 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17818 if test "$hardcode_minus_L" != no; then
17819 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17821 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17827 if test "X$found_a" != "X"; then
17828 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17830 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17833 additional_includedir=
17834 case "$found_dir" in
17836 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17837 additional_includedir="$basedir/include"
17840 if test "X$additional_includedir" != "X"; then
17841 if test "X$additional_includedir" != "X/usr/include"; then
17843 if test "X$additional_includedir" = "X/usr/local/include"; then
17844 if test -n "$GCC"; then
17846 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17850 if test -z "$haveit"; then
17851 for x in $CPPFLAGS $INCINTL; do
17853 acl_save_prefix="$prefix"
17854 prefix="$acl_final_prefix"
17855 acl_save_exec_prefix="$exec_prefix"
17856 exec_prefix="$acl_final_exec_prefix"
17858 exec_prefix="$acl_save_exec_prefix"
17859 prefix="$acl_save_prefix"
17861 if test "X$x" = "X-I$additional_includedir"; then
17866 if test -z "$haveit"; then
17867 if test -d "$additional_includedir"; then
17868 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17874 if test -n "$found_la"; then
17875 save_libdir="$libdir"
17876 case "$found_la" in
17877 */* | *\\*) . "$found_la" ;;
17878 *) . "./$found_la" ;;
17880 libdir="$save_libdir"
17881 for dep in $dependency_libs; do
17884 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17885 if test "X$additional_libdir" != "X/usr/lib"; then
17887 if test "X$additional_libdir" = "X/usr/local/lib"; then
17888 if test -n "$GCC"; then
17890 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17894 if test -z "$haveit"; then
17896 for x in $LDFLAGS $LIBINTL; do
17898 acl_save_prefix="$prefix"
17899 prefix="$acl_final_prefix"
17900 acl_save_exec_prefix="$exec_prefix"
17901 exec_prefix="$acl_final_exec_prefix"
17903 exec_prefix="$acl_save_exec_prefix"
17904 prefix="$acl_save_prefix"
17906 if test "X$x" = "X-L$additional_libdir"; then
17911 if test -z "$haveit"; then
17912 if test -d "$additional_libdir"; then
17913 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17917 for x in $LDFLAGS $LTLIBINTL; do
17919 acl_save_prefix="$prefix"
17920 prefix="$acl_final_prefix"
17921 acl_save_exec_prefix="$exec_prefix"
17922 exec_prefix="$acl_final_exec_prefix"
17924 exec_prefix="$acl_save_exec_prefix"
17925 prefix="$acl_save_prefix"
17927 if test "X$x" = "X-L$additional_libdir"; then
17932 if test -z "$haveit"; then
17933 if test -d "$additional_libdir"; then
17934 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17941 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17942 if test "$enable_rpath" != no; then
17944 for x in $rpathdirs; do
17945 if test "X$x" = "X$dir"; then
17950 if test -z "$haveit"; then
17951 rpathdirs="$rpathdirs $dir"
17954 for x in $ltrpathdirs; do
17955 if test "X$x" = "X$dir"; then
17960 if test -z "$haveit"; then
17961 ltrpathdirs="$ltrpathdirs $dir"
17966 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17969 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17972 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17973 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17979 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17980 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17986 if test "X$rpathdirs" != "X"; then
17987 if test -n "$hardcode_libdir_separator"; then
17989 for found_dir in $rpathdirs; do
17990 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17992 acl_save_libdir="$libdir"
17994 eval flag=\"$hardcode_libdir_flag_spec\"
17995 libdir="$acl_save_libdir"
17996 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17998 for found_dir in $rpathdirs; do
17999 acl_save_libdir="$libdir"
18000 libdir="$found_dir"
18001 eval flag=\"$hardcode_libdir_flag_spec\"
18002 libdir="$acl_save_libdir"
18003 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18007 if test "X$ltrpathdirs" != "X"; then
18008 for found_dir in $ltrpathdirs; do
18009 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18013 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18014 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18015 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18018 gt_save_CPPFLAGS="$CPPFLAGS"
18019 CPPFLAGS="$CPPFLAGS $INCINTL"
18020 gt_save_LIBS="$LIBS"
18021 LIBS="$LIBS $LIBINTL"
18022 cat >conftest.$ac_ext <<_ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18028 #include <libintl.h>
18029 extern int _nl_msg_cat_cntr;
18034 const char *_nl_expand_alias (const char *);
18038 bindtextdomain ("", "");
18039 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_link") 2>conftest.er1
18053 grep -v '^ *+' conftest.er1 >conftest.err
18055 cat conftest.err >&5
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } && {
18058 test -z "$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18060 } && test -s conftest$ac_exeext &&
18061 $as_test_x conftest$ac_exeext; then
18062 gt_cv_func_gnugettext1_libintl=yes
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 gt_cv_func_gnugettext1_libintl=no
18070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18071 conftest$ac_exeext conftest.$ac_ext
18072 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18073 LIBS="$LIBS $LIBICONV"
18074 cat >conftest.$ac_ext <<_ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18080 #include <libintl.h>
18081 extern int _nl_msg_cat_cntr;
18086 const char *_nl_expand_alias (const char *);
18090 bindtextdomain ("", "");
18091 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_link") 2>conftest.er1
18105 grep -v '^ *+' conftest.er1 >conftest.err
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } && {
18110 test -z "$ac_c_werror_flag" ||
18111 test ! -s conftest.err
18112 } && test -s conftest$ac_exeext &&
18113 $as_test_x conftest$ac_exeext; then
18114 LIBINTL="$LIBINTL $LIBICONV"
18115 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18116 gt_cv_func_gnugettext1_libintl=yes
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18126 conftest$ac_exeext conftest.$ac_ext
18128 CPPFLAGS="$gt_save_CPPFLAGS"
18129 LIBS="$gt_save_LIBS"
18131 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18132 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18135 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18136 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18137 && test "$PACKAGE" != gettext-runtime \
18138 && test "$PACKAGE" != gettext-tools; }; then
18139 gt_use_preinstalled_gnugettext=yes
18148 if test -n "$INTL_MACOSX_LIBS"; then
18149 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18150 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18151 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18152 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18156 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18157 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18159 cat >>confdefs.h <<\_ACEOF
18160 #define ENABLE_NLS 1
18168 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18169 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18170 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18171 echo "${ECHO_T}$USE_NLS" >&6; }
18172 if test "$USE_NLS" = "yes"; then
18173 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18174 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18175 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18176 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18177 gt_source="external libintl"
18182 gt_source="included intl directory"
18184 { echo "$as_me:$LINENO: result: $gt_source" >&5
18185 echo "${ECHO_T}$gt_source" >&6; }
18188 if test "$USE_NLS" = "yes"; then
18190 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18191 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18192 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18193 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18194 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18195 echo "${ECHO_T}$LIBINTL" >&6; }
18197 for element in $INCINTL; do
18199 for x in $CPPFLAGS; do
18201 acl_save_prefix="$prefix"
18202 prefix="$acl_final_prefix"
18203 acl_save_exec_prefix="$exec_prefix"
18204 exec_prefix="$acl_final_exec_prefix"
18206 exec_prefix="$acl_save_exec_prefix"
18207 prefix="$acl_save_prefix"
18209 if test "X$x" = "X$element"; then
18214 if test -z "$haveit"; then
18215 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE_GETTEXT 1
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE_DCGETTEXT 1
18238 INTLLIBS="$LIBINTL"
18245 if test x${prefix} = xNONE ; then
18246 if test `eval echo ${datarootdir}` = NONE/share ; then
18247 datarootdir=/usr/share
18251 if test x${prefix} = xNONE ; then
18252 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18253 sysconfdir=/etc/bacula
18257 sysconfdir=`eval echo ${sysconfdir}`
18258 datarootdir=`eval echo ${datarootdir}`
18259 localedir=`eval echo ${datarootdir}/locale`
18260 cat >>confdefs.h <<_ACEOF
18261 #define SYSCONFDIR "$sysconfdir"
18264 cat >>confdefs.h <<_ACEOF
18265 #define LOCALEDIR "$localedir"
18269 if test x${exec_prefix} = xNONE ; then
18270 exec_prefix=${prefix}
18273 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18274 sbindir=${exec_prefix}/sbin
18276 sbindir=`eval echo ${sbindir}`
18278 if test x$libdir = x'${exec_prefix}/lib' ; then
18279 libdir=${exec_prefix}/lib
18281 libdir=`eval echo ${libdir}`
18283 if test x$includedir = x'${exec_prefix}/include' ; then
18284 includedir=${exec_prefix}/include
18286 includedir=`eval echo ${includedir}`
18288 if test x$mandir = x'${prefix}/man' ; then
18289 mandir=/usr/share/man
18292 for ac_prog in msgfmt
18294 # Extract the first word of "$ac_prog", so it can be a program name with args.
18295 set dummy $ac_prog; ac_word=$2
18296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18298 if test "${ac_cv_path_MSGFMT+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18307 for as_dir in $PATH
18310 test -z "$as_dir" && as_dir=.
18311 for ac_exec_ext in '' $ac_executable_extensions; do
18312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18313 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18324 MSGFMT=$ac_cv_path_MSGFMT
18325 if test -n "$MSGFMT"; then
18326 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18327 echo "${ECHO_T}$MSGFMT" >&6; }
18329 { echo "$as_me:$LINENO: result: no" >&5
18330 echo "${ECHO_T}no" >&6; }
18334 test -n "$MSGFMT" && break
18336 test -n "$MSGFMT" || MSGFMT="no"
18338 if test "$MSGFMT" = "no"
18340 echo 'msgfmt program not found, disabling NLS !'
18342 USE_INCLUDED_LIBINTL=no
18345 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18346 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18347 if test "${ac_cv_gnu_library_2+set}" = set; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18357 #include <features.h>
18358 #ifdef __GNU_LIBRARY__
18359 #if (__GLIBC__ >= 2)
18365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18366 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18367 ac_cv_gnu_library_2=yes
18369 ac_cv_gnu_library_2=no
18376 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18377 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18379 GLIBC2="$ac_cv_gnu_library_2"
18382 if test -n "$ac_tool_prefix"; then
18383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18387 if test "${ac_cv_prog_RANLIB+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 if test -n "$RANLIB"; then
18391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18394 for as_dir in $PATH
18397 test -z "$as_dir" && as_dir=.
18398 for ac_exec_ext in '' $ac_executable_extensions; do
18399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18410 RANLIB=$ac_cv_prog_RANLIB
18411 if test -n "$RANLIB"; then
18412 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18413 echo "${ECHO_T}$RANLIB" >&6; }
18415 { echo "$as_me:$LINENO: result: no" >&5
18416 echo "${ECHO_T}no" >&6; }
18421 if test -z "$ac_cv_prog_RANLIB"; then
18422 ac_ct_RANLIB=$RANLIB
18423 # Extract the first word of "ranlib", so it can be a program name with args.
18424 set dummy ranlib; ac_word=$2
18425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 if test -n "$ac_ct_RANLIB"; then
18431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434 for as_dir in $PATH
18437 test -z "$as_dir" && as_dir=.
18438 for ac_exec_ext in '' $ac_executable_extensions; do
18439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18440 ac_cv_prog_ac_ct_RANLIB="ranlib"
18441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18451 if test -n "$ac_ct_RANLIB"; then
18452 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18453 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18455 { echo "$as_me:$LINENO: result: no" >&5
18456 echo "${ECHO_T}no" >&6; }
18459 if test "x$ac_ct_RANLIB" = x; then
18462 case $cross_compiling:$ac_tool_warned in
18464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18465 whose name does not start with the host triplet. If you think this
18466 configuration is useful to you, please write to autoconf@gnu.org." >&5
18467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18468 whose name does not start with the host triplet. If you think this
18469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18470 ac_tool_warned=yes ;;
18472 RANLIB=$ac_ct_RANLIB
18475 RANLIB="$ac_cv_prog_RANLIB"
18479 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18480 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18481 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 ac_check_lib_save_LIBS=$LIBS
18485 LIBS="-lcposix $LIBS"
18486 cat >conftest.$ac_ext <<_ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h. */
18493 /* Override any GCC internal prototype to avoid an error.
18494 Use char because int might match the return type of a GCC
18495 builtin and then its argument prototype would still apply. */
18503 return strerror ();
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (ac_try="$ac_link"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_link") 2>conftest.er1
18517 grep -v '^ *+' conftest.er1 >conftest.err
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } && {
18522 test -z "$ac_c_werror_flag" ||
18523 test ! -s conftest.err
18524 } && test -s conftest$ac_exeext &&
18525 $as_test_x conftest$ac_exeext; then
18526 ac_cv_lib_cposix_strerror=yes
18528 echo "$as_me: failed program was:" >&5
18529 sed 's/^/| /' conftest.$ac_ext >&5
18531 ac_cv_lib_cposix_strerror=no
18534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18535 conftest$ac_exeext conftest.$ac_ext
18536 LIBS=$ac_check_lib_save_LIBS
18538 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18539 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18540 if test $ac_cv_lib_cposix_strerror = yes; then
18541 LIBS="$LIBS -lcposix"
18546 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18547 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18548 if test "${ac_cv_c_const+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 cat >conftest.$ac_ext <<_ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18561 /* FIXME: Include the comments suggested by Paul. */
18562 #ifndef __cplusplus
18563 /* Ultrix mips cc rejects this. */
18564 typedef int charset[2];
18566 /* SunOS 4.1.1 cc rejects this. */
18567 char const *const *pcpcc;
18569 /* NEC SVR4.0.2 mips cc rejects this. */
18570 struct point {int x, y;};
18571 static struct point const zero = {0,0};
18572 /* AIX XL C 1.02.0.0 rejects this.
18573 It does not let you subtract one const X* pointer from another in
18574 an arm of an if-expression whose if-part is not a constant
18576 const char *g = "string";
18577 pcpcc = &g + (g ? g-g : 0);
18578 /* HPUX 7.0 cc rejects these. */
18580 ppc = (char**) pcpcc;
18581 pcpcc = (char const *const *) ppc;
18582 { /* SCO 3.2v4 cc rejects this. */
18584 char const *s = 0 ? (char *) 0 : (char const *) 0;
18589 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18590 int x[] = {25, 17};
18591 const int *foo = &x[0];
18594 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18595 typedef const int *iptr;
18599 { /* AIX XL C 1.02.0.0 rejects this saying
18600 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18601 struct s { int j; const int *ap[3]; };
18602 struct s *b; b->j = 5;
18604 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18605 const int foo = 10;
18606 if (!foo) return 0;
18608 return !cs[0] && !zero.x;
18615 rm -f conftest.$ac_objext
18616 if { (ac_try="$ac_compile"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_compile") 2>conftest.er1
18624 grep -v '^ *+' conftest.er1 >conftest.err
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } && {
18629 test -z "$ac_c_werror_flag" ||
18630 test ! -s conftest.err
18631 } && test -s conftest.$ac_objext; then
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18642 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18643 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18644 if test $ac_cv_c_const = no; then
18646 cat >>confdefs.h <<\_ACEOF
18653 { echo "$as_me:$LINENO: checking for signed" >&5
18654 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18655 if test "${bh_cv_c_signed+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18673 rm -f conftest.$ac_objext
18674 if { (ac_try="$ac_compile"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_compile") 2>conftest.er1
18682 grep -v '^ *+' conftest.er1 >conftest.err
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } && {
18687 test -z "$ac_c_werror_flag" ||
18688 test ! -s conftest.err
18689 } && test -s conftest.$ac_objext; then
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18701 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18702 if test $bh_cv_c_signed = no; then
18704 cat >>confdefs.h <<\_ACEOF
18710 { echo "$as_me:$LINENO: checking for inline" >&5
18711 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18712 if test "${ac_cv_c_inline+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
18716 for ac_kw in inline __inline__ __inline; do
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 #ifndef __cplusplus
18725 static $ac_kw foo_t static_foo () {return 0; }
18726 $ac_kw foo_t foo () {return 0; }
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_compile") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest.$ac_objext; then
18747 ac_cv_c_inline=$ac_kw
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756 test "$ac_cv_c_inline" != no && break
18760 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18761 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18764 case $ac_cv_c_inline in
18767 case $ac_cv_c_inline in
18769 *) ac_val=$ac_cv_c_inline;;
18771 cat >>confdefs.h <<_ACEOF
18772 #ifndef __cplusplus
18773 #define inline $ac_val
18779 { echo "$as_me:$LINENO: checking for off_t" >&5
18780 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18781 if test "${ac_cv_type_off_t+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 cat >conftest.$ac_ext <<_ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18791 typedef off_t ac__type_new_;
18795 if ((ac__type_new_ *) 0)
18797 if (sizeof (ac__type_new_))
18803 rm -f conftest.$ac_objext
18804 if { (ac_try="$ac_compile"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_compile") 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } && {
18817 test -z "$ac_c_werror_flag" ||
18818 test ! -s conftest.err
18819 } && test -s conftest.$ac_objext; then
18820 ac_cv_type_off_t=yes
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 ac_cv_type_off_t=no
18828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18830 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18831 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18832 if test $ac_cv_type_off_t = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837 #define off_t long int
18842 { echo "$as_me:$LINENO: checking for size_t" >&5
18843 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18844 if test "${ac_cv_type_size_t+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 $ac_includes_default
18854 typedef size_t ac__type_new_;
18858 if ((ac__type_new_ *) 0)
18860 if (sizeof (ac__type_new_))
18866 rm -f conftest.$ac_objext
18867 if { (ac_try="$ac_compile"
18868 case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_compile") 2>conftest.er1
18875 grep -v '^ *+' conftest.er1 >conftest.err
18877 cat conftest.err >&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } && {
18880 test -z "$ac_c_werror_flag" ||
18881 test ! -s conftest.err
18882 } && test -s conftest.$ac_objext; then
18883 ac_cv_type_size_t=yes
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_cv_type_size_t=no
18891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18894 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18895 if test $ac_cv_type_size_t = yes; then
18899 cat >>confdefs.h <<_ACEOF
18900 #define size_t unsigned int
18906 { echo "$as_me:$LINENO: checking for long long" >&5
18907 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18908 if test "${ac_cv_type_long_long+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18911 cat >conftest.$ac_ext <<_ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917 long long ll = 1LL; int i = 63;
18921 long long llmax = (long long) -1;
18922 return ll << i | ll >> i | llmax / ll | llmax % ll;
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_link") 2>conftest.er1
18936 grep -v '^ *+' conftest.er1 >conftest.err
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } && {
18941 test -z "$ac_c_werror_flag" ||
18942 test ! -s conftest.err
18943 } && test -s conftest$ac_exeext &&
18944 $as_test_x conftest$ac_exeext; then
18945 ac_cv_type_long_long=yes
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18950 ac_cv_type_long_long=no
18953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18954 conftest$ac_exeext conftest.$ac_ext
18956 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18957 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18958 if test $ac_cv_type_long_long = yes; then
18960 cat >>confdefs.h <<\_ACEOF
18961 #define HAVE_LONG_LONG 1
18967 { echo "$as_me:$LINENO: checking for long double" >&5
18968 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18969 if test "${gt_cv_c_long_double+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18972 if test "$GCC" = yes; then
18973 gt_cv_c_long_double=yes
18975 cat >conftest.$ac_ext <<_ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18982 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
18983 long double foo = 0.0;
18984 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
18985 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18995 rm -f conftest.$ac_objext
18996 if { (ac_try="$ac_compile"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_compile") 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest.$ac_objext; then
19012 gt_cv_c_long_double=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 gt_cv_c_long_double=no
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19024 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19025 if test $gt_cv_c_long_double = yes; then
19027 cat >>confdefs.h <<\_ACEOF
19028 #define HAVE_LONG_DOUBLE 1
19034 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19035 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19036 if test "${gt_cv_c_wchar_t+set}" = set; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 #include <stddef.h>
19046 wchar_t foo = (wchar_t)'\0';
19055 rm -f conftest.$ac_objext
19056 if { (ac_try="$ac_compile"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_compile") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest.$ac_objext; then
19072 gt_cv_c_wchar_t=yes
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19082 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19083 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19084 if test $gt_cv_c_wchar_t = yes; then
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_WCHAR_T 1
19093 { echo "$as_me:$LINENO: checking for wint_t" >&5
19094 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19095 if test "${gt_cv_c_wint_t+set}" = set; then
19096 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 wint_t foo = (wchar_t)'\0';
19114 rm -f conftest.$ac_objext
19115 if { (ac_try="$ac_compile"
19116 case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_compile") 2>conftest.er1
19123 grep -v '^ *+' conftest.er1 >conftest.err
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } && {
19128 test -z "$ac_c_werror_flag" ||
19129 test ! -s conftest.err
19130 } && test -s conftest.$ac_objext; then
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19142 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19143 if test $gt_cv_c_wint_t = yes; then
19145 cat >>confdefs.h <<\_ACEOF
19146 #define HAVE_WINT_T 1
19152 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19153 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19154 if test "${gl_cv_header_inttypes_h+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19157 cat >conftest.$ac_ext <<_ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19163 #include <sys/types.h>
19164 #include <inttypes.h>
19168 uintmax_t i = (uintmax_t) -1;
19173 rm -f conftest.$ac_objext
19174 if { (ac_try="$ac_compile"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_compile") 2>conftest.er1
19182 grep -v '^ *+' conftest.er1 >conftest.err
19184 cat conftest.err >&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); } && {
19187 test -z "$ac_c_werror_flag" ||
19188 test ! -s conftest.err
19189 } && test -s conftest.$ac_objext; then
19190 gl_cv_header_inttypes_h=yes
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19195 gl_cv_header_inttypes_h=no
19198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19201 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19202 if test $gl_cv_header_inttypes_h = yes; then
19204 cat >>confdefs.h <<_ACEOF
19205 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19211 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19212 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19213 if test "${gl_cv_header_stdint_h+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19216 cat >conftest.$ac_ext <<_ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 #include <sys/types.h>
19223 #include <stdint.h>
19227 uintmax_t i = (uintmax_t) -1;
19232 rm -f conftest.$ac_objext
19233 if { (ac_try="$ac_compile"
19234 case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239 (eval "$ac_compile") 2>conftest.er1
19241 grep -v '^ *+' conftest.er1 >conftest.err
19243 cat conftest.err >&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } && {
19246 test -z "$ac_c_werror_flag" ||
19247 test ! -s conftest.err
19248 } && test -s conftest.$ac_objext; then
19249 gl_cv_header_stdint_h=yes
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 gl_cv_header_stdint_h=no
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19260 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19261 if test $gl_cv_header_stdint_h = yes; then
19263 cat >>confdefs.h <<_ACEOF
19264 #define HAVE_STDINT_H_WITH_UINTMAX 1
19272 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19273 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19274 if test "${gt_cv_c_intmax_t+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 cat >conftest.$ac_ext <<_ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19284 #include <stddef.h>
19285 #include <stdlib.h>
19286 #if HAVE_STDINT_H_WITH_UINTMAX
19287 #include <stdint.h>
19289 #if HAVE_INTTYPES_H_WITH_UINTMAX
19290 #include <inttypes.h>
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_compile") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && {
19315 test -z "$ac_c_werror_flag" ||
19316 test ! -s conftest.err
19317 } && test -s conftest.$ac_objext; then
19318 gt_cv_c_intmax_t=yes
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 gt_cv_c_intmax_t=no
19326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19329 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19330 if test $gt_cv_c_intmax_t = yes; then
19332 cat >>confdefs.h <<\_ACEOF
19333 #define HAVE_INTMAX_T 1
19340 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19341 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19342 if test "${gt_cv_func_printf_posix+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 if test "$cross_compiling" = yes; then
19348 cat >conftest.$ac_ext <<_ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19355 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19361 $EGREP "notposix" >/dev/null 2>&1; then
19362 gt_cv_func_printf_posix="guessing no"
19364 gt_cv_func_printf_posix="guessing yes"
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19378 #include <string.h>
19379 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19380 dollar expansion (possibly an autoconf bug). */
19381 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19382 static char buf[100];
19385 sprintf (buf, format, 33, 55);
19386 return (strcmp (buf, "55 33") != 0);
19389 rm -f conftest$ac_exeext
19390 if { (ac_try="$ac_link"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_link") 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 gt_cv_func_printf_posix=yes
19411 echo "$as_me: program exited with status $ac_status" >&5
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19415 ( exit $ac_status )
19416 gt_cv_func_printf_posix=no
19418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19424 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19425 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19426 case $gt_cv_func_printf_posix in
19429 cat >>confdefs.h <<\_ACEOF
19430 #define HAVE_POSIX_PRINTF 1
19436 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19437 # for constant arguments. Useless!
19438 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19439 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19440 if test "${ac_cv_working_alloca_h+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 cat >conftest.$ac_ext <<_ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19449 #include <alloca.h>
19453 char *p = (char *) alloca (2 * sizeof (int));
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (ac_try="$ac_link"
19461 case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_link") 2>conftest.er1
19468 grep -v '^ *+' conftest.er1 >conftest.err
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } && {
19473 test -z "$ac_c_werror_flag" ||
19474 test ! -s conftest.err
19475 } && test -s conftest$ac_exeext &&
19476 $as_test_x conftest$ac_exeext; then
19477 ac_cv_working_alloca_h=yes
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_cv_working_alloca_h=no
19485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19486 conftest$ac_exeext conftest.$ac_ext
19488 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19489 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19490 if test $ac_cv_working_alloca_h = yes; then
19492 cat >>confdefs.h <<\_ACEOF
19493 #define HAVE_ALLOCA_H 1
19498 { echo "$as_me:$LINENO: checking for alloca" >&5
19499 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19500 if test "${ac_cv_func_alloca_works+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 cat >conftest.$ac_ext <<_ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h. */
19510 # define alloca __builtin_alloca
19513 # include <malloc.h>
19514 # define alloca _alloca
19516 # ifdef HAVE_ALLOCA_H
19517 # include <alloca.h>
19522 # ifndef alloca /* predefined by HP cc +Olibcalls */
19533 char *p = (char *) alloca (1);
19539 rm -f conftest.$ac_objext conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>conftest.er1
19548 grep -v '^ *+' conftest.er1 >conftest.err
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest$ac_exeext &&
19556 $as_test_x conftest$ac_exeext; then
19557 ac_cv_func_alloca_works=yes
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19562 ac_cv_func_alloca_works=no
19565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19566 conftest$ac_exeext conftest.$ac_ext
19568 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19569 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19571 if test $ac_cv_func_alloca_works = yes; then
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE_ALLOCA 1
19578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19579 # that cause trouble. Some versions do not even contain alloca or
19580 # contain a buggy version. If you still want to use their alloca,
19581 # use ar to extract alloca.o from them instead of compiling alloca.c.
19583 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19585 cat >>confdefs.h <<\_ACEOF
19590 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19591 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19592 if test "${ac_cv_os_cray+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 cat >conftest.$ac_ext <<_ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19601 #if defined CRAY && ! defined CRAY2
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "webecray" >/dev/null 2>&1; then
19617 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19618 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19619 if test $ac_cv_os_cray = yes; then
19620 for ac_func in _getb67 GETB67 getb67; do
19621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19635 #define $ac_func innocuous_$ac_func
19637 /* System header to define __stub macros and hopefully few prototypes,
19638 which can conflict with char $ac_func (); below.
19639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19640 <limits.h> exists even on freestanding compilers. */
19643 # include <limits.h>
19645 # include <assert.h>
19650 /* Override any GCC internal prototype to avoid an error.
19651 Use char because int might match the return type of a GCC
19652 builtin and then its argument prototype would still apply. */
19657 /* The GNU C library defines this for functions which it implements
19658 to always fail with ENOSYS. Some functions are actually named
19659 something starting with __ and the normal name is an alias. */
19660 #if defined __stub_$ac_func || defined __stub___$ac_func
19667 return $ac_func ();
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (ac_try="$ac_link"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_link") 2>conftest.er1
19681 grep -v '^ *+' conftest.er1 >conftest.err
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext &&
19689 $as_test_x conftest$ac_exeext; then
19690 eval "$as_ac_var=yes"
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 eval "$as_ac_var=no"
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699 conftest$ac_exeext conftest.$ac_ext
19701 ac_res=`eval echo '${'$as_ac_var'}'`
19702 { echo "$as_me:$LINENO: result: $ac_res" >&5
19703 echo "${ECHO_T}$ac_res" >&6; }
19704 if test `eval echo '${'$as_ac_var'}'` = yes; then
19706 cat >>confdefs.h <<_ACEOF
19707 #define CRAY_STACKSEG_END $ac_func
19716 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19717 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19718 if test "${ac_cv_c_stack_direction+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 if test "$cross_compiling" = yes; then
19722 ac_cv_c_stack_direction=0
19724 cat >conftest.$ac_ext <<_ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 $ac_includes_default
19732 find_stack_direction ()
19734 static char *addr = 0;
19739 return find_stack_direction ();
19742 return (&dummy > addr) ? 1 : -1;
19748 return find_stack_direction () < 0;
19751 rm -f conftest$ac_exeext
19752 if { (ac_try="$ac_link"
19753 case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_link") 2>&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19762 { (case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_try") 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; }; then
19771 ac_cv_c_stack_direction=1
19773 echo "$as_me: program exited with status $ac_status" >&5
19774 echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19777 ( exit $ac_status )
19778 ac_cv_c_stack_direction=-1
19780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19785 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19786 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19788 cat >>confdefs.h <<_ACEOF
19789 #define STACK_DIRECTION $ac_cv_c_stack_direction
19797 for ac_header in stdlib.h unistd.h
19799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19806 ac_res=`eval echo '${'$as_ac_Header'}'`
19807 { echo "$as_me:$LINENO: result: $ac_res" >&5
19808 echo "${ECHO_T}$ac_res" >&6; }
19810 # Is the header compilable?
19811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 $ac_includes_default
19820 #include <$ac_header>
19822 rm -f conftest.$ac_objext
19823 if { (ac_try="$ac_compile"
19824 case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_compile") 2>conftest.er1
19831 grep -v '^ *+' conftest.er1 >conftest.err
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } && {
19836 test -z "$ac_c_werror_flag" ||
19837 test ! -s conftest.err
19838 } && test -s conftest.$ac_objext; then
19839 ac_header_compiler=yes
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19844 ac_header_compiler=no
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19849 echo "${ECHO_T}$ac_header_compiler" >&6; }
19851 # Is the header present?
19852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 #include <$ac_header>
19862 if { (ac_try="$ac_cpp conftest.$ac_ext"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } >/dev/null && {
19875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19878 ac_header_preproc=yes
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_header_preproc=no
19886 rm -f conftest.err conftest.$ac_ext
19887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19888 echo "${ECHO_T}$ac_header_preproc" >&6; }
19890 # So? What about this header?
19891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19897 ac_header_preproc=yes
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 eval "$as_ac_Header=\$ac_header_preproc"
19922 ac_res=`eval echo '${'$as_ac_Header'}'`
19923 { echo "$as_me:$LINENO: result: $ac_res" >&5
19924 echo "${ECHO_T}$ac_res" >&6; }
19927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19928 cat >>confdefs.h <<_ACEOF
19929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19937 for ac_func in getpagesize
19939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19953 #define $ac_func innocuous_$ac_func
19955 /* System header to define __stub macros and hopefully few prototypes,
19956 which can conflict with char $ac_func (); below.
19957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19958 <limits.h> exists even on freestanding compilers. */
19961 # include <limits.h>
19963 # include <assert.h>
19968 /* Override any GCC internal prototype to avoid an error.
19969 Use char because int might match the return type of a GCC
19970 builtin and then its argument prototype would still apply. */
19975 /* The GNU C library defines this for functions which it implements
19976 to always fail with ENOSYS. Some functions are actually named
19977 something starting with __ and the normal name is an alias. */
19978 #if defined __stub_$ac_func || defined __stub___$ac_func
19985 return $ac_func ();
19990 rm -f conftest.$ac_objext conftest$ac_exeext
19991 if { (ac_try="$ac_link"
19992 case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_link") 2>conftest.er1
19999 grep -v '^ *+' conftest.er1 >conftest.err
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } && {
20004 test -z "$ac_c_werror_flag" ||
20005 test ! -s conftest.err
20006 } && test -s conftest$ac_exeext &&
20007 $as_test_x conftest$ac_exeext; then
20008 eval "$as_ac_var=yes"
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20013 eval "$as_ac_var=no"
20016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20017 conftest$ac_exeext conftest.$ac_ext
20019 ac_res=`eval echo '${'$as_ac_var'}'`
20020 { echo "$as_me:$LINENO: result: $ac_res" >&5
20021 echo "${ECHO_T}$ac_res" >&6; }
20022 if test `eval echo '${'$as_ac_var'}'` = yes; then
20023 cat >>confdefs.h <<_ACEOF
20024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20030 { echo "$as_me:$LINENO: checking for working mmap" >&5
20031 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20032 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 if test "$cross_compiling" = yes; then
20036 ac_cv_func_mmap_fixed_mapped=no
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044 $ac_includes_default
20045 /* malloc might have been renamed as rpl_malloc. */
20048 /* Thanks to Mike Haertel and Jim Avera for this test.
20049 Here is a matrix of mmap possibilities:
20050 mmap private not fixed
20051 mmap private fixed at somewhere currently unmapped
20052 mmap private fixed at somewhere already mapped
20053 mmap shared not fixed
20054 mmap shared fixed at somewhere currently unmapped
20055 mmap shared fixed at somewhere already mapped
20056 For private mappings, we should verify that changes cannot be read()
20057 back from the file, nor mmap's back from the file at a different
20058 address. (There have been systems where private was not correctly
20059 implemented like the infamous i386 svr4.0, and systems where the
20060 VM page cache was not coherent with the file system buffer cache
20061 like early versions of FreeBSD and possibly contemporary NetBSD.)
20062 For shared mappings, we should conversely verify that changes get
20063 propagated back to all the places they're supposed to be.
20065 Grep wants private fixed already mapped.
20066 The main things grep needs to know about mmap are:
20067 * does it exist and is it safe to write into the mmap'd area
20068 * how to use it (BSD variants) */
20071 #include <sys/mman.h>
20073 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20077 /* This mess was copied from the GNU getpagesize.h. */
20078 #ifndef HAVE_GETPAGESIZE
20079 /* Assume that all systems that can run configure have sys/param.h. */
20080 # ifndef HAVE_SYS_PARAM_H
20081 # define HAVE_SYS_PARAM_H 1
20084 # ifdef _SC_PAGESIZE
20085 # define getpagesize() sysconf(_SC_PAGESIZE)
20086 # else /* no _SC_PAGESIZE */
20087 # ifdef HAVE_SYS_PARAM_H
20088 # include <sys/param.h>
20089 # ifdef EXEC_PAGESIZE
20090 # define getpagesize() EXEC_PAGESIZE
20091 # else /* no EXEC_PAGESIZE */
20093 # define getpagesize() NBPG * CLSIZE
20096 # endif /* no CLSIZE */
20097 # else /* no NBPG */
20099 # define getpagesize() NBPC
20100 # else /* no NBPC */
20102 # define getpagesize() PAGESIZE
20103 # endif /* PAGESIZE */
20104 # endif /* no NBPC */
20105 # endif /* no NBPG */
20106 # endif /* no EXEC_PAGESIZE */
20107 # else /* no HAVE_SYS_PARAM_H */
20108 # define getpagesize() 8192 /* punt totally */
20109 # endif /* no HAVE_SYS_PARAM_H */
20110 # endif /* no _SC_PAGESIZE */
20112 #endif /* no HAVE_GETPAGESIZE */
20117 char *data, *data2, *data3;
20121 pagesize = getpagesize ();
20123 /* First, make a file with some known garbage in it. */
20124 data = (char *) malloc (pagesize);
20127 for (i = 0; i < pagesize; ++i)
20128 *(data + i) = rand ();
20130 fd = creat ("conftest.mmap", 0600);
20133 if (write (fd, data, pagesize) != pagesize)
20137 /* Next, try to mmap the file at a fixed address which already has
20138 something else allocated at it. If we can, also make sure that
20139 we see the same garbage. */
20140 fd = open ("conftest.mmap", O_RDWR);
20143 data2 = (char *) malloc (2 * pagesize);
20146 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20147 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20148 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20150 for (i = 0; i < pagesize; ++i)
20151 if (*(data + i) != *(data2 + i))
20154 /* Finally, make sure that changes to the mapped area do not
20155 percolate back to the file as seen by read(). (This is a bug on
20156 some variants of i386 svr4.0.) */
20157 for (i = 0; i < pagesize; ++i)
20158 *(data2 + i) = *(data2 + i) + 1;
20159 data3 = (char *) malloc (pagesize);
20162 if (read (fd, data3, pagesize) != pagesize)
20164 for (i = 0; i < pagesize; ++i)
20165 if (*(data + i) != *(data3 + i))
20171 rm -f conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_link") 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20182 { (case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_try") 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; }; then
20191 ac_cv_func_mmap_fixed_mapped=yes
20193 echo "$as_me: program exited with status $ac_status" >&5
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ( exit $ac_status )
20198 ac_cv_func_mmap_fixed_mapped=no
20200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20205 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20206 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20207 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20209 cat >>confdefs.h <<\_ACEOF
20210 #define HAVE_MMAP 1
20214 rm -f conftest.mmap
20217 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20218 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20219 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20229 #include <features.h>
20230 #ifdef __GNU_LIBRARY__
20231 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20239 ac_cv_gnu_library_2_1=yes
20241 ac_cv_gnu_library_2_1=no
20248 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20249 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20251 GLIBC21="$ac_cv_gnu_library_2_1"
20256 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20257 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20258 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 if test "$cross_compiling" = yes; then
20264 # Guess based on the CPU.
20265 case "$host_cpu" in
20266 alpha* | i3456786 | m68k | s390*)
20267 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20269 gt_cv_int_divbyzero_sigfpe="guessing no";;
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20280 #include <stdlib.h>
20281 #include <signal.h>
20285 sigfpe_handler (int sig)
20287 sigfpe_handler (sig) int sig;
20290 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20291 exit (sig != SIGFPE);
20301 signal (SIGFPE, sigfpe_handler);
20302 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20303 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20304 signal (SIGTRAP, sigfpe_handler);
20306 /* Linux/SPARC yields signal SIGILL. */
20307 #if defined (__sparc__) && defined (__linux__)
20308 signal (SIGILL, sigfpe_handler);
20317 rm -f conftest$ac_exeext
20318 if { (ac_try="$ac_link"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_link") 2>&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20328 { (case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_try") 2>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; }; then
20337 gt_cv_int_divbyzero_sigfpe=yes
20339 echo "$as_me: program exited with status $ac_status" >&5
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 ( exit $ac_status )
20344 gt_cv_int_divbyzero_sigfpe=no
20346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20352 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20353 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20354 case "$gt_cv_int_divbyzero_sigfpe" in
20359 cat >>confdefs.h <<_ACEOF
20360 #define INTDIV0_RAISES_SIGFPE $value
20365 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20366 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20367 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 cat >conftest.$ac_ext <<_ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20376 unsigned long long ull = 1ULL; int i = 63;
20380 unsigned long long ullmax = (unsigned long long) -1;
20381 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (ac_try="$ac_link"
20388 case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_link") 2>conftest.er1
20395 grep -v '^ *+' conftest.er1 >conftest.err
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } && {
20400 test -z "$ac_c_werror_flag" ||
20401 test ! -s conftest.err
20402 } && test -s conftest$ac_exeext &&
20403 $as_test_x conftest$ac_exeext; then
20404 ac_cv_type_unsigned_long_long=yes
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 ac_cv_type_unsigned_long_long=no
20412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20413 conftest$ac_exeext conftest.$ac_ext
20415 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20416 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20417 if test $ac_cv_type_unsigned_long_long = yes; then
20419 cat >>confdefs.h <<\_ACEOF
20420 #define HAVE_UNSIGNED_LONG_LONG 1
20428 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20430 test $ac_cv_type_unsigned_long_long = yes \
20431 && ac_type='unsigned long long' \
20432 || ac_type='unsigned long'
20434 cat >>confdefs.h <<_ACEOF
20435 #define uintmax_t $ac_type
20440 cat >>confdefs.h <<\_ACEOF
20441 #define HAVE_UINTMAX_T 1
20447 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20448 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20449 if test "${gt_cv_header_inttypes_h+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 #include <sys/types.h>
20460 #include <inttypes.h>
20469 rm -f conftest.$ac_objext
20470 if { (ac_try="$ac_compile"
20471 case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_compile") 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } && {
20483 test -z "$ac_c_werror_flag" ||
20484 test ! -s conftest.err
20485 } && test -s conftest.$ac_objext; then
20486 gt_cv_header_inttypes_h=yes
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 gt_cv_header_inttypes_h=no
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20498 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20499 if test $gt_cv_header_inttypes_h = yes; then
20501 cat >>confdefs.h <<_ACEOF
20502 #define HAVE_INTTYPES_H 1
20509 if test $gt_cv_header_inttypes_h = yes; then
20510 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20511 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20512 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 cat >conftest.$ac_ext <<_ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 #include <inttypes.h>
20535 rm -f conftest.$ac_objext
20536 if { (ac_try="$ac_compile"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_compile") 2>conftest.er1
20544 grep -v '^ *+' conftest.er1 >conftest.err
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && {
20549 test -z "$ac_c_werror_flag" ||
20550 test ! -s conftest.err
20551 } && test -s conftest.$ac_objext; then
20552 gt_cv_inttypes_pri_broken=no
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20557 gt_cv_inttypes_pri_broken=yes
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20564 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20566 if test "$gt_cv_inttypes_pri_broken" = yes; then
20568 cat >>confdefs.h <<_ACEOF
20569 #define PRI_MACROS_BROKEN 1
20576 for ac_header in stdint.h
20578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20585 ac_res=`eval echo '${'$as_ac_Header'}'`
20586 { echo "$as_me:$LINENO: result: $ac_res" >&5
20587 echo "${ECHO_T}$ac_res" >&6; }
20589 # Is the header compilable?
20590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 $ac_includes_default
20599 #include <$ac_header>
20601 rm -f conftest.$ac_objext
20602 if { (ac_try="$ac_compile"
20603 case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_compile") 2>conftest.er1
20610 grep -v '^ *+' conftest.er1 >conftest.err
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest.$ac_objext; then
20618 ac_header_compiler=yes
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_header_compiler=no
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20628 echo "${ECHO_T}$ac_header_compiler" >&6; }
20630 # Is the header present?
20631 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 #include <$ac_header>
20641 if { (ac_try="$ac_cpp conftest.$ac_ext"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20649 grep -v '^ *+' conftest.er1 >conftest.err
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } >/dev/null && {
20654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20655 test ! -s conftest.err
20657 ac_header_preproc=yes
20659 echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20662 ac_header_preproc=no
20665 rm -f conftest.err conftest.$ac_ext
20666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20667 echo "${ECHO_T}$ac_header_preproc" >&6; }
20669 # So? What about this header?
20670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20676 ac_header_preproc=yes
20679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20686 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 eval "$as_ac_Header=\$ac_header_preproc"
20701 ac_res=`eval echo '${'$as_ac_Header'}'`
20702 { echo "$as_me:$LINENO: result: $ac_res" >&5
20703 echo "${ECHO_T}$ac_res" >&6; }
20706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20707 cat >>confdefs.h <<_ACEOF
20708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20715 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20716 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20718 cat >conftest.$ac_ext <<_ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h. */
20725 #include <limits.h>
20727 #include <stdint.h>
20734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20735 $EGREP "Found it" >/dev/null 2>&1; then
20740 if test -z "$result"; then
20741 if test "$cross_compiling" = yes; then
20742 # Depending upon the size, compute the lo and hi bounds.
20743 cat >conftest.$ac_ext <<_ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 #include <stddef.h>
20753 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20760 rm -f conftest.$ac_objext
20761 if { (ac_try="$ac_compile"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_compile") 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest.$ac_objext; then
20779 cat >conftest.$ac_ext <<_ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 #include <stddef.h>
20789 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20796 rm -f conftest.$ac_objext
20797 if { (ac_try="$ac_compile"
20798 case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_compile") 2>conftest.er1
20805 grep -v '^ *+' conftest.er1 >conftest.err
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } && {
20810 test -z "$ac_c_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest.$ac_objext; then
20813 ac_hi=$ac_mid; break
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_lo=`expr $ac_mid + 1`
20819 if test $ac_lo -le $ac_mid; then
20823 ac_mid=`expr 2 '*' $ac_mid + 1`
20826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20829 echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 #include <stddef.h>
20842 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20849 rm -f conftest.$ac_objext
20850 if { (ac_try="$ac_compile"
20851 case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_compile") 2>conftest.er1
20858 grep -v '^ *+' conftest.er1 >conftest.err
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest.$ac_objext; then
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 #include <stddef.h>
20878 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20885 rm -f conftest.$ac_objext
20886 if { (ac_try="$ac_compile"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && {
20899 test -z "$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 } && test -s conftest.$ac_objext; then
20902 ac_lo=$ac_mid; break
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_hi=`expr '(' $ac_mid ')' - 1`
20908 if test $ac_mid -le $ac_hi; then
20912 ac_mid=`expr 2 '*' $ac_mid`
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928 # Binary search between lo and hi bounds.
20929 while test "x$ac_lo" != "x$ac_hi"; do
20930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 #include <stddef.h>
20941 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_compile") 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && {
20962 test -z "$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20964 } && test -s conftest.$ac_objext; then
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20970 ac_lo=`expr '(' $ac_mid ')' + 1`
20973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 ?*) res_hi=$ac_lo;;
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 #include <stddef.h>
20987 static long int longval () { return ~(size_t)0 / 10; }
20988 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
20990 #include <stdlib.h>
20995 FILE *f = fopen ("conftest.val", "w");
20998 if ((~(size_t)0 / 10) < 0)
21000 long int i = longval ();
21001 if (i != (~(size_t)0 / 10))
21003 fprintf (f, "%ld\n", i);
21007 unsigned long int i = ulongval ();
21008 if (i != (~(size_t)0 / 10))
21010 fprintf (f, "%lu\n", i);
21012 return ferror (f) || fclose (f) != 0;
21018 rm -f conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_link") 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21029 { (case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_try") 2>&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; }; then
21038 res_hi=`cat conftest.val`
21040 echo "$as_me: program exited with status $ac_status" >&5
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ( exit $ac_status )
21047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21051 if test "$cross_compiling" = yes; then
21052 # Depending upon the size, compute the lo and hi bounds.
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 #include <stddef.h>
21063 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_compile") 2>conftest.er1
21079 grep -v '^ *+' conftest.er1 >conftest.err
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } && {
21084 test -z "$ac_c_werror_flag" ||
21085 test ! -s conftest.err
21086 } && test -s conftest.$ac_objext; then
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <stddef.h>
21099 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21106 rm -f conftest.$ac_objext
21107 if { (ac_try="$ac_compile"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21115 grep -v '^ *+' conftest.er1 >conftest.err
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 ac_hi=$ac_mid; break
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_lo=`expr $ac_mid + 1`
21129 if test $ac_lo -le $ac_mid; then
21133 ac_mid=`expr 2 '*' $ac_mid + 1`
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 #include <stddef.h>
21152 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_compile") 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest.$ac_objext; then
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <stddef.h>
21188 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199 *) ac_try_echo=$ac_try;;
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202 (eval "$ac_compile") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest.$ac_objext; then
21212 ac_lo=$ac_mid; break
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ac_hi=`expr '(' $ac_mid ')' - 1`
21218 if test $ac_mid -le $ac_hi; then
21222 ac_mid=`expr 2 '*' $ac_mid`
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21238 # Binary search between lo and hi bounds.
21239 while test "x$ac_lo" != "x$ac_hi"; do
21240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21241 cat >conftest.$ac_ext <<_ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21247 #include <stddef.h>
21251 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21258 rm -f conftest.$ac_objext
21259 if { (ac_try="$ac_compile"
21260 case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_compile") 2>conftest.er1
21267 grep -v '^ *+' conftest.er1 >conftest.err
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } && {
21272 test -z "$ac_c_werror_flag" ||
21273 test ! -s conftest.err
21274 } && test -s conftest.$ac_objext; then
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 ac_lo=`expr '(' $ac_mid ')' + 1`
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21286 ?*) res_lo=$ac_lo;;
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 #include <stddef.h>
21297 static long int longval () { return ~(size_t)0 % 10; }
21298 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21300 #include <stdlib.h>
21305 FILE *f = fopen ("conftest.val", "w");
21308 if ((~(size_t)0 % 10) < 0)
21310 long int i = longval ();
21311 if (i != (~(size_t)0 % 10))
21313 fprintf (f, "%ld\n", i);
21317 unsigned long int i = ulongval ();
21318 if (i != (~(size_t)0 % 10))
21320 fprintf (f, "%lu\n", i);
21322 return ferror (f) || fclose (f) != 0;
21328 rm -f conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339 { (case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_try") 2>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 res_lo=`cat conftest.val`
21350 echo "$as_me: program exited with status $ac_status" >&5
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ( exit $ac_status )
21357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21361 if test "$cross_compiling" = yes; then
21362 # Depending upon the size, compute the lo and hi bounds.
21363 cat >conftest.$ac_ext <<_ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 #include <stddef.h>
21373 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21380 rm -f conftest.$ac_objext
21381 if { (ac_try="$ac_compile"
21382 case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387 (eval "$ac_compile") 2>conftest.er1
21389 grep -v '^ *+' conftest.er1 >conftest.err
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } && {
21394 test -z "$ac_c_werror_flag" ||
21395 test ! -s conftest.err
21396 } && test -s conftest.$ac_objext; then
21399 cat >conftest.$ac_ext <<_ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 #include <stddef.h>
21409 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21416 rm -f conftest.$ac_objext
21417 if { (ac_try="$ac_compile"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_compile") 2>conftest.er1
21425 grep -v '^ *+' conftest.er1 >conftest.err
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && {
21430 test -z "$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 } && test -s conftest.$ac_objext; then
21433 ac_hi=$ac_mid; break
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ac_lo=`expr $ac_mid + 1`
21439 if test $ac_lo -le $ac_mid; then
21443 ac_mid=`expr 2 '*' $ac_mid + 1`
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 #include <stddef.h>
21462 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21469 rm -f conftest.$ac_objext
21470 if { (ac_try="$ac_compile"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_compile") 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } && {
21483 test -z "$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21485 } && test -s conftest.$ac_objext; then
21488 cat >conftest.$ac_ext <<_ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 #include <stddef.h>
21498 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21505 rm -f conftest.$ac_objext
21506 if { (ac_try="$ac_compile"
21507 case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_compile") 2>conftest.er1
21514 grep -v '^ *+' conftest.er1 >conftest.err
21516 cat conftest.err >&5
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); } && {
21519 test -z "$ac_c_werror_flag" ||
21520 test ! -s conftest.err
21521 } && test -s conftest.$ac_objext; then
21522 ac_lo=$ac_mid; break
21524 echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21527 ac_hi=`expr '(' $ac_mid ')' - 1`
21528 if test $ac_mid -le $ac_hi; then
21532 ac_mid=`expr 2 '*' $ac_mid`
21535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548 # Binary search between lo and hi bounds.
21549 while test "x$ac_lo" != "x$ac_hi"; do
21550 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21551 cat >conftest.$ac_ext <<_ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557 #include <stddef.h>
21561 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21568 rm -f conftest.$ac_objext
21569 if { (ac_try="$ac_compile"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_compile") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest.$ac_objext; then
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_lo=`expr '(' $ac_mid ')' + 1`
21593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 ?*) fits_in_uint=$ac_lo;;
21600 cat >conftest.$ac_ext <<_ACEOF
21603 cat confdefs.h >>conftest.$ac_ext
21604 cat >>conftest.$ac_ext <<_ACEOF
21605 /* end confdefs.h. */
21606 #include <stddef.h>
21607 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21608 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21610 #include <stdlib.h>
21615 FILE *f = fopen ("conftest.val", "w");
21618 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21620 long int i = longval ();
21621 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21623 fprintf (f, "%ld\n", i);
21627 unsigned long int i = ulongval ();
21628 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21630 fprintf (f, "%lu\n", i);
21632 return ferror (f) || fclose (f) != 0;
21638 rm -f conftest$ac_exeext
21639 if { (ac_try="$ac_link"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_link") 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21649 { (case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_try") 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 fits_in_uint=`cat conftest.val`
21660 echo "$as_me: program exited with status $ac_status" >&5
21661 echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21664 ( exit $ac_status )
21667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21671 if test "$fits_in_uint" = 1; then
21672 cat >conftest.$ac_ext <<_ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 #include <stddef.h>
21680 extern unsigned long foo;
21690 rm -f conftest.$ac_objext
21691 if { (ac_try="$ac_compile"
21692 case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_compile") 2>conftest.er1
21699 grep -v '^ *+' conftest.er1 >conftest.err
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } && {
21704 test -z "$ac_c_werror_flag" ||
21705 test ! -s conftest.err
21706 } && test -s conftest.$ac_objext; then
21709 echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717 if test -z "$result"; then
21718 if test "$fits_in_uint" = 1; then
21719 result="$res_hi$res_lo"U
21721 result="$res_hi$res_lo"UL
21724 result='~(size_t)0'
21727 { echo "$as_me:$LINENO: result: $result" >&5
21728 echo "${ECHO_T}$result" >&6; }
21729 if test "$result" != yes; then
21731 cat >>confdefs.h <<_ACEOF
21732 #define SIZE_MAX $result
21741 for ac_header in stdint.h
21743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 ac_res=`eval echo '${'$as_ac_Header'}'`
21751 { echo "$as_me:$LINENO: result: $ac_res" >&5
21752 echo "${ECHO_T}$ac_res" >&6; }
21754 # Is the header compilable?
21755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21757 cat >conftest.$ac_ext <<_ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h. */
21763 $ac_includes_default
21764 #include <$ac_header>
21766 rm -f conftest.$ac_objext
21767 if { (ac_try="$ac_compile"
21768 case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_compile") 2>conftest.er1
21775 grep -v '^ *+' conftest.er1 >conftest.err
21777 cat conftest.err >&5
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); } && {
21780 test -z "$ac_c_werror_flag" ||
21781 test ! -s conftest.err
21782 } && test -s conftest.$ac_objext; then
21783 ac_header_compiler=yes
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 ac_header_compiler=no
21791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21793 echo "${ECHO_T}$ac_header_compiler" >&6; }
21795 # Is the header present?
21796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21798 cat >conftest.$ac_ext <<_ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21804 #include <$ac_header>
21806 if { (ac_try="$ac_cpp conftest.$ac_ext"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } >/dev/null && {
21819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21822 ac_header_preproc=yes
21824 echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21827 ac_header_preproc=no
21830 rm -f conftest.err conftest.$ac_ext
21831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21832 echo "${ECHO_T}$ac_header_preproc" >&6; }
21834 # So? What about this header?
21835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21841 ac_header_preproc=yes
21844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 eval "$as_ac_Header=\$ac_header_preproc"
21866 ac_res=`eval echo '${'$as_ac_Header'}'`
21867 { echo "$as_me:$LINENO: result: $ac_res" >&5
21868 echo "${ECHO_T}$ac_res" >&6; }
21871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21872 cat >>confdefs.h <<_ACEOF
21873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21887 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21888 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21889 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21892 cat >conftest.$ac_ext <<_ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898 $ac_includes_default
21899 typedef ptrdiff_t ac__type_new_;
21903 if ((ac__type_new_ *) 0)
21905 if (sizeof (ac__type_new_))
21911 rm -f conftest.$ac_objext
21912 if { (ac_try="$ac_compile"
21913 case "(($ac_try" in
21914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915 *) ac_try_echo=$ac_try;;
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918 (eval "$ac_compile") 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } && {
21925 test -z "$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21927 } && test -s conftest.$ac_objext; then
21928 ac_cv_type_ptrdiff_t=yes
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ac_cv_type_ptrdiff_t=no
21936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21939 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21940 if test $ac_cv_type_ptrdiff_t = yes; then
21944 cat >>confdefs.h <<\_ACEOF
21945 #define ptrdiff_t long
21961 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21962 stdlib.h string.h unistd.h sys/param.h
21964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 ac_res=`eval echo '${'$as_ac_Header'}'`
21972 { echo "$as_me:$LINENO: result: $ac_res" >&5
21973 echo "${ECHO_T}$ac_res" >&6; }
21975 # Is the header compilable?
21976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21985 #include <$ac_header>
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994 (eval "$ac_compile") 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } && {
22001 test -z "$ac_c_werror_flag" ||
22002 test ! -s conftest.err
22003 } && test -s conftest.$ac_objext; then
22004 ac_header_compiler=yes
22006 echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 ac_header_compiler=no
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22014 echo "${ECHO_T}$ac_header_compiler" >&6; }
22016 # Is the header present?
22017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22019 cat >conftest.$ac_ext <<_ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22025 #include <$ac_header>
22027 if { (ac_try="$ac_cpp conftest.$ac_ext"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } >/dev/null && {
22040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22043 ac_header_preproc=yes
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_header_preproc=no
22051 rm -f conftest.err conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22053 echo "${ECHO_T}$ac_header_preproc" >&6; }
22055 # So? What about this header?
22056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22062 ac_header_preproc=yes
22065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 eval "$as_ac_Header=\$ac_header_preproc"
22087 ac_res=`eval echo '${'$as_ac_Header'}'`
22088 { echo "$as_me:$LINENO: result: $ac_res" >&5
22089 echo "${ECHO_T}$ac_res" >&6; }
22092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22093 cat >>confdefs.h <<_ACEOF
22094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22124 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22125 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22126 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 cat >conftest.$ac_ext <<_ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22143 #define $ac_func innocuous_$ac_func
22145 /* System header to define __stub macros and hopefully few prototypes,
22146 which can conflict with char $ac_func (); below.
22147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22148 <limits.h> exists even on freestanding compilers. */
22151 # include <limits.h>
22153 # include <assert.h>
22158 /* Override any GCC internal prototype to avoid an error.
22159 Use char because int might match the return type of a GCC
22160 builtin and then its argument prototype would still apply. */
22165 /* The GNU C library defines this for functions which it implements
22166 to always fail with ENOSYS. Some functions are actually named
22167 something starting with __ and the normal name is an alias. */
22168 #if defined __stub_$ac_func || defined __stub___$ac_func
22175 return $ac_func ();
22180 rm -f conftest.$ac_objext conftest$ac_exeext
22181 if { (ac_try="$ac_link"
22182 case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187 (eval "$ac_link") 2>conftest.er1
22189 grep -v '^ *+' conftest.er1 >conftest.err
22191 cat conftest.err >&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } && {
22194 test -z "$ac_c_werror_flag" ||
22195 test ! -s conftest.err
22196 } && test -s conftest$ac_exeext &&
22197 $as_test_x conftest$ac_exeext; then
22198 eval "$as_ac_var=yes"
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 eval "$as_ac_var=no"
22206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22207 conftest$ac_exeext conftest.$ac_ext
22209 ac_res=`eval echo '${'$as_ac_var'}'`
22210 { echo "$as_me:$LINENO: result: $ac_res" >&5
22211 echo "${ECHO_T}$ac_res" >&6; }
22212 if test `eval echo '${'$as_ac_var'}'` = yes; then
22213 cat >>confdefs.h <<_ACEOF
22214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22222 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22223 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22224 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22227 cat >conftest.$ac_ext <<_ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22239 char *p = (char *) _snprintf;
22246 rm -f conftest.$ac_objext
22247 if { (ac_try="$ac_compile"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_compile") 2>conftest.er1
22255 grep -v '^ *+' conftest.er1 >conftest.err
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } && {
22260 test -z "$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 } && test -s conftest.$ac_objext; then
22263 ac_cv_have_decl__snprintf=yes
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ac_cv_have_decl__snprintf=no
22271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22273 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22274 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22275 if test $ac_cv_have_decl__snprintf = yes; then
22281 cat >>confdefs.h <<_ACEOF
22282 #define HAVE_DECL__SNPRINTF $gt_value
22287 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22288 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22289 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22292 cat >conftest.$ac_ext <<_ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22304 char *p = (char *) _snwprintf;
22311 rm -f conftest.$ac_objext
22312 if { (ac_try="$ac_compile"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_compile") 2>conftest.er1
22320 grep -v '^ *+' conftest.er1 >conftest.err
22322 cat conftest.err >&5
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); } && {
22325 test -z "$ac_c_werror_flag" ||
22326 test ! -s conftest.err
22327 } && test -s conftest.$ac_objext; then
22328 ac_cv_have_decl__snwprintf=yes
22330 echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22333 ac_cv_have_decl__snwprintf=no
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22339 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22340 if test $ac_cv_have_decl__snwprintf = yes; then
22346 cat >>confdefs.h <<_ACEOF
22347 #define HAVE_DECL__SNWPRINTF $gt_value
22353 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22354 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22355 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22358 cat >conftest.$ac_ext <<_ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22369 #ifndef feof_unlocked
22370 char *p = (char *) feof_unlocked;
22377 rm -f conftest.$ac_objext
22378 if { (ac_try="$ac_compile"
22379 case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_compile") 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && {
22391 test -z "$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 } && test -s conftest.$ac_objext; then
22394 ac_cv_have_decl_feof_unlocked=yes
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_cv_have_decl_feof_unlocked=no
22402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22404 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22405 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22406 if test $ac_cv_have_decl_feof_unlocked = yes; then
22412 cat >>confdefs.h <<_ACEOF
22413 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22418 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22419 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22420 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22421 echo $ECHO_N "(cached) $ECHO_C" >&6
22423 cat >conftest.$ac_ext <<_ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22434 #ifndef fgets_unlocked
22435 char *p = (char *) fgets_unlocked;
22442 rm -f conftest.$ac_objext
22443 if { (ac_try="$ac_compile"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_compile") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1 >conftest.err
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest.$ac_objext; then
22459 ac_cv_have_decl_fgets_unlocked=yes
22461 echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 ac_cv_have_decl_fgets_unlocked=no
22467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22469 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22470 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22471 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22483 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22484 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22485 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22499 #ifndef getc_unlocked
22500 char *p = (char *) getc_unlocked;
22507 rm -f conftest.$ac_objext
22508 if { (ac_try="$ac_compile"
22509 case "(($ac_try" in
22510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_compile") 2>conftest.er1
22516 grep -v '^ *+' conftest.er1 >conftest.err
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } && {
22521 test -z "$ac_c_werror_flag" ||
22522 test ! -s conftest.err
22523 } && test -s conftest.$ac_objext; then
22524 ac_cv_have_decl_getc_unlocked=yes
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 ac_cv_have_decl_getc_unlocked=no
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22535 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22536 if test $ac_cv_have_decl_getc_unlocked = yes; then
22542 cat >>confdefs.h <<_ACEOF
22543 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22548 case $gt_cv_func_printf_posix in
22549 *yes) HAVE_POSIX_PRINTF=1 ;;
22550 *) HAVE_POSIX_PRINTF=0 ;;
22553 if test "$ac_cv_func_asprintf" = yes; then
22559 if test "$ac_cv_func_snprintf" = yes; then
22565 if test "$ac_cv_func_wprintf" = yes; then
22577 am_save_CPPFLAGS="$CPPFLAGS"
22579 for element in $INCICONV; do
22581 for x in $CPPFLAGS; do
22583 acl_save_prefix="$prefix"
22584 prefix="$acl_final_prefix"
22585 acl_save_exec_prefix="$exec_prefix"
22586 exec_prefix="$acl_final_exec_prefix"
22588 exec_prefix="$acl_save_exec_prefix"
22589 prefix="$acl_save_prefix"
22591 if test "X$x" = "X$element"; then
22596 if test -z "$haveit"; then
22597 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22602 { echo "$as_me:$LINENO: checking for iconv" >&5
22603 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22604 if test "${am_cv_func_iconv+set}" = set; then
22605 echo $ECHO_N "(cached) $ECHO_C" >&6
22608 am_cv_func_iconv="no, consider installing GNU libiconv"
22610 cat >conftest.$ac_ext <<_ACEOF
22613 cat confdefs.h >>conftest.$ac_ext
22614 cat >>conftest.$ac_ext <<_ACEOF
22615 /* end confdefs.h. */
22616 #include <stdlib.h>
22621 iconv_t cd = iconv_open("","");
22622 iconv(cd,NULL,NULL,NULL,NULL);
22628 rm -f conftest.$ac_objext conftest$ac_exeext
22629 if { (ac_try="$ac_link"
22630 case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_link") 2>conftest.er1
22637 grep -v '^ *+' conftest.er1 >conftest.err
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest$ac_exeext &&
22645 $as_test_x conftest$ac_exeext; then
22646 am_cv_func_iconv=yes
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22655 conftest$ac_exeext conftest.$ac_ext
22656 if test "$am_cv_func_iconv" != yes; then
22657 am_save_LIBS="$LIBS"
22658 LIBS="$LIBS $LIBICONV"
22659 cat >conftest.$ac_ext <<_ACEOF
22662 cat confdefs.h >>conftest.$ac_ext
22663 cat >>conftest.$ac_ext <<_ACEOF
22664 /* end confdefs.h. */
22665 #include <stdlib.h>
22670 iconv_t cd = iconv_open("","");
22671 iconv(cd,NULL,NULL,NULL,NULL);
22677 rm -f conftest.$ac_objext conftest$ac_exeext
22678 if { (ac_try="$ac_link"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_link") 2>conftest.er1
22686 grep -v '^ *+' conftest.er1 >conftest.err
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } && {
22691 test -z "$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 } && test -s conftest$ac_exeext &&
22694 $as_test_x conftest$ac_exeext; then
22695 am_cv_lib_iconv=yes
22696 am_cv_func_iconv=yes
22698 echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22705 conftest$ac_exeext conftest.$ac_ext
22706 LIBS="$am_save_LIBS"
22710 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22711 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22712 if test "$am_cv_func_iconv" = yes; then
22714 cat >>confdefs.h <<\_ACEOF
22715 #define HAVE_ICONV 1
22719 if test "$am_cv_lib_iconv" = yes; then
22720 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22721 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22722 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22723 echo "${ECHO_T}$LIBICONV" >&6; }
22725 CPPFLAGS="$am_save_CPPFLAGS"
22732 if test "$am_cv_func_iconv" = yes; then
22733 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22734 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22735 if test "${am_cv_proto_iconv+set}" = set; then
22736 echo $ECHO_N "(cached) $ECHO_C" >&6
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22746 #include <stdlib.h>
22752 #if defined(__STDC__) || defined(__cplusplus)
22753 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_compile") 2>conftest.er1
22775 grep -v '^ *+' conftest.er1 >conftest.err
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } && {
22780 test -z "$ac_c_werror_flag" ||
22781 test ! -s conftest.err
22782 } && test -s conftest.$ac_objext; then
22783 am_cv_proto_iconv_arg1=""
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22788 am_cv_proto_iconv_arg1="const"
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 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);"
22795 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22796 { echo "$as_me:$LINENO: result: ${ac_t:-
22797 }$am_cv_proto_iconv" >&5
22798 echo "${ECHO_T}${ac_t:-
22799 }$am_cv_proto_iconv" >&6; }
22801 cat >>confdefs.h <<_ACEOF
22802 #define ICONV_CONST $am_cv_proto_iconv_arg1
22808 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22809 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22810 if test "${am_cv_langinfo_codeset+set}" = set; then
22811 echo $ECHO_N "(cached) $ECHO_C" >&6
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <langinfo.h>
22823 char* cs = nl_langinfo(CODESET);
22828 rm -f conftest.$ac_objext conftest$ac_exeext
22829 if { (ac_try="$ac_link"
22830 case "(($ac_try" in
22831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832 *) ac_try_echo=$ac_try;;
22834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22835 (eval "$ac_link") 2>conftest.er1
22837 grep -v '^ *+' conftest.er1 >conftest.err
22839 cat conftest.err >&5
22840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841 (exit $ac_status); } && {
22842 test -z "$ac_c_werror_flag" ||
22843 test ! -s conftest.err
22844 } && test -s conftest$ac_exeext &&
22845 $as_test_x conftest$ac_exeext; then
22846 am_cv_langinfo_codeset=yes
22848 echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22851 am_cv_langinfo_codeset=no
22854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22855 conftest$ac_exeext conftest.$ac_ext
22858 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22859 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22860 if test $am_cv_langinfo_codeset = yes; then
22862 cat >>confdefs.h <<\_ACEOF
22863 #define HAVE_LANGINFO_CODESET 1
22868 if test $ac_cv_header_locale_h = yes; then
22870 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22871 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22872 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22873 echo $ECHO_N "(cached) $ECHO_C" >&6
22875 cat >conftest.$ac_ext <<_ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h. */
22881 #include <locale.h>
22890 rm -f conftest.$ac_objext conftest$ac_exeext
22891 if { (ac_try="$ac_link"
22892 case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_link") 2>conftest.er1
22899 grep -v '^ *+' conftest.er1 >conftest.err
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } && {
22904 test -z "$ac_c_werror_flag" ||
22905 test ! -s conftest.err
22906 } && test -s conftest$ac_exeext &&
22907 $as_test_x conftest$ac_exeext; then
22908 gt_cv_val_LC_MESSAGES=yes
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22913 gt_cv_val_LC_MESSAGES=no
22916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22917 conftest$ac_exeext conftest.$ac_ext
22919 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22920 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22921 if test $gt_cv_val_LC_MESSAGES = yes; then
22923 cat >>confdefs.h <<\_ACEOF
22924 #define HAVE_LC_MESSAGES 1
22931 if test -n "$INTL_MACOSX_LIBS"; then
22932 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22935 for ac_prog in bison
22937 # Extract the first word of "$ac_prog", so it can be a program name with args.
22938 set dummy $ac_prog; ac_word=$2
22939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22941 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22942 echo $ECHO_N "(cached) $ECHO_C" >&6
22944 if test -n "$INTLBISON"; then
22945 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22948 for as_dir in $PATH
22951 test -z "$as_dir" && as_dir=.
22952 for ac_exec_ext in '' $ac_executable_extensions; do
22953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22954 ac_cv_prog_INTLBISON="$ac_prog"
22955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22964 INTLBISON=$ac_cv_prog_INTLBISON
22965 if test -n "$INTLBISON"; then
22966 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22967 echo "${ECHO_T}$INTLBISON" >&6; }
22969 { echo "$as_me:$LINENO: result: no" >&5
22970 echo "${ECHO_T}no" >&6; }
22974 test -n "$INTLBISON" && break
22977 if test -z "$INTLBISON"; then
22980 { echo "$as_me:$LINENO: checking version of bison" >&5
22981 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
22982 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
22983 case $ac_prog_version in
22984 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
22985 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
22986 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
22987 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
22989 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
22990 echo "${ECHO_T}$ac_prog_version" >&6; }
22992 if test $ac_verc_fail = yes; then
23011 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23012 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23013 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23014 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 gt_save_CPPFLAGS="$CPPFLAGS"
23017 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23018 gt_save_LIBS="$LIBS"
23019 LIBS="$LIBS -framework CoreFoundation"
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 #include <CFPreferences.h>
23030 CFPreferencesCopyAppValue(NULL, NULL)
23035 rm -f conftest.$ac_objext conftest$ac_exeext
23036 if { (ac_try="$ac_link"
23037 case "(($ac_try" in
23038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039 *) ac_try_echo=$ac_try;;
23041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23042 (eval "$ac_link") 2>conftest.er1
23044 grep -v '^ *+' conftest.er1 >conftest.err
23046 cat conftest.err >&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && {
23049 test -z "$ac_c_werror_flag" ||
23050 test ! -s conftest.err
23051 } && test -s conftest$ac_exeext &&
23052 $as_test_x conftest$ac_exeext; then
23053 gt_cv_func_CFPreferencesCopyAppValue=yes
23055 echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23058 gt_cv_func_CFPreferencesCopyAppValue=no
23061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23062 conftest$ac_exeext conftest.$ac_ext
23063 CPPFLAGS="$gt_save_CPPFLAGS"
23064 LIBS="$gt_save_LIBS"
23066 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23067 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23068 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23070 cat >>confdefs.h <<\_ACEOF
23071 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23075 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23076 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23077 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23080 gt_save_CPPFLAGS="$CPPFLAGS"
23081 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23082 gt_save_LIBS="$LIBS"
23083 LIBS="$LIBS -framework CoreFoundation"
23084 cat >conftest.$ac_ext <<_ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090 #include <CFLocale.h>
23094 CFLocaleCopyCurrent();
23099 rm -f conftest.$ac_objext conftest$ac_exeext
23100 if { (ac_try="$ac_link"
23101 case "(($ac_try" in
23102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103 *) ac_try_echo=$ac_try;;
23105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23106 (eval "$ac_link") 2>conftest.er1
23108 grep -v '^ *+' conftest.er1 >conftest.err
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && {
23113 test -z "$ac_c_werror_flag" ||
23114 test ! -s conftest.err
23115 } && test -s conftest$ac_exeext &&
23116 $as_test_x conftest$ac_exeext; then
23117 gt_cv_func_CFLocaleCopyCurrent=yes
23119 echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 gt_cv_func_CFLocaleCopyCurrent=no
23125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23126 conftest$ac_exeext conftest.$ac_ext
23127 CPPFLAGS="$gt_save_CPPFLAGS"
23128 LIBS="$gt_save_LIBS"
23130 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23131 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23132 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23134 cat >>confdefs.h <<\_ACEOF
23135 #define HAVE_CFLOCALECOPYCURRENT 1
23140 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23141 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23147 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23148 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23149 # Check whether --enable-nls was given.
23150 if test "${enable_nls+set}" = set; then
23151 enableval=$enable_nls; USE_NLS=$enableval
23156 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23157 echo "${ECHO_T}$USE_NLS" >&6; }
23162 BUILD_INCLUDED_LIBINTL=no
23163 USE_INCLUDED_LIBINTL=no
23169 if test "$USE_NLS" = "yes"; then
23170 gt_use_preinstalled_gnugettext=no
23172 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23173 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23175 # Check whether --with-included-gettext was given.
23176 if test "${with_included_gettext+set}" = set; then
23177 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23179 nls_cv_force_use_gnu_gettext=no
23182 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23183 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23185 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23186 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23193 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23194 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23195 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 #include <libintl.h>
23205 extern int _nl_msg_cat_cntr;
23206 extern int *_nl_domain_bindings;
23210 bindtextdomain ("", "");
23211 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23216 rm -f conftest.$ac_objext conftest$ac_exeext
23217 if { (ac_try="$ac_link"
23218 case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223 (eval "$ac_link") 2>conftest.er1
23225 grep -v '^ *+' conftest.er1 >conftest.err
23227 cat conftest.err >&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } && {
23230 test -z "$ac_c_werror_flag" ||
23231 test ! -s conftest.err
23232 } && test -s conftest$ac_exeext &&
23233 $as_test_x conftest$ac_exeext; then
23234 gt_cv_func_gnugettext1_libc=yes
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 gt_cv_func_gnugettext1_libc=no
23242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23243 conftest$ac_exeext conftest.$ac_ext
23245 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23246 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23248 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23254 acl_save_prefix="$prefix"
23255 prefix="$acl_final_prefix"
23256 acl_save_exec_prefix="$exec_prefix"
23257 exec_prefix="$acl_final_exec_prefix"
23259 eval additional_includedir=\"$includedir\"
23260 eval additional_libdir=\"$libdir\"
23262 exec_prefix="$acl_save_exec_prefix"
23263 prefix="$acl_save_prefix"
23266 # Check whether --with-libintl-prefix was given.
23267 if test "${with_libintl_prefix+set}" = set; then
23268 withval=$with_libintl_prefix;
23269 if test "X$withval" = "Xno"; then
23272 if test "X$withval" = "X"; then
23274 acl_save_prefix="$prefix"
23275 prefix="$acl_final_prefix"
23276 acl_save_exec_prefix="$exec_prefix"
23277 exec_prefix="$acl_final_exec_prefix"
23279 eval additional_includedir=\"$includedir\"
23280 eval additional_libdir=\"$libdir\"
23282 exec_prefix="$acl_save_exec_prefix"
23283 prefix="$acl_save_prefix"
23286 additional_includedir="$withval/include"
23287 additional_libdir="$withval/lib"
23298 names_already_handled=
23299 names_next_round='intl '
23300 while test -n "$names_next_round"; do
23301 names_this_round="$names_next_round"
23303 for name in $names_this_round; do
23305 for n in $names_already_handled; do
23306 if test "$n" = "$name"; then
23307 already_handled=yes
23311 if test -z "$already_handled"; then
23312 names_already_handled="$names_already_handled $name"
23313 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23314 eval value=\"\$HAVE_LIB$uppername\"
23315 if test -n "$value"; then
23316 if test "$value" = yes; then
23317 eval value=\"\$LIB$uppername\"
23318 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23319 eval value=\"\$LTLIB$uppername\"
23320 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23329 if test $use_additional = yes; then
23330 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23331 found_dir="$additional_libdir"
23332 found_so="$additional_libdir/lib$name.$shlibext"
23333 if test -f "$additional_libdir/lib$name.la"; then
23334 found_la="$additional_libdir/lib$name.la"
23337 if test -f "$additional_libdir/lib$name.$libext"; then
23338 found_dir="$additional_libdir"
23339 found_a="$additional_libdir/lib$name.$libext"
23340 if test -f "$additional_libdir/lib$name.la"; then
23341 found_la="$additional_libdir/lib$name.la"
23346 if test "X$found_dir" = "X"; then
23347 for x in $LDFLAGS $LTLIBINTL; do
23349 acl_save_prefix="$prefix"
23350 prefix="$acl_final_prefix"
23351 acl_save_exec_prefix="$exec_prefix"
23352 exec_prefix="$acl_final_exec_prefix"
23354 exec_prefix="$acl_save_exec_prefix"
23355 prefix="$acl_save_prefix"
23359 dir=`echo "X$x" | sed -e 's/^X-L//'`
23360 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23362 found_so="$dir/lib$name.$shlibext"
23363 if test -f "$dir/lib$name.la"; then
23364 found_la="$dir/lib$name.la"
23367 if test -f "$dir/lib$name.$libext"; then
23369 found_a="$dir/lib$name.$libext"
23370 if test -f "$dir/lib$name.la"; then
23371 found_la="$dir/lib$name.la"
23377 if test "X$found_dir" != "X"; then
23382 if test "X$found_dir" != "X"; then
23383 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23384 if test "X$found_so" != "X"; then
23385 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23386 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23389 for x in $ltrpathdirs; do
23390 if test "X$x" = "X$found_dir"; then
23395 if test -z "$haveit"; then
23396 ltrpathdirs="$ltrpathdirs $found_dir"
23398 if test "$hardcode_direct" = yes; then
23399 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23401 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23402 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23404 for x in $rpathdirs; do
23405 if test "X$x" = "X$found_dir"; then
23410 if test -z "$haveit"; then
23411 rpathdirs="$rpathdirs $found_dir"
23415 for x in $LDFLAGS $LIBINTL; do
23417 acl_save_prefix="$prefix"
23418 prefix="$acl_final_prefix"
23419 acl_save_exec_prefix="$exec_prefix"
23420 exec_prefix="$acl_final_exec_prefix"
23422 exec_prefix="$acl_save_exec_prefix"
23423 prefix="$acl_save_prefix"
23425 if test "X$x" = "X-L$found_dir"; then
23430 if test -z "$haveit"; then
23431 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23433 if test "$hardcode_minus_L" != no; then
23434 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23436 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23442 if test "X$found_a" != "X"; then
23443 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23445 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23448 additional_includedir=
23449 case "$found_dir" in
23451 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23452 additional_includedir="$basedir/include"
23455 if test "X$additional_includedir" != "X"; then
23456 if test "X$additional_includedir" != "X/usr/include"; then
23458 if test "X$additional_includedir" = "X/usr/local/include"; then
23459 if test -n "$GCC"; then
23461 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23465 if test -z "$haveit"; then
23466 for x in $CPPFLAGS $INCINTL; do
23468 acl_save_prefix="$prefix"
23469 prefix="$acl_final_prefix"
23470 acl_save_exec_prefix="$exec_prefix"
23471 exec_prefix="$acl_final_exec_prefix"
23473 exec_prefix="$acl_save_exec_prefix"
23474 prefix="$acl_save_prefix"
23476 if test "X$x" = "X-I$additional_includedir"; then
23481 if test -z "$haveit"; then
23482 if test -d "$additional_includedir"; then
23483 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23489 if test -n "$found_la"; then
23490 save_libdir="$libdir"
23491 case "$found_la" in
23492 */* | *\\*) . "$found_la" ;;
23493 *) . "./$found_la" ;;
23495 libdir="$save_libdir"
23496 for dep in $dependency_libs; do
23499 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23500 if test "X$additional_libdir" != "X/usr/lib"; then
23502 if test "X$additional_libdir" = "X/usr/local/lib"; then
23503 if test -n "$GCC"; then
23505 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23509 if test -z "$haveit"; then
23511 for x in $LDFLAGS $LIBINTL; do
23513 acl_save_prefix="$prefix"
23514 prefix="$acl_final_prefix"
23515 acl_save_exec_prefix="$exec_prefix"
23516 exec_prefix="$acl_final_exec_prefix"
23518 exec_prefix="$acl_save_exec_prefix"
23519 prefix="$acl_save_prefix"
23521 if test "X$x" = "X-L$additional_libdir"; then
23526 if test -z "$haveit"; then
23527 if test -d "$additional_libdir"; then
23528 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23532 for x in $LDFLAGS $LTLIBINTL; do
23534 acl_save_prefix="$prefix"
23535 prefix="$acl_final_prefix"
23536 acl_save_exec_prefix="$exec_prefix"
23537 exec_prefix="$acl_final_exec_prefix"
23539 exec_prefix="$acl_save_exec_prefix"
23540 prefix="$acl_save_prefix"
23542 if test "X$x" = "X-L$additional_libdir"; then
23547 if test -z "$haveit"; then
23548 if test -d "$additional_libdir"; then
23549 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23556 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23557 if test "$enable_rpath" != no; then
23559 for x in $rpathdirs; do
23560 if test "X$x" = "X$dir"; then
23565 if test -z "$haveit"; then
23566 rpathdirs="$rpathdirs $dir"
23569 for x in $ltrpathdirs; do
23570 if test "X$x" = "X$dir"; then
23575 if test -z "$haveit"; then
23576 ltrpathdirs="$ltrpathdirs $dir"
23581 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23584 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23587 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23588 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23594 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23595 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23601 if test "X$rpathdirs" != "X"; then
23602 if test -n "$hardcode_libdir_separator"; then
23604 for found_dir in $rpathdirs; do
23605 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23607 acl_save_libdir="$libdir"
23609 eval flag=\"$hardcode_libdir_flag_spec\"
23610 libdir="$acl_save_libdir"
23611 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23613 for found_dir in $rpathdirs; do
23614 acl_save_libdir="$libdir"
23615 libdir="$found_dir"
23616 eval flag=\"$hardcode_libdir_flag_spec\"
23617 libdir="$acl_save_libdir"
23618 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23622 if test "X$ltrpathdirs" != "X"; then
23623 for found_dir in $ltrpathdirs; do
23624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23628 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23629 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23630 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23633 gt_save_CPPFLAGS="$CPPFLAGS"
23634 CPPFLAGS="$CPPFLAGS $INCINTL"
23635 gt_save_LIBS="$LIBS"
23636 LIBS="$LIBS $LIBINTL"
23637 cat >conftest.$ac_ext <<_ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h. */
23643 #include <libintl.h>
23644 extern int _nl_msg_cat_cntr;
23649 const char *_nl_expand_alias (const char *);
23653 bindtextdomain ("", "");
23654 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23659 rm -f conftest.$ac_objext conftest$ac_exeext
23660 if { (ac_try="$ac_link"
23661 case "(($ac_try" in
23662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663 *) ac_try_echo=$ac_try;;
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666 (eval "$ac_link") 2>conftest.er1
23668 grep -v '^ *+' conftest.er1 >conftest.err
23670 cat conftest.err >&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); } && {
23673 test -z "$ac_c_werror_flag" ||
23674 test ! -s conftest.err
23675 } && test -s conftest$ac_exeext &&
23676 $as_test_x conftest$ac_exeext; then
23677 gt_cv_func_gnugettext1_libintl=yes
23679 echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23682 gt_cv_func_gnugettext1_libintl=no
23685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23686 conftest$ac_exeext conftest.$ac_ext
23687 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23688 LIBS="$LIBS $LIBICONV"
23689 cat >conftest.$ac_ext <<_ACEOF
23692 cat confdefs.h >>conftest.$ac_ext
23693 cat >>conftest.$ac_ext <<_ACEOF
23694 /* end confdefs.h. */
23695 #include <libintl.h>
23696 extern int _nl_msg_cat_cntr;
23701 const char *_nl_expand_alias (const char *);
23705 bindtextdomain ("", "");
23706 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23711 rm -f conftest.$ac_objext conftest$ac_exeext
23712 if { (ac_try="$ac_link"
23713 case "(($ac_try" in
23714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715 *) ac_try_echo=$ac_try;;
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718 (eval "$ac_link") 2>conftest.er1
23720 grep -v '^ *+' conftest.er1 >conftest.err
23722 cat conftest.err >&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && {
23725 test -z "$ac_c_werror_flag" ||
23726 test ! -s conftest.err
23727 } && test -s conftest$ac_exeext &&
23728 $as_test_x conftest$ac_exeext; then
23729 LIBINTL="$LIBINTL $LIBICONV"
23730 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23731 gt_cv_func_gnugettext1_libintl=yes
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23741 conftest$ac_exeext conftest.$ac_ext
23743 CPPFLAGS="$gt_save_CPPFLAGS"
23744 LIBS="$gt_save_LIBS"
23746 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23747 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23750 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23751 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23752 && test "$PACKAGE" != gettext-runtime \
23753 && test "$PACKAGE" != gettext-tools; }; then
23754 gt_use_preinstalled_gnugettext=yes
23762 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23763 nls_cv_use_gnu_gettext=yes
23767 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23768 BUILD_INCLUDED_LIBINTL=yes
23769 USE_INCLUDED_LIBINTL=yes
23770 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23771 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23772 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23776 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23777 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23782 if test -n "$INTL_MACOSX_LIBS"; then
23783 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23784 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23785 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23786 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23790 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23791 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23793 cat >>confdefs.h <<\_ACEOF
23794 #define ENABLE_NLS 1
23802 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23803 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23804 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23805 echo "${ECHO_T}$USE_NLS" >&6; }
23806 if test "$USE_NLS" = "yes"; then
23807 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23808 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23809 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23810 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23811 gt_source="external libintl"
23816 gt_source="included intl directory"
23818 { echo "$as_me:$LINENO: result: $gt_source" >&5
23819 echo "${ECHO_T}$gt_source" >&6; }
23822 if test "$USE_NLS" = "yes"; then
23824 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23825 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23826 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23827 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23828 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23829 echo "${ECHO_T}$LIBINTL" >&6; }
23831 for element in $INCINTL; do
23833 for x in $CPPFLAGS; do
23835 acl_save_prefix="$prefix"
23836 prefix="$acl_final_prefix"
23837 acl_save_exec_prefix="$exec_prefix"
23838 exec_prefix="$acl_final_exec_prefix"
23840 exec_prefix="$acl_save_exec_prefix"
23841 prefix="$acl_save_prefix"
23843 if test "X$x" = "X$element"; then
23848 if test -z "$haveit"; then
23849 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23856 cat >>confdefs.h <<\_ACEOF
23857 #define HAVE_GETTEXT 1
23861 cat >>confdefs.h <<\_ACEOF
23862 #define HAVE_DCGETTEXT 1
23871 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23872 BUILD_INCLUDED_LIBINTL=yes
23879 nls_cv_header_intl=
23880 nls_cv_header_libgt=
23892 if test "$USE_INCLUDED_LIBINTL" = yes; then
23893 INTLOBJS="\$(GETTOBJS)"
23897 INTL_LIBTOOL_SUFFIX_PREFIX=
23901 INTLLIBS="$LIBINTL"
23913 support_postgresql=no
23915 support_smartalloc=yes
23916 support_readline=yes
23920 support_wx_console=no
23925 support_static_tools=no
23926 support_static_fd=no
23927 support_static_sd=no
23928 support_static_dir=no
23929 support_static_cons=no
23931 build_client_only=no
23939 # Check whether --enable-gnome was given.
23940 if test "${enable_gnome+set}" = set; then
23941 enableval=$enable_gnome;
23942 if test x$enableval = xyes; then
23951 if test x$support_gnome = xyes; then
23952 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23954 if test $pkg = 0; then
23955 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23956 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23957 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23958 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23963 GNOME_DIR=src/gnome2-console
23964 gnome_version="Version 2.x"
23966 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23967 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23968 { (exit 1); exit 1; }; }
23973 # Check whether --enable-bat was given.
23974 if test "${enable_bat+set}" = set; then
23975 enableval=$enable_bat;
23976 if test x$enableval = xyes; then
23978 cat >>confdefs.h <<\_ACEOF
23990 if test x$support_bat = xyes; then
23991 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
23993 if test $pkg = 0; then
23994 BAT_DIR=src/qt-console
23996 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
23997 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
23998 { (exit 1); exit 1; }; }
24008 if test x$support_bat = xyes; then
24009 { echo "$as_me:$LINENO: checking for qwt support" >&5
24010 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24012 # Check whether --with-qwt was given.
24013 if test "${with_qwt+set}" = set; then
24015 case "$with_qwt" in
24020 if test -f ${with_qwt}/include/qwt.h; then
24021 QWT_INC="${with_qwt}/include"
24022 QWT_LDFLAGS="-L${with_qwt}/lib"
24033 if test $no_qwt = no; then
24034 if test x$QWT_INC = x; then
24035 for root in /usr /usr/local; do
24036 for ver in qwt qwt5 qwt-qt4; do
24037 if test -f ${root}/include/${ver}/qwt.h; then
24038 QWT_INC="${root}/include/${ver}"
24039 if test -d ${root}/lib64/; then
24040 QWT_LDFLAGS="-L${root}/lib64"
24041 elif test -d ${root}/lib/64/; then
24042 QWT_LDFLAGS="-L${root}/64"
24044 QWT_LDFLAGS="-L${root}/lib"
24055 if test x$QWT_INC = x; then
24056 { echo "$as_me:$LINENO: result: no" >&5
24057 echo "${ECHO_T}no" >&6; }
24060 cat >>confdefs.h <<\_ACEOF
24064 { echo "$as_me:$LINENO: result: yes" >&5
24065 echo "${ECHO_T}yes" >&6; }
24075 # Check whether --enable-bwx-console was given.
24076 if test "${enable_bwx_console+set}" = set; then
24077 enableval=$enable_bwx_console;
24078 if test x$enableval = xyes; then
24079 support_wx_console=yes
24087 if test x$support_wx_console = xyes; then
24088 abc=`$WXCONFIG $WXFLAGS --cppflags`
24090 if test $pkg = 0; then
24091 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24092 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24093 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24097 WX_DIR=src/wx-console
24100 echo "wx-config program not found. bwx-console disabled."
24102 support_wx_console=no
24107 # Check whether --enable-tray-monitor was given.
24108 if test "${enable_tray_monitor+set}" = set; then
24109 enableval=$enable_tray_monitor;
24110 if test x$enableval = xyes; then
24111 support_tray_monitor=yes
24119 if test x$support_tray_monitor = xyes; then
24120 abc=`$PKGCONFIG --exists gtk+-2.0`
24122 if test $pkg = 0; then
24123 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24124 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24127 TRAY_MONITOR_DIR=src/tray-monitor
24128 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24130 if test $pkg = 0; then
24132 cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_GTK_2_4 1
24141 # Check whether --enable-smartalloc was given.
24142 if test "${enable_smartalloc+set}" = set; then
24143 enableval=$enable_smartalloc;
24144 if test x$enableval = xno; then
24145 support_smartalloc=no
24152 if test x$support_smartalloc = xyes; then
24154 cat >>confdefs.h <<\_ACEOF
24155 #define SMARTALLOC 1
24160 # Check whether --enable-static-tools was given.
24161 if test "${enable_static_tools+set}" = set; then
24162 enableval=$enable_static_tools;
24163 if test x$enableval = xyes; then
24164 support_static_tools=yes
24172 if test x$support_static_tools = xyes; then
24173 TTOOL_LDFLAGS="-static"
24177 # Check whether --enable-static-fd was given.
24178 if test "${enable_static_fd+set}" = set; then
24179 enableval=$enable_static_fd;
24180 if test x$enableval = xyes; then
24181 support_static_fd=yes
24189 if test x$support_static_fd = xyes; then
24190 STATIC_FD="static-bacula-fd"
24194 # Check whether --enable-static-sd was given.
24195 if test "${enable_static_sd+set}" = set; then
24196 enableval=$enable_static_sd;
24197 if test x$enableval = xyes; then
24198 support_static_sd=yes
24206 if test x$support_static_sd = xyes; then
24207 STATIC_SD="static-bacula-sd"
24211 # Check whether --enable-static-dir was given.
24212 if test "${enable_static_dir+set}" = set; then
24213 enableval=$enable_static_dir;
24214 if test x$enableval = xyes; then
24215 support_static_dir=yes
24223 if test x$support_static_dir = xyes; then
24224 STATIC_DIR="static-bacula-dir"
24228 # Check whether --enable-static-cons was given.
24229 if test "${enable_static_cons+set}" = set; then
24230 enableval=$enable_static_cons;
24231 if test x$enableval = xyes; then
24232 support_static_cons=yes
24242 if test x$support_static_cons = xyes; then
24243 STATIC_CONS="static-bconsole"
24244 STATIC_GNOME_CONS="static-bgnome-console"
24245 STATIC_WX_CONS="static-bwx-console"
24251 # Check whether --enable-client-only was given.
24252 if test "${enable_client_only+set}" = set; then
24253 enableval=$enable_client_only;
24254 if test x$enableval = xyes; then
24255 build_client_only=yes
24263 if test x$build_client_only = xno; then
24270 # Check whether --enable-build-dird was given.
24271 if test "${enable_build_dird+set}" = set; then
24272 enableval=$enable_build_dird;
24273 if test x$enableval = xno; then
24280 if test x$build_dird = xyes; then
24281 DIRD_DIR="src/dird"
24282 DIR_TOOLS="DIRTOOLS"
24285 DIR_TOOLS="NODIRTOOLS"
24290 # Check whether --enable-build-stored was given.
24291 if test "${enable_build_stored+set}" = set; then
24292 enableval=$enable_build_stored;
24293 if test x$enableval = xno; then
24300 if test x$build_stored = xyes; then
24301 STORED_DIR="src/stored"
24307 # Check whether --enable-conio was given.
24308 if test "${enable_conio+set}" = set; then
24309 enableval=$enable_conio;
24310 if test x$enableval = xno; then
24320 # Check whether --enable-ipv6 was given.
24321 if test "${enable_ipv6+set}" = set; then
24322 enableval=$enable_ipv6;
24323 if test x$enableval = xno; then
24331 if test x$support_ipv6 = xyes; then
24332 cat >conftest.$ac_ext <<_ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 #include <sys/types.h>
24339 #include <sys/socket.h>
24340 #include <netinet/in.h>
24344 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24349 rm -f conftest.$ac_objext conftest$ac_exeext
24350 if { (ac_try="$ac_link"
24351 case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_link") 2>conftest.er1
24358 grep -v '^ *+' conftest.er1 >conftest.err
24360 cat conftest.err >&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } && {
24363 test -z "$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24365 } && test -s conftest$ac_exeext &&
24366 $as_test_x conftest$ac_exeext; then
24369 echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24376 conftest$ac_exeext conftest.$ac_ext
24379 if test x$support_ipv6 = xyes; then
24381 cat >>confdefs.h <<\_ACEOF
24382 #define HAVE_IPV6 1
24388 if test x$support_conio = xyes; then
24389 if test "${ac_cv_header_termcap_h+set}" = set; then
24390 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24391 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24392 if test "${ac_cv_header_termcap_h+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
24395 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24396 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24398 # Is the header compilable?
24399 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24400 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24401 cat >conftest.$ac_ext <<_ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 $ac_includes_default
24408 #include <termcap.h>
24410 rm -f conftest.$ac_objext
24411 if { (ac_try="$ac_compile"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_compile") 2>conftest.er1
24419 grep -v '^ *+' conftest.er1 >conftest.err
24421 cat conftest.err >&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } && {
24424 test -z "$ac_c_werror_flag" ||
24425 test ! -s conftest.err
24426 } && test -s conftest.$ac_objext; then
24427 ac_header_compiler=yes
24429 echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24432 ac_header_compiler=no
24435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24437 echo "${ECHO_T}$ac_header_compiler" >&6; }
24439 # Is the header present?
24440 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24441 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24442 cat >conftest.$ac_ext <<_ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h. */
24448 #include <termcap.h>
24450 if { (ac_try="$ac_cpp conftest.$ac_ext"
24451 case "(($ac_try" in
24452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453 *) ac_try_echo=$ac_try;;
24455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24458 grep -v '^ *+' conftest.er1 >conftest.err
24460 cat conftest.err >&5
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } >/dev/null && {
24463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24464 test ! -s conftest.err
24466 ac_header_preproc=yes
24468 echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24471 ac_header_preproc=no
24474 rm -f conftest.err conftest.$ac_ext
24475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24476 echo "${ECHO_T}$ac_header_preproc" >&6; }
24478 # So? What about this header?
24479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24481 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24482 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24483 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24484 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24485 ac_header_preproc=yes
24488 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24489 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24490 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24491 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24492 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24493 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24494 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24495 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24496 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24497 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24498 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24499 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24503 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24504 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24505 if test "${ac_cv_header_termcap_h+set}" = set; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24508 ac_cv_header_termcap_h=$ac_header_preproc
24510 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24511 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24514 if test $ac_cv_header_termcap_h = yes; then
24515 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24516 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24517 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24520 ac_check_lib_save_LIBS=$LIBS
24521 LIBS="-ltermcap $LIBS"
24522 cat >conftest.$ac_ext <<_ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24529 /* Override any GCC internal prototype to avoid an error.
24530 Use char because int might match the return type of a GCC
24531 builtin and then its argument prototype would still apply. */
24544 rm -f conftest.$ac_objext conftest$ac_exeext
24545 if { (ac_try="$ac_link"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551 (eval "$ac_link") 2>conftest.er1
24553 grep -v '^ *+' conftest.er1 >conftest.err
24555 cat conftest.err >&5
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } && {
24558 test -z "$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 } && test -s conftest$ac_exeext &&
24561 $as_test_x conftest$ac_exeext; then
24562 ac_cv_lib_termcap_tgetent=yes
24564 echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24567 ac_cv_lib_termcap_tgetent=no
24570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24571 conftest$ac_exeext conftest.$ac_ext
24572 LIBS=$ac_check_lib_save_LIBS
24574 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24575 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24576 if test $ac_cv_lib_termcap_tgetent = yes; then
24577 CONS_LIBS="-ltermcap"
24581 support_readline=no
24583 cat >>confdefs.h <<\_ACEOF
24584 #define HAVE_CONIO 1
24589 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24590 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24591 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24592 echo $ECHO_N "(cached) $ECHO_C" >&6
24594 ac_check_lib_save_LIBS=$LIBS
24595 LIBS="-lncurses $LIBS"
24596 cat >conftest.$ac_ext <<_ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h. */
24603 /* Override any GCC internal prototype to avoid an error.
24604 Use char because int might match the return type of a GCC
24605 builtin and then its argument prototype would still apply. */
24618 rm -f conftest.$ac_objext conftest$ac_exeext
24619 if { (ac_try="$ac_link"
24620 case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_link") 2>conftest.er1
24627 grep -v '^ *+' conftest.er1 >conftest.err
24629 cat conftest.err >&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && {
24632 test -z "$ac_c_werror_flag" ||
24633 test ! -s conftest.err
24634 } && test -s conftest$ac_exeext &&
24635 $as_test_x conftest$ac_exeext; then
24636 ac_cv_lib_ncurses_tgetent=yes
24638 echo "$as_me: failed program was:" >&5
24639 sed 's/^/| /' conftest.$ac_ext >&5
24641 ac_cv_lib_ncurses_tgetent=no
24644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24645 conftest$ac_exeext conftest.$ac_ext
24646 LIBS=$ac_check_lib_save_LIBS
24648 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24649 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24650 if test $ac_cv_lib_ncurses_tgetent = yes; then
24651 CONS_LIBS="-lncurses"
24655 support_readline=no
24657 cat >>confdefs.h <<\_ACEOF
24658 #define HAVE_CONIO 1
24671 for ac_header in curses.h
24673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24680 ac_res=`eval echo '${'$as_ac_Header'}'`
24681 { echo "$as_me:$LINENO: result: $ac_res" >&5
24682 echo "${ECHO_T}$ac_res" >&6; }
24684 # Is the header compilable?
24685 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24687 cat >conftest.$ac_ext <<_ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h. */
24693 $ac_includes_default
24694 #include <$ac_header>
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700 *) ac_try_echo=$ac_try;;
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703 (eval "$ac_compile") 2>conftest.er1
24705 grep -v '^ *+' conftest.er1 >conftest.err
24707 cat conftest.err >&5
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } && {
24710 test -z "$ac_c_werror_flag" ||
24711 test ! -s conftest.err
24712 } && test -s conftest.$ac_objext; then
24713 ac_header_compiler=yes
24715 echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24718 ac_header_compiler=no
24721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24723 echo "${ECHO_T}$ac_header_compiler" >&6; }
24725 # Is the header present?
24726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24728 cat >conftest.$ac_ext <<_ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h. */
24734 #include <$ac_header>
24736 if { (ac_try="$ac_cpp conftest.$ac_ext"
24737 case "(($ac_try" in
24738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739 *) ac_try_echo=$ac_try;;
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24744 grep -v '^ *+' conftest.er1 >conftest.err
24746 cat conftest.err >&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); } >/dev/null && {
24749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24750 test ! -s conftest.err
24752 ac_header_preproc=yes
24754 echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24757 ac_header_preproc=no
24760 rm -f conftest.err conftest.$ac_ext
24761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24762 echo "${ECHO_T}$ac_header_preproc" >&6; }
24764 # So? What about this header?
24765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24771 ac_header_preproc=yes
24774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24794 eval "$as_ac_Header=\$ac_header_preproc"
24796 ac_res=`eval echo '${'$as_ac_Header'}'`
24797 { echo "$as_me:$LINENO: result: $ac_res" >&5
24798 echo "${ECHO_T}$ac_res" >&6; }
24801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24802 cat >>confdefs.h <<_ACEOF
24803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24810 { echo "$as_me:$LINENO: checking for term.h" >&5
24811 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24812 if test "${ac_cv_header_term_h+set}" = set; then
24813 echo $ECHO_N "(cached) $ECHO_C" >&6
24815 cat >conftest.$ac_ext <<_ACEOF
24818 cat confdefs.h >>conftest.$ac_ext
24819 cat >>conftest.$ac_ext <<_ACEOF
24820 /* end confdefs.h. */
24822 #include <curses.h>
24828 rm -f conftest.$ac_objext
24829 if { (ac_try="$ac_compile"
24830 case "(($ac_try" in
24831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24832 *) ac_try_echo=$ac_try;;
24834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24835 (eval "$ac_compile") 2>conftest.er1
24837 grep -v '^ *+' conftest.er1 >conftest.err
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } && {
24842 test -z "$ac_c_werror_flag" ||
24843 test ! -s conftest.err
24844 } && test -s conftest.$ac_objext; then
24845 ac_cv_header_term_h=yes
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24850 ac_cv_header_term_h=no
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24855 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24856 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24857 if test $ac_cv_header_term_h = yes; then
24858 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24859 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24860 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 ac_check_lib_save_LIBS=$LIBS
24864 LIBS="-lcurses $LIBS"
24865 cat >conftest.$ac_ext <<_ACEOF
24868 cat confdefs.h >>conftest.$ac_ext
24869 cat >>conftest.$ac_ext <<_ACEOF
24870 /* end confdefs.h. */
24872 /* Override any GCC internal prototype to avoid an error.
24873 Use char because int might match the return type of a GCC
24874 builtin and then its argument prototype would still apply. */
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_link") 2>conftest.er1
24896 grep -v '^ *+' conftest.er1 >conftest.err
24898 cat conftest.err >&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest$ac_exeext &&
24904 $as_test_x conftest$ac_exeext; then
24905 ac_cv_lib_curses_tgetent=yes
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 ac_cv_lib_curses_tgetent=no
24913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24914 conftest$ac_exeext conftest.$ac_ext
24915 LIBS=$ac_check_lib_save_LIBS
24917 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24918 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24919 if test $ac_cv_lib_curses_tgetent = yes; then
24920 CONS_LIBS="-lcurses"
24924 support_readline=no
24926 cat >>confdefs.h <<\_ACEOF
24927 #define HAVE_CONIO 1
24935 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24946 # Check whether --enable-readline was given.
24947 if test "${enable_readline+set}" = set; then
24948 enableval=$enable_readline;
24949 if test x$enableval = xno; then
24950 support_readline=no
24959 if test x$support_readline = xyes; then
24961 # Check whether --with-readline was given.
24962 if test "${with_readline+set}" = set; then
24963 withval=$with_readline;
24964 case "$with_readline" in
24969 if test -f ${with_readline}/readline.h; then
24970 CONS_INC="-I${with_readline}"
24971 CONS_LDFLAGS="-L$with_readline"
24972 elif test -f ${with_readline}/include/readline/readline.h; then
24973 CONS_INC="-I${with_readline}/include/readline"
24974 CONS_LDFLAGS="-L${with_readline}/lib"
24975 with_readline="${with_readline}/include/readline"
24977 with_readline="/usr/include/readline"
24980 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
24981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24982 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
24983 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
24984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24985 echo $ECHO_N "(cached) $ECHO_C" >&6
24987 ac_res=`eval echo '${'$as_ac_Header'}'`
24988 { echo "$as_me:$LINENO: result: $ac_res" >&5
24989 echo "${ECHO_T}$ac_res" >&6; }
24991 # Is the header compilable?
24992 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
24993 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
24994 cat >conftest.$ac_ext <<_ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h. */
25000 $ac_includes_default
25001 #include <${with_readline}/readline.h>
25003 rm -f conftest.$ac_objext
25004 if { (ac_try="$ac_compile"
25005 case "(($ac_try" in
25006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007 *) ac_try_echo=$ac_try;;
25009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010 (eval "$ac_compile") 2>conftest.er1
25012 grep -v '^ *+' conftest.er1 >conftest.err
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } && {
25017 test -z "$ac_c_werror_flag" ||
25018 test ! -s conftest.err
25019 } && test -s conftest.$ac_objext; then
25020 ac_header_compiler=yes
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25025 ac_header_compiler=no
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25030 echo "${ECHO_T}$ac_header_compiler" >&6; }
25032 # Is the header present?
25033 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25034 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25035 cat >conftest.$ac_ext <<_ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h. */
25041 #include <${with_readline}/readline.h>
25043 if { (ac_try="$ac_cpp conftest.$ac_ext"
25044 case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25051 grep -v '^ *+' conftest.er1 >conftest.err
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } >/dev/null && {
25056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25057 test ! -s conftest.err
25059 ac_header_preproc=yes
25061 echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25064 ac_header_preproc=no
25067 rm -f conftest.err conftest.$ac_ext
25068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25069 echo "${ECHO_T}$ac_header_preproc" >&6; }
25071 # So? What about this header?
25072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25074 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25075 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25077 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25078 ac_header_preproc=yes
25081 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25082 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25083 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25084 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25085 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25086 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25087 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25088 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25089 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25090 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25091 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25092 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25096 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25097 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 eval "$as_ac_Header=\$ac_header_preproc"
25103 ac_res=`eval echo '${'$as_ac_Header'}'`
25104 { echo "$as_me:$LINENO: result: $ac_res" >&5
25105 echo "${ECHO_T}$ac_res" >&6; }
25108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25111 cat >>confdefs.h <<\_ACEOF
25112 #define HAVE_READLINE 1
25115 CONS_LIBS="-lreadline -lhistory -ltermcap"
25121 echo "readline.h not found. readline turned off ..."
25133 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25134 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25135 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25136 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25137 echo $ECHO_N "(cached) $ECHO_C" >&6
25139 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25140 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25142 # Is the header compilable?
25143 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25144 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25145 cat >conftest.$ac_ext <<_ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25151 $ac_includes_default
25152 #include </usr/include/readline/readline.h>
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158 *) ac_try_echo=$ac_try;;
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161 (eval "$ac_compile") 2>conftest.er1
25163 grep -v '^ *+' conftest.er1 >conftest.err
25165 cat conftest.err >&5
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); } && {
25168 test -z "$ac_c_werror_flag" ||
25169 test ! -s conftest.err
25170 } && test -s conftest.$ac_objext; then
25171 ac_header_compiler=yes
25173 echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25176 ac_header_compiler=no
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25181 echo "${ECHO_T}$ac_header_compiler" >&6; }
25183 # Is the header present?
25184 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25185 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25186 cat >conftest.$ac_ext <<_ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 #include </usr/include/readline/readline.h>
25194 if { (ac_try="$ac_cpp conftest.$ac_ext"
25195 case "(($ac_try" in
25196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197 *) ac_try_echo=$ac_try;;
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25202 grep -v '^ *+' conftest.er1 >conftest.err
25204 cat conftest.err >&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } >/dev/null && {
25207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25208 test ! -s conftest.err
25210 ac_header_preproc=yes
25212 echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25215 ac_header_preproc=no
25218 rm -f conftest.err conftest.$ac_ext
25219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25220 echo "${ECHO_T}$ac_header_preproc" >&6; }
25222 # So? What about this header?
25223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25225 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25226 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25227 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25228 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25229 ac_header_preproc=yes
25232 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25233 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25234 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25235 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25236 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25237 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25238 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25239 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25241 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25243 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25247 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25248 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25249 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25254 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25255 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25258 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25261 cat >>confdefs.h <<\_ACEOF
25262 #define HAVE_READLINE 1
25266 CONS_INC="-I/usr/include/readline"
25267 CONS_LIBS="-lreadline -ltermcap"
25271 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25273 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25274 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25278 ac_res=`eval echo '${'$as_ac_Header'}'`
25279 { echo "$as_me:$LINENO: result: $ac_res" >&5
25280 echo "${ECHO_T}$ac_res" >&6; }
25282 # Is the header compilable?
25283 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25284 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25285 cat >conftest.$ac_ext <<_ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h. */
25291 $ac_includes_default
25292 #include <${TOP_DIR}/depkgs/readline/readline.h>
25294 rm -f conftest.$ac_objext
25295 if { (ac_try="$ac_compile"
25296 case "(($ac_try" in
25297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298 *) ac_try_echo=$ac_try;;
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301 (eval "$ac_compile") 2>conftest.er1
25303 grep -v '^ *+' conftest.er1 >conftest.err
25305 cat conftest.err >&5
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } && {
25308 test -z "$ac_c_werror_flag" ||
25309 test ! -s conftest.err
25310 } && test -s conftest.$ac_objext; then
25311 ac_header_compiler=yes
25313 echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25316 ac_header_compiler=no
25319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25321 echo "${ECHO_T}$ac_header_compiler" >&6; }
25323 # Is the header present?
25324 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25325 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25326 cat >conftest.$ac_ext <<_ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 #include <${TOP_DIR}/depkgs/readline/readline.h>
25334 if { (ac_try="$ac_cpp conftest.$ac_ext"
25335 case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25342 grep -v '^ *+' conftest.er1 >conftest.err
25344 cat conftest.err >&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); } >/dev/null && {
25347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25348 test ! -s conftest.err
25350 ac_header_preproc=yes
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25355 ac_header_preproc=no
25358 rm -f conftest.err conftest.$ac_ext
25359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25360 echo "${ECHO_T}$ac_header_preproc" >&6; }
25362 # So? What about this header?
25363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25365 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25369 ac_header_preproc=yes
25372 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25373 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25374 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25375 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25376 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25377 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25378 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25379 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25381 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25383 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25387 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25388 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25392 eval "$as_ac_Header=\$ac_header_preproc"
25394 ac_res=`eval echo '${'$as_ac_Header'}'`
25395 { echo "$as_me:$LINENO: result: $ac_res" >&5
25396 echo "${ECHO_T}$ac_res" >&6; }
25399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25402 cat >>confdefs.h <<\_ACEOF
25403 #define HAVE_READLINE 1
25407 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25408 CONS_LIBS="-lreadline -lhistory -ltermcap"
25409 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25410 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25415 echo "readline.h not found. readline turned off ..."
25442 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25443 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25444 if test "${ac_cv_header_stat_broken+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h. */
25453 #include <sys/types.h>
25454 #include <sys/stat.h>
25456 #if defined S_ISBLK && defined S_IFDIR
25457 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25460 #if defined S_ISBLK && defined S_IFCHR
25461 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25464 #if defined S_ISLNK && defined S_IFREG
25465 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25468 #if defined S_ISSOCK && defined S_IFREG
25469 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25473 rm -f conftest.$ac_objext
25474 if { (ac_try="$ac_compile"
25475 case "(($ac_try" in
25476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25477 *) ac_try_echo=$ac_try;;
25479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25480 (eval "$ac_compile") 2>conftest.er1
25482 grep -v '^ *+' conftest.er1 >conftest.err
25484 cat conftest.err >&5
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); } && {
25487 test -z "$ac_c_werror_flag" ||
25488 test ! -s conftest.err
25489 } && test -s conftest.$ac_objext; then
25490 ac_cv_header_stat_broken=no
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 ac_cv_header_stat_broken=yes
25498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25500 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25501 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25502 if test $ac_cv_header_stat_broken = yes; then
25504 cat >>confdefs.h <<\_ACEOF
25505 #define STAT_MACROS_BROKEN 1
25515 ac_header_dirent=no
25516 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25517 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25518 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25519 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25521 echo $ECHO_N "(cached) $ECHO_C" >&6
25523 cat >conftest.$ac_ext <<_ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h. */
25529 #include <sys/types.h>
25541 rm -f conftest.$ac_objext
25542 if { (ac_try="$ac_compile"
25543 case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_compile") 2>conftest.er1
25550 grep -v '^ *+' conftest.er1 >conftest.err
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } && {
25555 test -z "$ac_c_werror_flag" ||
25556 test ! -s conftest.err
25557 } && test -s conftest.$ac_objext; then
25558 eval "$as_ac_Header=yes"
25560 echo "$as_me: failed program was:" >&5
25561 sed 's/^/| /' conftest.$ac_ext >&5
25563 eval "$as_ac_Header=no"
25566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25568 ac_res=`eval echo '${'$as_ac_Header'}'`
25569 { echo "$as_me:$LINENO: result: $ac_res" >&5
25570 echo "${ECHO_T}$ac_res" >&6; }
25571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25572 cat >>confdefs.h <<_ACEOF
25573 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25576 ac_header_dirent=$ac_hdr; break
25580 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25581 if test $ac_header_dirent = dirent.h; then
25582 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25583 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25584 if test "${ac_cv_search_opendir+set}" = set; then
25585 echo $ECHO_N "(cached) $ECHO_C" >&6
25587 ac_func_search_save_LIBS=$LIBS
25588 cat >conftest.$ac_ext <<_ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h. */
25595 /* Override any GCC internal prototype to avoid an error.
25596 Use char because int might match the return type of a GCC
25597 builtin and then its argument prototype would still apply. */
25610 for ac_lib in '' dir; do
25611 if test -z "$ac_lib"; then
25612 ac_res="none required"
25615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25617 rm -f conftest.$ac_objext conftest$ac_exeext
25618 if { (ac_try="$ac_link"
25619 case "(($ac_try" in
25620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621 *) ac_try_echo=$ac_try;;
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624 (eval "$ac_link") 2>conftest.er1
25626 grep -v '^ *+' conftest.er1 >conftest.err
25628 cat conftest.err >&5
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); } && {
25631 test -z "$ac_c_werror_flag" ||
25632 test ! -s conftest.err
25633 } && test -s conftest$ac_exeext &&
25634 $as_test_x conftest$ac_exeext; then
25635 ac_cv_search_opendir=$ac_res
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25645 if test "${ac_cv_search_opendir+set}" = set; then
25649 if test "${ac_cv_search_opendir+set}" = set; then
25652 ac_cv_search_opendir=no
25654 rm conftest.$ac_ext
25655 LIBS=$ac_func_search_save_LIBS
25657 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25658 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25659 ac_res=$ac_cv_search_opendir
25660 if test "$ac_res" != no; then
25661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25666 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25667 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25668 if test "${ac_cv_search_opendir+set}" = set; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25671 ac_func_search_save_LIBS=$LIBS
25672 cat >conftest.$ac_ext <<_ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h. */
25679 /* Override any GCC internal prototype to avoid an error.
25680 Use char because int might match the return type of a GCC
25681 builtin and then its argument prototype would still apply. */
25694 for ac_lib in '' x; do
25695 if test -z "$ac_lib"; then
25696 ac_res="none required"
25699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25701 rm -f conftest.$ac_objext conftest$ac_exeext
25702 if { (ac_try="$ac_link"
25703 case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25708 (eval "$ac_link") 2>conftest.er1
25710 grep -v '^ *+' conftest.er1 >conftest.err
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } && {
25715 test -z "$ac_c_werror_flag" ||
25716 test ! -s conftest.err
25717 } && test -s conftest$ac_exeext &&
25718 $as_test_x conftest$ac_exeext; then
25719 ac_cv_search_opendir=$ac_res
25721 echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25729 if test "${ac_cv_search_opendir+set}" = set; then
25733 if test "${ac_cv_search_opendir+set}" = set; then
25736 ac_cv_search_opendir=no
25738 rm conftest.$ac_ext
25739 LIBS=$ac_func_search_save_LIBS
25741 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25742 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25743 ac_res=$ac_cv_search_opendir
25744 if test "$ac_res" != no; then
25745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25758 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25764 echo $ECHO_N "(cached) $ECHO_C" >&6
25766 cat >conftest.$ac_ext <<_ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h. */
25772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25774 #define $ac_func innocuous_$ac_func
25776 /* System header to define __stub macros and hopefully few prototypes,
25777 which can conflict with char $ac_func (); below.
25778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25779 <limits.h> exists even on freestanding compilers. */
25782 # include <limits.h>
25784 # include <assert.h>
25789 /* Override any GCC internal prototype to avoid an error.
25790 Use char because int might match the return type of a GCC
25791 builtin and then its argument prototype would still apply. */
25796 /* The GNU C library defines this for functions which it implements
25797 to always fail with ENOSYS. Some functions are actually named
25798 something starting with __ and the normal name is an alias. */
25799 #if defined __stub_$ac_func || defined __stub___$ac_func
25806 return $ac_func ();
25811 rm -f conftest.$ac_objext conftest$ac_exeext
25812 if { (ac_try="$ac_link"
25813 case "(($ac_try" in
25814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25815 *) ac_try_echo=$ac_try;;
25817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25818 (eval "$ac_link") 2>conftest.er1
25820 grep -v '^ *+' conftest.er1 >conftest.err
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } && {
25825 test -z "$ac_c_werror_flag" ||
25826 test ! -s conftest.err
25827 } && test -s conftest$ac_exeext &&
25828 $as_test_x conftest$ac_exeext; then
25829 eval "$as_ac_var=yes"
25831 echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25834 eval "$as_ac_var=no"
25837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25838 conftest$ac_exeext conftest.$ac_ext
25840 ac_res=`eval echo '${'$as_ac_var'}'`
25841 { echo "$as_me:$LINENO: result: $ac_res" >&5
25842 echo "${ECHO_T}$ac_res" >&6; }
25843 if test `eval echo '${'$as_ac_var'}'` = yes; then
25844 cat >>confdefs.h <<_ACEOF
25845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25853 for ac_func in nanosleep nl_langinfo
25855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25859 echo $ECHO_N "(cached) $ECHO_C" >&6
25861 cat >conftest.$ac_ext <<_ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h. */
25867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25869 #define $ac_func innocuous_$ac_func
25871 /* System header to define __stub macros and hopefully few prototypes,
25872 which can conflict with char $ac_func (); below.
25873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25874 <limits.h> exists even on freestanding compilers. */
25877 # include <limits.h>
25879 # include <assert.h>
25884 /* Override any GCC internal prototype to avoid an error.
25885 Use char because int might match the return type of a GCC
25886 builtin and then its argument prototype would still apply. */
25891 /* The GNU C library defines this for functions which it implements
25892 to always fail with ENOSYS. Some functions are actually named
25893 something starting with __ and the normal name is an alias. */
25894 #if defined __stub_$ac_func || defined __stub___$ac_func
25901 return $ac_func ();
25906 rm -f conftest.$ac_objext conftest$ac_exeext
25907 if { (ac_try="$ac_link"
25908 case "(($ac_try" in
25909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910 *) ac_try_echo=$ac_try;;
25912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25913 (eval "$ac_link") 2>conftest.er1
25915 grep -v '^ *+' conftest.er1 >conftest.err
25917 cat conftest.err >&5
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } && {
25920 test -z "$ac_c_werror_flag" ||
25921 test ! -s conftest.err
25922 } && test -s conftest$ac_exeext &&
25923 $as_test_x conftest$ac_exeext; then
25924 eval "$as_ac_var=yes"
25926 echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25929 eval "$as_ac_var=no"
25932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25933 conftest$ac_exeext conftest.$ac_ext
25935 ac_res=`eval echo '${'$as_ac_var'}'`
25936 { echo "$as_me:$LINENO: result: $ac_res" >&5
25937 echo "${ECHO_T}$ac_res" >&6; }
25938 if test `eval echo '${'$as_ac_var'}'` = yes; then
25939 cat >>confdefs.h <<_ACEOF
25940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25947 for ac_header in varargs.h
25949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25954 echo $ECHO_N "(cached) $ECHO_C" >&6
25956 ac_res=`eval echo '${'$as_ac_Header'}'`
25957 { echo "$as_me:$LINENO: result: $ac_res" >&5
25958 echo "${ECHO_T}$ac_res" >&6; }
25960 # Is the header compilable?
25961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25963 cat >conftest.$ac_ext <<_ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h. */
25969 $ac_includes_default
25970 #include <$ac_header>
25972 rm -f conftest.$ac_objext
25973 if { (ac_try="$ac_compile"
25974 case "(($ac_try" in
25975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976 *) ac_try_echo=$ac_try;;
25978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979 (eval "$ac_compile") 2>conftest.er1
25981 grep -v '^ *+' conftest.er1 >conftest.err
25983 cat conftest.err >&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); } && {
25986 test -z "$ac_c_werror_flag" ||
25987 test ! -s conftest.err
25988 } && test -s conftest.$ac_objext; then
25989 ac_header_compiler=yes
25991 echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25994 ac_header_compiler=no
25997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25999 echo "${ECHO_T}$ac_header_compiler" >&6; }
26001 # Is the header present?
26002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26010 #include <$ac_header>
26012 if { (ac_try="$ac_cpp conftest.$ac_ext"
26013 case "(($ac_try" in
26014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26015 *) ac_try_echo=$ac_try;;
26017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26020 grep -v '^ *+' conftest.er1 >conftest.err
26022 cat conftest.err >&5
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); } >/dev/null && {
26025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26026 test ! -s conftest.err
26028 ac_header_preproc=yes
26030 echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26033 ac_header_preproc=no
26036 rm -f conftest.err conftest.$ac_ext
26037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26038 echo "${ECHO_T}$ac_header_preproc" >&6; }
26040 # So? What about this header?
26041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26047 ac_header_preproc=yes
26050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26068 echo $ECHO_N "(cached) $ECHO_C" >&6
26070 eval "$as_ac_Header=\$ac_header_preproc"
26072 ac_res=`eval echo '${'$as_ac_Header'}'`
26073 { echo "$as_me:$LINENO: result: $ac_res" >&5
26074 echo "${ECHO_T}$ac_res" >&6; }
26077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26078 cat >>confdefs.h <<_ACEOF
26079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26088 { echo "$as_me:$LINENO: checking for Python support" >&5
26089 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26091 # Check whether --with-python was given.
26092 if test "${with_python+set}" = set; then
26093 withval=$with_python;
26096 if test "$withval" != "no"; then
26097 if test "$withval" = "yes"; then
26098 for python_root in /usr /usr/local /usr/sfw; do
26099 for ver in python2.2 python2.3 python2.4 python2.5; do
26100 if test -f $python_root/include/${ver}/Python.h; then
26101 PYTHON_INCDIR=-I$python_root/include/${ver}
26102 if test -d $python_root/lib64/${ver}/config; then
26103 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26105 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26112 if test x$PYTHON_INCDIR = x; then
26113 if test -f $prefix/include/Python.h; then
26114 PYTHON_INCDIR=-I$prefix/include
26115 if test -d $prefix/lib64/config; then
26116 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26118 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26121 { echo "$as_me:$LINENO: result: no" >&5
26122 echo "${ECHO_T}no" >&6; }
26123 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26124 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26125 { (exit 1); exit 1; }; }
26129 if test -f $withval/Python.h; then
26130 PYTHON_INCDIR=-I$withval
26131 PYTHON_LIBS="-L$withval/config -lpython"
26132 elif test -f $withval/include/Python.h; then
26133 PYTHON_INCDIR=-I$withval/include
26134 if test -d $withval/lib64/config; then
26135 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26137 PYTHON_LIBS="-L$withval/lib/config -lpython"
26139 elif test -f $withval/include/python/Python.h; then
26140 PYTHON_INCDIR=-I$withval/include/python
26141 if test -d $withval/lib64/python/config; then
26142 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26144 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26147 { echo "$as_me:$LINENO: result: no" >&5
26148 echo "${ECHO_T}no" >&6; }
26149 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26150 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26151 { (exit 1); exit 1; }; }
26155 cat >>confdefs.h <<\_ACEOF
26156 #define HAVE_PYTHON 1
26159 { echo "$as_me:$LINENO: result: yes" >&5
26160 echo "${ECHO_T}yes" >&6; }
26162 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26163 echo "$as_me: checking for more Python libs" >&6;}
26164 saved_LIBS="$LIBS"; LIBS=
26165 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26166 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26167 if test "${ac_cv_search_shm_open+set}" = set; then
26168 echo $ECHO_N "(cached) $ECHO_C" >&6
26170 ac_func_search_save_LIBS=$LIBS
26171 cat >conftest.$ac_ext <<_ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h. */
26178 /* Override any GCC internal prototype to avoid an error.
26179 Use char because int might match the return type of a GCC
26180 builtin and then its argument prototype would still apply. */
26188 return shm_open ();
26193 for ac_lib in '' rt; do
26194 if test -z "$ac_lib"; then
26195 ac_res="none required"
26198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26200 rm -f conftest.$ac_objext conftest$ac_exeext
26201 if { (ac_try="$ac_link"
26202 case "(($ac_try" in
26203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204 *) ac_try_echo=$ac_try;;
26206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26207 (eval "$ac_link") 2>conftest.er1
26209 grep -v '^ *+' conftest.er1 >conftest.err
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } && {
26214 test -z "$ac_c_werror_flag" ||
26215 test ! -s conftest.err
26216 } && test -s conftest$ac_exeext &&
26217 $as_test_x conftest$ac_exeext; then
26218 ac_cv_search_shm_open=$ac_res
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26228 if test "${ac_cv_search_shm_open+set}" = set; then
26232 if test "${ac_cv_search_shm_open+set}" = set; then
26235 ac_cv_search_shm_open=no
26237 rm conftest.$ac_ext
26238 LIBS=$ac_func_search_save_LIBS
26240 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26241 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26242 ac_res=$ac_cv_search_shm_open
26243 if test "$ac_res" != no; then
26244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26249 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26250 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26251 if test "${ac_cv_lib_util_openpty+set}" = set; then
26252 echo $ECHO_N "(cached) $ECHO_C" >&6
26254 ac_check_lib_save_LIBS=$LIBS
26255 LIBS="-lutil $LIBS"
26256 cat >conftest.$ac_ext <<_ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h. */
26263 /* Override any GCC internal prototype to avoid an error.
26264 Use char because int might match the return type of a GCC
26265 builtin and then its argument prototype would still apply. */
26278 rm -f conftest.$ac_objext conftest$ac_exeext
26279 if { (ac_try="$ac_link"
26280 case "(($ac_try" in
26281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282 *) ac_try_echo=$ac_try;;
26284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26285 (eval "$ac_link") 2>conftest.er1
26287 grep -v '^ *+' conftest.er1 >conftest.err
26289 cat conftest.err >&5
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } && {
26292 test -z "$ac_c_werror_flag" ||
26293 test ! -s conftest.err
26294 } && test -s conftest$ac_exeext &&
26295 $as_test_x conftest$ac_exeext; then
26296 ac_cv_lib_util_openpty=yes
26298 echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26301 ac_cv_lib_util_openpty=no
26304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26305 conftest$ac_exeext conftest.$ac_ext
26306 LIBS=$ac_check_lib_save_LIBS
26308 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26309 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26310 if test $ac_cv_lib_util_openpty = yes; then
26311 cat >>confdefs.h <<_ACEOF
26312 #define HAVE_LIBUTIL 1
26315 LIBS="-lutil $LIBS"
26319 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26322 { echo "$as_me:$LINENO: result: no" >&5
26323 echo "${ECHO_T}no" >&6; }
26328 { echo "$as_me:$LINENO: result: no" >&5
26329 echo "${ECHO_T}no" >&6; }
26337 { echo "$as_me:$LINENO: checking for socket" >&5
26338 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26339 if test "${ac_cv_func_socket+set}" = set; then
26340 echo $ECHO_N "(cached) $ECHO_C" >&6
26342 cat >conftest.$ac_ext <<_ACEOF
26345 cat confdefs.h >>conftest.$ac_ext
26346 cat >>conftest.$ac_ext <<_ACEOF
26347 /* end confdefs.h. */
26348 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26350 #define socket innocuous_socket
26352 /* System header to define __stub macros and hopefully few prototypes,
26353 which can conflict with char socket (); below.
26354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26355 <limits.h> exists even on freestanding compilers. */
26358 # include <limits.h>
26360 # include <assert.h>
26365 /* Override any GCC internal prototype to avoid an error.
26366 Use char because int might match the return type of a GCC
26367 builtin and then its argument prototype would still apply. */
26372 /* The GNU C library defines this for functions which it implements
26373 to always fail with ENOSYS. Some functions are actually named
26374 something starting with __ and the normal name is an alias. */
26375 #if defined __stub_socket || defined __stub___socket
26387 rm -f conftest.$ac_objext conftest$ac_exeext
26388 if { (ac_try="$ac_link"
26389 case "(($ac_try" in
26390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391 *) ac_try_echo=$ac_try;;
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394 (eval "$ac_link") 2>conftest.er1
26396 grep -v '^ *+' conftest.er1 >conftest.err
26398 cat conftest.err >&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } && {
26401 test -z "$ac_c_werror_flag" ||
26402 test ! -s conftest.err
26403 } && test -s conftest$ac_exeext &&
26404 $as_test_x conftest$ac_exeext; then
26405 ac_cv_func_socket=yes
26407 echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26410 ac_cv_func_socket=no
26413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26414 conftest$ac_exeext conftest.$ac_ext
26416 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26417 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26418 if test $ac_cv_func_socket = yes; then
26419 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26420 echo "${ECHO_T}using libc's socket" >&6; }
26423 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26424 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26425 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
26428 ac_check_lib_save_LIBS=$LIBS
26429 LIBS="-lxnet $LIBS"
26430 cat >conftest.$ac_ext <<_ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h. */
26437 /* Override any GCC internal prototype to avoid an error.
26438 Use char because int might match the return type of a GCC
26439 builtin and then its argument prototype would still apply. */
26452 rm -f conftest.$ac_objext conftest$ac_exeext
26453 if { (ac_try="$ac_link"
26454 case "(($ac_try" in
26455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26456 *) ac_try_echo=$ac_try;;
26458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26459 (eval "$ac_link") 2>conftest.er1
26461 grep -v '^ *+' conftest.er1 >conftest.err
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } && {
26466 test -z "$ac_c_werror_flag" ||
26467 test ! -s conftest.err
26468 } && test -s conftest$ac_exeext &&
26469 $as_test_x conftest$ac_exeext; then
26470 ac_cv_lib_xnet_socket=yes
26472 echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26475 ac_cv_lib_xnet_socket=no
26478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26479 conftest$ac_exeext conftest.$ac_ext
26480 LIBS=$ac_check_lib_save_LIBS
26482 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26483 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26484 if test $ac_cv_lib_xnet_socket = yes; then
26485 cat >>confdefs.h <<_ACEOF
26486 #define HAVE_LIBXNET 1
26489 LIBS="-lxnet $LIBS"
26494 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26495 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26496 if test "${ac_cv_lib_socket_socket+set}" = set; then
26497 echo $ECHO_N "(cached) $ECHO_C" >&6
26499 ac_check_lib_save_LIBS=$LIBS
26500 LIBS="-lsocket $LIBS"
26501 cat >conftest.$ac_ext <<_ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h. */
26508 /* Override any GCC internal prototype to avoid an error.
26509 Use char because int might match the return type of a GCC
26510 builtin and then its argument prototype would still apply. */
26523 rm -f conftest.$ac_objext conftest$ac_exeext
26524 if { (ac_try="$ac_link"
26525 case "(($ac_try" in
26526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26527 *) ac_try_echo=$ac_try;;
26529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26530 (eval "$ac_link") 2>conftest.er1
26532 grep -v '^ *+' conftest.er1 >conftest.err
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } && {
26537 test -z "$ac_c_werror_flag" ||
26538 test ! -s conftest.err
26539 } && test -s conftest$ac_exeext &&
26540 $as_test_x conftest$ac_exeext; then
26541 ac_cv_lib_socket_socket=yes
26543 echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26546 ac_cv_lib_socket_socket=no
26549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26550 conftest$ac_exeext conftest.$ac_ext
26551 LIBS=$ac_check_lib_save_LIBS
26553 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26554 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26555 if test $ac_cv_lib_socket_socket = yes; then
26556 cat >>confdefs.h <<_ACEOF
26557 #define HAVE_LIBSOCKET 1
26560 LIBS="-lsocket $LIBS"
26565 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26566 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26567 if test "${ac_cv_lib_inet_socket+set}" = set; then
26568 echo $ECHO_N "(cached) $ECHO_C" >&6
26570 ac_check_lib_save_LIBS=$LIBS
26571 LIBS="-linet $LIBS"
26572 cat >conftest.$ac_ext <<_ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h. */
26579 /* Override any GCC internal prototype to avoid an error.
26580 Use char because int might match the return type of a GCC
26581 builtin and then its argument prototype would still apply. */
26594 rm -f conftest.$ac_objext conftest$ac_exeext
26595 if { (ac_try="$ac_link"
26596 case "(($ac_try" in
26597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598 *) ac_try_echo=$ac_try;;
26600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26601 (eval "$ac_link") 2>conftest.er1
26603 grep -v '^ *+' conftest.er1 >conftest.err
26605 cat conftest.err >&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } && {
26608 test -z "$ac_c_werror_flag" ||
26609 test ! -s conftest.err
26610 } && test -s conftest$ac_exeext &&
26611 $as_test_x conftest$ac_exeext; then
26612 ac_cv_lib_inet_socket=yes
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ac_cv_lib_inet_socket=no
26620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26621 conftest$ac_exeext conftest.$ac_ext
26622 LIBS=$ac_check_lib_save_LIBS
26624 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26625 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26626 if test $ac_cv_lib_inet_socket = yes; then
26627 cat >>confdefs.h <<_ACEOF
26628 #define HAVE_LIBINET 1
26631 LIBS="-linet $LIBS"
26641 # Check whether --with-tcp-wrappers was given.
26642 if test "${with_tcp_wrappers+set}" = set; then
26643 withval=$with_tcp_wrappers;
26644 if test "x$withval" != "xno" ; then
26646 LIBS="$saved_LIBS -lwrap"
26647 { echo "$as_me:$LINENO: checking for libwrap" >&5
26648 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26649 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26650 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26651 if test "${ac_cv_search_nanosleep+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 ac_func_search_save_LIBS=$LIBS
26655 cat >conftest.$ac_ext <<_ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h. */
26662 /* Override any GCC internal prototype to avoid an error.
26663 Use char because int might match the return type of a GCC
26664 builtin and then its argument prototype would still apply. */
26672 return nanosleep ();
26677 for ac_lib in '' rt; do
26678 if test -z "$ac_lib"; then
26679 ac_res="none required"
26682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26684 rm -f conftest.$ac_objext conftest$ac_exeext
26685 if { (ac_try="$ac_link"
26686 case "(($ac_try" in
26687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26688 *) ac_try_echo=$ac_try;;
26690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26691 (eval "$ac_link") 2>conftest.er1
26693 grep -v '^ *+' conftest.er1 >conftest.err
26695 cat conftest.err >&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); } && {
26698 test -z "$ac_c_werror_flag" ||
26699 test ! -s conftest.err
26700 } && test -s conftest$ac_exeext &&
26701 $as_test_x conftest$ac_exeext; then
26702 ac_cv_search_nanosleep=$ac_res
26704 echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26712 if test "${ac_cv_search_nanosleep+set}" = set; then
26716 if test "${ac_cv_search_nanosleep+set}" = set; then
26719 ac_cv_search_nanosleep=no
26721 rm conftest.$ac_ext
26722 LIBS=$ac_func_search_save_LIBS
26724 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26725 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26726 ac_res=$ac_cv_search_nanosleep
26727 if test "$ac_res" != no; then
26728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26732 cat >conftest.$ac_ext <<_ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h. */
26739 #include <sys/types.h>
26741 int deny_severity = 0;
26742 int allow_severity = 0;
26743 struct request_info *req;
26755 rm -f conftest.$ac_objext conftest$ac_exeext
26756 if { (ac_try="$ac_link"
26757 case "(($ac_try" in
26758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26759 *) ac_try_echo=$ac_try;;
26761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26762 (eval "$ac_link") 2>conftest.er1
26764 grep -v '^ *+' conftest.er1 >conftest.err
26766 cat conftest.err >&5
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); } && {
26769 test -z "$ac_c_werror_flag" ||
26770 test ! -s conftest.err
26771 } && test -s conftest$ac_exeext &&
26772 $as_test_x conftest$ac_exeext; then
26774 { echo "$as_me:$LINENO: result: yes" >&5
26775 echo "${ECHO_T}yes" >&6; }
26777 cat >>confdefs.h <<\_ACEOF
26778 #define HAVE_LIBWRAP 1
26786 echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26790 LIBS="$saved_LIBS -lwrap -lnsl"
26791 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26792 cat >conftest.$ac_ext <<_ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h. */
26799 #include <sys/types.h>
26801 int deny_severity = 0;
26802 int allow_severity = 0;
26803 struct request_info *req;
26815 rm -f conftest.$ac_objext conftest$ac_exeext
26816 if { (ac_try="$ac_link"
26817 case "(($ac_try" in
26818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26819 *) ac_try_echo=$ac_try;;
26821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26822 (eval "$ac_link") 2>conftest.er1
26824 grep -v '^ *+' conftest.er1 >conftest.err
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } && {
26829 test -z "$ac_c_werror_flag" ||
26830 test ! -s conftest.err
26831 } && test -s conftest$ac_exeext &&
26832 $as_test_x conftest$ac_exeext; then
26834 { echo "$as_me:$LINENO: result: yes" >&5
26835 echo "${ECHO_T}yes" >&6; }
26837 cat >>confdefs.h <<\_ACEOF
26838 #define HAVE_LIBWRAP 1
26846 echo "$as_me: failed program was:" >&5
26847 sed 's/^/| /' conftest.$ac_ext >&5
26850 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26851 echo "$as_me: error: *** libwrap missing" >&2;}
26852 { (exit 1); exit 1; }; }
26857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26858 conftest$ac_exeext conftest.$ac_ext
26863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26864 conftest$ac_exeext conftest.$ac_ext
26871 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26872 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26874 # Check whether --with-openssl was given.
26875 if test "${with_openssl+set}" = set; then
26876 withval=$with_openssl;
26877 with_openssl_directory=${withval}
26883 if test "x$with_openssl_directory" != "xno"; then
26884 OPENSSL_LIBS="-lssl -lcrypto"
26887 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26889 # Make sure the $with_openssl_directory also makes sense
26891 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26892 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26893 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26897 saved_LIBS="${LIBS}"
26898 saved_CFLAGS="${CFLAGS}"
26899 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26900 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26902 cat >conftest.$ac_ext <<_ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h. */
26909 #include <openssl/ssl.h>
26915 CRYPTO_set_id_callback(NULL);
26921 rm -f conftest.$ac_objext conftest$ac_exeext
26922 if { (ac_try="$ac_link"
26923 case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_link") 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } && {
26935 test -z "$ac_c_werror_flag" ||
26936 test ! -s conftest.err
26937 } && test -s conftest$ac_exeext &&
26938 $as_test_x conftest$ac_exeext; then
26941 support_crypto="yes"
26944 echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26954 conftest$ac_exeext conftest.$ac_ext
26956 cat >conftest.$ac_ext <<_ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h. */
26963 #include <openssl/evp.h>
26975 rm -f conftest.$ac_objext conftest$ac_exeext
26976 if { (ac_try="$ac_link"
26977 case "(($ac_try" in
26978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979 *) ac_try_echo=$ac_try;;
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982 (eval "$ac_link") 2>conftest.er1
26984 grep -v '^ *+' conftest.er1 >conftest.err
26986 cat conftest.err >&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); } && {
26989 test -z "$ac_c_werror_flag" ||
26990 test ! -s conftest.err
26991 } && test -s conftest$ac_exeext &&
26992 $as_test_x conftest$ac_exeext; then
26994 ac_cv_openssl_sha2="yes"
26997 echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
27001 ac_cv_openssl_sha2="no"
27006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27007 conftest$ac_exeext conftest.$ac_ext
27009 cat >conftest.$ac_ext <<_ACEOF
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h. */
27016 #include <openssl/evp.h>
27028 rm -f conftest.$ac_objext conftest$ac_exeext
27029 if { (ac_try="$ac_link"
27030 case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_link") 2>conftest.er1
27037 grep -v '^ *+' conftest.er1 >conftest.err
27039 cat conftest.err >&5
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } && {
27042 test -z "$ac_c_werror_flag" ||
27043 test ! -s conftest.err
27044 } && test -s conftest$ac_exeext &&
27045 $as_test_x conftest$ac_exeext; then
27047 ac_cv_openssl_export="no"
27050 echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27054 ac_cv_openssl_export="yes"
27059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27060 conftest$ac_exeext conftest.$ac_ext
27062 LIBS="${saved_LIBS}"
27063 CFLAGS="${saved_CFLAGS}"
27065 if test "$support_tls" = "yes"; then
27067 cat >>confdefs.h <<\_ACEOF
27068 #define HAVE_OPENSSL 1
27072 cat >>confdefs.h <<\_ACEOF
27077 cat >>confdefs.h <<\_ACEOF
27078 #define HAVE_CRYPTO 1
27083 if test "$ac_cv_openssl_sha2" = "yes"; then
27085 cat >>confdefs.h <<\_ACEOF
27086 #define HAVE_SHA2 1
27091 if test "$ac_cv_openssl_export" = "yes"; then
27093 cat >>confdefs.h <<\_ACEOF
27094 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27100 support_crypto="no"
27105 { echo "$as_me:$LINENO: result: $support_tls" >&5
27106 echo "${ECHO_T}$support_tls" >&6; }
27110 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27111 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27112 if test "${ac_cv_search_dlopen+set}" = set; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27115 ac_func_search_save_LIBS=$LIBS
27116 cat >conftest.$ac_ext <<_ACEOF
27119 cat confdefs.h >>conftest.$ac_ext
27120 cat >>conftest.$ac_ext <<_ACEOF
27121 /* end confdefs.h. */
27123 /* Override any GCC internal prototype to avoid an error.
27124 Use char because int might match the return type of a GCC
27125 builtin and then its argument prototype would still apply. */
27138 for ac_lib in '' dl; do
27139 if test -z "$ac_lib"; then
27140 ac_res="none required"
27143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27145 rm -f conftest.$ac_objext conftest$ac_exeext
27146 if { (ac_try="$ac_link"
27147 case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_link") 2>conftest.er1
27154 grep -v '^ *+' conftest.er1 >conftest.err
27156 cat conftest.err >&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } && {
27159 test -z "$ac_c_werror_flag" ||
27160 test ! -s conftest.err
27161 } && test -s conftest$ac_exeext &&
27162 $as_test_x conftest$ac_exeext; then
27163 ac_cv_search_dlopen=$ac_res
27165 echo "$as_me: failed program was:" >&5
27166 sed 's/^/| /' conftest.$ac_ext >&5
27171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27173 if test "${ac_cv_search_dlopen+set}" = set; then
27177 if test "${ac_cv_search_dlopen+set}" = set; then
27180 ac_cv_search_dlopen=no
27182 rm conftest.$ac_ext
27183 LIBS=$ac_func_search_save_LIBS
27185 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27186 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27187 ac_res=$ac_cv_search_dlopen
27188 if test "$ac_res" != no; then
27189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27194 working_dir=`eval echo ${prefix}/var/bacula/working`
27196 # Check whether --with-working-dir was given.
27197 if test "${with_working_dir+set}" = set; then
27198 withval=$with_working_dir;
27199 if test "x$withval" != "xno" ; then
27200 working_dir=$withval
27211 # Check whether --with-archivedir was given.
27212 if test "${with_archivedir+set}" = set; then
27213 withval=$with_archivedir;
27214 if test "x$withval" != "xno" ; then
27215 archivedir=$withval
27224 scriptdir=`eval echo ${sysconfdir}`
27226 # Check whether --with-scriptdir was given.
27227 if test "${with_scriptdir+set}" = set; then
27228 withval=$with_scriptdir;
27229 if test "x$withval" != "xno" ; then
27239 # ------------------------------------------
27240 # Where to place plugindir (script files)
27241 # ------------------------------------------
27242 plugindir=`eval echo ${sysconfdir}`
27244 # Check whether --with-plugindir was given.
27245 if test "${with_plugindir+set}" = set; then
27246 withval=$with_plugindir;
27247 if test "x$withval" != "xno" ; then
27257 dump_email=root@localhost
27259 # Check whether --with-dump-email was given.
27260 if test "${with_dump_email+set}" = set; then
27261 withval=$with_dump_email;
27262 if test "x$withval" != "xno" ; then
27263 dump_email=$withval
27272 job_email=root@localhost
27274 # Check whether --with-job-email was given.
27275 if test "${with_job_email+set}" = set; then
27276 withval=$with_job_email;
27277 if test "x$withval" != "xno" ; then
27287 smtp_host=localhost
27289 # Check whether --with-smtp_host was given.
27290 if test "${with_smtp_host+set}" = set; then
27291 withval=$with_smtp_host;
27292 if test "x$withval" != "xno" ; then
27304 # Check whether --with-pid-dir was given.
27305 if test "${with_pid_dir+set}" = set; then
27306 withval=$with_pid_dir;
27307 if test "x$withval" != "xno" ; then
27315 cat >>confdefs.h <<_ACEOF
27316 #define _PATH_BACULA_PIDDIR "$piddir"
27321 subsysdir=/var/run/subsys
27322 if test -d /var/run/subsys; then
27323 subsysdir=/var/run/subsys
27324 elif test -d /var/lock/subsys; then
27325 subsysdir=/var/lock/subsys
27327 subsysdir=/var/run/subsys
27330 # Check whether --with-subsys-dir was given.
27331 if test "${with_subsys_dir+set}" = set; then
27332 withval=$with_subsys_dir;
27333 if test "x$withval" != "xno" ; then
27345 # Check whether --with-baseport was given.
27346 if test "${with_baseport+set}" = set; then
27347 withval=$with_baseport;
27348 if test "x$withval" != "xno" ; then
27357 dir_port=`expr $baseport`
27358 fd_port=`expr $baseport + 1`
27359 sd_port=`expr $fd_port + 1`
27367 # Check whether --with-dir-password was given.
27368 if test "${with_dir_password+set}" = set; then
27369 withval=$with_dir_password;
27370 if test "x$withval" != "xno" ; then
27371 dir_password=$withval
27378 if test "x$dir_password" = "x" ; then
27379 if test "x$OPENSSL" = "xnone" ; then
27380 key=`autoconf/randpass 33`
27382 key=`openssl rand -base64 33`
27389 # Check whether --with-fd-password was given.
27390 if test "${with_fd_password+set}" = set; then
27391 withval=$with_fd_password;
27392 if test "x$withval" != "xno" ; then
27393 fd_password=$withval
27400 if test "x$fd_password" = "x" ; then
27401 if test "x$OPENSSL" = "xnone" ; then
27402 key=`autoconf/randpass 37`
27404 key=`openssl rand -base64 33`
27411 # Check whether --with-sd-password was given.
27412 if test "${with_sd_password+set}" = set; then
27413 withval=$with_sd_password;
27414 if test "x$withval" != "xno" ; then
27415 sd_password=$withval
27422 if test "x$sd_password" = "x" ; then
27423 if test "x$OPENSSL" = "xnone" ; then
27424 key=`autoconf/randpass 41`
27426 key=`openssl rand -base64 33`
27433 # Check whether --with-mon-dir-password was given.
27434 if test "${with_mon_dir_password+set}" = set; then
27435 withval=$with_mon_dir_password;
27436 if test "x$withval" != "xno" ; then
27437 mon_dir_password=$withval
27444 if test "x$mon_dir_password" = "x" ; then
27445 if test "x$OPENSSL" = "xnone" ; then
27446 key=`autoconf/randpass 33`
27448 key=`openssl rand -base64 33`
27450 mon_dir_password=$key
27455 # Check whether --with-mon-fd-password was given.
27456 if test "${with_mon_fd_password+set}" = set; then
27457 withval=$with_mon_fd_password;
27458 if test "x$withval" != "xno" ; then
27459 mon_fd_password=$withval
27466 if test "x$mon_fd_password" = "x" ; then
27467 if test "x$OPENSSL" = "xnone" ; then
27468 key=`autoconf/randpass 37`
27470 key=`openssl rand -base64 33`
27472 mon_fd_password=$key
27477 # Check whether --with-mon-sd-password was given.
27478 if test "${with_mon_sd_password+set}" = set; then
27479 withval=$with_mon_sd_password;
27480 if test "x$withval" != "xno" ; then
27481 mon_sd_password=$withval
27488 if test "x$mon_sd_password" = "x" ; then
27489 if test "x$OPENSSL" = "xnone" ; then
27490 key=`autoconf/randpass 41`
27492 key=`openssl rand -base64 33`
27494 mon_sd_password=$key
27506 # Check whether --with-db_name was given.
27507 if test "${with_db_name+set}" = set; then
27508 withval=$with_db_name;
27509 if test "x$withval" != "x" ; then
27520 # Check whether --with-db_user was given.
27521 if test "${with_db_user+set}" = set; then
27522 withval=$with_db_user;
27523 if test "x$withval" != "x" ; then
27534 # Check whether --with-db_password was given.
27535 if test "${with_db_password+set}" = set; then
27536 withval=$with_db_password;
27537 if test "x$withval" != "x" ; then
27538 db_password=$withval
27548 # Check whether --with-db_port was given.
27549 if test "${with_db_port+set}" = set; then
27550 withval=$with_db_port;
27551 if test "x$withval" != "x" ; then
27561 # Handle users and groups for each daemon
27565 # Check whether --with-dir_user was given.
27566 if test "${with_dir_user+set}" = set; then
27567 withval=$with_dir_user;
27568 if test "x$withval" != "x" ; then
27578 # Check whether --with-dir_group was given.
27579 if test "${with_dir_group+set}" = set; then
27580 withval=$with_dir_group;
27581 if test "x$withval" != "x" ; then
27591 # Check whether --with-sd_user was given.
27592 if test "${with_sd_user+set}" = set; then
27593 withval=$with_sd_user;
27594 if test "x$withval" != "x" ; then
27604 # Check whether --with-sd_group was given.
27605 if test "${with_sd_group+set}" = set; then
27606 withval=$with_sd_group;
27607 if test "x$withval" != "x" ; then
27617 # Check whether --with-fd_user was given.
27618 if test "${with_fd_user+set}" = set; then
27619 withval=$with_fd_user;
27620 if test "x$withval" != "x" ; then
27630 # Check whether --with-fd_group was given.
27631 if test "${with_fd_group+set}" = set; then
27632 withval=$with_fd_group;
27633 if test "x$withval" != "x" ; then
27650 # Check whether --with-sbin-perm was given.
27651 if test "${with_sbin_perm+set}" = set; then
27652 withval=$with_sbin_perm;
27653 if test "x$withval" != "x" ; then
27666 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27667 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27669 # Check whether --with-postgresql was given.
27670 if test "${with_postgresql+set}" = set; then
27671 withval=$with_postgresql;
27672 if test "$withval" != "no"; then
27673 if test "$db_found" = "yes"; then
27674 { echo "$as_me:$LINENO: result: error" >&5
27675 echo "${ECHO_T}error" >&6; }
27676 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27677 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27678 { (exit 1); exit 1; }; };
27680 if test "$withval" = "yes"; then
27681 PG_CONFIG=`which pg_config`
27682 if test -n "$PG_CONFIG";then
27683 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27684 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27685 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27686 elif test -f /usr/local/include/libpq-fe.h; then
27687 POSTGRESQL_INCDIR=/usr/local/include
27688 if test -d /usr/local/lib64; then
27689 POSTGRESQL_LIBDIR=/usr/local/lib64
27691 POSTGRESQL_LIBDIR=/usr/local/lib
27693 POSTGRESQL_BINDIR=/usr/local/bin
27694 elif test -f /usr/include/libpq-fe.h; then
27695 POSTGRESQL_INCDIR=/usr/include
27696 if test -d /usr/lib64; then
27697 POSTGRESQL_LIBDIR=/usr/lib64
27699 POSTGRESQL_LIBDIR=/usr/lib
27701 POSTGRESQL_BINDIR=/usr/bin
27702 elif test -f /usr/include/pgsql/libpq-fe.h; then
27703 POSTGRESQL_INCDIR=/usr/include/pgsql
27704 if test -d /usr/lib64/pgsql; then
27705 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27707 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27709 POSTGRESQL_BINDIR=/usr/bin
27710 elif test -f /usr/include/postgresql/libpq-fe.h; then
27711 POSTGRESQL_INCDIR=/usr/include/postgresql
27712 if test -d /usr/lib64/postgresql; then
27713 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27715 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27717 POSTGRESQL_BINDIR=/usr/bin
27719 { echo "$as_me:$LINENO: result: no" >&5
27720 echo "${ECHO_T}no" >&6; }
27721 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27722 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27723 { (exit 1); exit 1; }; }
27725 elif test -f $withval/include/libpq-fe.h; then
27726 POSTGRESQL_INCDIR=$withval/include
27727 POSTGRESQL_LIBDIR=$withval/lib
27728 POSTGRESQL_BINDIR=$withval/bin
27729 elif test -f $withval/include/postgresql/libpq-fe.h; then
27730 POSTGRESQL_INCDIR=$withval/include/postgresql
27731 if test -d $withval/lib64; then
27732 POSTGRESQL_LIBDIR=$withval/lib64
27734 POSTGRESQL_LIBDIR=$withval/lib
27736 POSTGRESQL_BINDIR=$withval/bin
27738 { echo "$as_me:$LINENO: result: no" >&5
27739 echo "${ECHO_T}no" >&6; }
27740 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27741 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27742 { (exit 1); exit 1; }; }
27744 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27745 { echo "$as_me:$LINENO: checking for crypt" >&5
27746 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27747 if test "${ac_cv_func_crypt+set}" = set; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27750 cat >conftest.$ac_ext <<_ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h. */
27756 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27758 #define crypt innocuous_crypt
27760 /* System header to define __stub macros and hopefully few prototypes,
27761 which can conflict with char crypt (); below.
27762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27763 <limits.h> exists even on freestanding compilers. */
27766 # include <limits.h>
27768 # include <assert.h>
27773 /* Override any GCC internal prototype to avoid an error.
27774 Use char because int might match the return type of a GCC
27775 builtin and then its argument prototype would still apply. */
27780 /* The GNU C library defines this for functions which it implements
27781 to always fail with ENOSYS. Some functions are actually named
27782 something starting with __ and the normal name is an alias. */
27783 #if defined __stub_crypt || defined __stub___crypt
27795 rm -f conftest.$ac_objext conftest$ac_exeext
27796 if { (ac_try="$ac_link"
27797 case "(($ac_try" in
27798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27799 *) ac_try_echo=$ac_try;;
27801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27802 (eval "$ac_link") 2>conftest.er1
27804 grep -v '^ *+' conftest.er1 >conftest.err
27806 cat conftest.err >&5
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } && {
27809 test -z "$ac_c_werror_flag" ||
27810 test ! -s conftest.err
27811 } && test -s conftest$ac_exeext &&
27812 $as_test_x conftest$ac_exeext; then
27813 ac_cv_func_crypt=yes
27815 echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27818 ac_cv_func_crypt=no
27821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27822 conftest$ac_exeext conftest.$ac_ext
27824 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27825 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27826 if test $ac_cv_func_crypt = yes; then
27829 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27830 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27831 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27832 echo $ECHO_N "(cached) $ECHO_C" >&6
27834 ac_check_lib_save_LIBS=$LIBS
27835 LIBS="-lcrypt $LIBS"
27836 cat >conftest.$ac_ext <<_ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h. */
27843 /* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
27858 rm -f conftest.$ac_objext conftest$ac_exeext
27859 if { (ac_try="$ac_link"
27860 case "(($ac_try" in
27861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865 (eval "$ac_link") 2>conftest.er1
27867 grep -v '^ *+' conftest.er1 >conftest.err
27869 cat conftest.err >&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } && {
27872 test -z "$ac_c_werror_flag" ||
27873 test ! -s conftest.err
27874 } && test -s conftest$ac_exeext &&
27875 $as_test_x conftest$ac_exeext; then
27876 ac_cv_lib_crypt_crypt=yes
27878 echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.$ac_ext >&5
27881 ac_cv_lib_crypt_crypt=no
27884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27885 conftest$ac_exeext conftest.$ac_ext
27886 LIBS=$ac_check_lib_save_LIBS
27888 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27889 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27890 if test $ac_cv_lib_crypt_crypt = yes; then
27891 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27896 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27897 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27898 SQL_BINDIR=$POSTGRESQL_BINDIR
27899 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27901 cat >>confdefs.h <<\_ACEOF
27902 #define HAVE_POSTGRESQL 1
27905 { echo "$as_me:$LINENO: result: yes" >&5
27906 echo "${ECHO_T}yes" >&6; }
27908 support_postgresql=yes
27912 { echo "$as_me:$LINENO: result: no" >&5
27913 echo "${ECHO_T}no" >&6; }
27918 { echo "$as_me:$LINENO: result: no" >&5
27919 echo "${ECHO_T}no" >&6; }
27931 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27932 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27934 # Check whether --with-mysql was given.
27935 if test "${with_mysql+set}" = set; then
27936 withval=$with_mysql;
27937 if test "$withval" != "no"; then
27938 if test "$withval" = "yes"; then
27939 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27940 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27941 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27942 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27943 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27945 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27947 MYSQL_BINDIR=/usr/local/mysql/bin
27948 elif test -f /usr/include/mysql/mysql.h; then
27949 MYSQL_INCDIR=/usr/include/mysql
27950 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27951 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27952 MYSQL_LIBDIR=/usr/lib64/mysql
27953 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27954 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27955 MYSQL_LIBDIR=/usr/lib/mysql
27957 MYSQL_LIBDIR=/usr/lib
27959 MYSQL_BINDIR=/usr/bin
27960 elif test -f /usr/include/mysql.h; then
27961 MYSQL_INCDIR=/usr/include
27962 if test -f /usr/lib64/libmysqlclient_r.a \
27963 -o -f /usr/lib64/libmysqlclient_r.so; then
27964 MYSQL_LIBDIR=/usr/lib64
27966 MYSQL_LIBDIR=/usr/lib
27968 MYSQL_BINDIR=/usr/bin
27969 elif test -f /usr/local/include/mysql/mysql.h; then
27970 MYSQL_INCDIR=/usr/local/include/mysql
27971 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27972 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27973 MYSQL_LIBDIR=/usr/local/lib64/mysql
27975 MYSQL_LIBDIR=/usr/local/lib/mysql
27977 MYSQL_BINDIR=/usr/local/bin
27978 elif test -f /usr/local/include/mysql.h; then
27979 MYSQL_INCDIR=/usr/local/include
27980 if test -f /usr/local/lib64/libmysqlclient_r.a \
27981 -o -f /usr/local/lib64/libmysqlclient_r.so; then
27982 MYSQL_LIBDIR=/usr/local/lib64
27984 MYSQL_LIBDIR=/usr/local/lib
27986 MYSQL_BINDIR=/usr/local/bin
27988 { echo "$as_me:$LINENO: result: no" >&5
27989 echo "${ECHO_T}no" >&6; }
27990 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
27991 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
27992 { (exit 1); exit 1; }; }
27995 if test -f $withval/include/mysql/mysql.h; then
27996 MYSQL_INCDIR=$withval/include/mysql
27997 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
27998 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
27999 MYSQL_LIBDIR=$withval/lib64/mysql
28001 MYSQL_LIBDIR=$withval/lib/mysql
28003 if test -f $withval/lib/libmysqlclient_r.so; then
28004 MYSQL_LIBDIR=$withval/lib
28007 MYSQL_BINDIR=$withval/bin
28008 elif test -f $withval/include/mysql.h; then
28009 MYSQL_INCDIR=$withval/include
28010 if test -f $withval/lib64/libmysqlclient_r.a \
28011 -o -f $withval/lib64/libmysqlclient_r.so; then
28012 MYSQL_LIBDIR=$withval/lib64
28014 MYSQL_LIBDIR=$withval/lib
28016 MYSQL_BINDIR=$withval/bin
28018 { echo "$as_me:$LINENO: result: no" >&5
28019 echo "${ECHO_T}no" >&6; }
28020 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28021 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28022 { (exit 1); exit 1; }; }
28025 SQL_INCLUDE=-I$MYSQL_INCDIR
28026 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28027 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28028 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28029 cat >>confdefs.h <<\_ACEOF
28030 #define HAVE_THREAD_SAFE_MYSQL 1
28034 SQL_BINDIR=$MYSQL_BINDIR
28035 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28037 cat >>confdefs.h <<\_ACEOF
28038 #define HAVE_MYSQL 1
28041 { echo "$as_me:$LINENO: result: yes" >&5
28042 echo "${ECHO_T}yes" >&6; }
28049 { echo "$as_me:$LINENO: result: no" >&5
28050 echo "${ECHO_T}no" >&6; }
28058 # Check whether --with-embedded-mysql was given.
28059 if test "${with_embedded_mysql+set}" = set; then
28060 withval=$with_embedded_mysql;
28061 if test "$withval" != "no"; then
28062 if test "$withval" = "yes"; then
28063 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28064 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28065 if test -d /usr/local/mysql/lib64/mysql; then
28066 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28068 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28070 MYSQL_BINDIR=/usr/local/mysql/bin
28071 elif test -f /usr/include/mysql/mysql.h; then
28072 MYSQL_INCDIR=/usr/include/mysql
28073 if test -d /usr/lib64/mysql; then
28074 MYSQL_LIBDIR=/usr/lib64/mysql
28076 MYSQL_LIBDIR=/usr/lib/mysql
28078 MYSQL_BINDIR=/usr/bin
28079 elif test -f /usr/include/mysql.h; then
28080 MYSQL_INCDIR=/usr/include
28081 if test -d /usr/lib64; then
28082 MYSQL_LIBDIR=/usr/lib64
28084 MYSQL_LIBDIR=/usr/lib
28086 MYSQL_BINDIR=/usr/bin
28087 elif test -f /usr/local/include/mysql/mysql.h; then
28088 MYSQL_INCDIR=/usr/local/include/mysql
28089 if test -d /usr/local/lib64/mysql; then
28090 MYSQL_LIBDIR=/usr/local/lib64/mysql
28092 MYSQL_LIBDIR=/usr/local/lib/mysql
28094 MYSQL_BINDIR=/usr/local/bin
28095 elif test -f /usr/local/include/mysql.h; then
28096 MYSQL_INCDIR=/usr/local/include
28097 if test -d /usr/local/lib64; then
28098 MYSQL_LIBDIR=/usr/local/lib64
28100 MYSQL_LIBDIR=/usr/local/lib
28102 MYSQL_BINDIR=/usr/local/bin
28104 { echo "$as_me:$LINENO: result: no" >&5
28105 echo "${ECHO_T}no" >&6; }
28106 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28107 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28108 { (exit 1); exit 1; }; }
28111 if test -f $withval/include/mysql/mysql.h; then
28112 MYSQL_INCDIR=$withval/include/mysql
28113 if test -d $withval/lib64/mysql; then
28114 MYSQL_LIBDIR=$withval/lib64/mysql
28116 MYSQL_LIBDIR=$withval/lib/mysql
28118 MYSQL_BINDIR=$withval/bin
28119 elif test -f $withval/include/mysql.h; then
28120 MYSQL_INCDIR=$withval/include
28121 if test -d $withval/lib64; then
28122 MYSQL_LIBDIR=$withval/lib64
28124 MYSQL_LIBDIR=$withval/lib
28126 MYSQL_BINDIR=$withval/bin
28128 { echo "$as_me:$LINENO: result: no" >&5
28129 echo "${ECHO_T}no" >&6; }
28130 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28131 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28132 { (exit 1); exit 1; }; }
28135 SQL_INCLUDE=-I$MYSQL_INCDIR
28136 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28137 SQL_BINDIR=$MYSQL_BINDIR
28138 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28140 cat >>confdefs.h <<\_ACEOF
28141 #define HAVE_MYSQL 1
28144 cat >>confdefs.h <<\_ACEOF
28145 #define HAVE_EMBEDDED_MYSQL 1
28148 { echo "$as_me:$LINENO: result: yes" >&5
28149 echo "${ECHO_T}yes" >&6; }
28156 { echo "$as_me:$LINENO: result: no" >&5
28157 echo "${ECHO_T}no" >&6; }
28173 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28174 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28176 # Check whether --with-sqlite3 was given.
28177 if test "${with_sqlite3+set}" = set; then
28178 withval=$with_sqlite3;
28179 if test "$withval" != "no"; then
28180 if test "$withval" = "yes"; then
28181 if test -f /usr/local/include/sqlite3.h; then
28182 SQLITE_INCDIR=/usr/local/include
28183 if test -d /usr/local/lib64; then
28184 SQLITE_LIBDIR=/usr/local/lib64
28186 SQLITE_LIBDIR=/usr/local/lib
28188 SQLITE_BINDIR=/usr/local/bin
28189 elif test -f /usr/include/sqlite3.h; then
28190 SQLITE_INCDIR=/usr/include
28191 if test -d /usr/lib64; then
28192 SQLITE_LIBDIR=/usr/lib64
28194 SQLITE_LIBDIR=/usr/lib
28196 SQLITE_BINDIR=/usr/bin
28197 elif test -f $prefix/include/sqlite3.h; then
28198 SQLITE_INCDIR=$prefix/include
28199 if test -d $prefix/lib64; then
28200 SQLITE_LIBDIR=$prefix/lib64
28202 SQLITE_LIBDIR=$prefix/lib
28204 SQLITE_BINDIR=$prefix/bin
28206 { echo "$as_me:$LINENO: result: no" >&5
28207 echo "${ECHO_T}no" >&6; }
28208 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28209 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28210 { (exit 1); exit 1; }; }
28213 if test -f $withval/sqlite3.h; then
28214 SQLITE_INCDIR=$withval
28215 SQLITE_LIBDIR=$withval
28216 SQLITE_BINDIR=$withval
28217 elif test -f $withval/include/sqlite3.h; then
28218 SQLITE_INCDIR=$withval/include
28219 if test -d $withval/lib64; then
28220 SQLITE_LIBDIR=$withval/lib64
28222 SQLITE_LIBDIR=$withval/lib
28224 SQLITE_BINDIR=$withval/bin
28226 { echo "$as_me:$LINENO: result: no" >&5
28227 echo "${ECHO_T}no" >&6; }
28228 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28229 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28230 { (exit 1); exit 1; }; }
28233 SQL_INCLUDE=-I$SQLITE_INCDIR
28234 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28235 SQL_BINDIR=$SQLITE_BINDIR
28236 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28238 cat >>confdefs.h <<\_ACEOF
28239 #define HAVE_SQLITE3 1
28242 { echo "$as_me:$LINENO: result: yes" >&5
28243 echo "${ECHO_T}yes" >&6; }
28245 support_sqlite3=yes
28250 { echo "$as_me:$LINENO: result: no" >&5
28251 echo "${ECHO_T}no" >&6; }
28256 { echo "$as_me:$LINENO: result: no" >&5
28257 echo "${ECHO_T}no" >&6; }
28269 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28270 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28272 # Check whether --with-sqlite was given.
28273 if test "${with_sqlite+set}" = set; then
28274 withval=$with_sqlite;
28275 if test "$withval" != "no"; then
28276 if test "$withval" = "yes"; then
28277 if test -f /usr/local/include/sqlite.h; then
28278 SQLITE_INCDIR=/usr/local/include
28279 if test -d /usr/local/lib64; then
28280 SQLITE_LIBDIR=/usr/local/lib64
28282 SQLITE_LIBDIR=/usr/local/lib
28284 SQLITE_BINDIR=/usr/local/bin
28285 elif test -f /usr/include/sqlite.h; then
28286 SQLITE_INCDIR=/usr/include
28287 if test -d /usr/lib64; then
28288 SQLITE_LIBDIR=/usr/lib64
28290 SQLITE_LIBDIR=/usr/lib
28292 SQLITE_BINDIR=/usr/bin
28293 elif test -f $prefix/include/sqlite.h; then
28294 SQLITE_INCDIR=$prefix/include
28295 if test -d $prefix/lib64; then
28296 SQLITE_LIBDIR=$prefix/lib64
28298 SQLITE_LIBDIR=$prefix/lib
28300 SQLITE_BINDIR=$prefix/bin
28302 { echo "$as_me:$LINENO: result: no" >&5
28303 echo "${ECHO_T}no" >&6; }
28304 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28305 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28306 { (exit 1); exit 1; }; }
28309 if test -f $withval/sqlite.h; then
28310 SQLITE_INCDIR=$withval
28311 SQLITE_LIBDIR=$withval
28312 SQLITE_BINDIR=$withval
28313 elif test -f $withval/include/sqlite.h; then
28314 SQLITE_INCDIR=$withval/include
28315 if test -d $withval/lib64; then
28316 SQLITE_LIBDIR=$withval/lib64
28318 SQLITE_LIBDIR=$withval/lib
28320 SQLITE_BINDIR=$withval/bin
28322 { echo "$as_me:$LINENO: result: no" >&5
28323 echo "${ECHO_T}no" >&6; }
28324 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28325 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28326 { (exit 1); exit 1; }; }
28329 SQL_INCLUDE=-I$SQLITE_INCDIR
28330 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28331 SQL_BINDIR=$SQLITE_BINDIR
28332 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28334 cat >>confdefs.h <<\_ACEOF
28335 #define HAVE_SQLITE 1
28338 { echo "$as_me:$LINENO: result: yes" >&5
28339 echo "${ECHO_T}yes" >&6; }
28346 { echo "$as_me:$LINENO: result: no" >&5
28347 echo "${ECHO_T}no" >&6; }
28352 { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28365 { echo "$as_me:$LINENO: checking for DBI support" >&5
28366 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28368 # Check whether --with-dbi was given.
28369 if test "${with_dbi+set}" = set; then
28371 if test "$withval" != "no"; then
28372 if test "$withval" = "yes"; then
28373 if test -f /usr/local/include/dbi/dbi.h; then
28374 DBI_INCDIR=/usr/local/dbi/include
28375 if test -d /usr/local/lib64; then
28376 DBI_LIBDIR=/usr/local/lib64
28378 DBI_LIBDIR=/usr/local/lib
28380 DBI_BINDIR=/usr/local/bin
28381 elif test -f /usr/include/dbi/dbi.h; then
28382 DBI_INCDIR=/usr/include
28383 if test -d /usr/lib64; then
28384 DBI_LIBDIR=/usr/lib64
28386 DBI_LIBDIR=/usr/lib
28388 DBI_BINDIR=/usr/bin
28389 elif test -f $prefix/include/dbi/dbi.h; then
28390 DBI_INCDIR=$prefix/include
28391 if test -d $prefix/lib64; then
28392 DBI_LIBDIR=$prefix/lib64
28394 DBI_LIBDIR=$prefix/lib
28396 DBI_BINDIR=$prefix/bin
28398 { echo "$as_me:$LINENO: result: no" >&5
28399 echo "${ECHO_T}no" >&6; }
28400 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28401 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28402 { (exit 1); exit 1; }; }
28404 if test -d /usr/local/lib/dbd; then
28405 DRIVERDIR=/usr/local/lib/dbd
28406 if test -d /usr/local/lib64/dbd; then
28407 DRIVERDIR=/usr/local/lib64/dbd
28409 DRIVERDIR=/usr/local/lib/dbd
28411 elif test -d /usr/lib/dbd; then
28412 DRIVERDIR=/usr/lib/dbd
28413 if test -d /usr/lib64/dbd; then
28414 DRIVERDIR=/usr/lib64/dbd
28416 DRIVERDIR=/usr/lib/dbd
28418 elif test -d $prefix/lib/dbd; then
28419 if test -d $prefix/lib64/dbd; then
28420 DRIVERDIR=$prefix/lib64/dbd
28422 DRIVERDIR=$prefix/lib/dbd
28425 { echo "$as_me:$LINENO: result: no" >&5
28426 echo "${ECHO_T}no" >&6; }
28427 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28428 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28429 { (exit 1); exit 1; }; }
28432 if test -f $withval/dbi.h; then
28433 DBI_INCDIR=$withval
28434 DBI_LIBDIR=$withval
28435 DBI_BINDIR=$withval
28436 elif test -f $withval/include/dbi/dbi.h; then
28437 DBI_INCDIR=$withval/include
28438 if test -d $withval/lib64; then
28439 DBI_LIBDIR=$withval/lib64
28441 DBI_LIBDIR=$withval/lib
28443 DBI_BINDIR=$withval/bin
28445 { echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6; }
28447 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28448 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28449 { (exit 1); exit 1; }; }
28451 if test -d $withval/dbd; then
28452 DRIVERDIR=$withval/dbd
28453 elif test -d $withval/lib/; then
28454 if test -d $withval/lib64/dbd; then
28455 DRIVERDIR=$withval/lib64/dbd
28457 DRIVERDIR=$withval/lib/dbd
28460 { echo "$as_me:$LINENO: result: no" >&5
28461 echo "${ECHO_T}no" >&6; }
28462 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28463 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28464 { (exit 1); exit 1; }; }
28467 SQL_INCLUDE=-I$DBI_INCDIR
28468 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28469 SQL_BINDIR=$DBI_BINDIR
28470 SQL_LIB=$DBI_LIBDIR/libdbi.a
28471 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28474 cat >>confdefs.h <<\_ACEOF
28478 { echo "$as_me:$LINENO: result: yes" >&5
28479 echo "${ECHO_T}yes" >&6; }
28487 { echo "$as_me:$LINENO: result: no" >&5
28488 echo "${ECHO_T}no" >&6; }
28493 { echo "$as_me:$LINENO: result: no" >&5
28494 echo "${ECHO_T}no" >&6; }
28509 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28510 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28512 # Check whether --with-dbi-driver was given.
28513 if test "${with_dbi_driver+set}" = set; then
28514 withval=$with_dbi_driver;
28515 if test "$withval" != "no"; then
28519 if test -f /usr/local/mysql/bin/mysql; then
28520 SQL_BINDIR=/usr/local/mysql/bin
28521 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28522 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28523 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28525 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28527 elif test -f /usr/bin/mysql; then
28528 SQL_BINDIR=/usr/bin
28529 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28530 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28531 SQL_LIBDIR=/usr/lib64/mysql
28532 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28533 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28534 SQL_LIBDIR=/usr/lib/mysql
28536 SQL_LIBDIR=/usr/lib
28538 elif test -f /usr/local/bin/mysql; then
28539 SQL_BINDIR=/usr/local/bin
28540 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28541 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28542 SQL_LIBDIR=/usr/local/lib64/mysql
28543 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28544 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28545 SQL_LIBDIR=/usr/local/lib/mysql
28547 SQL_LIBDIR=/usr/local/lib
28549 elif test -f $withval/bin/mysql; then
28550 SQL_BINDIR=$withval/bin
28551 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28552 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28553 SQL_LIBDIR=$withval/lib64/mysql
28554 elif test -f $withval/lib64/libmysqlclient_r.a \
28555 -o -f $withval/lib64/libmysqlclient_r.so; then
28556 SQL_LIBDIR=$withval/lib64
28557 elif test -f $withval/lib/libmysqlclient_r.a \
28558 -o -f $withval/lib/libmysqlclient_r.so; then
28559 SQL_LIBDIR=$withval/lib/
28561 SQL_LIBDIR=$withval/lib/mysql
28564 { echo "$as_me:$LINENO: result: no" >&5
28565 echo "${ECHO_T}no" >&6; }
28566 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28567 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28568 { (exit 1); exit 1; }; }
28570 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28573 db_prog="postgresql"
28574 PG_CONFIG=`which pg_config`
28575 if test -n "$PG_CONFIG"; then
28576 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28577 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28578 elif test -f /usr/local/bin/psql; then
28579 SQL_BINDIR=/usr/local/bin
28580 if test -d /usr/local/lib64; then
28581 SQL_LIBDIR=/usr/local/lib64
28583 SQL_LIBDIR=/usr/local/lib
28585 elif test -f /usr/bin/psql; then
28586 SQL_BINDIR=/usr/local/bin
28587 if test -d /usr/lib64/postgresql; then
28588 SQL_LIBDIR=/usr/lib64/postgresql
28589 elif test -d /usr/lib/postgresql; then
28590 SQL_LIBDIR=/usr/lib/postgresql
28591 elif test -d /usr/lib64; then
28592 SQL_LIBDIR=/usr/lib64
28594 SQL_LIBDIR=/usr/lib
28596 elif test -f $withval/bin/psql; then
28597 SQL_BINDIR=$withval/bin
28598 if test -d $withval/lib64; then
28599 SQL_LIBDIR=$withval/lib64
28601 SQL_LIBDIR=$withval/lib
28604 { echo "$as_me:$LINENO: result: no" >&5
28605 echo "${ECHO_T}no" >&6; }
28606 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28607 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28608 { (exit 1); exit 1; }; }
28610 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28614 if test -f /usr/local/bin/sqlite; then
28615 SQL_BINDIR=/usr/local/bin
28616 if test -d /usr/local/lib64; then
28617 SQL_LIBDIR=/usr/local/lib64
28619 SQL_LIBDIR=/usr/local/lib
28621 elif test -f /usr/bin/sqlite; then
28622 SQL_BINDIR=/usr/bin
28623 if test -d /usr/lib64; then
28624 SQL_LIBDIR=/usr/lib64
28626 SQL_LIBDIR=/usr/lib
28628 elif test -f $withval/bin/sqlite; then
28629 SQL_BINDIR=$withval/bin
28630 if test -d $withval/lib64; then
28631 SQL_LIBDIR=$withval/lib64
28633 SQL_LIBDIR=$withval/lib
28636 { echo "$as_me:$LINENO: result: no" >&5
28637 echo "${ECHO_T}no" >&6; }
28638 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28639 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28640 { (exit 1); exit 1; }; }
28642 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28646 if test -f /usr/local/bin/sqlite3; then
28647 SQL_BINDIR=/usr/local/bin
28648 if test -d /usr/local/lib64; then
28649 SQL_LIBDIR=/usr/local/lib64
28651 SQL_LIBDIR=/usr/local/lib
28653 elif test -f /usr/bin/sqlite3; then
28654 SQL_BINDIR=/usr/bin
28655 if test -d /usr/lib64; then
28656 SQL_LIBDIR=/usr/lib64
28658 SQL_LIBDIR=/usr/lib
28660 elif test -f $withval/bin/sqlite3; then
28661 SQL_BINDIR=$withval/bin
28662 if test -d $withval/lib64; then
28663 SQL_LIBDIR=$withval/lib64
28665 SQL_LIBDIR=$withval/lib
28668 { echo "$as_me:$LINENO: result: no" >&5
28669 echo "${ECHO_T}no" >&6; }
28670 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28671 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28672 { (exit 1); exit 1; }; }
28674 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28677 { echo "$as_me:$LINENO: result: no" >&5
28678 echo "${ECHO_T}no" >&6; }
28679 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28680 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28681 { (exit 1); exit 1; }; }
28685 { echo "$as_me:$LINENO: result: yes" >&5
28686 echo "${ECHO_T}yes" >&6; }
28689 { echo "$as_me:$LINENO: result: no" >&5
28690 echo "${ECHO_T}no" >&6; }
28695 { echo "$as_me:$LINENO: result: no" >&5
28696 echo "${ECHO_T}no" >&6; }
28709 support_batch_insert=no
28710 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28712 if test $pkg = 0; then
28713 support_batch_insert=yes
28714 # Check whether --enable-batch-insert was given.
28715 if test "${enable_batch_insert+set}" = set; then
28716 enableval=$enable_batch_insert;
28717 if test x$enableval = xno; then
28718 support_batch_insert=no
28720 support_batch_insert=yes
28728 if test x$DB_TYPE = xpostgresql; then
28729 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28731 if test $pkg != 0; then
28732 support_batch_insert=no
28736 if test x$DB_TYPE = xdbi; then
28740 if test $DB_PROG = postgresql; then
28741 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28745 if test $DB_PROG = mysql; then
28746 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28750 if test $DB_PROG = sqlite3; then
28751 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28755 if test $pkg = 0; then
28756 # Check whether --enable-batch-insert was given.
28757 if test "${enable_batch_insert+set}" = set; then
28758 enableval=$enable_batch_insert;
28759 if test x$enableval = xno; then
28760 support_batch_insert=no
28762 support_batch_insert=yes
28775 if test $support_batch_insert = yes ; then
28777 cat >>confdefs.h <<\_ACEOF
28778 #define HAVE_BATCH_FILE_INSERT 1
28783 cat >>confdefs.h <<\_ACEOF
28784 #define PROTOTYPES 1
28788 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28789 if test -z "$CCOPTS"; then
28790 CCOPTS='-g -O2 -Wall'
28797 largefile_support="no"
28799 # Check whether --enable-largefile was given.
28800 if test "${enable_largefile+set}" = set; then
28801 enableval=$enable_largefile;
28804 if test "$enable_largefile" != no; then
28805 if test -n "$ac_tool_prefix"; then
28806 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28807 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28810 if test "${ac_cv_prog_GETCONF+set}" = set; then
28811 echo $ECHO_N "(cached) $ECHO_C" >&6
28813 if test -n "$GETCONF"; then
28814 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28817 for as_dir in $PATH
28820 test -z "$as_dir" && as_dir=.
28821 for ac_exec_ext in '' $ac_executable_extensions; do
28822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28823 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28833 GETCONF=$ac_cv_prog_GETCONF
28834 if test -n "$GETCONF"; then
28835 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28836 echo "${ECHO_T}$GETCONF" >&6; }
28838 { echo "$as_me:$LINENO: result: no" >&5
28839 echo "${ECHO_T}no" >&6; }
28844 if test -z "$ac_cv_prog_GETCONF"; then
28845 ac_ct_GETCONF=$GETCONF
28846 # Extract the first word of "getconf", so it can be a program name with args.
28847 set dummy getconf; ac_word=$2
28848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28850 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28851 echo $ECHO_N "(cached) $ECHO_C" >&6
28853 if test -n "$ac_ct_GETCONF"; then
28854 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28857 for as_dir in $PATH
28860 test -z "$as_dir" && as_dir=.
28861 for ac_exec_ext in '' $ac_executable_extensions; do
28862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28863 ac_cv_prog_ac_ct_GETCONF="getconf"
28864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28873 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28874 if test -n "$ac_ct_GETCONF"; then
28875 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28876 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28878 { echo "$as_me:$LINENO: result: no" >&5
28879 echo "${ECHO_T}no" >&6; }
28882 if test "x$ac_ct_GETCONF" = x; then
28885 case $cross_compiling:$ac_tool_warned in
28887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28888 whose name does not start with the host triplet. If you think this
28889 configuration is useful to you, please write to autoconf@gnu.org." >&5
28890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28891 whose name does not start with the host triplet. If you think this
28892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28893 ac_tool_warned=yes ;;
28895 GETCONF=$ac_ct_GETCONF
28898 GETCONF="$ac_cv_prog_GETCONF"
28901 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28902 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28903 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28904 echo $ECHO_N "(cached) $ECHO_C" >&6
28906 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28907 ac_cv_sys_largefile_CFLAGS=no
28909 # IRIX 6.2 and later require cc -n32.
28910 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28911 if test "$GCC" != yes; then
28912 ac_cv_sys_largefile_CFLAGS=-n32
28915 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28916 cat >conftest.$ac_ext <<_ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h. */
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (ac_try="$ac_link"
28933 case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_link") 2>conftest.er1
28940 grep -v '^ *+' conftest.er1 >conftest.err
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } && {
28945 test -z "$ac_c_werror_flag" ||
28946 test ! -s conftest.err
28947 } && test -s conftest$ac_exeext &&
28948 $as_test_x conftest$ac_exeext; then
28951 echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28954 ac_cv_sys_largefile_CFLAGS=no
28957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28958 conftest$ac_exeext conftest.$ac_ext
28963 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28964 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28965 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28966 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28967 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28968 echo $ECHO_N "(cached) $ECHO_C" >&6
28970 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28971 ac_cv_sys_largefile_LDFLAGS=no
28975 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
28976 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
28977 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
28978 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
28979 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28982 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
28983 ac_cv_sys_largefile_LIBS=no
28987 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
28988 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
28990 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
28993 -D_FILE_OFFSET_BITS=*) ;;
28994 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
28995 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29000 case "$CPPFLAGS" in
29001 '') CPPFLAGS="$ac_flag" ;;
29002 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29010 '') CFLAGS="$ac_flag" ;;
29011 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29016 case "$ac_cv_sys_largefile_LDFLAGS" in
29020 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29021 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29024 case "$ac_cv_sys_largefile_LIBS" in
29028 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29029 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29032 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29033 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29034 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29035 echo $ECHO_N "(cached) $ECHO_C" >&6
29037 ac_cv_sys_file_offset_bits=no
29038 ac_cv_sys_file_offset_bits=64
29039 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29041 -D_FILE_OFFSET_BITS)
29042 ac_cv_sys_file_offset_bits=1 ;;
29043 -D_FILE_OFFSET_BITS=*)
29044 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29049 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29050 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29051 if test "$ac_cv_sys_file_offset_bits" != no; then
29053 cat >>confdefs.h <<_ACEOF
29054 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29058 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29059 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29060 if test "${ac_cv_sys_largefile_source+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29063 ac_cv_sys_largefile_source=no
29064 ac_cv_sys_largefile_source=1
29065 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29067 -D_LARGEFILE_SOURCE)
29068 ac_cv_sys_largefile_source=1 ;;
29069 -D_LARGEFILE_SOURCE=*)
29070 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29075 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29076 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29077 if test "$ac_cv_sys_largefile_source" != no; then
29079 cat >>confdefs.h <<_ACEOF
29080 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29084 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29085 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29086 if test "${ac_cv_sys_large_files+set}" = set; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29089 ac_cv_sys_large_files=no
29090 ac_cv_sys_large_files=1
29091 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29094 ac_cv_sys_large_files=1 ;;
29096 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29101 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29102 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29103 if test "$ac_cv_sys_large_files" != no; then
29105 cat >>confdefs.h <<_ACEOF
29106 #define _LARGE_FILES $ac_cv_sys_large_files
29113 { echo "$as_me:$LINENO: checking for X" >&5
29114 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29117 # Check whether --with-x was given.
29118 if test "${with_x+set}" = set; then
29122 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29123 if test "x$with_x" = xno; then
29124 # The user explicitly disabled X.
29127 case $x_includes,$x_libraries in #(
29128 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29129 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29130 { (exit 1); exit 1; }; };; #(
29131 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29132 echo $ECHO_N "(cached) $ECHO_C" >&6
29134 # One or both of the vars are not set, and there is no cached value.
29135 ac_x_includes=no ac_x_libraries=no
29136 rm -f -r conftest.dir
29137 if mkdir conftest.dir; then
29139 cat >Imakefile <<'_ACEOF'
29141 @echo incroot='${INCROOT}'
29143 @echo usrlibdir='${USRLIBDIR}'
29145 @echo libdir='${LIBDIR}'
29147 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29149 for ac_var in incroot usrlibdir libdir; do
29150 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29152 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29153 for ac_extension in a so sl; do
29154 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29155 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29156 ac_im_usrlibdir=$ac_im_libdir; break
29159 # Screen out bogus values from the imake configuration. They are
29160 # bogus both because they are the default anyway, and because
29161 # using them would break gcc on systems where it needs fixed includes.
29162 case $ac_im_incroot in
29163 /usr/include) ac_x_includes= ;;
29164 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29166 case $ac_im_usrlibdir in
29167 /usr/lib | /lib) ;;
29168 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29172 rm -f -r conftest.dir
29175 # Standard set of common directories for X headers.
29176 # Check X11 before X11Rn because it is often a symlink to the current release.
29188 /usr/local/X11/include
29189 /usr/local/X11R6/include
29190 /usr/local/X11R5/include
29191 /usr/local/X11R4/include
29193 /usr/local/include/X11
29194 /usr/local/include/X11R6
29195 /usr/local/include/X11R5
29196 /usr/local/include/X11R4
29200 /usr/XFree86/include/X11
29204 /usr/unsupported/include
29205 /usr/athena/include
29206 /usr/local/x11r5/include
29207 /usr/lpp/Xamples/include
29209 /usr/openwin/include
29210 /usr/openwin/share/include'
29212 if test "$ac_x_includes" = no; then
29213 # Guess where to find include files, by looking for Xlib.h.
29214 # First, try using that file with no special directory specified.
29215 cat >conftest.$ac_ext <<_ACEOF
29218 cat confdefs.h >>conftest.$ac_ext
29219 cat >>conftest.$ac_ext <<_ACEOF
29220 /* end confdefs.h. */
29221 #include <X11/Xlib.h>
29223 if { (ac_try="$ac_cpp conftest.$ac_ext"
29224 case "(($ac_try" in
29225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226 *) ac_try_echo=$ac_try;;
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29231 grep -v '^ *+' conftest.er1 >conftest.err
29233 cat conftest.err >&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); } >/dev/null && {
29236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29237 test ! -s conftest.err
29239 # We can compile using X headers with no special include directory.
29242 echo "$as_me: failed program was:" >&5
29243 sed 's/^/| /' conftest.$ac_ext >&5
29245 for ac_dir in $ac_x_header_dirs; do
29246 if test -r "$ac_dir/X11/Xlib.h"; then
29247 ac_x_includes=$ac_dir
29253 rm -f conftest.err conftest.$ac_ext
29254 fi # $ac_x_includes = no
29256 if test "$ac_x_libraries" = no; then
29257 # Check for the libraries.
29258 # See if we find them without any special options.
29259 # Don't add to $LIBS permanently.
29262 cat >conftest.$ac_ext <<_ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29268 #include <X11/Xlib.h>
29277 rm -f conftest.$ac_objext conftest$ac_exeext
29278 if { (ac_try="$ac_link"
29279 case "(($ac_try" in
29280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281 *) ac_try_echo=$ac_try;;
29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284 (eval "$ac_link") 2>conftest.er1
29286 grep -v '^ *+' conftest.er1 >conftest.err
29288 cat conftest.err >&5
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } && {
29291 test -z "$ac_c_werror_flag" ||
29292 test ! -s conftest.err
29293 } && test -s conftest$ac_exeext &&
29294 $as_test_x conftest$ac_exeext; then
29296 # We can link X programs with no special library path.
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29303 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29305 # Don't even attempt the hair of trying to link an X program!
29306 for ac_extension in a so sl; do
29307 if test -r "$ac_dir/libX11.$ac_extension"; then
29308 ac_x_libraries=$ac_dir
29315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29316 conftest$ac_exeext conftest.$ac_ext
29317 fi # $ac_x_libraries = no
29319 case $ac_x_includes,$ac_x_libraries in #(
29320 no,* | *,no | *\'*)
29321 # Didn't find X, or a directory has "'" in its name.
29322 ac_cv_have_x="have_x=no";; #(
29324 # Record where we found X for the cache.
29325 ac_cv_have_x="have_x=yes\
29326 ac_x_includes='$ac_x_includes'\
29327 ac_x_libraries='$ac_x_libraries'"
29333 eval "$ac_cv_have_x"
29336 if test "$have_x" != yes; then
29337 { echo "$as_me:$LINENO: result: $have_x" >&5
29338 echo "${ECHO_T}$have_x" >&6; }
29341 # If each of the values was on the command line, it overrides each guess.
29342 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29343 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29344 # Update the cache value to reflect the command line values.
29345 ac_cv_have_x="have_x=yes\
29346 ac_x_includes='$x_includes'\
29347 ac_x_libraries='$x_libraries'"
29348 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29349 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29352 if test "$no_x" = yes; then
29353 # Not all programs may use this symbol, but it does not hurt to define it.
29355 cat >>confdefs.h <<\_ACEOF
29356 #define X_DISPLAY_MISSING 1
29359 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29361 if test -n "$x_includes"; then
29362 X_CFLAGS="$X_CFLAGS -I$x_includes"
29365 # It would also be nice to do this for all -L options, not just this one.
29366 if test -n "$x_libraries"; then
29367 X_LIBS="$X_LIBS -L$x_libraries"
29368 # For Solaris; some versions of Sun CC require a space after -R and
29369 # others require no space. Words are not sufficient . . . .
29370 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29371 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29372 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29373 ac_xsave_c_werror_flag=$ac_c_werror_flag
29374 ac_c_werror_flag=yes
29375 cat >conftest.$ac_ext <<_ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h. */
29390 rm -f conftest.$ac_objext conftest$ac_exeext
29391 if { (ac_try="$ac_link"
29392 case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397 (eval "$ac_link") 2>conftest.er1
29399 grep -v '^ *+' conftest.er1 >conftest.err
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } && {
29404 test -z "$ac_c_werror_flag" ||
29405 test ! -s conftest.err
29406 } && test -s conftest$ac_exeext &&
29407 $as_test_x conftest$ac_exeext; then
29408 { echo "$as_me:$LINENO: result: no" >&5
29409 echo "${ECHO_T}no" >&6; }
29410 X_LIBS="$X_LIBS -R$x_libraries"
29412 echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29415 LIBS="$ac_xsave_LIBS -R $x_libraries"
29416 cat >conftest.$ac_ext <<_ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h. */
29431 rm -f conftest.$ac_objext conftest$ac_exeext
29432 if { (ac_try="$ac_link"
29433 case "(($ac_try" in
29434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29435 *) ac_try_echo=$ac_try;;
29437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29438 (eval "$ac_link") 2>conftest.er1
29440 grep -v '^ *+' conftest.er1 >conftest.err
29442 cat conftest.err >&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } && {
29445 test -z "$ac_c_werror_flag" ||
29446 test ! -s conftest.err
29447 } && test -s conftest$ac_exeext &&
29448 $as_test_x conftest$ac_exeext; then
29449 { echo "$as_me:$LINENO: result: yes" >&5
29450 echo "${ECHO_T}yes" >&6; }
29451 X_LIBS="$X_LIBS -R $x_libraries"
29453 echo "$as_me: failed program was:" >&5
29454 sed 's/^/| /' conftest.$ac_ext >&5
29456 { echo "$as_me:$LINENO: result: neither works" >&5
29457 echo "${ECHO_T}neither works" >&6; }
29460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29461 conftest$ac_exeext conftest.$ac_ext
29464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29465 conftest$ac_exeext conftest.$ac_ext
29466 ac_c_werror_flag=$ac_xsave_c_werror_flag
29467 LIBS=$ac_xsave_LIBS
29470 # Check for system-dependent libraries X programs must link with.
29471 # Do this before checking for the system-independent R6 libraries
29472 # (-lICE), since we may need -lsocket or whatever for X linking.
29474 if test "$ISC" = yes; then
29475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29477 # Martyn Johnson says this is needed for Ultrix, if the X
29478 # libraries were built with DECnet support. And Karl Berry says
29479 # the Alpha needs dnet_stub (dnet does not exist).
29480 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29481 cat >conftest.$ac_ext <<_ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h. */
29488 /* Override any GCC internal prototype to avoid an error.
29489 Use char because int might match the return type of a GCC
29490 builtin and then its argument prototype would still apply. */
29494 char XOpenDisplay ();
29498 return XOpenDisplay ();
29503 rm -f conftest.$ac_objext conftest$ac_exeext
29504 if { (ac_try="$ac_link"
29505 case "(($ac_try" in
29506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507 *) ac_try_echo=$ac_try;;
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510 (eval "$ac_link") 2>conftest.er1
29512 grep -v '^ *+' conftest.er1 >conftest.err
29514 cat conftest.err >&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); } && {
29517 test -z "$ac_c_werror_flag" ||
29518 test ! -s conftest.err
29519 } && test -s conftest$ac_exeext &&
29520 $as_test_x conftest$ac_exeext; then
29523 echo "$as_me: failed program was:" >&5
29524 sed 's/^/| /' conftest.$ac_ext >&5
29526 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29527 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29528 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29529 echo $ECHO_N "(cached) $ECHO_C" >&6
29531 ac_check_lib_save_LIBS=$LIBS
29532 LIBS="-ldnet $LIBS"
29533 cat >conftest.$ac_ext <<_ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h. */
29540 /* Override any GCC internal prototype to avoid an error.
29541 Use char because int might match the return type of a GCC
29542 builtin and then its argument prototype would still apply. */
29550 return dnet_ntoa ();
29555 rm -f conftest.$ac_objext conftest$ac_exeext
29556 if { (ac_try="$ac_link"
29557 case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_link") 2>conftest.er1
29564 grep -v '^ *+' conftest.er1 >conftest.err
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } && {
29569 test -z "$ac_c_werror_flag" ||
29570 test ! -s conftest.err
29571 } && test -s conftest$ac_exeext &&
29572 $as_test_x conftest$ac_exeext; then
29573 ac_cv_lib_dnet_dnet_ntoa=yes
29575 echo "$as_me: failed program was:" >&5
29576 sed 's/^/| /' conftest.$ac_ext >&5
29578 ac_cv_lib_dnet_dnet_ntoa=no
29581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29582 conftest$ac_exeext conftest.$ac_ext
29583 LIBS=$ac_check_lib_save_LIBS
29585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29586 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29587 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29588 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29591 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29592 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29593 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29594 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29595 echo $ECHO_N "(cached) $ECHO_C" >&6
29597 ac_check_lib_save_LIBS=$LIBS
29598 LIBS="-ldnet_stub $LIBS"
29599 cat >conftest.$ac_ext <<_ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29606 /* Override any GCC internal prototype to avoid an error.
29607 Use char because int might match the return type of a GCC
29608 builtin and then its argument prototype would still apply. */
29616 return dnet_ntoa ();
29621 rm -f conftest.$ac_objext conftest$ac_exeext
29622 if { (ac_try="$ac_link"
29623 case "(($ac_try" in
29624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625 *) ac_try_echo=$ac_try;;
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628 (eval "$ac_link") 2>conftest.er1
29630 grep -v '^ *+' conftest.er1 >conftest.err
29632 cat conftest.err >&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); } && {
29635 test -z "$ac_c_werror_flag" ||
29636 test ! -s conftest.err
29637 } && test -s conftest$ac_exeext &&
29638 $as_test_x conftest$ac_exeext; then
29639 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29641 echo "$as_me: failed program was:" >&5
29642 sed 's/^/| /' conftest.$ac_ext >&5
29644 ac_cv_lib_dnet_stub_dnet_ntoa=no
29647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29648 conftest$ac_exeext conftest.$ac_ext
29649 LIBS=$ac_check_lib_save_LIBS
29651 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29652 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29653 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29654 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29661 conftest$ac_exeext conftest.$ac_ext
29662 LIBS="$ac_xsave_LIBS"
29664 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29665 # to get the SysV transport functions.
29666 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29668 # The nsl library prevents programs from opening the X display
29669 # on Irix 5.2, according to T.E. Dickey.
29670 # The functions gethostbyname, getservbyname, and inet_addr are
29671 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29672 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29673 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29674 if test "${ac_cv_func_gethostbyname+set}" = set; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29677 cat >conftest.$ac_ext <<_ACEOF
29680 cat confdefs.h >>conftest.$ac_ext
29681 cat >>conftest.$ac_ext <<_ACEOF
29682 /* end confdefs.h. */
29683 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29685 #define gethostbyname innocuous_gethostbyname
29687 /* System header to define __stub macros and hopefully few prototypes,
29688 which can conflict with char gethostbyname (); below.
29689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29690 <limits.h> exists even on freestanding compilers. */
29693 # include <limits.h>
29695 # include <assert.h>
29698 #undef gethostbyname
29700 /* Override any GCC internal prototype to avoid an error.
29701 Use char because int might match the return type of a GCC
29702 builtin and then its argument prototype would still apply. */
29706 char gethostbyname ();
29707 /* The GNU C library defines this for functions which it implements
29708 to always fail with ENOSYS. Some functions are actually named
29709 something starting with __ and the normal name is an alias. */
29710 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29717 return gethostbyname ();
29722 rm -f conftest.$ac_objext conftest$ac_exeext
29723 if { (ac_try="$ac_link"
29724 case "(($ac_try" in
29725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726 *) ac_try_echo=$ac_try;;
29728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729 (eval "$ac_link") 2>conftest.er1
29731 grep -v '^ *+' conftest.er1 >conftest.err
29733 cat conftest.err >&5
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); } && {
29736 test -z "$ac_c_werror_flag" ||
29737 test ! -s conftest.err
29738 } && test -s conftest$ac_exeext &&
29739 $as_test_x conftest$ac_exeext; then
29740 ac_cv_func_gethostbyname=yes
29742 echo "$as_me: failed program was:" >&5
29743 sed 's/^/| /' conftest.$ac_ext >&5
29745 ac_cv_func_gethostbyname=no
29748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29749 conftest$ac_exeext conftest.$ac_ext
29751 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29752 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29754 if test $ac_cv_func_gethostbyname = no; then
29755 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29756 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29757 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29760 ac_check_lib_save_LIBS=$LIBS
29762 cat >conftest.$ac_ext <<_ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h. */
29769 /* Override any GCC internal prototype to avoid an error.
29770 Use char because int might match the return type of a GCC
29771 builtin and then its argument prototype would still apply. */
29775 char gethostbyname ();
29779 return gethostbyname ();
29784 rm -f conftest.$ac_objext conftest$ac_exeext
29785 if { (ac_try="$ac_link"
29786 case "(($ac_try" in
29787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29788 *) ac_try_echo=$ac_try;;
29790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29791 (eval "$ac_link") 2>conftest.er1
29793 grep -v '^ *+' conftest.er1 >conftest.err
29795 cat conftest.err >&5
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); } && {
29798 test -z "$ac_c_werror_flag" ||
29799 test ! -s conftest.err
29800 } && test -s conftest$ac_exeext &&
29801 $as_test_x conftest$ac_exeext; then
29802 ac_cv_lib_nsl_gethostbyname=yes
29804 echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29807 ac_cv_lib_nsl_gethostbyname=no
29810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29811 conftest$ac_exeext conftest.$ac_ext
29812 LIBS=$ac_check_lib_save_LIBS
29814 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29815 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29816 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29817 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29820 if test $ac_cv_lib_nsl_gethostbyname = no; then
29821 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29822 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29823 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29826 ac_check_lib_save_LIBS=$LIBS
29828 cat >conftest.$ac_ext <<_ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h. */
29835 /* Override any GCC internal prototype to avoid an error.
29836 Use char because int might match the return type of a GCC
29837 builtin and then its argument prototype would still apply. */
29841 char gethostbyname ();
29845 return gethostbyname ();
29850 rm -f conftest.$ac_objext conftest$ac_exeext
29851 if { (ac_try="$ac_link"
29852 case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_link") 2>conftest.er1
29859 grep -v '^ *+' conftest.er1 >conftest.err
29861 cat conftest.err >&5
29862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); } && {
29864 test -z "$ac_c_werror_flag" ||
29865 test ! -s conftest.err
29866 } && test -s conftest$ac_exeext &&
29867 $as_test_x conftest$ac_exeext; then
29868 ac_cv_lib_bsd_gethostbyname=yes
29870 echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.$ac_ext >&5
29873 ac_cv_lib_bsd_gethostbyname=no
29876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29877 conftest$ac_exeext conftest.$ac_ext
29878 LIBS=$ac_check_lib_save_LIBS
29880 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29881 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29882 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29883 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29889 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29890 # socket/setsockopt and other routines are undefined under SCO ODT
29891 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29892 # on later versions), says Simon Leinen: it contains gethostby*
29893 # variants that don't use the name server (or something). -lsocket
29894 # must be given before -lnsl if both are needed. We assume that
29895 # if connect needs -lnsl, so does gethostbyname.
29896 { echo "$as_me:$LINENO: checking for connect" >&5
29897 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29898 if test "${ac_cv_func_connect+set}" = set; then
29899 echo $ECHO_N "(cached) $ECHO_C" >&6
29901 cat >conftest.$ac_ext <<_ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h. */
29907 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29909 #define connect innocuous_connect
29911 /* System header to define __stub macros and hopefully few prototypes,
29912 which can conflict with char connect (); below.
29913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29914 <limits.h> exists even on freestanding compilers. */
29917 # include <limits.h>
29919 # include <assert.h>
29924 /* Override any GCC internal prototype to avoid an error.
29925 Use char because int might match the return type of a GCC
29926 builtin and then its argument prototype would still apply. */
29931 /* The GNU C library defines this for functions which it implements
29932 to always fail with ENOSYS. Some functions are actually named
29933 something starting with __ and the normal name is an alias. */
29934 #if defined __stub_connect || defined __stub___connect
29946 rm -f conftest.$ac_objext conftest$ac_exeext
29947 if { (ac_try="$ac_link"
29948 case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_link") 2>conftest.er1
29955 grep -v '^ *+' conftest.er1 >conftest.err
29957 cat conftest.err >&5
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); } && {
29960 test -z "$ac_c_werror_flag" ||
29961 test ! -s conftest.err
29962 } && test -s conftest$ac_exeext &&
29963 $as_test_x conftest$ac_exeext; then
29964 ac_cv_func_connect=yes
29966 echo "$as_me: failed program was:" >&5
29967 sed 's/^/| /' conftest.$ac_ext >&5
29969 ac_cv_func_connect=no
29972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29973 conftest$ac_exeext conftest.$ac_ext
29975 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29976 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
29978 if test $ac_cv_func_connect = no; then
29979 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29980 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
29981 if test "${ac_cv_lib_socket_connect+set}" = set; then
29982 echo $ECHO_N "(cached) $ECHO_C" >&6
29984 ac_check_lib_save_LIBS=$LIBS
29985 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29986 cat >conftest.$ac_ext <<_ACEOF
29989 cat confdefs.h >>conftest.$ac_ext
29990 cat >>conftest.$ac_ext <<_ACEOF
29991 /* end confdefs.h. */
29993 /* Override any GCC internal prototype to avoid an error.
29994 Use char because int might match the return type of a GCC
29995 builtin and then its argument prototype would still apply. */
30008 rm -f conftest.$ac_objext conftest$ac_exeext
30009 if { (ac_try="$ac_link"
30010 case "(($ac_try" in
30011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012 *) ac_try_echo=$ac_try;;
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015 (eval "$ac_link") 2>conftest.er1
30017 grep -v '^ *+' conftest.er1 >conftest.err
30019 cat conftest.err >&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); } && {
30022 test -z "$ac_c_werror_flag" ||
30023 test ! -s conftest.err
30024 } && test -s conftest$ac_exeext &&
30025 $as_test_x conftest$ac_exeext; then
30026 ac_cv_lib_socket_connect=yes
30028 echo "$as_me: failed program was:" >&5
30029 sed 's/^/| /' conftest.$ac_ext >&5
30031 ac_cv_lib_socket_connect=no
30034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30035 conftest$ac_exeext conftest.$ac_ext
30036 LIBS=$ac_check_lib_save_LIBS
30038 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30039 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30040 if test $ac_cv_lib_socket_connect = yes; then
30041 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30046 # Guillermo Gomez says -lposix is necessary on A/UX.
30047 { echo "$as_me:$LINENO: checking for remove" >&5
30048 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30049 if test "${ac_cv_func_remove+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30052 cat >conftest.$ac_ext <<_ACEOF
30055 cat confdefs.h >>conftest.$ac_ext
30056 cat >>conftest.$ac_ext <<_ACEOF
30057 /* end confdefs.h. */
30058 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30060 #define remove innocuous_remove
30062 /* System header to define __stub macros and hopefully few prototypes,
30063 which can conflict with char remove (); below.
30064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30065 <limits.h> exists even on freestanding compilers. */
30068 # include <limits.h>
30070 # include <assert.h>
30075 /* Override any GCC internal prototype to avoid an error.
30076 Use char because int might match the return type of a GCC
30077 builtin and then its argument prototype would still apply. */
30082 /* The GNU C library defines this for functions which it implements
30083 to always fail with ENOSYS. Some functions are actually named
30084 something starting with __ and the normal name is an alias. */
30085 #if defined __stub_remove || defined __stub___remove
30097 rm -f conftest.$ac_objext conftest$ac_exeext
30098 if { (ac_try="$ac_link"
30099 case "(($ac_try" in
30100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101 *) ac_try_echo=$ac_try;;
30103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30104 (eval "$ac_link") 2>conftest.er1
30106 grep -v '^ *+' conftest.er1 >conftest.err
30108 cat conftest.err >&5
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } && {
30111 test -z "$ac_c_werror_flag" ||
30112 test ! -s conftest.err
30113 } && test -s conftest$ac_exeext &&
30114 $as_test_x conftest$ac_exeext; then
30115 ac_cv_func_remove=yes
30117 echo "$as_me: failed program was:" >&5
30118 sed 's/^/| /' conftest.$ac_ext >&5
30120 ac_cv_func_remove=no
30123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30124 conftest$ac_exeext conftest.$ac_ext
30126 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30127 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30129 if test $ac_cv_func_remove = no; then
30130 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30131 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30132 if test "${ac_cv_lib_posix_remove+set}" = set; then
30133 echo $ECHO_N "(cached) $ECHO_C" >&6
30135 ac_check_lib_save_LIBS=$LIBS
30136 LIBS="-lposix $LIBS"
30137 cat >conftest.$ac_ext <<_ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h. */
30144 /* Override any GCC internal prototype to avoid an error.
30145 Use char because int might match the return type of a GCC
30146 builtin and then its argument prototype would still apply. */
30159 rm -f conftest.$ac_objext conftest$ac_exeext
30160 if { (ac_try="$ac_link"
30161 case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_link") 2>conftest.er1
30168 grep -v '^ *+' conftest.er1 >conftest.err
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } && {
30173 test -z "$ac_c_werror_flag" ||
30174 test ! -s conftest.err
30175 } && test -s conftest$ac_exeext &&
30176 $as_test_x conftest$ac_exeext; then
30177 ac_cv_lib_posix_remove=yes
30179 echo "$as_me: failed program was:" >&5
30180 sed 's/^/| /' conftest.$ac_ext >&5
30182 ac_cv_lib_posix_remove=no
30185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30186 conftest$ac_exeext conftest.$ac_ext
30187 LIBS=$ac_check_lib_save_LIBS
30189 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30190 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30191 if test $ac_cv_lib_posix_remove = yes; then
30192 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30197 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30198 { echo "$as_me:$LINENO: checking for shmat" >&5
30199 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30200 if test "${ac_cv_func_shmat+set}" = set; then
30201 echo $ECHO_N "(cached) $ECHO_C" >&6
30203 cat >conftest.$ac_ext <<_ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30211 #define shmat innocuous_shmat
30213 /* System header to define __stub macros and hopefully few prototypes,
30214 which can conflict with char shmat (); below.
30215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216 <limits.h> exists even on freestanding compilers. */
30219 # include <limits.h>
30221 # include <assert.h>
30226 /* Override any GCC internal prototype to avoid an error.
30227 Use char because int might match the return type of a GCC
30228 builtin and then its argument prototype would still apply. */
30233 /* The GNU C library defines this for functions which it implements
30234 to always fail with ENOSYS. Some functions are actually named
30235 something starting with __ and the normal name is an alias. */
30236 #if defined __stub_shmat || defined __stub___shmat
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252 *) ac_try_echo=$ac_try;;
30254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255 (eval "$ac_link") 2>conftest.er1
30257 grep -v '^ *+' conftest.er1 >conftest.err
30259 cat conftest.err >&5
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); } && {
30262 test -z "$ac_c_werror_flag" ||
30263 test ! -s conftest.err
30264 } && test -s conftest$ac_exeext &&
30265 $as_test_x conftest$ac_exeext; then
30266 ac_cv_func_shmat=yes
30268 echo "$as_me: failed program was:" >&5
30269 sed 's/^/| /' conftest.$ac_ext >&5
30271 ac_cv_func_shmat=no
30274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30275 conftest$ac_exeext conftest.$ac_ext
30277 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30278 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30280 if test $ac_cv_func_shmat = no; then
30281 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30282 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30283 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30286 ac_check_lib_save_LIBS=$LIBS
30288 cat >conftest.$ac_ext <<_ACEOF
30291 cat confdefs.h >>conftest.$ac_ext
30292 cat >>conftest.$ac_ext <<_ACEOF
30293 /* end confdefs.h. */
30295 /* Override any GCC internal prototype to avoid an error.
30296 Use char because int might match the return type of a GCC
30297 builtin and then its argument prototype would still apply. */
30310 rm -f conftest.$ac_objext conftest$ac_exeext
30311 if { (ac_try="$ac_link"
30312 case "(($ac_try" in
30313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30314 *) ac_try_echo=$ac_try;;
30316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30317 (eval "$ac_link") 2>conftest.er1
30319 grep -v '^ *+' conftest.er1 >conftest.err
30321 cat conftest.err >&5
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); } && {
30324 test -z "$ac_c_werror_flag" ||
30325 test ! -s conftest.err
30326 } && test -s conftest$ac_exeext &&
30327 $as_test_x conftest$ac_exeext; then
30328 ac_cv_lib_ipc_shmat=yes
30330 echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.$ac_ext >&5
30333 ac_cv_lib_ipc_shmat=no
30336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30337 conftest$ac_exeext conftest.$ac_ext
30338 LIBS=$ac_check_lib_save_LIBS
30340 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30341 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30342 if test $ac_cv_lib_ipc_shmat = yes; then
30343 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30349 # Check for libraries that X11R6 Xt/Xaw programs need.
30350 ac_save_LDFLAGS=$LDFLAGS
30351 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30352 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30353 # check for ICE first), but we must link in the order -lSM -lICE or
30354 # we get undefined symbols. So assume we have SM if we have ICE.
30355 # These have to be linked with before -lX11, unlike the other
30356 # libraries we check for below, so use a different variable.
30357 # John Interrante, Karl Berry
30358 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30359 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30360 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30361 echo $ECHO_N "(cached) $ECHO_C" >&6
30363 ac_check_lib_save_LIBS=$LIBS
30364 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30365 cat >conftest.$ac_ext <<_ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h. */
30372 /* Override any GCC internal prototype to avoid an error.
30373 Use char because int might match the return type of a GCC
30374 builtin and then its argument prototype would still apply. */
30378 char IceConnectionNumber ();
30382 return IceConnectionNumber ();
30387 rm -f conftest.$ac_objext conftest$ac_exeext
30388 if { (ac_try="$ac_link"
30389 case "(($ac_try" in
30390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391 *) ac_try_echo=$ac_try;;
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394 (eval "$ac_link") 2>conftest.er1
30396 grep -v '^ *+' conftest.er1 >conftest.err
30398 cat conftest.err >&5
30399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400 (exit $ac_status); } && {
30401 test -z "$ac_c_werror_flag" ||
30402 test ! -s conftest.err
30403 } && test -s conftest$ac_exeext &&
30404 $as_test_x conftest$ac_exeext; then
30405 ac_cv_lib_ICE_IceConnectionNumber=yes
30407 echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30410 ac_cv_lib_ICE_IceConnectionNumber=no
30413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30414 conftest$ac_exeext conftest.$ac_ext
30415 LIBS=$ac_check_lib_save_LIBS
30417 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30418 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30419 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30420 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30423 LDFLAGS=$ac_save_LDFLAGS
30491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30496 echo $ECHO_N "(cached) $ECHO_C" >&6
30498 ac_res=`eval echo '${'$as_ac_Header'}'`
30499 { echo "$as_me:$LINENO: result: $ac_res" >&5
30500 echo "${ECHO_T}$ac_res" >&6; }
30502 # Is the header compilable?
30503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30505 cat >conftest.$ac_ext <<_ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h. */
30511 $ac_includes_default
30512 #include <$ac_header>
30514 rm -f conftest.$ac_objext
30515 if { (ac_try="$ac_compile"
30516 case "(($ac_try" in
30517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30518 *) ac_try_echo=$ac_try;;
30520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30521 (eval "$ac_compile") 2>conftest.er1
30523 grep -v '^ *+' conftest.er1 >conftest.err
30525 cat conftest.err >&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } && {
30528 test -z "$ac_c_werror_flag" ||
30529 test ! -s conftest.err
30530 } && test -s conftest.$ac_objext; then
30531 ac_header_compiler=yes
30533 echo "$as_me: failed program was:" >&5
30534 sed 's/^/| /' conftest.$ac_ext >&5
30536 ac_header_compiler=no
30539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30541 echo "${ECHO_T}$ac_header_compiler" >&6; }
30543 # Is the header present?
30544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30546 cat >conftest.$ac_ext <<_ACEOF
30549 cat confdefs.h >>conftest.$ac_ext
30550 cat >>conftest.$ac_ext <<_ACEOF
30551 /* end confdefs.h. */
30552 #include <$ac_header>
30554 if { (ac_try="$ac_cpp conftest.$ac_ext"
30555 case "(($ac_try" in
30556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30557 *) ac_try_echo=$ac_try;;
30559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30562 grep -v '^ *+' conftest.er1 >conftest.err
30564 cat conftest.err >&5
30565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566 (exit $ac_status); } >/dev/null && {
30567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30568 test ! -s conftest.err
30570 ac_header_preproc=yes
30572 echo "$as_me: failed program was:" >&5
30573 sed 's/^/| /' conftest.$ac_ext >&5
30575 ac_header_preproc=no
30578 rm -f conftest.err conftest.$ac_ext
30579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30580 echo "${ECHO_T}$ac_header_preproc" >&6; }
30582 # So? What about this header?
30583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30589 ac_header_preproc=yes
30592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30610 echo $ECHO_N "(cached) $ECHO_C" >&6
30612 eval "$as_ac_Header=\$ac_header_preproc"
30614 ac_res=`eval echo '${'$as_ac_Header'}'`
30615 { echo "$as_me:$LINENO: result: $ac_res" >&5
30616 echo "${ECHO_T}$ac_res" >&6; }
30619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30620 cat >>confdefs.h <<_ACEOF
30621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30628 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30630 if test "${ac_cv_header_stdc+set}" = set; then
30631 echo $ECHO_N "(cached) $ECHO_C" >&6
30633 cat >conftest.$ac_ext <<_ACEOF
30636 cat confdefs.h >>conftest.$ac_ext
30637 cat >>conftest.$ac_ext <<_ACEOF
30638 /* end confdefs.h. */
30639 #include <stdlib.h>
30640 #include <stdarg.h>
30641 #include <string.h>
30652 rm -f conftest.$ac_objext
30653 if { (ac_try="$ac_compile"
30654 case "(($ac_try" in
30655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656 *) ac_try_echo=$ac_try;;
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659 (eval "$ac_compile") 2>conftest.er1
30661 grep -v '^ *+' conftest.er1 >conftest.err
30663 cat conftest.err >&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); } && {
30666 test -z "$ac_c_werror_flag" ||
30667 test ! -s conftest.err
30668 } && test -s conftest.$ac_objext; then
30669 ac_cv_header_stdc=yes
30671 echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30674 ac_cv_header_stdc=no
30677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30679 if test $ac_cv_header_stdc = yes; then
30680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30681 cat >conftest.$ac_ext <<_ACEOF
30684 cat confdefs.h >>conftest.$ac_ext
30685 cat >>conftest.$ac_ext <<_ACEOF
30686 /* end confdefs.h. */
30687 #include <string.h>
30690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30691 $EGREP "memchr" >/dev/null 2>&1; then
30694 ac_cv_header_stdc=no
30700 if test $ac_cv_header_stdc = yes; then
30701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30702 cat >conftest.$ac_ext <<_ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h. */
30708 #include <stdlib.h>
30711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30712 $EGREP "free" >/dev/null 2>&1; then
30715 ac_cv_header_stdc=no
30721 if test $ac_cv_header_stdc = yes; then
30722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30723 if test "$cross_compiling" = yes; then
30726 cat >conftest.$ac_ext <<_ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h. */
30733 #include <stdlib.h>
30734 #if ((' ' & 0x0FF) == 0x020)
30735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30738 # define ISLOWER(c) \
30739 (('a' <= (c) && (c) <= 'i') \
30740 || ('j' <= (c) && (c) <= 'r') \
30741 || ('s' <= (c) && (c) <= 'z'))
30742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30750 for (i = 0; i < 256; i++)
30751 if (XOR (islower (i), ISLOWER (i))
30752 || toupper (i) != TOUPPER (i))
30757 rm -f conftest$ac_exeext
30758 if { (ac_try="$ac_link"
30759 case "(($ac_try" in
30760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761 *) ac_try_echo=$ac_try;;
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764 (eval "$ac_link") 2>&5
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30768 { (case "(($ac_try" in
30769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30770 *) ac_try_echo=$ac_try;;
30772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30773 (eval "$ac_try") 2>&5
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); }; }; then
30779 echo "$as_me: program exited with status $ac_status" >&5
30780 echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30783 ( exit $ac_status )
30784 ac_cv_header_stdc=no
30786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30792 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30793 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30794 if test $ac_cv_header_stdc = yes; then
30796 cat >>confdefs.h <<\_ACEOF
30797 #define STDC_HEADERS 1
30802 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30803 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30804 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30805 echo $ECHO_N "(cached) $ECHO_C" >&6
30807 cat >conftest.$ac_ext <<_ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h. */
30813 #include <sys/types.h>
30817 return makedev(0, 0);
30822 rm -f conftest.$ac_objext conftest$ac_exeext
30823 if { (ac_try="$ac_link"
30824 case "(($ac_try" in
30825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30826 *) ac_try_echo=$ac_try;;
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829 (eval "$ac_link") 2>conftest.er1
30831 grep -v '^ *+' conftest.er1 >conftest.err
30833 cat conftest.err >&5
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); } && {
30836 test -z "$ac_c_werror_flag" ||
30837 test ! -s conftest.err
30838 } && test -s conftest$ac_exeext &&
30839 $as_test_x conftest$ac_exeext; then
30840 ac_cv_header_sys_types_h_makedev=yes
30842 echo "$as_me: failed program was:" >&5
30843 sed 's/^/| /' conftest.$ac_ext >&5
30845 ac_cv_header_sys_types_h_makedev=no
30848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30849 conftest$ac_exeext conftest.$ac_ext
30852 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30853 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30855 if test $ac_cv_header_sys_types_h_makedev = no; then
30856 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30857 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30858 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30859 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30860 echo $ECHO_N "(cached) $ECHO_C" >&6
30862 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30863 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30865 # Is the header compilable?
30866 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30867 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30868 cat >conftest.$ac_ext <<_ACEOF
30871 cat confdefs.h >>conftest.$ac_ext
30872 cat >>conftest.$ac_ext <<_ACEOF
30873 /* end confdefs.h. */
30874 $ac_includes_default
30875 #include <sys/mkdev.h>
30877 rm -f conftest.$ac_objext
30878 if { (ac_try="$ac_compile"
30879 case "(($ac_try" in
30880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881 *) ac_try_echo=$ac_try;;
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884 (eval "$ac_compile") 2>conftest.er1
30886 grep -v '^ *+' conftest.er1 >conftest.err
30888 cat conftest.err >&5
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); } && {
30891 test -z "$ac_c_werror_flag" ||
30892 test ! -s conftest.err
30893 } && test -s conftest.$ac_objext; then
30894 ac_header_compiler=yes
30896 echo "$as_me: failed program was:" >&5
30897 sed 's/^/| /' conftest.$ac_ext >&5
30899 ac_header_compiler=no
30902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30904 echo "${ECHO_T}$ac_header_compiler" >&6; }
30906 # Is the header present?
30907 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30908 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30909 cat >conftest.$ac_ext <<_ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h. */
30915 #include <sys/mkdev.h>
30917 if { (ac_try="$ac_cpp conftest.$ac_ext"
30918 case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30925 grep -v '^ *+' conftest.er1 >conftest.err
30927 cat conftest.err >&5
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929 (exit $ac_status); } >/dev/null && {
30930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30931 test ! -s conftest.err
30933 ac_header_preproc=yes
30935 echo "$as_me: failed program was:" >&5
30936 sed 's/^/| /' conftest.$ac_ext >&5
30938 ac_header_preproc=no
30941 rm -f conftest.err conftest.$ac_ext
30942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30943 echo "${ECHO_T}$ac_header_preproc" >&6; }
30945 # So? What about this header?
30946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30948 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30949 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30950 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30951 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30952 ac_header_preproc=yes
30955 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30956 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30957 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30958 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30959 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30960 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30961 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30962 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30964 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30966 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30970 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30971 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30972 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30973 echo $ECHO_N "(cached) $ECHO_C" >&6
30975 ac_cv_header_sys_mkdev_h=$ac_header_preproc
30977 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30978 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30981 if test $ac_cv_header_sys_mkdev_h = yes; then
30983 cat >>confdefs.h <<\_ACEOF
30984 #define MAJOR_IN_MKDEV 1
30991 if test $ac_cv_header_sys_mkdev_h = no; then
30992 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
30993 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
30994 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
30995 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
30996 echo $ECHO_N "(cached) $ECHO_C" >&6
30998 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
30999 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31001 # Is the header compilable?
31002 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31003 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31004 cat >conftest.$ac_ext <<_ACEOF
31007 cat confdefs.h >>conftest.$ac_ext
31008 cat >>conftest.$ac_ext <<_ACEOF
31009 /* end confdefs.h. */
31010 $ac_includes_default
31011 #include <sys/sysmacros.h>
31013 rm -f conftest.$ac_objext
31014 if { (ac_try="$ac_compile"
31015 case "(($ac_try" in
31016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31017 *) ac_try_echo=$ac_try;;
31019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31020 (eval "$ac_compile") 2>conftest.er1
31022 grep -v '^ *+' conftest.er1 >conftest.err
31024 cat conftest.err >&5
31025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026 (exit $ac_status); } && {
31027 test -z "$ac_c_werror_flag" ||
31028 test ! -s conftest.err
31029 } && test -s conftest.$ac_objext; then
31030 ac_header_compiler=yes
31032 echo "$as_me: failed program was:" >&5
31033 sed 's/^/| /' conftest.$ac_ext >&5
31035 ac_header_compiler=no
31038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31040 echo "${ECHO_T}$ac_header_compiler" >&6; }
31042 # Is the header present?
31043 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31044 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31045 cat >conftest.$ac_ext <<_ACEOF
31048 cat confdefs.h >>conftest.$ac_ext
31049 cat >>conftest.$ac_ext <<_ACEOF
31050 /* end confdefs.h. */
31051 #include <sys/sysmacros.h>
31053 if { (ac_try="$ac_cpp conftest.$ac_ext"
31054 case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31061 grep -v '^ *+' conftest.er1 >conftest.err
31063 cat conftest.err >&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } >/dev/null && {
31066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31067 test ! -s conftest.err
31069 ac_header_preproc=yes
31071 echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31074 ac_header_preproc=no
31077 rm -f conftest.err conftest.$ac_ext
31078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31079 echo "${ECHO_T}$ac_header_preproc" >&6; }
31081 # So? What about this header?
31082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31084 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31085 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31086 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31087 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31088 ac_header_preproc=yes
31091 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31092 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31093 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31094 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31095 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31096 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31097 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31098 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31099 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31100 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31101 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31102 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31106 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31107 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31108 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31111 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31113 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31114 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31117 if test $ac_cv_header_sys_sysmacros_h = yes; then
31119 cat >>confdefs.h <<\_ACEOF
31120 #define MAJOR_IN_SYSMACROS 1
31134 ac_header_dirent=no
31135 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31136 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31137 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31138 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31140 echo $ECHO_N "(cached) $ECHO_C" >&6
31142 cat >conftest.$ac_ext <<_ACEOF
31145 cat confdefs.h >>conftest.$ac_ext
31146 cat >>conftest.$ac_ext <<_ACEOF
31147 /* end confdefs.h. */
31148 #include <sys/types.h>
31160 rm -f conftest.$ac_objext
31161 if { (ac_try="$ac_compile"
31162 case "(($ac_try" in
31163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31164 *) ac_try_echo=$ac_try;;
31166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31167 (eval "$ac_compile") 2>conftest.er1
31169 grep -v '^ *+' conftest.er1 >conftest.err
31171 cat conftest.err >&5
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); } && {
31174 test -z "$ac_c_werror_flag" ||
31175 test ! -s conftest.err
31176 } && test -s conftest.$ac_objext; then
31177 eval "$as_ac_Header=yes"
31179 echo "$as_me: failed program was:" >&5
31180 sed 's/^/| /' conftest.$ac_ext >&5
31182 eval "$as_ac_Header=no"
31185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31187 ac_res=`eval echo '${'$as_ac_Header'}'`
31188 { echo "$as_me:$LINENO: result: $ac_res" >&5
31189 echo "${ECHO_T}$ac_res" >&6; }
31190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31191 cat >>confdefs.h <<_ACEOF
31192 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31195 ac_header_dirent=$ac_hdr; break
31199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31200 if test $ac_header_dirent = dirent.h; then
31201 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31203 if test "${ac_cv_search_opendir+set}" = set; then
31204 echo $ECHO_N "(cached) $ECHO_C" >&6
31206 ac_func_search_save_LIBS=$LIBS
31207 cat >conftest.$ac_ext <<_ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h. */
31214 /* Override any GCC internal prototype to avoid an error.
31215 Use char because int might match the return type of a GCC
31216 builtin and then its argument prototype would still apply. */
31229 for ac_lib in '' dir; do
31230 if test -z "$ac_lib"; then
31231 ac_res="none required"
31234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31236 rm -f conftest.$ac_objext conftest$ac_exeext
31237 if { (ac_try="$ac_link"
31238 case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243 (eval "$ac_link") 2>conftest.er1
31245 grep -v '^ *+' conftest.er1 >conftest.err
31247 cat conftest.err >&5
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); } && {
31250 test -z "$ac_c_werror_flag" ||
31251 test ! -s conftest.err
31252 } && test -s conftest$ac_exeext &&
31253 $as_test_x conftest$ac_exeext; then
31254 ac_cv_search_opendir=$ac_res
31256 echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31264 if test "${ac_cv_search_opendir+set}" = set; then
31268 if test "${ac_cv_search_opendir+set}" = set; then
31271 ac_cv_search_opendir=no
31273 rm conftest.$ac_ext
31274 LIBS=$ac_func_search_save_LIBS
31276 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31277 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31278 ac_res=$ac_cv_search_opendir
31279 if test "$ac_res" != no; then
31280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31285 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31286 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31287 if test "${ac_cv_search_opendir+set}" = set; then
31288 echo $ECHO_N "(cached) $ECHO_C" >&6
31290 ac_func_search_save_LIBS=$LIBS
31291 cat >conftest.$ac_ext <<_ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h. */
31298 /* Override any GCC internal prototype to avoid an error.
31299 Use char because int might match the return type of a GCC
31300 builtin and then its argument prototype would still apply. */
31313 for ac_lib in '' x; do
31314 if test -z "$ac_lib"; then
31315 ac_res="none required"
31318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31320 rm -f conftest.$ac_objext conftest$ac_exeext
31321 if { (ac_try="$ac_link"
31322 case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_link") 2>conftest.er1
31329 grep -v '^ *+' conftest.er1 >conftest.err
31331 cat conftest.err >&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); } && {
31334 test -z "$ac_c_werror_flag" ||
31335 test ! -s conftest.err
31336 } && test -s conftest$ac_exeext &&
31337 $as_test_x conftest$ac_exeext; then
31338 ac_cv_search_opendir=$ac_res
31340 echo "$as_me: failed program was:" >&5
31341 sed 's/^/| /' conftest.$ac_ext >&5
31346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31348 if test "${ac_cv_search_opendir+set}" = set; then
31352 if test "${ac_cv_search_opendir+set}" = set; then
31355 ac_cv_search_opendir=no
31357 rm conftest.$ac_ext
31358 LIBS=$ac_func_search_save_LIBS
31360 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31361 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31362 ac_res=$ac_cv_search_opendir
31363 if test "$ac_res" != no; then
31364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31370 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31371 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31372 if test "${ac_cv_header_stat_broken+set}" = set; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31375 cat >conftest.$ac_ext <<_ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31381 #include <sys/types.h>
31382 #include <sys/stat.h>
31384 #if defined S_ISBLK && defined S_IFDIR
31385 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31388 #if defined S_ISBLK && defined S_IFCHR
31389 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31392 #if defined S_ISLNK && defined S_IFREG
31393 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31396 #if defined S_ISSOCK && defined S_IFREG
31397 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31401 rm -f conftest.$ac_objext
31402 if { (ac_try="$ac_compile"
31403 case "(($ac_try" in
31404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_compile") 2>conftest.er1
31410 grep -v '^ *+' conftest.er1 >conftest.err
31412 cat conftest.err >&5
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); } && {
31415 test -z "$ac_c_werror_flag" ||
31416 test ! -s conftest.err
31417 } && test -s conftest.$ac_objext; then
31418 ac_cv_header_stat_broken=no
31420 echo "$as_me: failed program was:" >&5
31421 sed 's/^/| /' conftest.$ac_ext >&5
31423 ac_cv_header_stat_broken=yes
31426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31428 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31429 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31430 if test $ac_cv_header_stat_broken = yes; then
31432 cat >>confdefs.h <<\_ACEOF
31433 #define STAT_MACROS_BROKEN 1
31438 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31439 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31440 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
31443 cat >conftest.$ac_ext <<_ACEOF
31446 cat confdefs.h >>conftest.$ac_ext
31447 cat >>conftest.$ac_ext <<_ACEOF
31448 /* end confdefs.h. */
31449 #include <sys/types.h>
31450 #include <sys/wait.h>
31451 #ifndef WEXITSTATUS
31452 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31455 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31463 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31468 rm -f conftest.$ac_objext
31469 if { (ac_try="$ac_compile"
31470 case "(($ac_try" in
31471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31472 *) ac_try_echo=$ac_try;;
31474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31475 (eval "$ac_compile") 2>conftest.er1
31477 grep -v '^ *+' conftest.er1 >conftest.err
31479 cat conftest.err >&5
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } && {
31482 test -z "$ac_c_werror_flag" ||
31483 test ! -s conftest.err
31484 } && test -s conftest.$ac_objext; then
31485 ac_cv_header_sys_wait_h=yes
31487 echo "$as_me: failed program was:" >&5
31488 sed 's/^/| /' conftest.$ac_ext >&5
31490 ac_cv_header_sys_wait_h=no
31493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31495 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31496 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31497 if test $ac_cv_header_sys_wait_h = yes; then
31499 cat >>confdefs.h <<\_ACEOF
31500 #define HAVE_SYS_WAIT_H 1
31505 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31506 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31507 if test "${ac_cv_header_time+set}" = set; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31510 cat >conftest.$ac_ext <<_ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h. */
31516 #include <sys/types.h>
31517 #include <sys/time.h>
31523 if ((struct tm *) 0)
31529 rm -f conftest.$ac_objext
31530 if { (ac_try="$ac_compile"
31531 case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_compile") 2>conftest.er1
31538 grep -v '^ *+' conftest.er1 >conftest.err
31540 cat conftest.err >&5
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); } && {
31543 test -z "$ac_c_werror_flag" ||
31544 test ! -s conftest.err
31545 } && test -s conftest.$ac_objext; then
31546 ac_cv_header_time=yes
31548 echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31551 ac_cv_header_time=no
31554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31556 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31557 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31558 if test $ac_cv_header_time = yes; then
31560 cat >>confdefs.h <<\_ACEOF
31561 #define TIME_WITH_SYS_TIME 1
31566 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31567 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31568 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31571 cat >conftest.$ac_ext <<_ACEOF
31574 cat confdefs.h >>conftest.$ac_ext
31575 cat >>conftest.$ac_ext <<_ACEOF
31576 /* end confdefs.h. */
31577 $ac_includes_default
31581 static struct stat ac_aggr;
31582 if (ac_aggr.st_blksize)
31588 rm -f conftest.$ac_objext
31589 if { (ac_try="$ac_compile"
31590 case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_compile") 2>conftest.er1
31597 grep -v '^ *+' conftest.er1 >conftest.err
31599 cat conftest.err >&5
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); } && {
31602 test -z "$ac_c_werror_flag" ||
31603 test ! -s conftest.err
31604 } && test -s conftest.$ac_objext; then
31605 ac_cv_member_struct_stat_st_blksize=yes
31607 echo "$as_me: failed program was:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31610 cat >conftest.$ac_ext <<_ACEOF
31613 cat confdefs.h >>conftest.$ac_ext
31614 cat >>conftest.$ac_ext <<_ACEOF
31615 /* end confdefs.h. */
31616 $ac_includes_default
31620 static struct stat ac_aggr;
31621 if (sizeof ac_aggr.st_blksize)
31627 rm -f conftest.$ac_objext
31628 if { (ac_try="$ac_compile"
31629 case "(($ac_try" in
31630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631 *) ac_try_echo=$ac_try;;
31633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31634 (eval "$ac_compile") 2>conftest.er1
31636 grep -v '^ *+' conftest.er1 >conftest.err
31638 cat conftest.err >&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } && {
31641 test -z "$ac_c_werror_flag" ||
31642 test ! -s conftest.err
31643 } && test -s conftest.$ac_objext; then
31644 ac_cv_member_struct_stat_st_blksize=yes
31646 echo "$as_me: failed program was:" >&5
31647 sed 's/^/| /' conftest.$ac_ext >&5
31649 ac_cv_member_struct_stat_st_blksize=no
31652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31657 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31658 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31659 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31661 cat >>confdefs.h <<_ACEOF
31662 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31666 cat >>confdefs.h <<\_ACEOF
31667 #define HAVE_ST_BLKSIZE 1
31673 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31674 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31675 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31676 echo $ECHO_N "(cached) $ECHO_C" >&6
31678 cat >conftest.$ac_ext <<_ACEOF
31681 cat confdefs.h >>conftest.$ac_ext
31682 cat >>conftest.$ac_ext <<_ACEOF
31683 /* end confdefs.h. */
31684 $ac_includes_default
31688 static struct stat ac_aggr;
31689 if (ac_aggr.st_blocks)
31695 rm -f conftest.$ac_objext
31696 if { (ac_try="$ac_compile"
31697 case "(($ac_try" in
31698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699 *) ac_try_echo=$ac_try;;
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702 (eval "$ac_compile") 2>conftest.er1
31704 grep -v '^ *+' conftest.er1 >conftest.err
31706 cat conftest.err >&5
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); } && {
31709 test -z "$ac_c_werror_flag" ||
31710 test ! -s conftest.err
31711 } && test -s conftest.$ac_objext; then
31712 ac_cv_member_struct_stat_st_blocks=yes
31714 echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31717 cat >conftest.$ac_ext <<_ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h. */
31723 $ac_includes_default
31727 static struct stat ac_aggr;
31728 if (sizeof ac_aggr.st_blocks)
31734 rm -f conftest.$ac_objext
31735 if { (ac_try="$ac_compile"
31736 case "(($ac_try" in
31737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31738 *) ac_try_echo=$ac_try;;
31740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31741 (eval "$ac_compile") 2>conftest.er1
31743 grep -v '^ *+' conftest.er1 >conftest.err
31745 cat conftest.err >&5
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); } && {
31748 test -z "$ac_c_werror_flag" ||
31749 test ! -s conftest.err
31750 } && test -s conftest.$ac_objext; then
31751 ac_cv_member_struct_stat_st_blocks=yes
31753 echo "$as_me: failed program was:" >&5
31754 sed 's/^/| /' conftest.$ac_ext >&5
31756 ac_cv_member_struct_stat_st_blocks=no
31759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31764 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31765 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31766 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31768 cat >>confdefs.h <<_ACEOF
31769 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31773 cat >>confdefs.h <<\_ACEOF
31774 #define HAVE_ST_BLOCKS 1
31778 case " $LIBOBJS " in
31779 *" fileblocks.$ac_objext "* ) ;;
31780 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31787 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31788 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31789 if test "${ac_cv_struct_tm+set}" = set; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31792 cat >conftest.$ac_ext <<_ACEOF
31795 cat confdefs.h >>conftest.$ac_ext
31796 cat >>conftest.$ac_ext <<_ACEOF
31797 /* end confdefs.h. */
31798 #include <sys/types.h>
31805 int *p = &tm.tm_sec;
31811 rm -f conftest.$ac_objext
31812 if { (ac_try="$ac_compile"
31813 case "(($ac_try" in
31814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31815 *) ac_try_echo=$ac_try;;
31817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31818 (eval "$ac_compile") 2>conftest.er1
31820 grep -v '^ *+' conftest.er1 >conftest.err
31822 cat conftest.err >&5
31823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); } && {
31825 test -z "$ac_c_werror_flag" ||
31826 test ! -s conftest.err
31827 } && test -s conftest.$ac_objext; then
31828 ac_cv_struct_tm=time.h
31830 echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31833 ac_cv_struct_tm=sys/time.h
31836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31838 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31839 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31840 if test $ac_cv_struct_tm = sys/time.h; then
31842 cat >>confdefs.h <<\_ACEOF
31843 #define TM_IN_SYS_TIME 1
31848 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31849 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31850 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31853 cat >conftest.$ac_ext <<_ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h. */
31859 #include <sys/types.h>
31860 #include <$ac_cv_struct_tm>
31866 static struct tm ac_aggr;
31867 if (ac_aggr.tm_zone)
31873 rm -f conftest.$ac_objext
31874 if { (ac_try="$ac_compile"
31875 case "(($ac_try" in
31876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31877 *) ac_try_echo=$ac_try;;
31879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31880 (eval "$ac_compile") 2>conftest.er1
31882 grep -v '^ *+' conftest.er1 >conftest.err
31884 cat conftest.err >&5
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); } && {
31887 test -z "$ac_c_werror_flag" ||
31888 test ! -s conftest.err
31889 } && test -s conftest.$ac_objext; then
31890 ac_cv_member_struct_tm_tm_zone=yes
31892 echo "$as_me: failed program was:" >&5
31893 sed 's/^/| /' conftest.$ac_ext >&5
31895 cat >conftest.$ac_ext <<_ACEOF
31898 cat confdefs.h >>conftest.$ac_ext
31899 cat >>conftest.$ac_ext <<_ACEOF
31900 /* end confdefs.h. */
31901 #include <sys/types.h>
31902 #include <$ac_cv_struct_tm>
31908 static struct tm ac_aggr;
31909 if (sizeof ac_aggr.tm_zone)
31915 rm -f conftest.$ac_objext
31916 if { (ac_try="$ac_compile"
31917 case "(($ac_try" in
31918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31919 *) ac_try_echo=$ac_try;;
31921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31922 (eval "$ac_compile") 2>conftest.er1
31924 grep -v '^ *+' conftest.er1 >conftest.err
31926 cat conftest.err >&5
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } && {
31929 test -z "$ac_c_werror_flag" ||
31930 test ! -s conftest.err
31931 } && test -s conftest.$ac_objext; then
31932 ac_cv_member_struct_tm_tm_zone=yes
31934 echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31937 ac_cv_member_struct_tm_tm_zone=no
31940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31945 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31946 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31947 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31949 cat >>confdefs.h <<_ACEOF
31950 #define HAVE_STRUCT_TM_TM_ZONE 1
31956 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31958 cat >>confdefs.h <<\_ACEOF
31959 #define HAVE_TM_ZONE 1
31963 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31964 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31965 if test "${ac_cv_have_decl_tzname+set}" = set; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31968 cat >conftest.$ac_ext <<_ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h. */
31987 rm -f conftest.$ac_objext
31988 if { (ac_try="$ac_compile"
31989 case "(($ac_try" in
31990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991 *) ac_try_echo=$ac_try;;
31993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994 (eval "$ac_compile") 2>conftest.er1
31996 grep -v '^ *+' conftest.er1 >conftest.err
31998 cat conftest.err >&5
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); } && {
32001 test -z "$ac_c_werror_flag" ||
32002 test ! -s conftest.err
32003 } && test -s conftest.$ac_objext; then
32004 ac_cv_have_decl_tzname=yes
32006 echo "$as_me: failed program was:" >&5
32007 sed 's/^/| /' conftest.$ac_ext >&5
32009 ac_cv_have_decl_tzname=no
32012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32014 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32015 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32016 if test $ac_cv_have_decl_tzname = yes; then
32018 cat >>confdefs.h <<_ACEOF
32019 #define HAVE_DECL_TZNAME 1
32024 cat >>confdefs.h <<_ACEOF
32025 #define HAVE_DECL_TZNAME 0
32032 { echo "$as_me:$LINENO: checking for tzname" >&5
32033 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32034 if test "${ac_cv_var_tzname+set}" = set; then
32035 echo $ECHO_N "(cached) $ECHO_C" >&6
32037 cat >conftest.$ac_ext <<_ACEOF
32040 cat confdefs.h >>conftest.$ac_ext
32041 cat >>conftest.$ac_ext <<_ACEOF
32042 /* end confdefs.h. */
32044 #if !HAVE_DECL_TZNAME
32045 extern char *tzname[];
32051 return tzname[0][0];
32056 rm -f conftest.$ac_objext conftest$ac_exeext
32057 if { (ac_try="$ac_link"
32058 case "(($ac_try" in
32059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060 *) ac_try_echo=$ac_try;;
32062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063 (eval "$ac_link") 2>conftest.er1
32065 grep -v '^ *+' conftest.er1 >conftest.err
32067 cat conftest.err >&5
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); } && {
32070 test -z "$ac_c_werror_flag" ||
32071 test ! -s conftest.err
32072 } && test -s conftest$ac_exeext &&
32073 $as_test_x conftest$ac_exeext; then
32074 ac_cv_var_tzname=yes
32076 echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32079 ac_cv_var_tzname=no
32082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32083 conftest$ac_exeext conftest.$ac_ext
32085 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32086 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32087 if test $ac_cv_var_tzname = yes; then
32089 cat >>confdefs.h <<\_ACEOF
32090 #define HAVE_TZNAME 1
32097 { echo "$as_me:$LINENO: checking for utime.h" >&5
32098 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32099 if test "${ba_cv_header_utime_h+set}" = set; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
32103 cat >conftest.$ac_ext <<_ACEOF
32106 cat confdefs.h >>conftest.$ac_ext
32107 cat >>conftest.$ac_ext <<_ACEOF
32108 /* end confdefs.h. */
32110 #include <sys/types.h>
32123 rm -f conftest.$ac_objext
32124 if { (ac_try="$ac_compile"
32125 case "(($ac_try" in
32126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32127 *) ac_try_echo=$ac_try;;
32129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32130 (eval "$ac_compile") 2>conftest.er1
32132 grep -v '^ *+' conftest.er1 >conftest.err
32134 cat conftest.err >&5
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); } && {
32137 test -z "$ac_c_werror_flag" ||
32138 test ! -s conftest.err
32139 } && test -s conftest.$ac_objext; then
32141 ba_cv_header_utime_h=yes
32144 echo "$as_me: failed program was:" >&5
32145 sed 's/^/| /' conftest.$ac_ext >&5
32148 ba_cv_header_utime_h=no
32153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32157 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32158 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32159 test $ba_cv_header_utime_h = yes &&
32160 cat >>confdefs.h <<\_ACEOF
32161 #define HAVE_UTIME_H 1
32165 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32166 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32167 if test "${ba_cv_header_socklen_t+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32171 cat >conftest.$ac_ext <<_ACEOF
32174 cat confdefs.h >>conftest.$ac_ext
32175 cat >>conftest.$ac_ext <<_ACEOF
32176 /* end confdefs.h. */
32178 #include <sys/types.h>
32179 #include <sys/socket.h>
32191 rm -f conftest.$ac_objext
32192 if { (ac_try="$ac_compile"
32193 case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_compile") 2>conftest.er1
32200 grep -v '^ *+' conftest.er1 >conftest.err
32202 cat conftest.err >&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); } && {
32205 test -z "$ac_c_werror_flag" ||
32206 test ! -s conftest.err
32207 } && test -s conftest.$ac_objext; then
32209 ba_cv_header_socklen_t=yes
32212 echo "$as_me: failed program was:" >&5
32213 sed 's/^/| /' conftest.$ac_ext >&5
32216 ba_cv_header_socklen_t=no
32221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32226 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32227 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32228 #define HAVE_SOCKLEN_T 1
32232 { echo "$as_me:$LINENO: checking for bigendian" >&5
32233 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32234 if test "${ba_cv_bigendian+set}" = set; then
32235 echo $ECHO_N "(cached) $ECHO_C" >&6
32238 if test "$cross_compiling" = yes; then
32244 cat >conftest.$ac_ext <<_ACEOF
32247 cat confdefs.h >>conftest.$ac_ext
32248 cat >>conftest.$ac_ext <<_ACEOF
32249 /* end confdefs.h. */
32251 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32254 rm -f conftest$ac_exeext
32255 if { (ac_try="$ac_link"
32256 case "(($ac_try" in
32257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32258 *) ac_try_echo=$ac_try;;
32260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32261 (eval "$ac_link") 2>&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32265 { (case "(($ac_try" in
32266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32267 *) ac_try_echo=$ac_try;;
32269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32270 (eval "$ac_try") 2>&5
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); }; }; then
32275 ba_cv_bigendian=yes
32278 echo "$as_me: program exited with status $ac_status" >&5
32279 echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32282 ( exit $ac_status )
32287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32294 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32295 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32296 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32297 #define HAVE_BIGENDIAN 1
32302 ac_cpp='$CXXCPP $CPPFLAGS'
32303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32307 { echo "$as_me:$LINENO: checking for typeof" >&5
32308 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32309 if test "${ba_cv_have_typeof+set}" = set; then
32310 echo $ECHO_N "(cached) $ECHO_C" >&6
32313 if test "$cross_compiling" = yes; then
32315 ba_cv_have_typeof=no
32319 cat >conftest.$ac_ext <<_ACEOF
32322 cat confdefs.h >>conftest.$ac_ext
32323 cat >>conftest.$ac_ext <<_ACEOF
32324 /* end confdefs.h. */
32326 main(){char *a = 0; a = (typeof a)a;}
32329 rm -f conftest$ac_exeext
32330 if { (ac_try="$ac_link"
32331 case "(($ac_try" in
32332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32333 *) ac_try_echo=$ac_try;;
32335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32336 (eval "$ac_link") 2>&5
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32340 { (case "(($ac_try" in
32341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32342 *) ac_try_echo=$ac_try;;
32344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32345 (eval "$ac_try") 2>&5
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); }; }; then
32350 ba_cv_have_typeof=yes
32353 echo "$as_me: program exited with status $ac_status" >&5
32354 echo "$as_me: failed program was:" >&5
32355 sed 's/^/| /' conftest.$ac_ext >&5
32357 ( exit $ac_status )
32359 ba_cv_have_typeof=no
32362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32369 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32370 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32371 test $ba_cv_have_typeof = yes &&
32372 cat >>confdefs.h <<\_ACEOF
32373 #define HAVE_TYPEOF 1
32377 ac_cpp='$CPP $CPPFLAGS'
32378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32383 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32384 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32385 if test "${ac_cv_c_const+set}" = set; then
32386 echo $ECHO_N "(cached) $ECHO_C" >&6
32388 cat >conftest.$ac_ext <<_ACEOF
32391 cat confdefs.h >>conftest.$ac_ext
32392 cat >>conftest.$ac_ext <<_ACEOF
32393 /* end confdefs.h. */
32398 /* FIXME: Include the comments suggested by Paul. */
32399 #ifndef __cplusplus
32400 /* Ultrix mips cc rejects this. */
32401 typedef int charset[2];
32403 /* SunOS 4.1.1 cc rejects this. */
32404 char const *const *pcpcc;
32406 /* NEC SVR4.0.2 mips cc rejects this. */
32407 struct point {int x, y;};
32408 static struct point const zero = {0,0};
32409 /* AIX XL C 1.02.0.0 rejects this.
32410 It does not let you subtract one const X* pointer from another in
32411 an arm of an if-expression whose if-part is not a constant
32413 const char *g = "string";
32414 pcpcc = &g + (g ? g-g : 0);
32415 /* HPUX 7.0 cc rejects these. */
32417 ppc = (char**) pcpcc;
32418 pcpcc = (char const *const *) ppc;
32419 { /* SCO 3.2v4 cc rejects this. */
32421 char const *s = 0 ? (char *) 0 : (char const *) 0;
32426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32427 int x[] = {25, 17};
32428 const int *foo = &x[0];
32431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32432 typedef const int *iptr;
32436 { /* AIX XL C 1.02.0.0 rejects this saying
32437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32438 struct s { int j; const int *ap[3]; };
32439 struct s *b; b->j = 5;
32441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32442 const int foo = 10;
32443 if (!foo) return 0;
32445 return !cs[0] && !zero.x;
32452 rm -f conftest.$ac_objext
32453 if { (ac_try="$ac_compile"
32454 case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_compile") 2>conftest.er1
32461 grep -v '^ *+' conftest.er1 >conftest.err
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } && {
32466 test -z "$ac_c_werror_flag" ||
32467 test ! -s conftest.err
32468 } && test -s conftest.$ac_objext; then
32471 echo "$as_me: failed program was:" >&5
32472 sed 's/^/| /' conftest.$ac_ext >&5
32477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32479 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32480 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32481 if test $ac_cv_c_const = no; then
32483 cat >>confdefs.h <<\_ACEOF
32490 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32491 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32493 # The order of these tests is important.
32494 cat >conftest.$ac_ext <<_ACEOF
32497 cat confdefs.h >>conftest.$ac_ext
32498 cat >>conftest.$ac_ext <<_ACEOF
32499 /* end confdefs.h. */
32501 #include <sys/statvfs.h>
32502 #include <sys/fstyp.h>
32505 if { (ac_try="$ac_cpp conftest.$ac_ext"
32506 case "(($ac_try" in
32507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32508 *) ac_try_echo=$ac_try;;
32510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32513 grep -v '^ *+' conftest.er1 >conftest.err
32515 cat conftest.err >&5
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); } >/dev/null && {
32518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32519 test ! -s conftest.err
32521 cat >>confdefs.h <<\_ACEOF
32522 #define FSTYPE_STATVFS 1
32527 echo "$as_me: failed program was:" >&5
32528 sed 's/^/| /' conftest.$ac_ext >&5
32533 rm -f conftest.err conftest.$ac_ext
32534 if test $fstype = no; then
32535 cat >conftest.$ac_ext <<_ACEOF
32538 cat confdefs.h >>conftest.$ac_ext
32539 cat >>conftest.$ac_ext <<_ACEOF
32540 /* end confdefs.h. */
32542 #include <sys/statfs.h>
32543 #include <sys/fstyp.h>
32546 if { (ac_try="$ac_cpp conftest.$ac_ext"
32547 case "(($ac_try" in
32548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32549 *) ac_try_echo=$ac_try;;
32551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32554 grep -v '^ *+' conftest.er1 >conftest.err
32556 cat conftest.err >&5
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); } >/dev/null && {
32559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32560 test ! -s conftest.err
32562 cat >>confdefs.h <<\_ACEOF
32563 #define FSTYPE_USG_STATFS 1
32568 echo "$as_me: failed program was:" >&5
32569 sed 's/^/| /' conftest.$ac_ext >&5
32574 rm -f conftest.err conftest.$ac_ext
32576 if test $fstype = no; then
32577 cat >conftest.$ac_ext <<_ACEOF
32580 cat confdefs.h >>conftest.$ac_ext
32581 cat >>conftest.$ac_ext <<_ACEOF
32582 /* end confdefs.h. */
32584 #include <sys/statfs.h>
32585 #include <sys/vmount.h>
32588 if { (ac_try="$ac_cpp conftest.$ac_ext"
32589 case "(($ac_try" in
32590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591 *) ac_try_echo=$ac_try;;
32593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32596 grep -v '^ *+' conftest.er1 >conftest.err
32598 cat conftest.err >&5
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); } >/dev/null && {
32601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32602 test ! -s conftest.err
32604 cat >>confdefs.h <<\_ACEOF
32605 #define FSTYPE_AIX_STATFS 1
32610 echo "$as_me: failed program was:" >&5
32611 sed 's/^/| /' conftest.$ac_ext >&5
32616 rm -f conftest.err conftest.$ac_ext
32618 if test $fstype = no; then
32619 cat >conftest.$ac_ext <<_ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h. */
32626 #include <mntent.h>
32629 if { (ac_try="$ac_cpp conftest.$ac_ext"
32630 case "(($ac_try" in
32631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632 *) ac_try_echo=$ac_try;;
32634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32637 grep -v '^ *+' conftest.er1 >conftest.err
32639 cat conftest.err >&5
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); } >/dev/null && {
32642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32643 test ! -s conftest.err
32645 cat >>confdefs.h <<\_ACEOF
32646 #define FSTYPE_MNTENT 1
32651 echo "$as_me: failed program was:" >&5
32652 sed 's/^/| /' conftest.$ac_ext >&5
32657 rm -f conftest.err conftest.$ac_ext
32659 if test $fstype = no; then
32660 cat >conftest.$ac_ext <<_ACEOF
32663 cat confdefs.h >>conftest.$ac_ext
32664 cat >>conftest.$ac_ext <<_ACEOF
32665 /* end confdefs.h. */
32666 #include <sys/mount.h>
32669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32670 $EGREP "f_type;" >/dev/null 2>&1; then
32671 cat >>confdefs.h <<\_ACEOF
32672 #define FSTYPE_STATFS 1
32679 if test $fstype = no; then
32680 cat >conftest.$ac_ext <<_ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h. */
32687 #include <sys/mount.h>
32688 #include <sys/fs_types.h>
32691 if { (ac_try="$ac_cpp conftest.$ac_ext"
32692 case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32699 grep -v '^ *+' conftest.er1 >conftest.err
32701 cat conftest.err >&5
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); } >/dev/null && {
32704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32705 test ! -s conftest.err
32707 cat >>confdefs.h <<\_ACEOF
32708 #define FSTYPE_GETMNT 1
32713 echo "$as_me: failed program was:" >&5
32714 sed 's/^/| /' conftest.$ac_ext >&5
32719 rm -f conftest.err conftest.$ac_ext
32721 { echo "$as_me:$LINENO: result: $fstype" >&5
32722 echo "${ECHO_T}$fstype" >&6; }
32724 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32725 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32726 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32727 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32730 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32731 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32733 # Is the header compilable?
32734 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32735 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32736 cat >conftest.$ac_ext <<_ACEOF
32739 cat confdefs.h >>conftest.$ac_ext
32740 cat >>conftest.$ac_ext <<_ACEOF
32741 /* end confdefs.h. */
32742 $ac_includes_default
32743 #include <sys/statvfs.h>
32745 rm -f conftest.$ac_objext
32746 if { (ac_try="$ac_compile"
32747 case "(($ac_try" in
32748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32749 *) ac_try_echo=$ac_try;;
32751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32752 (eval "$ac_compile") 2>conftest.er1
32754 grep -v '^ *+' conftest.er1 >conftest.err
32756 cat conftest.err >&5
32757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758 (exit $ac_status); } && {
32759 test -z "$ac_c_werror_flag" ||
32760 test ! -s conftest.err
32761 } && test -s conftest.$ac_objext; then
32762 ac_header_compiler=yes
32764 echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32767 ac_header_compiler=no
32770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32772 echo "${ECHO_T}$ac_header_compiler" >&6; }
32774 # Is the header present?
32775 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32776 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32777 cat >conftest.$ac_ext <<_ACEOF
32780 cat confdefs.h >>conftest.$ac_ext
32781 cat >>conftest.$ac_ext <<_ACEOF
32782 /* end confdefs.h. */
32783 #include <sys/statvfs.h>
32785 if { (ac_try="$ac_cpp conftest.$ac_ext"
32786 case "(($ac_try" in
32787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32788 *) ac_try_echo=$ac_try;;
32790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32793 grep -v '^ *+' conftest.er1 >conftest.err
32795 cat conftest.err >&5
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); } >/dev/null && {
32798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32799 test ! -s conftest.err
32801 ac_header_preproc=yes
32803 echo "$as_me: failed program was:" >&5
32804 sed 's/^/| /' conftest.$ac_ext >&5
32806 ac_header_preproc=no
32809 rm -f conftest.err conftest.$ac_ext
32810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32811 echo "${ECHO_T}$ac_header_preproc" >&6; }
32813 # So? What about this header?
32814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32816 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32817 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32818 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32819 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32820 ac_header_preproc=yes
32823 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32824 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32825 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32826 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32827 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32828 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32829 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32830 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32831 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32832 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32833 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32834 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32838 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32839 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32840 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32841 echo $ECHO_N "(cached) $ECHO_C" >&6
32843 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32845 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32846 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32849 if test $ac_cv_header_sys_statvfs_h = yes; then
32851 cat >>confdefs.h <<\_ACEOF
32852 #define HAVE_SYS_STATVFS_H 1
32859 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32860 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32861 if test "${ac_cv_type_signal+set}" = set; then
32862 echo $ECHO_N "(cached) $ECHO_C" >&6
32864 cat >conftest.$ac_ext <<_ACEOF
32867 cat confdefs.h >>conftest.$ac_ext
32868 cat >>conftest.$ac_ext <<_ACEOF
32869 /* end confdefs.h. */
32870 #include <sys/types.h>
32871 #include <signal.h>
32876 return *(signal (0, 0)) (0) == 1;
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
32890 grep -v '^ *+' conftest.er1 >conftest.err
32892 cat conftest.err >&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } && {
32895 test -z "$ac_c_werror_flag" ||
32896 test ! -s conftest.err
32897 } && test -s conftest.$ac_objext; then
32898 ac_cv_type_signal=int
32900 echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32903 ac_cv_type_signal=void
32906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32908 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32909 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32911 cat >>confdefs.h <<_ACEOF
32912 #define RETSIGTYPE $ac_cv_type_signal
32917 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32918 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32919 if test "${bash_cv_signal_vintage+set}" = set; then
32920 echo $ECHO_N "(cached) $ECHO_C" >&6
32923 cat >conftest.$ac_ext <<_ACEOF
32926 cat confdefs.h >>conftest.$ac_ext
32927 cat >>conftest.$ac_ext <<_ACEOF
32928 /* end confdefs.h. */
32929 #include <signal.h>
32935 struct sigaction sa;
32936 sigemptyset(&ss); sigsuspend(&ss);
32937 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32938 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32944 rm -f conftest.$ac_objext conftest$ac_exeext
32945 if { (ac_try="$ac_link"
32946 case "(($ac_try" in
32947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948 *) ac_try_echo=$ac_try;;
32950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951 (eval "$ac_link") 2>conftest.er1
32953 grep -v '^ *+' conftest.er1 >conftest.err
32955 cat conftest.err >&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); } && {
32958 test -z "$ac_c_werror_flag" ||
32959 test ! -s conftest.err
32960 } && test -s conftest$ac_exeext &&
32961 $as_test_x conftest$ac_exeext; then
32962 bash_cv_signal_vintage="posix"
32964 echo "$as_me: failed program was:" >&5
32965 sed 's/^/| /' conftest.$ac_ext >&5
32968 cat >conftest.$ac_ext <<_ACEOF
32971 cat confdefs.h >>conftest.$ac_ext
32972 cat >>conftest.$ac_ext <<_ACEOF
32973 /* end confdefs.h. */
32974 #include <signal.h>
32979 int mask = sigmask(SIGINT);
32980 sigsetmask(mask); sigblock(mask); sigpause(mask);
32986 rm -f conftest.$ac_objext conftest$ac_exeext
32987 if { (ac_try="$ac_link"
32988 case "(($ac_try" in
32989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990 *) ac_try_echo=$ac_try;;
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993 (eval "$ac_link") 2>conftest.er1
32995 grep -v '^ *+' conftest.er1 >conftest.err
32997 cat conftest.err >&5
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); } && {
33000 test -z "$ac_c_werror_flag" ||
33001 test ! -s conftest.err
33002 } && test -s conftest$ac_exeext &&
33003 $as_test_x conftest$ac_exeext; then
33004 bash_cv_signal_vintage="4.2bsd"
33006 echo "$as_me: failed program was:" >&5
33007 sed 's/^/| /' conftest.$ac_ext >&5
33010 cat >conftest.$ac_ext <<_ACEOF
33013 cat confdefs.h >>conftest.$ac_ext
33014 cat >>conftest.$ac_ext <<_ACEOF
33015 /* end confdefs.h. */
33017 #include <signal.h>
33018 RETSIGTYPE foo() { }
33023 int mask = sigmask(SIGINT);
33024 sigset(SIGINT, foo); sigrelse(SIGINT);
33025 sighold(SIGINT); sigpause(SIGINT);
33031 rm -f conftest.$ac_objext conftest$ac_exeext
33032 if { (ac_try="$ac_link"
33033 case "(($ac_try" in
33034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035 *) ac_try_echo=$ac_try;;
33037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33038 (eval "$ac_link") 2>conftest.er1
33040 grep -v '^ *+' conftest.er1 >conftest.err
33042 cat conftest.err >&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); } && {
33045 test -z "$ac_c_werror_flag" ||
33046 test ! -s conftest.err
33047 } && test -s conftest$ac_exeext &&
33048 $as_test_x conftest$ac_exeext; then
33049 bash_cv_signal_vintage="svr3"
33051 echo "$as_me: failed program was:" >&5
33052 sed 's/^/| /' conftest.$ac_ext >&5
33054 bash_cv_signal_vintage="v7"
33058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33059 conftest$ac_exeext conftest.$ac_ext
33063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33064 conftest$ac_exeext conftest.$ac_ext
33068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33069 conftest$ac_exeext conftest.$ac_ext
33073 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33074 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33075 if test "$bash_cv_signal_vintage" = "posix"; then
33076 cat >>confdefs.h <<\_ACEOF
33077 #define HAVE_POSIX_SIGNALS 1
33080 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33081 cat >>confdefs.h <<\_ACEOF
33082 #define HAVE_BSD_SIGNALS 1
33085 elif test "$bash_cv_signal_vintage" = "svr3"; then
33086 cat >>confdefs.h <<\_ACEOF
33087 #define HAVE_USG_SIGHOLD 1
33092 { echo "$as_me:$LINENO: checking for mode_t" >&5
33093 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33094 if test "${ac_cv_type_mode_t+set}" = set; then
33095 echo $ECHO_N "(cached) $ECHO_C" >&6
33097 cat >conftest.$ac_ext <<_ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h. */
33103 $ac_includes_default
33104 typedef mode_t ac__type_new_;
33108 if ((ac__type_new_ *) 0)
33110 if (sizeof (ac__type_new_))
33116 rm -f conftest.$ac_objext
33117 if { (ac_try="$ac_compile"
33118 case "(($ac_try" in
33119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120 *) ac_try_echo=$ac_try;;
33122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123 (eval "$ac_compile") 2>conftest.er1
33125 grep -v '^ *+' conftest.er1 >conftest.err
33127 cat conftest.err >&5
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); } && {
33130 test -z "$ac_c_werror_flag" ||
33131 test ! -s conftest.err
33132 } && test -s conftest.$ac_objext; then
33133 ac_cv_type_mode_t=yes
33135 echo "$as_me: failed program was:" >&5
33136 sed 's/^/| /' conftest.$ac_ext >&5
33138 ac_cv_type_mode_t=no
33141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33143 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33144 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33145 if test $ac_cv_type_mode_t = yes; then
33149 cat >>confdefs.h <<_ACEOF
33155 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33156 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33157 if test "${ac_cv_type_uid_t+set}" = set; then
33158 echo $ECHO_N "(cached) $ECHO_C" >&6
33160 cat >conftest.$ac_ext <<_ACEOF
33163 cat confdefs.h >>conftest.$ac_ext
33164 cat >>conftest.$ac_ext <<_ACEOF
33165 /* end confdefs.h. */
33166 #include <sys/types.h>
33169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33170 $EGREP "uid_t" >/dev/null 2>&1; then
33171 ac_cv_type_uid_t=yes
33173 ac_cv_type_uid_t=no
33178 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33179 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33180 if test $ac_cv_type_uid_t = no; then
33182 cat >>confdefs.h <<\_ACEOF
33187 cat >>confdefs.h <<\_ACEOF
33193 { echo "$as_me:$LINENO: checking for size_t" >&5
33194 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33195 if test "${ac_cv_type_size_t+set}" = set; then
33196 echo $ECHO_N "(cached) $ECHO_C" >&6
33198 cat >conftest.$ac_ext <<_ACEOF
33201 cat confdefs.h >>conftest.$ac_ext
33202 cat >>conftest.$ac_ext <<_ACEOF
33203 /* end confdefs.h. */
33204 $ac_includes_default
33205 typedef size_t ac__type_new_;
33209 if ((ac__type_new_ *) 0)
33211 if (sizeof (ac__type_new_))
33217 rm -f conftest.$ac_objext
33218 if { (ac_try="$ac_compile"
33219 case "(($ac_try" in
33220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221 *) ac_try_echo=$ac_try;;
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224 (eval "$ac_compile") 2>conftest.er1
33226 grep -v '^ *+' conftest.er1 >conftest.err
33228 cat conftest.err >&5
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); } && {
33231 test -z "$ac_c_werror_flag" ||
33232 test ! -s conftest.err
33233 } && test -s conftest.$ac_objext; then
33234 ac_cv_type_size_t=yes
33236 echo "$as_me: failed program was:" >&5
33237 sed 's/^/| /' conftest.$ac_ext >&5
33239 ac_cv_type_size_t=no
33242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33244 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33245 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33246 if test $ac_cv_type_size_t = yes; then
33250 cat >>confdefs.h <<_ACEOF
33251 #define size_t unsigned int
33256 { echo "$as_me:$LINENO: checking for pid_t" >&5
33257 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33258 if test "${ac_cv_type_pid_t+set}" = set; then
33259 echo $ECHO_N "(cached) $ECHO_C" >&6
33261 cat >conftest.$ac_ext <<_ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h. */
33267 $ac_includes_default
33268 typedef pid_t ac__type_new_;
33272 if ((ac__type_new_ *) 0)
33274 if (sizeof (ac__type_new_))
33280 rm -f conftest.$ac_objext
33281 if { (ac_try="$ac_compile"
33282 case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_compile") 2>conftest.er1
33289 grep -v '^ *+' conftest.er1 >conftest.err
33291 cat conftest.err >&5
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); } && {
33294 test -z "$ac_c_werror_flag" ||
33295 test ! -s conftest.err
33296 } && test -s conftest.$ac_objext; then
33297 ac_cv_type_pid_t=yes
33299 echo "$as_me: failed program was:" >&5
33300 sed 's/^/| /' conftest.$ac_ext >&5
33302 ac_cv_type_pid_t=no
33305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33307 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33308 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33309 if test $ac_cv_type_pid_t = yes; then
33313 cat >>confdefs.h <<_ACEOF
33319 { echo "$as_me:$LINENO: checking for off_t" >&5
33320 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33321 if test "${ac_cv_type_off_t+set}" = set; then
33322 echo $ECHO_N "(cached) $ECHO_C" >&6
33324 cat >conftest.$ac_ext <<_ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h. */
33330 $ac_includes_default
33331 typedef off_t ac__type_new_;
33335 if ((ac__type_new_ *) 0)
33337 if (sizeof (ac__type_new_))
33343 rm -f conftest.$ac_objext
33344 if { (ac_try="$ac_compile"
33345 case "(($ac_try" in
33346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33347 *) ac_try_echo=$ac_try;;
33349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33350 (eval "$ac_compile") 2>conftest.er1
33352 grep -v '^ *+' conftest.er1 >conftest.err
33354 cat conftest.err >&5
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } && {
33357 test -z "$ac_c_werror_flag" ||
33358 test ! -s conftest.err
33359 } && test -s conftest.$ac_objext; then
33360 ac_cv_type_off_t=yes
33362 echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.$ac_ext >&5
33365 ac_cv_type_off_t=no
33368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33370 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33371 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33372 if test $ac_cv_type_off_t = yes; then
33376 cat >>confdefs.h <<_ACEOF
33377 #define off_t long int
33382 { echo "$as_me:$LINENO: checking for ino_t" >&5
33383 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33384 if test "${ac_cv_type_ino_t+set}" = set; then
33385 echo $ECHO_N "(cached) $ECHO_C" >&6
33387 cat >conftest.$ac_ext <<_ACEOF
33390 cat confdefs.h >>conftest.$ac_ext
33391 cat >>conftest.$ac_ext <<_ACEOF
33392 /* end confdefs.h. */
33393 $ac_includes_default
33394 typedef ino_t ac__type_new_;
33398 if ((ac__type_new_ *) 0)
33400 if (sizeof (ac__type_new_))
33406 rm -f conftest.$ac_objext
33407 if { (ac_try="$ac_compile"
33408 case "(($ac_try" in
33409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410 *) ac_try_echo=$ac_try;;
33412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413 (eval "$ac_compile") 2>conftest.er1
33415 grep -v '^ *+' conftest.er1 >conftest.err
33417 cat conftest.err >&5
33418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); } && {
33420 test -z "$ac_c_werror_flag" ||
33421 test ! -s conftest.err
33422 } && test -s conftest.$ac_objext; then
33423 ac_cv_type_ino_t=yes
33425 echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.$ac_ext >&5
33428 ac_cv_type_ino_t=no
33431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33433 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33434 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33435 if test $ac_cv_type_ino_t = yes; then
33439 cat >>confdefs.h <<_ACEOF
33440 #define ino_t unsigned long
33445 { echo "$as_me:$LINENO: checking for dev_t" >&5
33446 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33447 if test "${ac_cv_type_dev_t+set}" = set; then
33448 echo $ECHO_N "(cached) $ECHO_C" >&6
33450 cat >conftest.$ac_ext <<_ACEOF
33453 cat confdefs.h >>conftest.$ac_ext
33454 cat >>conftest.$ac_ext <<_ACEOF
33455 /* end confdefs.h. */
33456 $ac_includes_default
33457 typedef dev_t ac__type_new_;
33461 if ((ac__type_new_ *) 0)
33463 if (sizeof (ac__type_new_))
33469 rm -f conftest.$ac_objext
33470 if { (ac_try="$ac_compile"
33471 case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_compile") 2>conftest.er1
33478 grep -v '^ *+' conftest.er1 >conftest.err
33480 cat conftest.err >&5
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); } && {
33483 test -z "$ac_c_werror_flag" ||
33484 test ! -s conftest.err
33485 } && test -s conftest.$ac_objext; then
33486 ac_cv_type_dev_t=yes
33488 echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33491 ac_cv_type_dev_t=no
33494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33496 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33497 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33498 if test $ac_cv_type_dev_t = yes; then
33502 cat >>confdefs.h <<_ACEOF
33503 #define dev_t unsigned long
33508 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33509 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33510 if test "${ac_cv_type_daddr_t+set}" = set; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
33513 cat >conftest.$ac_ext <<_ACEOF
33516 cat confdefs.h >>conftest.$ac_ext
33517 cat >>conftest.$ac_ext <<_ACEOF
33518 /* end confdefs.h. */
33519 $ac_includes_default
33520 typedef daddr_t ac__type_new_;
33524 if ((ac__type_new_ *) 0)
33526 if (sizeof (ac__type_new_))
33532 rm -f conftest.$ac_objext
33533 if { (ac_try="$ac_compile"
33534 case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_compile") 2>conftest.er1
33541 grep -v '^ *+' conftest.er1 >conftest.err
33543 cat conftest.err >&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); } && {
33546 test -z "$ac_c_werror_flag" ||
33547 test ! -s conftest.err
33548 } && test -s conftest.$ac_objext; then
33549 ac_cv_type_daddr_t=yes
33551 echo "$as_me: failed program was:" >&5
33552 sed 's/^/| /' conftest.$ac_ext >&5
33554 ac_cv_type_daddr_t=no
33557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33559 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33560 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33561 if test $ac_cv_type_daddr_t = yes; then
33565 cat >>confdefs.h <<_ACEOF
33566 #define daddr_t long
33571 { echo "$as_me:$LINENO: checking for major_t" >&5
33572 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33573 if test "${ac_cv_type_major_t+set}" = set; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33576 cat >conftest.$ac_ext <<_ACEOF
33579 cat confdefs.h >>conftest.$ac_ext
33580 cat >>conftest.$ac_ext <<_ACEOF
33581 /* end confdefs.h. */
33582 $ac_includes_default
33583 typedef major_t ac__type_new_;
33587 if ((ac__type_new_ *) 0)
33589 if (sizeof (ac__type_new_))
33595 rm -f conftest.$ac_objext
33596 if { (ac_try="$ac_compile"
33597 case "(($ac_try" in
33598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33599 *) ac_try_echo=$ac_try;;
33601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33602 (eval "$ac_compile") 2>conftest.er1
33604 grep -v '^ *+' conftest.er1 >conftest.err
33606 cat conftest.err >&5
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } && {
33609 test -z "$ac_c_werror_flag" ||
33610 test ! -s conftest.err
33611 } && test -s conftest.$ac_objext; then
33612 ac_cv_type_major_t=yes
33614 echo "$as_me: failed program was:" >&5
33615 sed 's/^/| /' conftest.$ac_ext >&5
33617 ac_cv_type_major_t=no
33620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33622 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33623 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33624 if test $ac_cv_type_major_t = yes; then
33628 cat >>confdefs.h <<_ACEOF
33629 #define major_t int
33634 { echo "$as_me:$LINENO: checking for minor_t" >&5
33635 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33636 if test "${ac_cv_type_minor_t+set}" = set; then
33637 echo $ECHO_N "(cached) $ECHO_C" >&6
33639 cat >conftest.$ac_ext <<_ACEOF
33642 cat confdefs.h >>conftest.$ac_ext
33643 cat >>conftest.$ac_ext <<_ACEOF
33644 /* end confdefs.h. */
33645 $ac_includes_default
33646 typedef minor_t ac__type_new_;
33650 if ((ac__type_new_ *) 0)
33652 if (sizeof (ac__type_new_))
33658 rm -f conftest.$ac_objext
33659 if { (ac_try="$ac_compile"
33660 case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_compile") 2>conftest.er1
33667 grep -v '^ *+' conftest.er1 >conftest.err
33669 cat conftest.err >&5
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); } && {
33672 test -z "$ac_c_werror_flag" ||
33673 test ! -s conftest.err
33674 } && test -s conftest.$ac_objext; then
33675 ac_cv_type_minor_t=yes
33677 echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33680 ac_cv_type_minor_t=no
33683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33685 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33686 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33687 if test $ac_cv_type_minor_t = yes; then
33691 cat >>confdefs.h <<_ACEOF
33692 #define minor_t int
33697 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33698 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33699 if test "${ac_cv_type_ssize_t+set}" = set; then
33700 echo $ECHO_N "(cached) $ECHO_C" >&6
33702 cat >conftest.$ac_ext <<_ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h. */
33708 $ac_includes_default
33709 typedef ssize_t ac__type_new_;
33713 if ((ac__type_new_ *) 0)
33715 if (sizeof (ac__type_new_))
33721 rm -f conftest.$ac_objext
33722 if { (ac_try="$ac_compile"
33723 case "(($ac_try" in
33724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33725 *) ac_try_echo=$ac_try;;
33727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33728 (eval "$ac_compile") 2>conftest.er1
33730 grep -v '^ *+' conftest.er1 >conftest.err
33732 cat conftest.err >&5
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); } && {
33735 test -z "$ac_c_werror_flag" ||
33736 test ! -s conftest.err
33737 } && test -s conftest.$ac_objext; then
33738 ac_cv_type_ssize_t=yes
33740 echo "$as_me: failed program was:" >&5
33741 sed 's/^/| /' conftest.$ac_ext >&5
33743 ac_cv_type_ssize_t=no
33746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33748 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33749 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33750 if test $ac_cv_type_ssize_t = yes; then
33754 cat >>confdefs.h <<_ACEOF
33755 #define ssize_t int
33760 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33761 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33762 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33763 echo $ECHO_N "(cached) $ECHO_C" >&6
33765 cat >conftest.$ac_ext <<_ACEOF
33768 cat confdefs.h >>conftest.$ac_ext
33769 cat >>conftest.$ac_ext <<_ACEOF
33770 /* end confdefs.h. */
33771 $ac_includes_default
33775 static struct stat ac_aggr;
33776 if (ac_aggr.st_blocks)
33782 rm -f conftest.$ac_objext
33783 if { (ac_try="$ac_compile"
33784 case "(($ac_try" in
33785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33786 *) ac_try_echo=$ac_try;;
33788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33789 (eval "$ac_compile") 2>conftest.er1
33791 grep -v '^ *+' conftest.er1 >conftest.err
33793 cat conftest.err >&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); } && {
33796 test -z "$ac_c_werror_flag" ||
33797 test ! -s conftest.err
33798 } && test -s conftest.$ac_objext; then
33799 ac_cv_member_struct_stat_st_blocks=yes
33801 echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33804 cat >conftest.$ac_ext <<_ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h. */
33810 $ac_includes_default
33814 static struct stat ac_aggr;
33815 if (sizeof ac_aggr.st_blocks)
33821 rm -f conftest.$ac_objext
33822 if { (ac_try="$ac_compile"
33823 case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_compile") 2>conftest.er1
33830 grep -v '^ *+' conftest.er1 >conftest.err
33832 cat conftest.err >&5
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); } && {
33835 test -z "$ac_c_werror_flag" ||
33836 test ! -s conftest.err
33837 } && test -s conftest.$ac_objext; then
33838 ac_cv_member_struct_stat_st_blocks=yes
33840 echo "$as_me: failed program was:" >&5
33841 sed 's/^/| /' conftest.$ac_ext >&5
33843 ac_cv_member_struct_stat_st_blocks=no
33846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33851 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33852 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33853 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33855 cat >>confdefs.h <<_ACEOF
33856 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33860 cat >>confdefs.h <<\_ACEOF
33861 #define HAVE_ST_BLOCKS 1
33865 case " $LIBOBJS " in
33866 *" fileblocks.$ac_objext "* ) ;;
33867 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33874 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33875 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33876 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33877 echo $ECHO_N "(cached) $ECHO_C" >&6
33879 cat >conftest.$ac_ext <<_ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h. */
33885 $ac_includes_default
33889 static struct stat ac_aggr;
33890 if (ac_aggr.st_rdev)
33896 rm -f conftest.$ac_objext
33897 if { (ac_try="$ac_compile"
33898 case "(($ac_try" in
33899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33900 *) ac_try_echo=$ac_try;;
33902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33903 (eval "$ac_compile") 2>conftest.er1
33905 grep -v '^ *+' conftest.er1 >conftest.err
33907 cat conftest.err >&5
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); } && {
33910 test -z "$ac_c_werror_flag" ||
33911 test ! -s conftest.err
33912 } && test -s conftest.$ac_objext; then
33913 ac_cv_member_struct_stat_st_rdev=yes
33915 echo "$as_me: failed program was:" >&5
33916 sed 's/^/| /' conftest.$ac_ext >&5
33918 cat >conftest.$ac_ext <<_ACEOF
33921 cat confdefs.h >>conftest.$ac_ext
33922 cat >>conftest.$ac_ext <<_ACEOF
33923 /* end confdefs.h. */
33924 $ac_includes_default
33928 static struct stat ac_aggr;
33929 if (sizeof ac_aggr.st_rdev)
33935 rm -f conftest.$ac_objext
33936 if { (ac_try="$ac_compile"
33937 case "(($ac_try" in
33938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939 *) ac_try_echo=$ac_try;;
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942 (eval "$ac_compile") 2>conftest.er1
33944 grep -v '^ *+' conftest.er1 >conftest.err
33946 cat conftest.err >&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); } && {
33949 test -z "$ac_c_werror_flag" ||
33950 test ! -s conftest.err
33951 } && test -s conftest.$ac_objext; then
33952 ac_cv_member_struct_stat_st_rdev=yes
33954 echo "$as_me: failed program was:" >&5
33955 sed 's/^/| /' conftest.$ac_ext >&5
33957 ac_cv_member_struct_stat_st_rdev=no
33960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33965 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33966 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33967 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33969 cat >>confdefs.h <<_ACEOF
33970 #define HAVE_STRUCT_STAT_ST_RDEV 1
33974 cat >>confdefs.h <<\_ACEOF
33975 #define HAVE_ST_RDEV 1
33981 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33982 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
33983 if test "${ac_cv_struct_tm+set}" = set; then
33984 echo $ECHO_N "(cached) $ECHO_C" >&6
33986 cat >conftest.$ac_ext <<_ACEOF
33989 cat confdefs.h >>conftest.$ac_ext
33990 cat >>conftest.$ac_ext <<_ACEOF
33991 /* end confdefs.h. */
33992 #include <sys/types.h>
33999 int *p = &tm.tm_sec;
34005 rm -f conftest.$ac_objext
34006 if { (ac_try="$ac_compile"
34007 case "(($ac_try" in
34008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34009 *) ac_try_echo=$ac_try;;
34011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34012 (eval "$ac_compile") 2>conftest.er1
34014 grep -v '^ *+' conftest.er1 >conftest.err
34016 cat conftest.err >&5
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); } && {
34019 test -z "$ac_c_werror_flag" ||
34020 test ! -s conftest.err
34021 } && test -s conftest.$ac_objext; then
34022 ac_cv_struct_tm=time.h
34024 echo "$as_me: failed program was:" >&5
34025 sed 's/^/| /' conftest.$ac_ext >&5
34027 ac_cv_struct_tm=sys/time.h
34030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34032 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34033 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34034 if test $ac_cv_struct_tm = sys/time.h; then
34036 cat >>confdefs.h <<\_ACEOF
34037 #define TM_IN_SYS_TIME 1
34042 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34043 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34044 if test "${ac_cv_c_const+set}" = set; then
34045 echo $ECHO_N "(cached) $ECHO_C" >&6
34047 cat >conftest.$ac_ext <<_ACEOF
34050 cat confdefs.h >>conftest.$ac_ext
34051 cat >>conftest.$ac_ext <<_ACEOF
34052 /* end confdefs.h. */
34057 /* FIXME: Include the comments suggested by Paul. */
34058 #ifndef __cplusplus
34059 /* Ultrix mips cc rejects this. */
34060 typedef int charset[2];
34062 /* SunOS 4.1.1 cc rejects this. */
34063 char const *const *pcpcc;
34065 /* NEC SVR4.0.2 mips cc rejects this. */
34066 struct point {int x, y;};
34067 static struct point const zero = {0,0};
34068 /* AIX XL C 1.02.0.0 rejects this.
34069 It does not let you subtract one const X* pointer from another in
34070 an arm of an if-expression whose if-part is not a constant
34072 const char *g = "string";
34073 pcpcc = &g + (g ? g-g : 0);
34074 /* HPUX 7.0 cc rejects these. */
34076 ppc = (char**) pcpcc;
34077 pcpcc = (char const *const *) ppc;
34078 { /* SCO 3.2v4 cc rejects this. */
34080 char const *s = 0 ? (char *) 0 : (char const *) 0;
34085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34086 int x[] = {25, 17};
34087 const int *foo = &x[0];
34090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34091 typedef const int *iptr;
34095 { /* AIX XL C 1.02.0.0 rejects this saying
34096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34097 struct s { int j; const int *ap[3]; };
34098 struct s *b; b->j = 5;
34100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34101 const int foo = 10;
34102 if (!foo) return 0;
34104 return !cs[0] && !zero.x;
34111 rm -f conftest.$ac_objext
34112 if { (ac_try="$ac_compile"
34113 case "(($ac_try" in
34114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34115 *) ac_try_echo=$ac_try;;
34117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34118 (eval "$ac_compile") 2>conftest.er1
34120 grep -v '^ *+' conftest.er1 >conftest.err
34122 cat conftest.err >&5
34123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124 (exit $ac_status); } && {
34125 test -z "$ac_c_werror_flag" ||
34126 test ! -s conftest.err
34127 } && test -s conftest.$ac_objext; then
34130 echo "$as_me: failed program was:" >&5
34131 sed 's/^/| /' conftest.$ac_ext >&5
34136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34138 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34139 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34140 if test $ac_cv_c_const = no; then
34142 cat >>confdefs.h <<\_ACEOF
34149 { echo "$as_me:$LINENO: checking for char" >&5
34150 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34151 if test "${ac_cv_type_char+set}" = set; then
34152 echo $ECHO_N "(cached) $ECHO_C" >&6
34154 cat >conftest.$ac_ext <<_ACEOF
34157 cat confdefs.h >>conftest.$ac_ext
34158 cat >>conftest.$ac_ext <<_ACEOF
34159 /* end confdefs.h. */
34160 $ac_includes_default
34161 typedef char ac__type_new_;
34165 if ((ac__type_new_ *) 0)
34167 if (sizeof (ac__type_new_))
34173 rm -f conftest.$ac_objext
34174 if { (ac_try="$ac_compile"
34175 case "(($ac_try" in
34176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34177 *) ac_try_echo=$ac_try;;
34179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34180 (eval "$ac_compile") 2>conftest.er1
34182 grep -v '^ *+' conftest.er1 >conftest.err
34184 cat conftest.err >&5
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); } && {
34187 test -z "$ac_c_werror_flag" ||
34188 test ! -s conftest.err
34189 } && test -s conftest.$ac_objext; then
34190 ac_cv_type_char=yes
34192 echo "$as_me: failed program was:" >&5
34193 sed 's/^/| /' conftest.$ac_ext >&5
34198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34200 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34201 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34203 # The cast to long int works around a bug in the HP C Compiler
34204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34206 # This bug is HP SR number 8606223364.
34207 { echo "$as_me:$LINENO: checking size of char" >&5
34208 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34209 if test "${ac_cv_sizeof_char+set}" = set; then
34210 echo $ECHO_N "(cached) $ECHO_C" >&6
34212 if test "$cross_compiling" = yes; then
34213 # Depending upon the size, compute the lo and hi bounds.
34214 cat >conftest.$ac_ext <<_ACEOF
34217 cat confdefs.h >>conftest.$ac_ext
34218 cat >>conftest.$ac_ext <<_ACEOF
34219 /* end confdefs.h. */
34220 $ac_includes_default
34221 typedef char ac__type_sizeof_;
34225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34232 rm -f conftest.$ac_objext
34233 if { (ac_try="$ac_compile"
34234 case "(($ac_try" in
34235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34236 *) ac_try_echo=$ac_try;;
34238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34239 (eval "$ac_compile") 2>conftest.er1
34241 grep -v '^ *+' conftest.er1 >conftest.err
34243 cat conftest.err >&5
34244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245 (exit $ac_status); } && {
34246 test -z "$ac_c_werror_flag" ||
34247 test ! -s conftest.err
34248 } && test -s conftest.$ac_objext; then
34251 cat >conftest.$ac_ext <<_ACEOF
34254 cat confdefs.h >>conftest.$ac_ext
34255 cat >>conftest.$ac_ext <<_ACEOF
34256 /* end confdefs.h. */
34257 $ac_includes_default
34258 typedef char ac__type_sizeof_;
34262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34269 rm -f conftest.$ac_objext
34270 if { (ac_try="$ac_compile"
34271 case "(($ac_try" in
34272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34273 *) ac_try_echo=$ac_try;;
34275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34276 (eval "$ac_compile") 2>conftest.er1
34278 grep -v '^ *+' conftest.er1 >conftest.err
34280 cat conftest.err >&5
34281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282 (exit $ac_status); } && {
34283 test -z "$ac_c_werror_flag" ||
34284 test ! -s conftest.err
34285 } && test -s conftest.$ac_objext; then
34286 ac_hi=$ac_mid; break
34288 echo "$as_me: failed program was:" >&5
34289 sed 's/^/| /' conftest.$ac_ext >&5
34291 ac_lo=`expr $ac_mid + 1`
34292 if test $ac_lo -le $ac_mid; then
34296 ac_mid=`expr 2 '*' $ac_mid + 1`
34299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34302 echo "$as_me: failed program was:" >&5
34303 sed 's/^/| /' conftest.$ac_ext >&5
34305 cat >conftest.$ac_ext <<_ACEOF
34308 cat confdefs.h >>conftest.$ac_ext
34309 cat >>conftest.$ac_ext <<_ACEOF
34310 /* end confdefs.h. */
34311 $ac_includes_default
34312 typedef char ac__type_sizeof_;
34316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34323 rm -f conftest.$ac_objext
34324 if { (ac_try="$ac_compile"
34325 case "(($ac_try" in
34326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34327 *) ac_try_echo=$ac_try;;
34329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34330 (eval "$ac_compile") 2>conftest.er1
34332 grep -v '^ *+' conftest.er1 >conftest.err
34334 cat conftest.err >&5
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); } && {
34337 test -z "$ac_c_werror_flag" ||
34338 test ! -s conftest.err
34339 } && test -s conftest.$ac_objext; then
34342 cat >conftest.$ac_ext <<_ACEOF
34345 cat confdefs.h >>conftest.$ac_ext
34346 cat >>conftest.$ac_ext <<_ACEOF
34347 /* end confdefs.h. */
34348 $ac_includes_default
34349 typedef char ac__type_sizeof_;
34353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34360 rm -f conftest.$ac_objext
34361 if { (ac_try="$ac_compile"
34362 case "(($ac_try" in
34363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364 *) ac_try_echo=$ac_try;;
34366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367 (eval "$ac_compile") 2>conftest.er1
34369 grep -v '^ *+' conftest.er1 >conftest.err
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } && {
34374 test -z "$ac_c_werror_flag" ||
34375 test ! -s conftest.err
34376 } && test -s conftest.$ac_objext; then
34377 ac_lo=$ac_mid; break
34379 echo "$as_me: failed program was:" >&5
34380 sed 's/^/| /' conftest.$ac_ext >&5
34382 ac_hi=`expr '(' $ac_mid ')' - 1`
34383 if test $ac_mid -le $ac_hi; then
34387 ac_mid=`expr 2 '*' $ac_mid`
34390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393 echo "$as_me: failed program was:" >&5
34394 sed 's/^/| /' conftest.$ac_ext >&5
34399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403 # Binary search between lo and hi bounds.
34404 while test "x$ac_lo" != "x$ac_hi"; do
34405 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34406 cat >conftest.$ac_ext <<_ACEOF
34409 cat confdefs.h >>conftest.$ac_ext
34410 cat >>conftest.$ac_ext <<_ACEOF
34411 /* end confdefs.h. */
34412 $ac_includes_default
34413 typedef char ac__type_sizeof_;
34417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34424 rm -f conftest.$ac_objext
34425 if { (ac_try="$ac_compile"
34426 case "(($ac_try" in
34427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34428 *) ac_try_echo=$ac_try;;
34430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34431 (eval "$ac_compile") 2>conftest.er1
34433 grep -v '^ *+' conftest.er1 >conftest.err
34435 cat conftest.err >&5
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); } && {
34438 test -z "$ac_c_werror_flag" ||
34439 test ! -s conftest.err
34440 } && test -s conftest.$ac_objext; then
34443 echo "$as_me: failed program was:" >&5
34444 sed 's/^/| /' conftest.$ac_ext >&5
34446 ac_lo=`expr '(' $ac_mid ')' + 1`
34449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34452 ?*) ac_cv_sizeof_char=$ac_lo;;
34453 '') if test "$ac_cv_type_char" = yes; then
34454 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34455 See \`config.log' for more details." >&5
34456 echo "$as_me: error: cannot compute sizeof (char)
34457 See \`config.log' for more details." >&2;}
34458 { (exit 77); exit 77; }; }
34460 ac_cv_sizeof_char=0
34464 cat >conftest.$ac_ext <<_ACEOF
34467 cat confdefs.h >>conftest.$ac_ext
34468 cat >>conftest.$ac_ext <<_ACEOF
34469 /* end confdefs.h. */
34470 $ac_includes_default
34471 typedef char ac__type_sizeof_;
34472 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34473 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34475 #include <stdlib.h>
34480 FILE *f = fopen ("conftest.val", "w");
34483 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34485 long int i = longval ();
34486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34488 fprintf (f, "%ld\n", i);
34492 unsigned long int i = ulongval ();
34493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34495 fprintf (f, "%lu\n", i);
34497 return ferror (f) || fclose (f) != 0;
34503 rm -f conftest$ac_exeext
34504 if { (ac_try="$ac_link"
34505 case "(($ac_try" in
34506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34507 *) ac_try_echo=$ac_try;;
34509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34510 (eval "$ac_link") 2>&5
34512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34514 { (case "(($ac_try" in
34515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34516 *) ac_try_echo=$ac_try;;
34518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34519 (eval "$ac_try") 2>&5
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); }; }; then
34523 ac_cv_sizeof_char=`cat conftest.val`
34525 echo "$as_me: program exited with status $ac_status" >&5
34526 echo "$as_me: failed program was:" >&5
34527 sed 's/^/| /' conftest.$ac_ext >&5
34529 ( exit $ac_status )
34530 if test "$ac_cv_type_char" = yes; then
34531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34532 See \`config.log' for more details." >&5
34533 echo "$as_me: error: cannot compute sizeof (char)
34534 See \`config.log' for more details." >&2;}
34535 { (exit 77); exit 77; }; }
34537 ac_cv_sizeof_char=0
34540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34544 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34545 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34549 cat >>confdefs.h <<_ACEOF
34550 #define SIZEOF_CHAR $ac_cv_sizeof_char
34554 { echo "$as_me:$LINENO: checking for short int" >&5
34555 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34556 if test "${ac_cv_type_short_int+set}" = set; then
34557 echo $ECHO_N "(cached) $ECHO_C" >&6
34559 cat >conftest.$ac_ext <<_ACEOF
34562 cat confdefs.h >>conftest.$ac_ext
34563 cat >>conftest.$ac_ext <<_ACEOF
34564 /* end confdefs.h. */
34565 $ac_includes_default
34566 typedef short int ac__type_new_;
34570 if ((ac__type_new_ *) 0)
34572 if (sizeof (ac__type_new_))
34578 rm -f conftest.$ac_objext
34579 if { (ac_try="$ac_compile"
34580 case "(($ac_try" in
34581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34582 *) ac_try_echo=$ac_try;;
34584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34585 (eval "$ac_compile") 2>conftest.er1
34587 grep -v '^ *+' conftest.er1 >conftest.err
34589 cat conftest.err >&5
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); } && {
34592 test -z "$ac_c_werror_flag" ||
34593 test ! -s conftest.err
34594 } && test -s conftest.$ac_objext; then
34595 ac_cv_type_short_int=yes
34597 echo "$as_me: failed program was:" >&5
34598 sed 's/^/| /' conftest.$ac_ext >&5
34600 ac_cv_type_short_int=no
34603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34605 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34606 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34608 # The cast to long int works around a bug in the HP C Compiler
34609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34611 # This bug is HP SR number 8606223364.
34612 { echo "$as_me:$LINENO: checking size of short int" >&5
34613 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34614 if test "${ac_cv_sizeof_short_int+set}" = set; then
34615 echo $ECHO_N "(cached) $ECHO_C" >&6
34617 if test "$cross_compiling" = yes; then
34618 # Depending upon the size, compute the lo and hi bounds.
34619 cat >conftest.$ac_ext <<_ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h. */
34625 $ac_includes_default
34626 typedef short int ac__type_sizeof_;
34630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34637 rm -f conftest.$ac_objext
34638 if { (ac_try="$ac_compile"
34639 case "(($ac_try" in
34640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34641 *) ac_try_echo=$ac_try;;
34643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34644 (eval "$ac_compile") 2>conftest.er1
34646 grep -v '^ *+' conftest.er1 >conftest.err
34648 cat conftest.err >&5
34649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650 (exit $ac_status); } && {
34651 test -z "$ac_c_werror_flag" ||
34652 test ! -s conftest.err
34653 } && test -s conftest.$ac_objext; then
34656 cat >conftest.$ac_ext <<_ACEOF
34659 cat confdefs.h >>conftest.$ac_ext
34660 cat >>conftest.$ac_ext <<_ACEOF
34661 /* end confdefs.h. */
34662 $ac_includes_default
34663 typedef short int ac__type_sizeof_;
34667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34674 rm -f conftest.$ac_objext
34675 if { (ac_try="$ac_compile"
34676 case "(($ac_try" in
34677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34678 *) ac_try_echo=$ac_try;;
34680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34681 (eval "$ac_compile") 2>conftest.er1
34683 grep -v '^ *+' conftest.er1 >conftest.err
34685 cat conftest.err >&5
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); } && {
34688 test -z "$ac_c_werror_flag" ||
34689 test ! -s conftest.err
34690 } && test -s conftest.$ac_objext; then
34691 ac_hi=$ac_mid; break
34693 echo "$as_me: failed program was:" >&5
34694 sed 's/^/| /' conftest.$ac_ext >&5
34696 ac_lo=`expr $ac_mid + 1`
34697 if test $ac_lo -le $ac_mid; then
34701 ac_mid=`expr 2 '*' $ac_mid + 1`
34704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34707 echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34710 cat >conftest.$ac_ext <<_ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h. */
34716 $ac_includes_default
34717 typedef short int ac__type_sizeof_;
34721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34728 rm -f conftest.$ac_objext
34729 if { (ac_try="$ac_compile"
34730 case "(($ac_try" in
34731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34732 *) ac_try_echo=$ac_try;;
34734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34735 (eval "$ac_compile") 2>conftest.er1
34737 grep -v '^ *+' conftest.er1 >conftest.err
34739 cat conftest.err >&5
34740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34741 (exit $ac_status); } && {
34742 test -z "$ac_c_werror_flag" ||
34743 test ! -s conftest.err
34744 } && test -s conftest.$ac_objext; then
34747 cat >conftest.$ac_ext <<_ACEOF
34750 cat confdefs.h >>conftest.$ac_ext
34751 cat >>conftest.$ac_ext <<_ACEOF
34752 /* end confdefs.h. */
34753 $ac_includes_default
34754 typedef short int ac__type_sizeof_;
34758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34765 rm -f conftest.$ac_objext
34766 if { (ac_try="$ac_compile"
34767 case "(($ac_try" in
34768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34769 *) ac_try_echo=$ac_try;;
34771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34772 (eval "$ac_compile") 2>conftest.er1
34774 grep -v '^ *+' conftest.er1 >conftest.err
34776 cat conftest.err >&5
34777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778 (exit $ac_status); } && {
34779 test -z "$ac_c_werror_flag" ||
34780 test ! -s conftest.err
34781 } && test -s conftest.$ac_objext; then
34782 ac_lo=$ac_mid; break
34784 echo "$as_me: failed program was:" >&5
34785 sed 's/^/| /' conftest.$ac_ext >&5
34787 ac_hi=`expr '(' $ac_mid ')' - 1`
34788 if test $ac_mid -le $ac_hi; then
34792 ac_mid=`expr 2 '*' $ac_mid`
34795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34798 echo "$as_me: failed program was:" >&5
34799 sed 's/^/| /' conftest.$ac_ext >&5
34804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34808 # Binary search between lo and hi bounds.
34809 while test "x$ac_lo" != "x$ac_hi"; do
34810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34811 cat >conftest.$ac_ext <<_ACEOF
34814 cat confdefs.h >>conftest.$ac_ext
34815 cat >>conftest.$ac_ext <<_ACEOF
34816 /* end confdefs.h. */
34817 $ac_includes_default
34818 typedef short int ac__type_sizeof_;
34822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34829 rm -f conftest.$ac_objext
34830 if { (ac_try="$ac_compile"
34831 case "(($ac_try" in
34832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34833 *) ac_try_echo=$ac_try;;
34835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34836 (eval "$ac_compile") 2>conftest.er1
34838 grep -v '^ *+' conftest.er1 >conftest.err
34840 cat conftest.err >&5
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); } && {
34843 test -z "$ac_c_werror_flag" ||
34844 test ! -s conftest.err
34845 } && test -s conftest.$ac_objext; then
34848 echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34851 ac_lo=`expr '(' $ac_mid ')' + 1`
34854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34857 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34858 '') if test "$ac_cv_type_short_int" = yes; then
34859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34860 See \`config.log' for more details." >&5
34861 echo "$as_me: error: cannot compute sizeof (short int)
34862 See \`config.log' for more details." >&2;}
34863 { (exit 77); exit 77; }; }
34865 ac_cv_sizeof_short_int=0
34869 cat >conftest.$ac_ext <<_ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34875 $ac_includes_default
34876 typedef short int ac__type_sizeof_;
34877 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34878 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34880 #include <stdlib.h>
34885 FILE *f = fopen ("conftest.val", "w");
34888 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34890 long int i = longval ();
34891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34893 fprintf (f, "%ld\n", i);
34897 unsigned long int i = ulongval ();
34898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34900 fprintf (f, "%lu\n", i);
34902 return ferror (f) || fclose (f) != 0;
34908 rm -f conftest$ac_exeext
34909 if { (ac_try="$ac_link"
34910 case "(($ac_try" in
34911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912 *) ac_try_echo=$ac_try;;
34914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915 (eval "$ac_link") 2>&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34919 { (case "(($ac_try" in
34920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34921 *) ac_try_echo=$ac_try;;
34923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34924 (eval "$ac_try") 2>&5
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; }; then
34928 ac_cv_sizeof_short_int=`cat conftest.val`
34930 echo "$as_me: program exited with status $ac_status" >&5
34931 echo "$as_me: failed program was:" >&5
34932 sed 's/^/| /' conftest.$ac_ext >&5
34934 ( exit $ac_status )
34935 if test "$ac_cv_type_short_int" = yes; then
34936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34937 See \`config.log' for more details." >&5
34938 echo "$as_me: error: cannot compute sizeof (short int)
34939 See \`config.log' for more details." >&2;}
34940 { (exit 77); exit 77; }; }
34942 ac_cv_sizeof_short_int=0
34945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34949 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34950 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34954 cat >>confdefs.h <<_ACEOF
34955 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34959 { echo "$as_me:$LINENO: checking for int" >&5
34960 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34961 if test "${ac_cv_type_int+set}" = set; then
34962 echo $ECHO_N "(cached) $ECHO_C" >&6
34964 cat >conftest.$ac_ext <<_ACEOF
34967 cat confdefs.h >>conftest.$ac_ext
34968 cat >>conftest.$ac_ext <<_ACEOF
34969 /* end confdefs.h. */
34970 $ac_includes_default
34971 typedef int ac__type_new_;
34975 if ((ac__type_new_ *) 0)
34977 if (sizeof (ac__type_new_))
34983 rm -f conftest.$ac_objext
34984 if { (ac_try="$ac_compile"
34985 case "(($ac_try" in
34986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34987 *) ac_try_echo=$ac_try;;
34989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34990 (eval "$ac_compile") 2>conftest.er1
34992 grep -v '^ *+' conftest.er1 >conftest.err
34994 cat conftest.err >&5
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); } && {
34997 test -z "$ac_c_werror_flag" ||
34998 test ! -s conftest.err
34999 } && test -s conftest.$ac_objext; then
35002 echo "$as_me: failed program was:" >&5
35003 sed 's/^/| /' conftest.$ac_ext >&5
35008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35010 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35011 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35013 # The cast to long int works around a bug in the HP C Compiler
35014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35016 # This bug is HP SR number 8606223364.
35017 { echo "$as_me:$LINENO: checking size of int" >&5
35018 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35019 if test "${ac_cv_sizeof_int+set}" = set; then
35020 echo $ECHO_N "(cached) $ECHO_C" >&6
35022 if test "$cross_compiling" = yes; then
35023 # Depending upon the size, compute the lo and hi bounds.
35024 cat >conftest.$ac_ext <<_ACEOF
35027 cat confdefs.h >>conftest.$ac_ext
35028 cat >>conftest.$ac_ext <<_ACEOF
35029 /* end confdefs.h. */
35030 $ac_includes_default
35031 typedef int ac__type_sizeof_;
35035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35042 rm -f conftest.$ac_objext
35043 if { (ac_try="$ac_compile"
35044 case "(($ac_try" in
35045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046 *) ac_try_echo=$ac_try;;
35048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049 (eval "$ac_compile") 2>conftest.er1
35051 grep -v '^ *+' conftest.er1 >conftest.err
35053 cat conftest.err >&5
35054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35055 (exit $ac_status); } && {
35056 test -z "$ac_c_werror_flag" ||
35057 test ! -s conftest.err
35058 } && test -s conftest.$ac_objext; then
35061 cat >conftest.$ac_ext <<_ACEOF
35064 cat confdefs.h >>conftest.$ac_ext
35065 cat >>conftest.$ac_ext <<_ACEOF
35066 /* end confdefs.h. */
35067 $ac_includes_default
35068 typedef int ac__type_sizeof_;
35072 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35079 rm -f conftest.$ac_objext
35080 if { (ac_try="$ac_compile"
35081 case "(($ac_try" in
35082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35083 *) ac_try_echo=$ac_try;;
35085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35086 (eval "$ac_compile") 2>conftest.er1
35088 grep -v '^ *+' conftest.er1 >conftest.err
35090 cat conftest.err >&5
35091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35092 (exit $ac_status); } && {
35093 test -z "$ac_c_werror_flag" ||
35094 test ! -s conftest.err
35095 } && test -s conftest.$ac_objext; then
35096 ac_hi=$ac_mid; break
35098 echo "$as_me: failed program was:" >&5
35099 sed 's/^/| /' conftest.$ac_ext >&5
35101 ac_lo=`expr $ac_mid + 1`
35102 if test $ac_lo -le $ac_mid; then
35106 ac_mid=`expr 2 '*' $ac_mid + 1`
35109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35112 echo "$as_me: failed program was:" >&5
35113 sed 's/^/| /' conftest.$ac_ext >&5
35115 cat >conftest.$ac_ext <<_ACEOF
35118 cat confdefs.h >>conftest.$ac_ext
35119 cat >>conftest.$ac_ext <<_ACEOF
35120 /* end confdefs.h. */
35121 $ac_includes_default
35122 typedef int ac__type_sizeof_;
35126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35133 rm -f conftest.$ac_objext
35134 if { (ac_try="$ac_compile"
35135 case "(($ac_try" in
35136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35137 *) ac_try_echo=$ac_try;;
35139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35140 (eval "$ac_compile") 2>conftest.er1
35142 grep -v '^ *+' conftest.er1 >conftest.err
35144 cat conftest.err >&5
35145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146 (exit $ac_status); } && {
35147 test -z "$ac_c_werror_flag" ||
35148 test ! -s conftest.err
35149 } && test -s conftest.$ac_objext; then
35152 cat >conftest.$ac_ext <<_ACEOF
35155 cat confdefs.h >>conftest.$ac_ext
35156 cat >>conftest.$ac_ext <<_ACEOF
35157 /* end confdefs.h. */
35158 $ac_includes_default
35159 typedef int ac__type_sizeof_;
35163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35170 rm -f conftest.$ac_objext
35171 if { (ac_try="$ac_compile"
35172 case "(($ac_try" in
35173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35174 *) ac_try_echo=$ac_try;;
35176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35177 (eval "$ac_compile") 2>conftest.er1
35179 grep -v '^ *+' conftest.er1 >conftest.err
35181 cat conftest.err >&5
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); } && {
35184 test -z "$ac_c_werror_flag" ||
35185 test ! -s conftest.err
35186 } && test -s conftest.$ac_objext; then
35187 ac_lo=$ac_mid; break
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35192 ac_hi=`expr '(' $ac_mid ')' - 1`
35193 if test $ac_mid -le $ac_hi; then
35197 ac_mid=`expr 2 '*' $ac_mid`
35200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35203 echo "$as_me: failed program was:" >&5
35204 sed 's/^/| /' conftest.$ac_ext >&5
35209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35213 # Binary search between lo and hi bounds.
35214 while test "x$ac_lo" != "x$ac_hi"; do
35215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35216 cat >conftest.$ac_ext <<_ACEOF
35219 cat confdefs.h >>conftest.$ac_ext
35220 cat >>conftest.$ac_ext <<_ACEOF
35221 /* end confdefs.h. */
35222 $ac_includes_default
35223 typedef int ac__type_sizeof_;
35227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35234 rm -f conftest.$ac_objext
35235 if { (ac_try="$ac_compile"
35236 case "(($ac_try" in
35237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35238 *) ac_try_echo=$ac_try;;
35240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35241 (eval "$ac_compile") 2>conftest.er1
35243 grep -v '^ *+' conftest.er1 >conftest.err
35245 cat conftest.err >&5
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); } && {
35248 test -z "$ac_c_werror_flag" ||
35249 test ! -s conftest.err
35250 } && test -s conftest.$ac_objext; then
35253 echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35256 ac_lo=`expr '(' $ac_mid ')' + 1`
35259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35262 ?*) ac_cv_sizeof_int=$ac_lo;;
35263 '') if test "$ac_cv_type_int" = yes; then
35264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35265 See \`config.log' for more details." >&5
35266 echo "$as_me: error: cannot compute sizeof (int)
35267 See \`config.log' for more details." >&2;}
35268 { (exit 77); exit 77; }; }
35274 cat >conftest.$ac_ext <<_ACEOF
35277 cat confdefs.h >>conftest.$ac_ext
35278 cat >>conftest.$ac_ext <<_ACEOF
35279 /* end confdefs.h. */
35280 $ac_includes_default
35281 typedef int ac__type_sizeof_;
35282 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35283 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35285 #include <stdlib.h>
35290 FILE *f = fopen ("conftest.val", "w");
35293 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35295 long int i = longval ();
35296 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35298 fprintf (f, "%ld\n", i);
35302 unsigned long int i = ulongval ();
35303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35305 fprintf (f, "%lu\n", i);
35307 return ferror (f) || fclose (f) != 0;
35313 rm -f conftest$ac_exeext
35314 if { (ac_try="$ac_link"
35315 case "(($ac_try" in
35316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35317 *) ac_try_echo=$ac_try;;
35319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35320 (eval "$ac_link") 2>&5
35322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35324 { (case "(($ac_try" in
35325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35326 *) ac_try_echo=$ac_try;;
35328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35329 (eval "$ac_try") 2>&5
35331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332 (exit $ac_status); }; }; then
35333 ac_cv_sizeof_int=`cat conftest.val`
35335 echo "$as_me: program exited with status $ac_status" >&5
35336 echo "$as_me: failed program was:" >&5
35337 sed 's/^/| /' conftest.$ac_ext >&5
35339 ( exit $ac_status )
35340 if test "$ac_cv_type_int" = yes; then
35341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35342 See \`config.log' for more details." >&5
35343 echo "$as_me: error: cannot compute sizeof (int)
35344 See \`config.log' for more details." >&2;}
35345 { (exit 77); exit 77; }; }
35350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35354 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35355 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35359 cat >>confdefs.h <<_ACEOF
35360 #define SIZEOF_INT $ac_cv_sizeof_int
35364 { echo "$as_me:$LINENO: checking for long int" >&5
35365 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35366 if test "${ac_cv_type_long_int+set}" = set; then
35367 echo $ECHO_N "(cached) $ECHO_C" >&6
35369 cat >conftest.$ac_ext <<_ACEOF
35372 cat confdefs.h >>conftest.$ac_ext
35373 cat >>conftest.$ac_ext <<_ACEOF
35374 /* end confdefs.h. */
35375 $ac_includes_default
35376 typedef long int ac__type_new_;
35380 if ((ac__type_new_ *) 0)
35382 if (sizeof (ac__type_new_))
35388 rm -f conftest.$ac_objext
35389 if { (ac_try="$ac_compile"
35390 case "(($ac_try" in
35391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35392 *) ac_try_echo=$ac_try;;
35394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35395 (eval "$ac_compile") 2>conftest.er1
35397 grep -v '^ *+' conftest.er1 >conftest.err
35399 cat conftest.err >&5
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); } && {
35402 test -z "$ac_c_werror_flag" ||
35403 test ! -s conftest.err
35404 } && test -s conftest.$ac_objext; then
35405 ac_cv_type_long_int=yes
35407 echo "$as_me: failed program was:" >&5
35408 sed 's/^/| /' conftest.$ac_ext >&5
35410 ac_cv_type_long_int=no
35413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35415 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35416 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35418 # The cast to long int works around a bug in the HP C Compiler
35419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35421 # This bug is HP SR number 8606223364.
35422 { echo "$as_me:$LINENO: checking size of long int" >&5
35423 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35424 if test "${ac_cv_sizeof_long_int+set}" = set; then
35425 echo $ECHO_N "(cached) $ECHO_C" >&6
35427 if test "$cross_compiling" = yes; then
35428 # Depending upon the size, compute the lo and hi bounds.
35429 cat >conftest.$ac_ext <<_ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h. */
35435 $ac_includes_default
35436 typedef long int ac__type_sizeof_;
35440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35447 rm -f conftest.$ac_objext
35448 if { (ac_try="$ac_compile"
35449 case "(($ac_try" in
35450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35451 *) ac_try_echo=$ac_try;;
35453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35454 (eval "$ac_compile") 2>conftest.er1
35456 grep -v '^ *+' conftest.er1 >conftest.err
35458 cat conftest.err >&5
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); } && {
35461 test -z "$ac_c_werror_flag" ||
35462 test ! -s conftest.err
35463 } && test -s conftest.$ac_objext; then
35466 cat >conftest.$ac_ext <<_ACEOF
35469 cat confdefs.h >>conftest.$ac_ext
35470 cat >>conftest.$ac_ext <<_ACEOF
35471 /* end confdefs.h. */
35472 $ac_includes_default
35473 typedef long int ac__type_sizeof_;
35477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35484 rm -f conftest.$ac_objext
35485 if { (ac_try="$ac_compile"
35486 case "(($ac_try" in
35487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35488 *) ac_try_echo=$ac_try;;
35490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35491 (eval "$ac_compile") 2>conftest.er1
35493 grep -v '^ *+' conftest.er1 >conftest.err
35495 cat conftest.err >&5
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); } && {
35498 test -z "$ac_c_werror_flag" ||
35499 test ! -s conftest.err
35500 } && test -s conftest.$ac_objext; then
35501 ac_hi=$ac_mid; break
35503 echo "$as_me: failed program was:" >&5
35504 sed 's/^/| /' conftest.$ac_ext >&5
35506 ac_lo=`expr $ac_mid + 1`
35507 if test $ac_lo -le $ac_mid; then
35511 ac_mid=`expr 2 '*' $ac_mid + 1`
35514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35517 echo "$as_me: failed program was:" >&5
35518 sed 's/^/| /' conftest.$ac_ext >&5
35520 cat >conftest.$ac_ext <<_ACEOF
35523 cat confdefs.h >>conftest.$ac_ext
35524 cat >>conftest.$ac_ext <<_ACEOF
35525 /* end confdefs.h. */
35526 $ac_includes_default
35527 typedef long int ac__type_sizeof_;
35531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35538 rm -f conftest.$ac_objext
35539 if { (ac_try="$ac_compile"
35540 case "(($ac_try" in
35541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35542 *) ac_try_echo=$ac_try;;
35544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35545 (eval "$ac_compile") 2>conftest.er1
35547 grep -v '^ *+' conftest.er1 >conftest.err
35549 cat conftest.err >&5
35550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551 (exit $ac_status); } && {
35552 test -z "$ac_c_werror_flag" ||
35553 test ! -s conftest.err
35554 } && test -s conftest.$ac_objext; then
35557 cat >conftest.$ac_ext <<_ACEOF
35560 cat confdefs.h >>conftest.$ac_ext
35561 cat >>conftest.$ac_ext <<_ACEOF
35562 /* end confdefs.h. */
35563 $ac_includes_default
35564 typedef long int ac__type_sizeof_;
35568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35575 rm -f conftest.$ac_objext
35576 if { (ac_try="$ac_compile"
35577 case "(($ac_try" in
35578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35579 *) ac_try_echo=$ac_try;;
35581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35582 (eval "$ac_compile") 2>conftest.er1
35584 grep -v '^ *+' conftest.er1 >conftest.err
35586 cat conftest.err >&5
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); } && {
35589 test -z "$ac_c_werror_flag" ||
35590 test ! -s conftest.err
35591 } && test -s conftest.$ac_objext; then
35592 ac_lo=$ac_mid; break
35594 echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35597 ac_hi=`expr '(' $ac_mid ')' - 1`
35598 if test $ac_mid -le $ac_hi; then
35602 ac_mid=`expr 2 '*' $ac_mid`
35605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35608 echo "$as_me: failed program was:" >&5
35609 sed 's/^/| /' conftest.$ac_ext >&5
35614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35618 # Binary search between lo and hi bounds.
35619 while test "x$ac_lo" != "x$ac_hi"; do
35620 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35621 cat >conftest.$ac_ext <<_ACEOF
35624 cat confdefs.h >>conftest.$ac_ext
35625 cat >>conftest.$ac_ext <<_ACEOF
35626 /* end confdefs.h. */
35627 $ac_includes_default
35628 typedef long int ac__type_sizeof_;
35632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35639 rm -f conftest.$ac_objext
35640 if { (ac_try="$ac_compile"
35641 case "(($ac_try" in
35642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35643 *) ac_try_echo=$ac_try;;
35645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35646 (eval "$ac_compile") 2>conftest.er1
35648 grep -v '^ *+' conftest.er1 >conftest.err
35650 cat conftest.err >&5
35651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35652 (exit $ac_status); } && {
35653 test -z "$ac_c_werror_flag" ||
35654 test ! -s conftest.err
35655 } && test -s conftest.$ac_objext; then
35658 echo "$as_me: failed program was:" >&5
35659 sed 's/^/| /' conftest.$ac_ext >&5
35661 ac_lo=`expr '(' $ac_mid ')' + 1`
35664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35667 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35668 '') if test "$ac_cv_type_long_int" = yes; then
35669 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35670 See \`config.log' for more details." >&5
35671 echo "$as_me: error: cannot compute sizeof (long int)
35672 See \`config.log' for more details." >&2;}
35673 { (exit 77); exit 77; }; }
35675 ac_cv_sizeof_long_int=0
35679 cat >conftest.$ac_ext <<_ACEOF
35682 cat confdefs.h >>conftest.$ac_ext
35683 cat >>conftest.$ac_ext <<_ACEOF
35684 /* end confdefs.h. */
35685 $ac_includes_default
35686 typedef long int ac__type_sizeof_;
35687 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35688 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35690 #include <stdlib.h>
35695 FILE *f = fopen ("conftest.val", "w");
35698 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35700 long int i = longval ();
35701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35703 fprintf (f, "%ld\n", i);
35707 unsigned long int i = ulongval ();
35708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35710 fprintf (f, "%lu\n", i);
35712 return ferror (f) || fclose (f) != 0;
35718 rm -f conftest$ac_exeext
35719 if { (ac_try="$ac_link"
35720 case "(($ac_try" in
35721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35722 *) ac_try_echo=$ac_try;;
35724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35725 (eval "$ac_link") 2>&5
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35729 { (case "(($ac_try" in
35730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35731 *) ac_try_echo=$ac_try;;
35733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35734 (eval "$ac_try") 2>&5
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; }; then
35738 ac_cv_sizeof_long_int=`cat conftest.val`
35740 echo "$as_me: program exited with status $ac_status" >&5
35741 echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.$ac_ext >&5
35744 ( exit $ac_status )
35745 if test "$ac_cv_type_long_int" = yes; then
35746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35747 See \`config.log' for more details." >&5
35748 echo "$as_me: error: cannot compute sizeof (long int)
35749 See \`config.log' for more details." >&2;}
35750 { (exit 77); exit 77; }; }
35752 ac_cv_sizeof_long_int=0
35755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35759 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35760 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35764 cat >>confdefs.h <<_ACEOF
35765 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35769 { echo "$as_me:$LINENO: checking for long long int" >&5
35770 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35771 if test "${ac_cv_type_long_long_int+set}" = set; then
35772 echo $ECHO_N "(cached) $ECHO_C" >&6
35774 cat >conftest.$ac_ext <<_ACEOF
35777 cat confdefs.h >>conftest.$ac_ext
35778 cat >>conftest.$ac_ext <<_ACEOF
35779 /* end confdefs.h. */
35780 $ac_includes_default
35781 typedef long long int ac__type_new_;
35785 if ((ac__type_new_ *) 0)
35787 if (sizeof (ac__type_new_))
35793 rm -f conftest.$ac_objext
35794 if { (ac_try="$ac_compile"
35795 case "(($ac_try" in
35796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35797 *) ac_try_echo=$ac_try;;
35799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35800 (eval "$ac_compile") 2>conftest.er1
35802 grep -v '^ *+' conftest.er1 >conftest.err
35804 cat conftest.err >&5
35805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806 (exit $ac_status); } && {
35807 test -z "$ac_c_werror_flag" ||
35808 test ! -s conftest.err
35809 } && test -s conftest.$ac_objext; then
35810 ac_cv_type_long_long_int=yes
35812 echo "$as_me: failed program was:" >&5
35813 sed 's/^/| /' conftest.$ac_ext >&5
35815 ac_cv_type_long_long_int=no
35818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35820 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35821 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35823 # The cast to long int works around a bug in the HP C Compiler
35824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35826 # This bug is HP SR number 8606223364.
35827 { echo "$as_me:$LINENO: checking size of long long int" >&5
35828 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35829 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35830 echo $ECHO_N "(cached) $ECHO_C" >&6
35832 if test "$cross_compiling" = yes; then
35833 # Depending upon the size, compute the lo and hi bounds.
35834 cat >conftest.$ac_ext <<_ACEOF
35837 cat confdefs.h >>conftest.$ac_ext
35838 cat >>conftest.$ac_ext <<_ACEOF
35839 /* end confdefs.h. */
35840 $ac_includes_default
35841 typedef long long int ac__type_sizeof_;
35845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35852 rm -f conftest.$ac_objext
35853 if { (ac_try="$ac_compile"
35854 case "(($ac_try" in
35855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35856 *) ac_try_echo=$ac_try;;
35858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35859 (eval "$ac_compile") 2>conftest.er1
35861 grep -v '^ *+' conftest.er1 >conftest.err
35863 cat conftest.err >&5
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); } && {
35866 test -z "$ac_c_werror_flag" ||
35867 test ! -s conftest.err
35868 } && test -s conftest.$ac_objext; then
35871 cat >conftest.$ac_ext <<_ACEOF
35874 cat confdefs.h >>conftest.$ac_ext
35875 cat >>conftest.$ac_ext <<_ACEOF
35876 /* end confdefs.h. */
35877 $ac_includes_default
35878 typedef long long int ac__type_sizeof_;
35882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35889 rm -f conftest.$ac_objext
35890 if { (ac_try="$ac_compile"
35891 case "(($ac_try" in
35892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35893 *) ac_try_echo=$ac_try;;
35895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35896 (eval "$ac_compile") 2>conftest.er1
35898 grep -v '^ *+' conftest.er1 >conftest.err
35900 cat conftest.err >&5
35901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902 (exit $ac_status); } && {
35903 test -z "$ac_c_werror_flag" ||
35904 test ! -s conftest.err
35905 } && test -s conftest.$ac_objext; then
35906 ac_hi=$ac_mid; break
35908 echo "$as_me: failed program was:" >&5
35909 sed 's/^/| /' conftest.$ac_ext >&5
35911 ac_lo=`expr $ac_mid + 1`
35912 if test $ac_lo -le $ac_mid; then
35916 ac_mid=`expr 2 '*' $ac_mid + 1`
35919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35922 echo "$as_me: failed program was:" >&5
35923 sed 's/^/| /' conftest.$ac_ext >&5
35925 cat >conftest.$ac_ext <<_ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h. */
35931 $ac_includes_default
35932 typedef long long int ac__type_sizeof_;
35936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35943 rm -f conftest.$ac_objext
35944 if { (ac_try="$ac_compile"
35945 case "(($ac_try" in
35946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35947 *) ac_try_echo=$ac_try;;
35949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35950 (eval "$ac_compile") 2>conftest.er1
35952 grep -v '^ *+' conftest.er1 >conftest.err
35954 cat conftest.err >&5
35955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956 (exit $ac_status); } && {
35957 test -z "$ac_c_werror_flag" ||
35958 test ! -s conftest.err
35959 } && test -s conftest.$ac_objext; then
35962 cat >conftest.$ac_ext <<_ACEOF
35965 cat confdefs.h >>conftest.$ac_ext
35966 cat >>conftest.$ac_ext <<_ACEOF
35967 /* end confdefs.h. */
35968 $ac_includes_default
35969 typedef long long int ac__type_sizeof_;
35973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35980 rm -f conftest.$ac_objext
35981 if { (ac_try="$ac_compile"
35982 case "(($ac_try" in
35983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35984 *) ac_try_echo=$ac_try;;
35986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35987 (eval "$ac_compile") 2>conftest.er1
35989 grep -v '^ *+' conftest.er1 >conftest.err
35991 cat conftest.err >&5
35992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993 (exit $ac_status); } && {
35994 test -z "$ac_c_werror_flag" ||
35995 test ! -s conftest.err
35996 } && test -s conftest.$ac_objext; then
35997 ac_lo=$ac_mid; break
35999 echo "$as_me: failed program was:" >&5
36000 sed 's/^/| /' conftest.$ac_ext >&5
36002 ac_hi=`expr '(' $ac_mid ')' - 1`
36003 if test $ac_mid -le $ac_hi; then
36007 ac_mid=`expr 2 '*' $ac_mid`
36010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36013 echo "$as_me: failed program was:" >&5
36014 sed 's/^/| /' conftest.$ac_ext >&5
36019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36023 # Binary search between lo and hi bounds.
36024 while test "x$ac_lo" != "x$ac_hi"; do
36025 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36026 cat >conftest.$ac_ext <<_ACEOF
36029 cat confdefs.h >>conftest.$ac_ext
36030 cat >>conftest.$ac_ext <<_ACEOF
36031 /* end confdefs.h. */
36032 $ac_includes_default
36033 typedef long long int ac__type_sizeof_;
36037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36044 rm -f conftest.$ac_objext
36045 if { (ac_try="$ac_compile"
36046 case "(($ac_try" in
36047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36048 *) ac_try_echo=$ac_try;;
36050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36051 (eval "$ac_compile") 2>conftest.er1
36053 grep -v '^ *+' conftest.er1 >conftest.err
36055 cat conftest.err >&5
36056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 (exit $ac_status); } && {
36058 test -z "$ac_c_werror_flag" ||
36059 test ! -s conftest.err
36060 } && test -s conftest.$ac_objext; then
36063 echo "$as_me: failed program was:" >&5
36064 sed 's/^/| /' conftest.$ac_ext >&5
36066 ac_lo=`expr '(' $ac_mid ')' + 1`
36069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36072 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36073 '') if test "$ac_cv_type_long_long_int" = yes; then
36074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36075 See \`config.log' for more details." >&5
36076 echo "$as_me: error: cannot compute sizeof (long long int)
36077 See \`config.log' for more details." >&2;}
36078 { (exit 77); exit 77; }; }
36080 ac_cv_sizeof_long_long_int=0
36084 cat >conftest.$ac_ext <<_ACEOF
36087 cat confdefs.h >>conftest.$ac_ext
36088 cat >>conftest.$ac_ext <<_ACEOF
36089 /* end confdefs.h. */
36090 $ac_includes_default
36091 typedef long long int ac__type_sizeof_;
36092 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36093 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36095 #include <stdlib.h>
36100 FILE *f = fopen ("conftest.val", "w");
36103 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36105 long int i = longval ();
36106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36108 fprintf (f, "%ld\n", i);
36112 unsigned long int i = ulongval ();
36113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36115 fprintf (f, "%lu\n", i);
36117 return ferror (f) || fclose (f) != 0;
36123 rm -f conftest$ac_exeext
36124 if { (ac_try="$ac_link"
36125 case "(($ac_try" in
36126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36127 *) ac_try_echo=$ac_try;;
36129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36130 (eval "$ac_link") 2>&5
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36134 { (case "(($ac_try" in
36135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36136 *) ac_try_echo=$ac_try;;
36138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36139 (eval "$ac_try") 2>&5
36141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36142 (exit $ac_status); }; }; then
36143 ac_cv_sizeof_long_long_int=`cat conftest.val`
36145 echo "$as_me: program exited with status $ac_status" >&5
36146 echo "$as_me: failed program was:" >&5
36147 sed 's/^/| /' conftest.$ac_ext >&5
36149 ( exit $ac_status )
36150 if test "$ac_cv_type_long_long_int" = yes; then
36151 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36152 See \`config.log' for more details." >&5
36153 echo "$as_me: error: cannot compute sizeof (long long int)
36154 See \`config.log' for more details." >&2;}
36155 { (exit 77); exit 77; }; }
36157 ac_cv_sizeof_long_long_int=0
36160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36164 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36165 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36169 cat >>confdefs.h <<_ACEOF
36170 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36174 { echo "$as_me:$LINENO: checking for int *" >&5
36175 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36176 if test "${ac_cv_type_int_p+set}" = set; then
36177 echo $ECHO_N "(cached) $ECHO_C" >&6
36179 cat >conftest.$ac_ext <<_ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h. */
36185 $ac_includes_default
36186 typedef int * ac__type_new_;
36190 if ((ac__type_new_ *) 0)
36192 if (sizeof (ac__type_new_))
36198 rm -f conftest.$ac_objext
36199 if { (ac_try="$ac_compile"
36200 case "(($ac_try" in
36201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36202 *) ac_try_echo=$ac_try;;
36204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36205 (eval "$ac_compile") 2>conftest.er1
36207 grep -v '^ *+' conftest.er1 >conftest.err
36209 cat conftest.err >&5
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); } && {
36212 test -z "$ac_c_werror_flag" ||
36213 test ! -s conftest.err
36214 } && test -s conftest.$ac_objext; then
36215 ac_cv_type_int_p=yes
36217 echo "$as_me: failed program was:" >&5
36218 sed 's/^/| /' conftest.$ac_ext >&5
36220 ac_cv_type_int_p=no
36223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36225 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36226 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36228 # The cast to long int works around a bug in the HP C Compiler
36229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36231 # This bug is HP SR number 8606223364.
36232 { echo "$as_me:$LINENO: checking size of int *" >&5
36233 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36234 if test "${ac_cv_sizeof_int_p+set}" = set; then
36235 echo $ECHO_N "(cached) $ECHO_C" >&6
36237 if test "$cross_compiling" = yes; then
36238 # Depending upon the size, compute the lo and hi bounds.
36239 cat >conftest.$ac_ext <<_ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h. */
36245 $ac_includes_default
36246 typedef int * ac__type_sizeof_;
36250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36257 rm -f conftest.$ac_objext
36258 if { (ac_try="$ac_compile"
36259 case "(($ac_try" in
36260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36261 *) ac_try_echo=$ac_try;;
36263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36264 (eval "$ac_compile") 2>conftest.er1
36266 grep -v '^ *+' conftest.er1 >conftest.err
36268 cat conftest.err >&5
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); } && {
36271 test -z "$ac_c_werror_flag" ||
36272 test ! -s conftest.err
36273 } && test -s conftest.$ac_objext; then
36276 cat >conftest.$ac_ext <<_ACEOF
36279 cat confdefs.h >>conftest.$ac_ext
36280 cat >>conftest.$ac_ext <<_ACEOF
36281 /* end confdefs.h. */
36282 $ac_includes_default
36283 typedef int * ac__type_sizeof_;
36287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36294 rm -f conftest.$ac_objext
36295 if { (ac_try="$ac_compile"
36296 case "(($ac_try" in
36297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36298 *) ac_try_echo=$ac_try;;
36300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36301 (eval "$ac_compile") 2>conftest.er1
36303 grep -v '^ *+' conftest.er1 >conftest.err
36305 cat conftest.err >&5
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); } && {
36308 test -z "$ac_c_werror_flag" ||
36309 test ! -s conftest.err
36310 } && test -s conftest.$ac_objext; then
36311 ac_hi=$ac_mid; break
36313 echo "$as_me: failed program was:" >&5
36314 sed 's/^/| /' conftest.$ac_ext >&5
36316 ac_lo=`expr $ac_mid + 1`
36317 if test $ac_lo -le $ac_mid; then
36321 ac_mid=`expr 2 '*' $ac_mid + 1`
36324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36327 echo "$as_me: failed program was:" >&5
36328 sed 's/^/| /' conftest.$ac_ext >&5
36330 cat >conftest.$ac_ext <<_ACEOF
36333 cat confdefs.h >>conftest.$ac_ext
36334 cat >>conftest.$ac_ext <<_ACEOF
36335 /* end confdefs.h. */
36336 $ac_includes_default
36337 typedef int * ac__type_sizeof_;
36341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36348 rm -f conftest.$ac_objext
36349 if { (ac_try="$ac_compile"
36350 case "(($ac_try" in
36351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36352 *) ac_try_echo=$ac_try;;
36354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36355 (eval "$ac_compile") 2>conftest.er1
36357 grep -v '^ *+' conftest.er1 >conftest.err
36359 cat conftest.err >&5
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); } && {
36362 test -z "$ac_c_werror_flag" ||
36363 test ! -s conftest.err
36364 } && test -s conftest.$ac_objext; then
36367 cat >conftest.$ac_ext <<_ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h. */
36373 $ac_includes_default
36374 typedef int * ac__type_sizeof_;
36378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36385 rm -f conftest.$ac_objext
36386 if { (ac_try="$ac_compile"
36387 case "(($ac_try" in
36388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36389 *) ac_try_echo=$ac_try;;
36391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36392 (eval "$ac_compile") 2>conftest.er1
36394 grep -v '^ *+' conftest.er1 >conftest.err
36396 cat conftest.err >&5
36397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398 (exit $ac_status); } && {
36399 test -z "$ac_c_werror_flag" ||
36400 test ! -s conftest.err
36401 } && test -s conftest.$ac_objext; then
36402 ac_lo=$ac_mid; break
36404 echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.$ac_ext >&5
36407 ac_hi=`expr '(' $ac_mid ')' - 1`
36408 if test $ac_mid -le $ac_hi; then
36412 ac_mid=`expr 2 '*' $ac_mid`
36415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36418 echo "$as_me: failed program was:" >&5
36419 sed 's/^/| /' conftest.$ac_ext >&5
36424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36428 # Binary search between lo and hi bounds.
36429 while test "x$ac_lo" != "x$ac_hi"; do
36430 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36431 cat >conftest.$ac_ext <<_ACEOF
36434 cat confdefs.h >>conftest.$ac_ext
36435 cat >>conftest.$ac_ext <<_ACEOF
36436 /* end confdefs.h. */
36437 $ac_includes_default
36438 typedef int * ac__type_sizeof_;
36442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36449 rm -f conftest.$ac_objext
36450 if { (ac_try="$ac_compile"
36451 case "(($ac_try" in
36452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36453 *) ac_try_echo=$ac_try;;
36455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36456 (eval "$ac_compile") 2>conftest.er1
36458 grep -v '^ *+' conftest.er1 >conftest.err
36460 cat conftest.err >&5
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); } && {
36463 test -z "$ac_c_werror_flag" ||
36464 test ! -s conftest.err
36465 } && test -s conftest.$ac_objext; then
36468 echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36471 ac_lo=`expr '(' $ac_mid ')' + 1`
36474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36477 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36478 '') if test "$ac_cv_type_int_p" = yes; then
36479 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36480 See \`config.log' for more details." >&5
36481 echo "$as_me: error: cannot compute sizeof (int *)
36482 See \`config.log' for more details." >&2;}
36483 { (exit 77); exit 77; }; }
36485 ac_cv_sizeof_int_p=0
36489 cat >conftest.$ac_ext <<_ACEOF
36492 cat confdefs.h >>conftest.$ac_ext
36493 cat >>conftest.$ac_ext <<_ACEOF
36494 /* end confdefs.h. */
36495 $ac_includes_default
36496 typedef int * ac__type_sizeof_;
36497 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36498 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36500 #include <stdlib.h>
36505 FILE *f = fopen ("conftest.val", "w");
36508 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36510 long int i = longval ();
36511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36513 fprintf (f, "%ld\n", i);
36517 unsigned long int i = ulongval ();
36518 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36520 fprintf (f, "%lu\n", i);
36522 return ferror (f) || fclose (f) != 0;
36528 rm -f conftest$ac_exeext
36529 if { (ac_try="$ac_link"
36530 case "(($ac_try" in
36531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36532 *) ac_try_echo=$ac_try;;
36534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36535 (eval "$ac_link") 2>&5
36537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36539 { (case "(($ac_try" in
36540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36541 *) ac_try_echo=$ac_try;;
36543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36544 (eval "$ac_try") 2>&5
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); }; }; then
36548 ac_cv_sizeof_int_p=`cat conftest.val`
36550 echo "$as_me: program exited with status $ac_status" >&5
36551 echo "$as_me: failed program was:" >&5
36552 sed 's/^/| /' conftest.$ac_ext >&5
36554 ( exit $ac_status )
36555 if test "$ac_cv_type_int_p" = yes; then
36556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36557 See \`config.log' for more details." >&5
36558 echo "$as_me: error: cannot compute sizeof (int *)
36559 See \`config.log' for more details." >&2;}
36560 { (exit 77); exit 77; }; }
36562 ac_cv_sizeof_int_p=0
36565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36569 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36570 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36574 cat >>confdefs.h <<_ACEOF
36575 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36580 { echo "$as_me:$LINENO: checking for u_int type" >&5
36581 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36582 if test "${ac_cv_have_u_int+set}" = set; then
36583 echo $ECHO_N "(cached) $ECHO_C" >&6
36586 cat >conftest.$ac_ext <<_ACEOF
36589 cat confdefs.h >>conftest.$ac_ext
36590 cat >>conftest.$ac_ext <<_ACEOF
36591 /* end confdefs.h. */
36593 #include <sys/types.h>
36605 rm -f conftest.$ac_objext
36606 if { (ac_try="$ac_compile"
36607 case "(($ac_try" in
36608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36609 *) ac_try_echo=$ac_try;;
36611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36612 (eval "$ac_compile") 2>conftest.er1
36614 grep -v '^ *+' conftest.er1 >conftest.err
36616 cat conftest.err >&5
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); } && {
36619 test -z "$ac_c_werror_flag" ||
36620 test ! -s conftest.err
36621 } && test -s conftest.$ac_objext; then
36623 ac_cv_have_u_int="yes"
36626 echo "$as_me: failed program was:" >&5
36627 sed 's/^/| /' conftest.$ac_ext >&5
36630 ac_cv_have_u_int="no"
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36639 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36640 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36641 if test "x$ac_cv_have_u_int" = "xyes" ; then
36642 cat >>confdefs.h <<\_ACEOF
36643 #define HAVE_U_INT 1
36649 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36650 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36651 if test "${ac_cv_have_intmax_t+set}" = set; then
36652 echo $ECHO_N "(cached) $ECHO_C" >&6
36655 cat >conftest.$ac_ext <<_ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h. */
36662 #include <sys/types.h>
36674 rm -f conftest.$ac_objext
36675 if { (ac_try="$ac_compile"
36676 case "(($ac_try" in
36677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36678 *) ac_try_echo=$ac_try;;
36680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36681 (eval "$ac_compile") 2>conftest.er1
36683 grep -v '^ *+' conftest.er1 >conftest.err
36685 cat conftest.err >&5
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); } && {
36688 test -z "$ac_c_werror_flag" ||
36689 test ! -s conftest.err
36690 } && test -s conftest.$ac_objext; then
36692 ac_cv_have_intmax_t="yes"
36695 echo "$as_me: failed program was:" >&5
36696 sed 's/^/| /' conftest.$ac_ext >&5
36699 cat >conftest.$ac_ext <<_ACEOF
36702 cat confdefs.h >>conftest.$ac_ext
36703 cat >>conftest.$ac_ext <<_ACEOF
36704 /* end confdefs.h. */
36706 #include <stdint.h>
36718 rm -f conftest.$ac_objext
36719 if { (ac_try="$ac_compile"
36720 case "(($ac_try" in
36721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36722 *) ac_try_echo=$ac_try;;
36724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36725 (eval "$ac_compile") 2>conftest.er1
36727 grep -v '^ *+' conftest.er1 >conftest.err
36729 cat conftest.err >&5
36730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 (exit $ac_status); } && {
36732 test -z "$ac_c_werror_flag" ||
36733 test ! -s conftest.err
36734 } && test -s conftest.$ac_objext; then
36736 ac_cv_have_intmax_t="yes"
36739 echo "$as_me: failed program was:" >&5
36740 sed 's/^/| /' conftest.$ac_ext >&5
36743 ac_cv_have_intmax_t="no"
36748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36757 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36758 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36759 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36760 cat >>confdefs.h <<\_ACEOF
36761 #define HAVE_INTMAX_T 1
36767 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36768 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36769 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36770 echo $ECHO_N "(cached) $ECHO_C" >&6
36773 cat >conftest.$ac_ext <<_ACEOF
36776 cat confdefs.h >>conftest.$ac_ext
36777 cat >>conftest.$ac_ext <<_ACEOF
36778 /* end confdefs.h. */
36780 #include <sys/types.h>
36786 u_intmax_t a; a = 1;
36792 rm -f conftest.$ac_objext
36793 if { (ac_try="$ac_compile"
36794 case "(($ac_try" in
36795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36796 *) ac_try_echo=$ac_try;;
36798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36799 (eval "$ac_compile") 2>conftest.er1
36801 grep -v '^ *+' conftest.er1 >conftest.err
36803 cat conftest.err >&5
36804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36805 (exit $ac_status); } && {
36806 test -z "$ac_c_werror_flag" ||
36807 test ! -s conftest.err
36808 } && test -s conftest.$ac_objext; then
36810 ac_cv_have_u_intmax_t="yes"
36813 echo "$as_me: failed program was:" >&5
36814 sed 's/^/| /' conftest.$ac_ext >&5
36817 cat >conftest.$ac_ext <<_ACEOF
36820 cat confdefs.h >>conftest.$ac_ext
36821 cat >>conftest.$ac_ext <<_ACEOF
36822 /* end confdefs.h. */
36824 #include <stdint.h>
36830 u_intmax_t a; a = 1;
36836 rm -f conftest.$ac_objext
36837 if { (ac_try="$ac_compile"
36838 case "(($ac_try" in
36839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36840 *) ac_try_echo=$ac_try;;
36842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36843 (eval "$ac_compile") 2>conftest.er1
36845 grep -v '^ *+' conftest.er1 >conftest.err
36847 cat conftest.err >&5
36848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36849 (exit $ac_status); } && {
36850 test -z "$ac_c_werror_flag" ||
36851 test ! -s conftest.err
36852 } && test -s conftest.$ac_objext; then
36854 ac_cv_have_u_intmax_t="yes"
36857 echo "$as_me: failed program was:" >&5
36858 sed 's/^/| /' conftest.$ac_ext >&5
36861 ac_cv_have_u_intmax_t="no"
36866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36875 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36876 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36877 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36878 cat >>confdefs.h <<\_ACEOF
36879 #define HAVE_U_INTMAX_T 1
36885 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36886 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36887 if test "${ac_cv_have_intxx_t+set}" = set; then
36888 echo $ECHO_N "(cached) $ECHO_C" >&6
36891 cat >conftest.$ac_ext <<_ACEOF
36894 cat confdefs.h >>conftest.$ac_ext
36895 cat >>conftest.$ac_ext <<_ACEOF
36896 /* end confdefs.h. */
36898 #include <sys/types.h>
36904 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36910 rm -f conftest.$ac_objext
36911 if { (ac_try="$ac_compile"
36912 case "(($ac_try" in
36913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36914 *) ac_try_echo=$ac_try;;
36916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36917 (eval "$ac_compile") 2>conftest.er1
36919 grep -v '^ *+' conftest.er1 >conftest.err
36921 cat conftest.err >&5
36922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923 (exit $ac_status); } && {
36924 test -z "$ac_c_werror_flag" ||
36925 test ! -s conftest.err
36926 } && test -s conftest.$ac_objext; then
36928 ac_cv_have_intxx_t="yes"
36931 echo "$as_me: failed program was:" >&5
36932 sed 's/^/| /' conftest.$ac_ext >&5
36935 ac_cv_have_intxx_t="no"
36940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36944 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36945 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36946 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36947 cat >>confdefs.h <<\_ACEOF
36948 #define HAVE_INTXX_T 1
36954 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36955 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36956 if test "${ac_cv_have_int64_t+set}" = set; then
36957 echo $ECHO_N "(cached) $ECHO_C" >&6
36960 cat >conftest.$ac_ext <<_ACEOF
36963 cat confdefs.h >>conftest.$ac_ext
36964 cat >>conftest.$ac_ext <<_ACEOF
36965 /* end confdefs.h. */
36967 #include <sys/types.h>
36979 rm -f conftest.$ac_objext
36980 if { (ac_try="$ac_compile"
36981 case "(($ac_try" in
36982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36983 *) ac_try_echo=$ac_try;;
36985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36986 (eval "$ac_compile") 2>conftest.er1
36988 grep -v '^ *+' conftest.er1 >conftest.err
36990 cat conftest.err >&5
36991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992 (exit $ac_status); } && {
36993 test -z "$ac_c_werror_flag" ||
36994 test ! -s conftest.err
36995 } && test -s conftest.$ac_objext; then
36997 ac_cv_have_int64_t="yes"
37000 echo "$as_me: failed program was:" >&5
37001 sed 's/^/| /' conftest.$ac_ext >&5
37004 ac_cv_have_int64_t="no"
37009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37013 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37014 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37015 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37016 cat >>confdefs.h <<\_ACEOF
37017 #define HAVE_INT64_T 1
37023 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37024 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37025 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37026 echo $ECHO_N "(cached) $ECHO_C" >&6
37029 cat >conftest.$ac_ext <<_ACEOF
37032 cat confdefs.h >>conftest.$ac_ext
37033 cat >>conftest.$ac_ext <<_ACEOF
37034 /* end confdefs.h. */
37036 #include <sys/types.h>
37042 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37048 rm -f conftest.$ac_objext
37049 if { (ac_try="$ac_compile"
37050 case "(($ac_try" in
37051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37052 *) ac_try_echo=$ac_try;;
37054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37055 (eval "$ac_compile") 2>conftest.er1
37057 grep -v '^ *+' conftest.er1 >conftest.err
37059 cat conftest.err >&5
37060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061 (exit $ac_status); } && {
37062 test -z "$ac_c_werror_flag" ||
37063 test ! -s conftest.err
37064 } && test -s conftest.$ac_objext; then
37066 ac_cv_have_u_intxx_t="yes"
37069 echo "$as_me: failed program was:" >&5
37070 sed 's/^/| /' conftest.$ac_ext >&5
37073 ac_cv_have_u_intxx_t="no"
37078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37082 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37083 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37084 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37085 cat >>confdefs.h <<\_ACEOF
37086 #define HAVE_U_INTXX_T 1
37092 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37093 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37094 if test "${ac_cv_have_u_int64_t+set}" = set; then
37095 echo $ECHO_N "(cached) $ECHO_C" >&6
37098 cat >conftest.$ac_ext <<_ACEOF
37101 cat confdefs.h >>conftest.$ac_ext
37102 cat >>conftest.$ac_ext <<_ACEOF
37103 /* end confdefs.h. */
37105 #include <sys/types.h>
37111 u_int64_t a; a = 1;
37117 rm -f conftest.$ac_objext
37118 if { (ac_try="$ac_compile"
37119 case "(($ac_try" in
37120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121 *) ac_try_echo=$ac_try;;
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124 (eval "$ac_compile") 2>conftest.er1
37126 grep -v '^ *+' conftest.er1 >conftest.err
37128 cat conftest.err >&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } && {
37131 test -z "$ac_c_werror_flag" ||
37132 test ! -s conftest.err
37133 } && test -s conftest.$ac_objext; then
37135 ac_cv_have_u_int64_t="yes"
37138 echo "$as_me: failed program was:" >&5
37139 sed 's/^/| /' conftest.$ac_ext >&5
37142 ac_cv_have_u_int64_t="no"
37147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37151 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37152 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37153 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37154 cat >>confdefs.h <<\_ACEOF
37155 #define HAVE_U_INT64_T 1
37161 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37162 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37164 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37165 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37166 cat >conftest.$ac_ext <<_ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h. */
37173 #include <sys/bitypes.h>
37179 int8_t a; int16_t b; int32_t c;
37180 u_int8_t e; u_int16_t f; u_int32_t g;
37181 a = b = c = e = f = g = 1;
37187 rm -f conftest.$ac_objext
37188 if { (ac_try="$ac_compile"
37189 case "(($ac_try" in
37190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37191 *) ac_try_echo=$ac_try;;
37193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37194 (eval "$ac_compile") 2>conftest.er1
37196 grep -v '^ *+' conftest.er1 >conftest.err
37198 cat conftest.err >&5
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); } && {
37201 test -z "$ac_c_werror_flag" ||
37202 test ! -s conftest.err
37203 } && test -s conftest.$ac_objext; then
37205 cat >>confdefs.h <<\_ACEOF
37206 #define HAVE_U_INTXX_T 1
37209 cat >>confdefs.h <<\_ACEOF
37210 #define HAVE_INTXX_T 1
37213 cat >>confdefs.h <<\_ACEOF
37214 #define HAVE_SYS_BITYPES_H 1
37217 { echo "$as_me:$LINENO: result: yes" >&5
37218 echo "${ECHO_T}yes" >&6; }
37221 echo "$as_me: failed program was:" >&5
37222 sed 's/^/| /' conftest.$ac_ext >&5
37225 { echo "$as_me:$LINENO: result: no" >&5
37226 echo "${ECHO_T}no" >&6; }
37231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37234 if test -z "$have_u_intxx_t" ; then
37235 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37236 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37237 if test "${ac_cv_have_uintxx_t+set}" = set; then
37238 echo $ECHO_N "(cached) $ECHO_C" >&6
37241 cat >conftest.$ac_ext <<_ACEOF
37244 cat confdefs.h >>conftest.$ac_ext
37245 cat >>conftest.$ac_ext <<_ACEOF
37246 /* end confdefs.h. */
37248 #include <sys/types.h>
37254 uint8_t a; uint16_t b;
37255 uint32_t c; a = b = c = 1;
37261 rm -f conftest.$ac_objext
37262 if { (ac_try="$ac_compile"
37263 case "(($ac_try" in
37264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37265 *) ac_try_echo=$ac_try;;
37267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37268 (eval "$ac_compile") 2>conftest.er1
37270 grep -v '^ *+' conftest.er1 >conftest.err
37272 cat conftest.err >&5
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); } && {
37275 test -z "$ac_c_werror_flag" ||
37276 test ! -s conftest.err
37277 } && test -s conftest.$ac_objext; then
37279 ac_cv_have_uintxx_t="yes"
37282 echo "$as_me: failed program was:" >&5
37283 sed 's/^/| /' conftest.$ac_ext >&5
37286 ac_cv_have_uintxx_t="no"
37291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37295 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37296 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37297 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37298 cat >>confdefs.h <<\_ACEOF
37299 #define HAVE_UINTXX_T 1
37305 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37306 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37308 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37309 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37310 cat >conftest.$ac_ext <<_ACEOF
37313 cat confdefs.h >>conftest.$ac_ext
37314 cat >>conftest.$ac_ext <<_ACEOF
37315 /* end confdefs.h. */
37317 #include <sys/bitypes.h>
37323 int64_t a; u_int64_t b;
37330 rm -f conftest.$ac_objext
37331 if { (ac_try="$ac_compile"
37332 case "(($ac_try" in
37333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37334 *) ac_try_echo=$ac_try;;
37336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37337 (eval "$ac_compile") 2>conftest.er1
37339 grep -v '^ *+' conftest.er1 >conftest.err
37341 cat conftest.err >&5
37342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); } && {
37344 test -z "$ac_c_werror_flag" ||
37345 test ! -s conftest.err
37346 } && test -s conftest.$ac_objext; then
37348 cat >>confdefs.h <<\_ACEOF
37349 #define HAVE_U_INT64_T 1
37352 cat >>confdefs.h <<\_ACEOF
37353 #define HAVE_INT64_T 1
37356 { echo "$as_me:$LINENO: result: yes" >&5
37357 echo "${ECHO_T}yes" >&6; }
37360 echo "$as_me: failed program was:" >&5
37361 sed 's/^/| /' conftest.$ac_ext >&5
37364 { echo "$as_me:$LINENO: result: no" >&5
37365 echo "${ECHO_T}no" >&6; }
37370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37373 if (test -z "$have_uintxx_t" && \
37374 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37376 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37377 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37378 cat >conftest.$ac_ext <<_ACEOF
37381 cat confdefs.h >>conftest.$ac_ext
37382 cat >>conftest.$ac_ext <<_ACEOF
37383 /* end confdefs.h. */
37385 #include <sys/bitypes.h>
37391 uint8_t a; uint16_t b;
37392 uint32_t c; a = b = c = 1;
37398 rm -f conftest.$ac_objext
37399 if { (ac_try="$ac_compile"
37400 case "(($ac_try" in
37401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37402 *) ac_try_echo=$ac_try;;
37404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37405 (eval "$ac_compile") 2>conftest.er1
37407 grep -v '^ *+' conftest.er1 >conftest.err
37409 cat conftest.err >&5
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); } && {
37412 test -z "$ac_c_werror_flag" ||
37413 test ! -s conftest.err
37414 } && test -s conftest.$ac_objext; then
37416 cat >>confdefs.h <<\_ACEOF
37417 #define HAVE_UINTXX_T 1
37420 { echo "$as_me:$LINENO: result: yes" >&5
37421 echo "${ECHO_T}yes" >&6; }
37424 echo "$as_me: failed program was:" >&5
37425 sed 's/^/| /' conftest.$ac_ext >&5
37428 { echo "$as_me:$LINENO: result: no" >&5
37429 echo "${ECHO_T}no" >&6; }
37434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37470 echo $ECHO_N "(cached) $ECHO_C" >&6
37472 cat >conftest.$ac_ext <<_ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h. */
37478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37480 #define $ac_func innocuous_$ac_func
37482 /* System header to define __stub macros and hopefully few prototypes,
37483 which can conflict with char $ac_func (); below.
37484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37485 <limits.h> exists even on freestanding compilers. */
37488 # include <limits.h>
37490 # include <assert.h>
37495 /* Override any GCC internal prototype to avoid an error.
37496 Use char because int might match the return type of a GCC
37497 builtin and then its argument prototype would still apply. */
37502 /* The GNU C library defines this for functions which it implements
37503 to always fail with ENOSYS. Some functions are actually named
37504 something starting with __ and the normal name is an alias. */
37505 #if defined __stub_$ac_func || defined __stub___$ac_func
37512 return $ac_func ();
37517 rm -f conftest.$ac_objext conftest$ac_exeext
37518 if { (ac_try="$ac_link"
37519 case "(($ac_try" in
37520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37521 *) ac_try_echo=$ac_try;;
37523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37524 (eval "$ac_link") 2>conftest.er1
37526 grep -v '^ *+' conftest.er1 >conftest.err
37528 cat conftest.err >&5
37529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37530 (exit $ac_status); } && {
37531 test -z "$ac_c_werror_flag" ||
37532 test ! -s conftest.err
37533 } && test -s conftest$ac_exeext &&
37534 $as_test_x conftest$ac_exeext; then
37535 eval "$as_ac_var=yes"
37537 echo "$as_me: failed program was:" >&5
37538 sed 's/^/| /' conftest.$ac_ext >&5
37540 eval "$as_ac_var=no"
37543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37544 conftest$ac_exeext conftest.$ac_ext
37546 ac_res=`eval echo '${'$as_ac_var'}'`
37547 { echo "$as_me:$LINENO: result: $ac_res" >&5
37548 echo "${ECHO_T}$ac_res" >&6; }
37549 if test `eval echo '${'$as_ac_var'}'` = yes; then
37550 cat >>confdefs.h <<_ACEOF
37551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37555 echo 'configure: cannot find needed function.'; exit 1
37562 for ac_func in fchdir
37564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37568 echo $ECHO_N "(cached) $ECHO_C" >&6
37570 cat >conftest.$ac_ext <<_ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h. */
37576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37578 #define $ac_func innocuous_$ac_func
37580 /* System header to define __stub macros and hopefully few prototypes,
37581 which can conflict with char $ac_func (); below.
37582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37583 <limits.h> exists even on freestanding compilers. */
37586 # include <limits.h>
37588 # include <assert.h>
37593 /* Override any GCC internal prototype to avoid an error.
37594 Use char because int might match the return type of a GCC
37595 builtin and then its argument prototype would still apply. */
37600 /* The GNU C library defines this for functions which it implements
37601 to always fail with ENOSYS. Some functions are actually named
37602 something starting with __ and the normal name is an alias. */
37603 #if defined __stub_$ac_func || defined __stub___$ac_func
37610 return $ac_func ();
37615 rm -f conftest.$ac_objext conftest$ac_exeext
37616 if { (ac_try="$ac_link"
37617 case "(($ac_try" in
37618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37619 *) ac_try_echo=$ac_try;;
37621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37622 (eval "$ac_link") 2>conftest.er1
37624 grep -v '^ *+' conftest.er1 >conftest.err
37626 cat conftest.err >&5
37627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628 (exit $ac_status); } && {
37629 test -z "$ac_c_werror_flag" ||
37630 test ! -s conftest.err
37631 } && test -s conftest$ac_exeext &&
37632 $as_test_x conftest$ac_exeext; then
37633 eval "$as_ac_var=yes"
37635 echo "$as_me: failed program was:" >&5
37636 sed 's/^/| /' conftest.$ac_ext >&5
37638 eval "$as_ac_var=no"
37641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37642 conftest$ac_exeext conftest.$ac_ext
37644 ac_res=`eval echo '${'$as_ac_var'}'`
37645 { echo "$as_me:$LINENO: result: $ac_res" >&5
37646 echo "${ECHO_T}$ac_res" >&6; }
37647 if test `eval echo '${'$as_ac_var'}'` = yes; then
37648 cat >>confdefs.h <<_ACEOF
37649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37651 cat >>confdefs.h <<\_ACEOF
37652 #define HAVE_FCHDIR 1
37659 for ac_func in strtoll
37661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37665 echo $ECHO_N "(cached) $ECHO_C" >&6
37667 cat >conftest.$ac_ext <<_ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h. */
37673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37675 #define $ac_func innocuous_$ac_func
37677 /* System header to define __stub macros and hopefully few prototypes,
37678 which can conflict with char $ac_func (); below.
37679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37680 <limits.h> exists even on freestanding compilers. */
37683 # include <limits.h>
37685 # include <assert.h>
37690 /* Override any GCC internal prototype to avoid an error.
37691 Use char because int might match the return type of a GCC
37692 builtin and then its argument prototype would still apply. */
37697 /* The GNU C library defines this for functions which it implements
37698 to always fail with ENOSYS. Some functions are actually named
37699 something starting with __ and the normal name is an alias. */
37700 #if defined __stub_$ac_func || defined __stub___$ac_func
37707 return $ac_func ();
37712 rm -f conftest.$ac_objext conftest$ac_exeext
37713 if { (ac_try="$ac_link"
37714 case "(($ac_try" in
37715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37716 *) ac_try_echo=$ac_try;;
37718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37719 (eval "$ac_link") 2>conftest.er1
37721 grep -v '^ *+' conftest.er1 >conftest.err
37723 cat conftest.err >&5
37724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37725 (exit $ac_status); } && {
37726 test -z "$ac_c_werror_flag" ||
37727 test ! -s conftest.err
37728 } && test -s conftest$ac_exeext &&
37729 $as_test_x conftest$ac_exeext; then
37730 eval "$as_ac_var=yes"
37732 echo "$as_me: failed program was:" >&5
37733 sed 's/^/| /' conftest.$ac_ext >&5
37735 eval "$as_ac_var=no"
37738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37739 conftest$ac_exeext conftest.$ac_ext
37741 ac_res=`eval echo '${'$as_ac_var'}'`
37742 { echo "$as_me:$LINENO: result: $ac_res" >&5
37743 echo "${ECHO_T}$ac_res" >&6; }
37744 if test `eval echo '${'$as_ac_var'}'` = yes; then
37745 cat >>confdefs.h <<_ACEOF
37746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37748 cat >>confdefs.h <<\_ACEOF
37749 #define HAVE_STRTOLL 1
37756 for ac_func in posix_fadvise
37758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37762 echo $ECHO_N "(cached) $ECHO_C" >&6
37764 cat >conftest.$ac_ext <<_ACEOF
37767 cat confdefs.h >>conftest.$ac_ext
37768 cat >>conftest.$ac_ext <<_ACEOF
37769 /* end confdefs.h. */
37770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37772 #define $ac_func innocuous_$ac_func
37774 /* System header to define __stub macros and hopefully few prototypes,
37775 which can conflict with char $ac_func (); below.
37776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37777 <limits.h> exists even on freestanding compilers. */
37780 # include <limits.h>
37782 # include <assert.h>
37787 /* Override any GCC internal prototype to avoid an error.
37788 Use char because int might match the return type of a GCC
37789 builtin and then its argument prototype would still apply. */
37794 /* The GNU C library defines this for functions which it implements
37795 to always fail with ENOSYS. Some functions are actually named
37796 something starting with __ and the normal name is an alias. */
37797 #if defined __stub_$ac_func || defined __stub___$ac_func
37804 return $ac_func ();
37809 rm -f conftest.$ac_objext conftest$ac_exeext
37810 if { (ac_try="$ac_link"
37811 case "(($ac_try" in
37812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37813 *) ac_try_echo=$ac_try;;
37815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37816 (eval "$ac_link") 2>conftest.er1
37818 grep -v '^ *+' conftest.er1 >conftest.err
37820 cat conftest.err >&5
37821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822 (exit $ac_status); } && {
37823 test -z "$ac_c_werror_flag" ||
37824 test ! -s conftest.err
37825 } && test -s conftest$ac_exeext &&
37826 $as_test_x conftest$ac_exeext; then
37827 eval "$as_ac_var=yes"
37829 echo "$as_me: failed program was:" >&5
37830 sed 's/^/| /' conftest.$ac_ext >&5
37832 eval "$as_ac_var=no"
37835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37836 conftest$ac_exeext conftest.$ac_ext
37838 ac_res=`eval echo '${'$as_ac_var'}'`
37839 { echo "$as_me:$LINENO: result: $ac_res" >&5
37840 echo "${ECHO_T}$ac_res" >&6; }
37841 if test `eval echo '${'$as_ac_var'}'` = yes; then
37842 cat >>confdefs.h <<_ACEOF
37843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37850 for ac_func in fdatasync
37852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37856 echo $ECHO_N "(cached) $ECHO_C" >&6
37858 cat >conftest.$ac_ext <<_ACEOF
37861 cat confdefs.h >>conftest.$ac_ext
37862 cat >>conftest.$ac_ext <<_ACEOF
37863 /* end confdefs.h. */
37864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37866 #define $ac_func innocuous_$ac_func
37868 /* System header to define __stub macros and hopefully few prototypes,
37869 which can conflict with char $ac_func (); below.
37870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37871 <limits.h> exists even on freestanding compilers. */
37874 # include <limits.h>
37876 # include <assert.h>
37881 /* Override any GCC internal prototype to avoid an error.
37882 Use char because int might match the return type of a GCC
37883 builtin and then its argument prototype would still apply. */
37888 /* The GNU C library defines this for functions which it implements
37889 to always fail with ENOSYS. Some functions are actually named
37890 something starting with __ and the normal name is an alias. */
37891 #if defined __stub_$ac_func || defined __stub___$ac_func
37898 return $ac_func ();
37903 rm -f conftest.$ac_objext conftest$ac_exeext
37904 if { (ac_try="$ac_link"
37905 case "(($ac_try" in
37906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37907 *) ac_try_echo=$ac_try;;
37909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37910 (eval "$ac_link") 2>conftest.er1
37912 grep -v '^ *+' conftest.er1 >conftest.err
37914 cat conftest.err >&5
37915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916 (exit $ac_status); } && {
37917 test -z "$ac_c_werror_flag" ||
37918 test ! -s conftest.err
37919 } && test -s conftest$ac_exeext &&
37920 $as_test_x conftest$ac_exeext; then
37921 eval "$as_ac_var=yes"
37923 echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37926 eval "$as_ac_var=no"
37929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37930 conftest$ac_exeext conftest.$ac_ext
37932 ac_res=`eval echo '${'$as_ac_var'}'`
37933 { echo "$as_me:$LINENO: result: $ac_res" >&5
37934 echo "${ECHO_T}$ac_res" >&6; }
37935 if test `eval echo '${'$as_ac_var'}'` = yes; then
37936 cat >>confdefs.h <<_ACEOF
37937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37945 for ac_func in chflags
37947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37951 echo $ECHO_N "(cached) $ECHO_C" >&6
37953 cat >conftest.$ac_ext <<_ACEOF
37956 cat confdefs.h >>conftest.$ac_ext
37957 cat >>conftest.$ac_ext <<_ACEOF
37958 /* end confdefs.h. */
37959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37961 #define $ac_func innocuous_$ac_func
37963 /* System header to define __stub macros and hopefully few prototypes,
37964 which can conflict with char $ac_func (); below.
37965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37966 <limits.h> exists even on freestanding compilers. */
37969 # include <limits.h>
37971 # include <assert.h>
37976 /* Override any GCC internal prototype to avoid an error.
37977 Use char because int might match the return type of a GCC
37978 builtin and then its argument prototype would still apply. */
37983 /* The GNU C library defines this for functions which it implements
37984 to always fail with ENOSYS. Some functions are actually named
37985 something starting with __ and the normal name is an alias. */
37986 #if defined __stub_$ac_func || defined __stub___$ac_func
37993 return $ac_func ();
37998 rm -f conftest.$ac_objext conftest$ac_exeext
37999 if { (ac_try="$ac_link"
38000 case "(($ac_try" in
38001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38002 *) ac_try_echo=$ac_try;;
38004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38005 (eval "$ac_link") 2>conftest.er1
38007 grep -v '^ *+' conftest.er1 >conftest.err
38009 cat conftest.err >&5
38010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011 (exit $ac_status); } && {
38012 test -z "$ac_c_werror_flag" ||
38013 test ! -s conftest.err
38014 } && test -s conftest$ac_exeext &&
38015 $as_test_x conftest$ac_exeext; then
38016 eval "$as_ac_var=yes"
38018 echo "$as_me: failed program was:" >&5
38019 sed 's/^/| /' conftest.$ac_ext >&5
38021 eval "$as_ac_var=no"
38024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38025 conftest$ac_exeext conftest.$ac_ext
38027 ac_res=`eval echo '${'$as_ac_var'}'`
38028 { echo "$as_me:$LINENO: result: $ac_res" >&5
38029 echo "${ECHO_T}$ac_res" >&6; }
38030 if test `eval echo '${'$as_ac_var'}'` = yes; then
38031 cat >>confdefs.h <<_ACEOF
38032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38043 for ac_func in snprintf vsnprintf gethostid fseeko
38045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38049 echo $ECHO_N "(cached) $ECHO_C" >&6
38051 cat >conftest.$ac_ext <<_ACEOF
38054 cat confdefs.h >>conftest.$ac_ext
38055 cat >>conftest.$ac_ext <<_ACEOF
38056 /* end confdefs.h. */
38057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38059 #define $ac_func innocuous_$ac_func
38061 /* System header to define __stub macros and hopefully few prototypes,
38062 which can conflict with char $ac_func (); below.
38063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38064 <limits.h> exists even on freestanding compilers. */
38067 # include <limits.h>
38069 # include <assert.h>
38074 /* Override any GCC internal prototype to avoid an error.
38075 Use char because int might match the return type of a GCC
38076 builtin and then its argument prototype would still apply. */
38081 /* The GNU C library defines this for functions which it implements
38082 to always fail with ENOSYS. Some functions are actually named
38083 something starting with __ and the normal name is an alias. */
38084 #if defined __stub_$ac_func || defined __stub___$ac_func
38091 return $ac_func ();
38096 rm -f conftest.$ac_objext conftest$ac_exeext
38097 if { (ac_try="$ac_link"
38098 case "(($ac_try" in
38099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38100 *) ac_try_echo=$ac_try;;
38102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38103 (eval "$ac_link") 2>conftest.er1
38105 grep -v '^ *+' conftest.er1 >conftest.err
38107 cat conftest.err >&5
38108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109 (exit $ac_status); } && {
38110 test -z "$ac_c_werror_flag" ||
38111 test ! -s conftest.err
38112 } && test -s conftest$ac_exeext &&
38113 $as_test_x conftest$ac_exeext; then
38114 eval "$as_ac_var=yes"
38116 echo "$as_me: failed program was:" >&5
38117 sed 's/^/| /' conftest.$ac_ext >&5
38119 eval "$as_ac_var=no"
38122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38123 conftest$ac_exeext conftest.$ac_ext
38125 ac_res=`eval echo '${'$as_ac_var'}'`
38126 { echo "$as_me:$LINENO: result: $ac_res" >&5
38127 echo "${ECHO_T}$ac_res" >&6; }
38128 if test `eval echo '${'$as_ac_var'}'` = yes; then
38129 cat >>confdefs.h <<_ACEOF
38130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38137 { echo "$as_me:$LINENO: checking for va_copy" >&5
38138 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38139 if test "${ba_cv_va_copy+set}" = set; then
38140 echo $ECHO_N "(cached) $ECHO_C" >&6
38143 cat >conftest.$ac_ext <<_ACEOF
38146 cat confdefs.h >>conftest.$ac_ext
38147 cat >>conftest.$ac_ext <<_ACEOF
38148 /* end confdefs.h. */
38150 #include <stdarg.h>
38151 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38152 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38158 call_use_va_copy(1,2,3)
38164 rm -f conftest.$ac_objext conftest$ac_exeext
38165 if { (ac_try="$ac_link"
38166 case "(($ac_try" in
38167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38168 *) ac_try_echo=$ac_try;;
38170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38171 (eval "$ac_link") 2>conftest.er1
38173 grep -v '^ *+' conftest.er1 >conftest.err
38175 cat conftest.err >&5
38176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177 (exit $ac_status); } && {
38178 test -z "$ac_c_werror_flag" ||
38179 test ! -s conftest.err
38180 } && test -s conftest$ac_exeext &&
38181 $as_test_x conftest$ac_exeext; then
38186 echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38196 conftest$ac_exeext conftest.$ac_ext
38200 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38201 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38202 test $ba_cv_va_copy = yes &&
38203 cat >>confdefs.h <<\_ACEOF
38204 #define HAVE_VA_COPY 1
38212 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38218 echo $ECHO_N "(cached) $ECHO_C" >&6
38220 cat >conftest.$ac_ext <<_ACEOF
38223 cat confdefs.h >>conftest.$ac_ext
38224 cat >>conftest.$ac_ext <<_ACEOF
38225 /* end confdefs.h. */
38226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38228 #define $ac_func innocuous_$ac_func
38230 /* System header to define __stub macros and hopefully few prototypes,
38231 which can conflict with char $ac_func (); below.
38232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38233 <limits.h> exists even on freestanding compilers. */
38236 # include <limits.h>
38238 # include <assert.h>
38243 /* Override any GCC internal prototype to avoid an error.
38244 Use char because int might match the return type of a GCC
38245 builtin and then its argument prototype would still apply. */
38250 /* The GNU C library defines this for functions which it implements
38251 to always fail with ENOSYS. Some functions are actually named
38252 something starting with __ and the normal name is an alias. */
38253 #if defined __stub_$ac_func || defined __stub___$ac_func
38260 return $ac_func ();
38265 rm -f conftest.$ac_objext conftest$ac_exeext
38266 if { (ac_try="$ac_link"
38267 case "(($ac_try" in
38268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38269 *) ac_try_echo=$ac_try;;
38271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38272 (eval "$ac_link") 2>conftest.er1
38274 grep -v '^ *+' conftest.er1 >conftest.err
38276 cat conftest.err >&5
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); } && {
38279 test -z "$ac_c_werror_flag" ||
38280 test ! -s conftest.err
38281 } && test -s conftest$ac_exeext &&
38282 $as_test_x conftest$ac_exeext; then
38283 eval "$as_ac_var=yes"
38285 echo "$as_me: failed program was:" >&5
38286 sed 's/^/| /' conftest.$ac_ext >&5
38288 eval "$as_ac_var=no"
38291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38292 conftest$ac_exeext conftest.$ac_ext
38294 ac_res=`eval echo '${'$as_ac_var'}'`
38295 { echo "$as_me:$LINENO: result: $ac_res" >&5
38296 echo "${ECHO_T}$ac_res" >&6; }
38297 if test `eval echo '${'$as_ac_var'}'` = yes; then
38298 cat >>confdefs.h <<_ACEOF
38299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38306 # If resolver functions are not in libc check for -lnsl or -lresolv.
38307 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38308 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38309 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38310 echo $ECHO_N "(cached) $ECHO_C" >&6
38312 cat >conftest.$ac_ext <<_ACEOF
38315 cat confdefs.h >>conftest.$ac_ext
38316 cat >>conftest.$ac_ext <<_ACEOF
38317 /* end confdefs.h. */
38318 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38320 #define gethostbyname_r innocuous_gethostbyname_r
38322 /* System header to define __stub macros and hopefully few prototypes,
38323 which can conflict with char gethostbyname_r (); below.
38324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38325 <limits.h> exists even on freestanding compilers. */
38328 # include <limits.h>
38330 # include <assert.h>
38333 #undef gethostbyname_r
38335 /* Override any GCC internal prototype to avoid an error.
38336 Use char because int might match the return type of a GCC
38337 builtin and then its argument prototype would still apply. */
38341 char gethostbyname_r ();
38342 /* The GNU C library defines this for functions which it implements
38343 to always fail with ENOSYS. Some functions are actually named
38344 something starting with __ and the normal name is an alias. */
38345 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38352 return gethostbyname_r ();
38357 rm -f conftest.$ac_objext conftest$ac_exeext
38358 if { (ac_try="$ac_link"
38359 case "(($ac_try" in
38360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38361 *) ac_try_echo=$ac_try;;
38363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38364 (eval "$ac_link") 2>conftest.er1
38366 grep -v '^ *+' conftest.er1 >conftest.err
38368 cat conftest.err >&5
38369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370 (exit $ac_status); } && {
38371 test -z "$ac_c_werror_flag" ||
38372 test ! -s conftest.err
38373 } && test -s conftest$ac_exeext &&
38374 $as_test_x conftest$ac_exeext; then
38375 ac_cv_func_gethostbyname_r=yes
38377 echo "$as_me: failed program was:" >&5
38378 sed 's/^/| /' conftest.$ac_ext >&5
38380 ac_cv_func_gethostbyname_r=no
38383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38384 conftest$ac_exeext conftest.$ac_ext
38386 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38387 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38388 if test $ac_cv_func_gethostbyname_r = yes; then
38389 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38390 echo "${ECHO_T}using libc's resolver" >&6; }
38393 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38394 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38395 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38396 echo $ECHO_N "(cached) $ECHO_C" >&6
38398 ac_check_lib_save_LIBS=$LIBS
38400 cat >conftest.$ac_ext <<_ACEOF
38403 cat confdefs.h >>conftest.$ac_ext
38404 cat >>conftest.$ac_ext <<_ACEOF
38405 /* end confdefs.h. */
38407 /* Override any GCC internal prototype to avoid an error.
38408 Use char because int might match the return type of a GCC
38409 builtin and then its argument prototype would still apply. */
38413 char gethostbyname_r ();
38417 return gethostbyname_r ();
38422 rm -f conftest.$ac_objext conftest$ac_exeext
38423 if { (ac_try="$ac_link"
38424 case "(($ac_try" in
38425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38426 *) ac_try_echo=$ac_try;;
38428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38429 (eval "$ac_link") 2>conftest.er1
38431 grep -v '^ *+' conftest.er1 >conftest.err
38433 cat conftest.err >&5
38434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435 (exit $ac_status); } && {
38436 test -z "$ac_c_werror_flag" ||
38437 test ! -s conftest.err
38438 } && test -s conftest$ac_exeext &&
38439 $as_test_x conftest$ac_exeext; then
38440 ac_cv_lib_nsl_gethostbyname_r=yes
38442 echo "$as_me: failed program was:" >&5
38443 sed 's/^/| /' conftest.$ac_ext >&5
38445 ac_cv_lib_nsl_gethostbyname_r=no
38448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38449 conftest$ac_exeext conftest.$ac_ext
38450 LIBS=$ac_check_lib_save_LIBS
38452 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38453 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38454 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38455 cat >>confdefs.h <<_ACEOF
38456 #define HAVE_LIBNSL 1
38464 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38465 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38466 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38467 echo $ECHO_N "(cached) $ECHO_C" >&6
38469 ac_check_lib_save_LIBS=$LIBS
38470 LIBS="-lresolv $LIBS"
38471 cat >conftest.$ac_ext <<_ACEOF
38474 cat confdefs.h >>conftest.$ac_ext
38475 cat >>conftest.$ac_ext <<_ACEOF
38476 /* end confdefs.h. */
38478 /* Override any GCC internal prototype to avoid an error.
38479 Use char because int might match the return type of a GCC
38480 builtin and then its argument prototype would still apply. */
38484 char gethostbyname_r ();
38488 return gethostbyname_r ();
38493 rm -f conftest.$ac_objext conftest$ac_exeext
38494 if { (ac_try="$ac_link"
38495 case "(($ac_try" in
38496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38497 *) ac_try_echo=$ac_try;;
38499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38500 (eval "$ac_link") 2>conftest.er1
38502 grep -v '^ *+' conftest.er1 >conftest.err
38504 cat conftest.err >&5
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); } && {
38507 test -z "$ac_c_werror_flag" ||
38508 test ! -s conftest.err
38509 } && test -s conftest$ac_exeext &&
38510 $as_test_x conftest$ac_exeext; then
38511 ac_cv_lib_resolv_gethostbyname_r=yes
38513 echo "$as_me: failed program was:" >&5
38514 sed 's/^/| /' conftest.$ac_ext >&5
38516 ac_cv_lib_resolv_gethostbyname_r=no
38519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38520 conftest$ac_exeext conftest.$ac_ext
38521 LIBS=$ac_check_lib_save_LIBS
38523 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38524 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38525 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38526 cat >>confdefs.h <<_ACEOF
38527 #define HAVE_LIBRESOLV 1
38530 LIBS="-lresolv $LIBS"
38538 for ac_func in inet_pton
38540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38544 echo $ECHO_N "(cached) $ECHO_C" >&6
38546 cat >conftest.$ac_ext <<_ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h. */
38552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38554 #define $ac_func innocuous_$ac_func
38556 /* System header to define __stub macros and hopefully few prototypes,
38557 which can conflict with char $ac_func (); below.
38558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38559 <limits.h> exists even on freestanding compilers. */
38562 # include <limits.h>
38564 # include <assert.h>
38569 /* Override any GCC internal prototype to avoid an error.
38570 Use char because int might match the return type of a GCC
38571 builtin and then its argument prototype would still apply. */
38576 /* The GNU C library defines this for functions which it implements
38577 to always fail with ENOSYS. Some functions are actually named
38578 something starting with __ and the normal name is an alias. */
38579 #if defined __stub_$ac_func || defined __stub___$ac_func
38586 return $ac_func ();
38591 rm -f conftest.$ac_objext conftest$ac_exeext
38592 if { (ac_try="$ac_link"
38593 case "(($ac_try" in
38594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38595 *) ac_try_echo=$ac_try;;
38597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38598 (eval "$ac_link") 2>conftest.er1
38600 grep -v '^ *+' conftest.er1 >conftest.err
38602 cat conftest.err >&5
38603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604 (exit $ac_status); } && {
38605 test -z "$ac_c_werror_flag" ||
38606 test ! -s conftest.err
38607 } && test -s conftest$ac_exeext &&
38608 $as_test_x conftest$ac_exeext; then
38609 eval "$as_ac_var=yes"
38611 echo "$as_me: failed program was:" >&5
38612 sed 's/^/| /' conftest.$ac_ext >&5
38614 eval "$as_ac_var=no"
38617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38618 conftest$ac_exeext conftest.$ac_ext
38620 ac_res=`eval echo '${'$as_ac_var'}'`
38621 { echo "$as_me:$LINENO: result: $ac_res" >&5
38622 echo "${ECHO_T}$ac_res" >&6; }
38623 if test `eval echo '${'$as_ac_var'}'` = yes; then
38624 cat >>confdefs.h <<_ACEOF
38625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38627 cat >>confdefs.h <<\_ACEOF
38628 #define HAVE_INET_PTON 1
38635 for ac_func in inet_ntop
38637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38641 echo $ECHO_N "(cached) $ECHO_C" >&6
38643 cat >conftest.$ac_ext <<_ACEOF
38646 cat confdefs.h >>conftest.$ac_ext
38647 cat >>conftest.$ac_ext <<_ACEOF
38648 /* end confdefs.h. */
38649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38651 #define $ac_func innocuous_$ac_func
38653 /* System header to define __stub macros and hopefully few prototypes,
38654 which can conflict with char $ac_func (); below.
38655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38656 <limits.h> exists even on freestanding compilers. */
38659 # include <limits.h>
38661 # include <assert.h>
38666 /* Override any GCC internal prototype to avoid an error.
38667 Use char because int might match the return type of a GCC
38668 builtin and then its argument prototype would still apply. */
38673 /* The GNU C library defines this for functions which it implements
38674 to always fail with ENOSYS. Some functions are actually named
38675 something starting with __ and the normal name is an alias. */
38676 #if defined __stub_$ac_func || defined __stub___$ac_func
38683 return $ac_func ();
38688 rm -f conftest.$ac_objext conftest$ac_exeext
38689 if { (ac_try="$ac_link"
38690 case "(($ac_try" in
38691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38692 *) ac_try_echo=$ac_try;;
38694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38695 (eval "$ac_link") 2>conftest.er1
38697 grep -v '^ *+' conftest.er1 >conftest.err
38699 cat conftest.err >&5
38700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701 (exit $ac_status); } && {
38702 test -z "$ac_c_werror_flag" ||
38703 test ! -s conftest.err
38704 } && test -s conftest$ac_exeext &&
38705 $as_test_x conftest$ac_exeext; then
38706 eval "$as_ac_var=yes"
38708 echo "$as_me: failed program was:" >&5
38709 sed 's/^/| /' conftest.$ac_ext >&5
38711 eval "$as_ac_var=no"
38714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38715 conftest$ac_exeext conftest.$ac_ext
38717 ac_res=`eval echo '${'$as_ac_var'}'`
38718 { echo "$as_me:$LINENO: result: $ac_res" >&5
38719 echo "${ECHO_T}$ac_res" >&6; }
38720 if test `eval echo '${'$as_ac_var'}'` = yes; then
38721 cat >>confdefs.h <<_ACEOF
38722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38724 cat >>confdefs.h <<\_ACEOF
38725 #define HAVE_INET_NTOP 1
38732 for ac_func in gethostbyname2
38734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38738 echo $ECHO_N "(cached) $ECHO_C" >&6
38740 cat >conftest.$ac_ext <<_ACEOF
38743 cat confdefs.h >>conftest.$ac_ext
38744 cat >>conftest.$ac_ext <<_ACEOF
38745 /* end confdefs.h. */
38746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38748 #define $ac_func innocuous_$ac_func
38750 /* System header to define __stub macros and hopefully few prototypes,
38751 which can conflict with char $ac_func (); below.
38752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38753 <limits.h> exists even on freestanding compilers. */
38756 # include <limits.h>
38758 # include <assert.h>
38763 /* Override any GCC internal prototype to avoid an error.
38764 Use char because int might match the return type of a GCC
38765 builtin and then its argument prototype would still apply. */
38770 /* The GNU C library defines this for functions which it implements
38771 to always fail with ENOSYS. Some functions are actually named
38772 something starting with __ and the normal name is an alias. */
38773 #if defined __stub_$ac_func || defined __stub___$ac_func
38780 return $ac_func ();
38785 rm -f conftest.$ac_objext conftest$ac_exeext
38786 if { (ac_try="$ac_link"
38787 case "(($ac_try" in
38788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38789 *) ac_try_echo=$ac_try;;
38791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38792 (eval "$ac_link") 2>conftest.er1
38794 grep -v '^ *+' conftest.er1 >conftest.err
38796 cat conftest.err >&5
38797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 (exit $ac_status); } && {
38799 test -z "$ac_c_werror_flag" ||
38800 test ! -s conftest.err
38801 } && test -s conftest$ac_exeext &&
38802 $as_test_x conftest$ac_exeext; then
38803 eval "$as_ac_var=yes"
38805 echo "$as_me: failed program was:" >&5
38806 sed 's/^/| /' conftest.$ac_ext >&5
38808 eval "$as_ac_var=no"
38811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38812 conftest$ac_exeext conftest.$ac_ext
38814 ac_res=`eval echo '${'$as_ac_var'}'`
38815 { echo "$as_me:$LINENO: result: $ac_res" >&5
38816 echo "${ECHO_T}$ac_res" >&6; }
38817 if test `eval echo '${'$as_ac_var'}'` = yes; then
38818 cat >>confdefs.h <<_ACEOF
38819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38821 cat >>confdefs.h <<\_ACEOF
38822 #define HAVE_GETHOSTBYNAME2 1
38829 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38830 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38831 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38832 echo $ECHO_N "(cached) $ECHO_C" >&6
38835 cat >conftest.$ac_ext <<_ACEOF
38838 cat confdefs.h >>conftest.$ac_ext
38839 cat >>conftest.$ac_ext <<_ACEOF
38840 /* end confdefs.h. */
38842 #include <sys/socket.h>
38848 struct sockaddr s; s.sa_len;
38854 rm -f conftest.$ac_objext
38855 if { (ac_try="$ac_compile"
38856 case "(($ac_try" in
38857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38858 *) ac_try_echo=$ac_try;;
38860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38861 (eval "$ac_compile") 2>conftest.er1
38863 grep -v '^ *+' conftest.er1 >conftest.err
38865 cat conftest.err >&5
38866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38867 (exit $ac_status); } && {
38868 test -z "$ac_c_werror_flag" ||
38869 test ! -s conftest.err
38870 } && test -s conftest.$ac_objext; then
38872 ac_cv_struct_sockaddr_sa_len=yes
38875 echo "$as_me: failed program was:" >&5
38876 sed 's/^/| /' conftest.$ac_ext >&5
38878 ac_cv_struct_sockaddr_sa_len=no
38883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38887 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38888 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38890 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38892 cat >>confdefs.h <<\_ACEOF
38893 #define HAVE_SA_LEN 1
38899 for ac_func in strftime
38901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38905 echo $ECHO_N "(cached) $ECHO_C" >&6
38907 cat >conftest.$ac_ext <<_ACEOF
38910 cat confdefs.h >>conftest.$ac_ext
38911 cat >>conftest.$ac_ext <<_ACEOF
38912 /* end confdefs.h. */
38913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38915 #define $ac_func innocuous_$ac_func
38917 /* System header to define __stub macros and hopefully few prototypes,
38918 which can conflict with char $ac_func (); below.
38919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38920 <limits.h> exists even on freestanding compilers. */
38923 # include <limits.h>
38925 # include <assert.h>
38930 /* Override any GCC internal prototype to avoid an error.
38931 Use char because int might match the return type of a GCC
38932 builtin and then its argument prototype would still apply. */
38937 /* The GNU C library defines this for functions which it implements
38938 to always fail with ENOSYS. Some functions are actually named
38939 something starting with __ and the normal name is an alias. */
38940 #if defined __stub_$ac_func || defined __stub___$ac_func
38947 return $ac_func ();
38952 rm -f conftest.$ac_objext conftest$ac_exeext
38953 if { (ac_try="$ac_link"
38954 case "(($ac_try" in
38955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38956 *) ac_try_echo=$ac_try;;
38958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38959 (eval "$ac_link") 2>conftest.er1
38961 grep -v '^ *+' conftest.er1 >conftest.err
38963 cat conftest.err >&5
38964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965 (exit $ac_status); } && {
38966 test -z "$ac_c_werror_flag" ||
38967 test ! -s conftest.err
38968 } && test -s conftest$ac_exeext &&
38969 $as_test_x conftest$ac_exeext; then
38970 eval "$as_ac_var=yes"
38972 echo "$as_me: failed program was:" >&5
38973 sed 's/^/| /' conftest.$ac_ext >&5
38975 eval "$as_ac_var=no"
38978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38979 conftest$ac_exeext conftest.$ac_ext
38981 ac_res=`eval echo '${'$as_ac_var'}'`
38982 { echo "$as_me:$LINENO: result: $ac_res" >&5
38983 echo "${ECHO_T}$ac_res" >&6; }
38984 if test `eval echo '${'$as_ac_var'}'` = yes; then
38985 cat >>confdefs.h <<_ACEOF
38986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38990 # strftime is in -lintl on SCO UNIX.
38991 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38992 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
38993 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38994 echo $ECHO_N "(cached) $ECHO_C" >&6
38996 ac_check_lib_save_LIBS=$LIBS
38997 LIBS="-lintl $LIBS"
38998 cat >conftest.$ac_ext <<_ACEOF
39001 cat confdefs.h >>conftest.$ac_ext
39002 cat >>conftest.$ac_ext <<_ACEOF
39003 /* end confdefs.h. */
39005 /* Override any GCC internal prototype to avoid an error.
39006 Use char because int might match the return type of a GCC
39007 builtin and then its argument prototype would still apply. */
39015 return strftime ();
39020 rm -f conftest.$ac_objext conftest$ac_exeext
39021 if { (ac_try="$ac_link"
39022 case "(($ac_try" in
39023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39024 *) ac_try_echo=$ac_try;;
39026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39027 (eval "$ac_link") 2>conftest.er1
39029 grep -v '^ *+' conftest.er1 >conftest.err
39031 cat conftest.err >&5
39032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39033 (exit $ac_status); } && {
39034 test -z "$ac_c_werror_flag" ||
39035 test ! -s conftest.err
39036 } && test -s conftest$ac_exeext &&
39037 $as_test_x conftest$ac_exeext; then
39038 ac_cv_lib_intl_strftime=yes
39040 echo "$as_me: failed program was:" >&5
39041 sed 's/^/| /' conftest.$ac_ext >&5
39043 ac_cv_lib_intl_strftime=no
39046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39047 conftest$ac_exeext conftest.$ac_ext
39048 LIBS=$ac_check_lib_save_LIBS
39050 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39051 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39052 if test $ac_cv_lib_intl_strftime = yes; then
39053 cat >>confdefs.h <<\_ACEOF
39054 #define HAVE_STRFTIME 1
39057 LIBS="-lintl $LIBS"
39064 for ac_func in vprintf
39066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39070 echo $ECHO_N "(cached) $ECHO_C" >&6
39072 cat >conftest.$ac_ext <<_ACEOF
39075 cat confdefs.h >>conftest.$ac_ext
39076 cat >>conftest.$ac_ext <<_ACEOF
39077 /* end confdefs.h. */
39078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39080 #define $ac_func innocuous_$ac_func
39082 /* System header to define __stub macros and hopefully few prototypes,
39083 which can conflict with char $ac_func (); below.
39084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39085 <limits.h> exists even on freestanding compilers. */
39088 # include <limits.h>
39090 # include <assert.h>
39095 /* Override any GCC internal prototype to avoid an error.
39096 Use char because int might match the return type of a GCC
39097 builtin and then its argument prototype would still apply. */
39102 /* The GNU C library defines this for functions which it implements
39103 to always fail with ENOSYS. Some functions are actually named
39104 something starting with __ and the normal name is an alias. */
39105 #if defined __stub_$ac_func || defined __stub___$ac_func
39112 return $ac_func ();
39117 rm -f conftest.$ac_objext conftest$ac_exeext
39118 if { (ac_try="$ac_link"
39119 case "(($ac_try" in
39120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39121 *) ac_try_echo=$ac_try;;
39123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39124 (eval "$ac_link") 2>conftest.er1
39126 grep -v '^ *+' conftest.er1 >conftest.err
39128 cat conftest.err >&5
39129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); } && {
39131 test -z "$ac_c_werror_flag" ||
39132 test ! -s conftest.err
39133 } && test -s conftest$ac_exeext &&
39134 $as_test_x conftest$ac_exeext; then
39135 eval "$as_ac_var=yes"
39137 echo "$as_me: failed program was:" >&5
39138 sed 's/^/| /' conftest.$ac_ext >&5
39140 eval "$as_ac_var=no"
39143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39144 conftest$ac_exeext conftest.$ac_ext
39146 ac_res=`eval echo '${'$as_ac_var'}'`
39147 { echo "$as_me:$LINENO: result: $ac_res" >&5
39148 echo "${ECHO_T}$ac_res" >&6; }
39149 if test `eval echo '${'$as_ac_var'}'` = yes; then
39150 cat >>confdefs.h <<_ACEOF
39151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39154 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39155 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39156 if test "${ac_cv_func__doprnt+set}" = set; then
39157 echo $ECHO_N "(cached) $ECHO_C" >&6
39159 cat >conftest.$ac_ext <<_ACEOF
39162 cat confdefs.h >>conftest.$ac_ext
39163 cat >>conftest.$ac_ext <<_ACEOF
39164 /* end confdefs.h. */
39165 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39167 #define _doprnt innocuous__doprnt
39169 /* System header to define __stub macros and hopefully few prototypes,
39170 which can conflict with char _doprnt (); below.
39171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39172 <limits.h> exists even on freestanding compilers. */
39175 # include <limits.h>
39177 # include <assert.h>
39182 /* Override any GCC internal prototype to avoid an error.
39183 Use char because int might match the return type of a GCC
39184 builtin and then its argument prototype would still apply. */
39189 /* The GNU C library defines this for functions which it implements
39190 to always fail with ENOSYS. Some functions are actually named
39191 something starting with __ and the normal name is an alias. */
39192 #if defined __stub__doprnt || defined __stub____doprnt
39204 rm -f conftest.$ac_objext conftest$ac_exeext
39205 if { (ac_try="$ac_link"
39206 case "(($ac_try" in
39207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39208 *) ac_try_echo=$ac_try;;
39210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39211 (eval "$ac_link") 2>conftest.er1
39213 grep -v '^ *+' conftest.er1 >conftest.err
39215 cat conftest.err >&5
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); } && {
39218 test -z "$ac_c_werror_flag" ||
39219 test ! -s conftest.err
39220 } && test -s conftest$ac_exeext &&
39221 $as_test_x conftest$ac_exeext; then
39222 ac_cv_func__doprnt=yes
39224 echo "$as_me: failed program was:" >&5
39225 sed 's/^/| /' conftest.$ac_ext >&5
39227 ac_cv_func__doprnt=no
39230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39231 conftest$ac_exeext conftest.$ac_ext
39233 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39234 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39235 if test $ac_cv_func__doprnt = yes; then
39237 cat >>confdefs.h <<\_ACEOF
39238 #define HAVE_DOPRNT 1
39247 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39248 # for constant arguments. Useless!
39249 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39250 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39251 if test "${ac_cv_working_alloca_h+set}" = set; then
39252 echo $ECHO_N "(cached) $ECHO_C" >&6
39254 cat >conftest.$ac_ext <<_ACEOF
39257 cat confdefs.h >>conftest.$ac_ext
39258 cat >>conftest.$ac_ext <<_ACEOF
39259 /* end confdefs.h. */
39260 #include <alloca.h>
39264 char *p = (char *) alloca (2 * sizeof (int));
39270 rm -f conftest.$ac_objext conftest$ac_exeext
39271 if { (ac_try="$ac_link"
39272 case "(($ac_try" in
39273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39274 *) ac_try_echo=$ac_try;;
39276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39277 (eval "$ac_link") 2>conftest.er1
39279 grep -v '^ *+' conftest.er1 >conftest.err
39281 cat conftest.err >&5
39282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39283 (exit $ac_status); } && {
39284 test -z "$ac_c_werror_flag" ||
39285 test ! -s conftest.err
39286 } && test -s conftest$ac_exeext &&
39287 $as_test_x conftest$ac_exeext; then
39288 ac_cv_working_alloca_h=yes
39290 echo "$as_me: failed program was:" >&5
39291 sed 's/^/| /' conftest.$ac_ext >&5
39293 ac_cv_working_alloca_h=no
39296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39297 conftest$ac_exeext conftest.$ac_ext
39299 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39300 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39301 if test $ac_cv_working_alloca_h = yes; then
39303 cat >>confdefs.h <<\_ACEOF
39304 #define HAVE_ALLOCA_H 1
39309 { echo "$as_me:$LINENO: checking for alloca" >&5
39310 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39311 if test "${ac_cv_func_alloca_works+set}" = set; then
39312 echo $ECHO_N "(cached) $ECHO_C" >&6
39314 cat >conftest.$ac_ext <<_ACEOF
39317 cat confdefs.h >>conftest.$ac_ext
39318 cat >>conftest.$ac_ext <<_ACEOF
39319 /* end confdefs.h. */
39321 # define alloca __builtin_alloca
39324 # include <malloc.h>
39325 # define alloca _alloca
39327 # ifdef HAVE_ALLOCA_H
39328 # include <alloca.h>
39333 # ifndef alloca /* predefined by HP cc +Olibcalls */
39344 char *p = (char *) alloca (1);
39350 rm -f conftest.$ac_objext conftest$ac_exeext
39351 if { (ac_try="$ac_link"
39352 case "(($ac_try" in
39353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39354 *) ac_try_echo=$ac_try;;
39356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39357 (eval "$ac_link") 2>conftest.er1
39359 grep -v '^ *+' conftest.er1 >conftest.err
39361 cat conftest.err >&5
39362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39363 (exit $ac_status); } && {
39364 test -z "$ac_c_werror_flag" ||
39365 test ! -s conftest.err
39366 } && test -s conftest$ac_exeext &&
39367 $as_test_x conftest$ac_exeext; then
39368 ac_cv_func_alloca_works=yes
39370 echo "$as_me: failed program was:" >&5
39371 sed 's/^/| /' conftest.$ac_ext >&5
39373 ac_cv_func_alloca_works=no
39376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39377 conftest$ac_exeext conftest.$ac_ext
39379 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39380 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39382 if test $ac_cv_func_alloca_works = yes; then
39384 cat >>confdefs.h <<\_ACEOF
39385 #define HAVE_ALLOCA 1
39389 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39390 # that cause trouble. Some versions do not even contain alloca or
39391 # contain a buggy version. If you still want to use their alloca,
39392 # use ar to extract alloca.o from them instead of compiling alloca.c.
39394 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39396 cat >>confdefs.h <<\_ACEOF
39401 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39402 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39403 if test "${ac_cv_os_cray+set}" = set; then
39404 echo $ECHO_N "(cached) $ECHO_C" >&6
39406 cat >conftest.$ac_ext <<_ACEOF
39409 cat confdefs.h >>conftest.$ac_ext
39410 cat >>conftest.$ac_ext <<_ACEOF
39411 /* end confdefs.h. */
39412 #if defined CRAY && ! defined CRAY2
39419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39420 $EGREP "webecray" >/dev/null 2>&1; then
39428 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39429 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39430 if test $ac_cv_os_cray = yes; then
39431 for ac_func in _getb67 GETB67 getb67; do
39432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39436 echo $ECHO_N "(cached) $ECHO_C" >&6
39438 cat >conftest.$ac_ext <<_ACEOF
39441 cat confdefs.h >>conftest.$ac_ext
39442 cat >>conftest.$ac_ext <<_ACEOF
39443 /* end confdefs.h. */
39444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39446 #define $ac_func innocuous_$ac_func
39448 /* System header to define __stub macros and hopefully few prototypes,
39449 which can conflict with char $ac_func (); below.
39450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39451 <limits.h> exists even on freestanding compilers. */
39454 # include <limits.h>
39456 # include <assert.h>
39461 /* Override any GCC internal prototype to avoid an error.
39462 Use char because int might match the return type of a GCC
39463 builtin and then its argument prototype would still apply. */
39468 /* The GNU C library defines this for functions which it implements
39469 to always fail with ENOSYS. Some functions are actually named
39470 something starting with __ and the normal name is an alias. */
39471 #if defined __stub_$ac_func || defined __stub___$ac_func
39478 return $ac_func ();
39483 rm -f conftest.$ac_objext conftest$ac_exeext
39484 if { (ac_try="$ac_link"
39485 case "(($ac_try" in
39486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39487 *) ac_try_echo=$ac_try;;
39489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39490 (eval "$ac_link") 2>conftest.er1
39492 grep -v '^ *+' conftest.er1 >conftest.err
39494 cat conftest.err >&5
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); } && {
39497 test -z "$ac_c_werror_flag" ||
39498 test ! -s conftest.err
39499 } && test -s conftest$ac_exeext &&
39500 $as_test_x conftest$ac_exeext; then
39501 eval "$as_ac_var=yes"
39503 echo "$as_me: failed program was:" >&5
39504 sed 's/^/| /' conftest.$ac_ext >&5
39506 eval "$as_ac_var=no"
39509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39510 conftest$ac_exeext conftest.$ac_ext
39512 ac_res=`eval echo '${'$as_ac_var'}'`
39513 { echo "$as_me:$LINENO: result: $ac_res" >&5
39514 echo "${ECHO_T}$ac_res" >&6; }
39515 if test `eval echo '${'$as_ac_var'}'` = yes; then
39517 cat >>confdefs.h <<_ACEOF
39518 #define CRAY_STACKSEG_END $ac_func
39527 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39528 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39529 if test "${ac_cv_c_stack_direction+set}" = set; then
39530 echo $ECHO_N "(cached) $ECHO_C" >&6
39532 if test "$cross_compiling" = yes; then
39533 ac_cv_c_stack_direction=0
39535 cat >conftest.$ac_ext <<_ACEOF
39538 cat confdefs.h >>conftest.$ac_ext
39539 cat >>conftest.$ac_ext <<_ACEOF
39540 /* end confdefs.h. */
39541 $ac_includes_default
39543 find_stack_direction ()
39545 static char *addr = 0;
39550 return find_stack_direction ();
39553 return (&dummy > addr) ? 1 : -1;
39559 return find_stack_direction () < 0;
39562 rm -f conftest$ac_exeext
39563 if { (ac_try="$ac_link"
39564 case "(($ac_try" in
39565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39566 *) ac_try_echo=$ac_try;;
39568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39569 (eval "$ac_link") 2>&5
39571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39573 { (case "(($ac_try" in
39574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39575 *) ac_try_echo=$ac_try;;
39577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39578 (eval "$ac_try") 2>&5
39580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39581 (exit $ac_status); }; }; then
39582 ac_cv_c_stack_direction=1
39584 echo "$as_me: program exited with status $ac_status" >&5
39585 echo "$as_me: failed program was:" >&5
39586 sed 's/^/| /' conftest.$ac_ext >&5
39588 ( exit $ac_status )
39589 ac_cv_c_stack_direction=-1
39591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39596 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39597 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39599 cat >>confdefs.h <<_ACEOF
39600 #define STACK_DIRECTION $ac_cv_c_stack_direction
39606 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39607 # -lseq on Dynix/PTX, -lgen on Unixware.
39608 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39609 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39610 if test "${ac_cv_search_getmntent+set}" = set; then
39611 echo $ECHO_N "(cached) $ECHO_C" >&6
39613 ac_func_search_save_LIBS=$LIBS
39614 cat >conftest.$ac_ext <<_ACEOF
39617 cat confdefs.h >>conftest.$ac_ext
39618 cat >>conftest.$ac_ext <<_ACEOF
39619 /* end confdefs.h. */
39621 /* Override any GCC internal prototype to avoid an error.
39622 Use char because int might match the return type of a GCC
39623 builtin and then its argument prototype would still apply. */
39631 return getmntent ();
39636 for ac_lib in '' sun seq gen; do
39637 if test -z "$ac_lib"; then
39638 ac_res="none required"
39641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39643 rm -f conftest.$ac_objext conftest$ac_exeext
39644 if { (ac_try="$ac_link"
39645 case "(($ac_try" in
39646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39647 *) ac_try_echo=$ac_try;;
39649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39650 (eval "$ac_link") 2>conftest.er1
39652 grep -v '^ *+' conftest.er1 >conftest.err
39654 cat conftest.err >&5
39655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656 (exit $ac_status); } && {
39657 test -z "$ac_c_werror_flag" ||
39658 test ! -s conftest.err
39659 } && test -s conftest$ac_exeext &&
39660 $as_test_x conftest$ac_exeext; then
39661 ac_cv_search_getmntent=$ac_res
39663 echo "$as_me: failed program was:" >&5
39664 sed 's/^/| /' conftest.$ac_ext >&5
39669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39671 if test "${ac_cv_search_getmntent+set}" = set; then
39675 if test "${ac_cv_search_getmntent+set}" = set; then
39678 ac_cv_search_getmntent=no
39680 rm conftest.$ac_ext
39681 LIBS=$ac_func_search_save_LIBS
39683 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39684 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39685 ac_res=$ac_cv_search_getmntent
39686 if test "$ac_res" != no; then
39687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39688 ac_cv_func_getmntent=yes
39690 cat >>confdefs.h <<\_ACEOF
39691 #define HAVE_GETMNTENT 1
39695 ac_cv_func_getmntent=no
39699 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39700 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39701 if test "${ac_cv_func_closedir_void+set}" = set; then
39702 echo $ECHO_N "(cached) $ECHO_C" >&6
39704 if test "$cross_compiling" = yes; then
39705 ac_cv_func_closedir_void=yes
39707 cat >conftest.$ac_ext <<_ACEOF
39710 cat confdefs.h >>conftest.$ac_ext
39711 cat >>conftest.$ac_ext <<_ACEOF
39712 /* end confdefs.h. */
39713 $ac_includes_default
39714 #include <$ac_header_dirent>
39715 #ifndef __cplusplus
39722 return closedir (opendir (".")) != 0;
39727 rm -f conftest$ac_exeext
39728 if { (ac_try="$ac_link"
39729 case "(($ac_try" in
39730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39731 *) ac_try_echo=$ac_try;;
39733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39734 (eval "$ac_link") 2>&5
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39738 { (case "(($ac_try" in
39739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39740 *) ac_try_echo=$ac_try;;
39742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39743 (eval "$ac_try") 2>&5
39745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746 (exit $ac_status); }; }; then
39747 ac_cv_func_closedir_void=no
39749 echo "$as_me: program exited with status $ac_status" >&5
39750 echo "$as_me: failed program was:" >&5
39751 sed 's/^/| /' conftest.$ac_ext >&5
39753 ( exit $ac_status )
39754 ac_cv_func_closedir_void=yes
39756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39761 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39762 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39763 if test $ac_cv_func_closedir_void = yes; then
39765 cat >>confdefs.h <<\_ACEOF
39766 #define CLOSEDIR_VOID 1
39771 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39772 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39773 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39774 echo $ECHO_N "(cached) $ECHO_C" >&6
39776 if test "$cross_compiling" = yes; then
39777 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39778 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39779 { (exit 1); exit 1; }; }
39781 cat >conftest.$ac_ext <<_ACEOF
39784 cat confdefs.h >>conftest.$ac_ext
39785 cat >>conftest.$ac_ext <<_ACEOF
39786 /* end confdefs.h. */
39787 $ac_includes_default
39791 /* If this system has a BSD-style setpgrp which takes arguments,
39792 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39793 exit successfully. */
39794 return setpgrp (1,1) != -1;
39799 rm -f conftest$ac_exeext
39800 if { (ac_try="$ac_link"
39801 case "(($ac_try" in
39802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39803 *) ac_try_echo=$ac_try;;
39805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39806 (eval "$ac_link") 2>&5
39808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39810 { (case "(($ac_try" in
39811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39812 *) ac_try_echo=$ac_try;;
39814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39815 (eval "$ac_try") 2>&5
39817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818 (exit $ac_status); }; }; then
39819 ac_cv_func_setpgrp_void=no
39821 echo "$as_me: program exited with status $ac_status" >&5
39822 echo "$as_me: failed program was:" >&5
39823 sed 's/^/| /' conftest.$ac_ext >&5
39825 ( exit $ac_status )
39826 ac_cv_func_setpgrp_void=yes
39828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39833 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39834 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39835 if test $ac_cv_func_setpgrp_void = yes; then
39837 cat >>confdefs.h <<\_ACEOF
39838 #define SETPGRP_VOID 1
39842 # AC_FUNC_FNMATCH dnl use local version
39844 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39845 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39846 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39847 echo $ECHO_N "(cached) $ECHO_C" >&6
39849 ac_check_lib_save_LIBS=$LIBS
39850 LIBS="-lintl $LIBS"
39851 cat >conftest.$ac_ext <<_ACEOF
39854 cat confdefs.h >>conftest.$ac_ext
39855 cat >>conftest.$ac_ext <<_ACEOF
39856 /* end confdefs.h. */
39858 /* Override any GCC internal prototype to avoid an error.
39859 Use char because int might match the return type of a GCC
39860 builtin and then its argument prototype would still apply. */
39873 rm -f conftest.$ac_objext conftest$ac_exeext
39874 if { (ac_try="$ac_link"
39875 case "(($ac_try" in
39876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39877 *) ac_try_echo=$ac_try;;
39879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39880 (eval "$ac_link") 2>conftest.er1
39882 grep -v '^ *+' conftest.er1 >conftest.err
39884 cat conftest.err >&5
39885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886 (exit $ac_status); } && {
39887 test -z "$ac_c_werror_flag" ||
39888 test ! -s conftest.err
39889 } && test -s conftest$ac_exeext &&
39890 $as_test_x conftest$ac_exeext; then
39891 ac_cv_lib_intl_gettext=yes
39893 echo "$as_me: failed program was:" >&5
39894 sed 's/^/| /' conftest.$ac_ext >&5
39896 ac_cv_lib_intl_gettext=no
39899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39900 conftest$ac_exeext conftest.$ac_ext
39901 LIBS=$ac_check_lib_save_LIBS
39903 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39904 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39905 if test $ac_cv_lib_intl_gettext = yes; then
39906 LIBS="$LIBS -lintl"
39911 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39912 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39913 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39914 echo $ECHO_N "(cached) $ECHO_C" >&6
39916 ac_check_lib_save_LIBS=$LIBS
39918 cat >conftest.$ac_ext <<_ACEOF
39921 cat confdefs.h >>conftest.$ac_ext
39922 cat >>conftest.$ac_ext <<_ACEOF
39923 /* end confdefs.h. */
39925 /* Override any GCC internal prototype to avoid an error.
39926 Use char because int might match the return type of a GCC
39927 builtin and then its argument prototype would still apply. */
39935 return getpwnam ();
39940 rm -f conftest.$ac_objext conftest$ac_exeext
39941 if { (ac_try="$ac_link"
39942 case "(($ac_try" in
39943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39944 *) ac_try_echo=$ac_try;;
39946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39947 (eval "$ac_link") 2>conftest.er1
39949 grep -v '^ *+' conftest.er1 >conftest.err
39951 cat conftest.err >&5
39952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953 (exit $ac_status); } && {
39954 test -z "$ac_c_werror_flag" ||
39955 test ! -s conftest.err
39956 } && test -s conftest$ac_exeext &&
39957 $as_test_x conftest$ac_exeext; then
39958 ac_cv_lib_sun_getpwnam=yes
39960 echo "$as_me: failed program was:" >&5
39961 sed 's/^/| /' conftest.$ac_ext >&5
39963 ac_cv_lib_sun_getpwnam=no
39966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39967 conftest$ac_exeext conftest.$ac_ext
39968 LIBS=$ac_check_lib_save_LIBS
39970 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39971 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39972 if test $ac_cv_lib_sun_getpwnam = yes; then
39973 cat >>confdefs.h <<_ACEOF
39974 #define HAVE_LIBSUN 1
39983 for ac_header in zlib.h
39985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39990 echo $ECHO_N "(cached) $ECHO_C" >&6
39992 ac_res=`eval echo '${'$as_ac_Header'}'`
39993 { echo "$as_me:$LINENO: result: $ac_res" >&5
39994 echo "${ECHO_T}$ac_res" >&6; }
39996 # Is the header compilable?
39997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39999 cat >conftest.$ac_ext <<_ACEOF
40002 cat confdefs.h >>conftest.$ac_ext
40003 cat >>conftest.$ac_ext <<_ACEOF
40004 /* end confdefs.h. */
40005 $ac_includes_default
40006 #include <$ac_header>
40008 rm -f conftest.$ac_objext
40009 if { (ac_try="$ac_compile"
40010 case "(($ac_try" in
40011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40012 *) ac_try_echo=$ac_try;;
40014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40015 (eval "$ac_compile") 2>conftest.er1
40017 grep -v '^ *+' conftest.er1 >conftest.err
40019 cat conftest.err >&5
40020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40021 (exit $ac_status); } && {
40022 test -z "$ac_c_werror_flag" ||
40023 test ! -s conftest.err
40024 } && test -s conftest.$ac_objext; then
40025 ac_header_compiler=yes
40027 echo "$as_me: failed program was:" >&5
40028 sed 's/^/| /' conftest.$ac_ext >&5
40030 ac_header_compiler=no
40033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40035 echo "${ECHO_T}$ac_header_compiler" >&6; }
40037 # Is the header present?
40038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40040 cat >conftest.$ac_ext <<_ACEOF
40043 cat confdefs.h >>conftest.$ac_ext
40044 cat >>conftest.$ac_ext <<_ACEOF
40045 /* end confdefs.h. */
40046 #include <$ac_header>
40048 if { (ac_try="$ac_cpp conftest.$ac_ext"
40049 case "(($ac_try" in
40050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40051 *) ac_try_echo=$ac_try;;
40053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40056 grep -v '^ *+' conftest.er1 >conftest.err
40058 cat conftest.err >&5
40059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 (exit $ac_status); } >/dev/null && {
40061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40062 test ! -s conftest.err
40064 ac_header_preproc=yes
40066 echo "$as_me: failed program was:" >&5
40067 sed 's/^/| /' conftest.$ac_ext >&5
40069 ac_header_preproc=no
40072 rm -f conftest.err conftest.$ac_ext
40073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40074 echo "${ECHO_T}$ac_header_preproc" >&6; }
40076 # So? What about this header?
40077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40083 ac_header_preproc=yes
40086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40104 echo $ECHO_N "(cached) $ECHO_C" >&6
40106 eval "$as_ac_Header=\$ac_header_preproc"
40108 ac_res=`eval echo '${'$as_ac_Header'}'`
40109 { echo "$as_me:$LINENO: result: $ac_res" >&5
40110 echo "${ECHO_T}$ac_res" >&6; }
40113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40114 cat >>confdefs.h <<_ACEOF
40115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40122 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40123 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40124 if test "${ac_cv_lib_z_deflate+set}" = set; then
40125 echo $ECHO_N "(cached) $ECHO_C" >&6
40127 ac_check_lib_save_LIBS=$LIBS
40129 cat >conftest.$ac_ext <<_ACEOF
40132 cat confdefs.h >>conftest.$ac_ext
40133 cat >>conftest.$ac_ext <<_ACEOF
40134 /* end confdefs.h. */
40136 /* Override any GCC internal prototype to avoid an error.
40137 Use char because int might match the return type of a GCC
40138 builtin and then its argument prototype would still apply. */
40151 rm -f conftest.$ac_objext conftest$ac_exeext
40152 if { (ac_try="$ac_link"
40153 case "(($ac_try" in
40154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40155 *) ac_try_echo=$ac_try;;
40157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40158 (eval "$ac_link") 2>conftest.er1
40160 grep -v '^ *+' conftest.er1 >conftest.err
40162 cat conftest.err >&5
40163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); } && {
40165 test -z "$ac_c_werror_flag" ||
40166 test ! -s conftest.err
40167 } && test -s conftest$ac_exeext &&
40168 $as_test_x conftest$ac_exeext; then
40169 ac_cv_lib_z_deflate=yes
40171 echo "$as_me: failed program was:" >&5
40172 sed 's/^/| /' conftest.$ac_ext >&5
40174 ac_cv_lib_z_deflate=no
40177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40178 conftest$ac_exeext conftest.$ac_ext
40179 LIBS=$ac_check_lib_save_LIBS
40181 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40182 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40183 if test $ac_cv_lib_z_deflate = yes; then
40188 if test x$FDLIBS = x-lz; then
40189 cat >>confdefs.h <<\_ACEOF
40190 #define HAVE_LIBZ 1
40197 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40198 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40199 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40200 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40201 echo $ECHO_N "(cached) $ECHO_C" >&6
40203 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40204 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40206 # Is the header compilable?
40207 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40208 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40209 cat >conftest.$ac_ext <<_ACEOF
40212 cat confdefs.h >>conftest.$ac_ext
40213 cat >>conftest.$ac_ext <<_ACEOF
40214 /* end confdefs.h. */
40215 $ac_includes_default
40216 #include <sys/acl.h>
40218 rm -f conftest.$ac_objext
40219 if { (ac_try="$ac_compile"
40220 case "(($ac_try" in
40221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40222 *) ac_try_echo=$ac_try;;
40224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40225 (eval "$ac_compile") 2>conftest.er1
40227 grep -v '^ *+' conftest.er1 >conftest.err
40229 cat conftest.err >&5
40230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231 (exit $ac_status); } && {
40232 test -z "$ac_c_werror_flag" ||
40233 test ! -s conftest.err
40234 } && test -s conftest.$ac_objext; then
40235 ac_header_compiler=yes
40237 echo "$as_me: failed program was:" >&5
40238 sed 's/^/| /' conftest.$ac_ext >&5
40240 ac_header_compiler=no
40243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40245 echo "${ECHO_T}$ac_header_compiler" >&6; }
40247 # Is the header present?
40248 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40249 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40250 cat >conftest.$ac_ext <<_ACEOF
40253 cat confdefs.h >>conftest.$ac_ext
40254 cat >>conftest.$ac_ext <<_ACEOF
40255 /* end confdefs.h. */
40256 #include <sys/acl.h>
40258 if { (ac_try="$ac_cpp conftest.$ac_ext"
40259 case "(($ac_try" in
40260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40261 *) ac_try_echo=$ac_try;;
40263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40266 grep -v '^ *+' conftest.er1 >conftest.err
40268 cat conftest.err >&5
40269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40270 (exit $ac_status); } >/dev/null && {
40271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40272 test ! -s conftest.err
40274 ac_header_preproc=yes
40276 echo "$as_me: failed program was:" >&5
40277 sed 's/^/| /' conftest.$ac_ext >&5
40279 ac_header_preproc=no
40282 rm -f conftest.err conftest.$ac_ext
40283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40284 echo "${ECHO_T}$ac_header_preproc" >&6; }
40286 # So? What about this header?
40287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40289 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40290 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40291 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40292 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40293 ac_header_preproc=yes
40296 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40297 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40298 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40299 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40300 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40301 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40302 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40303 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40304 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40305 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40306 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40307 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40311 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40312 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40313 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40314 echo $ECHO_N "(cached) $ECHO_C" >&6
40316 ac_cv_header_sys_acl_h=$ac_header_preproc
40318 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40319 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40324 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40325 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40326 if test "${ac_cv_func_acl_get_file+set}" = set; then
40327 echo $ECHO_N "(cached) $ECHO_C" >&6
40329 cat >conftest.$ac_ext <<_ACEOF
40332 cat confdefs.h >>conftest.$ac_ext
40333 cat >>conftest.$ac_ext <<_ACEOF
40334 /* end confdefs.h. */
40335 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40337 #define acl_get_file innocuous_acl_get_file
40339 /* System header to define __stub macros and hopefully few prototypes,
40340 which can conflict with char acl_get_file (); below.
40341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40342 <limits.h> exists even on freestanding compilers. */
40345 # include <limits.h>
40347 # include <assert.h>
40350 #undef acl_get_file
40352 /* Override any GCC internal prototype to avoid an error.
40353 Use char because int might match the return type of a GCC
40354 builtin and then its argument prototype would still apply. */
40358 char acl_get_file ();
40359 /* The GNU C library defines this for functions which it implements
40360 to always fail with ENOSYS. Some functions are actually named
40361 something starting with __ and the normal name is an alias. */
40362 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40369 return acl_get_file ();
40374 rm -f conftest.$ac_objext conftest$ac_exeext
40375 if { (ac_try="$ac_link"
40376 case "(($ac_try" in
40377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40378 *) ac_try_echo=$ac_try;;
40380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40381 (eval "$ac_link") 2>conftest.er1
40383 grep -v '^ *+' conftest.er1 >conftest.err
40385 cat conftest.err >&5
40386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40387 (exit $ac_status); } && {
40388 test -z "$ac_c_werror_flag" ||
40389 test ! -s conftest.err
40390 } && test -s conftest$ac_exeext &&
40391 $as_test_x conftest$ac_exeext; then
40392 ac_cv_func_acl_get_file=yes
40394 echo "$as_me: failed program was:" >&5
40395 sed 's/^/| /' conftest.$ac_ext >&5
40397 ac_cv_func_acl_get_file=no
40400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40401 conftest$ac_exeext conftest.$ac_ext
40403 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40404 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40405 if test $ac_cv_func_acl_get_file = yes; then
40409 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40410 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40411 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40412 echo $ECHO_N "(cached) $ECHO_C" >&6
40414 ac_check_lib_save_LIBS=$LIBS
40416 cat >conftest.$ac_ext <<_ACEOF
40419 cat confdefs.h >>conftest.$ac_ext
40420 cat >>conftest.$ac_ext <<_ACEOF
40421 /* end confdefs.h. */
40423 /* Override any GCC internal prototype to avoid an error.
40424 Use char because int might match the return type of a GCC
40425 builtin and then its argument prototype would still apply. */
40429 char acl_get_file ();
40433 return acl_get_file ();
40438 rm -f conftest.$ac_objext conftest$ac_exeext
40439 if { (ac_try="$ac_link"
40440 case "(($ac_try" in
40441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40442 *) ac_try_echo=$ac_try;;
40444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40445 (eval "$ac_link") 2>conftest.er1
40447 grep -v '^ *+' conftest.er1 >conftest.err
40449 cat conftest.err >&5
40450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451 (exit $ac_status); } && {
40452 test -z "$ac_c_werror_flag" ||
40453 test ! -s conftest.err
40454 } && test -s conftest$ac_exeext &&
40455 $as_test_x conftest$ac_exeext; then
40456 ac_cv_lib_acl_acl_get_file=yes
40458 echo "$as_me: failed program was:" >&5
40459 sed 's/^/| /' conftest.$ac_ext >&5
40461 ac_cv_lib_acl_acl_get_file=no
40464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40465 conftest$ac_exeext conftest.$ac_ext
40466 LIBS=$ac_check_lib_save_LIBS
40468 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40469 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40470 if test $ac_cv_lib_acl_acl_get_file = yes; then
40473 FDLIBS="-lacl $FDLIBS"
40477 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40478 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40479 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40480 echo $ECHO_N "(cached) $ECHO_C" >&6
40482 ac_check_lib_save_LIBS=$LIBS
40484 cat >conftest.$ac_ext <<_ACEOF
40487 cat confdefs.h >>conftest.$ac_ext
40488 cat >>conftest.$ac_ext <<_ACEOF
40489 /* end confdefs.h. */
40491 /* Override any GCC internal prototype to avoid an error.
40492 Use char because int might match the return type of a GCC
40493 builtin and then its argument prototype would still apply. */
40501 return acltotext ();
40506 rm -f conftest.$ac_objext conftest$ac_exeext
40507 if { (ac_try="$ac_link"
40508 case "(($ac_try" in
40509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40510 *) ac_try_echo=$ac_try;;
40512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40513 (eval "$ac_link") 2>conftest.er1
40515 grep -v '^ *+' conftest.er1 >conftest.err
40517 cat conftest.err >&5
40518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40519 (exit $ac_status); } && {
40520 test -z "$ac_c_werror_flag" ||
40521 test ! -s conftest.err
40522 } && test -s conftest$ac_exeext &&
40523 $as_test_x conftest$ac_exeext; then
40524 ac_cv_lib_sec_acltotext=yes
40526 echo "$as_me: failed program was:" >&5
40527 sed 's/^/| /' conftest.$ac_ext >&5
40529 ac_cv_lib_sec_acltotext=no
40532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40533 conftest$ac_exeext conftest.$ac_ext
40534 LIBS=$ac_check_lib_save_LIBS
40536 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40537 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40538 if test $ac_cv_lib_sec_acltotext = yes; then
40541 FDLIBS="-lsec $FDLIBS"
40554 if test $have_acl = yes; then
40555 cat >>confdefs.h <<\_ACEOF
40562 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40563 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40564 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40565 echo $ECHO_N "(cached) $ECHO_C" >&6
40567 ac_check_lib_save_LIBS=$LIBS
40568 LIBS="-lpthread $LIBS"
40569 cat >conftest.$ac_ext <<_ACEOF
40572 cat confdefs.h >>conftest.$ac_ext
40573 cat >>conftest.$ac_ext <<_ACEOF
40574 /* end confdefs.h. */
40576 /* Override any GCC internal prototype to avoid an error.
40577 Use char because int might match the return type of a GCC
40578 builtin and then its argument prototype would still apply. */
40582 char pthread_create ();
40586 return pthread_create ();
40591 rm -f conftest.$ac_objext conftest$ac_exeext
40592 if { (ac_try="$ac_link"
40593 case "(($ac_try" in
40594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40595 *) ac_try_echo=$ac_try;;
40597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40598 (eval "$ac_link") 2>conftest.er1
40600 grep -v '^ *+' conftest.er1 >conftest.err
40602 cat conftest.err >&5
40603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40604 (exit $ac_status); } && {
40605 test -z "$ac_c_werror_flag" ||
40606 test ! -s conftest.err
40607 } && test -s conftest$ac_exeext &&
40608 $as_test_x conftest$ac_exeext; then
40609 ac_cv_lib_pthread_pthread_create=yes
40611 echo "$as_me: failed program was:" >&5
40612 sed 's/^/| /' conftest.$ac_ext >&5
40614 ac_cv_lib_pthread_pthread_create=no
40617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40618 conftest$ac_exeext conftest.$ac_ext
40619 LIBS=$ac_check_lib_save_LIBS
40621 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40622 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40623 if test $ac_cv_lib_pthread_pthread_create = yes; then
40624 PTHREAD_LIB="-lpthread"
40627 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40628 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40629 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40630 echo $ECHO_N "(cached) $ECHO_C" >&6
40632 ac_check_lib_save_LIBS=$LIBS
40633 LIBS="-lpthreads $LIBS"
40634 cat >conftest.$ac_ext <<_ACEOF
40637 cat confdefs.h >>conftest.$ac_ext
40638 cat >>conftest.$ac_ext <<_ACEOF
40639 /* end confdefs.h. */
40641 /* Override any GCC internal prototype to avoid an error.
40642 Use char because int might match the return type of a GCC
40643 builtin and then its argument prototype would still apply. */
40647 char pthread_create ();
40651 return pthread_create ();
40656 rm -f conftest.$ac_objext conftest$ac_exeext
40657 if { (ac_try="$ac_link"
40658 case "(($ac_try" in
40659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40660 *) ac_try_echo=$ac_try;;
40662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40663 (eval "$ac_link") 2>conftest.er1
40665 grep -v '^ *+' conftest.er1 >conftest.err
40667 cat conftest.err >&5
40668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669 (exit $ac_status); } && {
40670 test -z "$ac_c_werror_flag" ||
40671 test ! -s conftest.err
40672 } && test -s conftest$ac_exeext &&
40673 $as_test_x conftest$ac_exeext; then
40674 ac_cv_lib_pthreads_pthread_create=yes
40676 echo "$as_me: failed program was:" >&5
40677 sed 's/^/| /' conftest.$ac_ext >&5
40679 ac_cv_lib_pthreads_pthread_create=no
40682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40683 conftest$ac_exeext conftest.$ac_ext
40684 LIBS=$ac_check_lib_save_LIBS
40686 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40687 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40688 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40689 PTHREAD_LIB="-lpthreads"
40692 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40693 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40694 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40695 echo $ECHO_N "(cached) $ECHO_C" >&6
40697 ac_check_lib_save_LIBS=$LIBS
40699 cat >conftest.$ac_ext <<_ACEOF
40702 cat confdefs.h >>conftest.$ac_ext
40703 cat >>conftest.$ac_ext <<_ACEOF
40704 /* end confdefs.h. */
40706 /* Override any GCC internal prototype to avoid an error.
40707 Use char because int might match the return type of a GCC
40708 builtin and then its argument prototype would still apply. */
40712 char pthread_create ();
40716 return pthread_create ();
40721 rm -f conftest.$ac_objext conftest$ac_exeext
40722 if { (ac_try="$ac_link"
40723 case "(($ac_try" in
40724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40725 *) ac_try_echo=$ac_try;;
40727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40728 (eval "$ac_link") 2>conftest.er1
40730 grep -v '^ *+' conftest.er1 >conftest.err
40732 cat conftest.err >&5
40733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734 (exit $ac_status); } && {
40735 test -z "$ac_c_werror_flag" ||
40736 test ! -s conftest.err
40737 } && test -s conftest$ac_exeext &&
40738 $as_test_x conftest$ac_exeext; then
40739 ac_cv_lib_c_r_pthread_create=yes
40741 echo "$as_me: failed program was:" >&5
40742 sed 's/^/| /' conftest.$ac_ext >&5
40744 ac_cv_lib_c_r_pthread_create=no
40747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40748 conftest$ac_exeext conftest.$ac_ext
40749 LIBS=$ac_check_lib_save_LIBS
40751 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40752 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40753 if test $ac_cv_lib_c_r_pthread_create = yes; then
40754 PTHREAD_LIB="-lc_r"
40757 { echo "$as_me:$LINENO: checking for pthread_create" >&5
40758 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40759 if test "${ac_cv_func_pthread_create+set}" = set; then
40760 echo $ECHO_N "(cached) $ECHO_C" >&6
40762 cat >conftest.$ac_ext <<_ACEOF
40765 cat confdefs.h >>conftest.$ac_ext
40766 cat >>conftest.$ac_ext <<_ACEOF
40767 /* end confdefs.h. */
40768 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40770 #define pthread_create innocuous_pthread_create
40772 /* System header to define __stub macros and hopefully few prototypes,
40773 which can conflict with char pthread_create (); below.
40774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40775 <limits.h> exists even on freestanding compilers. */
40778 # include <limits.h>
40780 # include <assert.h>
40783 #undef pthread_create
40785 /* Override any GCC internal prototype to avoid an error.
40786 Use char because int might match the return type of a GCC
40787 builtin and then its argument prototype would still apply. */
40791 char pthread_create ();
40792 /* The GNU C library defines this for functions which it implements
40793 to always fail with ENOSYS. Some functions are actually named
40794 something starting with __ and the normal name is an alias. */
40795 #if defined __stub_pthread_create || defined __stub___pthread_create
40802 return pthread_create ();
40807 rm -f conftest.$ac_objext conftest$ac_exeext
40808 if { (ac_try="$ac_link"
40809 case "(($ac_try" in
40810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40811 *) ac_try_echo=$ac_try;;
40813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40814 (eval "$ac_link") 2>conftest.er1
40816 grep -v '^ *+' conftest.er1 >conftest.err
40818 cat conftest.err >&5
40819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820 (exit $ac_status); } && {
40821 test -z "$ac_c_werror_flag" ||
40822 test ! -s conftest.err
40823 } && test -s conftest$ac_exeext &&
40824 $as_test_x conftest$ac_exeext; then
40825 ac_cv_func_pthread_create=yes
40827 echo "$as_me: failed program was:" >&5
40828 sed 's/^/| /' conftest.$ac_ext >&5
40830 ac_cv_func_pthread_create=no
40833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40834 conftest$ac_exeext conftest.$ac_ext
40836 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40837 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40853 cat >>confdefs.h <<\_ACEOF
40858 CFLAGS=${CFLAGS--O}
40860 if test x$have_gcc = xyes ; then
40861 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40862 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40864 LDFLAGS=${LDFLAGS--O}
40865 DB_LIBS="${SQL_LFLAGS}"
40866 CPPFLAGS="$CPPFLAGS"
40893 PFILES="platforms/Makefile"
40897 hostname=`uname -n | cut -d '.' -f 1`
40898 if test x${hostname} = x ; then
40899 hostname="localhost"
40901 case "$DISTNAME" in
40904 PSCMD="ps -e -o pid,comm"
40905 PFILES="${PFILES} \
40906 platforms/aix/Makefile"
40907 TAPEDRIVE="/dev/rmt0.1"
40911 PTHREAD_LIB="-lpthread -lexc"
40912 if test "${CC}" = "gcc" ; then
40919 TAPEDRIVE="/dev/nrmt0"
40922 DISTVER=`uname -a |awk '{print $3}'`
40923 TAPEDRIVE="/dev/nrmt0"
40924 PTHREAD_LIB="-pthread"
40925 CFLAGS="${CFLAGS} -pthread"
40926 PSCMD="ps -ax -o pid,command"
40929 PFILES="${PFILES} \
40930 platforms/bsdi/Makefile \
40931 platforms/bsdi/bacula-fd \
40932 platforms/bsdi/bacula-sd \
40933 platforms/bsdi/bacula-dir"
40934 largefile_support="yes"
40937 DISTVER=`uname -a |awk '{print $3}'`
40938 TAPEDRIVE="/dev/nrst0"
40940 WCFLAGS="-mwindows"
40941 WLDFLAGS="-mwindows"
40945 TAPEDRIVE="/dev/nst0"
40946 PSCMD="ps -e -o pid,command"
40948 PFILES="${PFILES} \
40949 platforms/darwin/Makefile"
40952 ping -c 1 $hostname 2>&1 1>/dev/null
40953 if test ! $? = 0; then
40954 hostname="localhost"
40956 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
40959 DISTVER=`cat /etc/debian_version`
40960 if test -f /etc/lsb-release ; then
40962 if test "x$DISTRIB_ID" != "x" ; then
40963 DISTNAME=$DISTRIB_ID
40965 if test "x$DISTRIB_RELEASE" != "x" ; then
40966 DISTVER=$DISTRIB_RELEASE
40969 if test "$DISTNAME" = "Ubuntu" ; then
40972 TAPEDRIVE="/dev/nst0"
40973 PSCMD="ps -e -o pid,command"
40974 if test "$DISTNAME" = "ubuntu" ; then
40975 PFILES="${PFILES} \
40976 platforms/ubuntu/Makefile \
40977 platforms/ubuntu/bacula-fd \
40978 platforms/ubuntu/bacula-sd \
40979 platforms/ubuntu/bacula-dir"
40981 PFILES="${PFILES} \
40982 platforms/debian/Makefile \
40983 platforms/debian/bacula-fd \
40984 platforms/debian/bacula-sd \
40985 platforms/debian/bacula-dir"
40989 ping -c 1 $hostname 2>&1 1>/dev/null
40990 if test ! $? = 0; then
40991 hostname="localhost"
40993 DISTVER=`uname -a |awk '{print $3}'`
40994 VER=`echo $DISTVER | cut -c 1`
40995 if test x$VER = x4 ; then
40996 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
40997 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41001 TAPEDRIVE="/dev/nrsa0"
41002 PSCMD="ps -ax -o pid,command"
41003 PFILES="${PFILES} \
41004 platforms/freebsd/Makefile \
41005 platforms/freebsd/bacula-fd \
41006 platforms/freebsd/bacula-sd \
41007 platforms/freebsd/bacula-dir"
41008 largefile_support="yes"
41011 PSCMD="UNIX95=1; ps -e -o pid,comm"
41012 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41014 TAPEDRIVE="/dev/rmt/0hnb"
41015 PTHREAD_LIB="-lpthread"
41016 cat >>confdefs.h <<\_ACEOF
41017 #define _INCLUDE_LONGLONG 1
41023 TAPEDRIVE="/dev/rmt/0cbn"
41024 PSCMD="ps -e -o pid,comm"
41025 PFILES="${PFILES} \
41026 platforms/irix/Makefile \
41027 platforms/irix/bacula-fd \
41028 platforms/irix/bacula-sd \
41029 platforms/irix/bacula-dir"
41032 DISTVER=`uname -a |awk '{print $3}'`
41035 TAPEDRIVE="/dev/nrst0"
41036 PSCMD="ps -ax -o pid,command"
41037 PTHREAD_LIB="-pthread"
41038 CFLAGS="${CFLAGS} -pthread"
41041 DISTVER=`uname -a |awk '{print $3}'`
41044 TAPEDRIVE="/dev/nrst0"
41045 PSCMD="ps -ax -o pid,command"
41046 PTHREAD_LIB="-pthread"
41047 CFLAGS="${CFLAGS} -pthread"
41048 PFILES="${PFILES} \
41049 platforms/openbsd/Makefile \
41050 platforms/openbsd/bacula-fd \
41051 platforms/openbsd/bacula-sd \
41052 platforms/openbsd/bacula-dir"
41055 ping -c 1 $hostname 2>&1 1>/dev/null
41056 if test ! $? = 0; then
41057 hostname="localhost"
41059 if test -f /etc/whitebox-release ; then
41060 f=/etc/whitebox-release
41062 f=/etc/redhat-release
41064 if test `cat $f | grep release |\
41065 cut -f 3 -d ' '`x = "Enterprise"x ; then
41066 DISTVER="Enterprise "`cat $f | grep release |\
41069 DISTVER=`cat /etc/redhat-release | grep release |\
41072 TAPEDRIVE="/dev/nst0"
41073 PSCMD="ps -e -o pid,command"
41074 PFILES="${PFILES} \
41075 platforms/redhat/Makefile \
41076 platforms/redhat/bacula-fd \
41077 platforms/redhat/bacula-sd \
41078 platforms/redhat/bacula-dir \
41079 platforms/redhat/bacula.spec \
41083 ping -c 1 $hostname 2>&1 1>/dev/null
41084 if test ! $? = 0; then
41085 hostname="localhost"
41087 DISTVER=`cat /etc/mandrake-release | grep release |\
41089 TAPEDRIVE="/dev/nst0"
41090 PSCMD="ps -e -o pid,command"
41091 PFILES="${PFILES} \
41092 platforms/mandrake/Makefile \
41093 platforms/mandrake/bacula-fd \
41094 platforms/mandrake/bacula-sd \
41095 platforms/mandrake/bacula-dir \
41096 platforms/mandrake/bacula.spec \
41100 ping -c 1 $hostname 2>&1 1>/dev/null
41101 if test ! $? = 0; then
41102 hostname="localhost"
41104 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41105 TAPEDRIVE="/dev/nst0"
41106 PSCMD="ps -e -o pid,command"
41107 PFILES="${PFILES} \
41108 platforms/gentoo/Makefile \
41109 platforms/gentoo/bacula-init \
41110 platforms/gentoo/bacula-fd \
41111 platforms/gentoo/bacula-sd \
41112 platforms/gentoo/bacula-dir"
41115 ping -c 1 $hostname 2>&1 1>/dev/null
41116 if test ! $? = 0; then
41117 hostname="localhost"
41119 DISTVER=`cat /etc/slackware-version`
41120 TAPEDRIVE="/dev/nst0"
41121 PSCMD="ps -e -o pid,command"
41122 PFILES="${PFILES} \
41123 platforms/slackware/Makefile \
41124 platforms/slackware/rc.bacula-fd \
41125 platforms/slackware/rc.bacula-sd \
41126 platforms/slackware/rc.bacula-dir\
41127 platforms/slackware/functions.bacula"
41131 TAPEDRIVE="/dev/rmt/0cbn"
41132 PSCMD="ps -e -o pid,comm"
41133 PFILES="${PFILES} \
41134 platforms/solaris/Makefile \
41135 platforms/solaris/bacula-fd \
41136 platforms/solaris/bacula-sd \
41137 platforms/solaris/bacula-dir"
41138 if test x$DISTVER = x5.6 ; then
41139 cat >>confdefs.h <<\_ACEOF
41140 #define HAVE_OLD_SOCKOPT 1
41144 LIBS="$LIBS -lresolv"
41147 ping -c 1 $hostname 2>&1 1>/dev/null
41148 if test ! $? = 0; then
41149 hostname="localhost"
41151 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41153 TAPEDRIVE="/dev/nst0"
41154 PSCMD="ps -e -o pid,command"
41155 PFILES="${PFILES} \
41156 platforms/suse/Makefile \
41157 platforms/suse/bacula-fd \
41158 platforms/suse/bacula-sd \
41159 platforms/suse/bacula-dir \
41160 platforms/suse/bacula \
41161 platforms/suse/bacula.spec"
41164 ping -c 1 $hostname 2>&1 1>/dev/null
41165 if test ! $? = 0; then
41166 hostname="localhost"
41170 TAPEDRIVE="/dev/nst0"
41171 PSCMD="ps -e -o pid,command"
41172 PFILES="${PFILES} \
41173 platforms/suse/Makefile \
41174 platforms/suse/bacula-fd \
41175 platforms/suse/bacula-sd \
41176 platforms/suse/bacula-dir"
41180 TAPEDRIVE="/dev/nst0"
41183 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41189 LIBS="$PTHREAD_LIB $LIBS"
41191 cat >>confdefs.h <<_ACEOF
41195 cat >>confdefs.h <<_ACEOF
41206 MCOMMON=./autoconf/Make.common
41209 if test "x${subsysdir}" = "x${sbindir}" ; then
41212 echo "You have set both --sbindir and --with-subsys-dir"
41213 echo " equal to: ${subsysdir} "
41214 echo "This is not permitted. Please reconfigure."
41216 echo "Aborting configuration ..."
41222 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"
41224 ac_config_commands="$ac_config_commands default"
41226 cat >confcache <<\_ACEOF
41227 # This file is a shell script that caches the results of configure
41228 # tests run on this system so they can be shared between configure
41229 # scripts and configure runs, see configure's option --config-cache.
41230 # It is not useful on other systems. If it contains results you don't
41231 # want to keep, you may remove or edit it.
41233 # config.status only pays attention to the cache file if you give it
41234 # the --recheck option to rerun configure.
41236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41238 # following values.
41242 # The following way of writing the cache mishandles newlines in values,
41243 # but we know of no workaround that is simple, portable, and efficient.
41244 # So, we kill variables containing newlines.
41245 # Ultrix sh set writes to stderr and can't be redirected directly,
41246 # and sets the high bit in the cache file unless we assign to the vars.
41248 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41249 eval ac_val=\$$ac_var
41253 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41254 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41257 _ | IFS | as_nl) ;; #(
41258 *) $as_unset $ac_var ;;
41264 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41265 *${as_nl}ac_space=\ *)
41266 # `set' does not quote correctly, so add quotes (double-quote
41267 # substitution turns \\\\ into \\, and sed turns \\ into \).
41270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41273 # `set' quotes correctly as required by POSIX, so do not add quotes.
41274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41283 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41287 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41288 if test -w "$cache_file"; then
41289 test "x$cache_file" != "x/dev/null" &&
41290 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41291 echo "$as_me: updating cache $cache_file" >&6;}
41292 cat confcache >$cache_file
41294 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41295 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41301 # Let make expand exec_prefix.
41302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41304 DEFS=-DHAVE_CONFIG_H
41308 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41309 # 1. Remove the extension, and $U if already installed.
41310 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41311 ac_i=`echo "$ac_i" | sed "$ac_script"`
41312 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41313 # will be set to the directory where LIBOBJS objects are built.
41314 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41315 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41317 LIBOBJS=$ac_libobjs
41319 LTLIBOBJS=$ac_ltlibobjs
41323 : ${CONFIG_STATUS=./config.status}
41324 ac_clean_files_save=$ac_clean_files
41325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41326 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41327 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41328 cat >$CONFIG_STATUS <<_ACEOF
41330 # Generated by $as_me.
41331 # Run this file to recreate the current configuration.
41332 # Compiler output produced by configure, useful for debugging
41333 # configure, is in config.log if it exists.
41336 ac_cs_recheck=false
41338 SHELL=\${CONFIG_SHELL-$SHELL}
41341 cat >>$CONFIG_STATUS <<\_ACEOF
41342 ## --------------------- ##
41343 ## M4sh Initialization. ##
41344 ## --------------------- ##
41346 # Be more Bourne compatible
41347 DUALCASE=1; export DUALCASE # for MKS sh
41348 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41351 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41352 # is contrary to our usage. Disable this feature.
41353 alias -g '${1+"$@"}'='"$@"'
41354 setopt NO_GLOB_SUBST
41356 case `(set -o) 2>/dev/null` in
41357 *posix*) set -o posix ;;
41366 # Avoid depending upon Character Ranges.
41367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41370 as_cr_digits='0123456789'
41371 as_cr_alnum=$as_cr_Letters$as_cr_digits
41373 # The user is always right.
41374 if test "${PATH_SEPARATOR+set}" != set; then
41375 echo "#! /bin/sh" >conf$$.sh
41376 echo "exit 0" >>conf$$.sh
41378 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41386 # Support unset when possible.
41387 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41395 # We need space, tab and new line, in precisely that order. Quoting is
41396 # there to prevent editors from complaining about space-tab.
41397 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41398 # splitting by setting IFS to empty value.)
41403 # Find who we are. Look in the path if we contain no directory separator.
41405 *[\\/]* ) as_myself=$0 ;;
41406 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41407 for as_dir in $PATH
41410 test -z "$as_dir" && as_dir=.
41411 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41417 # We did not find ourselves, most probably we were run as `sh COMMAND'
41418 # in which case we are not to be found in the path.
41419 if test "x$as_myself" = x; then
41422 if test ! -f "$as_myself"; then
41423 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41424 { (exit 1); exit 1; }
41427 # Work around bugs in pre-3.0 UWIN ksh.
41428 for as_var in ENV MAIL MAILPATH
41429 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41437 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41438 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41439 LC_TELEPHONE LC_TIME
41441 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41442 eval $as_var=C; export $as_var
41444 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41448 # Required to use basename.
41449 if expr a : '\(a\)' >/dev/null 2>&1 &&
41450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41457 as_basename=basename
41463 # Name of the executable.
41464 as_me=`$as_basename -- "$0" ||
41465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41466 X"$0" : 'X\(//\)$' \| \
41467 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41469 sed '/^.*\/\([^/][^/]*\)\/*$/{
41488 as_lineno_1=$LINENO
41489 as_lineno_2=$LINENO
41490 test "x$as_lineno_1" != "x$as_lineno_2" &&
41491 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41493 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41494 # uniformly replaced by the line number. The first 'sed' inserts a
41495 # line-number line after each line using $LINENO; the second 'sed'
41496 # does the real work. The second script uses 'N' to pair each
41497 # line-number line with the line containing $LINENO, and appends
41498 # trailing '-' during substitution so that $LINENO is not a special
41499 # case at line end.
41500 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41501 # scripts with optimization help from Paolo Bonzini. Blame Lee
41502 # E. McMahon (1931-1989) for sed's syntax. :-)
41514 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41517 ' >$as_me.lineno &&
41518 chmod +x "$as_me.lineno" ||
41519 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41520 { (exit 1); exit 1; }; }
41522 # Don't try to exec as it changes $[0], causing all sort of problems
41523 # (the dirname of $[0] is not the place where we might find the
41524 # original and so on. Autoconf is especially sensitive to this).
41525 . "./$as_me.lineno"
41526 # Exit status is that of the last command.
41531 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41537 ECHO_C= ECHO_N= ECHO_T=
41538 case `echo -n x` in
41540 case `echo 'x\c'` in
41541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41548 if expr a : '\(a\)' >/dev/null 2>&1 &&
41549 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41555 rm -f conf$$ conf$$.exe conf$$.file
41556 if test -d conf$$.dir; then
41557 rm -f conf$$.dir/conf$$.file
41563 if ln -s conf$$.file conf$$ 2>/dev/null; then
41565 # ... but there are two gotchas:
41566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41568 # In both cases, we have to default to `cp -p'.
41569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41571 elif ln conf$$.file conf$$ 2>/dev/null; then
41576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41577 rmdir conf$$.dir 2>/dev/null
41579 if mkdir -p . 2>/dev/null; then
41582 test -d ./-p && rmdir ./-p
41586 if test -x / >/dev/null 2>&1; then
41587 as_test_x='test -x'
41589 if ls -dL / >/dev/null 2>&1; then
41596 if test -d "$1"; then
41602 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41603 ???[sx]*):;;*)false;;esac;fi
41607 as_executable_p=$as_test_x
41609 # Sed expression to map a string onto a valid CPP name.
41610 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41612 # Sed expression to map a string onto a valid variable name.
41613 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41618 # Save the log message, to keep $[0] and so on meaningful, and to
41619 # report actual input values of CONFIG_FILES etc. instead of their
41620 # values after options handling.
41622 This file was extended by $as_me, which was
41623 generated by GNU Autoconf 2.61. Invocation command line was
41625 CONFIG_FILES = $CONFIG_FILES
41626 CONFIG_HEADERS = $CONFIG_HEADERS
41627 CONFIG_LINKS = $CONFIG_LINKS
41628 CONFIG_COMMANDS = $CONFIG_COMMANDS
41631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41636 cat >>$CONFIG_STATUS <<_ACEOF
41637 # Files that config.status was made for.
41638 config_files="$ac_config_files"
41639 config_headers="$ac_config_headers"
41640 config_commands="$ac_config_commands"
41644 cat >>$CONFIG_STATUS <<\_ACEOF
41646 \`$as_me' instantiates files from templates according to the
41647 current configuration.
41649 Usage: $0 [OPTIONS] [FILE]...
41651 -h, --help print this help, then exit
41652 -V, --version print version number and configuration settings, then exit
41653 -q, --quiet do not print progress messages
41654 -d, --debug don't remove temporary files
41655 --recheck update $as_me by reconfiguring in the same conditions
41656 --file=FILE[:TEMPLATE]
41657 instantiate the configuration file FILE
41658 --header=FILE[:TEMPLATE]
41659 instantiate the configuration header FILE
41661 Configuration files:
41664 Configuration headers:
41667 Configuration commands:
41670 Report bugs to <bug-autoconf@gnu.org>."
41673 cat >>$CONFIG_STATUS <<_ACEOF
41676 configured by $0, generated by GNU Autoconf 2.61,
41677 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41679 Copyright (C) 2006 Free Software Foundation, Inc.
41680 This config.status script is free software; the Free Software Foundation
41681 gives unlimited permission to copy, distribute and modify it."
41688 cat >>$CONFIG_STATUS <<\_ACEOF
41689 # If no file are specified by the user, then we need to provide default
41690 # value. By we need to know if files were specified by the user.
41696 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41697 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41708 # Handling of the options.
41709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41711 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41712 echo "$ac_cs_version"; exit ;;
41713 --debug | --debu | --deb | --de | --d | -d )
41715 --file | --fil | --fi | --f )
41717 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41718 ac_need_defaults=false;;
41719 --header | --heade | --head | --hea )
41721 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41722 ac_need_defaults=false;;
41724 # Conflict between --help and --header
41725 { echo "$as_me: error: ambiguous option: $1
41726 Try \`$0 --help' for more information." >&2
41727 { (exit 1); exit 1; }; };;
41728 --help | --hel | -h )
41729 echo "$ac_cs_usage"; exit ;;
41730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41731 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41734 # This is an error.
41735 -*) { echo "$as_me: error: unrecognized option: $1
41736 Try \`$0 --help' for more information." >&2
41737 { (exit 1); exit 1; }; } ;;
41739 *) ac_config_targets="$ac_config_targets $1"
41740 ac_need_defaults=false ;;
41746 ac_configure_extra_args=
41748 if $ac_cs_silent; then
41750 ac_configure_extra_args="$ac_configure_extra_args --silent"
41754 cat >>$CONFIG_STATUS <<_ACEOF
41755 if \$ac_cs_recheck; then
41756 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41757 CONFIG_SHELL=$SHELL
41758 export CONFIG_SHELL
41759 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41763 cat >>$CONFIG_STATUS <<\_ACEOF
41767 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41768 ## Running $as_me. ##
41774 cat >>$CONFIG_STATUS <<_ACEOF
41780 # The HP-UX ksh and POSIX shell print the target directory to stdout
41781 # if CDPATH is set.
41782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41784 sed_quote_subst='$sed_quote_subst'
41785 double_quote_subst='$double_quote_subst'
41786 delay_variable_subst='$delay_variable_subst'
41787 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41788 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41789 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41790 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41791 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41792 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41793 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41794 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41795 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41796 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41797 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41798 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41799 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41800 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41801 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41802 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41803 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41804 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41805 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41806 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41807 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41808 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41809 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41810 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41811 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41812 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41813 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41814 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41815 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41816 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41817 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41818 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41819 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41820 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41821 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41822 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41823 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41824 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41825 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41826 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41827 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41828 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41829 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41830 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41831 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"`'
41832 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"`'
41833 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41834 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41835 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41836 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41837 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41838 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41839 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41840 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41841 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41842 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41843 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41844 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41845 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41846 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41847 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41848 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41849 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41850 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41851 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41852 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41853 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41854 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41855 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41856 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41857 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41858 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41859 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41860 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41861 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41862 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41863 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41864 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41865 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41866 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41867 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41868 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41869 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41870 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41871 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41872 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41873 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41874 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41875 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41876 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41877 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41878 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41879 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41880 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41881 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41882 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41883 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41884 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41885 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41886 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41887 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41888 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41889 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41890 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41891 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41892 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41893 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41894 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41895 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41896 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41897 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41898 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41899 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41900 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41901 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41902 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41903 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41904 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41905 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
41906 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41907 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
41908 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
41909 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
41910 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
41911 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41912 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41913 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41914 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41915 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41916 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41917 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41918 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41919 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41920 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41921 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41922 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41923 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41924 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41925 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41926 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41927 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41928 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41929 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41930 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41931 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41932 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41933 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41934 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41935 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41936 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41937 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41938 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41939 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41940 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41941 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41942 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41943 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41944 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41945 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41946 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41947 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41948 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41949 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41950 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41951 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41952 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41953 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41954 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41955 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41956 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41957 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
41960 LTCFLAGS='$LTCFLAGS'
41961 compiler='$compiler_DEFAULT'
41963 # Quote evaled strings.
41975 deplibs_check_method \
41984 lt_cv_sys_global_symbol_pipe \
41985 lt_cv_sys_global_symbol_to_cdecl \
41986 lt_cv_sys_global_symbol_to_c_name_address \
41987 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41990 lt_prog_compiler_no_builtin_flag \
41991 lt_prog_compiler_wl \
41992 lt_prog_compiler_pic \
41993 lt_prog_compiler_static \
41994 lt_cv_prog_compiler_c_o \
42002 export_dynamic_flag_spec \
42003 whole_archive_flag_spec \
42004 compiler_needs_object \
42006 allow_undefined_flag \
42007 no_undefined_flag \
42008 hardcode_libdir_flag_spec \
42009 hardcode_libdir_flag_spec_ld \
42010 hardcode_libdir_separator \
42015 variables_saved_for_relink \
42017 library_names_spec \
42022 compiler_lib_search_dirs \
42027 compiler_lib_search_path \
42030 lt_prog_compiler_no_builtin_flag_CXX \
42031 lt_prog_compiler_wl_CXX \
42032 lt_prog_compiler_pic_CXX \
42033 lt_prog_compiler_static_CXX \
42034 lt_cv_prog_compiler_c_o_CXX \
42035 export_dynamic_flag_spec_CXX \
42036 whole_archive_flag_spec_CXX \
42037 compiler_needs_object_CXX \
42039 allow_undefined_flag_CXX \
42040 no_undefined_flag_CXX \
42041 hardcode_libdir_flag_spec_CXX \
42042 hardcode_libdir_flag_spec_ld_CXX \
42043 hardcode_libdir_separator_CXX \
42044 fix_srcfile_path_CXX \
42045 exclude_expsyms_CXX \
42046 include_expsyms_CXX \
42047 file_list_spec_CXX \
42048 compiler_lib_search_dirs_CXX \
42049 predep_objects_CXX \
42050 postdep_objects_CXX \
42053 compiler_lib_search_path_CXX; do
42054 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42055 *[\\\\\\\`\\"\\\$]*)
42056 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42059 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42064 # Double-quote double-evaled strings.
42065 for var in reload_cmds \
42066 old_postinstall_cmds \
42067 old_postuninstall_cmds \
42069 extract_expsyms_cmds \
42070 old_archive_from_new_cmds \
42071 old_archive_from_expsyms_cmds \
42073 archive_expsym_cmds \
42075 module_expsym_cmds \
42076 export_symbols_cmds \
42079 postuninstall_cmds \
42081 sys_lib_search_path_spec \
42082 sys_lib_dlsearch_path_spec \
42083 old_archive_cmds_CXX \
42084 old_archive_from_new_cmds_CXX \
42085 old_archive_from_expsyms_cmds_CXX \
42087 archive_expsym_cmds_CXX \
42089 module_expsym_cmds_CXX \
42090 export_symbols_cmds_CXX \
42091 prelink_cmds_CXX; do
42092 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42093 *[\\\\\\\`\\"\\\$]*)
42094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42097 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42102 # Fix-up fallback echo if it was mangled by the above quoting rules.
42104 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42108 ac_aux_dir='$ac_aux_dir'
42109 xsi_shell='$xsi_shell'
42110 lt_shell_append='$lt_shell_append'
42112 # See if we are running on zsh, and set the options which allow our
42113 # commands through without removal of \ escapes INIT.
42114 if test -n "\${ZSH_VERSION+set}" ; then
42115 setopt NO_GLOB_SUBST
42121 TIMESTAMP='$TIMESTAMP'
42129 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42130 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42132 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42133 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42134 LINGUAS="${LINGUAS-%UNSET%}"
42139 cat >>$CONFIG_STATUS <<\_ACEOF
42141 # Handling of arguments.
42142 for ac_config_target in $ac_config_targets
42144 case $ac_config_target in
42145 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42146 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42147 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42148 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42150 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42151 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42152 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42153 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42154 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42155 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42156 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42157 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42158 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42159 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42160 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42161 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42162 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42163 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42164 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42165 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42166 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42167 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42168 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42169 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42170 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42171 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42172 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42173 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42174 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42175 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42176 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42177 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42178 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42179 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42180 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42181 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42182 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42183 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42184 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42185 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42186 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42187 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42188 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42189 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42190 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42191 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42192 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42193 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42194 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42195 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42196 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42197 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42198 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42199 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42200 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42201 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42202 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42203 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42204 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42205 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42206 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42207 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42208 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42209 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42210 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42211 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42212 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42213 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42214 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42215 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42216 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42217 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42218 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42219 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42220 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42221 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42222 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42223 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42224 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42225 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42226 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42227 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42228 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42229 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42230 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42231 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42232 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42233 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42234 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42235 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42236 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42237 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42238 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42239 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42240 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42241 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42242 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42243 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42244 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42245 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42246 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42247 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42248 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42249 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42250 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42251 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42252 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42253 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42254 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42255 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42256 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42257 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42259 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42260 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42261 { (exit 1); exit 1; }; };;
42266 # If the user did not use the arguments to specify the items to instantiate,
42267 # then the envvar interface is used. Set only those that are not.
42268 # We use the long form for the default assignment because of an extremely
42269 # bizarre bug on SunOS 4.1.3.
42270 if $ac_need_defaults; then
42271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42276 # Have a temporary directory for convenience. Make it in the build tree
42277 # simply because there is no reason against having it here, and in addition,
42278 # creating and moving files from /tmp can sometimes cause problems.
42279 # Hook for its removal unless debugging.
42280 # Note that there is a small window in which the directory will not be cleaned:
42281 # after its creation but before its name has been assigned to `$tmp'.
42285 trap 'exit_status=$?
42286 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42288 trap '{ (exit 1); exit 1; }' 1 2 13 15
42290 # Create a (secure) tmp directory for tmp files.
42293 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42294 test -n "$tmp" && test -d "$tmp"
42297 tmp=./conf$$-$RANDOM
42298 (umask 077 && mkdir "$tmp")
42301 echo "$me: cannot create a temporary directory in ." >&2
42302 { (exit 1); exit 1; }
42306 # Set up the sed scripts for CONFIG_FILES section.
42309 # No need to generate the scripts if there are no CONFIG_FILES.
42310 # This happens for instance when ./config.status config.h
42311 if test -n "$CONFIG_FILES"; then
42315 # Create sed commands to just substitute file output variables.
42317 # Remaining file output variables are in a fragment that also has non-file
42323 for ac_last_try in false false false false false :; do
42324 cat >conf$$subs.sed <<_ACEOF
42325 SHELL!$SHELL$ac_delim
42326 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42327 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42328 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42329 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42330 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42331 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42332 exec_prefix!$exec_prefix$ac_delim
42333 prefix!$prefix$ac_delim
42334 program_transform_name!$program_transform_name$ac_delim
42335 bindir!$bindir$ac_delim
42336 sbindir!$sbindir$ac_delim
42337 libexecdir!$libexecdir$ac_delim
42338 datarootdir!$datarootdir$ac_delim
42339 datadir!$datadir$ac_delim
42340 sysconfdir!$sysconfdir$ac_delim
42341 sharedstatedir!$sharedstatedir$ac_delim
42342 localstatedir!$localstatedir$ac_delim
42343 includedir!$includedir$ac_delim
42344 oldincludedir!$oldincludedir$ac_delim
42345 docdir!$docdir$ac_delim
42346 infodir!$infodir$ac_delim
42347 htmldir!$htmldir$ac_delim
42348 dvidir!$dvidir$ac_delim
42349 pdfdir!$pdfdir$ac_delim
42350 psdir!$psdir$ac_delim
42351 libdir!$libdir$ac_delim
42352 localedir!$localedir$ac_delim
42353 mandir!$mandir$ac_delim
42354 DEFS!$DEFS$ac_delim
42355 ECHO_C!$ECHO_C$ac_delim
42356 ECHO_N!$ECHO_N$ac_delim
42357 ECHO_T!$ECHO_T$ac_delim
42358 LIBS!$LIBS$ac_delim
42359 build_alias!$build_alias$ac_delim
42360 host_alias!$host_alias$ac_delim
42361 target_alias!$target_alias$ac_delim
42362 BUILD_DIR!$BUILD_DIR$ac_delim
42363 TOP_DIR!$TOP_DIR$ac_delim
42364 TRUEPRG!$TRUEPRG$ac_delim
42365 FALSEPRG!$FALSEPRG$ac_delim
42366 VERSION!$VERSION$ac_delim
42367 DATE!$DATE$ac_delim
42368 LSMDATE!$LSMDATE$ac_delim
42369 BACULA!$BACULA$ac_delim
42370 post_host!$post_host$ac_delim
42372 CFLAGS!$CFLAGS$ac_delim
42373 LDFLAGS!$LDFLAGS$ac_delim
42374 CPPFLAGS!$CPPFLAGS$ac_delim
42375 ac_ct_CC!$ac_ct_CC$ac_delim
42376 EXEEXT!$EXEEXT$ac_delim
42377 OBJEXT!$OBJEXT$ac_delim
42379 CXXFLAGS!$CXXFLAGS$ac_delim
42380 ac_ct_CXX!$ac_ct_CXX$ac_delim
42382 GREP!$GREP$ac_delim
42383 EGREP!$EGREP$ac_delim
42384 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42385 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42386 INSTALL_DATA!$INSTALL_DATA$ac_delim
42388 REMOVE!$REMOVE$ac_delim
42391 ECHO!$ECHO$ac_delim
42395 OPENSSL!$OPENSSL$ac_delim
42398 MKISOFS!$MKISOFS$ac_delim
42399 PYTHON!$PYTHON$ac_delim
42400 GROWISOFS!$GROWISOFS$ac_delim
42401 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42402 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42403 PKGCONFIG!$PKGCONFIG$ac_delim
42404 QMAKE!$QMAKE$ac_delim
42405 QMAKEQT4!$QMAKEQT4$ac_delim
42406 WXCONFIG!$WXCONFIG$ac_delim
42407 WXFLAGS!$WXFLAGS$ac_delim
42408 CDRECORD!$CDRECORD$ac_delim
42409 PIDOF!$PIDOF$ac_delim
42411 ARFLAGS!$ARFLAGS$ac_delim
42412 MAKE_SHELL!$MAKE_SHELL$ac_delim
42413 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42414 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42415 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42416 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42417 LIBTOOL!$LIBTOOL$ac_delim
42418 build!$build$ac_delim
42421 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42423 elif $ac_last_try; then
42424 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42425 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42426 { (exit 1); exit 1; }; }
42428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42432 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42433 if test -n "$ac_eof"; then
42434 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42435 ac_eof=`expr $ac_eof + 1`
42438 cat >>$CONFIG_STATUS <<_ACEOF
42439 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42440 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42441 /^[ ]*@MCOMMON@[ ]*$/{
42447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42448 s/^/s,@/; s/!/@,|#_!!_#|/
42451 s/'"$ac_delim"'$/,g/; t
42453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42454 ' >>$CONFIG_STATUS <conf$$subs.sed
42455 rm -f conf$$subs.sed
42456 cat >>$CONFIG_STATUS <<_ACEOF
42462 for ac_last_try in false false false false false :; do
42463 cat >conf$$subs.sed <<_ACEOF
42464 build_cpu!$build_cpu$ac_delim
42465 build_vendor!$build_vendor$ac_delim
42466 build_os!$build_os$ac_delim
42467 host!$host$ac_delim
42468 host_cpu!$host_cpu$ac_delim
42469 host_vendor!$host_vendor$ac_delim
42470 host_os!$host_os$ac_delim
42471 FGREP!$FGREP$ac_delim
42473 DUMPBIN!$DUMPBIN$ac_delim
42474 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42476 LN_S!$LN_S$ac_delim
42477 OBJDUMP!$OBJDUMP$ac_delim
42478 STRIP!$STRIP$ac_delim
42479 RANLIB!$RANLIB$ac_delim
42480 lt_ECHO!$lt_ECHO$ac_delim
42481 DSYMUTIL!$DSYMUTIL$ac_delim
42482 NMEDIT!$NMEDIT$ac_delim
42483 LIPO!$LIPO$ac_delim
42484 OTOOL!$OTOOL$ac_delim
42485 OTOOL64!$OTOOL64$ac_delim
42486 CXXCPP!$CXXCPP$ac_delim
42487 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42488 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42489 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42490 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42491 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42492 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42493 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42494 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42495 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42496 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42497 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42498 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42499 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42500 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42501 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42502 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42503 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42504 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42505 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42506 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42507 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42508 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42509 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42510 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42511 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42512 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42513 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42514 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42515 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42516 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42517 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42518 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42519 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42520 SET_MAKE!$SET_MAKE$ac_delim
42521 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42522 USE_NLS!$USE_NLS$ac_delim
42523 MSGFMT!$MSGFMT$ac_delim
42524 GMSGFMT!$GMSGFMT$ac_delim
42525 XGETTEXT!$XGETTEXT$ac_delim
42526 MSGMERGE!$MSGMERGE$ac_delim
42527 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42528 LIBICONV!$LIBICONV$ac_delim
42529 LTLIBICONV!$LTLIBICONV$ac_delim
42530 INTLLIBS!$INTLLIBS$ac_delim
42531 LIBINTL!$LIBINTL$ac_delim
42532 LTLIBINTL!$LTLIBINTL$ac_delim
42533 POSUB!$POSUB$ac_delim
42534 GLIBC2!$GLIBC2$ac_delim
42535 ALLOCA!$ALLOCA$ac_delim
42536 GLIBC21!$GLIBC21$ac_delim
42537 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42538 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42539 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42540 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42541 INTLBISON!$INTLBISON$ac_delim
42542 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42543 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42544 CATOBJEXT!$CATOBJEXT$ac_delim
42545 DATADIRNAME!$DATADIRNAME$ac_delim
42546 INSTOBJEXT!$INSTOBJEXT$ac_delim
42547 GENCAT!$GENCAT$ac_delim
42548 INTLOBJS!$INTLOBJS$ac_delim
42549 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42550 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42551 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42552 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42553 GNOME_LIBS!$GNOME_LIBS$ac_delim
42554 GNOME_DIR!$GNOME_DIR$ac_delim
42555 BAT_DIR!$BAT_DIR$ac_delim
42556 QWT_INC!$QWT_INC$ac_delim
42557 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42558 QWT_LIB!$QWT_LIB$ac_delim
42560 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42563 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42565 elif $ac_last_try; then
42566 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42568 { (exit 1); exit 1; }; }
42570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42575 if test -n "$ac_eof"; then
42576 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42577 ac_eof=`expr $ac_eof + 1`
42580 cat >>$CONFIG_STATUS <<_ACEOF
42581 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42586 s/^/s,@/; s/!/@,|#_!!_#|/
42589 s/'"$ac_delim"'$/,g/; t
42591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42592 ' >>$CONFIG_STATUS <conf$$subs.sed
42593 rm -f conf$$subs.sed
42594 cat >>$CONFIG_STATUS <<_ACEOF
42600 for ac_last_try in false false false false false :; do
42601 cat >conf$$subs.sed <<_ACEOF
42602 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42603 WX_DIR!$WX_DIR$ac_delim
42604 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42605 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42606 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42607 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42608 STATIC_FD!$STATIC_FD$ac_delim
42609 STATIC_SD!$STATIC_SD$ac_delim
42610 STATIC_DIR!$STATIC_DIR$ac_delim
42611 STATIC_CONS!$STATIC_CONS$ac_delim
42612 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42613 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42614 ALL_DIRS!$ALL_DIRS$ac_delim
42615 DIRD_DIR!$DIRD_DIR$ac_delim
42616 DIR_TOOLS!$DIR_TOOLS$ac_delim
42617 STORED_DIR!$STORED_DIR$ac_delim
42618 CONS_INC!$CONS_INC$ac_delim
42619 CONS_OBJ!$CONS_OBJ$ac_delim
42620 CONS_SRC!$CONS_SRC$ac_delim
42621 CONS_LIBS!$CONS_LIBS$ac_delim
42622 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42623 READLINE_SRC!$READLINE_SRC$ac_delim
42624 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42625 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42626 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42627 OPENSSL_INC!$OPENSSL_INC$ac_delim
42628 working_dir!$working_dir$ac_delim
42629 archivedir!$archivedir$ac_delim
42630 scriptdir!$scriptdir$ac_delim
42631 plugindir!$plugindir$ac_delim
42632 dump_email!$dump_email$ac_delim
42633 job_email!$job_email$ac_delim
42634 smtp_host!$smtp_host$ac_delim
42635 piddir!$piddir$ac_delim
42636 subsysdir!$subsysdir$ac_delim
42637 baseport!$baseport$ac_delim
42638 dir_port!$dir_port$ac_delim
42639 fd_port!$fd_port$ac_delim
42640 sd_port!$sd_port$ac_delim
42641 dir_password!$dir_password$ac_delim
42642 fd_password!$fd_password$ac_delim
42643 sd_password!$sd_password$ac_delim
42644 mon_dir_password!$mon_dir_password$ac_delim
42645 mon_fd_password!$mon_fd_password$ac_delim
42646 mon_sd_password!$mon_sd_password$ac_delim
42647 db_name!$db_name$ac_delim
42648 db_user!$db_user$ac_delim
42649 db_password!$db_password$ac_delim
42650 db_port!$db_port$ac_delim
42651 dir_user!$dir_user$ac_delim
42652 dir_group!$dir_group$ac_delim
42653 sd_user!$sd_user$ac_delim
42654 sd_group!$sd_group$ac_delim
42655 fd_user!$fd_user$ac_delim
42656 fd_group!$fd_group$ac_delim
42657 SBINPERM!$SBINPERM$ac_delim
42658 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42659 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42660 SQL_BINDIR!$SQL_BINDIR$ac_delim
42661 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42662 uncomment_dbi!$uncomment_dbi$ac_delim
42663 DB_PROG!$DB_PROG$ac_delim
42664 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42665 cats!$cats$ac_delim
42666 DB_TYPE!$DB_TYPE$ac_delim
42667 GETCONF!$GETCONF$ac_delim
42668 XMKMF!$XMKMF$ac_delim
42669 X_CFLAGS!$X_CFLAGS$ac_delim
42670 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42671 X_LIBS!$X_LIBS$ac_delim
42672 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42673 LIBOBJS!$LIBOBJS$ac_delim
42674 FDLIBS!$FDLIBS$ac_delim
42675 DEBUG!$DEBUG$ac_delim
42676 DINCLUDE!$DINCLUDE$ac_delim
42677 DLIB!$DLIB$ac_delim
42678 DB_LIBS!$DB_LIBS$ac_delim
42679 WCFLAGS!$WCFLAGS$ac_delim
42680 WLDFLAGS!$WLDFLAGS$ac_delim
42681 WRAPLIBS!$WRAPLIBS$ac_delim
42682 OBJLIST!$OBJLIST$ac_delim
42683 hostname!$hostname$ac_delim
42684 TAPEDRIVE!$TAPEDRIVE$ac_delim
42685 PSCMD!$PSCMD$ac_delim
42686 WIN32!$WIN32$ac_delim
42687 MACOSX!$MACOSX$ac_delim
42688 DISTNAME!$DISTNAME$ac_delim
42689 DISTVER!$DISTVER$ac_delim
42690 LTLIBOBJS!$LTLIBOBJS$ac_delim
42693 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42695 elif $ac_last_try; then
42696 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42697 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42698 { (exit 1); exit 1; }; }
42700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42704 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42705 if test -n "$ac_eof"; then
42706 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42707 ac_eof=`expr $ac_eof + 1`
42710 cat >>$CONFIG_STATUS <<_ACEOF
42711 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42715 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42716 s/^/s,@/; s/!/@,|#_!!_#|/
42719 s/'"$ac_delim"'$/,g/; t
42721 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42722 ' >>$CONFIG_STATUS <conf$$subs.sed
42723 rm -f conf$$subs.sed
42724 cat >>$CONFIG_STATUS <<_ACEOF
42731 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42732 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42733 # trailing colons and then remove the whole line if VPATH becomes empty
42734 # (actually we leave an empty line to preserve line numbers).
42735 if test "x$srcdir" = x.; then
42736 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42737 s/:*\$(srcdir):*/:/
42738 s/:*\${srcdir}:*/:/
42740 s/^\([^=]*=[ ]*\):*/\1/
42746 cat >>$CONFIG_STATUS <<\_ACEOF
42747 fi # test -n "$CONFIG_FILES"
42750 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
42753 :[FHLC]) ac_mode=$ac_tag; continue;;
42755 case $ac_mode$ac_tag in
42757 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42758 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42759 { (exit 1); exit 1; }; };;
42760 :[FH]-) ac_tag=-:-;;
42761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42778 -) ac_f="$tmp/stdin";;
42779 *) # Look for the file first in the build tree, then in the source tree
42780 # (if the path is not absolute). The absolute path cannot be DOS-style,
42781 # because $ac_f cannot contain `:'.
42785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42787 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42788 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42789 { (exit 1); exit 1; }; };;
42791 ac_file_inputs="$ac_file_inputs $ac_f"
42794 # Let's still pretend it is `configure' which instantiates (i.e., don't
42795 # use $as_me), people would be surprised to read:
42796 # /* config.h. Generated by config.status. */
42797 configure_input="Generated from "`IFS=:
42798 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42799 if test x"$ac_file" != x-; then
42800 configure_input="$ac_file. $configure_input"
42801 { echo "$as_me:$LINENO: creating $ac_file" >&5
42802 echo "$as_me: creating $ac_file" >&6;}
42806 *:-:* | *:-) cat >"$tmp/stdin";;
42811 ac_dir=`$as_dirname -- "$ac_file" ||
42812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42813 X"$ac_file" : 'X\(//\)[^/]' \| \
42814 X"$ac_file" : 'X\(//\)$' \| \
42815 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42821 /^X\(\/\/\)[^/].*/{
42836 -*) as_dir=./$as_dir;;
42838 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42842 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42843 *) as_qdir=$as_dir;;
42845 as_dirs="'$as_qdir' $as_dirs"
42846 as_dir=`$as_dirname -- "$as_dir" ||
42847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42848 X"$as_dir" : 'X\(//\)[^/]' \| \
42849 X"$as_dir" : 'X\(//\)$' \| \
42850 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42856 /^X\(\/\/\)[^/].*/{
42869 test -d "$as_dir" && break
42871 test -z "$as_dirs" || eval "mkdir $as_dirs"
42872 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42873 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42874 { (exit 1); exit 1; }; }; }
42878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42881 # A ".." for each directory in $ac_dir_suffix.
42882 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42883 case $ac_top_builddir_sub in
42884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42888 ac_abs_top_builddir=$ac_pwd
42889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42890 # for backward compatibility:
42891 ac_top_builddir=$ac_top_build_prefix
42894 .) # We are building in place.
42896 ac_top_srcdir=$ac_top_builddir_sub
42897 ac_abs_top_srcdir=$ac_pwd ;;
42898 [\\/]* | ?:[\\/]* ) # Absolute name.
42899 ac_srcdir=$srcdir$ac_dir_suffix;
42900 ac_top_srcdir=$srcdir
42901 ac_abs_top_srcdir=$srcdir ;;
42902 *) # Relative name.
42903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42904 ac_top_srcdir=$ac_top_build_prefix$srcdir
42905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42922 cat >>$CONFIG_STATUS <<\_ACEOF
42923 # If the template does not know about datarootdir, expand it.
42924 # FIXME: This hack should be removed a few years after 2.60.
42925 ac_datarootdir_hack=; ac_datarootdir_seen=
42927 case `sed -n '/datarootdir/ {
42936 ' $ac_file_inputs` in
42937 *datarootdir*) ac_datarootdir_seen=yes;;
42938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42939 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42940 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42942 cat >>$CONFIG_STATUS <<_ACEOF
42943 ac_datarootdir_hack='
42944 s&@datadir@&$datadir&g
42945 s&@docdir@&$docdir&g
42946 s&@infodir@&$infodir&g
42947 s&@localedir@&$localedir&g
42948 s&@mandir@&$mandir&g
42949 s&\\\${datarootdir}&$datarootdir&g' ;;
42953 # Neutralize VPATH when `$srcdir' = `.'.
42954 # Shell code in configure.ac might set extrasub.
42955 # FIXME: do we really want to maintain this feature?
42956 cat >>$CONFIG_STATUS <<_ACEOF
42960 cat >>$CONFIG_STATUS <<\_ACEOF
42962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42963 s&@configure_input@&$configure_input&;t t
42964 s&@top_builddir@&$ac_top_builddir_sub&;t t
42965 s&@srcdir@&$ac_srcdir&;t t
42966 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42967 s&@top_srcdir@&$ac_top_srcdir&;t t
42968 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42969 s&@builddir@&$ac_builddir&;t t
42970 s&@abs_builddir@&$ac_abs_builddir&;t t
42971 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42972 s&@INSTALL@&$ac_INSTALL&;t t
42973 $ac_datarootdir_hack
42974 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
42976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42977 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
42978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
42979 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42980 which seems to be undefined. Please make sure it is defined." >&5
42981 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42982 which seems to be undefined. Please make sure it is defined." >&2;}
42986 -) cat "$tmp/out"; rm -f "$tmp/out";;
42987 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
42996 # Transform confdefs.h into a sed script `conftest.defines', that
42997 # substitutes the proper values into config.h.in to produce config.h.
42998 rm -f conftest.defines conftest.tail
42999 # First, append a space to every undef/define line, to ease matching.
43000 echo 's/$/ /' >conftest.defines
43001 # Then, protect against being on the right side of a sed subst, or in
43002 # an unquoted here document, in config.status. If some macros were
43003 # called several times there might be several #defines for the same
43004 # symbol, which is useless. But do not sort them, since the last
43005 # AC_DEFINE must be honored.
43006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43007 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43008 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43009 # PARAMS is the parameter list in the macro definition--in most cases, it's
43010 # just an empty string.
43011 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43012 ac_dB='\\)[ (].*,\\1define\\2'
43020 s/^[ ]*#[ ]*define[ ][ ]*//
43025 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43026 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43027 ' >>conftest.defines
43029 # Remove the space that was appended to ease matching.
43030 # Then replace #undef with comments. This is necessary, for
43031 # example, in the case of _POSIX_SOURCE, which is predefined and required
43032 # on some systems where configure will not decide to define it.
43033 # (The regexp can be short, since the line contains either #define or #undef.)
43035 s,^[ #]*u.*,/* & */,' >>conftest.defines
43037 # Break up conftest.defines:
43038 ac_max_sed_lines=50
43040 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43041 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43042 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43044 ac_in='$ac_file_inputs'
43045 ac_out='"$tmp/out1"'
43046 ac_nxt='"$tmp/out2"'
43050 # Write a here document:
43051 cat >>$CONFIG_STATUS <<_ACEOF
43052 # First, check the format of the line:
43053 cat >"\$tmp/defines.sed" <<\\CEOF
43054 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43055 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43059 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43061 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43062 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43063 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43064 grep . conftest.tail >/dev/null || break
43065 rm -f conftest.defines
43066 mv conftest.tail conftest.defines
43068 rm -f conftest.defines conftest.tail
43070 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43071 cat >>$CONFIG_STATUS <<\_ACEOF
43072 if test x"$ac_file" != x-; then
43073 echo "/* $configure_input */" >"$tmp/config.h"
43074 cat "$ac_result" >>"$tmp/config.h"
43075 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43076 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43077 echo "$as_me: $ac_file is unchanged" >&6;}
43080 mv "$tmp/config.h" $ac_file
43083 echo "/* $configure_input */"
43089 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43090 echo "$as_me: executing $ac_file commands" >&6;}
43095 case $ac_file$ac_mode in
43098 # See if we are running on zsh, and set the options which allow our
43099 # commands through without removal of \ escapes.
43100 if test -n "${ZSH_VERSION+set}" ; then
43101 setopt NO_GLOB_SUBST
43104 cfgfile="${ofile}T"
43105 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43108 cat <<_LT_EOF >> "$cfgfile"
43111 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43112 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43113 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43114 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43116 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43117 # 2006, 2007, 2008 Free Software Foundation, Inc.
43118 # Written by Gordon Matzigkeit, 1996
43120 # This file is part of GNU Libtool.
43122 # GNU Libtool is free software; you can redistribute it and/or
43123 # modify it under the terms of the GNU General Public License as
43124 # published by the Free Software Foundation; either version 2 of
43125 # the License, or (at your option) any later version.
43127 # As a special exception to the GNU General Public License,
43128 # if you distribute this file as part of a program or library that
43129 # is built using GNU Libtool, you may include this file under the
43130 # same distribution terms that you use for the rest of that program.
43132 # GNU Libtool is distributed in the hope that it will be useful,
43133 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43135 # GNU General Public License for more details.
43137 # You should have received a copy of the GNU General Public License
43138 # along with GNU Libtool; see the file COPYING. If not, a copy
43139 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43140 # obtained by writing to the Free Software Foundation, Inc.,
43141 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43144 # The names of the tagged configurations supported by this script.
43145 available_tags="CXX "
43147 # ### BEGIN LIBTOOL CONFIG
43149 # Which release of libtool.m4 was used?
43150 macro_version=$macro_version
43151 macro_revision=$macro_revision
43153 # Whether or not to build shared libraries.
43154 build_libtool_libs=$enable_shared
43156 # Whether or not to build static libraries.
43157 build_old_libs=$enable_static
43159 # What type of objects to build.
43162 # Whether or not to optimize for fast installation.
43163 fast_install=$enable_fast_install
43166 host_alias=$host_alias
43170 # The build system.
43171 build_alias=$build_alias
43175 # A sed program that does not truncate output.
43178 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43179 Xsed="\$SED -e 1s/^X//"
43181 # A grep program that handles long lines.
43187 # A literal string matcher.
43190 # A BSD- or MS-compatible name lister.
43193 # Whether we need soft or hard links.
43196 # What is the maximum length of a command?
43197 max_cmd_len=$max_cmd_len
43199 # Object file suffix (normally "o").
43202 # Executable file suffix (normally "").
43205 # whether the shell understands "unset".
43208 # turn spaces into newlines.
43211 # turn newlines into spaces.
43214 # How to create reloadable object files.
43215 reload_flag=$lt_reload_flag
43216 reload_cmds=$lt_reload_cmds
43218 # An object symbol dumper.
43219 OBJDUMP=$lt_OBJDUMP
43221 # Method to check whether dependent libraries are shared objects.
43222 deplibs_check_method=$lt_deplibs_check_method
43224 # Command to use when deplibs_check_method == "file_magic".
43225 file_magic_cmd=$lt_file_magic_cmd
43229 AR_FLAGS=$lt_AR_FLAGS
43231 # A symbol stripping program.
43234 # Commands used to install an old-style archive.
43236 old_postinstall_cmds=$lt_old_postinstall_cmds
43237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43242 # LTCC compiler flags.
43243 LTCFLAGS=$lt_CFLAGS
43245 # Take the output of nm and produce a listing of raw symbols and C names.
43246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43248 # Transform the output of nm in a proper C declaration.
43249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43251 # Transform the output of nm in a C name address pair.
43252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43254 # Transform the output of nm in a C name address pair when lib prefix is needed.
43255 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43257 # The name of the directory that contains temporary libtool files.
43260 # Shell to use when invoking shell scripts.
43263 # An echo program that does not interpret backslashes.
43266 # Used to examine libraries when file_magic_cmd begins with "file".
43267 MAGIC_CMD=$MAGIC_CMD
43269 # Must we lock files when doing compilation?
43270 need_locks=$lt_need_locks
43272 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43273 DSYMUTIL=$lt_DSYMUTIL
43275 # Tool to change global to local symbols on Mac OS X.
43278 # Tool to manipulate fat objects and archives on Mac OS X.
43281 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43284 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43285 OTOOL64=$lt_OTOOL64
43287 # Old archive suffix (normally "a").
43290 # Shared library suffix (normally ".so").
43291 shrext_cmds=$lt_shrext_cmds
43293 # The commands to extract the exported symbol list from a shared archive.
43294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43296 # Variables whose values should be saved in libtool wrapper scripts and
43297 # restored at link time.
43298 variables_saved_for_relink=$lt_variables_saved_for_relink
43300 # Do we need the "lib" prefix for modules?
43301 need_lib_prefix=$need_lib_prefix
43303 # Do we need a version for libraries?
43304 need_version=$need_version
43306 # Library versioning type.
43307 version_type=$version_type
43309 # Shared library runtime path variable.
43310 runpath_var=$runpath_var
43312 # Shared library path variable.
43313 shlibpath_var=$shlibpath_var
43315 # Is shlibpath searched before the hard-coded library search path?
43316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43318 # Format of library name prefix.
43319 libname_spec=$lt_libname_spec
43321 # List of archive names. First name is the real one, the rest are links.
43322 # The last name is the one that the linker finds with -lNAME
43323 library_names_spec=$lt_library_names_spec
43325 # The coded name of the library, if different from the real name.
43326 soname_spec=$lt_soname_spec
43328 # Command to use after installation of a shared archive.
43329 postinstall_cmds=$lt_postinstall_cmds
43331 # Command to use after uninstallation of a shared archive.
43332 postuninstall_cmds=$lt_postuninstall_cmds
43334 # Commands used to finish a libtool library installation in a directory.
43335 finish_cmds=$lt_finish_cmds
43337 # As "finish_cmds", except a single script fragment to be evaled but
43339 finish_eval=$lt_finish_eval
43341 # Whether we should hardcode library paths into libraries.
43342 hardcode_into_libs=$hardcode_into_libs
43344 # Compile-time system search path for libraries.
43345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43347 # Run-time system search path for libraries.
43348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43350 # Whether dlopen is supported.
43351 dlopen_support=$enable_dlopen
43353 # Whether dlopen of programs is supported.
43354 dlopen_self=$enable_dlopen_self
43356 # Whether dlopen of statically linked programs is supported.
43357 dlopen_self_static=$enable_dlopen_self_static
43359 # Commands to strip libraries.
43360 old_striplib=$lt_old_striplib
43361 striplib=$lt_striplib
43364 # The linker used to build libraries.
43367 # Commands used to build an old-style archive.
43368 old_archive_cmds=$lt_old_archive_cmds
43370 # A language specific compiler.
43373 # Is the compiler the GNU compiler?
43376 # Compiler flag to turn off builtin functions.
43377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43379 # How to pass a linker flag through the compiler.
43380 wl=$lt_lt_prog_compiler_wl
43382 # Additional compiler flags for building library objects.
43383 pic_flag=$lt_lt_prog_compiler_pic
43385 # Compiler flag to prevent dynamic linking.
43386 link_static_flag=$lt_lt_prog_compiler_static
43388 # Does compiler simultaneously support -c and -o options?
43389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43391 # Whether or not to add -lc for building shared libraries.
43392 build_libtool_need_lc=$archive_cmds_need_lc
43394 # Whether or not to disallow shared libs when runtime libs are static.
43395 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43397 # Compiler flag to allow reflexive dlopens.
43398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43400 # Compiler flag to generate shared objects directly from archives.
43401 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43403 # Whether the compiler copes with passing no objects directly.
43404 compiler_needs_object=$lt_compiler_needs_object
43406 # Create an old-style archive from a shared archive.
43407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43409 # Create a temporary old-style archive to link instead of a shared archive.
43410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43412 # Commands used to build a shared archive.
43413 archive_cmds=$lt_archive_cmds
43414 archive_expsym_cmds=$lt_archive_expsym_cmds
43416 # Commands used to build a loadable module if different from building
43417 # a shared archive.
43418 module_cmds=$lt_module_cmds
43419 module_expsym_cmds=$lt_module_expsym_cmds
43421 # Whether we are building with GNU ld or not.
43422 with_gnu_ld=$lt_with_gnu_ld
43424 # Flag that allows shared libraries with undefined symbols to be built.
43425 allow_undefined_flag=$lt_allow_undefined_flag
43427 # Flag that enforces no undefined symbols.
43428 no_undefined_flag=$lt_no_undefined_flag
43430 # Flag to hardcode \$libdir into a binary during linking.
43431 # This must work even if \$libdir does not exist
43432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43434 # If ld is used when linking, flag to hardcode \$libdir into a binary
43435 # during linking. This must work even if \$libdir does not exist.
43436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43438 # Whether we need a single "-rpath" flag with a separated argument.
43439 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43441 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43442 # DIR into the resulting binary.
43443 hardcode_direct=$hardcode_direct
43445 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43446 # DIR into the resulting binary and the resulting library dependency is
43447 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43448 # library is relocated.
43449 hardcode_direct_absolute=$hardcode_direct_absolute
43451 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43452 # into the resulting binary.
43453 hardcode_minus_L=$hardcode_minus_L
43455 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43456 # into the resulting binary.
43457 hardcode_shlibpath_var=$hardcode_shlibpath_var
43459 # Set to "yes" if building a shared library automatically hardcodes DIR
43460 # into the library and all subsequent libraries and executables linked
43462 hardcode_automatic=$hardcode_automatic
43464 # Set to yes if linker adds runtime paths of dependent libraries
43465 # to runtime path list.
43466 inherit_rpath=$inherit_rpath
43468 # Whether libtool must link a program against all its dependency libraries.
43469 link_all_deplibs=$link_all_deplibs
43471 # Fix the shell variable \$srcfile for the compiler.
43472 fix_srcfile_path=$lt_fix_srcfile_path
43474 # Set to "yes" if exported symbols are required.
43475 always_export_symbols=$always_export_symbols
43477 # The commands to list exported symbols.
43478 export_symbols_cmds=$lt_export_symbols_cmds
43480 # Symbols that should not be listed in the preloaded symbols.
43481 exclude_expsyms=$lt_exclude_expsyms
43483 # Symbols that must always be exported.
43484 include_expsyms=$lt_include_expsyms
43486 # Commands necessary for linking programs (against libraries) with templates.
43487 prelink_cmds=$lt_prelink_cmds
43489 # Specify filename containing input files.
43490 file_list_spec=$lt_file_list_spec
43492 # How to hardcode a shared library path into an executable.
43493 hardcode_action=$hardcode_action
43495 # The directories searched by this compiler when creating a shared library.
43496 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43498 # Dependencies to place before and after the objects being linked to
43499 # create a shared library.
43500 predep_objects=$lt_predep_objects
43501 postdep_objects=$lt_postdep_objects
43502 predeps=$lt_predeps
43503 postdeps=$lt_postdeps
43505 # The library search path used internally by the compiler when linking
43506 # a shared library.
43507 compiler_lib_search_path=$lt_compiler_lib_search_path
43509 # ### END LIBTOOL CONFIG
43515 cat <<\_LT_EOF >> "$cfgfile"
43516 # AIX sometimes has problems with the GCC collect2 program. For some
43517 # reason, if we set the COLLECT_NAMES environment variable, the problems
43518 # vanish in a puff of smoke.
43519 if test "X${COLLECT_NAMES+set}" != Xset; then
43521 export COLLECT_NAMES
43528 ltmain="$ac_aux_dir/ltmain.sh"
43531 # We use sed instead of cat because bash on DJGPP gets confused if
43532 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43533 # text mode, it properly converts lines to CR/LF. This bash problem
43534 # is reportedly fixed, but why not run on old versions too?
43535 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43536 || (rm -f "$cfgfile"; exit 1)
43540 cat << \_LT_EOF >> "$cfgfile"
43542 # func_dirname file append nondir_replacement
43543 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43544 # otherwise set result to NONDIR_REPLACEMENT.
43548 */*) func_dirname_result="${1%/*}${2}" ;;
43549 * ) func_dirname_result="${3}" ;;
43553 # func_basename file
43556 func_basename_result="${1##*/}"
43559 # func_dirname_and_basename file append nondir_replacement
43560 # perform func_basename and func_dirname in a single function
43562 # dirname: Compute the dirname of FILE. If nonempty,
43563 # add APPEND to the result, otherwise set result
43564 # to NONDIR_REPLACEMENT.
43565 # value returned in "$func_dirname_result"
43566 # basename: Compute filename of FILE.
43567 # value retuned in "$func_basename_result"
43568 # Implementation must be kept synchronized with func_dirname
43569 # and func_basename. For efficiency, we do not delegate to
43570 # those functions but instead duplicate the functionality here.
43571 func_dirname_and_basename ()
43574 */*) func_dirname_result="${1%/*}${2}" ;;
43575 * ) func_dirname_result="${3}" ;;
43577 func_basename_result="${1##*/}"
43580 # func_stripname prefix suffix name
43581 # strip PREFIX and SUFFIX off of NAME.
43582 # PREFIX and SUFFIX must not contain globbing or regex special
43583 # characters, hashes, percent signs, but SUFFIX may contain a leading
43584 # dot (in which case that matches only a dot).
43587 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43588 # positional parameters, so assign one to ordinary parameter first.
43589 func_stripname_result=${3}
43590 func_stripname_result=${func_stripname_result#"${1}"}
43591 func_stripname_result=${func_stripname_result%"${2}"}
43597 func_opt_split_opt=${1%%=*}
43598 func_opt_split_arg=${1#*=}
43605 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43606 *) func_lo2o_result=${1} ;;
43610 # func_xform libobj-or-source
43613 func_xform_result=${1%.*}.lo
43616 # func_arith arithmetic-term...
43619 func_arith_result=$(( $* ))
43623 # STRING may not start with a hyphen.
43626 func_len_result=${#1}
43631 *) # Bourne compatible functions.
43632 cat << \_LT_EOF >> "$cfgfile"
43634 # func_dirname file append nondir_replacement
43635 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43636 # otherwise set result to NONDIR_REPLACEMENT.
43639 # Extract subdirectory from the argument.
43640 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43641 if test "X$func_dirname_result" = "X${1}"; then
43642 func_dirname_result="${3}"
43644 func_dirname_result="$func_dirname_result${2}"
43648 # func_basename file
43651 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43655 # func_stripname prefix suffix name
43656 # strip PREFIX and SUFFIX off of NAME.
43657 # PREFIX and SUFFIX must not contain globbing or regex special
43658 # characters, hashes, percent signs, but SUFFIX may contain a leading
43659 # dot (in which case that matches only a dot).
43660 # func_strip_suffix prefix name
43664 .*) func_stripname_result=`$ECHO "X${3}" \
43665 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43666 *) func_stripname_result=`$ECHO "X${3}" \
43667 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43672 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43673 my_sed_long_arg='1s/^-[^=]*=//'
43678 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43679 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43685 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43688 # func_xform libobj-or-source
43691 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43694 # func_arith arithmetic-term...
43697 func_arith_result=`expr "$@"`
43701 # STRING may not start with a hyphen.
43704 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43710 case $lt_shell_append in
43712 cat << \_LT_EOF >> "$cfgfile"
43714 # func_append var value
43715 # Append VALUE to the end of shell variable VAR.
43723 cat << \_LT_EOF >> "$cfgfile"
43725 # func_append var value
43726 # Append VALUE to the end of shell variable VAR.
43737 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43738 || (rm -f "$cfgfile"; exit 1)
43740 mv -f "$cfgfile" "$ofile" ||
43741 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43745 cat <<_LT_EOF >> "$ofile"
43747 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43749 # The linker used to build libraries.
43752 # Commands used to build an old-style archive.
43753 old_archive_cmds=$lt_old_archive_cmds_CXX
43755 # A language specific compiler.
43756 CC=$lt_compiler_CXX
43758 # Is the compiler the GNU compiler?
43761 # Compiler flag to turn off builtin functions.
43762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43764 # How to pass a linker flag through the compiler.
43765 wl=$lt_lt_prog_compiler_wl_CXX
43767 # Additional compiler flags for building library objects.
43768 pic_flag=$lt_lt_prog_compiler_pic_CXX
43770 # Compiler flag to prevent dynamic linking.
43771 link_static_flag=$lt_lt_prog_compiler_static_CXX
43773 # Does compiler simultaneously support -c and -o options?
43774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43776 # Whether or not to add -lc for building shared libraries.
43777 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43779 # Whether or not to disallow shared libs when runtime libs are static.
43780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43782 # Compiler flag to allow reflexive dlopens.
43783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43785 # Compiler flag to generate shared objects directly from archives.
43786 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43788 # Whether the compiler copes with passing no objects directly.
43789 compiler_needs_object=$lt_compiler_needs_object_CXX
43791 # Create an old-style archive from a shared archive.
43792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43794 # Create a temporary old-style archive to link instead of a shared archive.
43795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43797 # Commands used to build a shared archive.
43798 archive_cmds=$lt_archive_cmds_CXX
43799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43801 # Commands used to build a loadable module if different from building
43802 # a shared archive.
43803 module_cmds=$lt_module_cmds_CXX
43804 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43806 # Whether we are building with GNU ld or not.
43807 with_gnu_ld=$lt_with_gnu_ld_CXX
43809 # Flag that allows shared libraries with undefined symbols to be built.
43810 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43812 # Flag that enforces no undefined symbols.
43813 no_undefined_flag=$lt_no_undefined_flag_CXX
43815 # Flag to hardcode \$libdir into a binary during linking.
43816 # This must work even if \$libdir does not exist
43817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43819 # If ld is used when linking, flag to hardcode \$libdir into a binary
43820 # during linking. This must work even if \$libdir does not exist.
43821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43823 # Whether we need a single "-rpath" flag with a separated argument.
43824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43827 # DIR into the resulting binary.
43828 hardcode_direct=$hardcode_direct_CXX
43830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43831 # DIR into the resulting binary and the resulting library dependency is
43832 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43833 # library is relocated.
43834 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43837 # into the resulting binary.
43838 hardcode_minus_L=$hardcode_minus_L_CXX
43840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43841 # into the resulting binary.
43842 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43844 # Set to "yes" if building a shared library automatically hardcodes DIR
43845 # into the library and all subsequent libraries and executables linked
43847 hardcode_automatic=$hardcode_automatic_CXX
43849 # Set to yes if linker adds runtime paths of dependent libraries
43850 # to runtime path list.
43851 inherit_rpath=$inherit_rpath_CXX
43853 # Whether libtool must link a program against all its dependency libraries.
43854 link_all_deplibs=$link_all_deplibs_CXX
43856 # Fix the shell variable \$srcfile for the compiler.
43857 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43859 # Set to "yes" if exported symbols are required.
43860 always_export_symbols=$always_export_symbols_CXX
43862 # The commands to list exported symbols.
43863 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43865 # Symbols that should not be listed in the preloaded symbols.
43866 exclude_expsyms=$lt_exclude_expsyms_CXX
43868 # Symbols that must always be exported.
43869 include_expsyms=$lt_include_expsyms_CXX
43871 # Commands necessary for linking programs (against libraries) with templates.
43872 prelink_cmds=$lt_prelink_cmds_CXX
43874 # Specify filename containing input files.
43875 file_list_spec=$lt_file_list_spec_CXX
43877 # How to hardcode a shared library path into an executable.
43878 hardcode_action=$hardcode_action_CXX
43880 # The directories searched by this compiler when creating a shared library.
43881 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43883 # Dependencies to place before and after the objects being linked to
43884 # create a shared library.
43885 predep_objects=$lt_predep_objects_CXX
43886 postdep_objects=$lt_postdep_objects_CXX
43887 predeps=$lt_predeps_CXX
43888 postdeps=$lt_postdeps_CXX
43890 # The library search path used internally by the compiler when linking
43891 # a shared library.
43892 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43894 # ### END LIBTOOL TAG CONFIG: CXX
43899 for ac_file in $CONFIG_FILES; do
43900 # Support "outfile[:infile[:infile...]]"
43902 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
43904 # PO directories have a Makefile.in generated from Makefile.in.in.
43905 case "$ac_file" in */Makefile.in)
43906 # Adjust a relative srcdir.
43907 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
43908 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
43909 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
43910 # In autoconf-2.13 it is called $ac_given_srcdir.
43911 # In autoconf-2.50 it is called $srcdir.
43912 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
43913 case "$ac_given_srcdir" in
43914 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
43915 /*) top_srcdir="$ac_given_srcdir" ;;
43916 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
43918 # Treat a directory as a PO directory if and only if it has a
43919 # POTFILES.in file. This allows packages to have multiple PO
43920 # directories under different names or in different locations.
43921 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
43922 rm -f "$ac_dir/POTFILES"
43923 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
43924 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
43925 POMAKEFILEDEPS="POTFILES.in"
43926 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
43927 # on $ac_dir but don't depend on user-specified configuration
43929 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
43930 # The LINGUAS file contains the set of available languages.
43931 if test -n "$OBSOLETE_ALL_LINGUAS"; then
43932 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
43934 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
43935 # Hide the ALL_LINGUAS assigment from automake.
43936 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
43937 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
43939 # The set of available languages was given in configure.in.
43940 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
43943 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
43944 # Compute UPDATEPOFILES
43945 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
43946 # Compute DUMMYPOFILES
43947 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
43949 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
43950 case "$ac_given_srcdir" in
43952 *) srcdirpre='$(srcdir)/' ;;
43958 for lang in $ALL_LINGUAS; do
43959 POFILES="$POFILES $srcdirpre$lang.po"
43960 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
43961 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
43962 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
43964 # CATALOGS depends on both $ac_dir and the user's LINGUAS
43965 # environment variable.
43967 if test -n "$ALL_LINGUAS"; then
43968 for presentlang in $ALL_LINGUAS; do
43970 if test "%UNSET%" != "$LINGUAS"; then
43971 desiredlanguages="$LINGUAS"
43973 desiredlanguages="$ALL_LINGUAS"
43975 for desiredlang in $desiredlanguages; do
43976 # Use the presentlang catalog if desiredlang is
43977 # a. equal to presentlang, or
43978 # b. a variant of presentlang (because in this case,
43979 # presentlang can be used as a fallback for messages
43980 # which are not translated in the desiredlang catalog).
43981 case "$desiredlang" in
43982 "$presentlang"*) useit=yes;;
43985 if test $useit = yes; then
43986 INST_LINGUAS="$INST_LINGUAS $presentlang"
43991 if test -n "$INST_LINGUAS"; then
43992 for lang in $INST_LINGUAS; do
43993 CATALOGS="$CATALOGS $lang.gmo"
43996 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
43997 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"
43998 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
43999 if test -f "$f"; then
44001 *.orig | *.bak | *~) ;;
44002 *) cat "$f" >> "$ac_dir/Makefile" ;;
44017 { (exit 0); exit 0; }
44019 chmod +x $CONFIG_STATUS
44020 ac_clean_files=$ac_clean_files_save
44023 # configure is writing to config.log, and then calls config.status.
44024 # config.status does its own redirection, appending to config.log.
44025 # Unfortunately, on DOS this fails, as config.log is still kept open
44026 # by configure, so config.status won't be able to write to it; its
44027 # output is simply discarded. So we exec the FD to /dev/null,
44028 # effectively closing config.log, so it can be properly (re)opened and
44029 # appended to by config.status. When coming back to configure, we
44030 # need to make the FD available again.
44031 if test "$no_create" != yes; then
44033 ac_config_status_args=
44034 test "$silent" = yes &&
44035 ac_config_status_args="$ac_config_status_args --quiet"
44037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44040 # would make configure fail if this is the last instruction.
44041 $ac_cs_success || { (exit 1); exit 1; }
44045 if test "${support_bat}" = "yes" ; then
44046 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44047 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44053 if test "x$QMAKEQT4" != "xnone"; then
44058 chmod 755 install_conf_file build-depkgs-qt-console
44059 echo "Creating bat Makefile"
44065 if test X"$GCC" = "Xyes" ; then
44066 echo "Doing make of dependencies"
44067 ${MAKE:-make} depend
44071 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44072 chmod 755 dvd-handler dvd-simulator
44073 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44077 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44078 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44082 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44083 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44085 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44086 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44088 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44089 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44091 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44092 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44094 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44095 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44097 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44098 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44100 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44101 chmod 755 $c/sqlite
44104 chmod 755 src/win32/build-depkgs-mingw32
44106 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44107 largefile_support="yes"
44110 if test X"$GCC" = "Xyes" ; then
44111 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44112 if test "x${CCVERSION}" = "x" ; then
44113 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44115 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44116 if test x"${CXXVERSION}" = x ; then
44117 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44121 if test "x${db_type}" = "xInternal" ; then
44124 echo "You have not specified either --enable-client-only or one of the"
44125 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44126 echo " This is not permitted. Please reconfigure."
44128 echo "Aborting the configuration ..."
44135 Configuration on `date`:
44137 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44138 Bacula version: ${BACULA} ${VERSION} (${DATE})
44139 Source code location: ${srcdir}
44140 Install binaries: ${sbindir}
44141 Install libraries: ${libdir}
44142 Install config files: ${sysconfdir}
44143 Scripts directory: ${scriptdir}
44144 Archive directory: ${archivedir}
44145 Working directory: ${working_dir}
44146 PID directory: ${piddir}
44147 Subsys directory: ${subsysdir}
44148 Man directory: ${mandir}
44149 Data directory: ${datarootdir}
44150 C Compiler: ${CC} ${CCVERSION}
44151 C++ Compiler: ${CXX} ${CXXVERSION}
44152 Compiler flags: ${WCFLAGS} ${CFLAGS}
44153 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44155 Statically Linked Tools: ${support_static_tools}
44156 Statically Linked FD: ${support_static_fd}
44157 Statically Linked SD: ${support_static_sd}
44158 Statically Linked DIR: ${support_static_dir}
44159 Statically Linked CONS: ${support_static_cons}
44160 Database type: ${db_type}
44161 Database port: ${db_port}
44162 Database lib: ${DB_LIBS}
44163 Database name: ${db_name}
44164 Database user: ${db_user}
44166 Job Output Email: ${job_email}
44167 Traceback Email: ${dump_email}
44168 SMTP Host Address: ${smtp_host}
44170 Director Port: ${dir_port}
44171 File daemon Port: ${fd_port}
44172 Storage daemon Port: ${sd_port}
44174 Director User: ${dir_user}
44175 Director Group: ${dir_group}
44176 Storage Daemon User: ${sd_user}
44177 Storage DaemonGroup: ${sd_group}
44178 File Daemon User: ${fd_user}
44179 File Daemon Group: ${fd_group}
44181 SQL binaries Directory ${SQL_BINDIR}
44183 Large file support: $largefile_support
44184 Bacula conio support: ${got_conio} ${CONS_LIBS}
44185 readline support: ${got_readline} ${PRTREADLINE_SRC}
44186 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44187 TLS support: ${support_tls}
44188 Encryption support: ${support_crypto}
44189 ZLIB support: ${have_zlib}
44190 enable-smartalloc: ${support_smartalloc}
44191 bat support: ${support_bat} ${QWT_LDFLAGS}
44192 enable-gnome: ${support_gnome} ${gnome_version}
44193 enable-bwx-console: ${support_wx_console} ${wx_version}
44194 enable-tray-monitor: ${support_tray_monitor}
44195 client-only: ${build_client_only}
44196 build-dird: ${build_dird}
44197 build-stored: ${build_stored}
44198 ACL support: ${have_acl}
44199 Python support: ${support_python} ${PYTHON_LIBS}
44200 Batch insert enabled: ${support_batch_insert}