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
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
894 INCLUDE_INSTALL_TARGET
895 INCLUDE_UNINSTALL_TARGET
907 HAVE_FREEBSD_OS_FALSE
911 HAVE_OPENBSD_OS_FALSE
942 BUILD_INCLUDED_LIBINTL
949 INTL_LIBTOOL_SUFFIX_PREFIX
958 TRAY_MONITOR_CPPFLAGS
1049 ac_subst_files='MCOMMON'
1050 ac_precious_vars='build_alias
1068 # Initialize some variables set by options.
1070 ac_init_version=false
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1080 program_transform_name=s,x,x,
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE}'
1105 infodir='${datarootdir}/info'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
1120 eval $ac_prev=\$ac_option
1126 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1130 # Accept the important Cygnus configure options, so we can diagnose typos.
1132 case $ac_dashdash$ac_option in
1136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1139 bindir=$ac_optarg ;;
1141 -build | --build | --buil | --bui | --bu)
1142 ac_prev=build_alias ;;
1143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1144 build_alias=$ac_optarg ;;
1146 -cache-file | --cache-file | --cache-fil | --cache-fi \
1147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1148 ac_prev=cache_file ;;
1149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1151 cache_file=$ac_optarg ;;
1153 --config-cache | -C)
1154 cache_file=config.cache ;;
1156 -datadir | --datadir | --datadi | --datad)
1158 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1159 datadir=$ac_optarg ;;
1161 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1162 | --dataroo | --dataro | --datar)
1163 ac_prev=datarootdir ;;
1164 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1165 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1166 datarootdir=$ac_optarg ;;
1168 -disable-* | --disable-*)
1169 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173 { (exit 1); exit 1; }; }
1174 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175 eval enable_$ac_feature=no ;;
1177 -docdir | --docdir | --docdi | --doc | --do)
1179 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1180 docdir=$ac_optarg ;;
1182 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1184 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1185 dvidir=$ac_optarg ;;
1187 -enable-* | --enable-*)
1188 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1194 eval enable_$ac_feature=\$ac_optarg ;;
1196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198 | --exec | --exe | --ex)
1199 ac_prev=exec_prefix ;;
1200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202 | --exec=* | --exe=* | --ex=*)
1203 exec_prefix=$ac_optarg ;;
1205 -gas | --gas | --ga | --g)
1206 # Obsolete; use --with-gas.
1209 -help | --help | --hel | --he | -h)
1210 ac_init_help=long ;;
1211 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212 ac_init_help=recursive ;;
1213 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214 ac_init_help=short ;;
1216 -host | --host | --hos | --ho)
1217 ac_prev=host_alias ;;
1218 -host=* | --host=* | --hos=* | --ho=*)
1219 host_alias=$ac_optarg ;;
1221 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1223 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1225 htmldir=$ac_optarg ;;
1227 -includedir | --includedir | --includedi | --included | --include \
1228 | --includ | --inclu | --incl | --inc)
1229 ac_prev=includedir ;;
1230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231 | --includ=* | --inclu=* | --incl=* | --inc=*)
1232 includedir=$ac_optarg ;;
1234 -infodir | --infodir | --infodi | --infod | --info | --inf)
1236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237 infodir=$ac_optarg ;;
1239 -libdir | --libdir | --libdi | --libd)
1241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242 libdir=$ac_optarg ;;
1244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245 | --libexe | --libex | --libe)
1246 ac_prev=libexecdir ;;
1247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248 | --libexe=* | --libex=* | --libe=*)
1249 libexecdir=$ac_optarg ;;
1251 -localedir | --localedir | --localedi | --localed | --locale)
1252 ac_prev=localedir ;;
1253 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254 localedir=$ac_optarg ;;
1256 -localstatedir | --localstatedir | --localstatedi | --localstated \
1257 | --localstate | --localstat | --localsta | --localst | --locals)
1258 ac_prev=localstatedir ;;
1259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261 localstatedir=$ac_optarg ;;
1263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266 mandir=$ac_optarg ;;
1268 -nfp | --nfp | --nf)
1269 # Obsolete; use --without-fp.
1272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273 | --no-cr | --no-c | -n)
1276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282 | --oldin | --oldi | --old | --ol | --o)
1283 ac_prev=oldincludedir ;;
1284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287 oldincludedir=$ac_optarg ;;
1289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292 prefix=$ac_optarg ;;
1294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295 | --program-pre | --program-pr | --program-p)
1296 ac_prev=program_prefix ;;
1297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299 program_prefix=$ac_optarg ;;
1301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302 | --program-suf | --program-su | --program-s)
1303 ac_prev=program_suffix ;;
1304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306 program_suffix=$ac_optarg ;;
1308 -program-transform-name | --program-transform-name \
1309 | --program-transform-nam | --program-transform-na \
1310 | --program-transform-n | --program-transform- \
1311 | --program-transform | --program-transfor \
1312 | --program-transfo | --program-transf \
1313 | --program-trans | --program-tran \
1314 | --progr-tra | --program-tr | --program-t)
1315 ac_prev=program_transform_name ;;
1316 -program-transform-name=* | --program-transform-name=* \
1317 | --program-transform-nam=* | --program-transform-na=* \
1318 | --program-transform-n=* | --program-transform-=* \
1319 | --program-transform=* | --program-transfor=* \
1320 | --program-transfo=* | --program-transf=* \
1321 | --program-trans=* | --program-tran=* \
1322 | --progr-tra=* | --program-tr=* | --program-t=*)
1323 program_transform_name=$ac_optarg ;;
1325 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1327 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328 pdfdir=$ac_optarg ;;
1330 -psdir | --psdir | --psdi | --psd | --ps)
1332 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336 | -silent | --silent | --silen | --sile | --sil)
1339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1343 sbindir=$ac_optarg ;;
1345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347 | --sharedst | --shareds | --shared | --share | --shar \
1349 ac_prev=sharedstatedir ;;
1350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1354 sharedstatedir=$ac_optarg ;;
1356 -site | --site | --sit)
1358 -site=* | --site=* | --sit=*)
1361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364 srcdir=$ac_optarg ;;
1366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367 | --syscon | --sysco | --sysc | --sys | --sy)
1368 ac_prev=sysconfdir ;;
1369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371 sysconfdir=$ac_optarg ;;
1373 -target | --target | --targe | --targ | --tar | --ta | --t)
1374 ac_prev=target_alias ;;
1375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376 target_alias=$ac_optarg ;;
1378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1381 -version | --version | --versio | --versi | --vers | -V)
1382 ac_init_version=: ;;
1385 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388 { echo "$as_me: error: invalid package name: $ac_package" >&2
1389 { (exit 1); exit 1; }; }
1390 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391 eval with_$ac_package=\$ac_optarg ;;
1393 -without-* | --without-*)
1394 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 { echo "$as_me: error: invalid package name: $ac_package" >&2
1398 { (exit 1); exit 1; }; }
1399 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1400 eval with_$ac_package=no ;;
1403 # Obsolete; use --with-x.
1406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407 | --x-incl | --x-inc | --x-in | --x-i)
1408 ac_prev=x_includes ;;
1409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411 x_includes=$ac_optarg ;;
1413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415 ac_prev=x_libraries ;;
1416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418 x_libraries=$ac_optarg ;;
1420 -*) { echo "$as_me: error: unrecognized option: $ac_option
1421 Try \`$0 --help' for more information." >&2
1422 { (exit 1); exit 1; }; }
1426 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427 # Reject names that are not valid shell variable names.
1428 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1429 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1430 { (exit 1); exit 1; }; }
1431 eval $ac_envvar=\$ac_optarg
1432 export $ac_envvar ;;
1435 # FIXME: should be removed in autoconf 3.0.
1436 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1445 if test -n "$ac_prev"; then
1446 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447 { echo "$as_me: error: missing argument to $ac_option" >&2
1448 { (exit 1); exit 1; }; }
1451 # Be sure to have absolute directory names.
1452 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453 datadir sysconfdir sharedstatedir localstatedir includedir \
1454 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455 libdir localedir mandir
1457 eval ac_val=\$$ac_var
1459 [\\/$]* | ?:[\\/]* ) continue;;
1460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1463 { (exit 1); exit 1; }; }
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1471 target=$target_alias
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1478 If a cross compiler is detected then cross compile mode will be used." >&2
1479 elif test "x$build_alias" != "x$host_alias"; then
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1487 test "$silent" = yes && exec 6>/dev/null
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493 { echo "$as_me: error: Working directory cannot be determined" >&2
1494 { (exit 1); exit 1; }; }
1495 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1496 { echo "$as_me: error: pwd does not report name of working directory" >&2
1497 { (exit 1); exit 1; }; }
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502 ac_srcdir_defaulted=yes
1503 # Try the directory containing this script, then the parent directory.
1504 ac_confdir=`$as_dirname -- "$0" ||
1505 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506 X"$0" : 'X\(//\)[^/]' \| \
1507 X"$0" : 'X\(//\)$' \| \
1508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1532 ac_srcdir_defaulted=no
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1537 { (exit 1); exit 1; }; }
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1541 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1542 { (exit 1); exit 1; }; }
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1554 for ac_var in $ac_precious_vars; do
1555 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556 eval ac_env_${ac_var}_value=\$${ac_var}
1557 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1562 # Report the --help message.
1564 if test "$ac_init_help" = "long"; then
1565 # Omit some internal or obsolete options to make the list less imposing.
1566 # This message is too long to be a string in the A/UX 3.1 sh.
1568 \`configure' configures this package to adapt to many kinds of systems.
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE. See below for descriptions of some of the useful variables.
1575 Defaults for the options are specified in brackets.
1578 -h, --help display this help and exit
1579 --help=short display options specific to this package
1580 --help=recursive display the short help of all the included packages
1581 -V, --version display version information and exit
1582 -q, --quiet, --silent do not print \`checking...' messages
1583 --cache-file=FILE cache test results in FILE [disabled]
1584 -C, --config-cache alias for \`--cache-file=config.cache'
1585 -n, --no-create do not create output files
1586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1588 Installation directories:
1589 --prefix=PREFIX install architecture-independent files in PREFIX
1590 [$ac_default_prefix]
1591 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1599 For better control, use the options below.
1601 Fine tuning of the installation directories:
1602 --bindir=DIR user executables [EPREFIX/bin]
1603 --sbindir=DIR system admin executables [EPREFIX/sbin]
1604 --libexecdir=DIR program executables [EPREFIX/libexec]
1605 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1606 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1607 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1608 --libdir=DIR object code libraries [EPREFIX/lib]
1609 --includedir=DIR C header files [PREFIX/include]
1610 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1611 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1612 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1613 --infodir=DIR info documentation [DATAROOTDIR/info]
1614 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1615 --mandir=DIR man documentation [DATAROOTDIR/man]
1616 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1617 --htmldir=DIR html documentation [DOCDIR]
1618 --dvidir=DIR dvi documentation [DOCDIR]
1619 --pdfdir=DIR pdf documentation [DOCDIR]
1620 --psdir=DIR ps documentation [DOCDIR]
1626 --x-includes=DIR X include files are in DIR
1627 --x-libraries=DIR X library files are in DIR
1630 --build=BUILD configure for building on BUILD [guessed]
1631 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1635 if test -n "$ac_init_help"; then
1640 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1641 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1642 --enable-libtool enable building using GNU libtool [default=yes]
1643 --enable-shared[=PKGS] build shared libraries [default=yes]
1644 --enable-static[=PKGS] build static libraries [default=no]
1645 --enable-fast-install[=PKGS]
1646 optimize for fast installation [default=yes]
1647 --disable-libtool-lock avoid locking (might break parallel builds)
1648 --enable-includes enable installing of include files [default=no]
1649 --disable-nls do not use Native Language Support
1650 --disable-rpath do not hardcode runtime library paths
1651 --enable-gnome enable build of bgnome-console GUI [default=no]
1652 --enable-bat enable build of bat Qt4 GUI [default=no]
1653 --enable-bwx-console enable build of wxWidgets console [default=no]
1654 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1656 --enable-smartalloc enable smartalloc debugging support [default=no]
1657 --enable-lockmgr enable lock manager support [default=no]
1658 --enable-static-tools enable static tape tools [default=no]
1659 --enable-static-fd enable static File daemon [default=no]
1660 --enable-static-sd enable static Storage daemon [default=no]
1661 --enable-static-dir enable static Director [default=no]
1662 --enable-static-cons enable static Console [default=no]
1663 --enable-client-only build client (File daemon) only [default=no]
1664 --enable-build-dird enable building of dird (Director) [default=yes]
1665 --enable-build-stored enable building of stored (Storage daemon)
1667 --disable-conio disable conio support [default=no]
1668 --enable-ipv6 enable ipv6 support [default=yes]
1669 --disable-readline disable readline support [default=yes]
1670 --enable-batch-insert enable the DB batch insert code [default=no]
1671 --disable-largefile omit support for large files
1672 --disable-acl disable acl support [default=auto]
1673 --disable-xattr disable xattr support [default=auto]
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-pic try to use only PIC/non-PIC objects [default=use
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-gnu-ld assume the C compiler uses GNU ld default=no
1682 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1683 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1684 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1685 --without-libintl-prefix don't search for libintl in includedir and libdir
1686 --with-included-gettext use the GNU gettext library included here
1687 --with-qwt[=DIR] specify qwt library directory
1688 --with-readline[=DIR] specify readline library directory
1689 --with-python[=DIR] Include Python support. DIR is the Python base
1690 install directory, default is to search through a
1691 number of common places for the Python files.
1692 --with-tcp-wrappers[=DIR]
1693 enable tcpwrappers support
1694 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1695 --with-working-dir=PATH specify path of Bacula working directory
1696 --with-archivedir=PATH specify path of SD archive directory
1697 --with-basename=RESNAME specify base resource name for daemons
1698 --with-hostname=RESNAME specify host name for daemons
1699 --with-scriptdir=PATH specify path of Bacula scripts directory
1700 --with-bsrdir=PATH specify path of Bacula bsrs directory
1701 --with-logdir=PATH specify path of Bacula logs directory
1702 --with-plugindir=PATH specify path of Bacula plugins directory
1703 --with-dump-email=EMAIL dump email address
1704 --with-job-email=EMAIL job output email address
1705 --with-smtp-host=HOST SMTP mail host address
1706 --with-pid-dir=PATH specify location of Bacula pid files
1707 --with-subsys-dir=PATH specify location of Bacula subsys file
1708 --with-baseport=PORT specify base port address for daemons
1709 --with-dir-password=PASSWORD
1710 specify Director's password
1711 --with-fd-password=PASSWORD
1712 specify Client's password
1713 --with-sd-password=PASSWORD
1714 specify Storage daemon's password
1715 --with-mon-dir-password=PASSWORD
1716 specify Director's password used by the monitor
1717 --with-mon-fd-password=PASSWORD
1718 specify Client's password used by the monitor
1719 --with-mon-sd-password=PASSWORD
1720 specify Storage daemon's password used by the
1722 --with-db-name=DBNAME specify database name [default=bacula]
1723 --with-db-user=UNAME specify database user [default=bacula]
1724 --with-db-password=PWD specify database password [default=*none*]
1725 --with-db-port=DBPORT specify a database port [default=null]
1726 --with-dir-user=USER specify user for Director daemon
1727 --with-dir-group=GROUP specify group for Director daemon
1728 --with-sd-user=USER specify user for Storage daemon
1729 --with-sd-group=GROUP specify group for Storage daemon
1730 --with-fd-user=USER specify user for File daemon
1731 --with-fd-group=GROUP specify group for File daemon
1732 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1733 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1734 base install directory, [default=/usr/local/pgsql]
1735 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1736 directory, default is to search through a number of
1737 common places for the MySQL files.
1738 --with-embedded-mysql[=DIR]
1739 Include MySQL support. DIR is the MySQL base install
1740 directory, default is to search through a number of
1741 common places for the MySQL files.
1742 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1743 install directory, default is to search through a
1744 number of common places for the SQLite3 files.
1745 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1746 directory, default is to search through a number of
1747 common places for the DBI files.
1748 --with-dbi-driver[=DRIVER]
1749 Suport for DBI driver. DRIVER is the one DBI driver
1750 like Mysql, Postgresql, others. Default is to not
1751 configure any driver.
1752 --with-x use the X Window System
1754 Some influential environment variables:
1755 CC C compiler command
1756 CFLAGS C compiler flags
1757 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1758 nonstandard directory <lib dir>
1759 LIBS libraries to pass to the linker, e.g. -l<library>
1760 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1761 you have headers in a nonstandard directory <include dir>
1762 CXX C++ compiler command
1763 CXXFLAGS C++ compiler flags
1765 WXCONFIG wx-config command. On some systems, you must set it to
1766 wx-config-2.6 to use wxWidgets 2.6.
1767 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1768 CXXCPP C++ preprocessor
1769 XMKMF Path to xmkmf, Makefile generator for X Window System
1771 Use these variables to override the choices made by `configure' or to help
1772 it to find libraries and programs with nonstandard names/locations.
1778 if test "$ac_init_help" = "recursive"; then
1779 # If there are subdirs, report their specific --help.
1780 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781 test -d "$ac_dir" || continue
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1801 .) # We are building in place.
1803 ac_top_srcdir=$ac_top_builddir_sub
1804 ac_abs_top_srcdir=$ac_pwd ;;
1805 [\\/]* | ?:[\\/]* ) # Absolute name.
1806 ac_srcdir=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir=$srcdir
1808 ac_abs_top_srcdir=$srcdir ;;
1810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1816 cd "$ac_dir" || { ac_status=$?; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1825 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1827 cd "$ac_pwd" || { ac_status=$?; break; }
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1835 generated by GNU Autoconf 2.61
1837 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1838 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1839 This configure script is free software; the Free Software Foundation
1840 gives unlimited permission to copy, distribute and modify it.
1844 cat >config.log <<_ACEOF
1845 This file contains any messages produced by compilers while
1846 running configure, to aid debugging if configure makes a mistake.
1848 It was created by $as_me, which was
1849 generated by GNU Autoconf 2.61. Invocation command line was
1861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1868 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1870 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1871 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1873 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1874 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1875 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1876 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 test -z "$as_dir" && as_dir=.
1885 echo "PATH: $as_dir"
1901 # Keep a trace of the command line.
1902 # Strip out --no-create and --no-recursion so they do not pile up.
1903 # Strip out --silent because we don't want to record it for future runs.
1904 # Also quote any args containing shell meta-characters.
1905 # Make two passes to allow for proper duplicate-argument suppression.
1909 ac_must_keep_next=false
1915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1917 | -silent | --silent | --silen | --sile | --sil)
1920 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1925 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1926 if test $ac_must_keep_next = true; then
1927 ac_must_keep_next=false # Got value, back to normal.
1930 *=* | --config-cache | -C | -disable-* | --disable-* \
1931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1933 | -with-* | --with-* | -without-* | --without-* | --x)
1934 case "$ac_configure_args0 " in
1935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938 -* ) ac_must_keep_next=true ;;
1941 ac_configure_args="$ac_configure_args '$ac_arg'"
1946 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1947 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1949 # When interrupted or exit'd, cleanup temporary files, and complete
1950 # config.log. We remove comments because anyway the quotes in there
1951 # would cause problems or look ugly.
1952 # WARNING: Use '\'' to represent an apostrophe within the trap.
1953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1954 trap 'exit_status=$?
1955 # Save into config.log some information that might help in debugging.
1960 ## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##
1965 # The following way of writing the cache mishandles newlines in values,
1967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1968 eval ac_val=\$$ac_var
1972 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1973 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1976 _ | IFS | as_nl) ;; #(
1977 *) $as_unset $ac_var ;;
1982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983 *${as_nl}ac_space=\ *)
1985 "s/'\''/'\''\\\\'\'''\''/g;
1986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1997 ## ----------------- ##
1998 ## Output variables. ##
1999 ## ----------------- ##
2002 for ac_var in $ac_subst_vars
2004 eval ac_val=\$$ac_var
2006 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2008 echo "$ac_var='\''$ac_val'\''"
2012 if test -n "$ac_subst_files"; then
2014 ## ------------------- ##
2015 ## File substitutions. ##
2016 ## ------------------- ##
2019 for ac_var in $ac_subst_files
2021 eval ac_val=\$$ac_var
2023 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 echo "$ac_var='\''$ac_val'\''"
2030 if test -s confdefs.h; then
2040 test "$ac_signal" != 0 &&
2041 echo "$as_me: caught signal $ac_signal"
2042 echo "$as_me: exit $exit_status"
2044 rm -f core *.core core.conftest.* &&
2045 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2048 for ac_signal in 1 2 13 15; do
2049 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2054 rm -f -r conftest* confdefs.h
2056 # Predefined preprocessor variables.
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_NAME "$PACKAGE_NAME"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2083 # Let the site file select an alternate cache file if it wants to.
2084 # Prefer explicitly selected file to automatically selected ones.
2085 if test -n "$CONFIG_SITE"; then
2086 set x "$CONFIG_SITE"
2087 elif test "x$prefix" != xNONE; then
2088 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2090 set x "$ac_default_prefix/share/config.site" \
2091 "$ac_default_prefix/etc/config.site"
2096 if test -r "$ac_site_file"; then
2097 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2098 echo "$as_me: loading site script $ac_site_file" >&6;}
2099 sed 's/^/| /' "$ac_site_file" >&5
2104 if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special
2106 # files actually), so we avoid doing that.
2107 if test -f "$cache_file"; then
2108 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2109 echo "$as_me: loading cache $cache_file" >&6;}
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2116 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2117 echo "$as_me: creating cache $cache_file" >&6;}
2121 # Check that the precious variables saved in the cache have kept the same
2123 ac_cache_corrupted=false
2124 for ac_var in $ac_precious_vars; do
2125 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126 eval ac_new_set=\$ac_env_${ac_var}_set
2127 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128 eval ac_new_val=\$ac_env_${ac_var}_value
2129 case $ac_old_set,$ac_new_set in
2131 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133 ac_cache_corrupted=: ;;
2135 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2136 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137 ac_cache_corrupted=: ;;
2140 if test "x$ac_old_val" != "x$ac_new_val"; then
2141 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2142 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2143 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2144 echo "$as_me: former value: $ac_old_val" >&2;}
2145 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2146 echo "$as_me: current value: $ac_new_val" >&2;}
2147 ac_cache_corrupted=:
2150 # Pass precious variables to config.status.
2151 if test "$ac_new_set" = set; then
2153 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 *) ac_arg=$ac_var=$ac_new_val ;;
2156 case " $ac_configure_args " in
2157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2158 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2162 if $ac_cache_corrupted; then
2163 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2164 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2165 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2166 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2167 { (exit 1); exit 1; }; }
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2201 if test -f "$ac_dir/install-sh"; then
2203 ac_install_sh="$ac_aux_dir/install-sh -c"
2205 elif test -f "$ac_dir/install.sh"; then
2207 ac_install_sh="$ac_aux_dir/install.sh -c"
2209 elif test -f "$ac_dir/shtool"; then
2211 ac_install_sh="$ac_aux_dir/shtool install -c"
2215 if test -z "$ac_aux_dir"; then
2216 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2217 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2218 { (exit 1); exit 1; }; }
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2230 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2233 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2234 WIN32MAINDIR=${BUILD_DIR}
2235 WIN32TOPDIR=${TOP_DIR}
2245 # Extract the first word of "$ac_prog", so it can be a program name with args.
2246 set dummy $ac_prog; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 TRUEPRG=$ac_cv_path_TRUEPRG
2276 if test -n "$TRUEPRG"; then
2277 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2278 echo "${ECHO_T}$TRUEPRG" >&6; }
2280 { echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6; }
2285 test -n "$TRUEPRG" && break
2287 test -n "$TRUEPRG" || TRUEPRG=":"
2289 for ac_prog in false
2291 # Extract the first word of "$ac_prog", so it can be a program name with args.
2292 set dummy $ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 FALSEPRG=$ac_cv_path_FALSEPRG
2322 if test -n "$FALSEPRG"; then
2323 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2324 echo "${ECHO_T}$FALSEPRG" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2331 test -n "$FALSEPRG" && break
2333 test -n "$FALSEPRG" || FALSEPRG=":"
2338 if test "x$BACULA" != x; then
2339 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2341 BACULA=${BACULA:-Bacula}
2342 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2344 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 echo "configuring for ${BACULA} $VERSION ($DATE)"
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 if test -n "$CC"; then
2383 { echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6; }
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2392 if test -z "$ac_cv_prog_CC"; then
2394 # Extract the first word of "gcc", so it can be a program name with args.
2395 set dummy gcc; ac_word=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 if test -n "$ac_ct_CC"; then
2402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_ac_ct_CC="gcc"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2422 if test -n "$ac_ct_CC"; then
2423 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2424 echo "${ECHO_T}$ac_ct_CC" >&6; }
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2430 if test "x$ac_ct_CC" = x; then
2433 case $cross_compiling:$ac_tool_warned in
2435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436 whose name does not start with the host triplet. If you think this
2437 configuration is useful to you, please write to autoconf@gnu.org." >&5
2438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet. If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2441 ac_tool_warned=yes ;;
2449 if test -z "$CC"; then
2450 if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}cc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$CC"; then
2459 ac_cv_prog_CC="$CC" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_CC="${ac_tool_prefix}cc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 if test -n "$CC"; then
2480 { echo "$as_me:$LINENO: result: $CC" >&5
2481 echo "${ECHO_T}$CC" >&6; }
2483 { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2490 if test -z "$CC"; then
2491 # Extract the first word of "cc", so it can be a program name with args.
2492 set dummy cc; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2510 ac_prog_rejected=yes
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 if test $ac_prog_rejected = yes; then
2522 # We found a bogon in the path, so make sure we never use it.
2523 set dummy $ac_cv_prog_CC
2525 if test $# != 0; then
2526 # We chose a different compiler from the bogus one.
2527 # However, it has the same basename, so the bogon will be chosen
2528 # first if we set CC to just the basename; use the full file name.
2530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2536 if test -n "$CC"; then
2537 { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2546 if test -z "$CC"; then
2547 if test -n "$ac_tool_prefix"; then
2548 for ac_prog in cl.exe
2550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test -n "$CC"; then
2579 { echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6; }
2582 { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2587 test -n "$CC" && break
2590 if test -z "$CC"; then
2592 for ac_prog in cl.exe
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 if test -n "$ac_ct_CC"; then
2602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_ac_ct_CC="$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2622 if test -n "$ac_ct_CC"; then
2623 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2624 echo "${ECHO_T}$ac_ct_CC" >&6; }
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 test -n "$ac_ct_CC" && break
2634 if test "x$ac_ct_CC" = x; then
2637 case $cross_compiling:$ac_tool_warned in
2639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet. If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&5
2642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet. If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645 ac_tool_warned=yes ;;
2654 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2660 # Provide some information about the compiler.
2661 echo "$as_me:$LINENO: checking for C compiler version" >&5
2662 ac_compiler=`set X $ac_compile; echo $2`
2663 { (ac_try="$ac_compiler --version >&5"
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669 (eval "$ac_compiler --version >&5") 2>&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }
2673 { (ac_try="$ac_compiler -v >&5"
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compiler -v >&5") 2>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2683 { (ac_try="$ac_compiler -V >&5"
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compiler -V >&5") 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2694 cat >conftest.$ac_ext <<_ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2709 ac_clean_files_save=$ac_clean_files
2710 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2711 # Try to create an executable without -o first, disregard a.out.
2712 # It will help us diagnose broken compilers, and finding out an intuition
2714 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2715 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2716 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2718 # List of possible output files, starting from the most likely.
2719 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2720 # only as a last resort. b.out is created by i960 compilers.
2721 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2723 # The IRIX 6 linker writes into existing files which may not be
2724 # executable, retaining their permissions. Remove them first so a
2725 # subsequent execution test works.
2727 for ac_file in $ac_files
2730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2731 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2736 if { (ac_try="$ac_link_default"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_link_default") 2>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; then
2746 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2748 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2749 # so that the user can short-circuit this test for compilers unknown to
2751 for ac_file in $ac_files ''
2753 test -f "$ac_file" || continue
2755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2758 # We found the default executable, but exeext='' is most
2762 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2764 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2766 # We set ac_cv_exeext here because the later test for it is not
2767 # safe: cross compilers may not add the suffix if given an `-o'
2768 # argument, so we may need to know it at that point already.
2769 # Even if this section looks crufty: it has the advantage of
2776 test "$ac_cv_exeext" = no && ac_cv_exeext=
2782 { echo "$as_me:$LINENO: result: $ac_file" >&5
2783 echo "${ECHO_T}$ac_file" >&6; }
2784 if test -z "$ac_file"; then
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&2;}
2792 { (exit 77); exit 77; }; }
2795 ac_exeext=$ac_cv_exeext
2797 # Check that the compiler produces executables we can run. If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2801 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804 if { ac_try='./$ac_file'
2805 { (case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_try") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2816 if test "$cross_compiling" = maybe; then
2819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2820 If you meant to cross compile, use \`--host'.
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&2;}
2825 { (exit 1); exit 1; }; }
2829 { echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6; }
2832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2833 ac_clean_files=$ac_clean_files_save
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839 echo "${ECHO_T}$cross_compiling" >&6; }
2841 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843 if { (ac_try="$ac_link"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_link") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; then
2853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe'), while it won't with
2857 for ac_file in conftest.exe conftest conftest.*; do
2858 test -f "$ac_file" || continue
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2874 rm -f conftest$ac_cv_exeext
2875 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2878 rm -f conftest.$ac_ext
2879 EXEEXT=$ac_cv_exeext
2881 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2883 if test "${ac_cv_objext+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 cat >conftest.$ac_ext <<_ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2901 rm -f conftest.o conftest.obj
2902 if { (ac_try="$ac_compile"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compile") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 for ac_file in conftest.o conftest.obj conftest.*; do
2913 test -f "$ac_file" || continue;
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2933 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934 echo "${ECHO_T}$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest.$ac_objext; then
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2989 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2990 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2991 GCC=`test $ac_compiler_gnu = yes && echo yes`
2992 ac_test_CFLAGS=${CFLAGS+set}
2993 ac_save_CFLAGS=$CFLAGS
2994 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2995 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_cc_g+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 ac_save_c_werror_flag=$ac_c_werror_flag
3000 ac_c_werror_flag=yes
3003 cat >conftest.$ac_ext <<_ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest.$ac_objext; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_c_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3078 ac_c_werror_flag=$ac_save_c_werror_flag
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3130 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3131 if test "$ac_test_CFLAGS" = set; then
3132 CFLAGS=$ac_save_CFLAGS
3133 elif test $ac_cv_prog_cc_g = yes; then
3134 if test "$GCC" = yes; then
3140 if test "$GCC" = yes; then
3146 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3147 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3148 if test "${ac_cv_prog_cc_c89+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 ac_cv_prog_cc_c89=no
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3161 #include <sys/types.h>
3162 #include <sys/stat.h>
3163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3164 struct buf { int x; };
3165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3166 static char *e (p, i)
3172 static char *f (char * (*g) (char **, int), char **p, ...)
3177 s = g (p, va_arg (v,int));
3182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3183 function prototypes and stuff, but not '\xHH' hex character constants.
3184 These don't provoke an error unfortunately, instead are silently treated
3185 as 'x'. The following induces an error, until -std is added to get
3186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3187 array size at least. It's necessary to write '\x00'==0 to get something
3188 that's true only with -std. */
3189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3192 inside strings and character constants. */
3194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3196 int test (int i, double x);
3197 struct s1 {int (*f) (int a);};
3198 struct s2 {int (*f) (double a);};
3199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3213 CC="$ac_save_CC $ac_arg"
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } && {
3228 test -z "$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
3231 ac_cv_prog_cc_c89=$ac_arg
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext
3240 test "x$ac_cv_prog_cc_c89" != "xno" && break
3242 rm -f conftest.$ac_ext
3247 case "x$ac_cv_prog_cc_c89" in
3249 { echo "$as_me:$LINENO: result: none needed" >&5
3250 echo "${ECHO_T}none needed" >&6; } ;;
3252 { echo "$as_me:$LINENO: result: unsupported" >&5
3253 echo "${ECHO_T}unsupported" >&6; } ;;
3255 CC="$CC $ac_cv_prog_cc_c89"
3256 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 ac_cpp='$CXXCPP $CPPFLAGS'
3269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3272 if test -z "$CXX"; then
3273 if test -n "$CCC"; then
3276 if test -n "$ac_tool_prefix"; then
3277 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_CXX+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -n "$CXX"; then
3287 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test -n "$CXX"; then
3308 { echo "$as_me:$LINENO: result: $CXX" >&5
3309 echo "${ECHO_T}$CXX" >&6; }
3311 { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3316 test -n "$CXX" && break
3319 if test -z "$CXX"; then
3321 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$ac_ct_CXX"; then
3331 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_ac_ct_CXX="$ac_prog"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3351 if test -n "$ac_ct_CXX"; then
3352 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3353 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3355 { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3360 test -n "$ac_ct_CXX" && break
3363 if test "x$ac_ct_CXX" = x; then
3366 case $cross_compiling:$ac_tool_warned in
3368 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3369 whose name does not start with the host triplet. If you think this
3370 configuration is useful to you, please write to autoconf@gnu.org." >&5
3371 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3372 whose name does not start with the host triplet. If you think this
3373 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3374 ac_tool_warned=yes ;;
3382 # Provide some information about the compiler.
3383 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3384 ac_compiler=`set X $ac_compile; echo $2`
3385 { (ac_try="$ac_compiler --version >&5"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compiler --version >&5") 2>&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }
3395 { (ac_try="$ac_compiler -v >&5"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compiler -v >&5") 2>&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }
3405 { (ac_try="$ac_compiler -V >&5"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_compiler -V >&5") 2>&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }
3416 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3417 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3418 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_compile") 2>conftest.er1
3448 grep -v '^ *+' conftest.er1 >conftest.err
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } && {
3453 test -z "$ac_cxx_werror_flag" ||
3454 test ! -s conftest.err
3455 } && test -s conftest.$ac_objext; then
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3468 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3469 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3470 GXX=`test $ac_compiler_gnu = yes && echo yes`
3471 ac_test_CXXFLAGS=${CXXFLAGS+set}
3472 ac_save_CXXFLAGS=$CXXFLAGS
3473 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3474 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3475 if test "${ac_cv_prog_cxx_g+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3479 ac_cxx_werror_flag=yes
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_cxx_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3514 ac_cv_prog_cxx_g=yes
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compile") 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } && {
3549 test -z "$ac_cxx_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest.$ac_objext; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3559 cat >conftest.$ac_ext <<_ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && {
3588 test -z "$ac_cxx_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
3591 ac_cv_prog_cxx_g=yes
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3609 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3610 if test "$ac_test_CXXFLAGS" = set; then
3611 CXXFLAGS=$ac_save_CXXFLAGS
3612 elif test $ac_cv_prog_cxx_g = yes; then
3613 if test "$GXX" = yes; then
3619 if test "$GXX" = yes; then
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 if test "x$CC" != xcc; then
3632 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3633 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3635 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3636 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3638 set dummy $CC; ac_cc=`echo $2 |
3639 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3640 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 cat >conftest.$ac_ext <<_ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3658 # Make sure it works both with $CC and with simple cc.
3659 # We do the test twice because some compilers refuse to overwrite an
3660 # existing .o file with -o, though they will create one.
3661 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3663 if { (case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_try") 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_try") 2>&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); };
3682 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3683 if test "x$CC" != xcc; then
3684 # Test first that cc exists at all.
3685 if { ac_try='cc -c conftest.$ac_ext >&5'
3686 { (case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_try") 2>&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3697 if { (case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_try") 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_try") 2>&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); };
3719 # cc exists but doesn't like -o.
3720 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3725 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3727 rm -f core conftest*
3730 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3731 { echo "$as_me:$LINENO: result: yes" >&5
3732 echo "${ECHO_T}yes" >&6; }
3734 { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3737 cat >>confdefs.h <<\_ACEOF
3738 #define NO_MINUS_C_MINUS_O 1
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3754 if test -z "$CPP"; then
3755 if test "${ac_cv_prog_CPP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 # Double quotes because CPP needs to be expanded
3759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3762 for ac_c_preproc_warn_flag in '' yes
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3777 # include <limits.h>
3779 # include <assert.h>
3783 if { (ac_try="$ac_cpp conftest.$ac_ext"
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3791 grep -v '^ *+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } >/dev/null && {
3796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 # Broken: fails on valid input.
3808 rm -f conftest.err conftest.$ac_ext
3810 # OK, works on sane cases. Now check whether nonexistent headers
3811 # can be detected and how.
3812 cat >conftest.$ac_ext <<_ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 #include <ac_nonexistent.h>
3820 if { (ac_try="$ac_cpp conftest.$ac_ext"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null && {
3833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3836 # Broken: success on invalid input.
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 # Passes both tests.
3847 rm -f conftest.err conftest.$ac_ext
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3864 { echo "$as_me:$LINENO: result: $CPP" >&5
3865 echo "${ECHO_T}$CPP" >&6; }
3867 for ac_c_preproc_warn_flag in '' yes
3869 # Use a header file that comes with gcc, so configuring glibc
3870 # with a fresh cross-compiler works.
3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872 # <limits.h> exists even on freestanding compilers.
3873 # On the NeXT, cc -E runs the code through the compiler's parser,
3874 # not just through cpp. "Syntax error" is here to catch this case.
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3882 # include <limits.h>
3884 # include <assert.h>
3888 if { (ac_try="$ac_cpp conftest.$ac_ext"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3896 grep -v '^ *+' conftest.er1 >conftest.err
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } >/dev/null && {
3901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3902 test ! -s conftest.err
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 # Broken: fails on valid input.
3913 rm -f conftest.err conftest.$ac_ext
3915 # OK, works on sane cases. Now check whether nonexistent headers
3916 # can be detected and how.
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 #include <ac_nonexistent.h>
3925 if { (ac_try="$ac_cpp conftest.$ac_ext"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev/null && {
3938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3941 # Broken: success on invalid input.
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 # Passes both tests.
3952 rm -f conftest.err conftest.$ac_ext
3955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3956 rm -f conftest.err conftest.$ac_ext
3957 if $ac_preproc_ok; then
3960 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&5
3962 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&2;}
3964 { (exit 1); exit 1; }; }
3968 ac_cpp='$CPP $CPPFLAGS'
3969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3975 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3976 if test "${ac_cv_path_GREP+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 # Extract the first word of "grep ggrep" to use in msg output
3980 if test -z "$GREP"; then
3981 set dummy grep ggrep; ac_prog_name=$2
3982 if test "${ac_cv_path_GREP+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 ac_path_GREP_found=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 test -z "$as_dir" && as_dir=.
3992 for ac_prog in grep ggrep; do
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3995 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3996 # Check for GNU ac_path_GREP and select it if it is found.
3997 # Check for GNU $ac_path_GREP
3998 case `"$ac_path_GREP" --version 2>&1` in
4000 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4003 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006 cat "conftest.in" "conftest.in" >"conftest.tmp"
4007 mv "conftest.tmp" "conftest.in"
4008 cp "conftest.in" "conftest.nl"
4009 echo 'GREP' >> "conftest.nl"
4010 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012 ac_count=`expr $ac_count + 1`
4013 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4014 # Best one so far, save it but keep looking for a better one
4015 ac_cv_path_GREP="$ac_path_GREP"
4016 ac_path_GREP_max=$ac_count
4018 # 10*(2^10) chars as input seems more than enough
4019 test $ac_count -gt 10 && break
4021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4025 $ac_path_GREP_found && break 3
4035 GREP="$ac_cv_path_GREP"
4036 if test -z "$GREP"; then
4037 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4038 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4039 { (exit 1); exit 1; }; }
4043 ac_cv_path_GREP=$GREP
4048 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4049 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4050 GREP="$ac_cv_path_GREP"
4053 { echo "$as_me:$LINENO: checking for egrep" >&5
4054 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4055 if test "${ac_cv_path_EGREP+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4059 then ac_cv_path_EGREP="$GREP -E"
4061 # Extract the first word of "egrep" to use in msg output
4062 if test -z "$EGREP"; then
4063 set dummy egrep; ac_prog_name=$2
4064 if test "${ac_cv_path_EGREP+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 ac_path_EGREP_found=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 test -z "$as_dir" && as_dir=.
4074 for ac_prog in egrep; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4077 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4078 # Check for GNU ac_path_EGREP and select it if it is found.
4079 # Check for GNU $ac_path_EGREP
4080 case `"$ac_path_EGREP" --version 2>&1` in
4082 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4088 cat "conftest.in" "conftest.in" >"conftest.tmp"
4089 mv "conftest.tmp" "conftest.in"
4090 cp "conftest.in" "conftest.nl"
4091 echo 'EGREP' >> "conftest.nl"
4092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094 ac_count=`expr $ac_count + 1`
4095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4096 # Best one so far, save it but keep looking for a better one
4097 ac_cv_path_EGREP="$ac_path_EGREP"
4098 ac_path_EGREP_max=$ac_count
4100 # 10*(2^10) chars as input seems more than enough
4101 test $ac_count -gt 10 && break
4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 $ac_path_EGREP_found && break 3
4117 EGREP="$ac_cv_path_EGREP"
4118 if test -z "$EGREP"; then
4119 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121 { (exit 1); exit 1; }; }
4125 ac_cv_path_EGREP=$EGREP
4131 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4132 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4133 EGREP="$ac_cv_path_EGREP"
4136 if test $ac_cv_c_compiler_gnu = yes; then
4137 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4138 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4139 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 ac_pattern="Autoconf.*'x'"
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4154 ac_cv_prog_gcc_traditional=yes
4156 ac_cv_prog_gcc_traditional=no
4161 if test $ac_cv_prog_gcc_traditional = no; then
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4173 ac_cv_prog_gcc_traditional=yes
4179 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4180 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4181 if test $ac_cv_prog_gcc_traditional = yes; then
4182 CC="$CC -traditional"
4186 BASECC=`basename $CC`
4188 if test "x$BASECC" = xgcc; then
4189 cat >>confdefs.h <<\_ACEOF
4195 # Extract the first word of "$CXX", so it can be a program name with args.
4196 set dummy $CXX; ac_word=$2
4197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4199 if test "${ac_cv_path_CXX+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4227 if test -n "$CXX"; then
4228 { echo "$as_me:$LINENO: result: $CXX" >&5
4229 echo "${ECHO_T}$CXX" >&6; }
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4236 if test ! -e $CXX; then
4237 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4238 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4239 { (exit 1); exit 1; }; }
4242 CXXFLAGS="-g -O2 -Wall"
4244 ac_cpp='$CXXCPP $CPPFLAGS'
4245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4250 # Find a good install program. We prefer a C program (faster),
4251 # so one script is as good as another. But avoid the broken or
4252 # incompatible versions:
4253 # SysV /etc/install, /usr/sbin/install
4254 # SunOS /usr/etc/install
4255 # IRIX /sbin/install
4257 # AmigaOS /C/install, which installs bootblocks on floppy discs
4258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4261 # OS/2's system install, which has a completely different semantic
4262 # ./install, which can be erroneously created by make from ./install.sh.
4263 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4265 if test -z "$INSTALL"; then
4266 if test "${ac_cv_path_install+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 test -z "$as_dir" && as_dir=.
4274 # Account for people who put trailing slashes in PATH elements.
4276 ./ | .// | /cC/* | \
4277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4281 # OSF1 and SCO ODT 3.0 have their own names for install.
4282 # Don't use installbsd from OSF since it installs stuff as root
4284 for ac_prog in ginstall scoinst install; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4287 if test $ac_prog = install &&
4288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4289 # AIX install. It has an incompatible calling convention.
4291 elif test $ac_prog = install &&
4292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4293 # program-specific install script used by HP pwplus--don't use.
4296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4309 if test "${ac_cv_path_install+set}" = set; then
4310 INSTALL=$ac_cv_path_install
4312 # As a last resort, use the slow shell script. Don't cache a
4313 # value for INSTALL within a source directory, because that will
4314 # break other packages using the cache if that directory is
4315 # removed, or if the value is a relative name.
4316 INSTALL=$ac_install_sh
4319 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4320 echo "${ECHO_T}$INSTALL" >&6; }
4322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4323 # It thinks the first close brace ends the variable substitution.
4324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4330 # Extract the first word of "mv", so it can be a program name with args.
4331 set dummy mv; ac_word=$2
4332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4334 if test "${ac_cv_path_MV+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4362 if test -n "$MV"; then
4363 { echo "$as_me:$LINENO: result: $MV" >&5
4364 echo "${ECHO_T}$MV" >&6; }
4366 { echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6; }
4371 # Extract the first word of "rm", so it can be a program name with args.
4372 set dummy rm; ac_word=$2
4373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4375 if test "${ac_cv_path_REMOVE+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4402 REMOVE=$ac_cv_path_REMOVE
4403 if test -n "$REMOVE"; then
4404 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4405 echo "${ECHO_T}$REMOVE" >&6; }
4407 { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4412 # Extract the first word of "cp", so it can be a program name with args.
4413 set dummy cp; ac_word=$2
4414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4416 if test "${ac_cv_path_CP+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4444 if test -n "$CP"; then
4445 { echo "$as_me:$LINENO: result: $CP" >&5
4446 echo "${ECHO_T}$CP" >&6; }
4448 { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4453 # Extract the first word of "sed", so it can be a program name with args.
4454 set dummy sed; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_path_SED+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4485 if test -n "$SED"; then
4486 { echo "$as_me:$LINENO: result: $SED" >&5
4487 echo "${ECHO_T}$SED" >&6; }
4489 { echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6; }
4494 # Extract the first word of "echo", so it can be a program name with args.
4495 set dummy echo; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_path_ECHO+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4525 ECHO=$ac_cv_path_ECHO
4526 if test -n "$ECHO"; then
4527 { echo "$as_me:$LINENO: result: $ECHO" >&5
4528 echo "${ECHO_T}$ECHO" >&6; }
4530 { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4535 # Extract the first word of "cmp", so it can be a program name with args.
4536 set dummy cmp; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_path_CMP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4567 if test -n "$CMP"; then
4568 { echo "$as_me:$LINENO: result: $CMP" >&5
4569 echo "${ECHO_T}$CMP" >&6; }
4571 { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4576 # Extract the first word of "tbl", so it can be a program name with args.
4577 set dummy tbl; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_path_TBL+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4608 if test -n "$TBL"; then
4609 { echo "$as_me:$LINENO: result: $TBL" >&5
4610 echo "${ECHO_T}$TBL" >&6; }
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4617 # Extract the first word of "ar", so it can be a program name with args.
4618 set dummy ar; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_path_AR+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4649 if test -n "$AR"; then
4650 { echo "$as_me:$LINENO: result: $AR" >&5
4651 echo "${ECHO_T}$AR" >&6; }
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4658 # Extract the first word of "openssl", so it can be a program name with args.
4659 set dummy openssl; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_path_OPENSSL+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4689 OPENSSL=$ac_cv_path_OPENSSL
4690 if test -n "$OPENSSL"; then
4691 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4692 echo "${ECHO_T}$OPENSSL" >&6; }
4694 { echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6; }
4699 # Extract the first word of "mtx", so it can be a program name with args.
4700 set dummy mtx; ac_word=$2
4701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703 if test "${ac_cv_path_MTX+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4731 if test -n "$MTX"; then
4732 { echo "$as_me:$LINENO: result: $MTX" >&5
4733 echo "${ECHO_T}$MTX" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4740 # Extract the first word of "dd", so it can be a program name with args.
4741 set dummy dd; ac_word=$2
4742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4744 if test "${ac_cv_path_DD+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4772 if test -n "$DD"; then
4773 { echo "$as_me:$LINENO: result: $DD" >&5
4774 echo "${ECHO_T}$DD" >&6; }
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4781 # Extract the first word of "mkisofs", so it can be a program name with args.
4782 set dummy mkisofs; ac_word=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_path_MKISOFS+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4812 MKISOFS=$ac_cv_path_MKISOFS
4813 if test -n "$MKISOFS"; then
4814 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4815 echo "${ECHO_T}$MKISOFS" >&6; }
4817 { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4822 # Extract the first word of "python", so it can be a program name with args.
4823 set dummy python; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_path_PYTHON+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4853 PYTHON=$ac_cv_path_PYTHON
4854 if test -n "$PYTHON"; then
4855 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4856 echo "${ECHO_T}$PYTHON" >&6; }
4858 { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4863 # Extract the first word of "growisofs", so it can be a program name with args.
4864 set dummy growisofs; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4894 GROWISOFS=$ac_cv_path_GROWISOFS
4895 if test -n "$GROWISOFS"; then
4896 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4897 echo "${ECHO_T}$GROWISOFS" >&6; }
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4904 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4905 set dummy dvd+rw-mediainfo; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 case $DVDRWMEDIAINFO in
4913 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4935 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4936 if test -n "$DVDRWMEDIAINFO"; then
4937 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4938 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4940 { echo "$as_me:$LINENO: result: no" >&5
4941 echo "${ECHO_T}no" >&6; }
4945 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4946 set dummy dvd+rw-format; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 case $DVDRWFORMAT in
4954 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4976 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4977 if test -n "$DVDRWFORMAT"; then
4978 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4979 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4981 { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4986 # Extract the first word of "pkg-config", so it can be a program name with args.
4987 set dummy pkg-config; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5017 PKGCONFIG=$ac_cv_path_PKGCONFIG
5018 if test -n "$PKGCONFIG"; then
5019 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5020 echo "${ECHO_T}$PKGCONFIG" >&6; }
5022 { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5027 # Extract the first word of "qmake", so it can be a program name with args.
5028 set dummy qmake; ac_word=$2
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5031 if test "${ac_cv_path_QMAKE+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5058 QMAKE=$ac_cv_path_QMAKE
5059 if test -n "$QMAKE"; then
5060 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5061 echo "${ECHO_T}$QMAKE" >&6; }
5063 { echo "$as_me:$LINENO: result: no" >&5
5064 echo "${ECHO_T}no" >&6; }
5068 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5069 set dummy qmake-qt4; ac_word=$2
5070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5099 QMAKEQT4=$ac_cv_path_QMAKEQT4
5100 if test -n "$QMAKEQT4"; then
5101 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5102 echo "${ECHO_T}$QMAKEQT4" >&6; }
5104 { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5109 # Extract the first word of "gmake", so it can be a program name with args.
5110 set dummy gmake; ac_word=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_path_GMAKE+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5140 GMAKE=$ac_cv_path_GMAKE
5141 if test -n "$GMAKE"; then
5142 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5143 echo "${ECHO_T}$GMAKE" >&6; }
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5151 if test "x$WXCONFIG" = x; then
5154 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5155 set dummy ${WXCONFIG}; ac_word=$2
5156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5158 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5185 WXCONFIG=$ac_cv_path_WXCONFIG
5186 if test -n "$WXCONFIG"; then
5187 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5188 echo "${ECHO_T}$WXCONFIG" >&6; }
5190 { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5196 # Extract the first word of "cdrecord", so it can be a program name with args.
5197 set dummy cdrecord; ac_word=$2
5198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5200 if test "${ac_cv_path_CDRECORD+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5227 CDRECORD=$ac_cv_path_CDRECORD
5228 if test -n "$CDRECORD"; then
5229 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5230 echo "${ECHO_T}$CDRECORD" >&6; }
5232 { echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6; }
5237 # Extract the first word of "pidof", so it can be a program name with args.
5238 set dummy pidof; ac_word=$2
5239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5241 if test "${ac_cv_path_PIDOF+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5268 PIDOF=$ac_cv_path_PIDOF
5269 if test -n "$PIDOF"; then
5270 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5271 echo "${ECHO_T}$PIDOF" >&6; }
5273 { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5278 for ac_prog in gawk mawk nawk awk
5280 # Extract the first word of "$ac_prog", so it can be a program name with args.
5281 set dummy $ac_prog; ac_word=$2
5282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5284 if test "${ac_cv_prog_AWK+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 if test -n "$AWK"; then
5288 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_AWK="$ac_prog"
5298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 if test -n "$AWK"; then
5309 { echo "$as_me:$LINENO: result: $AWK" >&5
5310 echo "${ECHO_T}$AWK" >&6; }
5312 { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }
5317 test -n "$AWK" && break
5320 # Some AWK programs fail, so test it and warn the user
5321 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5322 { if ((prog == $2) || (("(" prog ")") == $2) ||
5323 (("" prog "") == $2) ||
5324 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5326 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5327 The regex engine of $AWK is too broken to be used you
5328 might want to install GNU AWK.
5329 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5330 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5331 The regex engine of $AWK is too broken to be used you
5332 might want to install GNU AWK.
5333 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5334 { (exit 1); exit 1; }; }
5337 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5338 set dummy $THE_AWK; ac_word=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_AWK+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5369 if test -n "$AWK"; then
5370 { echo "$as_me:$LINENO: result: $AWK" >&5
5371 echo "${ECHO_T}$AWK" >&6; }
5373 { echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6; }
5380 test -n "$ARFLAG" || ARFLAGS="cr"
5392 # Check whether --enable-libtool was given.
5393 if test "${enable_libtool+set}" = set; then
5394 enableval=$enable_libtool;
5395 if test x$enableval = xno; then
5404 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5405 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5410 macro_version='2.2.6'
5411 macro_revision='1.3012'
5425 ltmain="$ac_aux_dir/ltmain.sh"
5427 # Make sure we can run config.sub.
5428 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5429 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5430 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5431 { (exit 1); exit 1; }; }
5433 { echo "$as_me:$LINENO: checking build system type" >&5
5434 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5435 if test "${ac_cv_build+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 ac_build_alias=$build_alias
5439 test "x$ac_build_alias" = x &&
5440 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5441 test "x$ac_build_alias" = x &&
5442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5444 { (exit 1); exit 1; }; }
5445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5446 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5447 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5448 { (exit 1); exit 1; }; }
5451 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5452 echo "${ECHO_T}$ac_cv_build" >&6; }
5453 case $ac_cv_build in
5455 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5456 echo "$as_me: error: invalid value of canonical build" >&2;}
5457 { (exit 1); exit 1; }; };;
5460 ac_save_IFS=$IFS; IFS='-'
5466 # Remember, the first character of IFS is used to create $*,
5467 # except with old shells:
5470 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5473 { echo "$as_me:$LINENO: checking host system type" >&5
5474 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5475 if test "${ac_cv_host+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 if test "x$host_alias" = x; then
5479 ac_cv_host=$ac_cv_build
5481 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5482 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5483 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5484 { (exit 1); exit 1; }; }
5488 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5489 echo "${ECHO_T}$ac_cv_host" >&6; }
5492 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5493 echo "$as_me: error: invalid value of canonical host" >&2;}
5494 { (exit 1); exit 1; }; };;
5497 ac_save_IFS=$IFS; IFS='-'
5503 # Remember, the first character of IFS is used to create $*,
5504 # except with old shells:
5507 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5510 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5511 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5512 if test "${ac_cv_path_SED+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5516 for ac_i in 1 2 3 4 5 6 7; do
5517 ac_script="$ac_script$as_nl$ac_script"
5519 echo "$ac_script" | sed 99q >conftest.sed
5520 $as_unset ac_script || ac_script=
5521 # Extract the first word of "sed gsed" to use in msg output
5522 if test -z "$SED"; then
5523 set dummy sed gsed; ac_prog_name=$2
5524 if test "${ac_cv_path_SED+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 ac_path_SED_found=false
5528 # Loop through the user's path and test for each of PROGNAME-LIST
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_prog in sed gsed; do
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5537 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5538 # Check for GNU ac_path_SED and select it if it is found.
5539 # Check for GNU $ac_path_SED
5540 case `"$ac_path_SED" --version 2>&1` in
5542 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5545 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5548 cat "conftest.in" "conftest.in" >"conftest.tmp"
5549 mv "conftest.tmp" "conftest.in"
5550 cp "conftest.in" "conftest.nl"
5551 echo '' >> "conftest.nl"
5552 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5554 ac_count=`expr $ac_count + 1`
5555 if test $ac_count -gt ${ac_path_SED_max-0}; then
5556 # Best one so far, save it but keep looking for a better one
5557 ac_cv_path_SED="$ac_path_SED"
5558 ac_path_SED_max=$ac_count
5560 # 10*(2^10) chars as input seems more than enough
5561 test $ac_count -gt 10 && break
5563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5567 $ac_path_SED_found && break 3
5577 SED="$ac_cv_path_SED"
5578 if test -z "$SED"; then
5579 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5580 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5581 { (exit 1); exit 1; }; }
5589 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5590 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5591 SED="$ac_cv_path_SED"
5594 test -z "$SED" && SED=sed
5595 Xsed="$SED -e 1s/^X//"
5607 { echo "$as_me:$LINENO: checking for fgrep" >&5
5608 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5609 if test "${ac_cv_path_FGREP+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5613 then ac_cv_path_FGREP="$GREP -F"
5615 # Extract the first word of "fgrep" to use in msg output
5616 if test -z "$FGREP"; then
5617 set dummy fgrep; ac_prog_name=$2
5618 if test "${ac_cv_path_FGREP+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 ac_path_FGREP_found=false
5622 # Loop through the user's path and test for each of PROGNAME-LIST
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5627 test -z "$as_dir" && as_dir=.
5628 for ac_prog in fgrep; do
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5631 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5632 # Check for GNU ac_path_FGREP and select it if it is found.
5633 # Check for GNU $ac_path_FGREP
5634 case `"$ac_path_FGREP" --version 2>&1` in
5636 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5639 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5642 cat "conftest.in" "conftest.in" >"conftest.tmp"
5643 mv "conftest.tmp" "conftest.in"
5644 cp "conftest.in" "conftest.nl"
5645 echo 'FGREP' >> "conftest.nl"
5646 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5648 ac_count=`expr $ac_count + 1`
5649 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5650 # Best one so far, save it but keep looking for a better one
5651 ac_cv_path_FGREP="$ac_path_FGREP"
5652 ac_path_FGREP_max=$ac_count
5654 # 10*(2^10) chars as input seems more than enough
5655 test $ac_count -gt 10 && break
5657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5661 $ac_path_FGREP_found && break 3
5671 FGREP="$ac_cv_path_FGREP"
5672 if test -z "$FGREP"; then
5673 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5674 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5675 { (exit 1); exit 1; }; }
5679 ac_cv_path_FGREP=$FGREP
5685 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5686 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5687 FGREP="$ac_cv_path_FGREP"
5690 test -z "$GREP" && GREP=grep
5710 # Check whether --with-gnu-ld was given.
5711 if test "${with_gnu_ld+set}" = set; then
5712 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5718 if test "$GCC" = yes; then
5719 # Check if gcc -print-prog-name=ld gives a path.
5720 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5721 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5724 # gcc leaves a trailing carriage return which upsets mingw
5725 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5727 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5730 # Accept absolute paths.
5732 re_direlt='/[^/][^/]*/\.\./'
5733 # Canonicalize the pathname of ld
5734 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5735 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5736 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5738 test -z "$LD" && LD="$ac_prog"
5741 # If it fails, then pretend we aren't using GCC.
5745 # If it is relative, then search for the first ld in PATH.
5749 elif test "$with_gnu_ld" = yes; then
5750 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5751 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5753 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5754 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5756 if test "${lt_cv_path_LD+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 if test -z "$LD"; then
5760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5761 for ac_dir in $PATH; do
5763 test -z "$ac_dir" && ac_dir=.
5764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5765 lt_cv_path_LD="$ac_dir/$ac_prog"
5766 # Check to see if the program is GNU ld. I'd rather use --version,
5767 # but apparently some variants of GNU ld only accept -v.
5768 # Break only if it was the GNU/non-GNU ld that we prefer.
5769 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5770 *GNU* | *'with BFD'*)
5771 test "$with_gnu_ld" != no && break
5774 test "$with_gnu_ld" != yes && break
5781 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5786 if test -n "$LD"; then
5787 { echo "$as_me:$LINENO: result: $LD" >&5
5788 echo "${ECHO_T}$LD" >&6; }
5790 { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5793 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5794 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5795 { (exit 1); exit 1; }; }
5796 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5797 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5798 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5802 case `$LD -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804 lt_cv_prog_gnu_ld=yes
5807 lt_cv_prog_gnu_ld=no
5811 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5812 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5813 with_gnu_ld=$lt_cv_prog_gnu_ld
5823 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5824 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5825 if test "${lt_cv_path_NM+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 if test -n "$NM"; then
5829 # Let the user override the test.
5832 lt_nm_to_check="${ac_tool_prefix}nm"
5833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5834 lt_nm_to_check="$lt_nm_to_check nm"
5836 for lt_tmp_nm in $lt_nm_to_check; do
5837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5840 test -z "$ac_dir" && ac_dir=.
5841 tmp_nm="$ac_dir/$lt_tmp_nm"
5842 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5843 # Check to see if the nm accepts a BSD-compat flag.
5844 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5845 # nm: unknown option "B" ignored
5846 # Tru64's nm complains that /dev/null is an invalid object file
5847 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5848 */dev/null* | *'Invalid file or object type'*)
5849 lt_cv_path_NM="$tmp_nm -B"
5853 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5855 lt_cv_path_NM="$tmp_nm -p"
5859 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5860 continue # so that we can try to find one that supports BSD flags
5869 : ${lt_cv_path_NM=no}
5872 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5873 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5874 if test "$lt_cv_path_NM" != "no"; then
5877 # Didn't find any BSD compatible name lister, look for dumpbin.
5878 if test -n "$ac_tool_prefix"; then
5879 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 if test -n "$DUMPBIN"; then
5889 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 DUMPBIN=$ac_cv_prog_DUMPBIN
5909 if test -n "$DUMPBIN"; then
5910 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5911 echo "${ECHO_T}$DUMPBIN" >&6; }
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5918 test -n "$DUMPBIN" && break
5921 if test -z "$DUMPBIN"; then
5922 ac_ct_DUMPBIN=$DUMPBIN
5923 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5925 # Extract the first word of "$ac_prog", so it can be a program name with args.
5926 set dummy $ac_prog; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 if test -n "$ac_ct_DUMPBIN"; then
5933 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5953 if test -n "$ac_ct_DUMPBIN"; then
5954 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5955 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5957 { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5962 test -n "$ac_ct_DUMPBIN" && break
5965 if test "x$ac_ct_DUMPBIN" = x; then
5968 case $cross_compiling:$ac_tool_warned in
5970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5971 whose name does not start with the host triplet. If you think this
5972 configuration is useful to you, please write to autoconf@gnu.org." >&5
5973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5974 whose name does not start with the host triplet. If you think this
5975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5976 ac_tool_warned=yes ;;
5978 DUMPBIN=$ac_ct_DUMPBIN
5983 if test "$DUMPBIN" != ":"; then
5987 test -z "$NM" && NM=nm
5994 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5995 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5996 if test "${lt_cv_nm_interface+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 lt_cv_nm_interface="BSD nm"
6000 echo "int some_variable = 0;" > conftest.$ac_ext
6001 (eval echo "\"\$as_me:6001: $ac_compile\"" >&5)
6002 (eval "$ac_compile" 2>conftest.err)
6003 cat conftest.err >&5
6004 (eval echo "\"\$as_me:6004: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6005 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6006 cat conftest.err >&5
6007 (eval echo "\"\$as_me:6007: output\"" >&5)
6008 cat conftest.out >&5
6009 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6010 lt_cv_nm_interface="MS dumpbin"
6014 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6015 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6017 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6018 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6020 if test "$LN_S" = "ln -s"; then
6021 { echo "$as_me:$LINENO: result: yes" >&5
6022 echo "${ECHO_T}yes" >&6; }
6024 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6025 echo "${ECHO_T}no, using $LN_S" >&6; }
6028 # find the maximum length of command line arguments
6029 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6030 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6031 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 # On DJGPP, this test can blow up pretty badly due to problems in libc
6040 # (any single argument exceeding 2000 bytes causes a buffer overrun
6041 # during glob expansion). Even if it were fixed, the result of this
6042 # check would be larger than it should be.
6043 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6047 # Under GNU Hurd, this test is not required because there is
6048 # no limit to the length of command line arguments.
6049 # Libtool will interpret -1 as no limit whatsoever
6050 lt_cv_sys_max_cmd_len=-1;
6053 cygwin* | mingw* | cegcc*)
6054 # On Win9x/ME, this test blows up -- it succeeds, but takes
6055 # about 5 minutes as the teststring grows exponentially.
6056 # Worse, since 9x/ME are not pre-emptively multitasking,
6057 # you end up with a "frozen" computer, even though with patience
6058 # the test eventually succeeds (with a max line length of 256k).
6059 # Instead, let's just punt: use the minimum linelength reported by
6060 # all of the supported platforms: 8192 (on NT/2K/XP).
6061 lt_cv_sys_max_cmd_len=8192;
6065 # On AmigaOS with pdksh, this test takes hours, literally.
6066 # So we just punt and use a minimum line length of 8192.
6067 lt_cv_sys_max_cmd_len=8192;
6070 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6071 # This has been around since 386BSD, at least. Likely further.
6072 if test -x /sbin/sysctl; then
6073 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6074 elif test -x /usr/sbin/sysctl; then
6075 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6077 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6079 # And add a safety zone
6080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6085 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6086 lt_cv_sys_max_cmd_len=196608
6090 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6091 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6092 # nice to cause kernel panics so lets avoid the loop below.
6093 # First set a reasonable default.
6094 lt_cv_sys_max_cmd_len=16384
6096 if test -x /sbin/sysconfig; then
6097 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6098 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6103 lt_cv_sys_max_cmd_len=102400
6105 sysv5* | sco5v6* | sysv4.2uw2*)
6106 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6107 if test -n "$kargmax"; then
6108 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6110 lt_cv_sys_max_cmd_len=32768
6114 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6115 if test -n "$lt_cv_sys_max_cmd_len"; then
6116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6119 # Make teststring a little bigger before we do anything with it.
6120 # a 1K string should be a reasonable start.
6121 for i in 1 2 3 4 5 6 7 8 ; do
6122 teststring=$teststring$teststring
6124 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6125 # If test is not a shell built-in, we'll probably end up computing a
6126 # maximum length that is only half of the actual maximum length, but
6128 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6129 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6130 test $i != 17 # 1/2 MB should be enough
6133 teststring=$teststring$teststring
6135 # Only check the string length outside the loop.
6136 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6138 # Add a significant safety factor because C++ compilers can tack on
6139 # massive amounts of additional arguments before passing them to the
6140 # linker. It appears as though 1/2 is a usable value.
6141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6148 if test -n $lt_cv_sys_max_cmd_len ; then
6149 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6150 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6152 { echo "$as_me:$LINENO: result: none" >&5
6153 echo "${ECHO_T}none" >&6; }
6155 max_cmd_len=$lt_cv_sys_max_cmd_len
6166 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6167 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6168 # Try some XSI features
6171 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6173 && eval 'test $(( 1 + 1 )) -eq 2 \
6174 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6176 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6177 echo "${ECHO_T}$xsi_shell" >&6; }
6180 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6181 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6183 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6185 && lt_shell_append=yes
6186 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6187 echo "${ECHO_T}$lt_shell_append" >&6; }
6190 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6200 # test EBCDIC or ASCII
6201 case `echo X|tr X '\101'` in
6202 A) # ASCII based system
6203 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6204 lt_SP2NL='tr \040 \012'
6205 lt_NL2SP='tr \015\012 \040\040'
6207 *) # EBCDIC based system
6208 lt_SP2NL='tr \100 \n'
6209 lt_NL2SP='tr \r\n \100\100'
6221 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6222 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6223 if test "${lt_cv_ld_reload_flag+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 lt_cv_ld_reload_flag='-r'
6228 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6229 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6230 reload_flag=$lt_cv_ld_reload_flag
6231 case $reload_flag in
6233 *) reload_flag=" $reload_flag" ;;
6235 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6238 if test "$GCC" = yes; then
6239 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6241 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6254 if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 if test -n "$OBJDUMP"; then
6263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 OBJDUMP=$ac_cv_prog_OBJDUMP
6283 if test -n "$OBJDUMP"; then
6284 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6285 echo "${ECHO_T}$OBJDUMP" >&6; }
6287 { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6293 if test -z "$ac_cv_prog_OBJDUMP"; then
6294 ac_ct_OBJDUMP=$OBJDUMP
6295 # Extract the first word of "objdump", so it can be a program name with args.
6296 set dummy objdump; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 if test -n "$ac_ct_OBJDUMP"; then
6303 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6323 if test -n "$ac_ct_OBJDUMP"; then
6324 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6325 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6327 { echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6; }
6331 if test "x$ac_ct_OBJDUMP" = x; then
6334 case $cross_compiling:$ac_tool_warned in
6336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet. If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&5
6339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6340 whose name does not start with the host triplet. If you think this
6341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6342 ac_tool_warned=yes ;;
6344 OBJDUMP=$ac_ct_OBJDUMP
6347 OBJDUMP="$ac_cv_prog_OBJDUMP"
6350 test -z "$OBJDUMP" && OBJDUMP=objdump
6360 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6361 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6362 if test "${lt_cv_deplibs_check_method+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 lt_cv_file_magic_cmd='$MAGIC_CMD'
6366 lt_cv_file_magic_test_file=
6367 lt_cv_deplibs_check_method='unknown'
6368 # Need to set the preceding variable on all platforms that support
6369 # interlibrary dependencies.
6370 # 'none' -- dependencies not supported.
6371 # `unknown' -- same as none, but documents that we really don't know.
6372 # 'pass_all' -- all dependencies passed with no checks.
6373 # 'test_compile' -- check by making test program.
6374 # 'file_magic [[regex]]' -- check by looking for files in library path
6375 # which responds to the $file_magic_cmd with a given extended regex.
6376 # If you have `file' or equivalent on your system and you're not sure
6377 # whether `pass_all' will *always* work, you probably want this one.
6381 lt_cv_deplibs_check_method=pass_all
6385 lt_cv_deplibs_check_method=pass_all
6389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6390 lt_cv_file_magic_cmd='/usr/bin/file -L'
6391 lt_cv_file_magic_test_file=/shlib/libc.so
6395 # func_win32_libid is a shell function defined in ltmain.sh
6396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6397 lt_cv_file_magic_cmd='func_win32_libid'
6401 # Base MSYS/MinGW do not provide the 'file' command needed by
6402 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6403 # unless we find 'file', for example because we are cross-compiling.
6404 if ( file / ) >/dev/null 2>&1; then
6405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406 lt_cv_file_magic_cmd='func_win32_libid'
6408 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6409 lt_cv_file_magic_cmd='$OBJDUMP -f'
6414 # use the weaker test based on 'objdump'. See mingw*.
6415 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6416 lt_cv_file_magic_cmd='$OBJDUMP -f'
6419 darwin* | rhapsody*)
6420 lt_cv_deplibs_check_method=pass_all
6423 freebsd* | dragonfly*)
6424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6427 # Not sure whether the presence of OpenBSD here was a mistake.
6428 # Let's accept both of them until this is cleared up.
6429 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6430 lt_cv_file_magic_cmd=/usr/bin/file
6431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6435 lt_cv_deplibs_check_method=pass_all
6440 lt_cv_deplibs_check_method=pass_all
6443 hpux10.20* | hpux11*)
6444 lt_cv_file_magic_cmd=/usr/bin/file
6447 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6448 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6451 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]'
6452 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6456 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6462 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6466 irix5* | irix6* | nonstopux*)
6468 *-32|*"-32 ") libmagic=32-bit;;
6469 *-n32|*"-n32 ") libmagic=N32;;
6470 *-64|*"-64 ") libmagic=64-bit;;
6471 *) libmagic=never-match;;
6473 lt_cv_deplibs_check_method=pass_all
6476 # This must be Linux ELF.
6477 linux* | k*bsd*-gnu)
6478 lt_cv_deplibs_check_method=pass_all
6482 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6491 lt_cv_file_magic_cmd=/usr/bin/file
6492 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6496 lt_cv_deplibs_check_method=pass_all
6500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6507 osf3* | osf4* | osf5*)
6508 lt_cv_deplibs_check_method=pass_all
6512 lt_cv_deplibs_check_method=pass_all
6516 lt_cv_deplibs_check_method=pass_all
6519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6520 lt_cv_deplibs_check_method=pass_all
6524 case $host_vendor in
6526 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]'
6527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6530 lt_cv_deplibs_check_method=pass_all
6533 lt_cv_file_magic_cmd='/bin/file'
6534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6537 lt_cv_file_magic_cmd='/bin/file'
6538 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6539 lt_cv_file_magic_test_file=/lib/libc.so
6542 lt_cv_deplibs_check_method=pass_all
6545 lt_cv_deplibs_check_method=pass_all
6551 lt_cv_deplibs_check_method=pass_all
6556 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6557 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6558 file_magic_cmd=$lt_cv_file_magic_cmd
6559 deplibs_check_method=$lt_cv_deplibs_check_method
6560 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6573 if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}ar; ac_word=$2
6576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 if test "${ac_cv_prog_AR+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 if test -n "$AR"; then
6582 ac_cv_prog_AR="$AR" # Let the user override the test.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_prog_AR="${ac_tool_prefix}ar"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 if test -n "$AR"; then
6603 { echo "$as_me:$LINENO: result: $AR" >&5
6604 echo "${ECHO_T}$AR" >&6; }
6606 { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6612 if test -z "$ac_cv_prog_AR"; then
6614 # Extract the first word of "ar", so it can be a program name with args.
6615 set dummy ar; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 if test -n "$ac_ct_AR"; then
6622 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_prog_ac_ct_AR="ar"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6642 if test -n "$ac_ct_AR"; then
6643 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6644 echo "${ECHO_T}$ac_ct_AR" >&6; }
6646 { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6650 if test "x$ac_ct_AR" = x; then
6653 case $cross_compiling:$ac_tool_warned in
6655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet. If you think this
6657 configuration is useful to you, please write to autoconf@gnu.org." >&5
6658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6659 whose name does not start with the host triplet. If you think this
6660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6661 ac_tool_warned=yes ;;
6669 test -z "$AR" && AR=ar
6670 test -z "$AR_FLAGS" && AR_FLAGS=cru
6682 if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}strip; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_prog_STRIP+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 if test -n "$STRIP"; then
6691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 STRIP=$ac_cv_prog_STRIP
6711 if test -n "$STRIP"; then
6712 { echo "$as_me:$LINENO: result: $STRIP" >&5
6713 echo "${ECHO_T}$STRIP" >&6; }
6715 { echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6; }
6721 if test -z "$ac_cv_prog_STRIP"; then
6723 # Extract the first word of "strip", so it can be a program name with args.
6724 set dummy strip; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 if test -n "$ac_ct_STRIP"; then
6731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_ac_ct_STRIP="strip"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6751 if test -n "$ac_ct_STRIP"; then
6752 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6753 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6755 { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6759 if test "x$ac_ct_STRIP" = x; then
6762 case $cross_compiling:$ac_tool_warned in
6764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6765 whose name does not start with the host triplet. If you think this
6766 configuration is useful to you, please write to autoconf@gnu.org." >&5
6767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6768 whose name does not start with the host triplet. If you think this
6769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6770 ac_tool_warned=yes ;;
6775 STRIP="$ac_cv_prog_STRIP"
6778 test -z "$STRIP" && STRIP=:
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_RANLIB+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test -n "$RANLIB"; then
6794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 RANLIB=$ac_cv_prog_RANLIB
6814 if test -n "$RANLIB"; then
6815 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6816 echo "${ECHO_T}$RANLIB" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6824 if test -z "$ac_cv_prog_RANLIB"; then
6825 ac_ct_RANLIB=$RANLIB
6826 # Extract the first word of "ranlib", so it can be a program name with args.
6827 set dummy ranlib; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 if test -n "$ac_ct_RANLIB"; then
6834 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_RANLIB="ranlib"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854 if test -n "$ac_ct_RANLIB"; then
6855 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6856 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6862 if test "x$ac_ct_RANLIB" = x; then
6865 case $cross_compiling:$ac_tool_warned in
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet. If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet. If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6875 RANLIB=$ac_ct_RANLIB
6878 RANLIB="$ac_cv_prog_RANLIB"
6881 test -z "$RANLIB" && RANLIB=:
6888 # Determine commands to create old-style static archives.
6889 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6890 old_postinstall_cmds='chmod 644 $oldlib'
6891 old_postuninstall_cmds=
6893 if test -n "$RANLIB"; then
6896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6902 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6938 # If no C compiler was specified, use CC.
6941 # If no C compiler flags were specified, use CFLAGS.
6942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6944 # Allow CC to be a program name with arguments.
6948 # Check for command to grab the raw symbol name followed by C symbol from nm.
6949 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6950 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6951 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 # These are sane defaults that work on at least a few old systems.
6956 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6958 # Character class describing NM global symbol codes.
6959 symcode='[BCDEGRST]'
6961 # Regexp to match symbols that can be accessed directly from C.
6962 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6964 # Define system-specific variables.
6969 cygwin* | mingw* | pw32* | cegcc*)
6970 symcode='[ABCDGISTW]'
6973 if test "$host_cpu" = ia64; then
6974 symcode='[ABCDEGRST]'
6978 symcode='[BCDEGRST]'
6981 symcode='[BCDEGQRST]'
6992 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7000 # If we're using GNU nm, then use its standard symbol codes.
7001 case `$NM -V 2>&1` in
7002 *GNU* | *'with BFD'*)
7003 symcode='[ABCDGIRSTW]' ;;
7006 # Transform an extracted symbol line into a proper C declaration.
7007 # Some systems (esp. on ia64) link data and code symbols differently,
7008 # so use this general approach.
7009 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7011 # Transform an extracted symbol line into symbol name and symbol address
7012 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7013 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'"
7015 # Handle CRLF in mingw tool chain
7019 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7023 # Try without a prefix underscore, then with it.
7024 for ac_symprfx in "" "_"; do
7026 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7027 symxfrm="\\1 $ac_symprfx\\2 \\2"
7029 # Write the raw and C identifiers.
7030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7031 # Fake it for dumpbin and say T for any non-static function
7032 # and D for any global variable.
7033 # Also find C++ and __fastcall symbols from MSVC++,
7034 # which start with @ or ?.
7035 lt_cv_sys_global_symbol_pipe="$AWK '"\
7036 " {last_section=section; section=\$ 3};"\
7037 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7038 " \$ 0!~/External *\|/{next};"\
7039 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7040 " {if(hide[section]) next};"\
7041 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7042 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7043 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7044 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7045 " ' prfx=^$ac_symprfx"
7047 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7050 # Check to see that the pipe works correctly.
7054 cat > conftest.$ac_ext <<_LT_EOF
7059 void nm_test_func(void);
7060 void nm_test_func(void){}
7064 int main(){nm_test_var='a';nm_test_func();return(0);}
7067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; then
7072 # Now try to grab the symbols.
7074 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7075 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && test -s "$nlist"; then
7079 # Try sorting and uniquifying the output.
7080 if sort "$nlist" | uniq > "$nlist"T; then
7081 mv -f "$nlist"T "$nlist"
7086 # Make sure that we snagged all the symbols we need.
7087 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7088 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7089 cat <<_LT_EOF > conftest.$ac_ext
7095 # Now generate the symbol file.
7096 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7098 cat <<_LT_EOF >> conftest.$ac_ext
7100 /* The mapping between symbol names and symbols. */
7105 lt__PROGRAM__LTX_preloaded_symbols[] =
7107 { "@PROGRAM@", (void *) 0 },
7109 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7110 cat <<\_LT_EOF >> conftest.$ac_ext
7114 /* This works around a problem in FreeBSD linker */
7115 #ifdef FREEBSD_WORKAROUND
7116 static const void *lt_preloaded_setup() {
7117 return lt__PROGRAM__LTX_preloaded_symbols;
7125 # Now try linking the two files.
7126 mv conftest.$ac_objext conftstm.$ac_objext
7127 lt_save_LIBS="$LIBS"
7128 lt_save_CFLAGS="$CFLAGS"
7129 LIBS="conftstm.$ac_objext"
7130 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7132 (eval $ac_link) 2>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7138 LIBS="$lt_save_LIBS"
7139 CFLAGS="$lt_save_CFLAGS"
7141 echo "cannot find nm_test_func in $nlist" >&5
7144 echo "cannot find nm_test_var in $nlist" >&5
7147 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7150 echo "$progname: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7153 rm -rf conftest* conftst*
7155 # Do not use the global_symbol_pipe unless it works.
7156 if test "$pipe_works" = yes; then
7159 lt_cv_sys_global_symbol_pipe=
7165 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7166 lt_cv_sys_global_symbol_to_cdecl=
7168 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7169 { echo "$as_me:$LINENO: result: failed" >&5
7170 echo "${ECHO_T}failed" >&6; }
7172 { echo "$as_me:$LINENO: result: ok" >&5
7173 echo "${ECHO_T}ok" >&6; }
7197 # Check whether --enable-libtool-lock was given.
7198 if test "${enable_libtool_lock+set}" = set; then
7199 enableval=$enable_libtool_lock;
7202 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7204 # Some flags need to be propagated to the compiler or linker for good
7208 # Find out which ABI we are using.
7209 echo 'int i;' > conftest.$ac_ext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211 (eval $ac_compile) 2>&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; then
7215 case `/usr/bin/file conftest.$ac_objext` in
7227 # Find out which ABI we are using.
7228 echo '#line 7228 "configure"' > conftest.$ac_ext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; then
7234 if test "$lt_cv_prog_gnu_ld" = yes; then
7235 case `/usr/bin/file conftest.$ac_objext` in
7237 LD="${LD-ld} -melf32bsmip"
7240 LD="${LD-ld} -melf32bmipn32"
7243 LD="${LD-ld} -melf64bmip"
7247 case `/usr/bin/file conftest.$ac_objext` in
7263 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7264 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7265 # Find out which ABI we are using.
7266 echo 'int i;' > conftest.$ac_ext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; then
7272 case `/usr/bin/file conftest.o` in
7275 x86_64-*kfreebsd*-gnu)
7276 LD="${LD-ld} -m elf_i386_fbsd"
7279 LD="${LD-ld} -m elf_i386"
7281 ppc64-*linux*|powerpc64-*linux*)
7282 LD="${LD-ld} -m elf32ppclinux"
7285 LD="${LD-ld} -m elf_s390"
7288 LD="${LD-ld} -m elf32_sparc"
7294 x86_64-*kfreebsd*-gnu)
7295 LD="${LD-ld} -m elf_x86_64_fbsd"
7298 LD="${LD-ld} -m elf_x86_64"
7300 ppc*-*linux*|powerpc*-*linux*)
7301 LD="${LD-ld} -m elf64ppc"
7303 s390*-*linux*|s390*-*tpf*)
7304 LD="${LD-ld} -m elf64_s390"
7307 LD="${LD-ld} -m elf64_sparc"
7317 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7318 SAVE_CFLAGS="$CFLAGS"
7319 CFLAGS="$CFLAGS -belf"
7320 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7321 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7322 if test "${lt_cv_cc_needs_belf+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331 cat >conftest.$ac_ext <<_ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (ac_try="$ac_link"
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_link") 2>conftest.er1
7355 grep -v '^ *+' conftest.er1 >conftest.err
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest$ac_exeext &&
7363 $as_test_x conftest$ac_exeext; then
7364 lt_cv_cc_needs_belf=yes
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 lt_cv_cc_needs_belf=no
7372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7373 conftest$ac_exeext conftest.$ac_ext
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7382 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7383 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7384 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7385 CFLAGS="$SAVE_CFLAGS"
7389 # Find out which ABI we are using.
7390 echo 'int i;' > conftest.$ac_ext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; then
7396 case `/usr/bin/file conftest.o` in
7398 case $lt_cv_prog_gnu_ld in
7399 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7401 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7413 need_locks="$enable_libtool_lock"
7417 rhapsody* | darwin*)
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 if test -n "$DSYMUTIL"; then
7427 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7447 if test -n "$DSYMUTIL"; then
7448 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7449 echo "${ECHO_T}$DSYMUTIL" >&6; }
7451 { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7457 if test -z "$ac_cv_prog_DSYMUTIL"; then
7458 ac_ct_DSYMUTIL=$DSYMUTIL
7459 # Extract the first word of "dsymutil", so it can be a program name with args.
7460 set dummy dsymutil; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 if test -n "$ac_ct_DSYMUTIL"; then
7467 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7487 if test -n "$ac_ct_DSYMUTIL"; then
7488 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7489 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7491 { echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6; }
7495 if test "x$ac_ct_DSYMUTIL" = x; then
7498 case $cross_compiling:$ac_tool_warned in
7500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7501 whose name does not start with the host triplet. If you think this
7502 configuration is useful to you, please write to autoconf@gnu.org." >&5
7503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7504 whose name does not start with the host triplet. If you think this
7505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7506 ac_tool_warned=yes ;;
7508 DSYMUTIL=$ac_ct_DSYMUTIL
7511 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7514 if test -n "$ac_tool_prefix"; then
7515 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7516 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7519 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 if test -n "$NMEDIT"; then
7523 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 NMEDIT=$ac_cv_prog_NMEDIT
7543 if test -n "$NMEDIT"; then
7544 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7545 echo "${ECHO_T}$NMEDIT" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7553 if test -z "$ac_cv_prog_NMEDIT"; then
7554 ac_ct_NMEDIT=$NMEDIT
7555 # Extract the first word of "nmedit", so it can be a program name with args.
7556 set dummy nmedit; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 if test -n "$ac_ct_NMEDIT"; then
7563 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7583 if test -n "$ac_ct_NMEDIT"; then
7584 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7585 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7591 if test "x$ac_ct_NMEDIT" = x; then
7594 case $cross_compiling:$ac_tool_warned in
7596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7597 whose name does not start with the host triplet. If you think this
7598 configuration is useful to you, please write to autoconf@gnu.org." >&5
7599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7600 whose name does not start with the host triplet. If you think this
7601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7602 ac_tool_warned=yes ;;
7604 NMEDIT=$ac_ct_NMEDIT
7607 NMEDIT="$ac_cv_prog_NMEDIT"
7610 if test -n "$ac_tool_prefix"; then
7611 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7612 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7615 if test "${ac_cv_prog_LIPO+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 if test -n "$LIPO"; then
7619 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 LIPO=$ac_cv_prog_LIPO
7639 if test -n "$LIPO"; then
7640 { echo "$as_me:$LINENO: result: $LIPO" >&5
7641 echo "${ECHO_T}$LIPO" >&6; }
7643 { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7649 if test -z "$ac_cv_prog_LIPO"; then
7651 # Extract the first word of "lipo", so it can be a program name with args.
7652 set dummy lipo; ac_word=$2
7653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7655 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 if test -n "$ac_ct_LIPO"; then
7659 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_prog_ac_ct_LIPO="lipo"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7679 if test -n "$ac_ct_LIPO"; then
7680 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7681 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7683 { echo "$as_me:$LINENO: result: no" >&5
7684 echo "${ECHO_T}no" >&6; }
7687 if test "x$ac_ct_LIPO" = x; then
7690 case $cross_compiling:$ac_tool_warned in
7692 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7693 whose name does not start with the host triplet. If you think this
7694 configuration is useful to you, please write to autoconf@gnu.org." >&5
7695 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7696 whose name does not start with the host triplet. If you think this
7697 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7698 ac_tool_warned=yes ;;
7703 LIPO="$ac_cv_prog_LIPO"
7706 if test -n "$ac_tool_prefix"; then
7707 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7708 set dummy ${ac_tool_prefix}otool; ac_word=$2
7709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711 if test "${ac_cv_prog_OTOOL+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 if test -n "$OTOOL"; then
7715 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 OTOOL=$ac_cv_prog_OTOOL
7735 if test -n "$OTOOL"; then
7736 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7737 echo "${ECHO_T}$OTOOL" >&6; }
7739 { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7745 if test -z "$ac_cv_prog_OTOOL"; then
7747 # Extract the first word of "otool", so it can be a program name with args.
7748 set dummy otool; ac_word=$2
7749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 if test -n "$ac_ct_OTOOL"; then
7755 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_ac_ct_OTOOL="otool"
7765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7775 if test -n "$ac_ct_OTOOL"; then
7776 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7777 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7779 { echo "$as_me:$LINENO: result: no" >&5
7780 echo "${ECHO_T}no" >&6; }
7783 if test "x$ac_ct_OTOOL" = x; then
7786 case $cross_compiling:$ac_tool_warned in
7788 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7789 whose name does not start with the host triplet. If you think this
7790 configuration is useful to you, please write to autoconf@gnu.org." >&5
7791 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7792 whose name does not start with the host triplet. If you think this
7793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7794 ac_tool_warned=yes ;;
7799 OTOOL="$ac_cv_prog_OTOOL"
7802 if test -n "$ac_tool_prefix"; then
7803 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7804 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 if test -n "$OTOOL64"; then
7811 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7820 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 OTOOL64=$ac_cv_prog_OTOOL64
7831 if test -n "$OTOOL64"; then
7832 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7833 echo "${ECHO_T}$OTOOL64" >&6; }
7835 { echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6; }
7841 if test -z "$ac_cv_prog_OTOOL64"; then
7842 ac_ct_OTOOL64=$OTOOL64
7843 # Extract the first word of "otool64", so it can be a program name with args.
7844 set dummy otool64; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 if test -n "$ac_ct_OTOOL64"; then
7851 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_prog_ac_ct_OTOOL64="otool64"
7861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7871 if test -n "$ac_ct_OTOOL64"; then
7872 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7873 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7875 { echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6; }
7879 if test "x$ac_ct_OTOOL64" = x; then
7882 case $cross_compiling:$ac_tool_warned in
7884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7885 whose name does not start with the host triplet. If you think this
7886 configuration is useful to you, please write to autoconf@gnu.org." >&5
7887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7888 whose name does not start with the host triplet. If you think this
7889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7890 ac_tool_warned=yes ;;
7892 OTOOL64=$ac_ct_OTOOL64
7895 OTOOL64="$ac_cv_prog_OTOOL64"
7924 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7925 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7926 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 lt_cv_apple_cc_single_mod=no
7930 if test -z "${LT_MULTI_MODULE}"; then
7931 # By default we will add the -single_module flag. You can override
7932 # by either setting the environment variable LT_MULTI_MODULE
7933 # non-empty at configure time, or by adding -multi_module to the
7935 rm -rf libconftest.dylib*
7936 echo "int foo(void){return 1;}" > conftest.c
7937 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7938 -dynamiclib -Wl,-single_module conftest.c" >&5
7939 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7940 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7942 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7943 lt_cv_apple_cc_single_mod=yes
7945 cat conftest.err >&5
7947 rm -rf libconftest.dylib*
7951 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7952 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7953 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7954 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7955 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 lt_cv_ld_exported_symbols_list=no
7959 save_LDFLAGS=$LDFLAGS
7960 echo "_main" > conftest.sym
7961 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_link") 2>conftest.er1
7986 grep -v '^ *+' conftest.er1 >conftest.err
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest$ac_exeext &&
7994 $as_test_x conftest$ac_exeext; then
7995 lt_cv_ld_exported_symbols_list=yes
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 lt_cv_ld_exported_symbols_list=no
8003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8004 conftest$ac_exeext conftest.$ac_ext
8005 LDFLAGS="$save_LDFLAGS"
8008 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8009 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8011 rhapsody* | darwin1.[012])
8012 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8014 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8015 darwin*) # darwin 5.x on
8016 # if running on 10.5 or later, the deployment target defaults
8017 # to the OS version, if on x86, and 10.4, the deployment
8018 # target defaults to 10.4. Don't you love it?
8019 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8020 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8021 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8023 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8025 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8029 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8030 _lt_dar_single_mod='$single_module'
8032 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8033 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8035 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8037 if test "$DSYMUTIL" != ":"; then
8038 _lt_dsymutil='~$DSYMUTIL $lib || :'
8045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8047 if test "${ac_cv_header_stdc+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8086 ac_cv_header_stdc=yes
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 ac_cv_header_stdc=no
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 if test $ac_cv_header_stdc = yes; then
8097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8098 cat >conftest.$ac_ext <<_ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8108 $EGREP "memchr" >/dev/null 2>&1; then
8111 ac_cv_header_stdc=no
8117 if test $ac_cv_header_stdc = yes; then
8118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8119 cat >conftest.$ac_ext <<_ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129 $EGREP "free" >/dev/null 2>&1; then
8132 ac_cv_header_stdc=no
8138 if test $ac_cv_header_stdc = yes; then
8139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8140 if test "$cross_compiling" = yes; then
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8151 #if ((' ' & 0x0FF) == 0x020)
8152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8155 # define ISLOWER(c) \
8156 (('a' <= (c) && (c) <= 'i') \
8157 || ('j' <= (c) && (c) <= 'r') \
8158 || ('s' <= (c) && (c) <= 'z'))
8159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8167 for (i = 0; i < 256; i++)
8168 if (XOR (islower (i), ISLOWER (i))
8169 || toupper (i) != TOUPPER (i))
8174 rm -f conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178 *) ac_try_echo=$ac_try;;
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_link") 2>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8185 { (case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_try") 2>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8196 echo "$as_me: program exited with status $ac_status" >&5
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_cv_header_stdc=no
8203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8209 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8210 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8211 if test $ac_cv_header_stdc = yes; then
8213 cat >>confdefs.h <<\_ACEOF
8214 #define STDC_HEADERS 1
8219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8230 inttypes.h stdint.h unistd.h
8232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 $ac_includes_default
8246 #include <$ac_header>
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8265 eval "$as_ac_Header=yes"
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270 eval "$as_ac_Header=no"
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 ac_res=`eval echo '${'$as_ac_Header'}'`
8276 { echo "$as_me:$LINENO: result: $ac_res" >&5
8277 echo "${ECHO_T}$ac_res" >&6; }
8278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8279 cat >>confdefs.h <<_ACEOF
8280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8289 for ac_header in dlfcn.h
8291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 $ac_includes_default
8305 #include <$ac_header>
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
8324 eval "$as_ac_Header=yes"
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 eval "$as_ac_Header=no"
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8338 cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8349 ac_cpp='$CXXCPP $CPPFLAGS'
8350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8353 if test -z "$CXX"; then
8354 if test -n "$CCC"; then
8357 if test -n "$ac_tool_prefix"; then
8358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364 if test "${ac_cv_prog_CXX+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 if test -n "$CXX"; then
8368 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 if test -n "$CXX"; then
8389 { echo "$as_me:$LINENO: result: $CXX" >&5
8390 echo "${ECHO_T}$CXX" >&6; }
8392 { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8397 test -n "$CXX" && break
8400 if test -z "$CXX"; then
8402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 if test -n "$ac_ct_CXX"; then
8412 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_ac_ct_CXX="$ac_prog"
8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8432 if test -n "$ac_ct_CXX"; then
8433 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8434 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8436 { echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6; }
8441 test -n "$ac_ct_CXX" && break
8444 if test "x$ac_ct_CXX" = x; then
8447 case $cross_compiling:$ac_tool_warned in
8449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8450 whose name does not start with the host triplet. If you think this
8451 configuration is useful to you, please write to autoconf@gnu.org." >&5
8452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8453 whose name does not start with the host triplet. If you think this
8454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8455 ac_tool_warned=yes ;;
8463 # Provide some information about the compiler.
8464 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8465 ac_compiler=`set X $ac_compile; echo $2`
8466 { (ac_try="$ac_compiler --version >&5"
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_compiler --version >&5") 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }
8476 { (ac_try="$ac_compiler -v >&5"
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compiler -v >&5") 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }
8486 { (ac_try="$ac_compiler -V >&5"
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compiler -V >&5") 2>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }
8497 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8498 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8499 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_cxx_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8549 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8550 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8551 GXX=`test $ac_compiler_gnu = yes && echo yes`
8552 ac_test_CXXFLAGS=${CXXFLAGS+set}
8553 ac_save_CXXFLAGS=$CXXFLAGS
8554 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8555 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8556 if test "${ac_cv_prog_cxx_g+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8560 ac_cxx_werror_flag=yes
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_compile") 2>conftest.er1
8587 grep -v '^ *+' conftest.er1 >conftest.err
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && {
8592 test -z "$ac_cxx_werror_flag" ||
8593 test ! -s conftest.err
8594 } && test -s conftest.$ac_objext; then
8595 ac_cv_prog_cxx_g=yes
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8601 cat >conftest.$ac_ext <<_ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_compile") 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && {
8630 test -z "$ac_cxx_werror_flag" ||
8631 test ! -s conftest.err
8632 } && test -s conftest.$ac_objext; then
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8640 cat >conftest.$ac_ext <<_ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_cxx_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_cv_prog_cxx_g=yes
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8690 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8691 if test "$ac_test_CXXFLAGS" = set; then
8692 CXXFLAGS=$ac_save_CXXFLAGS
8693 elif test $ac_cv_prog_cxx_g = yes; then
8694 if test "$GXX" = yes; then
8700 if test "$GXX" = yes; then
8707 ac_cpp='$CXXCPP $CPPFLAGS'
8708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8712 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8713 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8714 (test "X$CXX" != "Xg++"))) ; then
8716 ac_cpp='$CXXCPP $CPPFLAGS'
8717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8720 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8721 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8722 if test -z "$CXXCPP"; then
8723 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 # Double quotes because CXXCPP needs to be expanded
8727 for CXXCPP in "$CXX -E" "/lib/cpp"
8730 for ac_cxx_preproc_warn_flag in '' yes
8732 # Use a header file that comes with gcc, so configuring glibc
8733 # with a fresh cross-compiler works.
8734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8735 # <limits.h> exists even on freestanding compilers.
8736 # On the NeXT, cc -E runs the code through the compiler's parser,
8737 # not just through cpp. "Syntax error" is here to catch this case.
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8745 # include <limits.h>
8747 # include <assert.h>
8751 if { (ac_try="$ac_cpp conftest.$ac_ext"
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } >/dev/null && {
8764 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8765 test ! -s conftest.err
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 # Broken: fails on valid input.
8776 rm -f conftest.err conftest.$ac_ext
8778 # OK, works on sane cases. Now check whether nonexistent headers
8779 # can be detected and how.
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 #include <ac_nonexistent.h>
8788 if { (ac_try="$ac_cpp conftest.$ac_ext"
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8796 grep -v '^ *+' conftest.er1 >conftest.err
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } >/dev/null && {
8801 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8802 test ! -s conftest.err
8804 # Broken: success on invalid input.
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 # Passes both tests.
8815 rm -f conftest.err conftest.$ac_ext
8818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8819 rm -f conftest.err conftest.$ac_ext
8820 if $ac_preproc_ok; then
8825 ac_cv_prog_CXXCPP=$CXXCPP
8828 CXXCPP=$ac_cv_prog_CXXCPP
8830 ac_cv_prog_CXXCPP=$CXXCPP
8832 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8833 echo "${ECHO_T}$CXXCPP" >&6; }
8835 for ac_cxx_preproc_warn_flag in '' yes
8837 # Use a header file that comes with gcc, so configuring glibc
8838 # with a fresh cross-compiler works.
8839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8840 # <limits.h> exists even on freestanding compilers.
8841 # On the NeXT, cc -E runs the code through the compiler's parser,
8842 # not just through cpp. "Syntax error" is here to catch this case.
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8850 # include <limits.h>
8852 # include <assert.h>
8856 if { (ac_try="$ac_cpp conftest.$ac_ext"
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8864 grep -v '^ *+' conftest.er1 >conftest.err
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } >/dev/null && {
8869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8870 test ! -s conftest.err
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 # Broken: fails on valid input.
8881 rm -f conftest.err conftest.$ac_ext
8883 # OK, works on sane cases. Now check whether nonexistent headers
8884 # can be detected and how.
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 #include <ac_nonexistent.h>
8893 if { (ac_try="$ac_cpp conftest.$ac_ext"
8895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1 >conftest.err
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } >/dev/null && {
8906 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8907 test ! -s conftest.err
8909 # Broken: success on invalid input.
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 # Passes both tests.
8920 rm -f conftest.err conftest.$ac_ext
8923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8924 rm -f conftest.err conftest.$ac_ext
8925 if $ac_preproc_ok; then
8928 _lt_caught_CXX_error=yes
8932 ac_cpp='$CXXCPP $CPPFLAGS'
8933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8938 _lt_caught_CXX_error=yes
8946 # Check whether --enable-shared was given.
8947 if test "${enable_shared+set}" = set; then
8948 enableval=$enable_shared; p=${PACKAGE-default}
8950 yes) enable_shared=yes ;;
8951 no) enable_shared=no ;;
8954 # Look at the argument we got. We use all the common list separators.
8955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8956 for pkg in $enableval; do
8958 if test "X$pkg" = "X$p"; then
8975 # Check whether --enable-static was given.
8976 if test "${enable_static+set}" = set; then
8977 enableval=$enable_static; p=${PACKAGE-default}
8979 yes) enable_static=yes ;;
8980 no) enable_static=no ;;
8983 # Look at the argument we got. We use all the common list separators.
8984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8985 for pkg in $enableval; do
8987 if test "X$pkg" = "X$p"; then
9016 # Check whether --with-pic was given.
9017 if test "${with_pic+set}" = set; then
9018 withval=$with_pic; pic_mode="$withval"
9024 test -z "$pic_mode" && pic_mode=default
9032 # Check whether --enable-fast-install was given.
9033 if test "${enable_fast_install+set}" = set; then
9034 enableval=$enable_fast_install; p=${PACKAGE-default}
9036 yes) enable_fast_install=yes ;;
9037 no) enable_fast_install=no ;;
9039 enable_fast_install=no
9040 # Look at the argument we got. We use all the common list separators.
9041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9042 for pkg in $enableval; do
9044 if test "X$pkg" = "X$p"; then
9045 enable_fast_install=yes
9052 enable_fast_install=yes
9065 # This can be used to rebuild libtool when needed
9066 LIBTOOL_DEPS="$ltmain"
9068 # Always use our own libtool.
9069 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9095 test -z "$LN_S" && LN_S="ln -s"
9110 if test -n "${ZSH_VERSION+set}" ; then
9111 setopt NO_GLOB_SUBST
9114 { echo "$as_me:$LINENO: checking for objdir" >&5
9115 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9116 if test "${lt_cv_objdir+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 rm -f .libs 2>/dev/null
9120 mkdir .libs 2>/dev/null
9121 if test -d .libs; then
9124 # MS-DOS does not allow filenames that begin with a dot.
9127 rmdir .libs 2>/dev/null
9129 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9130 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9131 objdir=$lt_cv_objdir
9137 cat >>confdefs.h <<_ACEOF
9138 #define LT_OBJDIR "$lt_cv_objdir/"
9159 # AIX sometimes has problems with the GCC collect2 program. For some
9160 # reason, if we set the COLLECT_NAMES environment variable, the problems
9161 # vanish in a puff of smoke.
9162 if test "X${COLLECT_NAMES+set}" != Xset; then
9164 export COLLECT_NAMES
9169 # Sed substitution that helps us do robust quoting. It backslashifies
9170 # metacharacters that are still active within double-quoted strings.
9171 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9173 # Same as above, but do not quote variable references.
9174 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9176 # Sed substitution to delay expansion of an escaped shell variable in a
9177 # double_quote_subst'ed string.
9178 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9180 # Sed substitution to delay expansion of an escaped single quote.
9181 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9183 # Sed substitution to avoid accidental globbing in evaled expressions
9184 no_glob_subst='s/\*/\\\*/g'
9188 can_build_shared=yes
9190 # All known linkers require a `.a' archive for static linking (except MSVC,
9191 # which needs '.lib').
9194 with_gnu_ld="$lt_cv_prog_gnu_ld"
9197 old_CFLAGS="$CFLAGS"
9199 # Set sane defaults for various variables
9200 test -z "$CC" && CC=cc
9201 test -z "$LTCC" && LTCC=$CC
9202 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9203 test -z "$LD" && LD=ld
9204 test -z "$ac_objext" && ac_objext=o
9206 for cc_temp in $compiler""; do
9208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9214 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9217 # Only perform the check for file, if the check method requires it
9218 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9219 case $deplibs_check_method in
9221 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9222 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9232 lt_save_MAGIC_CMD="$MAGIC_CMD"
9233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9235 for ac_dir in $ac_dummy; do
9237 test -z "$ac_dir" && ac_dir=.
9238 if test -f $ac_dir/${ac_tool_prefix}file; then
9239 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9240 if test -n "$file_magic_test_file"; then
9241 case $deplibs_check_method in
9243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9246 $EGREP "$file_magic_regex" > /dev/null; then
9251 *** Warning: the command libtool uses to detect shared libraries,
9252 *** $file_magic_cmd, produces output that libtool cannot recognize.
9253 *** The result is that libtool may fail to recognize shared libraries
9254 *** as such. This will affect the creation of libtool libraries that
9255 *** depend on shared libraries, but programs linked with such libtool
9256 *** libraries will work regardless of this problem. Nevertheless, you
9257 *** may want to report the problem to your system manager and/or to
9258 *** bug-libtool@gnu.org
9268 MAGIC_CMD="$lt_save_MAGIC_CMD"
9273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9274 if test -n "$MAGIC_CMD"; then
9275 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9278 { echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6; }
9286 if test -z "$lt_cv_path_MAGIC_CMD"; then
9287 if test -n "$ac_tool_prefix"; then
9288 { echo "$as_me:$LINENO: checking for file" >&5
9289 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9290 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9298 lt_save_MAGIC_CMD="$MAGIC_CMD"
9299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9301 for ac_dir in $ac_dummy; do
9303 test -z "$ac_dir" && ac_dir=.
9304 if test -f $ac_dir/file; then
9305 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9306 if test -n "$file_magic_test_file"; then
9307 case $deplibs_check_method in
9309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9312 $EGREP "$file_magic_regex" > /dev/null; then
9317 *** Warning: the command libtool uses to detect shared libraries,
9318 *** $file_magic_cmd, produces output that libtool cannot recognize.
9319 *** The result is that libtool may fail to recognize shared libraries
9320 *** as such. This will affect the creation of libtool libraries that
9321 *** depend on shared libraries, but programs linked with such libtool
9322 *** libraries will work regardless of this problem. Nevertheless, you
9323 *** may want to report the problem to your system manager and/or to
9324 *** bug-libtool@gnu.org
9334 MAGIC_CMD="$lt_save_MAGIC_CMD"
9339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9340 if test -n "$MAGIC_CMD"; then
9341 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9342 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9344 { echo "$as_me:$LINENO: result: no" >&5
9345 echo "${ECHO_T}no" >&6; }
9358 # Use C for the default configuration in the libtool script
9362 ac_cpp='$CPP $CPPFLAGS'
9363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9368 # Source file extension for C test sources.
9371 # Object file extension for compiled C test sources.
9375 # Code to be used in simple compile tests
9376 lt_simple_compile_test_code="int some_variable = 0;"
9378 # Code to be used in simple link tests
9379 lt_simple_link_test_code='int main(){return(0);}'
9387 # If no C compiler was specified, use CC.
9390 # If no C compiler flags were specified, use CFLAGS.
9391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9393 # Allow CC to be a program name with arguments.
9396 # Save the default compiler, since it gets overwritten when the other
9397 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9398 compiler_DEFAULT=$CC
9400 # save warnings/boilerplate of simple test code
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_compiler_boilerplate=`cat conftest.err`
9407 ac_outfile=conftest.$ac_objext
9408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9410 _lt_linker_boilerplate=`cat conftest.err`
9415 ## There is no encapsulation within the following macros, do not change
9416 ## the running order or otherwise move them around unless you know exactly
9417 ## what you are doing...
9418 if test -n "$compiler"; then
9420 lt_prog_compiler_no_builtin_flag=
9422 if test "$GCC" = yes; then
9423 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9425 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9426 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9427 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 lt_cv_prog_compiler_rtti_exceptions=no
9431 ac_outfile=conftest.$ac_objext
9432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9433 lt_compiler_flag="-fno-rtti -fno-exceptions"
9434 # Insert the option either (1) after the last *FLAGS variable, or
9435 # (2) before a word containing "conftest.", or (3) at the end.
9436 # Note that $ac_compile itself does not contain backslashes and begins
9437 # with a dollar sign (not a hyphen), so the echo should work correctly.
9438 # The option is referenced via a variable to avoid confusing sed.
9439 lt_compile=`echo "$ac_compile" | $SED \
9440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9442 -e 's:$: $lt_compiler_flag:'`
9443 (eval echo "\"\$as_me:9443: $lt_compile\"" >&5)
9444 (eval "$lt_compile" 2>conftest.err)
9446 cat conftest.err >&5
9447 echo "$as_me:9447: \$? = $ac_status" >&5
9448 if (exit $ac_status) && test -s "$ac_outfile"; then
9449 # The compiler can only warn and ignore the option if not recognized
9450 # So say no if there are warnings other than the usual output.
9451 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler_rtti_exceptions=yes
9460 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9461 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9463 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9464 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9476 lt_prog_compiler_wl=
9477 lt_prog_compiler_pic=
9478 lt_prog_compiler_static=
9480 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9483 if test "$GCC" = yes; then
9484 lt_prog_compiler_wl='-Wl,'
9485 lt_prog_compiler_static='-static'
9489 # All AIX code is PIC.
9490 if test "$host_cpu" = ia64; then
9491 # AIX 5 now supports IA64 processor
9492 lt_prog_compiler_static='-Bstatic'
9499 # see comment about AmigaOS4 .so support
9500 lt_prog_compiler_pic='-fPIC'
9503 # FIXME: we need at least 68020 code to build shared libraries, but
9504 # adding the `-m68020' flag to GCC prevents building anything better,
9506 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9511 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9512 # PIC is the default for these OSes.
9515 mingw* | cygwin* | pw32* | os2* | cegcc*)
9516 # This hack is so that the source file can tell whether it is being
9517 # built for inclusion in a dll (and should export symbols for example).
9518 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9519 # (--disable-auto-import) libraries
9520 lt_prog_compiler_pic='-DDLL_EXPORT'
9523 darwin* | rhapsody*)
9524 # PIC is the default on this platform
9525 # Common symbols not allowed in MH_DYLIB files
9526 lt_prog_compiler_pic='-fno-common'
9530 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9531 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9532 # sets the default TLS model and affects inlining.
9538 lt_prog_compiler_pic='-fPIC'
9544 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9545 # Instead, we relocate shared libraries at runtime.
9549 # Just because we use GCC doesn't mean we suddenly get shared libraries
9550 # on systems that don't support them.
9551 lt_prog_compiler_can_build_shared=no
9556 # QNX uses GNU C++, but need to define -shared option too, otherwise
9558 lt_prog_compiler_pic='-fPIC -shared'
9562 if test -d /usr/nec; then
9563 lt_prog_compiler_pic=-Kconform_pic
9568 lt_prog_compiler_pic='-fPIC'
9572 # PORTME Check for flag to pass linker flags through the system compiler.
9575 lt_prog_compiler_wl='-Wl,'
9576 if test "$host_cpu" = ia64; then
9577 # AIX 5 now supports IA64 processor
9578 lt_prog_compiler_static='-Bstatic'
9580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9584 mingw* | cygwin* | pw32* | os2* | cegcc*)
9585 # This hack is so that the source file can tell whether it is being
9586 # built for inclusion in a dll (and should export symbols for example).
9587 lt_prog_compiler_pic='-DDLL_EXPORT'
9590 hpux9* | hpux10* | hpux11*)
9591 lt_prog_compiler_wl='-Wl,'
9592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9599 lt_prog_compiler_pic='+Z'
9602 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9603 lt_prog_compiler_static='${wl}-a ${wl}archive'
9606 irix5* | irix6* | nonstopux*)
9607 lt_prog_compiler_wl='-Wl,'
9608 # PIC (with -KPIC) is the default.
9609 lt_prog_compiler_static='-non_shared'
9612 linux* | k*bsd*-gnu)
9613 case $cc_basename in
9614 # old Intel for x86_64 which still supported -KPIC.
9616 lt_prog_compiler_wl='-Wl,'
9617 lt_prog_compiler_pic='-KPIC'
9618 lt_prog_compiler_static='-static'
9620 # icc used to be incompatible with GCC.
9621 # ICC 10 doesn't accept -KPIC any more.
9623 lt_prog_compiler_wl='-Wl,'
9624 lt_prog_compiler_pic='-fPIC'
9625 lt_prog_compiler_static='-static'
9627 # Lahey Fortran 8.1.
9629 lt_prog_compiler_wl='-Wl,'
9630 lt_prog_compiler_pic='--shared'
9631 lt_prog_compiler_static='--static'
9633 pgcc* | pgf77* | pgf90* | pgf95*)
9634 # Portland Group compilers (*not* the Pentium gcc compiler,
9635 # which looks to be a dead project)
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-fpic'
9638 lt_prog_compiler_static='-Bstatic'
9641 lt_prog_compiler_wl='-Wl,'
9642 # All Alpha code is PIC.
9643 lt_prog_compiler_static='-non_shared'
9646 # IBM XL C 8.0/Fortran 10.1 on PPC
9647 lt_prog_compiler_wl='-Wl,'
9648 lt_prog_compiler_pic='-qpic'
9649 lt_prog_compiler_static='-qstaticlink'
9652 case `$CC -V 2>&1 | sed 5q` in
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 lt_prog_compiler_wl='-Wl,'
9660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9661 lt_prog_compiler_pic='-KPIC'
9662 lt_prog_compiler_static='-Bstatic'
9663 lt_prog_compiler_wl=''
9671 lt_prog_compiler_pic='-KPIC'
9672 lt_prog_compiler_static='-Bstatic'
9676 # QNX uses GNU C++, but need to define -shared option too, otherwise
9678 lt_prog_compiler_pic='-fPIC -shared'
9681 osf3* | osf4* | osf5*)
9682 lt_prog_compiler_wl='-Wl,'
9683 # All OSF/1 code is PIC.
9684 lt_prog_compiler_static='-non_shared'
9688 lt_prog_compiler_static='-non_shared'
9692 lt_prog_compiler_pic='-KPIC'
9693 lt_prog_compiler_static='-Bstatic'
9694 case $cc_basename in
9696 lt_prog_compiler_wl='-Qoption ld ';;
9698 lt_prog_compiler_wl='-Wl,';;
9703 lt_prog_compiler_wl='-Qoption ld '
9704 lt_prog_compiler_pic='-PIC'
9705 lt_prog_compiler_static='-Bstatic'
9708 sysv4 | sysv4.2uw2* | sysv4.3*)
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_pic='-KPIC'
9711 lt_prog_compiler_static='-Bstatic'
9715 if test -d /usr/nec ;then
9716 lt_prog_compiler_pic='-Kconform_pic'
9717 lt_prog_compiler_static='-Bstatic'
9721 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-KPIC'
9724 lt_prog_compiler_static='-Bstatic'
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_can_build_shared=no
9733 lt_prog_compiler_pic='-pic'
9734 lt_prog_compiler_static='-Bstatic'
9738 lt_prog_compiler_can_build_shared=no
9744 # For platforms which do not support PIC, -DPIC is meaningless:
9746 lt_prog_compiler_pic=
9749 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9752 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9753 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9761 # Check to make sure the PIC flag actually works.
9763 if test -n "$lt_prog_compiler_pic"; then
9764 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9766 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 lt_cv_prog_compiler_pic_works=no
9770 ac_outfile=conftest.$ac_objext
9771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9772 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9773 # Insert the option either (1) after the last *FLAGS variable, or
9774 # (2) before a word containing "conftest.", or (3) at the end.
9775 # Note that $ac_compile itself does not contain backslashes and begins
9776 # with a dollar sign (not a hyphen), so the echo should work correctly.
9777 # The option is referenced via a variable to avoid confusing sed.
9778 lt_compile=`echo "$ac_compile" | $SED \
9779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9781 -e 's:$: $lt_compiler_flag:'`
9782 (eval echo "\"\$as_me:9782: $lt_compile\"" >&5)
9783 (eval "$lt_compile" 2>conftest.err)
9785 cat conftest.err >&5
9786 echo "$as_me:9786: \$? = $ac_status" >&5
9787 if (exit $ac_status) && test -s "$ac_outfile"; then
9788 # The compiler can only warn and ignore the option if not recognized
9789 # So say no if there are warnings other than the usual output.
9790 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9793 lt_cv_prog_compiler_pic_works=yes
9799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9800 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9802 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9803 case $lt_prog_compiler_pic in
9805 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9808 lt_prog_compiler_pic=
9809 lt_prog_compiler_can_build_shared=no
9820 # Check to make sure the static flag actually works.
9822 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9823 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9824 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9825 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 lt_cv_prog_compiler_static_works=no
9829 save_LDFLAGS="$LDFLAGS"
9830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9831 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9833 # The linker can only warn and ignore the option if not recognized
9834 # So say no if there are warnings
9835 if test -s conftest.err; then
9836 # Append any errors to the config.log.
9837 cat conftest.err 1>&5
9838 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9840 if diff conftest.exp conftest.er2 >/dev/null; then
9841 lt_cv_prog_compiler_static_works=yes
9844 lt_cv_prog_compiler_static_works=yes
9848 LDFLAGS="$save_LDFLAGS"
9851 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9852 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9854 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9857 lt_prog_compiler_static=
9866 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9868 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 lt_cv_prog_compiler_c_o=no
9872 $RM -r conftest 2>/dev/null
9876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9878 lt_compiler_flag="-o out/conftest2.$ac_objext"
9879 # Insert the option either (1) after the last *FLAGS variable, or
9880 # (2) before a word containing "conftest.", or (3) at the end.
9881 # Note that $ac_compile itself does not contain backslashes and begins
9882 # with a dollar sign (not a hyphen), so the echo should work correctly.
9883 lt_compile=`echo "$ac_compile" | $SED \
9884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886 -e 's:$: $lt_compiler_flag:'`
9887 (eval echo "\"\$as_me:9887: $lt_compile\"" >&5)
9888 (eval "$lt_compile" 2>out/conftest.err)
9890 cat out/conftest.err >&5
9891 echo "$as_me:9891: \$? = $ac_status" >&5
9892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9894 # The compiler can only warn and ignore the option if not recognized
9895 # So say no if there are warnings
9896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9899 lt_cv_prog_compiler_c_o=yes
9904 # SGI C++ compiler will create directory out/ii_files/ for
9905 # template instantiation
9906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9907 $RM out/* && rmdir out
9913 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9921 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9923 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 lt_cv_prog_compiler_c_o=no
9927 $RM -r conftest 2>/dev/null
9931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9933 lt_compiler_flag="-o out/conftest2.$ac_objext"
9934 # Insert the option either (1) after the last *FLAGS variable, or
9935 # (2) before a word containing "conftest.", or (3) at the end.
9936 # Note that $ac_compile itself does not contain backslashes and begins
9937 # with a dollar sign (not a hyphen), so the echo should work correctly.
9938 lt_compile=`echo "$ac_compile" | $SED \
9939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9941 -e 's:$: $lt_compiler_flag:'`
9942 (eval echo "\"\$as_me:9942: $lt_compile\"" >&5)
9943 (eval "$lt_compile" 2>out/conftest.err)
9945 cat out/conftest.err >&5
9946 echo "$as_me:9946: \$? = $ac_status" >&5
9947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9949 # The compiler can only warn and ignore the option if not recognized
9950 # So say no if there are warnings
9951 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler_c_o=yes
9959 # SGI C++ compiler will create directory out/ii_files/ for
9960 # template instantiation
9961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9962 $RM out/* && rmdir out
9968 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9974 hard_links="nottested"
9975 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9976 # do not overwrite the value of need_locks provided by the user
9977 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9983 ln conftest.a conftest.b 2>&5 || hard_links=no
9984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9985 { echo "$as_me:$LINENO: result: $hard_links" >&5
9986 echo "${ECHO_T}$hard_links" >&6; }
9987 if test "$hard_links" = no; then
9988 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10001 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10005 allow_undefined_flag=
10006 always_export_symbols=no
10008 archive_expsym_cmds=
10009 compiler_needs_object=no
10010 enable_shared_with_static_runtimes=no
10011 export_dynamic_flag_spec=
10012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10013 hardcode_automatic=no
10015 hardcode_direct_absolute=no
10016 hardcode_libdir_flag_spec=
10017 hardcode_libdir_flag_spec_ld=
10018 hardcode_libdir_separator=
10019 hardcode_minus_L=no
10020 hardcode_shlibpath_var=unsupported
10022 link_all_deplibs=unknown
10024 module_expsym_cmds=
10025 old_archive_from_new_cmds=
10026 old_archive_from_expsyms_cmds=
10027 thread_safe_flag_spec=
10028 whole_archive_flag_spec=
10029 # include_expsyms should be a list of space-separated symbols to be *always*
10030 # included in the symbol list
10032 # exclude_expsyms can be an extended regexp of symbols to exclude
10033 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10035 # as well as any symbol that contains `d'.
10036 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10038 # platforms (ab)use it in PIC code, but their linkers get confused if
10039 # the symbol is explicitly referenced. Since portable code cannot
10040 # rely on this symbol name, it's probably fine to never include it in
10041 # preloaded symbol tables.
10042 # Exclude shared library initialization/finalization symbols.
10043 extract_expsyms_cmds=
10046 cygwin* | mingw* | pw32* | cegcc*)
10047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10048 # When not using gcc, we currently assume that we are using
10049 # Microsoft Visual C++.
10050 if test "$GCC" != yes; then
10055 # we just hope/assume this is gcc and not c89 (= MSVC++)
10064 if test "$with_gnu_ld" = yes; then
10065 # If archive_cmds runs LD, not CC, wlarc should be empty
10068 # Set some defaults for GNU ld with shared library support. These
10069 # are reset later if shared libraries are not supported. Putting them
10070 # here allows them to be overridden if necessary.
10071 runpath_var=LD_RUN_PATH
10072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073 export_dynamic_flag_spec='${wl}--export-dynamic'
10074 # ancient GNU ld didn't support --whole-archive et. al.
10075 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10076 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10078 whole_archive_flag_spec=
10080 supports_anon_versioning=no
10081 case `$LD -v 2>&1` in
10082 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10083 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10084 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10085 *\ 2.11.*) ;; # other 2.11 versions
10086 *) supports_anon_versioning=yes ;;
10089 # See if GNU ld supports shared libraries.
10092 # On AIX/PPC, the GNU linker is very broken
10093 if test "$host_cpu" != ia64; then
10097 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10098 *** to be unable to reliably create shared libraries on AIX.
10099 *** Therefore, libtool is disabling shared libraries support. If you
10100 *** really care for shared libraries, you may want to modify your PATH
10101 *** so that a non-GNU linker is found, and then restart.
10110 # see comment about AmigaOS4 .so support
10111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112 archive_expsym_cmds=''
10115 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)'
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_minus_L=yes
10123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10124 allow_undefined_flag=unsupported
10125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10126 # support --undefined. This deserves some investigation. FIXME
10127 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10133 cygwin* | mingw* | pw32* | cegcc*)
10134 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10135 # as there is no search path for DLLs.
10136 hardcode_libdir_flag_spec='-L$libdir'
10137 allow_undefined_flag=unsupported
10138 always_export_symbols=no
10139 enable_shared_with_static_runtimes=yes
10140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10142 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10144 # If the export-symbols file already is a .def file (1st line
10145 # is EXPORTS), use it as is; otherwise, prepend...
10146 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10147 cp $export_symbols $output_objdir/$soname.def;
10149 echo EXPORTS > $output_objdir/$soname.def;
10150 cat $export_symbols >> $output_objdir/$soname.def;
10152 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10160 hardcode_shlibpath_var=no
10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10162 export_dynamic_flag_spec='${wl}-E'
10163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10164 # Instead, shared libraries are loaded at an image base (0x10000000 by
10165 # default) and relocated if they conflict, which is a slow very memory
10166 # consuming and fragmenting process. To avoid this, we pick a random,
10167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10170 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'
10173 gnu* | linux* | tpf* | k*bsd*-gnu)
10175 if test "$host_os" = linux-dietlibc; then
10176 case $cc_basename in
10177 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10180 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10181 && test "$tmp_diet" = no
10184 tmp_sharedflag='-shared'
10185 case $cc_basename,$host_cpu in
10186 pgcc*) # Portland Group C compiler
10187 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'
10188 tmp_addflag=' $pic_flag'
10190 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10191 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'
10192 tmp_addflag=' $pic_flag -Mnomain' ;;
10193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10194 tmp_addflag=' -i_dynamic' ;;
10195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10196 tmp_addflag=' -i_dynamic -nofor_main' ;;
10197 ifc* | ifort*) # Intel Fortran compiler
10198 tmp_addflag=' -nofor_main' ;;
10199 lf95*) # Lahey Fortran 8.1
10200 whole_archive_flag_spec=
10201 tmp_sharedflag='--shared' ;;
10202 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10203 tmp_sharedflag='-qmkshrobj'
10206 case `$CC -V 2>&1 | sed 5q` in
10207 *Sun\ C*) # Sun C 5.9
10208 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'
10209 compiler_needs_object=yes
10210 tmp_sharedflag='-G' ;;
10211 *Sun\ F*) # Sun Fortran 8.3
10212 tmp_sharedflag='-G' ;;
10214 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10216 if test "x$supports_anon_versioning" = xyes; then
10217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10219 echo "local: *; };" >> $output_objdir/$libname.ver~
10220 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10223 case $cc_basename in
10225 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10226 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10227 hardcode_libdir_flag_spec=
10228 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10229 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10230 if test "x$supports_anon_versioning" = xyes; then
10231 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10233 echo "local: *; };" >> $output_objdir/$libname.ver~
10234 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10245 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10254 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10259 *** create shared libraries on Solaris systems. Therefore, libtool
10260 *** is disabling shared libraries support. We urge you to upgrade GNU
10261 *** binutils to release 2.9.1 or newer. Another option is to modify
10262 *** your PATH or compiler configuration so that the native linker is
10263 *** used, and then restart.
10266 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10275 case `$LD -v 2>&1` in
10276 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10280 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10281 *** reliably create shared libraries on SCO systems. Therefore, libtool
10282 *** is disabling shared libraries support. We urge you to upgrade GNU
10283 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10284 *** your PATH or compiler configuration so that the native linker is
10285 *** used, and then restart.
10290 # For security reasons, it is highly recommended that you always
10291 # use absolute paths for naming shared libraries, and exclude the
10292 # DT_RUNPATH tag from executables and libraries. But doing so
10293 # requires that you compile everything twice, which is a pain.
10294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10306 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10308 hardcode_direct=yes
10309 hardcode_shlibpath_var=no
10313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10322 if test "$ld_shlibs" = no; then
10324 hardcode_libdir_flag_spec=
10325 export_dynamic_flag_spec=
10326 whole_archive_flag_spec=
10329 # PORTME fill in a description of your system's linker (not GNU ld)
10332 allow_undefined_flag=unsupported
10333 always_export_symbols=yes
10334 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'
10335 # Note: this linker hardcodes the directories in LIBPATH if there
10336 # are no directories specified by -L.
10337 hardcode_minus_L=yes
10338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10339 # Neither direct hardcoding nor static linking is supported with a
10341 hardcode_direct=unsupported
10346 if test "$host_cpu" = ia64; then
10347 # On IA64, the linker does run time linking by default, so we don't
10348 # have to do anything special.
10349 aix_use_runtimelinking=no
10350 exp_sym_flag='-Bexport'
10353 # If we're using GNU nm, then we don't want the "-C" option.
10354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10355 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10356 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'
10358 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'
10360 aix_use_runtimelinking=no
10362 # Test if we are trying to use run time linking or normal
10363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10364 # need to do runtime linking.
10365 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10366 for ld_flag in $LDFLAGS; do
10367 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10368 aix_use_runtimelinking=yes
10375 exp_sym_flag='-bexport'
10376 no_entry_flag='-bnoentry'
10379 # When large executables or shared objects are built, AIX ld can
10380 # have problems creating the table of contents. If linking a library
10381 # or program results in "error TOC overflow" add -mminimal-toc to
10382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10386 hardcode_direct=yes
10387 hardcode_direct_absolute=yes
10388 hardcode_libdir_separator=':'
10389 link_all_deplibs=yes
10390 file_list_spec='${wl}-f,'
10392 if test "$GCC" = yes; then
10393 case $host_os in aix4.[012]|aix4.[012].*)
10394 # We only want to do this on AIX 4.2 and lower, the check
10395 # below for broken collect2 doesn't work under 4.3+
10396 collect2name=`${CC} -print-prog-name=collect2`
10397 if test -f "$collect2name" &&
10398 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10400 # We have reworked collect2
10403 # We have old collect2
10404 hardcode_direct=unsupported
10405 # It fails to find uninstalled libraries when the uninstalled
10406 # path is not listed in the libpath. Setting hardcode_minus_L
10407 # to unsupported forces relinking
10408 hardcode_minus_L=yes
10409 hardcode_libdir_flag_spec='-L$libdir'
10410 hardcode_libdir_separator=
10414 shared_flag='-shared'
10415 if test "$aix_use_runtimelinking" = yes; then
10416 shared_flag="$shared_flag "'${wl}-G'
10420 if test "$host_cpu" = ia64; then
10421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10422 # chokes on -Wl,-G. The following line is correct:
10425 if test "$aix_use_runtimelinking" = yes; then
10426 shared_flag='${wl}-G'
10428 shared_flag='${wl}-bM:SRE'
10433 export_dynamic_flag_spec='${wl}-bexpall'
10434 # It seems that -bexpall does not export symbols beginning with
10435 # underscore (_), so it is better to generate a list of symbols to export.
10436 always_export_symbols=yes
10437 if test "$aix_use_runtimelinking" = yes; then
10438 # Warning - without using the other runtime loading flags (-brtl),
10439 # -berok will link without error, but may produce a broken library.
10440 allow_undefined_flag='-berok'
10441 # Determine the default libpath from the value encoded in an
10442 # empty executable.
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_link") 2>conftest.er1
10467 grep -v '^ *+' conftest.er1 >conftest.err
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } && {
10472 test -z "$ac_c_werror_flag" ||
10473 test ! -s conftest.err
10474 } && test -s conftest$ac_exeext &&
10475 $as_test_x conftest$ac_exeext; then
10477 lt_aix_libpath_sed='
10478 /Import File Strings/,/^$/ {
10484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10485 # Check for a 64-bit object if we didn't find anything.
10486 if test -z "$aix_libpath"; then
10487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10501 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"
10503 if test "$host_cpu" = ia64; then
10504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10505 allow_undefined_flag="-z nodefs"
10506 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"
10508 # Determine the default libpath from the value encoded in an
10509 # empty executable.
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_link") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest$ac_exeext &&
10542 $as_test_x conftest$ac_exeext; then
10544 lt_aix_libpath_sed='
10545 /Import File Strings/,/^$/ {
10551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10552 # Check for a 64-bit object if we didn't find anything.
10553 if test -z "$aix_libpath"; then
10554 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10564 conftest$ac_exeext conftest.$ac_ext
10565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10568 # Warning - without using the other run time loading flags,
10569 # -berok will link without error, but may produce a broken library.
10570 no_undefined_flag=' ${wl}-bernotok'
10571 allow_undefined_flag=' ${wl}-berok'
10572 # Exported symbols can be pulled into shared objects from archives
10573 whole_archive_flag_spec='$convenience'
10574 archive_cmds_need_lc=yes
10575 # This is similar to how AIX traditionally builds its shared libraries.
10576 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'
10584 # see comment about AmigaOS4 .so support
10585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10586 archive_expsym_cmds=''
10589 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)'
10590 hardcode_libdir_flag_spec='-L$libdir'
10591 hardcode_minus_L=yes
10597 export_dynamic_flag_spec=-rdynamic
10600 cygwin* | mingw* | pw32* | cegcc*)
10601 # When not using gcc, we currently assume that we are using
10602 # Microsoft Visual C++.
10603 # hardcode_libdir_flag_spec is actually meaningless, as there is
10604 # no search path for DLLs.
10605 hardcode_libdir_flag_spec=' '
10606 allow_undefined_flag=unsupported
10607 # Tell ltmain to make .lib files, not .a files.
10609 # Tell ltmain to make .dll files, not .so files.
10611 # FIXME: Setting linknames here is a bad hack.
10612 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10613 # The linker will automatically build a .lib file if we build a DLL.
10614 old_archive_from_new_cmds='true'
10615 # FIXME: Should let the user specify the lib program.
10616 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10617 fix_srcfile_path='`cygpath -w "$srcfile"`'
10618 enable_shared_with_static_runtimes=yes
10621 darwin* | rhapsody*)
10624 archive_cmds_need_lc=no
10626 hardcode_automatic=yes
10627 hardcode_shlibpath_var=unsupported
10628 whole_archive_flag_spec=''
10629 link_all_deplibs=yes
10630 allow_undefined_flag="$_lt_dar_allow_undefined"
10631 case $cc_basename in
10632 ifort*) _lt_dar_can_shared=yes ;;
10633 *) _lt_dar_can_shared=$GCC ;;
10635 if test "$_lt_dar_can_shared" = "yes"; then
10636 output_verbose_link_cmd=echo
10637 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10638 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10639 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}"
10640 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}"
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_libdir_flag_spec='-L$libdir'
10651 hardcode_shlibpath_var=no
10658 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10659 # support. Future versions do this automatically, but an explicit c++rt0.o
10660 # does not break anything, and helps significantly (at the cost of a little
10663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10664 hardcode_libdir_flag_spec='-R$libdir'
10665 hardcode_direct=yes
10666 hardcode_shlibpath_var=no
10669 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10672 hardcode_direct=yes
10673 hardcode_minus_L=yes
10674 hardcode_shlibpath_var=no
10677 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10678 freebsd* | dragonfly*)
10679 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10680 hardcode_libdir_flag_spec='-R$libdir'
10681 hardcode_direct=yes
10682 hardcode_shlibpath_var=no
10686 if test "$GCC" = yes; then
10687 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'
10689 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'
10691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10692 hardcode_libdir_separator=:
10693 hardcode_direct=yes
10695 # hardcode_minus_L: Not really in the search PATH,
10696 # but as the default location of the library.
10697 hardcode_minus_L=yes
10698 export_dynamic_flag_spec='${wl}-E'
10702 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10703 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10707 if test "$with_gnu_ld" = no; then
10708 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10709 hardcode_libdir_flag_spec_ld='+b $libdir'
10710 hardcode_libdir_separator=:
10711 hardcode_direct=yes
10712 hardcode_direct_absolute=yes
10713 export_dynamic_flag_spec='${wl}-E'
10714 # hardcode_minus_L: Not really in the search PATH,
10715 # but as the default location of the library.
10716 hardcode_minus_L=yes
10721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10724 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10739 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10742 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10746 if test "$with_gnu_ld" = no; then
10747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10748 hardcode_libdir_separator=:
10753 hardcode_shlibpath_var=no
10756 hardcode_direct=yes
10757 hardcode_direct_absolute=yes
10758 export_dynamic_flag_spec='${wl}-E'
10760 # hardcode_minus_L: Not really in the search PATH,
10761 # but as the default location of the library.
10762 hardcode_minus_L=yes
10768 irix5* | irix6* | nonstopux*)
10769 if test "$GCC" = yes; then
10770 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'
10771 # Try to use the -exported_symbol ld option, if it does not
10772 # work, assume that -exports_file does not work either and
10773 # implicitly export all symbols.
10774 save_LDFLAGS="$LDFLAGS"
10775 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10776 cat >conftest.$ac_ext <<_ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest$ac_exeext &&
10796 $as_test_x conftest$ac_exeext; then
10797 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'
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10807 conftest$ac_exeext conftest.$ac_ext
10808 LDFLAGS="$save_LDFLAGS"
10810 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'
10811 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'
10813 archive_cmds_need_lc='no'
10814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10815 hardcode_libdir_separator=:
10817 link_all_deplibs=yes
10821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10824 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10826 hardcode_libdir_flag_spec='-R$libdir'
10827 hardcode_direct=yes
10828 hardcode_shlibpath_var=no
10832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10833 hardcode_direct=yes
10834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10835 hardcode_libdir_separator=:
10836 hardcode_shlibpath_var=no
10843 if test -f /usr/libexec/ld.so; then
10844 hardcode_direct=yes
10845 hardcode_shlibpath_var=no
10846 hardcode_direct_absolute=yes
10847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10848 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10849 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10851 export_dynamic_flag_spec='${wl}-E'
10854 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10856 hardcode_libdir_flag_spec='-R$libdir'
10859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10870 hardcode_libdir_flag_spec='-L$libdir'
10871 hardcode_minus_L=yes
10872 allow_undefined_flag=unsupported
10873 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'
10874 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10878 if test "$GCC" = yes; then
10879 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10880 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'
10882 allow_undefined_flag=' -expect_unresolved \*'
10883 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'
10885 archive_cmds_need_lc='no'
10886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10887 hardcode_libdir_separator=:
10890 osf4* | osf5*) # as osf3* with the addition of -msym flag
10891 if test "$GCC" = yes; then
10892 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10893 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'
10894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10896 allow_undefined_flag=' -expect_unresolved \*'
10897 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'
10898 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~
10899 $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'
10901 # Both c and cxx compiler support -rpath directly
10902 hardcode_libdir_flag_spec='-rpath $libdir'
10904 archive_cmds_need_lc='no'
10905 hardcode_libdir_separator=:
10909 no_undefined_flag=' -z defs'
10910 if test "$GCC" = yes; then
10912 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10916 case `$CC -V 2>&1` in
10919 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10925 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10927 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10931 hardcode_libdir_flag_spec='-R$libdir'
10932 hardcode_shlibpath_var=no
10934 solaris2.[0-5] | solaris2.[0-5].*) ;;
10936 # The compiler driver will combine and reorder linker options,
10937 # but understands `-z linker_flag'. GCC discards it without `$wl',
10938 # but is careful enough not to reorder.
10939 # Supported since Solaris 2.6 (maybe 2.5.1?)
10940 if test "$GCC" = yes; then
10941 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10947 link_all_deplibs=yes
10951 if test "x$host_vendor" = xsequent; then
10952 # Use $CC to link under sequent, because it throws in some extra .o
10953 # files that make .init and .fini sections work.
10954 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10958 hardcode_libdir_flag_spec='-L$libdir'
10959 hardcode_direct=yes
10960 hardcode_minus_L=yes
10961 hardcode_shlibpath_var=no
10965 case $host_vendor in
10967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10968 hardcode_direct=yes # is this really true???
10971 ## LD is ld it makes a PLAMLIB
10972 ## CC just makes a GrossModule.
10973 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10974 reload_cmds='$CC -r -o $output$reload_objs'
10978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10982 runpath_var='LD_RUN_PATH'
10983 hardcode_shlibpath_var=no
10987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_shlibpath_var=no
10989 export_dynamic_flag_spec='-Bexport'
10993 if test -d /usr/nec; then
10994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995 hardcode_shlibpath_var=no
10996 runpath_var=LD_RUN_PATH
10997 hardcode_runpath_var=yes
11002 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11003 no_undefined_flag='${wl}-z,text'
11004 archive_cmds_need_lc=no
11005 hardcode_shlibpath_var=no
11006 runpath_var='LD_RUN_PATH'
11008 if test "$GCC" = yes; then
11009 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017 sysv5* | sco3.2v5* | sco5v6*)
11018 # Note: We can NOT use -z defs as we might desire, because we do not
11019 # link with -lc, and that would cause any symbols used from libc to
11020 # always be unresolved, which means just about no library would
11021 # ever link correctly. If we're not using GNU ld we use -z text
11022 # though, which does catch some bad symbols but isn't as heavy-handed
11024 no_undefined_flag='${wl}-z,text'
11025 allow_undefined_flag='${wl}-z,nodefs'
11026 archive_cmds_need_lc=no
11027 hardcode_shlibpath_var=no
11028 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11029 hardcode_libdir_separator=':'
11030 link_all_deplibs=yes
11031 export_dynamic_flag_spec='${wl}-Bexport'
11032 runpath_var='LD_RUN_PATH'
11034 if test "$GCC" = yes; then
11035 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11045 hardcode_libdir_flag_spec='-L$libdir'
11046 hardcode_shlibpath_var=no
11054 if test x$host_vendor = xsni; then
11056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11057 export_dynamic_flag_spec='${wl}-Blargedynsym'
11063 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11064 echo "${ECHO_T}$ld_shlibs" >&6; }
11065 test "$ld_shlibs" = no && can_build_shared=no
11067 with_gnu_ld=$with_gnu_ld
11084 # Do we need to explicitly link libc?
11086 case "x$archive_cmds_need_lc" in
11088 # Assume -lc should be added
11089 archive_cmds_need_lc=yes
11091 if test "$enable_shared" = yes && test "$GCC" = yes; then
11092 case $archive_cmds in
11094 # FIXME: we may have to deal with multi-command sequences.
11097 # Test whether the compiler implicitly links with -lc since on some
11098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11099 # to ld, don't add -lc before -lgcc.
11100 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11101 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106 (eval $ac_compile) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } 2>conftest.err; then
11112 libobjs=conftest.$ac_objext
11114 wl=$lt_prog_compiler_wl
11115 pic_flag=$lt_prog_compiler_pic
11121 lt_save_allow_undefined_flag=$allow_undefined_flag
11122 allow_undefined_flag=
11123 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11124 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }
11129 archive_cmds_need_lc=no
11131 archive_cmds_need_lc=yes
11133 allow_undefined_flag=$lt_save_allow_undefined_flag
11135 cat conftest.err 1>&5
11138 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11139 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11302 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11303 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11305 if test "$GCC" = yes; then
11307 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11308 *) lt_awk_arg="/^libraries:/" ;;
11310 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11311 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11312 # if the path contains ";" then we assume it to be the separator
11313 # otherwise default to the standard path separator (i.e. ":") - it is
11314 # assumed that no part of a normal pathname contains ";" but that should
11315 # okay in the real world where ";" in dirpaths is itself problematic.
11316 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11320 # Ok, now we have the path, separated by spaces, we can step through it
11321 # and add multilib dir if necessary.
11322 lt_tmp_lt_search_path_spec=
11323 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11324 for lt_sys_path in $lt_search_path_spec; do
11325 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11328 test -d "$lt_sys_path" && \
11329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11332 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11333 BEGIN {RS=" "; FS="/|\n";} {
11336 for (lt_i = NF; lt_i > 0; lt_i--) {
11337 if ($lt_i != "" && $lt_i != ".") {
11338 if ($lt_i == "..") {
11341 if (lt_count == 0) {
11342 lt_foo="/" $lt_i lt_foo;
11349 if (lt_foo != "") { lt_freq[lt_foo]++; }
11350 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11352 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11356 library_names_spec=
11357 libname_spec='lib$name'
11361 postuninstall_cmds=
11365 shlibpath_overrides_runpath=unknown
11367 dynamic_linker="$host_os ld.so"
11368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11369 need_lib_prefix=unknown
11370 hardcode_into_libs=no
11372 # when you set need_version to no, make sure it does not cause -set_version
11373 # flags to be left without arguments
11374 need_version=unknown
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11380 shlibpath_var=LIBPATH
11382 # AIX 3 has no versioning support, so we append a major version to the name.
11383 soname_spec='${libname}${release}${shared_ext}$major'
11390 hardcode_into_libs=yes
11391 if test "$host_cpu" = ia64; then
11392 # AIX 5 supports IA64
11393 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11394 shlibpath_var=LD_LIBRARY_PATH
11396 # With GCC up to 2.95.x, collect2 would create an import file
11397 # for dependence libraries. The import file would start with
11398 # the line `#! .'. This would cause the generated library to
11399 # depend on `.', always an invalid library. This was fixed in
11400 # development snapshots of GCC prior to 3.0.
11402 aix4 | aix4.[01] | aix4.[01].*)
11403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11405 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11408 can_build_shared=no
11412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11413 # soname into executable. Probably we can add versioning support to
11414 # collect2, so additional links can be useful in future.
11415 if test "$aix_use_runtimelinking" = yes; then
11416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11417 # instead of lib<name>.a to let people know that these are not
11418 # typical AIX shared libraries.
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 # We preserve .a as extension for shared libraries through AIX4.2
11422 # and later when we are not doing run time linking.
11423 library_names_spec='${libname}${release}.a $libname.a'
11424 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LIBPATH
11433 # Since July 2007 AmigaOS4 officially supports .so libraries.
11434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438 library_names_spec='$libname.ixlibrary $libname.a'
11439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11440 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'
11446 library_names_spec='${libname}${shared_ext}'
11447 dynamic_linker="$host_os ld.so"
11448 shlibpath_var=LIBRARY_PATH
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11460 # the default ld.so.conf also contains /usr/contrib/lib and
11461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11462 # libtool to hard-code these into programs
11465 cygwin* | mingw* | pw32* | cegcc*)
11466 version_type=windows
11471 case $GCC,$host_os in
11472 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11473 library_names_spec='$libname.dll.a'
11474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11475 postinstall_cmds='base_file=`basename \${file}`~
11476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11477 dldir=$destdir/`dirname \$dlpath`~
11478 test -d \$dldir || mkdir -p \$dldir~
11479 $install_prog $dir/$dlname \$dldir/$dlname~
11480 chmod a+x \$dldir/$dlname~
11481 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11482 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11485 dlpath=$dir/\$dldll~
11487 shlibpath_overrides_runpath=yes
11491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11492 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11493 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11496 # MinGW DLLs use traditional 'lib' prefix
11497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11498 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11499 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11500 # It is most probably a Windows format PATH printed by
11501 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11502 # path with ; separators, and with drive letters. We can handle the
11503 # drive letters (cygwin fileutils understands them), so leave them,
11504 # especially as we might pass files found there to a mingw objdump,
11505 # which wouldn't understand a cygwinified path. Ahh.
11506 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11508 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11512 # pw32 DLLs use 'pw' prefix rather than 'lib'
11513 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11522 dynamic_linker='Win32 ld.exe'
11523 # FIXME: first we should search . and the directory the executable is in
11527 darwin* | rhapsody*)
11528 dynamic_linker="$host_os dyld"
11529 version_type=darwin
11532 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11533 soname_spec='${libname}${release}${major}$shared_ext'
11534 shlibpath_overrides_runpath=yes
11535 shlibpath_var=DYLD_LIBRARY_PATH
11536 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11538 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11539 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
11555 freebsd* | dragonfly*)
11556 # DragonFly does not have aout. When/if they implement a new
11557 # versioning mechanism, adjust this.
11558 if test -x /usr/bin/objformat; then
11559 objformat=`/usr/bin/objformat`
11562 freebsd[123]*) objformat=aout ;;
11563 *) objformat=elf ;;
11566 version_type=freebsd-$objformat
11567 case $version_type in
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11578 shlibpath_var=LD_LIBRARY_PATH
11581 shlibpath_overrides_runpath=yes
11583 freebsd3.[01]* | freebsdelf3.[01]*)
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11589 shlibpath_overrides_runpath=no
11590 hardcode_into_libs=yes
11592 *) # from 4.6 on, and DragonFly
11593 shlibpath_overrides_runpath=yes
11594 hardcode_into_libs=yes
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 hardcode_into_libs=yes
11609 hpux9* | hpux10* | hpux11*)
11610 # Give a soname corresponding to the major version so that dld.sl refuses to
11611 # link against other versions.
11618 hardcode_into_libs=yes
11619 dynamic_linker="$host_os dld.so"
11620 shlibpath_var=LD_LIBRARY_PATH
11621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 if test "X$HPUX_IA64_MODE" = X32; then
11625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11633 hardcode_into_libs=yes
11634 dynamic_linker="$host_os dld.sl"
11635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11644 dynamic_linker="$host_os dld.sl"
11645 shlibpath_var=SHLIB_PATH
11646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11651 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11652 postinstall_cmds='chmod 555 $lib'
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11660 soname_spec='${libname}${release}${shared_ext}$major'
11661 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=no
11664 hardcode_into_libs=yes
11667 irix5* | irix6* | nonstopux*)
11669 nonstopux*) version_type=nonstopux ;;
11671 if test "$lt_cv_prog_gnu_ld" = yes; then
11679 soname_spec='${libname}${release}${shared_ext}$major'
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11682 irix5* | nonstopux*)
11683 libsuff= shlibsuff=
11686 case $LD in # libtool.m4 will add one of these switches to LD
11687 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11688 libsuff= shlibsuff= libmagic=32-bit;;
11689 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11690 libsuff=32 shlibsuff=N32 libmagic=N32;;
11691 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11692 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11693 *) libsuff= shlibsuff= libmagic=never-match;;
11697 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11698 shlibpath_overrides_runpath=no
11699 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11700 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11701 hardcode_into_libs=yes
11704 # No shared lib support for Linux oldld, aout, or coff.
11705 linux*oldld* | linux*aout* | linux*coff*)
11709 # This must be Linux ELF.
11710 linux* | k*bsd*-gnu)
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715 soname_spec='${libname}${release}${shared_ext}$major'
11716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=no
11719 # Some binutils ld are patched to set DT_RUNPATH
11720 save_LDFLAGS=$LDFLAGS
11721 save_libdir=$libdir
11722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11739 rm -f conftest.$ac_objext conftest$ac_exeext
11740 if { (ac_try="$ac_link"
11741 case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746 (eval "$ac_link") 2>conftest.er1
11748 grep -v '^ *+' conftest.er1 >conftest.err
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } && {
11753 test -z "$ac_c_werror_flag" ||
11754 test ! -s conftest.err
11755 } && test -s conftest$ac_exeext &&
11756 $as_test_x conftest$ac_exeext; then
11757 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11758 shlibpath_overrides_runpath=yes
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11769 conftest$ac_exeext conftest.$ac_ext
11770 LDFLAGS=$save_LDFLAGS
11771 libdir=$save_libdir
11773 # This implies no fast_install, which is unacceptable.
11774 # Some rework will be needed to allow for fast_install
11775 # before this can be enabled.
11776 hardcode_into_libs=yes
11778 # Append ld.so.conf contents to the search path
11779 if test -f /etc/ld.so.conf; then
11780 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' ' '`
11781 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11784 # We used to test for /lib/ld.so.1 and disable shared libraries on
11785 # powerpc, because MkLinux only supported shared libraries with the
11786 # GNU dynamic linker. Since this was broken with cross compilers,
11787 # most powerpc-linux boxes support dynamic linking these days and
11788 # people can always --disable-shared, the test was removed, and we
11789 # assume the GNU/Linux dynamic linker is in use.
11790 dynamic_linker='GNU/Linux ld.so'
11797 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11800 dynamic_linker='NetBSD (a.out) ld.so'
11802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11803 soname_spec='${libname}${release}${shared_ext}$major'
11804 dynamic_linker='NetBSD ld.elf_so'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 shlibpath_overrides_runpath=yes
11808 hardcode_into_libs=yes
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=yes
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823 soname_spec='${libname}${release}${shared_ext}$major'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath=no
11826 hardcode_into_libs=yes
11827 dynamic_linker='ldqnx.so'
11832 sys_lib_dlsearch_path_spec="/usr/lib"
11834 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11836 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11837 *) need_version=no ;;
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11841 shlibpath_var=LD_LIBRARY_PATH
11842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11844 openbsd2.[89] | openbsd2.[89].*)
11845 shlibpath_overrides_runpath=no
11848 shlibpath_overrides_runpath=yes
11852 shlibpath_overrides_runpath=yes
11857 libname_spec='$name'
11860 library_names_spec='$libname${shared_ext} $libname.a'
11861 dynamic_linker='OS/2 ld.exe'
11862 shlibpath_var=LIBPATH
11865 osf3* | osf4* | osf5*)
11869 soname_spec='${libname}${release}${shared_ext}$major'
11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11871 shlibpath_var=LD_LIBRARY_PATH
11872 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11873 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 shlibpath_var=LD_LIBRARY_PATH
11887 shlibpath_overrides_runpath=yes
11888 hardcode_into_libs=yes
11889 # ldd complains unless libraries are executable
11890 postinstall_cmds='chmod +x $lib'
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11896 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 shlibpath_overrides_runpath=yes
11899 if test "$with_gnu_ld" = yes; then
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 case $host_vendor in
11912 shlibpath_overrides_runpath=no
11914 runpath_var=LD_RUN_PATH
11922 shlibpath_overrides_runpath=no
11923 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11929 if test -d /usr/nec ;then
11931 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11932 soname_spec='$libname${shared_ext}.$major'
11933 shlibpath_var=LD_LIBRARY_PATH
11937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11938 version_type=freebsd-elf
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11942 soname_spec='${libname}${release}${shared_ext}$major'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=yes
11945 hardcode_into_libs=yes
11946 if test "$with_gnu_ld" = yes; then
11947 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11949 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11952 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11956 sys_lib_dlsearch_path_spec='/usr/lib'
11960 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=no
11967 hardcode_into_libs=yes
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973 soname_spec='${libname}${release}${shared_ext}$major'
11974 shlibpath_var=LD_LIBRARY_PATH
11981 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11982 echo "${ECHO_T}$dynamic_linker" >&6; }
11983 test "$dynamic_linker" = no && can_build_shared=no
11985 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11986 if test "$GCC" = yes; then
11987 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11990 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11991 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11993 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11994 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12083 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12084 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12086 if test -n "$hardcode_libdir_flag_spec" ||
12087 test -n "$runpath_var" ||
12088 test "X$hardcode_automatic" = "Xyes" ; then
12090 # We can hardcode non-existent directories.
12091 if test "$hardcode_direct" != no &&
12092 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12093 # have to relink, otherwise we might link with an installed library
12094 # when we should be linking with a yet-to-be-installed one
12095 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12096 test "$hardcode_minus_L" != no; then
12097 # Linking always hardcodes the temporary library directory.
12098 hardcode_action=relink
12100 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12101 hardcode_action=immediate
12104 # We cannot hardcode anything, or else we can only hardcode existing
12106 hardcode_action=unsupported
12108 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12109 echo "${ECHO_T}$hardcode_action" >&6; }
12111 if test "$hardcode_action" = relink ||
12112 test "$inherit_rpath" = yes; then
12113 # Fast installation is not supported
12114 enable_fast_install=no
12115 elif test "$shlibpath_overrides_runpath" = yes ||
12116 test "$enable_shared" = no; then
12117 # Fast installation is not necessary
12118 enable_fast_install=needless
12126 if test "x$enable_dlopen" != xyes; then
12127 enable_dlopen=unknown
12128 enable_dlopen_self=unknown
12129 enable_dlopen_self_static=unknown
12136 lt_cv_dlopen="load_add_on"
12138 lt_cv_dlopen_self=yes
12141 mingw* | pw32* | cegcc*)
12142 lt_cv_dlopen="LoadLibrary"
12147 lt_cv_dlopen="dlopen"
12152 # if libdl is installed we need to link against it
12153 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 ac_check_lib_save_LIBS=$LIBS
12160 cat >conftest.$ac_ext <<_ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_link") 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest$ac_exeext &&
12199 $as_test_x conftest$ac_exeext; then
12200 ac_cv_lib_dl_dlopen=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_cv_lib_dl_dlopen=no
12208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12212 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12214 if test $ac_cv_lib_dl_dlopen = yes; then
12215 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12218 lt_cv_dlopen="dyld"
12220 lt_cv_dlopen_self=yes
12227 { echo "$as_me:$LINENO: checking for shl_load" >&5
12228 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12229 if test "${ac_cv_func_shl_load+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12240 #define shl_load innocuous_shl_load
12242 /* System header to define __stub macros and hopefully few prototypes,
12243 which can conflict with char shl_load (); below.
12244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12245 <limits.h> exists even on freestanding compilers. */
12248 # include <limits.h>
12250 # include <assert.h>
12255 /* Override any GCC internal prototype to avoid an error.
12256 Use char because int might match the return type of a GCC
12257 builtin and then its argument prototype would still apply. */
12262 /* The GNU C library defines this for functions which it implements
12263 to always fail with ENOSYS. Some functions are actually named
12264 something starting with __ and the normal name is an alias. */
12265 #if defined __stub_shl_load || defined __stub___shl_load
12272 return shl_load ();
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_link") 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } && {
12291 test -z "$ac_c_werror_flag" ||
12292 test ! -s conftest.err
12293 } && test -s conftest$ac_exeext &&
12294 $as_test_x conftest$ac_exeext; then
12295 ac_cv_func_shl_load=yes
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_cv_func_shl_load=no
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304 conftest$ac_exeext conftest.$ac_ext
12306 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12307 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12308 if test $ac_cv_func_shl_load = yes; then
12309 lt_cv_dlopen="shl_load"
12311 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12312 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12313 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 ac_check_lib_save_LIBS=$LIBS
12318 cat >conftest.$ac_ext <<_ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12335 return shl_load ();
12340 rm -f conftest.$ac_objext conftest$ac_exeext
12341 if { (ac_try="$ac_link"
12342 case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_link") 2>conftest.er1
12349 grep -v '^ *+' conftest.er1 >conftest.err
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && {
12354 test -z "$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 } && test -s conftest$ac_exeext &&
12357 $as_test_x conftest$ac_exeext; then
12358 ac_cv_lib_dld_shl_load=yes
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_cv_lib_dld_shl_load=no
12366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12370 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12371 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12372 if test $ac_cv_lib_dld_shl_load = yes; then
12373 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12375 { echo "$as_me:$LINENO: checking for dlopen" >&5
12376 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12377 if test "${ac_cv_func_dlopen+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 cat >conftest.$ac_ext <<_ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12388 #define dlopen innocuous_dlopen
12390 /* System header to define __stub macros and hopefully few prototypes,
12391 which can conflict with char dlopen (); below.
12392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12393 <limits.h> exists even on freestanding compilers. */
12396 # include <limits.h>
12398 # include <assert.h>
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12410 /* The GNU C library defines this for functions which it implements
12411 to always fail with ENOSYS. Some functions are actually named
12412 something starting with __ and the normal name is an alias. */
12413 #if defined __stub_dlopen || defined __stub___dlopen
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest$ac_exeext &&
12442 $as_test_x conftest$ac_exeext; then
12443 ac_cv_func_dlopen=yes
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_func_dlopen=no
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452 conftest$ac_exeext conftest.$ac_ext
12454 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12455 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12456 if test $ac_cv_func_dlopen = yes; then
12457 lt_cv_dlopen="dlopen"
12459 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 ac_check_lib_save_LIBS=$LIBS
12466 cat >conftest.$ac_ext <<_ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12473 /* Override any GCC internal prototype to avoid an error.
12474 Use char because int might match the return type of a GCC
12475 builtin and then its argument prototype would still apply. */
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_link") 2>conftest.er1
12497 grep -v '^ *+' conftest.er1 >conftest.err
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
12504 } && test -s conftest$ac_exeext &&
12505 $as_test_x conftest$ac_exeext; then
12506 ac_cv_lib_dl_dlopen=yes
12508 echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_cv_lib_dl_dlopen=no
12514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12515 conftest$ac_exeext conftest.$ac_ext
12516 LIBS=$ac_check_lib_save_LIBS
12518 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12520 if test $ac_cv_lib_dl_dlopen = yes; then
12521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12523 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12524 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12525 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 ac_check_lib_save_LIBS=$LIBS
12529 LIBS="-lsvld $LIBS"
12530 cat >conftest.$ac_ext <<_ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12537 /* Override any GCC internal prototype to avoid an error.
12538 Use char because int might match the return type of a GCC
12539 builtin and then its argument prototype would still apply. */
12552 rm -f conftest.$ac_objext conftest$ac_exeext
12553 if { (ac_try="$ac_link"
12554 case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_link") 2>conftest.er1
12561 grep -v '^ *+' conftest.er1 >conftest.err
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } && {
12566 test -z "$ac_c_werror_flag" ||
12567 test ! -s conftest.err
12568 } && test -s conftest$ac_exeext &&
12569 $as_test_x conftest$ac_exeext; then
12570 ac_cv_lib_svld_dlopen=yes
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 ac_cv_lib_svld_dlopen=no
12578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12579 conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12582 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12583 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12584 if test $ac_cv_lib_svld_dlopen = yes; then
12585 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12587 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12588 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12589 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 ac_check_lib_save_LIBS=$LIBS
12594 cat >conftest.$ac_ext <<_ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12611 return dld_link ();
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12625 grep -v '^ *+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } && {
12630 test -z "$ac_c_werror_flag" ||
12631 test ! -s conftest.err
12632 } && test -s conftest$ac_exeext &&
12633 $as_test_x conftest$ac_exeext; then
12634 ac_cv_lib_dld_dld_link=yes
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12639 ac_cv_lib_dld_dld_link=no
12642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12646 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12647 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12648 if test $ac_cv_lib_dld_dld_link = yes; then
12649 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12670 if test "x$lt_cv_dlopen" != xno; then
12676 case $lt_cv_dlopen in
12678 save_CPPFLAGS="$CPPFLAGS"
12679 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12681 save_LDFLAGS="$LDFLAGS"
12682 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12685 LIBS="$lt_cv_dlopen_libs $LIBS"
12687 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12688 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12689 if test "${lt_cv_dlopen_self+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 if test "$cross_compiling" = yes; then :
12693 lt_cv_dlopen_self=cross
12695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12696 lt_status=$lt_dlunknown
12697 cat > conftest.$ac_ext <<_LT_EOF
12698 #line 12698 "configure"
12699 #include "confdefs.h"
12708 # define LT_DLGLOBAL RTLD_GLOBAL
12711 # define LT_DLGLOBAL DL_GLOBAL
12713 # define LT_DLGLOBAL 0
12717 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12718 find out it does not work in some platform. */
12719 #ifndef LT_DLLAZY_OR_NOW
12721 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12724 # define LT_DLLAZY_OR_NOW DL_LAZY
12727 # define LT_DLLAZY_OR_NOW RTLD_NOW
12730 # define LT_DLLAZY_OR_NOW DL_NOW
12732 # define LT_DLLAZY_OR_NOW 0
12739 void fnord() { int i=42;}
12742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12743 int status = $lt_dlunknown;
12747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12748 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12749 /* dlclose (self); */
12757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12758 (eval $ac_link) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12762 (./conftest; exit; ) >&5 2>/dev/null
12764 case x$lt_status in
12765 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12766 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12767 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12770 # compilation failed
12771 lt_cv_dlopen_self=no
12778 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12781 if test "x$lt_cv_dlopen_self" = xyes; then
12782 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12783 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12785 if test "${lt_cv_dlopen_self_static+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 if test "$cross_compiling" = yes; then :
12789 lt_cv_dlopen_self_static=cross
12791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12792 lt_status=$lt_dlunknown
12793 cat > conftest.$ac_ext <<_LT_EOF
12794 #line 12794 "configure"
12795 #include "confdefs.h"
12804 # define LT_DLGLOBAL RTLD_GLOBAL
12807 # define LT_DLGLOBAL DL_GLOBAL
12809 # define LT_DLGLOBAL 0
12813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12814 find out it does not work in some platform. */
12815 #ifndef LT_DLLAZY_OR_NOW
12817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12820 # define LT_DLLAZY_OR_NOW DL_LAZY
12823 # define LT_DLLAZY_OR_NOW RTLD_NOW
12826 # define LT_DLLAZY_OR_NOW DL_NOW
12828 # define LT_DLLAZY_OR_NOW 0
12835 void fnord() { int i=42;}
12838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12839 int status = $lt_dlunknown;
12843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12844 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12845 /* dlclose (self); */
12853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12854 (eval $ac_link) 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12858 (./conftest; exit; ) >&5 2>/dev/null
12860 case x$lt_status in
12861 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12862 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12863 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12866 # compilation failed
12867 lt_cv_dlopen_self_static=no
12874 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12875 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12878 CPPFLAGS="$save_CPPFLAGS"
12879 LDFLAGS="$save_LDFLAGS"
12884 case $lt_cv_dlopen_self in
12885 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12886 *) enable_dlopen_self=unknown ;;
12889 case $lt_cv_dlopen_self_static in
12890 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12891 *) enable_dlopen_self_static=unknown ;;
12913 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12914 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12915 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12916 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12917 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12918 { echo "$as_me:$LINENO: result: yes" >&5
12919 echo "${ECHO_T}yes" >&6; }
12921 # FIXME - insert some real tests, host_os isn't really good enough
12924 if test -n "$STRIP" ; then
12925 striplib="$STRIP -x"
12926 old_striplib="$STRIP -S"
12927 { echo "$as_me:$LINENO: result: yes" >&5
12928 echo "${ECHO_T}yes" >&6; }
12930 { echo "$as_me:$LINENO: result: no" >&5
12931 echo "${ECHO_T}no" >&6; }
12935 { echo "$as_me:$LINENO: result: no" >&5
12936 echo "${ECHO_T}no" >&6; }
12952 # Report which library types will actually be built
12953 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12954 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12955 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12956 echo "${ECHO_T}$can_build_shared" >&6; }
12958 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12959 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12960 test "$can_build_shared" = "no" && enable_shared=no
12962 # On AIX, shared libraries and static libraries use the same namespace, and
12963 # are all built from PIC.
12966 test "$enable_shared" = yes && enable_static=no
12967 if test -n "$RANLIB"; then
12968 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12969 postinstall_cmds='$RANLIB $lib'
12974 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12975 test "$enable_shared" = yes && enable_static=no
12979 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12980 echo "${ECHO_T}$enable_shared" >&6; }
12982 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12983 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12984 # Make sure either enable_shared or enable_static is yes.
12985 test "$enable_shared" = yes || enable_static=yes
12986 { echo "$as_me:$LINENO: result: $enable_static" >&5
12987 echo "${ECHO_T}$enable_static" >&6; }
12994 ac_cpp='$CXXCPP $CPPFLAGS'
12995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13003 ac_cpp='$CXXCPP $CPPFLAGS'
13004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13008 archive_cmds_need_lc_CXX=no
13009 allow_undefined_flag_CXX=
13010 always_export_symbols_CXX=no
13011 archive_expsym_cmds_CXX=
13012 compiler_needs_object_CXX=no
13013 export_dynamic_flag_spec_CXX=
13014 hardcode_direct_CXX=no
13015 hardcode_direct_absolute_CXX=no
13016 hardcode_libdir_flag_spec_CXX=
13017 hardcode_libdir_flag_spec_ld_CXX=
13018 hardcode_libdir_separator_CXX=
13019 hardcode_minus_L_CXX=no
13020 hardcode_shlibpath_var_CXX=unsupported
13021 hardcode_automatic_CXX=no
13022 inherit_rpath_CXX=no
13024 module_expsym_cmds_CXX=
13025 link_all_deplibs_CXX=unknown
13026 old_archive_cmds_CXX=$old_archive_cmds
13027 no_undefined_flag_CXX=
13028 whole_archive_flag_spec_CXX=
13029 enable_shared_with_static_runtimes_CXX=no
13031 # Source file extension for C++ test sources.
13034 # Object file extension for compiled C++ test sources.
13038 # No sense in running all these tests if we already determined that
13039 # the CXX compiler isn't working. Some variables (like enable_shared)
13040 # are currently assumed to apply to all compilers on this platform,
13041 # and will be corrupted by setting them based on a non-working compiler.
13042 if test "$_lt_caught_CXX_error" != yes; then
13043 # Code to be used in simple compile tests
13044 lt_simple_compile_test_code="int some_variable = 0;"
13046 # Code to be used in simple link tests
13047 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13056 # If no C compiler was specified, use CC.
13059 # If no C compiler flags were specified, use CFLAGS.
13060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13062 # Allow CC to be a program name with arguments.
13066 # save warnings/boilerplate of simple test code
13067 ac_outfile=conftest.$ac_objext
13068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13070 _lt_compiler_boilerplate=`cat conftest.err`
13073 ac_outfile=conftest.$ac_objext
13074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13076 _lt_linker_boilerplate=`cat conftest.err`
13080 # Allow CC to be a program name with arguments.
13085 lt_save_with_gnu_ld=$with_gnu_ld
13086 lt_save_path_LD=$lt_cv_path_LD
13087 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13088 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13090 $as_unset lt_cv_prog_gnu_ld
13092 if test -n "${lt_cv_path_LDCXX+set}"; then
13093 lt_cv_path_LD=$lt_cv_path_LDCXX
13095 $as_unset lt_cv_path_LD
13097 test -z "${LDCXX+set}" || LD=$LDCXX
13101 for cc_temp in $compiler""; do
13103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13109 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13112 if test -n "$compiler"; then
13113 # We don't want -fno-exception when compiling C++ code, so set the
13114 # no_builtin_flag separately
13115 if test "$GXX" = yes; then
13116 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13118 lt_prog_compiler_no_builtin_flag_CXX=
13121 if test "$GXX" = yes; then
13122 # Set up default GNU C++ configuration
13126 # Check whether --with-gnu-ld was given.
13127 if test "${with_gnu_ld+set}" = set; then
13128 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13134 if test "$GCC" = yes; then
13135 # Check if gcc -print-prog-name=ld gives a path.
13136 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13137 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13140 # gcc leaves a trailing carriage return which upsets mingw
13141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13146 # Accept absolute paths.
13148 re_direlt='/[^/][^/]*/\.\./'
13149 # Canonicalize the pathname of ld
13150 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13151 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13152 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13154 test -z "$LD" && LD="$ac_prog"
13157 # If it fails, then pretend we aren't using GCC.
13161 # If it is relative, then search for the first ld in PATH.
13162 with_gnu_ld=unknown
13165 elif test "$with_gnu_ld" = yes; then
13166 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13167 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13169 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13170 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13172 if test "${lt_cv_path_LD+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 if test -z "$LD"; then
13176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13177 for ac_dir in $PATH; do
13179 test -z "$ac_dir" && ac_dir=.
13180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13181 lt_cv_path_LD="$ac_dir/$ac_prog"
13182 # Check to see if the program is GNU ld. I'd rather use --version,
13183 # but apparently some variants of GNU ld only accept -v.
13184 # Break only if it was the GNU/non-GNU ld that we prefer.
13185 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13186 *GNU* | *'with BFD'*)
13187 test "$with_gnu_ld" != no && break
13190 test "$with_gnu_ld" != yes && break
13197 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13201 LD="$lt_cv_path_LD"
13202 if test -n "$LD"; then
13203 { echo "$as_me:$LINENO: result: $LD" >&5
13204 echo "${ECHO_T}$LD" >&6; }
13206 { echo "$as_me:$LINENO: result: no" >&5
13207 echo "${ECHO_T}no" >&6; }
13209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13211 { (exit 1); exit 1; }; }
13212 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13214 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13218 case `$LD -v 2>&1 </dev/null` in
13219 *GNU* | *'with BFD'*)
13220 lt_cv_prog_gnu_ld=yes
13223 lt_cv_prog_gnu_ld=no
13227 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13228 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13229 with_gnu_ld=$lt_cv_prog_gnu_ld
13237 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13238 # archiving commands below assume that GNU ld is being used.
13239 if test "$with_gnu_ld" = yes; then
13240 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241 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'
13243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13246 # If archive_cmds runs LD, not CC, wlarc should be empty
13247 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13248 # investigate it a little bit more. (MM)
13251 # ancient GNU ld didn't support --whole-archive et. al.
13252 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13253 $GREP 'no-whole-archive' > /dev/null; then
13254 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13256 whole_archive_flag_spec_CXX=
13262 # A generic and very simple default shared library creation
13263 # command for GNU C++ for the case where it uses the native
13264 # linker, instead of GNU ld. If possible, this setting should
13265 # overridden to take advantage of the native linker features on
13266 # the platform it is being used on.
13267 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13270 # Commands to make compiler produce verbose output that lists
13271 # what "hidden" libraries, object files and flags are used when
13272 # linking a shared library.
13273 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13281 # PORTME: fill in a description of your system's C++ link characteristics
13282 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13283 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13287 # FIXME: insert proper C++ library support
13291 if test "$host_cpu" = ia64; then
13292 # On IA64, the linker does run time linking by default, so we don't
13293 # have to do anything special.
13294 aix_use_runtimelinking=no
13295 exp_sym_flag='-Bexport'
13298 aix_use_runtimelinking=no
13300 # Test if we are trying to use run time linking or normal
13301 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13302 # need to do runtime linking.
13303 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13304 for ld_flag in $LDFLAGS; do
13307 aix_use_runtimelinking=yes
13315 exp_sym_flag='-bexport'
13316 no_entry_flag='-bnoentry'
13319 # When large executables or shared objects are built, AIX ld can
13320 # have problems creating the table of contents. If linking a library
13321 # or program results in "error TOC overflow" add -mminimal-toc to
13322 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13323 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13325 archive_cmds_CXX=''
13326 hardcode_direct_CXX=yes
13327 hardcode_direct_absolute_CXX=yes
13328 hardcode_libdir_separator_CXX=':'
13329 link_all_deplibs_CXX=yes
13330 file_list_spec_CXX='${wl}-f,'
13332 if test "$GXX" = yes; then
13333 case $host_os in aix4.[012]|aix4.[012].*)
13334 # We only want to do this on AIX 4.2 and lower, the check
13335 # below for broken collect2 doesn't work under 4.3+
13336 collect2name=`${CC} -print-prog-name=collect2`
13337 if test -f "$collect2name" &&
13338 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13340 # We have reworked collect2
13343 # We have old collect2
13344 hardcode_direct_CXX=unsupported
13345 # It fails to find uninstalled libraries when the uninstalled
13346 # path is not listed in the libpath. Setting hardcode_minus_L
13347 # to unsupported forces relinking
13348 hardcode_minus_L_CXX=yes
13349 hardcode_libdir_flag_spec_CXX='-L$libdir'
13350 hardcode_libdir_separator_CXX=
13353 shared_flag='-shared'
13354 if test "$aix_use_runtimelinking" = yes; then
13355 shared_flag="$shared_flag "'${wl}-G'
13359 if test "$host_cpu" = ia64; then
13360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13361 # chokes on -Wl,-G. The following line is correct:
13364 if test "$aix_use_runtimelinking" = yes; then
13365 shared_flag='${wl}-G'
13367 shared_flag='${wl}-bM:SRE'
13372 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13373 # It seems that -bexpall does not export symbols beginning with
13374 # underscore (_), so it is better to generate a list of symbols to
13376 always_export_symbols_CXX=yes
13377 if test "$aix_use_runtimelinking" = yes; then
13378 # Warning - without using the other runtime loading flags (-brtl),
13379 # -berok will link without error, but may produce a broken library.
13380 allow_undefined_flag_CXX='-berok'
13381 # Determine the default libpath from the value encoded in an empty
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13398 rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (ac_try="$ac_link"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_link") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && {
13412 test -z "$ac_cxx_werror_flag" ||
13413 test ! -s conftest.err
13414 } && test -s conftest$ac_exeext &&
13415 $as_test_x conftest$ac_exeext; then
13417 lt_aix_libpath_sed='
13418 /Import File Strings/,/^$/ {
13424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13425 # Check for a 64-bit object if we didn't find anything.
13426 if test -z "$aix_libpath"; then
13427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13437 conftest$ac_exeext conftest.$ac_ext
13438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13440 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13442 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"
13444 if test "$host_cpu" = ia64; then
13445 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13446 allow_undefined_flag_CXX="-z nodefs"
13447 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"
13449 # Determine the default libpath from the value encoded in an
13450 # empty executable.
13451 cat >conftest.$ac_ext <<_ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (ac_try="$ac_link"
13468 case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_link") 2>conftest.er1
13475 grep -v '^ *+' conftest.er1 >conftest.err
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && {
13480 test -z "$ac_cxx_werror_flag" ||
13481 test ! -s conftest.err
13482 } && test -s conftest$ac_exeext &&
13483 $as_test_x conftest$ac_exeext; then
13485 lt_aix_libpath_sed='
13486 /Import File Strings/,/^$/ {
13492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13493 # Check for a 64-bit object if we didn't find anything.
13494 if test -z "$aix_libpath"; then
13495 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13505 conftest$ac_exeext conftest.$ac_ext
13506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13508 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13509 # Warning - without using the other run time loading flags,
13510 # -berok will link without error, but may produce a broken library.
13511 no_undefined_flag_CXX=' ${wl}-bernotok'
13512 allow_undefined_flag_CXX=' ${wl}-berok'
13513 # Exported symbols can be pulled into shared objects from archives
13514 whole_archive_flag_spec_CXX='$convenience'
13515 archive_cmds_need_lc_CXX=yes
13516 # This is similar to how AIX traditionally builds its shared
13518 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'
13524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13525 allow_undefined_flag_CXX=unsupported
13526 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13527 # support --undefined. This deserves some investigation. FIXME
13528 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13535 case $cc_basename in
13537 # FIXME: insert proper C++ library support
13543 cygwin* | mingw* | pw32* | cegcc*)
13544 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13545 # as there is no search path for DLLs.
13546 hardcode_libdir_flag_spec_CXX='-L$libdir'
13547 allow_undefined_flag_CXX=unsupported
13548 always_export_symbols_CXX=no
13549 enable_shared_with_static_runtimes_CXX=yes
13551 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13552 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'
13553 # If the export-symbols file already is a .def file (1st line
13554 # is EXPORTS), use it as is; otherwise, prepend...
13555 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13556 cp $export_symbols $output_objdir/$soname.def;
13558 echo EXPORTS > $output_objdir/$soname.def;
13559 cat $export_symbols >> $output_objdir/$soname.def;
13561 $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'
13566 darwin* | rhapsody*)
13569 archive_cmds_need_lc_CXX=no
13570 hardcode_direct_CXX=no
13571 hardcode_automatic_CXX=yes
13572 hardcode_shlibpath_var_CXX=unsupported
13573 whole_archive_flag_spec_CXX=''
13574 link_all_deplibs_CXX=yes
13575 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13576 case $cc_basename in
13577 ifort*) _lt_dar_can_shared=yes ;;
13578 *) _lt_dar_can_shared=$GCC ;;
13580 if test "$_lt_dar_can_shared" = "yes"; then
13581 output_verbose_link_cmd=echo
13582 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}"
13583 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13584 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}"
13585 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}"
13586 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13587 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}"
13588 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}"
13598 case $cc_basename in
13600 # FIXME: insert proper C++ library support
13604 # Green Hills C++ Compiler
13605 # FIXME: insert proper C++ library support
13609 # FIXME: insert proper C++ library support
13616 # C++ shared libraries reported to be fairly broken before
13622 archive_cmds_need_lc_CXX=no
13625 freebsd* | dragonfly*)
13626 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13635 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13636 hardcode_libdir_separator_CXX=:
13637 export_dynamic_flag_spec_CXX='${wl}-E'
13638 hardcode_direct_CXX=yes
13639 hardcode_minus_L_CXX=yes # Not in the search PATH,
13640 # but as the default
13641 # location of the library.
13643 case $cc_basename in
13645 # FIXME: insert proper C++ library support
13649 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'
13650 # Commands to make compiler produce verbose output that lists
13651 # what "hidden" libraries, object files and flags are used when
13652 # linking a shared library.
13654 # There doesn't appear to be a way to prevent this compiler from
13655 # explicitly linking system object files so we need to strip them
13656 # from the output so that they don't get included in the library
13658 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'
13661 if test "$GXX" = yes; then
13662 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'
13664 # FIXME: insert proper C++ library support
13672 if test $with_gnu_ld = no; then
13673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13674 hardcode_libdir_separator_CXX=:
13680 export_dynamic_flag_spec_CXX='${wl}-E'
13686 hardcode_direct_CXX=no
13687 hardcode_shlibpath_var_CXX=no
13690 hardcode_direct_CXX=yes
13691 hardcode_direct_absolute_CXX=yes
13692 hardcode_minus_L_CXX=yes # Not in the search PATH,
13693 # but as the default
13694 # location of the library.
13698 case $cc_basename in
13700 # FIXME: insert proper C++ library support
13706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13712 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13715 # Commands to make compiler produce verbose output that lists
13716 # what "hidden" libraries, object files and flags are used when
13717 # linking a shared library.
13719 # There doesn't appear to be a way to prevent this compiler from
13720 # explicitly linking system object files so we need to strip them
13721 # from the output so that they don't get included in the library
13723 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'
13726 if test "$GXX" = yes; then
13727 if test $with_gnu_ld = no; then
13730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13733 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13736 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'
13741 # FIXME: insert proper C++ library support
13749 hardcode_direct_CXX=no
13750 hardcode_shlibpath_var_CXX=no
13751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13752 export_dynamic_flag_spec_CXX='${wl}-E'
13753 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13754 # Instead, shared libraries are loaded at an image base (0x10000000 by
13755 # default) and relocated if they conflict, which is a slow very memory
13756 # consuming and fragmenting process. To avoid this, we pick a random,
13757 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13758 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13759 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'
13760 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'
13763 case $cc_basename in
13766 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'
13768 # Archives containing C++ object files must be created using
13769 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13770 # necessary to make sure instantiated templates are included
13772 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13775 if test "$GXX" = yes; then
13776 if test "$with_gnu_ld" = no; then
13777 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'
13779 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'
13782 link_all_deplibs_CXX=yes
13785 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13786 hardcode_libdir_separator_CXX=:
13787 inherit_rpath_CXX=yes
13790 linux* | k*bsd*-gnu)
13791 case $cc_basename in
13793 # Kuck and Associates, Inc. (KAI) C++ Compiler
13795 # KCC will only create a shared library if the output file
13796 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13797 # to its proper name (with version) after linking.
13798 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'
13799 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'
13800 # Commands to make compiler produce verbose output that lists
13801 # what "hidden" libraries, object files and flags are used when
13802 # linking a shared library.
13804 # There doesn't appear to be a way to prevent this compiler from
13805 # explicitly linking system object files so we need to strip them
13806 # from the output so that they don't get included in the library
13808 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'
13810 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13813 # Archives containing C++ object files must be created using
13814 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13815 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13820 # version 8.0 and above of icpc choke on multiply defined symbols
13821 # if we add $predep_objects and $postdep_objects, however 7.1 and
13822 # earlier do not add the objects themselves.
13823 case `$CC -V 2>&1` in
13825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826 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'
13828 *) # Version 8.0 or newer
13831 ia64*) tmp_idyn=' -i_dynamic';;
13833 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834 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'
13837 archive_cmds_need_lc_CXX=no
13838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13840 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13843 # Portland Group C++ compiler
13845 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13846 prelink_cmds_CXX='tpldir=Template.dir~
13848 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13849 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13850 old_archive_cmds_CXX='tpldir=Template.dir~
13852 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13853 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13855 archive_cmds_CXX='tpldir=Template.dir~
13857 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13858 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13859 archive_expsym_cmds_CXX='tpldir=Template.dir~
13861 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13862 $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'
13864 *) # Version 6 will use weak symbols
13865 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13866 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'
13870 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13871 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13872 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'
13876 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877 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'
13879 runpath_var=LD_RUN_PATH
13880 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13881 hardcode_libdir_separator_CXX=:
13883 # Commands to make compiler produce verbose output that lists
13884 # what "hidden" libraries, object files and flags are used when
13885 # linking a shared library.
13887 # There doesn't appear to be a way to prevent this compiler from
13888 # explicitly linking system object files so we need to strip them
13889 # from the output so that they don't get included in the library
13891 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'
13894 # IBM XL 8.0 on PPC, with GNU ld
13895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13896 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13897 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13898 if test "x$supports_anon_versioning" = xyes; then
13899 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13901 echo "local: *; };" >> $output_objdir/$libname.ver~
13902 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13906 case `$CC -V 2>&1 | sed 5q` in
13909 no_undefined_flag_CXX=' -zdefs'
13910 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13911 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'
13912 hardcode_libdir_flag_spec_CXX='-R$libdir'
13913 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'
13914 compiler_needs_object_CXX=yes
13916 # Not sure whether something based on
13917 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13919 output_verbose_link_cmd='echo'
13921 # Archives containing C++ object files must be created using
13922 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13923 # necessary to make sure instantiated templates are included
13925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13933 # FIXME: insert proper C++ library support
13938 # FIXME: insert proper C++ library support
13943 case $cc_basename in
13945 # FIXME: insert proper C++ library support
13949 # FIXME: insert proper C++ library support
13956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13957 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13959 hardcode_libdir_flag_spec_CXX='-R$libdir'
13960 hardcode_direct_CXX=yes
13961 hardcode_shlibpath_var_CXX=no
13963 # Workaround some broken pre-1.5 toolchains
13964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13972 # C++ shared libraries are fairly broken
13977 if test -f /usr/libexec/ld.so; then
13978 hardcode_direct_CXX=yes
13979 hardcode_shlibpath_var_CXX=no
13980 hardcode_direct_absolute_CXX=yes
13981 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13984 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13985 export_dynamic_flag_spec_CXX='${wl}-E'
13986 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13988 output_verbose_link_cmd=echo
13994 osf3* | osf4* | osf5*)
13995 case $cc_basename in
13997 # Kuck and Associates, Inc. (KAI) C++ Compiler
13999 # KCC will only create a shared library if the output file
14000 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14001 # to its proper name (with version) after linking.
14002 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'
14004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14005 hardcode_libdir_separator_CXX=:
14007 # Archives containing C++ object files must be created using
14008 # the KAI C++ compiler.
14010 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14011 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14015 # Rational C++ 2.4.1
14016 # FIXME: insert proper C++ library support
14022 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14023 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'
14024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14027 allow_undefined_flag_CXX=' -expect_unresolved \*'
14028 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'
14029 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14030 echo "-hidden">> $lib.exp~
14031 $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~
14033 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14037 hardcode_libdir_separator_CXX=:
14039 # Commands to make compiler produce verbose output that lists
14040 # what "hidden" libraries, object files and flags are used when
14041 # linking a shared library.
14043 # There doesn't appear to be a way to prevent this compiler from
14044 # explicitly linking system object files so we need to strip them
14045 # from the output so that they don't get included in the library
14047 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'
14050 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14051 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14054 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'
14057 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'
14061 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14062 hardcode_libdir_separator_CXX=:
14064 # Commands to make compiler produce verbose output that lists
14065 # what "hidden" libraries, object files and flags are used when
14066 # linking a shared library.
14067 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14070 # FIXME: insert proper C++ library support
14078 # FIXME: insert proper C++ library support
14083 case $cc_basename in
14086 # FIXME: insert proper C++ library support
14091 # FIXME: insert proper C++ library support
14095 # FIXME: insert proper C++ library support
14102 case $cc_basename in
14104 # Sun C++ 4.2, 5.x and Centerline C++
14105 archive_cmds_need_lc_CXX=yes
14106 no_undefined_flag_CXX=' -zdefs'
14107 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14108 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14109 $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'
14111 hardcode_libdir_flag_spec_CXX='-R$libdir'
14112 hardcode_shlibpath_var_CXX=no
14114 solaris2.[0-5] | solaris2.[0-5].*) ;;
14116 # The compiler driver will combine and reorder linker options,
14117 # but understands `-z linker_flag'.
14118 # Supported since Solaris 2.6 (maybe 2.5.1?)
14119 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14122 link_all_deplibs_CXX=yes
14124 output_verbose_link_cmd='echo'
14126 # Archives containing C++ object files must be created using
14127 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14128 # necessary to make sure instantiated templates are included
14130 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14133 # Green Hills C++ Compiler
14134 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14136 # The C++ compiler must be used to create the archive.
14137 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14140 # GNU C++ compiler with Solaris linker
14141 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14142 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14143 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14144 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14145 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14146 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14148 # Commands to make compiler produce verbose output that lists
14149 # what "hidden" libraries, object files and flags are used when
14150 # linking a shared library.
14151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14153 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14155 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14156 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14157 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14159 # Commands to make compiler produce verbose output that lists
14160 # what "hidden" libraries, object files and flags are used when
14161 # linking a shared library.
14162 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14165 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14167 solaris2.[0-5] | solaris2.[0-5].*) ;;
14169 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14177 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14178 no_undefined_flag_CXX='${wl}-z,text'
14179 archive_cmds_need_lc_CXX=no
14180 hardcode_shlibpath_var_CXX=no
14181 runpath_var='LD_RUN_PATH'
14183 case $cc_basename in
14185 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14190 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14195 sysv5* | sco3.2v5* | sco5v6*)
14196 # Note: We can NOT use -z defs as we might desire, because we do not
14197 # link with -lc, and that would cause any symbols used from libc to
14198 # always be unresolved, which means just about no library would
14199 # ever link correctly. If we're not using GNU ld we use -z text
14200 # though, which does catch some bad symbols but isn't as heavy-handed
14202 no_undefined_flag_CXX='${wl}-z,text'
14203 allow_undefined_flag_CXX='${wl}-z,nodefs'
14204 archive_cmds_need_lc_CXX=no
14205 hardcode_shlibpath_var_CXX=no
14206 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14207 hardcode_libdir_separator_CXX=':'
14208 link_all_deplibs_CXX=yes
14209 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14210 runpath_var='LD_RUN_PATH'
14212 case $cc_basename in
14214 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14218 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14225 case $cc_basename in
14227 # NonStop-UX NCC 3.20
14228 # FIXME: insert proper C++ library support
14232 # FIXME: insert proper C++ library support
14239 # FIXME: insert proper C++ library support
14244 # FIXME: insert proper C++ library support
14249 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14250 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14251 test "$ld_shlibs_CXX" = no && can_build_shared=no
14257 ## There is no encapsulation within the following macros, do not change
14258 ## the running order or otherwise move them around unless you know exactly
14259 ## what you are doing...
14260 # Dependencies to place before and after the object being linked:
14261 predep_objects_CXX=
14262 postdep_objects_CXX=
14265 compiler_lib_search_path_CXX=
14267 cat > conftest.$ac_ext <<_LT_EOF
14271 Foo (void) { a = 0; }
14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14278 (eval $ac_compile) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; then
14282 # Parse the compiler output and extract the necessary
14283 # objects, libraries and library flags.
14285 # Sentinel used to keep track of whether or not we are before
14286 # the conftest object file.
14287 pre_test_object_deps_done=no
14289 for p in `eval "$output_verbose_link_cmd"`; do
14293 # Some compilers place space between "-{L,R}" and the path.
14294 # Remove the space.
14295 if test $p = "-L" ||
14296 test $p = "-R"; then
14303 if test "$pre_test_object_deps_done" = no; then
14306 # Internal compiler library paths should come after those
14307 # provided the user. The postdeps already come after the
14308 # user supplied libs so there is no need to process them.
14309 if test -z "$compiler_lib_search_path_CXX"; then
14310 compiler_lib_search_path_CXX="${prev}${p}"
14312 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14315 # The "-l" case would never come before the object being
14316 # linked, so don't bother handling this case.
14319 if test -z "$postdeps_CXX"; then
14320 postdeps_CXX="${prev}${p}"
14322 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14328 # This assumes that the test object file only shows up
14329 # once in the compiler output.
14330 if test "$p" = "conftest.$objext"; then
14331 pre_test_object_deps_done=yes
14335 if test "$pre_test_object_deps_done" = no; then
14336 if test -z "$predep_objects_CXX"; then
14337 predep_objects_CXX="$p"
14339 predep_objects_CXX="$predep_objects_CXX $p"
14342 if test -z "$postdep_objects_CXX"; then
14343 postdep_objects_CXX="$p"
14345 postdep_objects_CXX="$postdep_objects_CXX $p"
14350 *) ;; # Ignore the rest.
14358 echo "libtool.m4: error: problem compiling CXX test program"
14361 $RM -f confest.$objext
14363 # PORTME: override above test on systems where it is broken
14366 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14367 # hack all around it, let's just trust "g++" to DTRT.
14368 predep_objects_CXX=
14369 postdep_objects_CXX=
14374 case `$CC -V 2>&1 | sed 5q` in
14378 # The more standards-conforming stlport4 library is
14379 # incompatible with the Cstd library. Avoid specifying
14380 # it if it's in CXXFLAGS. Ignore libCrun as
14381 # -library=stlport4 depends on it.
14382 case " $CXX $CXXFLAGS " in
14383 *" -library=stlport4 "*)
14384 solaris_use_stlport4=yes
14388 if test "$solaris_use_stlport4" != yes; then
14389 postdeps_CXX='-library=Cstd -library=Crun'
14396 case $cc_basename in
14398 # The more standards-conforming stlport4 library is
14399 # incompatible with the Cstd library. Avoid specifying
14400 # it if it's in CXXFLAGS. Ignore libCrun as
14401 # -library=stlport4 depends on it.
14402 case " $CXX $CXXFLAGS " in
14403 *" -library=stlport4 "*)
14404 solaris_use_stlport4=yes
14408 # Adding this requires a known-good setup of shared libraries for
14409 # Sun compiler versions before 5.6, else PIC objects from an old
14410 # archive will be linked into the output, leading to subtle bugs.
14411 if test "$solaris_use_stlport4" != yes; then
14412 postdeps_CXX='-library=Cstd -library=Crun'
14420 case " $postdeps_CXX " in
14421 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14423 compiler_lib_search_dirs_CXX=
14424 if test -n "${compiler_lib_search_path_CXX}"; then
14425 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14458 lt_prog_compiler_wl_CXX=
14459 lt_prog_compiler_pic_CXX=
14460 lt_prog_compiler_static_CXX=
14462 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14465 # C++ specific cases for pic, static, wl, etc.
14466 if test "$GXX" = yes; then
14467 lt_prog_compiler_wl_CXX='-Wl,'
14468 lt_prog_compiler_static_CXX='-static'
14472 # All AIX code is PIC.
14473 if test "$host_cpu" = ia64; then
14474 # AIX 5 now supports IA64 processor
14475 lt_prog_compiler_static_CXX='-Bstatic'
14482 # see comment about AmigaOS4 .so support
14483 lt_prog_compiler_pic_CXX='-fPIC'
14486 # FIXME: we need at least 68020 code to build shared libraries, but
14487 # adding the `-m68020' flag to GCC prevents building anything better,
14489 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14494 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14495 # PIC is the default for these OSes.
14497 mingw* | cygwin* | os2* | pw32* | cegcc*)
14498 # This hack is so that the source file can tell whether it is being
14499 # built for inclusion in a dll (and should export symbols for example).
14500 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14501 # (--disable-auto-import) libraries
14502 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14504 darwin* | rhapsody*)
14505 # PIC is the default on this platform
14506 # Common symbols not allowed in MH_DYLIB files
14507 lt_prog_compiler_pic_CXX='-fno-common'
14510 # DJGPP does not support shared libraries at all
14511 lt_prog_compiler_pic_CXX=
14514 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14515 # Instead, we relocate shared libraries at runtime.
14518 if test -d /usr/nec; then
14519 lt_prog_compiler_pic_CXX=-Kconform_pic
14523 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14524 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14525 # sets the default TLS model and affects inlining.
14530 lt_prog_compiler_pic_CXX='-fPIC'
14535 # QNX uses GNU C++, but need to define -shared option too, otherwise
14536 # it will coredump.
14537 lt_prog_compiler_pic_CXX='-fPIC -shared'
14540 lt_prog_compiler_pic_CXX='-fPIC'
14546 # All AIX code is PIC.
14547 if test "$host_cpu" = ia64; then
14548 # AIX 5 now supports IA64 processor
14549 lt_prog_compiler_static_CXX='-Bstatic'
14551 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14555 case $cc_basename in
14557 # Green Hills C++ Compiler
14558 # _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"
14563 case $cc_basename in
14565 lt_prog_compiler_pic_CXX='-KPIC'
14568 # Green Hills C++ Compiler
14569 lt_prog_compiler_pic_CXX='-pic'
14575 freebsd* | dragonfly*)
14576 # FreeBSD uses GNU C++
14578 hpux9* | hpux10* | hpux11*)
14579 case $cc_basename in
14581 lt_prog_compiler_wl_CXX='-Wl,'
14582 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14583 if test "$host_cpu" != ia64; then
14584 lt_prog_compiler_pic_CXX='+Z'
14588 lt_prog_compiler_wl_CXX='-Wl,'
14589 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14595 lt_prog_compiler_pic_CXX='+Z'
14604 # This is c89, which is MS Visual C++ (no shared libs)
14605 # Anyone wants to do a port?
14607 irix5* | irix6* | nonstopux*)
14608 case $cc_basename in
14610 lt_prog_compiler_wl_CXX='-Wl,'
14611 lt_prog_compiler_static_CXX='-non_shared'
14612 # CC pic flag -KPIC is the default.
14618 linux* | k*bsd*-gnu)
14619 case $cc_basename in
14622 lt_prog_compiler_wl_CXX='--backend -Wl,'
14623 lt_prog_compiler_pic_CXX='-fPIC'
14626 # old Intel C++ for x86_64 which still supported -KPIC.
14627 lt_prog_compiler_wl_CXX='-Wl,'
14628 lt_prog_compiler_pic_CXX='-KPIC'
14629 lt_prog_compiler_static_CXX='-static'
14632 # Intel C++, used to be incompatible with GCC.
14633 # ICC 10 doesn't accept -KPIC any more.
14634 lt_prog_compiler_wl_CXX='-Wl,'
14635 lt_prog_compiler_pic_CXX='-fPIC'
14636 lt_prog_compiler_static_CXX='-static'
14639 # Portland Group C++ compiler
14640 lt_prog_compiler_wl_CXX='-Wl,'
14641 lt_prog_compiler_pic_CXX='-fpic'
14642 lt_prog_compiler_static_CXX='-Bstatic'
14646 # Make sure the PIC flag is empty. It appears that all Alpha
14647 # Linux and Compaq Tru64 Unix objects are PIC.
14648 lt_prog_compiler_pic_CXX=
14649 lt_prog_compiler_static_CXX='-non_shared'
14652 # IBM XL 8.0 on PPC
14653 lt_prog_compiler_wl_CXX='-Wl,'
14654 lt_prog_compiler_pic_CXX='-qpic'
14655 lt_prog_compiler_static_CXX='-qstaticlink'
14658 case `$CC -V 2>&1 | sed 5q` in
14661 lt_prog_compiler_pic_CXX='-KPIC'
14662 lt_prog_compiler_static_CXX='-Bstatic'
14663 lt_prog_compiler_wl_CXX='-Qoption ld '
14674 case $cc_basename in
14676 lt_prog_compiler_pic_CXX='-W c,exportall'
14685 # QNX uses GNU C++, but need to define -shared option too, otherwise
14686 # it will coredump.
14687 lt_prog_compiler_pic_CXX='-fPIC -shared'
14689 osf3* | osf4* | osf5*)
14690 case $cc_basename in
14692 lt_prog_compiler_wl_CXX='--backend -Wl,'
14695 # Rational C++ 2.4.1
14696 lt_prog_compiler_pic_CXX='-pic'
14699 # Digital/Compaq C++
14700 lt_prog_compiler_wl_CXX='-Wl,'
14701 # Make sure the PIC flag is empty. It appears that all Alpha
14702 # Linux and Compaq Tru64 Unix objects are PIC.
14703 lt_prog_compiler_pic_CXX=
14704 lt_prog_compiler_static_CXX='-non_shared'
14713 case $cc_basename in
14715 # Sun C++ 4.2, 5.x and Centerline C++
14716 lt_prog_compiler_pic_CXX='-KPIC'
14717 lt_prog_compiler_static_CXX='-Bstatic'
14718 lt_prog_compiler_wl_CXX='-Qoption ld '
14721 # Green Hills C++ Compiler
14722 lt_prog_compiler_pic_CXX='-PIC'
14729 case $cc_basename in
14732 lt_prog_compiler_pic_CXX='-pic'
14733 lt_prog_compiler_static_CXX='-Bstatic'
14737 lt_prog_compiler_pic_CXX='-pic'
14743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14744 case $cc_basename in
14746 lt_prog_compiler_wl_CXX='-Wl,'
14747 lt_prog_compiler_pic_CXX='-KPIC'
14748 lt_prog_compiler_static_CXX='-Bstatic'
14753 case $cc_basename in
14755 # NonStop-UX NCC 3.20
14756 lt_prog_compiler_pic_CXX='-KPIC'
14765 lt_prog_compiler_can_build_shared_CXX=no
14771 # For platforms which do not support PIC, -DPIC is meaningless:
14773 lt_prog_compiler_pic_CXX=
14776 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14779 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14780 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14785 # Check to make sure the PIC flag actually works.
14787 if test -n "$lt_prog_compiler_pic_CXX"; then
14788 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14789 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14790 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 lt_cv_prog_compiler_pic_works_CXX=no
14794 ac_outfile=conftest.$ac_objext
14795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14796 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14797 # Insert the option either (1) after the last *FLAGS variable, or
14798 # (2) before a word containing "conftest.", or (3) at the end.
14799 # Note that $ac_compile itself does not contain backslashes and begins
14800 # with a dollar sign (not a hyphen), so the echo should work correctly.
14801 # The option is referenced via a variable to avoid confusing sed.
14802 lt_compile=`echo "$ac_compile" | $SED \
14803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14805 -e 's:$: $lt_compiler_flag:'`
14806 (eval echo "\"\$as_me:14806: $lt_compile\"" >&5)
14807 (eval "$lt_compile" 2>conftest.err)
14809 cat conftest.err >&5
14810 echo "$as_me:14810: \$? = $ac_status" >&5
14811 if (exit $ac_status) && test -s "$ac_outfile"; then
14812 # The compiler can only warn and ignore the option if not recognized
14813 # So say no if there are warnings other than the usual output.
14814 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14817 lt_cv_prog_compiler_pic_works_CXX=yes
14823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14824 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14826 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14827 case $lt_prog_compiler_pic_CXX in
14829 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14832 lt_prog_compiler_pic_CXX=
14833 lt_prog_compiler_can_build_shared_CXX=no
14841 # Check to make sure the static flag actually works.
14843 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14844 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14846 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 lt_cv_prog_compiler_static_works_CXX=no
14850 save_LDFLAGS="$LDFLAGS"
14851 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14852 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14854 # The linker can only warn and ignore the option if not recognized
14855 # So say no if there are warnings
14856 if test -s conftest.err; then
14857 # Append any errors to the config.log.
14858 cat conftest.err 1>&5
14859 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14861 if diff conftest.exp conftest.er2 >/dev/null; then
14862 lt_cv_prog_compiler_static_works_CXX=yes
14865 lt_cv_prog_compiler_static_works_CXX=yes
14869 LDFLAGS="$save_LDFLAGS"
14872 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14873 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14875 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14878 lt_prog_compiler_static_CXX=
14884 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 lt_cv_prog_compiler_c_o_CXX=no
14890 $RM -r conftest 2>/dev/null
14894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14896 lt_compiler_flag="-o out/conftest2.$ac_objext"
14897 # Insert the option either (1) after the last *FLAGS variable, or
14898 # (2) before a word containing "conftest.", or (3) at the end.
14899 # Note that $ac_compile itself does not contain backslashes and begins
14900 # with a dollar sign (not a hyphen), so the echo should work correctly.
14901 lt_compile=`echo "$ac_compile" | $SED \
14902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904 -e 's:$: $lt_compiler_flag:'`
14905 (eval echo "\"\$as_me:14905: $lt_compile\"" >&5)
14906 (eval "$lt_compile" 2>out/conftest.err)
14908 cat out/conftest.err >&5
14909 echo "$as_me:14909: \$? = $ac_status" >&5
14910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14912 # The compiler can only warn and ignore the option if not recognized
14913 # So say no if there are warnings
14914 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14917 lt_cv_prog_compiler_c_o_CXX=yes
14922 # SGI C++ compiler will create directory out/ii_files/ for
14923 # template instantiation
14924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14925 $RM out/* && rmdir out
14931 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14932 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14936 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14937 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14938 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 lt_cv_prog_compiler_c_o_CXX=no
14942 $RM -r conftest 2>/dev/null
14946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14948 lt_compiler_flag="-o out/conftest2.$ac_objext"
14949 # Insert the option either (1) after the last *FLAGS variable, or
14950 # (2) before a word containing "conftest.", or (3) at the end.
14951 # Note that $ac_compile itself does not contain backslashes and begins
14952 # with a dollar sign (not a hyphen), so the echo should work correctly.
14953 lt_compile=`echo "$ac_compile" | $SED \
14954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14956 -e 's:$: $lt_compiler_flag:'`
14957 (eval echo "\"\$as_me:14957: $lt_compile\"" >&5)
14958 (eval "$lt_compile" 2>out/conftest.err)
14960 cat out/conftest.err >&5
14961 echo "$as_me:14961: \$? = $ac_status" >&5
14962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14964 # The compiler can only warn and ignore the option if not recognized
14965 # So say no if there are warnings
14966 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14969 lt_cv_prog_compiler_c_o_CXX=yes
14974 # SGI C++ compiler will create directory out/ii_files/ for
14975 # template instantiation
14976 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14977 $RM out/* && rmdir out
14983 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14984 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14989 hard_links="nottested"
14990 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14991 # do not overwrite the value of need_locks provided by the user
14992 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14993 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14998 ln conftest.a conftest.b 2>&5 || hard_links=no
14999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000 { echo "$as_me:$LINENO: result: $hard_links" >&5
15001 echo "${ECHO_T}$hard_links" >&6; }
15002 if test "$hard_links" = no; then
15003 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15004 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15013 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15016 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15019 # If we're using GNU nm, then we don't want the "-C" option.
15020 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15021 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15022 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'
15024 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'
15028 export_symbols_cmds_CXX="$ltdll_cmds"
15030 cygwin* | mingw* | cegcc*)
15031 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'
15034 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15037 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15039 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15040 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15041 test "$ld_shlibs_CXX" = no && can_build_shared=no
15043 with_gnu_ld_CXX=$with_gnu_ld
15051 # Do we need to explicitly link libc?
15053 case "x$archive_cmds_need_lc_CXX" in
15055 # Assume -lc should be added
15056 archive_cmds_need_lc_CXX=yes
15058 if test "$enable_shared" = yes && test "$GCC" = yes; then
15059 case $archive_cmds_CXX in
15061 # FIXME: we may have to deal with multi-command sequences.
15064 # Test whether the compiler implicitly links with -lc since on some
15065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15066 # to ld, don't add -lc before -lgcc.
15067 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15068 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073 (eval $ac_compile) 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } 2>conftest.err; then
15079 libobjs=conftest.$ac_objext
15081 wl=$lt_prog_compiler_wl_CXX
15082 pic_flag=$lt_prog_compiler_pic_CXX
15088 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15089 allow_undefined_flag_CXX=
15090 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15091 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }
15096 archive_cmds_need_lc_CXX=no
15098 archive_cmds_need_lc_CXX=yes
15100 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15102 cat conftest.err 1>&5
15105 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15106 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15176 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15177 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15179 library_names_spec=
15180 libname_spec='lib$name'
15184 postuninstall_cmds=
15188 shlibpath_overrides_runpath=unknown
15190 dynamic_linker="$host_os ld.so"
15191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15192 need_lib_prefix=unknown
15193 hardcode_into_libs=no
15195 # when you set need_version to no, make sure it does not cause -set_version
15196 # flags to be left without arguments
15197 need_version=unknown
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15203 shlibpath_var=LIBPATH
15205 # AIX 3 has no versioning support, so we append a major version to the name.
15206 soname_spec='${libname}${release}${shared_ext}$major'
15213 hardcode_into_libs=yes
15214 if test "$host_cpu" = ia64; then
15215 # AIX 5 supports IA64
15216 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15217 shlibpath_var=LD_LIBRARY_PATH
15219 # With GCC up to 2.95.x, collect2 would create an import file
15220 # for dependence libraries. The import file would start with
15221 # the line `#! .'. This would cause the generated library to
15222 # depend on `.', always an invalid library. This was fixed in
15223 # development snapshots of GCC prior to 3.0.
15225 aix4 | aix4.[01] | aix4.[01].*)
15226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15228 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15231 can_build_shared=no
15235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15236 # soname into executable. Probably we can add versioning support to
15237 # collect2, so additional links can be useful in future.
15238 if test "$aix_use_runtimelinking" = yes; then
15239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15240 # instead of lib<name>.a to let people know that these are not
15241 # typical AIX shared libraries.
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244 # We preserve .a as extension for shared libraries through AIX4.2
15245 # and later when we are not doing run time linking.
15246 library_names_spec='${libname}${release}.a $libname.a'
15247 soname_spec='${libname}${release}${shared_ext}$major'
15249 shlibpath_var=LIBPATH
15256 # Since July 2007 AmigaOS4 officially supports .so libraries.
15257 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 library_names_spec='$libname.ixlibrary $libname.a'
15262 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15263 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'
15269 library_names_spec='${libname}${shared_ext}'
15270 dynamic_linker="$host_os ld.so"
15271 shlibpath_var=LIBRARY_PATH
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15283 # the default ld.so.conf also contains /usr/contrib/lib and
15284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15285 # libtool to hard-code these into programs
15288 cygwin* | mingw* | pw32* | cegcc*)
15289 version_type=windows
15294 case $GCC,$host_os in
15295 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15296 library_names_spec='$libname.dll.a'
15297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15298 postinstall_cmds='base_file=`basename \${file}`~
15299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15300 dldir=$destdir/`dirname \$dlpath`~
15301 test -d \$dldir || mkdir -p \$dldir~
15302 $install_prog $dir/$dlname \$dldir/$dlname~
15303 chmod a+x \$dldir/$dlname~
15304 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15305 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15308 dlpath=$dir/\$dldll~
15310 shlibpath_overrides_runpath=yes
15314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15316 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15319 # MinGW DLLs use traditional 'lib' prefix
15320 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15321 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15322 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15323 # It is most probably a Windows format PATH printed by
15324 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15325 # path with ; separators, and with drive letters. We can handle the
15326 # drive letters (cygwin fileutils understands them), so leave them,
15327 # especially as we might pass files found there to a mingw objdump,
15328 # which wouldn't understand a cygwinified path. Ahh.
15329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15335 # pw32 DLLs use 'pw' prefix rather than 'lib'
15336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15342 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15345 dynamic_linker='Win32 ld.exe'
15346 # FIXME: first we should search . and the directory the executable is in
15350 darwin* | rhapsody*)
15351 dynamic_linker="$host_os dyld"
15352 version_type=darwin
15355 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15356 soname_spec='${libname}${release}${major}$shared_ext'
15357 shlibpath_overrides_runpath=yes
15358 shlibpath_var=DYLD_LIBRARY_PATH
15359 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15361 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
15377 freebsd* | dragonfly*)
15378 # DragonFly does not have aout. When/if they implement a new
15379 # versioning mechanism, adjust this.
15380 if test -x /usr/bin/objformat; then
15381 objformat=`/usr/bin/objformat`
15384 freebsd[123]*) objformat=aout ;;
15385 *) objformat=elf ;;
15388 version_type=freebsd-$objformat
15389 case $version_type in
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15400 shlibpath_var=LD_LIBRARY_PATH
15403 shlibpath_overrides_runpath=yes
15405 freebsd3.[01]* | freebsdelf3.[01]*)
15406 shlibpath_overrides_runpath=yes
15407 hardcode_into_libs=yes
15409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15411 shlibpath_overrides_runpath=no
15412 hardcode_into_libs=yes
15414 *) # from 4.6 on, and DragonFly
15415 shlibpath_overrides_runpath=yes
15416 hardcode_into_libs=yes
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 hardcode_into_libs=yes
15431 hpux9* | hpux10* | hpux11*)
15432 # Give a soname corresponding to the major version so that dld.sl refuses to
15433 # link against other versions.
15440 hardcode_into_libs=yes
15441 dynamic_linker="$host_os dld.so"
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15446 if test "X$HPUX_IA64_MODE" = X32; then
15447 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15455 hardcode_into_libs=yes
15456 dynamic_linker="$host_os dld.sl"
15457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15466 dynamic_linker="$host_os dld.sl"
15467 shlibpath_var=SHLIB_PATH
15468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15473 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15474 postinstall_cmds='chmod 555 $lib'
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15484 shlibpath_var=LD_LIBRARY_PATH
15485 shlibpath_overrides_runpath=no
15486 hardcode_into_libs=yes
15489 irix5* | irix6* | nonstopux*)
15491 nonstopux*) version_type=nonstopux ;;
15493 if test "$lt_cv_prog_gnu_ld" = yes; then
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15504 irix5* | nonstopux*)
15505 libsuff= shlibsuff=
15508 case $LD in # libtool.m4 will add one of these switches to LD
15509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15510 libsuff= shlibsuff= libmagic=32-bit;;
15511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15512 libsuff=32 shlibsuff=N32 libmagic=N32;;
15513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15515 *) libsuff= shlibsuff= libmagic=never-match;;
15519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15520 shlibpath_overrides_runpath=no
15521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15523 hardcode_into_libs=yes
15526 # No shared lib support for Linux oldld, aout, or coff.
15527 linux*oldld* | linux*aout* | linux*coff*)
15531 # This must be Linux ELF.
15532 linux* | k*bsd*-gnu)
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=no
15541 # Some binutils ld are patched to set DT_RUNPATH
15542 save_LDFLAGS=$LDFLAGS
15543 save_libdir=$libdir
15544 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15545 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (ac_try="$ac_link"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_link") 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && {
15575 test -z "$ac_cxx_werror_flag" ||
15576 test ! -s conftest.err
15577 } && test -s conftest$ac_exeext &&
15578 $as_test_x conftest$ac_exeext; then
15579 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15580 shlibpath_overrides_runpath=yes
15584 echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15591 conftest$ac_exeext conftest.$ac_ext
15592 LDFLAGS=$save_LDFLAGS
15593 libdir=$save_libdir
15595 # This implies no fast_install, which is unacceptable.
15596 # Some rework will be needed to allow for fast_install
15597 # before this can be enabled.
15598 hardcode_into_libs=yes
15600 # Append ld.so.conf contents to the search path
15601 if test -f /etc/ld.so.conf; then
15602 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' ' '`
15603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15606 # We used to test for /lib/ld.so.1 and disable shared libraries on
15607 # powerpc, because MkLinux only supported shared libraries with the
15608 # GNU dynamic linker. Since this was broken with cross compilers,
15609 # most powerpc-linux boxes support dynamic linking these days and
15610 # people can always --disable-shared, the test was removed, and we
15611 # assume the GNU/Linux dynamic linker is in use.
15612 dynamic_linker='GNU/Linux ld.so'
15619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15622 dynamic_linker='NetBSD (a.out) ld.so'
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 dynamic_linker='NetBSD ld.elf_so'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 shlibpath_overrides_runpath=yes
15630 hardcode_into_libs=yes
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 shlibpath_overrides_runpath=yes
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=no
15648 hardcode_into_libs=yes
15649 dynamic_linker='ldqnx.so'
15654 sys_lib_dlsearch_path_spec="/usr/lib"
15656 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15658 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15659 *) need_version=no ;;
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15663 shlibpath_var=LD_LIBRARY_PATH
15664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15666 openbsd2.[89] | openbsd2.[89].*)
15667 shlibpath_overrides_runpath=no
15670 shlibpath_overrides_runpath=yes
15674 shlibpath_overrides_runpath=yes
15679 libname_spec='$name'
15682 library_names_spec='$libname${shared_ext} $libname.a'
15683 dynamic_linker='OS/2 ld.exe'
15684 shlibpath_var=LIBPATH
15687 osf3* | osf4* | osf5*)
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707 soname_spec='${libname}${release}${shared_ext}$major'
15708 shlibpath_var=LD_LIBRARY_PATH
15709 shlibpath_overrides_runpath=yes
15710 hardcode_into_libs=yes
15711 # ldd complains unless libraries are executable
15712 postinstall_cmds='chmod +x $lib'
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 shlibpath_overrides_runpath=yes
15721 if test "$with_gnu_ld" = yes; then
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730 soname_spec='${libname}${release}${shared_ext}$major'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 case $host_vendor in
15734 shlibpath_overrides_runpath=no
15736 runpath_var=LD_RUN_PATH
15744 shlibpath_overrides_runpath=no
15745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15751 if test -d /usr/nec ;then
15753 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15754 soname_spec='$libname${shared_ext}.$major'
15755 shlibpath_var=LD_LIBRARY_PATH
15759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15760 version_type=freebsd-elf
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 shlibpath_var=LD_LIBRARY_PATH
15766 shlibpath_overrides_runpath=yes
15767 hardcode_into_libs=yes
15768 if test "$with_gnu_ld" = yes; then
15769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15778 sys_lib_dlsearch_path_spec='/usr/lib'
15782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 shlibpath_overrides_runpath=no
15789 hardcode_into_libs=yes
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 shlibpath_var=LD_LIBRARY_PATH
15803 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15804 echo "${ECHO_T}$dynamic_linker" >&6; }
15805 test "$dynamic_linker" = no && can_build_shared=no
15807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15808 if test "$GCC" = yes; then
15809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15812 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15813 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15815 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15816 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15854 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15855 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15856 hardcode_action_CXX=
15857 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15858 test -n "$runpath_var_CXX" ||
15859 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15861 # We can hardcode non-existent directories.
15862 if test "$hardcode_direct_CXX" != no &&
15863 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15864 # have to relink, otherwise we might link with an installed library
15865 # when we should be linking with a yet-to-be-installed one
15866 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15867 test "$hardcode_minus_L_CXX" != no; then
15868 # Linking always hardcodes the temporary library directory.
15869 hardcode_action_CXX=relink
15871 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15872 hardcode_action_CXX=immediate
15875 # We cannot hardcode anything, or else we can only hardcode existing
15877 hardcode_action_CXX=unsupported
15879 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15880 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15882 if test "$hardcode_action_CXX" = relink ||
15883 test "$inherit_rpath_CXX" = yes; then
15884 # Fast installation is not supported
15885 enable_fast_install=no
15886 elif test "$shlibpath_overrides_runpath" = yes ||
15887 test "$enable_shared" = no; then
15888 # Fast installation is not necessary
15889 enable_fast_install=needless
15898 fi # test -n "$compiler"
15904 with_gnu_ld=$lt_save_with_gnu_ld
15905 lt_cv_path_LDCXX=$lt_cv_path_LD
15906 lt_cv_path_LD=$lt_save_path_LD
15907 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15908 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15909 fi # test "$_lt_caught_CXX_error" != yes
15912 ac_cpp='$CXXCPP $CPPFLAGS'
15913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15929 ac_config_commands="$ac_config_commands libtool"
15934 # Only expand once:
15939 if test x$use_libtool != xno; then
15940 DEFAULT_OBJECT_TYPE=".lo"
15941 DEFAULT_ARCHIVE_TYPE=".la"
15942 DEFAULT_SHARED_OBJECT_TYPE=".la"
15943 LIBTOOL="\$(LIBTOOL)"
15944 LIBTOOL_INSTALL_TARGET="libtool-install"
15945 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15946 LIBTOOL_CLEAN_TARGET="libtool-clean"
15947 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15948 FD_PLUGIN_DIR="src/plugins/fd"
15951 DEFAULT_OBJECT_TYPE=".o"
15952 DEFAULT_ARCHIVE_TYPE=".a"
15953 DEFAULT_SHARED_OBJECT_TYPE=".so"
15954 LIBTOOL="# \$(LIBTOOL)"
15955 LIBTOOL_INSTALL_TARGET=""
15956 LIBTOOL_UNINSTALL_TARGET=""
15957 LIBTOOL_CLEAN_TARGET=""
15958 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15973 # Check whether --enable-includes was given.
15974 if test "${enable_includes+set}" = set; then
15975 enableval=$enable_includes;
15976 if test x$enableval = xyes; then
15977 install_includes=yes
15985 if test x$use_libtool != xno -a x$install_includes = xyes; then
15986 INCLUDE_INSTALL_TARGET="install-includes"
15987 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15989 INCLUDE_INSTALL_TARGET=""
15990 INCLUDE_UNINSTALL_TARGET=""
15996 { echo "$as_me:$LINENO: checking host system type" >&5
15997 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15998 if test "${ac_cv_host+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 if test "x$host_alias" = x; then
16002 ac_cv_host=$ac_cv_build
16004 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
16005 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
16006 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
16007 { (exit 1); exit 1; }; }
16011 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16012 echo "${ECHO_T}$ac_cv_host" >&6; }
16013 case $ac_cv_host in
16015 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16016 echo "$as_me: error: invalid value of canonical host" >&2;}
16017 { (exit 1); exit 1; }; };;
16020 ac_save_IFS=$IFS; IFS='-'
16026 # Remember, the first character of IFS is used to create $*,
16027 # except with old shells:
16030 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16034 *cygwin* ) CYGWIN=yes;;
16038 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16044 HAVE_SUN_OS_FALSE='#'
16046 HAVE_SUN_OS_TRUE='#'
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_SUN_OS 1
16058 HAVE_SUN_OS_FALSE='#'
16060 HAVE_SUN_OS_TRUE='#'
16065 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16071 HAVE_OSF1_OS_FALSE='#'
16073 HAVE_OSF1_OS_TRUE='#'
16074 HAVE_OSF1_OS_FALSE=
16076 cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_OSF1_OS 1
16085 HAVE_OSF1_OS_FALSE='#'
16087 HAVE_OSF1_OS_TRUE='#'
16088 HAVE_OSF1_OS_FALSE=
16092 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16098 HAVE_AIX_OS_FALSE='#'
16100 HAVE_AIX_OS_TRUE='#'
16103 cat >>confdefs.h <<\_ACEOF
16104 #define HAVE_AIX_OS 1
16112 HAVE_AIX_OS_FALSE='#'
16114 HAVE_AIX_OS_TRUE='#'
16119 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16125 HAVE_HPUX_OS_FALSE='#'
16127 HAVE_HPUX_OS_TRUE='#'
16128 HAVE_HPUX_OS_FALSE=
16130 cat >>confdefs.h <<\_ACEOF
16131 #define HAVE_HPUX_OS 1
16139 HAVE_HPUX_OS_FALSE='#'
16141 HAVE_HPUX_OS_TRUE='#'
16142 HAVE_HPUX_OS_FALSE=
16146 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16151 HAVE_LINUX_OS_TRUE=
16152 HAVE_LINUX_OS_FALSE='#'
16154 HAVE_LINUX_OS_TRUE='#'
16155 HAVE_LINUX_OS_FALSE=
16157 cat >>confdefs.h <<\_ACEOF
16158 #define HAVE_LINUX_OS 1
16165 HAVE_LINUX_OS_TRUE=
16166 HAVE_LINUX_OS_FALSE='#'
16168 HAVE_LINUX_OS_TRUE='#'
16169 HAVE_LINUX_OS_FALSE=
16173 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16178 HAVE_FREEBSD_OS_TRUE=
16179 HAVE_FREEBSD_OS_FALSE='#'
16181 HAVE_FREEBSD_OS_TRUE='#'
16182 HAVE_FREEBSD_OS_FALSE=
16184 cat >>confdefs.h <<\_ACEOF
16185 #define HAVE_FREEBSD_OS 1
16192 HAVE_FREEBSD_OS_TRUE=
16193 HAVE_FREEBSD_OS_FALSE='#'
16195 HAVE_FREEBSD_OS_TRUE='#'
16196 HAVE_FREEBSD_OS_FALSE=
16200 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16205 HAVE_NETBSD_OS_TRUE=
16206 HAVE_NETBSD_OS_FALSE='#'
16208 HAVE_NETBSD_OS_TRUE='#'
16209 HAVE_NETBSD_OS_FALSE=
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_NETBSD_OS 1
16219 HAVE_NETBSD_OS_TRUE=
16220 HAVE_NETBSD_OS_FALSE='#'
16222 HAVE_NETBSD_OS_TRUE='#'
16223 HAVE_NETBSD_OS_FALSE=
16227 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16232 HAVE_OPENBSD_OS_TRUE=
16233 HAVE_OPENBSD_OS_FALSE='#'
16235 HAVE_OPENBSD_OS_TRUE='#'
16236 HAVE_OPENBSD_OS_FALSE=
16238 cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_OPENBSD_OS 1
16246 HAVE_OPENBSD_OS_TRUE=
16247 HAVE_OPENBSD_OS_FALSE='#'
16249 HAVE_OPENBSD_OS_TRUE='#'
16250 HAVE_OPENBSD_OS_FALSE=
16254 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16260 HAVE_BSDI_OS_FALSE='#'
16262 HAVE_BSDI_OS_TRUE='#'
16263 HAVE_BSDI_OS_FALSE=
16265 cat >>confdefs.h <<\_ACEOF
16266 #define HAVE_BSDI_OS 1
16274 HAVE_BSDI_OS_FALSE='#'
16276 HAVE_BSDI_OS_TRUE='#'
16277 HAVE_BSDI_OS_FALSE=
16281 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16287 HAVE_SGI_OS_FALSE='#'
16289 HAVE_SGI_OS_TRUE='#'
16292 cat >>confdefs.h <<\_ACEOF
16293 #define HAVE_SGI_OS 1
16301 HAVE_SGI_OS_FALSE='#'
16303 HAVE_SGI_OS_TRUE='#'
16308 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16314 HAVE_IRIX_OS_FALSE='#'
16316 HAVE_IRIX_OS_TRUE='#'
16317 HAVE_IRIX_OS_FALSE=
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_IRIX_OS 1
16328 HAVE_IRIX_OS_FALSE='#'
16330 HAVE_IRIX_OS_TRUE='#'
16331 HAVE_IRIX_OS_FALSE=
16335 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16340 HAVE_DARWIN_OS_TRUE=
16341 HAVE_DARWIN_OS_FALSE='#'
16343 HAVE_DARWIN_OS_TRUE='#'
16344 HAVE_DARWIN_OS_FALSE=
16346 cat >>confdefs.h <<\_ACEOF
16347 #define HAVE_DARWIN_OS 1
16354 HAVE_DARWIN_OS_TRUE=
16355 HAVE_DARWIN_OS_FALSE='#'
16357 HAVE_DARWIN_OS_TRUE='#'
16358 HAVE_DARWIN_OS_FALSE=
16363 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16364 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16365 if test "x$DISTNAME" != "x"
16367 echo "distname set to $DISTNAME"
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16386 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16389 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16392 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16395 elif test -f /etc/SuSE-release
16398 elif test -d /etc/SuSEconfig
16401 elif test -f /etc/mandrake-release
16404 elif test -f /etc/whitebox-release
16407 elif test -f /etc/redhat-release
16410 elif test -f /etc/gentoo-release
16413 elif test -f /etc/debian_version
16416 elif test -f /etc/slackware-version
16419 elif test x$host_vendor = xapple
16422 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16425 elif test -f /etc/engarde-version
16428 elif test "$CYGWIN" = yes
16431 cat >>confdefs.h <<\_ACEOF
16432 #define HAVE_CYGWIN 1
16438 { echo "$as_me:$LINENO: result: done" >&5
16439 echo "${ECHO_T}done" >&6; }
16442 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16443 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16444 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16445 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 cat >conftest.make <<\_ACEOF
16451 @echo '@@@%%%=$(MAKE)=@@@%%%'
16453 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16454 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16455 *@@@%%%=?*=@@@%%%*)
16456 eval ac_cv_prog_make_${ac_make}_set=yes;;
16458 eval ac_cv_prog_make_${ac_make}_set=no;;
16460 rm -f conftest.make
16462 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16463 { echo "$as_me:$LINENO: result: yes" >&5
16464 echo "${ECHO_T}yes" >&6; }
16467 { echo "$as_me:$LINENO: result: no" >&5
16468 echo "${ECHO_T}no" >&6; }
16469 SET_MAKE="MAKE=${MAKE-make}"
16475 if test -n "$ac_aux_dir"; then
16476 case "$ac_aux_dir" in
16477 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16478 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16481 if test -z "$MKINSTALLDIRS"; then
16482 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16487 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16488 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16489 # Check whether --enable-nls was given.
16490 if test "${enable_nls+set}" = set; then
16491 enableval=$enable_nls; USE_NLS=$enableval
16496 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16497 echo "${ECHO_T}$USE_NLS" >&6; }
16504 # Prepare PATH_SEPARATOR.
16505 # The user is always right.
16506 if test "${PATH_SEPARATOR+set}" != set; then
16507 echo "#! /bin/sh" >conf$$.sh
16508 echo "exit 0" >>conf$$.sh
16510 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16518 # Find out how to test for executable files. Don't use a zero-byte file,
16519 # as systems may use methods other than mode bits to determine executability.
16520 cat >conf$$.file <<_ASEOF
16524 chmod +x conf$$.file
16525 if test -x conf$$.file >/dev/null 2>&1; then
16526 ac_executable_p="test -x"
16528 ac_executable_p="test -f"
16532 # Extract the first word of "msgfmt", so it can be a program name with args.
16533 set dummy msgfmt; ac_word=$2
16534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16536 if test "${ac_cv_path_MSGFMT+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16544 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16545 for ac_dir in $PATH; do
16547 test -z "$ac_dir" && ac_dir=.
16548 for ac_exec_ext in '' $ac_executable_extensions; do
16549 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16550 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16551 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16552 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16553 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16560 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16564 MSGFMT="$ac_cv_path_MSGFMT"
16565 if test "$MSGFMT" != ":"; then
16566 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16567 echo "${ECHO_T}$MSGFMT" >&6; }
16569 { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16573 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16574 set dummy gmsgfmt; ac_word=$2
16575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16577 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16586 for as_dir in $PATH
16589 test -z "$as_dir" && as_dir=.
16590 for ac_exec_ext in '' $ac_executable_extensions; do
16591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16592 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16600 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16604 GMSGFMT=$ac_cv_path_GMSGFMT
16605 if test -n "$GMSGFMT"; then
16606 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16607 echo "${ECHO_T}$GMSGFMT" >&6; }
16609 { echo "$as_me:$LINENO: result: no" >&5
16610 echo "${ECHO_T}no" >&6; }
16616 # Prepare PATH_SEPARATOR.
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16619 echo "#! /bin/sh" >conf$$.sh
16620 echo "exit 0" >>conf$$.sh
16622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16630 # Find out how to test for executable files. Don't use a zero-byte file,
16631 # as systems may use methods other than mode bits to determine executability.
16632 cat >conf$$.file <<_ASEOF
16636 chmod +x conf$$.file
16637 if test -x conf$$.file >/dev/null 2>&1; then
16638 ac_executable_p="test -x"
16640 ac_executable_p="test -f"
16644 # Extract the first word of "xgettext", so it can be a program name with args.
16645 set dummy xgettext; ac_word=$2
16646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16648 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 case "$XGETTEXT" in
16653 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16656 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16657 for ac_dir in $PATH; do
16659 test -z "$ac_dir" && ac_dir=.
16660 for ac_exec_ext in '' $ac_executable_extensions; do
16661 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16662 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16663 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16664 (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
16665 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16672 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16676 XGETTEXT="$ac_cv_path_XGETTEXT"
16677 if test "$XGETTEXT" != ":"; then
16678 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16679 echo "${ECHO_T}$XGETTEXT" >&6; }
16681 { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16688 # Prepare PATH_SEPARATOR.
16689 # The user is always right.
16690 if test "${PATH_SEPARATOR+set}" != set; then
16691 echo "#! /bin/sh" >conf$$.sh
16692 echo "exit 0" >>conf$$.sh
16694 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16702 # Find out how to test for executable files. Don't use a zero-byte file,
16703 # as systems may use methods other than mode bits to determine executability.
16704 cat >conf$$.file <<_ASEOF
16708 chmod +x conf$$.file
16709 if test -x conf$$.file >/dev/null 2>&1; then
16710 ac_executable_p="test -x"
16712 ac_executable_p="test -f"
16716 # Extract the first word of "msgmerge", so it can be a program name with args.
16717 set dummy msgmerge; ac_word=$2
16718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16720 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 case "$MSGMERGE" in
16725 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16728 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16729 for ac_dir in $PATH; do
16731 test -z "$ac_dir" && ac_dir=.
16732 for ac_exec_ext in '' $ac_executable_extensions; do
16733 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16734 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16735 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16736 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16743 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16747 MSGMERGE="$ac_cv_path_MSGMERGE"
16748 if test "$MSGMERGE" != ":"; then
16749 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16750 echo "${ECHO_T}$MSGMERGE" >&6; }
16752 { echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6; }
16757 if test "$GMSGFMT" != ":"; then
16758 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16759 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16762 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16763 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16764 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16769 if test "$XGETTEXT" != ":"; then
16770 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16771 (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
16774 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16775 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16781 ac_config_commands="$ac_config_commands default-1"
16785 if test "X$prefix" = "XNONE"; then
16786 acl_final_prefix="$ac_default_prefix"
16788 acl_final_prefix="$prefix"
16790 if test "X$exec_prefix" = "XNONE"; then
16791 acl_final_exec_prefix='${prefix}'
16793 acl_final_exec_prefix="$exec_prefix"
16795 acl_save_prefix="$prefix"
16796 prefix="$acl_final_prefix"
16797 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16798 prefix="$acl_save_prefix"
16801 # Check whether --with-gnu-ld was given.
16802 if test "${with_gnu_ld+set}" = set; then
16803 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16808 # Prepare PATH_SEPARATOR.
16809 # The user is always right.
16810 if test "${PATH_SEPARATOR+set}" != set; then
16811 echo "#! /bin/sh" >conf$$.sh
16812 echo "exit 0" >>conf$$.sh
16814 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16822 if test "$GCC" = yes; then
16823 # Check if gcc -print-prog-name=ld gives a path.
16824 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16825 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16828 # gcc leaves a trailing carriage return which upsets mingw
16829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16834 # Accept absolute paths.
16835 [\\/]* | [A-Za-z]:[\\/]*)
16836 re_direlt='/[^/][^/]*/\.\./'
16837 # Canonicalize the path of ld
16838 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16839 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16840 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16842 test -z "$LD" && LD="$ac_prog"
16845 # If it fails, then pretend we aren't using GCC.
16849 # If it is relative, then search for the first ld in PATH.
16850 with_gnu_ld=unknown
16853 elif test "$with_gnu_ld" = yes; then
16854 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16855 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16857 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16858 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16860 if test "${acl_cv_path_LD+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 if test -z "$LD"; then
16864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16865 for ac_dir in $PATH; do
16866 test -z "$ac_dir" && ac_dir=.
16867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16868 acl_cv_path_LD="$ac_dir/$ac_prog"
16869 # Check to see if the program is GNU ld. I'd rather use --version,
16870 # but apparently some GNU ld's only accept -v.
16871 # Break only if it was the GNU/non-GNU ld that we prefer.
16872 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16873 *GNU* | *'with BFD'*)
16874 test "$with_gnu_ld" != no && break ;;
16876 test "$with_gnu_ld" != yes && break ;;
16882 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16886 LD="$acl_cv_path_LD"
16887 if test -n "$LD"; then
16888 { echo "$as_me:$LINENO: result: $LD" >&5
16889 echo "${ECHO_T}$LD" >&6; }
16891 { echo "$as_me:$LINENO: result: no" >&5
16892 echo "${ECHO_T}no" >&6; }
16894 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16895 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16896 { (exit 1); exit 1; }; }
16897 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16898 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16899 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16903 case `$LD -v 2>&1 </dev/null` in
16904 *GNU* | *'with BFD'*)
16905 acl_cv_prog_gnu_ld=yes ;;
16907 acl_cv_prog_gnu_ld=no ;;
16910 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16911 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16912 with_gnu_ld=$acl_cv_prog_gnu_ld
16917 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16918 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16919 if test "${acl_cv_rpath+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16924 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16926 rm -f ./conftest.sh
16930 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16931 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16933 libext="$acl_cv_libext"
16934 shlibext="$acl_cv_shlibext"
16935 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16936 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16937 hardcode_direct="$acl_cv_hardcode_direct"
16938 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16939 # Check whether --enable-rpath was given.
16940 if test "${enable_rpath+set}" = set; then
16941 enableval=$enable_rpath; :
16955 acl_save_prefix="$prefix"
16956 prefix="$acl_final_prefix"
16957 acl_save_exec_prefix="$exec_prefix"
16958 exec_prefix="$acl_final_exec_prefix"
16960 eval additional_includedir=\"$includedir\"
16961 eval additional_libdir=\"$libdir\"
16963 exec_prefix="$acl_save_exec_prefix"
16964 prefix="$acl_save_prefix"
16967 # Check whether --with-libiconv-prefix was given.
16968 if test "${with_libiconv_prefix+set}" = set; then
16969 withval=$with_libiconv_prefix;
16970 if test "X$withval" = "Xno"; then
16973 if test "X$withval" = "X"; then
16975 acl_save_prefix="$prefix"
16976 prefix="$acl_final_prefix"
16977 acl_save_exec_prefix="$exec_prefix"
16978 exec_prefix="$acl_final_exec_prefix"
16980 eval additional_includedir=\"$includedir\"
16981 eval additional_libdir=\"$libdir\"
16983 exec_prefix="$acl_save_exec_prefix"
16984 prefix="$acl_save_prefix"
16987 additional_includedir="$withval/include"
16988 additional_libdir="$withval/lib"
16999 names_already_handled=
17000 names_next_round='iconv '
17001 while test -n "$names_next_round"; do
17002 names_this_round="$names_next_round"
17004 for name in $names_this_round; do
17006 for n in $names_already_handled; do
17007 if test "$n" = "$name"; then
17008 already_handled=yes
17012 if test -z "$already_handled"; then
17013 names_already_handled="$names_already_handled $name"
17014 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17015 eval value=\"\$HAVE_LIB$uppername\"
17016 if test -n "$value"; then
17017 if test "$value" = yes; then
17018 eval value=\"\$LIB$uppername\"
17019 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17020 eval value=\"\$LTLIB$uppername\"
17021 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17030 if test $use_additional = yes; then
17031 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17032 found_dir="$additional_libdir"
17033 found_so="$additional_libdir/lib$name.$shlibext"
17034 if test -f "$additional_libdir/lib$name.la"; then
17035 found_la="$additional_libdir/lib$name.la"
17038 if test -f "$additional_libdir/lib$name.$libext"; then
17039 found_dir="$additional_libdir"
17040 found_a="$additional_libdir/lib$name.$libext"
17041 if test -f "$additional_libdir/lib$name.la"; then
17042 found_la="$additional_libdir/lib$name.la"
17047 if test "X$found_dir" = "X"; then
17048 for x in $LDFLAGS $LTLIBICONV; do
17050 acl_save_prefix="$prefix"
17051 prefix="$acl_final_prefix"
17052 acl_save_exec_prefix="$exec_prefix"
17053 exec_prefix="$acl_final_exec_prefix"
17055 exec_prefix="$acl_save_exec_prefix"
17056 prefix="$acl_save_prefix"
17060 dir=`echo "X$x" | sed -e 's/^X-L//'`
17061 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17063 found_so="$dir/lib$name.$shlibext"
17064 if test -f "$dir/lib$name.la"; then
17065 found_la="$dir/lib$name.la"
17068 if test -f "$dir/lib$name.$libext"; then
17070 found_a="$dir/lib$name.$libext"
17071 if test -f "$dir/lib$name.la"; then
17072 found_la="$dir/lib$name.la"
17078 if test "X$found_dir" != "X"; then
17083 if test "X$found_dir" != "X"; then
17084 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17085 if test "X$found_so" != "X"; then
17086 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17087 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090 for x in $ltrpathdirs; do
17091 if test "X$x" = "X$found_dir"; then
17096 if test -z "$haveit"; then
17097 ltrpathdirs="$ltrpathdirs $found_dir"
17099 if test "$hardcode_direct" = yes; then
17100 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17102 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17103 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17105 for x in $rpathdirs; do
17106 if test "X$x" = "X$found_dir"; then
17111 if test -z "$haveit"; then
17112 rpathdirs="$rpathdirs $found_dir"
17116 for x in $LDFLAGS $LIBICONV; do
17118 acl_save_prefix="$prefix"
17119 prefix="$acl_final_prefix"
17120 acl_save_exec_prefix="$exec_prefix"
17121 exec_prefix="$acl_final_exec_prefix"
17123 exec_prefix="$acl_save_exec_prefix"
17124 prefix="$acl_save_prefix"
17126 if test "X$x" = "X-L$found_dir"; then
17131 if test -z "$haveit"; then
17132 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17134 if test "$hardcode_minus_L" != no; then
17135 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17137 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17143 if test "X$found_a" != "X"; then
17144 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17146 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17149 additional_includedir=
17150 case "$found_dir" in
17152 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17153 additional_includedir="$basedir/include"
17156 if test "X$additional_includedir" != "X"; then
17157 if test "X$additional_includedir" != "X/usr/include"; then
17159 if test "X$additional_includedir" = "X/usr/local/include"; then
17160 if test -n "$GCC"; then
17162 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17166 if test -z "$haveit"; then
17167 for x in $CPPFLAGS $INCICONV; do
17169 acl_save_prefix="$prefix"
17170 prefix="$acl_final_prefix"
17171 acl_save_exec_prefix="$exec_prefix"
17172 exec_prefix="$acl_final_exec_prefix"
17174 exec_prefix="$acl_save_exec_prefix"
17175 prefix="$acl_save_prefix"
17177 if test "X$x" = "X-I$additional_includedir"; then
17182 if test -z "$haveit"; then
17183 if test -d "$additional_includedir"; then
17184 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17190 if test -n "$found_la"; then
17191 save_libdir="$libdir"
17192 case "$found_la" in
17193 */* | *\\*) . "$found_la" ;;
17194 *) . "./$found_la" ;;
17196 libdir="$save_libdir"
17197 for dep in $dependency_libs; do
17200 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17201 if test "X$additional_libdir" != "X/usr/lib"; then
17203 if test "X$additional_libdir" = "X/usr/local/lib"; then
17204 if test -n "$GCC"; then
17206 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17210 if test -z "$haveit"; then
17212 for x in $LDFLAGS $LIBICONV; do
17214 acl_save_prefix="$prefix"
17215 prefix="$acl_final_prefix"
17216 acl_save_exec_prefix="$exec_prefix"
17217 exec_prefix="$acl_final_exec_prefix"
17219 exec_prefix="$acl_save_exec_prefix"
17220 prefix="$acl_save_prefix"
17222 if test "X$x" = "X-L$additional_libdir"; then
17227 if test -z "$haveit"; then
17228 if test -d "$additional_libdir"; then
17229 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17233 for x in $LDFLAGS $LTLIBICONV; do
17235 acl_save_prefix="$prefix"
17236 prefix="$acl_final_prefix"
17237 acl_save_exec_prefix="$exec_prefix"
17238 exec_prefix="$acl_final_exec_prefix"
17240 exec_prefix="$acl_save_exec_prefix"
17241 prefix="$acl_save_prefix"
17243 if test "X$x" = "X-L$additional_libdir"; then
17248 if test -z "$haveit"; then
17249 if test -d "$additional_libdir"; then
17250 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17257 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17258 if test "$enable_rpath" != no; then
17260 for x in $rpathdirs; do
17261 if test "X$x" = "X$dir"; then
17266 if test -z "$haveit"; then
17267 rpathdirs="$rpathdirs $dir"
17270 for x in $ltrpathdirs; do
17271 if test "X$x" = "X$dir"; then
17276 if test -z "$haveit"; then
17277 ltrpathdirs="$ltrpathdirs $dir"
17282 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17285 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17288 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17289 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17295 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17296 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17302 if test "X$rpathdirs" != "X"; then
17303 if test -n "$hardcode_libdir_separator"; then
17305 for found_dir in $rpathdirs; do
17306 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17308 acl_save_libdir="$libdir"
17310 eval flag=\"$hardcode_libdir_flag_spec\"
17311 libdir="$acl_save_libdir"
17312 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17314 for found_dir in $rpathdirs; do
17315 acl_save_libdir="$libdir"
17316 libdir="$found_dir"
17317 eval flag=\"$hardcode_libdir_flag_spec\"
17318 libdir="$acl_save_libdir"
17319 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17323 if test "X$ltrpathdirs" != "X"; then
17324 for found_dir in $ltrpathdirs; do
17325 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17346 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17347 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17348 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17349 echo $ECHO_N "(cached) $ECHO_C" >&6
17351 gt_save_CPPFLAGS="$CPPFLAGS"
17352 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17353 gt_save_LIBS="$LIBS"
17354 LIBS="$LIBS -framework CoreFoundation"
17355 cat >conftest.$ac_ext <<_ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361 #include <CFPreferences.h>
17365 CFPreferencesCopyAppValue(NULL, NULL)
17370 rm -f conftest.$ac_objext conftest$ac_exeext
17371 if { (ac_try="$ac_link"
17372 case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_link") 2>conftest.er1
17379 grep -v '^ *+' conftest.er1 >conftest.err
17381 cat conftest.err >&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } && {
17384 test -z "$ac_cxx_werror_flag" ||
17385 test ! -s conftest.err
17386 } && test -s conftest$ac_exeext &&
17387 $as_test_x conftest$ac_exeext; then
17388 gt_cv_func_CFPreferencesCopyAppValue=yes
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17393 gt_cv_func_CFPreferencesCopyAppValue=no
17396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17397 conftest$ac_exeext conftest.$ac_ext
17398 CPPFLAGS="$gt_save_CPPFLAGS"
17399 LIBS="$gt_save_LIBS"
17401 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17402 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17403 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17405 cat >>confdefs.h <<\_ACEOF
17406 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17410 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17411 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17412 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 gt_save_CPPFLAGS="$CPPFLAGS"
17416 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17417 gt_save_LIBS="$LIBS"
17418 LIBS="$LIBS -framework CoreFoundation"
17419 cat >conftest.$ac_ext <<_ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17425 #include <CFLocale.h>
17429 CFLocaleCopyCurrent();
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_link") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } && {
17448 test -z "$ac_cxx_werror_flag" ||
17449 test ! -s conftest.err
17450 } && test -s conftest$ac_exeext &&
17451 $as_test_x conftest$ac_exeext; then
17452 gt_cv_func_CFLocaleCopyCurrent=yes
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 gt_cv_func_CFLocaleCopyCurrent=no
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461 conftest$ac_exeext conftest.$ac_ext
17462 CPPFLAGS="$gt_save_CPPFLAGS"
17463 LIBS="$gt_save_LIBS"
17465 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17466 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17467 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17469 cat >>confdefs.h <<\_ACEOF
17470 #define HAVE_CFLOCALECOPYCURRENT 1
17475 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17476 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17482 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17483 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17484 # Check whether --enable-nls was given.
17485 if test "${enable_nls+set}" = set; then
17486 enableval=$enable_nls; USE_NLS=$enableval
17491 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17492 echo "${ECHO_T}$USE_NLS" >&6; }
17501 if test "$USE_NLS" = "yes"; then
17502 gt_use_preinstalled_gnugettext=no
17509 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17510 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17511 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 cat >conftest.$ac_ext <<_ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 #include <libintl.h>
17521 extern int _nl_msg_cat_cntr;
17522 extern int *_nl_domain_bindings;
17526 bindtextdomain ("", "");
17527 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_cxx_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest$ac_exeext &&
17549 $as_test_x conftest$ac_exeext; then
17550 gt_cv_func_gnugettext1_libc=yes
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 gt_cv_func_gnugettext1_libc=no
17558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559 conftest$ac_exeext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17562 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17564 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17570 am_save_CPPFLAGS="$CPPFLAGS"
17572 for element in $INCICONV; do
17574 for x in $CPPFLAGS; do
17576 acl_save_prefix="$prefix"
17577 prefix="$acl_final_prefix"
17578 acl_save_exec_prefix="$exec_prefix"
17579 exec_prefix="$acl_final_exec_prefix"
17581 exec_prefix="$acl_save_exec_prefix"
17582 prefix="$acl_save_prefix"
17584 if test "X$x" = "X$element"; then
17589 if test -z "$haveit"; then
17590 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17595 { echo "$as_me:$LINENO: checking for iconv" >&5
17596 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17597 if test "${am_cv_func_iconv+set}" = set; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 am_cv_func_iconv="no, consider installing GNU libiconv"
17603 cat >conftest.$ac_ext <<_ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17609 #include <stdlib.h>
17614 iconv_t cd = iconv_open("","");
17615 iconv(cd,NULL,NULL,NULL,NULL);
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (ac_try="$ac_link"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_link") 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && {
17635 test -z "$ac_cxx_werror_flag" ||
17636 test ! -s conftest.err
17637 } && test -s conftest$ac_exeext &&
17638 $as_test_x conftest$ac_exeext; then
17639 am_cv_func_iconv=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648 conftest$ac_exeext conftest.$ac_ext
17649 if test "$am_cv_func_iconv" != yes; then
17650 am_save_LIBS="$LIBS"
17651 LIBS="$LIBS $LIBICONV"
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17658 #include <stdlib.h>
17663 iconv_t cd = iconv_open("","");
17664 iconv(cd,NULL,NULL,NULL,NULL);
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (ac_try="$ac_link"
17672 case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_link") 2>conftest.er1
17679 grep -v '^ *+' conftest.er1 >conftest.err
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } && {
17684 test -z "$ac_cxx_werror_flag" ||
17685 test ! -s conftest.err
17686 } && test -s conftest$ac_exeext &&
17687 $as_test_x conftest$ac_exeext; then
17688 am_cv_lib_iconv=yes
17689 am_cv_func_iconv=yes
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17698 conftest$ac_exeext conftest.$ac_ext
17699 LIBS="$am_save_LIBS"
17703 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17704 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17705 if test "$am_cv_func_iconv" = yes; then
17707 cat >>confdefs.h <<\_ACEOF
17708 #define HAVE_ICONV 1
17712 if test "$am_cv_lib_iconv" = yes; then
17713 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17714 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17715 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17716 echo "${ECHO_T}$LIBICONV" >&6; }
17718 CPPFLAGS="$am_save_CPPFLAGS"
17730 acl_save_prefix="$prefix"
17731 prefix="$acl_final_prefix"
17732 acl_save_exec_prefix="$exec_prefix"
17733 exec_prefix="$acl_final_exec_prefix"
17735 eval additional_includedir=\"$includedir\"
17736 eval additional_libdir=\"$libdir\"
17738 exec_prefix="$acl_save_exec_prefix"
17739 prefix="$acl_save_prefix"
17742 # Check whether --with-libintl-prefix was given.
17743 if test "${with_libintl_prefix+set}" = set; then
17744 withval=$with_libintl_prefix;
17745 if test "X$withval" = "Xno"; then
17748 if test "X$withval" = "X"; then
17750 acl_save_prefix="$prefix"
17751 prefix="$acl_final_prefix"
17752 acl_save_exec_prefix="$exec_prefix"
17753 exec_prefix="$acl_final_exec_prefix"
17755 eval additional_includedir=\"$includedir\"
17756 eval additional_libdir=\"$libdir\"
17758 exec_prefix="$acl_save_exec_prefix"
17759 prefix="$acl_save_prefix"
17762 additional_includedir="$withval/include"
17763 additional_libdir="$withval/lib"
17774 names_already_handled=
17775 names_next_round='intl '
17776 while test -n "$names_next_round"; do
17777 names_this_round="$names_next_round"
17779 for name in $names_this_round; do
17781 for n in $names_already_handled; do
17782 if test "$n" = "$name"; then
17783 already_handled=yes
17787 if test -z "$already_handled"; then
17788 names_already_handled="$names_already_handled $name"
17789 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17790 eval value=\"\$HAVE_LIB$uppername\"
17791 if test -n "$value"; then
17792 if test "$value" = yes; then
17793 eval value=\"\$LIB$uppername\"
17794 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17795 eval value=\"\$LTLIB$uppername\"
17796 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17805 if test $use_additional = yes; then
17806 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17807 found_dir="$additional_libdir"
17808 found_so="$additional_libdir/lib$name.$shlibext"
17809 if test -f "$additional_libdir/lib$name.la"; then
17810 found_la="$additional_libdir/lib$name.la"
17813 if test -f "$additional_libdir/lib$name.$libext"; then
17814 found_dir="$additional_libdir"
17815 found_a="$additional_libdir/lib$name.$libext"
17816 if test -f "$additional_libdir/lib$name.la"; then
17817 found_la="$additional_libdir/lib$name.la"
17822 if test "X$found_dir" = "X"; then
17823 for x in $LDFLAGS $LTLIBINTL; do
17825 acl_save_prefix="$prefix"
17826 prefix="$acl_final_prefix"
17827 acl_save_exec_prefix="$exec_prefix"
17828 exec_prefix="$acl_final_exec_prefix"
17830 exec_prefix="$acl_save_exec_prefix"
17831 prefix="$acl_save_prefix"
17835 dir=`echo "X$x" | sed -e 's/^X-L//'`
17836 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17838 found_so="$dir/lib$name.$shlibext"
17839 if test -f "$dir/lib$name.la"; then
17840 found_la="$dir/lib$name.la"
17843 if test -f "$dir/lib$name.$libext"; then
17845 found_a="$dir/lib$name.$libext"
17846 if test -f "$dir/lib$name.la"; then
17847 found_la="$dir/lib$name.la"
17853 if test "X$found_dir" != "X"; then
17858 if test "X$found_dir" != "X"; then
17859 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17860 if test "X$found_so" != "X"; then
17861 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17862 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865 for x in $ltrpathdirs; do
17866 if test "X$x" = "X$found_dir"; then
17871 if test -z "$haveit"; then
17872 ltrpathdirs="$ltrpathdirs $found_dir"
17874 if test "$hardcode_direct" = yes; then
17875 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17877 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17878 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17880 for x in $rpathdirs; do
17881 if test "X$x" = "X$found_dir"; then
17886 if test -z "$haveit"; then
17887 rpathdirs="$rpathdirs $found_dir"
17891 for x in $LDFLAGS $LIBINTL; do
17893 acl_save_prefix="$prefix"
17894 prefix="$acl_final_prefix"
17895 acl_save_exec_prefix="$exec_prefix"
17896 exec_prefix="$acl_final_exec_prefix"
17898 exec_prefix="$acl_save_exec_prefix"
17899 prefix="$acl_save_prefix"
17901 if test "X$x" = "X-L$found_dir"; then
17906 if test -z "$haveit"; then
17907 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17909 if test "$hardcode_minus_L" != no; then
17910 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17912 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17918 if test "X$found_a" != "X"; then
17919 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17921 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17924 additional_includedir=
17925 case "$found_dir" in
17927 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17928 additional_includedir="$basedir/include"
17931 if test "X$additional_includedir" != "X"; then
17932 if test "X$additional_includedir" != "X/usr/include"; then
17934 if test "X$additional_includedir" = "X/usr/local/include"; then
17935 if test -n "$GCC"; then
17937 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17941 if test -z "$haveit"; then
17942 for x in $CPPFLAGS $INCINTL; do
17944 acl_save_prefix="$prefix"
17945 prefix="$acl_final_prefix"
17946 acl_save_exec_prefix="$exec_prefix"
17947 exec_prefix="$acl_final_exec_prefix"
17949 exec_prefix="$acl_save_exec_prefix"
17950 prefix="$acl_save_prefix"
17952 if test "X$x" = "X-I$additional_includedir"; then
17957 if test -z "$haveit"; then
17958 if test -d "$additional_includedir"; then
17959 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17965 if test -n "$found_la"; then
17966 save_libdir="$libdir"
17967 case "$found_la" in
17968 */* | *\\*) . "$found_la" ;;
17969 *) . "./$found_la" ;;
17971 libdir="$save_libdir"
17972 for dep in $dependency_libs; do
17975 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17976 if test "X$additional_libdir" != "X/usr/lib"; then
17978 if test "X$additional_libdir" = "X/usr/local/lib"; then
17979 if test -n "$GCC"; then
17981 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17985 if test -z "$haveit"; then
17987 for x in $LDFLAGS $LIBINTL; do
17989 acl_save_prefix="$prefix"
17990 prefix="$acl_final_prefix"
17991 acl_save_exec_prefix="$exec_prefix"
17992 exec_prefix="$acl_final_exec_prefix"
17994 exec_prefix="$acl_save_exec_prefix"
17995 prefix="$acl_save_prefix"
17997 if test "X$x" = "X-L$additional_libdir"; then
18002 if test -z "$haveit"; then
18003 if test -d "$additional_libdir"; then
18004 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18008 for x in $LDFLAGS $LTLIBINTL; do
18010 acl_save_prefix="$prefix"
18011 prefix="$acl_final_prefix"
18012 acl_save_exec_prefix="$exec_prefix"
18013 exec_prefix="$acl_final_exec_prefix"
18015 exec_prefix="$acl_save_exec_prefix"
18016 prefix="$acl_save_prefix"
18018 if test "X$x" = "X-L$additional_libdir"; then
18023 if test -z "$haveit"; then
18024 if test -d "$additional_libdir"; then
18025 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18032 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18033 if test "$enable_rpath" != no; then
18035 for x in $rpathdirs; do
18036 if test "X$x" = "X$dir"; then
18041 if test -z "$haveit"; then
18042 rpathdirs="$rpathdirs $dir"
18045 for x in $ltrpathdirs; do
18046 if test "X$x" = "X$dir"; then
18051 if test -z "$haveit"; then
18052 ltrpathdirs="$ltrpathdirs $dir"
18057 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18060 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18063 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18064 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18070 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18071 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18077 if test "X$rpathdirs" != "X"; then
18078 if test -n "$hardcode_libdir_separator"; then
18080 for found_dir in $rpathdirs; do
18081 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18083 acl_save_libdir="$libdir"
18085 eval flag=\"$hardcode_libdir_flag_spec\"
18086 libdir="$acl_save_libdir"
18087 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18089 for found_dir in $rpathdirs; do
18090 acl_save_libdir="$libdir"
18091 libdir="$found_dir"
18092 eval flag=\"$hardcode_libdir_flag_spec\"
18093 libdir="$acl_save_libdir"
18094 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18098 if test "X$ltrpathdirs" != "X"; then
18099 for found_dir in $ltrpathdirs; do
18100 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18104 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18105 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18106 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 gt_save_CPPFLAGS="$CPPFLAGS"
18110 CPPFLAGS="$CPPFLAGS $INCINTL"
18111 gt_save_LIBS="$LIBS"
18112 LIBS="$LIBS $LIBINTL"
18113 cat >conftest.$ac_ext <<_ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18119 #include <libintl.h>
18120 extern int _nl_msg_cat_cntr;
18125 const char *_nl_expand_alias (const char *);
18129 bindtextdomain ("", "");
18130 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_link") 2>conftest.er1
18144 grep -v '^ *+' conftest.er1 >conftest.err
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } && {
18149 test -z "$ac_cxx_werror_flag" ||
18150 test ! -s conftest.err
18151 } && test -s conftest$ac_exeext &&
18152 $as_test_x conftest$ac_exeext; then
18153 gt_cv_func_gnugettext1_libintl=yes
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18158 gt_cv_func_gnugettext1_libintl=no
18161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18162 conftest$ac_exeext conftest.$ac_ext
18163 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18164 LIBS="$LIBS $LIBICONV"
18165 cat >conftest.$ac_ext <<_ACEOF
18168 cat confdefs.h >>conftest.$ac_ext
18169 cat >>conftest.$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18171 #include <libintl.h>
18172 extern int _nl_msg_cat_cntr;
18177 const char *_nl_expand_alias (const char *);
18181 bindtextdomain ("", "");
18182 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_cxx_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest$ac_exeext &&
18204 $as_test_x conftest$ac_exeext; then
18205 LIBINTL="$LIBINTL $LIBICONV"
18206 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18207 gt_cv_func_gnugettext1_libintl=yes
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18217 conftest$ac_exeext conftest.$ac_ext
18219 CPPFLAGS="$gt_save_CPPFLAGS"
18220 LIBS="$gt_save_LIBS"
18222 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18223 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18226 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18227 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18228 && test "$PACKAGE" != gettext-runtime \
18229 && test "$PACKAGE" != gettext-tools; }; then
18230 gt_use_preinstalled_gnugettext=yes
18239 if test -n "$INTL_MACOSX_LIBS"; then
18240 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18241 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18242 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18243 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18247 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18248 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18250 cat >>confdefs.h <<\_ACEOF
18251 #define ENABLE_NLS 1
18259 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18260 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18261 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18262 echo "${ECHO_T}$USE_NLS" >&6; }
18263 if test "$USE_NLS" = "yes"; then
18264 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18265 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18266 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18267 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18268 gt_source="external libintl"
18273 gt_source="included intl directory"
18275 { echo "$as_me:$LINENO: result: $gt_source" >&5
18276 echo "${ECHO_T}$gt_source" >&6; }
18279 if test "$USE_NLS" = "yes"; then
18281 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18282 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18283 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18284 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18285 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18286 echo "${ECHO_T}$LIBINTL" >&6; }
18288 for element in $INCINTL; do
18290 for x in $CPPFLAGS; do
18292 acl_save_prefix="$prefix"
18293 prefix="$acl_final_prefix"
18294 acl_save_exec_prefix="$exec_prefix"
18295 exec_prefix="$acl_final_exec_prefix"
18297 exec_prefix="$acl_save_exec_prefix"
18298 prefix="$acl_save_prefix"
18300 if test "X$x" = "X$element"; then
18305 if test -z "$haveit"; then
18306 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18313 cat >>confdefs.h <<\_ACEOF
18314 #define HAVE_GETTEXT 1
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE_DCGETTEXT 1
18329 INTLLIBS="$LIBINTL"
18337 os_name=`uname -s 2>/dev/null`
18338 if test x${prefix} = xNONE ; then
18339 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18340 sysconfdir=/etc/bacula
18343 if test `eval echo ${libdir}` = NONE/lib ; then
18346 os_processor=`uname -p 2>/dev/null`
18347 case ${os_processor} in
18362 if test `eval echo ${includedir}` = NONE/include ; then
18363 includedir=/usr/include
18366 if test `eval echo ${datarootdir}` = NONE/share ; then
18367 datarootdir=/usr/share
18372 if test x${exec_prefix} = xNONE ; then
18373 exec_prefix=${prefix}
18376 sysconfdir=`eval echo ${sysconfdir}`
18377 datarootdir=`eval echo ${datarootdir}`
18378 docdir=`eval echo ${docdir}`
18379 htmldir=`eval echo ${htmldir}`
18380 libdir=`eval echo ${libdir}`
18381 includedir=`eval echo ${includedir}`
18382 localedir=`eval echo ${datarootdir}/locale`
18383 cat >>confdefs.h <<_ACEOF
18384 #define SYSCONFDIR "$sysconfdir"
18387 cat >>confdefs.h <<_ACEOF
18388 #define LOCALEDIR "$localedir"
18392 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18393 sbindir=${exec_prefix}/sbin
18395 sbindir=`eval echo ${sbindir}`
18397 if test x$mandir = x'${prefix}/man' ; then
18398 mandir=/usr/share/man
18401 if test x$htmldir = x${docdir} ; then
18402 htmldir=`eval echo ${docdir}bacula/html`
18405 if test x$docdir = x'/usr/share/doc/' ; then
18406 docdir=`eval echo ${docdir}bacula`
18410 for ac_prog in msgfmt
18412 # Extract the first word of "$ac_prog", so it can be a program name with args.
18413 set dummy $ac_prog; ac_word=$2
18414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18416 if test "${ac_cv_path_MSGFMT+set}" = set; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in $PATH
18428 test -z "$as_dir" && as_dir=.
18429 for ac_exec_ext in '' $ac_executable_extensions; do
18430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18431 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18442 MSGFMT=$ac_cv_path_MSGFMT
18443 if test -n "$MSGFMT"; then
18444 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18445 echo "${ECHO_T}$MSGFMT" >&6; }
18447 { echo "$as_me:$LINENO: result: no" >&5
18448 echo "${ECHO_T}no" >&6; }
18452 test -n "$MSGFMT" && break
18454 test -n "$MSGFMT" || MSGFMT="no"
18456 if test "$MSGFMT" = "no"
18458 echo 'msgfmt program not found, disabling NLS !'
18460 USE_INCLUDED_LIBINTL=no
18464 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18465 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18466 if test "${ac_cv_gnu_library_2+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 cat >conftest.$ac_ext <<_ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18476 #include <features.h>
18477 #ifdef __GNU_LIBRARY__
18478 #if (__GLIBC__ >= 2)
18484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18485 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18486 ac_cv_gnu_library_2=yes
18488 ac_cv_gnu_library_2=no
18495 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18496 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18498 GLIBC2="$ac_cv_gnu_library_2"
18501 if test -n "$ac_tool_prefix"; then
18502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18506 if test "${ac_cv_prog_RANLIB+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 if test -n "$RANLIB"; then
18510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18513 for as_dir in $PATH
18516 test -z "$as_dir" && as_dir=.
18517 for ac_exec_ext in '' $ac_executable_extensions; do
18518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18519 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18529 RANLIB=$ac_cv_prog_RANLIB
18530 if test -n "$RANLIB"; then
18531 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18532 echo "${ECHO_T}$RANLIB" >&6; }
18534 { echo "$as_me:$LINENO: result: no" >&5
18535 echo "${ECHO_T}no" >&6; }
18540 if test -z "$ac_cv_prog_RANLIB"; then
18541 ac_ct_RANLIB=$RANLIB
18542 # Extract the first word of "ranlib", so it can be a program name with args.
18543 set dummy ranlib; ac_word=$2
18544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18546 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 if test -n "$ac_ct_RANLIB"; then
18550 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18553 for as_dir in $PATH
18556 test -z "$as_dir" && as_dir=.
18557 for ac_exec_ext in '' $ac_executable_extensions; do
18558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18559 ac_cv_prog_ac_ct_RANLIB="ranlib"
18560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18570 if test -n "$ac_ct_RANLIB"; then
18571 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18572 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18574 { echo "$as_me:$LINENO: result: no" >&5
18575 echo "${ECHO_T}no" >&6; }
18578 if test "x$ac_ct_RANLIB" = x; then
18581 case $cross_compiling:$ac_tool_warned in
18583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18584 whose name does not start with the host triplet. If you think this
18585 configuration is useful to you, please write to autoconf@gnu.org." >&5
18586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18587 whose name does not start with the host triplet. If you think this
18588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18589 ac_tool_warned=yes ;;
18591 RANLIB=$ac_ct_RANLIB
18594 RANLIB="$ac_cv_prog_RANLIB"
18598 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18599 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18600 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 ac_check_lib_save_LIBS=$LIBS
18604 LIBS="-lcposix $LIBS"
18605 cat >conftest.$ac_ext <<_ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18612 /* Override any GCC internal prototype to avoid an error.
18613 Use char because int might match the return type of a GCC
18614 builtin and then its argument prototype would still apply. */
18622 return strerror ();
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (ac_try="$ac_link"
18629 case "(($ac_try" in
18630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18631 *) ac_try_echo=$ac_try;;
18633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18634 (eval "$ac_link") 2>conftest.er1
18636 grep -v '^ *+' conftest.er1 >conftest.err
18638 cat conftest.err >&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } && {
18641 test -z "$ac_cxx_werror_flag" ||
18642 test ! -s conftest.err
18643 } && test -s conftest$ac_exeext &&
18644 $as_test_x conftest$ac_exeext; then
18645 ac_cv_lib_cposix_strerror=yes
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 ac_cv_lib_cposix_strerror=no
18653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654 conftest$ac_exeext conftest.$ac_ext
18655 LIBS=$ac_check_lib_save_LIBS
18657 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18658 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18659 if test $ac_cv_lib_cposix_strerror = yes; then
18660 LIBS="$LIBS -lcposix"
18665 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18666 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18667 if test "${ac_cv_c_const+set}" = set; then
18668 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18680 /* FIXME: Include the comments suggested by Paul. */
18681 #ifndef __cplusplus
18682 /* Ultrix mips cc rejects this. */
18683 typedef int charset[2];
18685 /* SunOS 4.1.1 cc rejects this. */
18686 char const *const *pcpcc;
18688 /* NEC SVR4.0.2 mips cc rejects this. */
18689 struct point {int x, y;};
18690 static struct point const zero = {0,0};
18691 /* AIX XL C 1.02.0.0 rejects this.
18692 It does not let you subtract one const X* pointer from another in
18693 an arm of an if-expression whose if-part is not a constant
18695 const char *g = "string";
18696 pcpcc = &g + (g ? g-g : 0);
18697 /* HPUX 7.0 cc rejects these. */
18699 ppc = (char**) pcpcc;
18700 pcpcc = (char const *const *) ppc;
18701 { /* SCO 3.2v4 cc rejects this. */
18703 char const *s = 0 ? (char *) 0 : (char const *) 0;
18708 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18709 int x[] = {25, 17};
18710 const int *foo = &x[0];
18713 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18714 typedef const int *iptr;
18718 { /* AIX XL C 1.02.0.0 rejects this saying
18719 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18720 struct s { int j; const int *ap[3]; };
18721 struct s *b; b->j = 5;
18723 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18724 const int foo = 10;
18725 if (!foo) return 0;
18727 return !cs[0] && !zero.x;
18734 rm -f conftest.$ac_objext
18735 if { (ac_try="$ac_compile"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_compile") 2>conftest.er1
18743 grep -v '^ *+' conftest.er1 >conftest.err
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_cxx_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest.$ac_objext; then
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18761 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18762 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18763 if test $ac_cv_c_const = no; then
18765 cat >>confdefs.h <<\_ACEOF
18772 { echo "$as_me:$LINENO: checking for signed" >&5
18773 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18774 if test "${bh_cv_c_signed+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18792 rm -f conftest.$ac_objext
18793 if { (ac_try="$ac_compile"
18794 case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_compile") 2>conftest.er1
18801 grep -v '^ *+' conftest.er1 >conftest.err
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && {
18806 test -z "$ac_cxx_werror_flag" ||
18807 test ! -s conftest.err
18808 } && test -s conftest.$ac_objext; then
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18819 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18820 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18821 if test $bh_cv_c_signed = no; then
18823 cat >>confdefs.h <<\_ACEOF
18829 { echo "$as_me:$LINENO: checking for inline" >&5
18830 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18831 if test "${ac_cv_c_inline+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18835 for ac_kw in inline __inline__ __inline; do
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18842 #ifndef __cplusplus
18844 static $ac_kw foo_t static_foo () {return 0; }
18845 $ac_kw foo_t foo () {return 0; }
18849 rm -f conftest.$ac_objext
18850 if { (ac_try="$ac_compile"
18851 case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_compile") 2>conftest.er1
18858 grep -v '^ *+' conftest.er1 >conftest.err
18860 cat conftest.err >&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } && {
18863 test -z "$ac_cxx_werror_flag" ||
18864 test ! -s conftest.err
18865 } && test -s conftest.$ac_objext; then
18866 ac_cv_c_inline=$ac_kw
18868 echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875 test "$ac_cv_c_inline" != no && break
18879 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18880 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18883 case $ac_cv_c_inline in
18886 case $ac_cv_c_inline in
18888 *) ac_val=$ac_cv_c_inline;;
18890 cat >>confdefs.h <<_ACEOF
18891 #ifndef __cplusplus
18892 #define inline $ac_val
18898 { echo "$as_me:$LINENO: checking for off_t" >&5
18899 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18900 if test "${ac_cv_type_off_t+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 cat >conftest.$ac_ext <<_ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 $ac_includes_default
18910 typedef off_t ac__type_new_;
18914 if ((ac__type_new_ *) 0)
18916 if (sizeof (ac__type_new_))
18922 rm -f conftest.$ac_objext
18923 if { (ac_try="$ac_compile"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_compile") 2>conftest.er1
18931 grep -v '^ *+' conftest.er1 >conftest.err
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } && {
18936 test -z "$ac_cxx_werror_flag" ||
18937 test ! -s conftest.err
18938 } && test -s conftest.$ac_objext; then
18939 ac_cv_type_off_t=yes
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_cv_type_off_t=no
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18950 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18951 if test $ac_cv_type_off_t = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define off_t long int
18961 { echo "$as_me:$LINENO: checking for size_t" >&5
18962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18963 if test "${ac_cv_type_size_t+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 cat >conftest.$ac_ext <<_ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 $ac_includes_default
18973 typedef size_t ac__type_new_;
18977 if ((ac__type_new_ *) 0)
18979 if (sizeof (ac__type_new_))
18985 rm -f conftest.$ac_objext
18986 if { (ac_try="$ac_compile"
18987 case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_compile") 2>conftest.er1
18994 grep -v '^ *+' conftest.er1 >conftest.err
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_cxx_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest.$ac_objext; then
19002 ac_cv_type_size_t=yes
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_cv_type_size_t=no
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19012 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19013 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19014 if test $ac_cv_type_size_t = yes; then
19018 cat >>confdefs.h <<_ACEOF
19019 #define size_t unsigned int
19025 { echo "$as_me:$LINENO: checking for long long" >&5
19026 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19027 if test "${ac_cv_type_long_long+set}" = set; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 cat >conftest.$ac_ext <<_ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 long long ll = 1LL; int i = 63;
19040 long long llmax = (long long) -1;
19041 return ll << i | ll >> i | llmax / ll | llmax % ll;
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (ac_try="$ac_link"
19048 case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_link") 2>conftest.er1
19055 grep -v '^ *+' conftest.er1 >conftest.err
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } && {
19060 test -z "$ac_cxx_werror_flag" ||
19061 test ! -s conftest.err
19062 } && test -s conftest$ac_exeext &&
19063 $as_test_x conftest$ac_exeext; then
19064 ac_cv_type_long_long=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_cv_type_long_long=no
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073 conftest$ac_exeext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19076 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19077 if test $ac_cv_type_long_long = yes; then
19079 cat >>confdefs.h <<\_ACEOF
19080 #define HAVE_LONG_LONG 1
19086 { echo "$as_me:$LINENO: checking for long double" >&5
19087 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19088 if test "${gt_cv_c_long_double+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 if test "$GCC" = yes; then
19092 gt_cv_c_long_double=yes
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19101 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19102 long double foo = 0.0;
19103 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19104 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
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_cxx_werror_flag" ||
19129 test ! -s conftest.err
19130 } && test -s conftest.$ac_objext; then
19131 gt_cv_c_long_double=yes
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 gt_cv_c_long_double=no
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19142 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19143 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19144 if test $gt_cv_c_long_double = yes; then
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_LONG_DOUBLE 1
19153 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19154 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19155 if test "${gt_cv_c_wchar_t+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 #include <stddef.h>
19165 wchar_t foo = (wchar_t)'\0';
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1 >conftest.err
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_cxx_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest.$ac_objext; then
19191 gt_cv_c_wchar_t=yes
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19201 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19202 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19203 if test $gt_cv_c_wchar_t = yes; then
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_WCHAR_T 1
19212 { echo "$as_me:$LINENO: checking for wint_t" >&5
19213 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19214 if test "${gt_cv_c_wint_t+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19224 wint_t foo = (wchar_t)'\0';
19233 rm -f conftest.$ac_objext
19234 if { (ac_try="$ac_compile"
19235 case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_compile") 2>conftest.er1
19242 grep -v '^ *+' conftest.er1 >conftest.err
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_cxx_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest.$ac_objext; then
19252 echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19261 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19262 if test $gt_cv_c_wint_t = yes; then
19264 cat >>confdefs.h <<\_ACEOF
19265 #define HAVE_WINT_T 1
19271 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19272 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19273 if test "${gl_cv_header_inttypes_h+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 cat >conftest.$ac_ext <<_ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 #include <sys/types.h>
19283 #include <inttypes.h>
19287 uintmax_t i = (uintmax_t) -1;
19292 rm -f conftest.$ac_objext
19293 if { (ac_try="$ac_compile"
19294 case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_compile") 2>conftest.er1
19301 grep -v '^ *+' conftest.er1 >conftest.err
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } && {
19306 test -z "$ac_cxx_werror_flag" ||
19307 test ! -s conftest.err
19308 } && test -s conftest.$ac_objext; then
19309 gl_cv_header_inttypes_h=yes
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19314 gl_cv_header_inttypes_h=no
19317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19320 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19321 if test $gl_cv_header_inttypes_h = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19330 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19331 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19332 if test "${gl_cv_header_stdint_h+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341 #include <sys/types.h>
19342 #include <stdint.h>
19346 uintmax_t i = (uintmax_t) -1;
19351 rm -f conftest.$ac_objext
19352 if { (ac_try="$ac_compile"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_compile") 2>conftest.er1
19360 grep -v '^ *+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_cxx_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest.$ac_objext; then
19368 gl_cv_header_stdint_h=yes
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 gl_cv_header_stdint_h=no
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19378 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19379 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19380 if test $gl_cv_header_stdint_h = yes; then
19382 cat >>confdefs.h <<_ACEOF
19383 #define HAVE_STDINT_H_WITH_UINTMAX 1
19391 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19392 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19393 if test "${gt_cv_c_intmax_t+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 cat >conftest.$ac_ext <<_ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19403 #include <stddef.h>
19404 #include <stdlib.h>
19405 #if HAVE_STDINT_H_WITH_UINTMAX
19406 #include <stdint.h>
19408 #if HAVE_INTTYPES_H_WITH_UINTMAX
19409 #include <inttypes.h>
19420 rm -f conftest.$ac_objext
19421 if { (ac_try="$ac_compile"
19422 case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_compile") 2>conftest.er1
19429 grep -v '^ *+' conftest.er1 >conftest.err
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_cxx_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest.$ac_objext; then
19437 gt_cv_c_intmax_t=yes
19439 echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 gt_cv_c_intmax_t=no
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19448 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19449 if test $gt_cv_c_intmax_t = yes; then
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_INTMAX_T 1
19459 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19460 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19461 if test "${gt_cv_func_printf_posix+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 if test "$cross_compiling" = yes; then
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19474 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19480 $EGREP "notposix" >/dev/null 2>&1; then
19481 gt_cv_func_printf_posix="guessing no"
19483 gt_cv_func_printf_posix="guessing yes"
19489 cat >conftest.$ac_ext <<_ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19497 #include <string.h>
19498 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19499 dollar expansion (possibly an autoconf bug). */
19500 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19501 static char buf[100];
19504 sprintf (buf, format, 33, 55);
19505 return (strcmp (buf, "55 33") != 0);
19508 rm -f conftest$ac_exeext
19509 if { (ac_try="$ac_link"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_link") 2>&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 gt_cv_func_printf_posix=yes
19530 echo "$as_me: program exited with status $ac_status" >&5
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 ( exit $ac_status )
19535 gt_cv_func_printf_posix=no
19537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19543 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19544 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19545 case $gt_cv_func_printf_posix in
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE_POSIX_PRINTF 1
19555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19556 # for constant arguments. Useless!
19557 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19558 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19559 if test "${ac_cv_working_alloca_h+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 cat >conftest.$ac_ext <<_ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 #include <alloca.h>
19572 char *p = (char *) alloca (2 * sizeof (int));
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_link") 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } && {
19592 test -z "$ac_cxx_werror_flag" ||
19593 test ! -s conftest.err
19594 } && test -s conftest$ac_exeext &&
19595 $as_test_x conftest$ac_exeext; then
19596 ac_cv_working_alloca_h=yes
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 ac_cv_working_alloca_h=no
19604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19605 conftest$ac_exeext conftest.$ac_ext
19607 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19608 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19609 if test $ac_cv_working_alloca_h = yes; then
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_ALLOCA_H 1
19617 { echo "$as_me:$LINENO: checking for alloca" >&5
19618 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19619 if test "${ac_cv_func_alloca_works+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 cat >conftest.$ac_ext <<_ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19629 # define alloca __builtin_alloca
19632 # include <malloc.h>
19633 # define alloca _alloca
19635 # ifdef HAVE_ALLOCA_H
19636 # include <alloca.h>
19641 # ifndef alloca /* predefined by HP cc +Olibcalls */
19652 char *p = (char *) alloca (1);
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_link") 2>conftest.er1
19667 grep -v '^ *+' conftest.er1 >conftest.err
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && {
19672 test -z "$ac_cxx_werror_flag" ||
19673 test ! -s conftest.err
19674 } && test -s conftest$ac_exeext &&
19675 $as_test_x conftest$ac_exeext; then
19676 ac_cv_func_alloca_works=yes
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_cv_func_alloca_works=no
19684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19685 conftest$ac_exeext conftest.$ac_ext
19687 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19690 if test $ac_cv_func_alloca_works = yes; then
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_ALLOCA 1
19697 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19698 # that cause trouble. Some versions do not even contain alloca or
19699 # contain a buggy version. If you still want to use their alloca,
19700 # use ar to extract alloca.o from them instead of compiling alloca.c.
19702 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19704 cat >>confdefs.h <<\_ACEOF
19709 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19710 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19711 if test "${ac_cv_os_cray+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 #if defined CRAY && ! defined CRAY2
19727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19728 $EGREP "webecray" >/dev/null 2>&1; then
19736 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19737 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19738 if test $ac_cv_os_cray = yes; then
19739 for ac_func in _getb67 GETB67 getb67; do
19740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19754 #define $ac_func innocuous_$ac_func
19756 /* System header to define __stub macros and hopefully few prototypes,
19757 which can conflict with char $ac_func (); below.
19758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19759 <limits.h> exists even on freestanding compilers. */
19762 # include <limits.h>
19764 # include <assert.h>
19769 /* Override any GCC internal prototype to avoid an error.
19770 Use char because int might match the return type of a GCC
19771 builtin and then its argument prototype would still apply. */
19776 /* The GNU C library defines this for functions which it implements
19777 to always fail with ENOSYS. Some functions are actually named
19778 something starting with __ and the normal name is an alias. */
19779 #if defined __stub_$ac_func || defined __stub___$ac_func
19786 return $ac_func ();
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (ac_try="$ac_link"
19793 case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_link") 2>conftest.er1
19800 grep -v '^ *+' conftest.er1 >conftest.err
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } && {
19805 test -z "$ac_cxx_werror_flag" ||
19806 test ! -s conftest.err
19807 } && test -s conftest$ac_exeext &&
19808 $as_test_x conftest$ac_exeext; then
19809 eval "$as_ac_var=yes"
19811 echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 eval "$as_ac_var=no"
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818 conftest$ac_exeext conftest.$ac_ext
19820 ac_res=`eval echo '${'$as_ac_var'}'`
19821 { echo "$as_me:$LINENO: result: $ac_res" >&5
19822 echo "${ECHO_T}$ac_res" >&6; }
19823 if test `eval echo '${'$as_ac_var'}'` = yes; then
19825 cat >>confdefs.h <<_ACEOF
19826 #define CRAY_STACKSEG_END $ac_func
19835 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19836 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19837 if test "${ac_cv_c_stack_direction+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 if test "$cross_compiling" = yes; then
19841 ac_cv_c_stack_direction=0
19843 cat >conftest.$ac_ext <<_ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19849 $ac_includes_default
19851 find_stack_direction ()
19853 static char *addr = 0;
19858 return find_stack_direction ();
19861 return (&dummy > addr) ? 1 : -1;
19867 return find_stack_direction () < 0;
19870 rm -f conftest$ac_exeext
19871 if { (ac_try="$ac_link"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_link") 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_cv_c_stack_direction=1
19892 echo "$as_me: program exited with status $ac_status" >&5
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ( exit $ac_status )
19897 ac_cv_c_stack_direction=-1
19899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19904 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19905 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19907 cat >>confdefs.h <<_ACEOF
19908 #define STACK_DIRECTION $ac_cv_c_stack_direction
19916 for ac_header in stdlib.h unistd.h
19918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 ac_res=`eval echo '${'$as_ac_Header'}'`
19926 { echo "$as_me:$LINENO: result: $ac_res" >&5
19927 echo "${ECHO_T}$ac_res" >&6; }
19929 # Is the header compilable?
19930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19932 cat >conftest.$ac_ext <<_ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 $ac_includes_default
19939 #include <$ac_header>
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && {
19955 test -z "$ac_cxx_werror_flag" ||
19956 test ! -s conftest.err
19957 } && test -s conftest.$ac_objext; then
19958 ac_header_compiler=yes
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 ac_header_compiler=no
19966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19968 echo "${ECHO_T}$ac_header_compiler" >&6; }
19970 # Is the header present?
19971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19973 cat >conftest.$ac_ext <<_ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979 #include <$ac_header>
19981 if { (ac_try="$ac_cpp conftest.$ac_ext"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } >/dev/null && {
19994 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19995 test ! -s conftest.err
19997 ac_header_preproc=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_header_preproc=no
20005 rm -f conftest.err conftest.$ac_ext
20006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20007 echo "${ECHO_T}$ac_header_preproc" >&6; }
20009 # So? What about this header?
20010 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20016 ac_header_preproc=yes
20019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20039 eval "$as_ac_Header=\$ac_header_preproc"
20041 ac_res=`eval echo '${'$as_ac_Header'}'`
20042 { echo "$as_me:$LINENO: result: $ac_res" >&5
20043 echo "${ECHO_T}$ac_res" >&6; }
20046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20047 cat >>confdefs.h <<_ACEOF
20048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20056 for ac_func in getpagesize
20058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 cat >conftest.$ac_ext <<_ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20072 #define $ac_func innocuous_$ac_func
20074 /* System header to define __stub macros and hopefully few prototypes,
20075 which can conflict with char $ac_func (); below.
20076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20077 <limits.h> exists even on freestanding compilers. */
20080 # include <limits.h>
20082 # include <assert.h>
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20094 /* The GNU C library defines this for functions which it implements
20095 to always fail with ENOSYS. Some functions are actually named
20096 something starting with __ and the normal name is an alias. */
20097 #if defined __stub_$ac_func || defined __stub___$ac_func
20104 return $ac_func ();
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_link") 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_cxx_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest$ac_exeext &&
20126 $as_test_x conftest$ac_exeext; then
20127 eval "$as_ac_var=yes"
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 eval "$as_ac_var=no"
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136 conftest$ac_exeext conftest.$ac_ext
20138 ac_res=`eval echo '${'$as_ac_var'}'`
20139 { echo "$as_me:$LINENO: result: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20141 if test `eval echo '${'$as_ac_var'}'` = yes; then
20142 cat >>confdefs.h <<_ACEOF
20143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20149 { echo "$as_me:$LINENO: checking for working mmap" >&5
20150 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20151 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 if test "$cross_compiling" = yes; then
20155 ac_cv_func_mmap_fixed_mapped=no
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20164 /* malloc might have been renamed as rpl_malloc. */
20167 /* Thanks to Mike Haertel and Jim Avera for this test.
20168 Here is a matrix of mmap possibilities:
20169 mmap private not fixed
20170 mmap private fixed at somewhere currently unmapped
20171 mmap private fixed at somewhere already mapped
20172 mmap shared not fixed
20173 mmap shared fixed at somewhere currently unmapped
20174 mmap shared fixed at somewhere already mapped
20175 For private mappings, we should verify that changes cannot be read()
20176 back from the file, nor mmap's back from the file at a different
20177 address. (There have been systems where private was not correctly
20178 implemented like the infamous i386 svr4.0, and systems where the
20179 VM page cache was not coherent with the file system buffer cache
20180 like early versions of FreeBSD and possibly contemporary NetBSD.)
20181 For shared mappings, we should conversely verify that changes get
20182 propagated back to all the places they're supposed to be.
20184 Grep wants private fixed already mapped.
20185 The main things grep needs to know about mmap are:
20186 * does it exist and is it safe to write into the mmap'd area
20187 * how to use it (BSD variants) */
20190 #include <sys/mman.h>
20192 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20196 /* This mess was copied from the GNU getpagesize.h. */
20197 #ifndef HAVE_GETPAGESIZE
20198 /* Assume that all systems that can run configure have sys/param.h. */
20199 # ifndef HAVE_SYS_PARAM_H
20200 # define HAVE_SYS_PARAM_H 1
20203 # ifdef _SC_PAGESIZE
20204 # define getpagesize() sysconf(_SC_PAGESIZE)
20205 # else /* no _SC_PAGESIZE */
20206 # ifdef HAVE_SYS_PARAM_H
20207 # include <sys/param.h>
20208 # ifdef EXEC_PAGESIZE
20209 # define getpagesize() EXEC_PAGESIZE
20210 # else /* no EXEC_PAGESIZE */
20212 # define getpagesize() NBPG * CLSIZE
20215 # endif /* no CLSIZE */
20216 # else /* no NBPG */
20218 # define getpagesize() NBPC
20219 # else /* no NBPC */
20221 # define getpagesize() PAGESIZE
20222 # endif /* PAGESIZE */
20223 # endif /* no NBPC */
20224 # endif /* no NBPG */
20225 # endif /* no EXEC_PAGESIZE */
20226 # else /* no HAVE_SYS_PARAM_H */
20227 # define getpagesize() 8192 /* punt totally */
20228 # endif /* no HAVE_SYS_PARAM_H */
20229 # endif /* no _SC_PAGESIZE */
20231 #endif /* no HAVE_GETPAGESIZE */
20236 char *data, *data2, *data3;
20240 pagesize = getpagesize ();
20242 /* First, make a file with some known garbage in it. */
20243 data = (char *) malloc (pagesize);
20246 for (i = 0; i < pagesize; ++i)
20247 *(data + i) = rand ();
20249 fd = creat ("conftest.mmap", 0600);
20252 if (write (fd, data, pagesize) != pagesize)
20256 /* Next, try to mmap the file at a fixed address which already has
20257 something else allocated at it. If we can, also make sure that
20258 we see the same garbage. */
20259 fd = open ("conftest.mmap", O_RDWR);
20262 data2 = (char *) malloc (2 * pagesize);
20265 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20266 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20267 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20269 for (i = 0; i < pagesize; ++i)
20270 if (*(data + i) != *(data2 + i))
20273 /* Finally, make sure that changes to the mapped area do not
20274 percolate back to the file as seen by read(). (This is a bug on
20275 some variants of i386 svr4.0.) */
20276 for (i = 0; i < pagesize; ++i)
20277 *(data2 + i) = *(data2 + i) + 1;
20278 data3 = (char *) malloc (pagesize);
20281 if (read (fd, data3, pagesize) != pagesize)
20283 for (i = 0; i < pagesize; ++i)
20284 if (*(data + i) != *(data3 + i))
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_link") 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301 { (case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_try") 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 ac_cv_func_mmap_fixed_mapped=yes
20312 echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ( exit $ac_status )
20317 ac_cv_func_mmap_fixed_mapped=no
20319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20324 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20325 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20326 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20328 cat >>confdefs.h <<\_ACEOF
20329 #define HAVE_MMAP 1
20333 rm -f conftest.mmap
20336 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20337 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20338 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20348 #include <features.h>
20349 #ifdef __GNU_LIBRARY__
20350 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20357 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20358 ac_cv_gnu_library_2_1=yes
20360 ac_cv_gnu_library_2_1=no
20367 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20368 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20370 GLIBC21="$ac_cv_gnu_library_2_1"
20375 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20376 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20377 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 if test "$cross_compiling" = yes; then
20383 # Guess based on the CPU.
20384 case "$host_cpu" in
20385 alpha* | i3456786 | m68k | s390*)
20386 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20388 gt_cv_int_divbyzero_sigfpe="guessing no";;
20392 cat >conftest.$ac_ext <<_ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20399 #include <stdlib.h>
20400 #include <signal.h>
20404 sigfpe_handler (int sig)
20406 sigfpe_handler (sig) int sig;
20409 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20410 exit (sig != SIGFPE);
20420 signal (SIGFPE, sigfpe_handler);
20421 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20422 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20423 signal (SIGTRAP, sigfpe_handler);
20425 /* Linux/SPARC yields signal SIGILL. */
20426 #if defined (__sparc__) && defined (__linux__)
20427 signal (SIGILL, sigfpe_handler);
20436 rm -f conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_link") 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20447 { (case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_try") 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 gt_cv_int_divbyzero_sigfpe=yes
20458 echo "$as_me: program exited with status $ac_status" >&5
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ( exit $ac_status )
20463 gt_cv_int_divbyzero_sigfpe=no
20465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20471 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20472 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20473 case "$gt_cv_int_divbyzero_sigfpe" in
20478 cat >>confdefs.h <<_ACEOF
20479 #define INTDIV0_RAISES_SIGFPE $value
20484 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20485 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20486 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 cat >conftest.$ac_ext <<_ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495 unsigned long long ull = 1ULL; int i = 63;
20499 unsigned long long ullmax = (unsigned long long) -1;
20500 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_link") 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && {
20519 test -z "$ac_cxx_werror_flag" ||
20520 test ! -s conftest.err
20521 } && test -s conftest$ac_exeext &&
20522 $as_test_x conftest$ac_exeext; then
20523 ac_cv_type_unsigned_long_long=yes
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20528 ac_cv_type_unsigned_long_long=no
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532 conftest$ac_exeext conftest.$ac_ext
20534 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20535 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20536 if test $ac_cv_type_unsigned_long_long = yes; then
20538 cat >>confdefs.h <<\_ACEOF
20539 #define HAVE_UNSIGNED_LONG_LONG 1
20547 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20549 test $ac_cv_type_unsigned_long_long = yes \
20550 && ac_type='unsigned long long' \
20551 || ac_type='unsigned long'
20553 cat >>confdefs.h <<_ACEOF
20554 #define uintmax_t $ac_type
20559 cat >>confdefs.h <<\_ACEOF
20560 #define HAVE_UINTMAX_T 1
20566 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20567 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20568 if test "${gt_cv_header_inttypes_h+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 #include <sys/types.h>
20579 #include <inttypes.h>
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_compile") 2>conftest.er1
20597 grep -v '^ *+' conftest.er1 >conftest.err
20599 cat conftest.err >&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } && {
20602 test -z "$ac_cxx_werror_flag" ||
20603 test ! -s conftest.err
20604 } && test -s conftest.$ac_objext; then
20605 gt_cv_header_inttypes_h=yes
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20610 gt_cv_header_inttypes_h=no
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20617 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20618 if test $gt_cv_header_inttypes_h = yes; then
20620 cat >>confdefs.h <<_ACEOF
20621 #define HAVE_INTTYPES_H 1
20628 if test $gt_cv_header_inttypes_h = yes; then
20629 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20630 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20631 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20641 #include <inttypes.h>
20654 rm -f conftest.$ac_objext
20655 if { (ac_try="$ac_compile"
20656 case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_compile") 2>conftest.er1
20663 grep -v '^ *+' conftest.er1 >conftest.err
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && {
20668 test -z "$ac_cxx_werror_flag" ||
20669 test ! -s conftest.err
20670 } && test -s conftest.$ac_objext; then
20671 gt_cv_inttypes_pri_broken=no
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 gt_cv_inttypes_pri_broken=yes
20679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20682 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20683 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20685 if test "$gt_cv_inttypes_pri_broken" = yes; then
20687 cat >>confdefs.h <<_ACEOF
20688 #define PRI_MACROS_BROKEN 1
20695 for ac_header in stdint.h
20697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 ac_res=`eval echo '${'$as_ac_Header'}'`
20705 { echo "$as_me:$LINENO: result: $ac_res" >&5
20706 echo "${ECHO_T}$ac_res" >&6; }
20708 # Is the header compilable?
20709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 $ac_includes_default
20718 #include <$ac_header>
20720 rm -f conftest.$ac_objext
20721 if { (ac_try="$ac_compile"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_compile") 2>conftest.er1
20729 grep -v '^ *+' conftest.er1 >conftest.err
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_cxx_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest.$ac_objext; then
20737 ac_header_compiler=yes
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20742 ac_header_compiler=no
20745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20747 echo "${ECHO_T}$ac_header_compiler" >&6; }
20749 # Is the header present?
20750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 #include <$ac_header>
20760 if { (ac_try="$ac_cpp conftest.$ac_ext"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } >/dev/null && {
20773 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20774 test ! -s conftest.err
20776 ac_header_preproc=yes
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20781 ac_header_preproc=no
20784 rm -f conftest.err conftest.$ac_ext
20785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20786 echo "${ECHO_T}$ac_header_preproc" >&6; }
20788 # So? What about this header?
20789 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20795 ac_header_preproc=yes
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 eval "$as_ac_Header=\$ac_header_preproc"
20820 ac_res=`eval echo '${'$as_ac_Header'}'`
20821 { echo "$as_me:$LINENO: result: $ac_res" >&5
20822 echo "${ECHO_T}$ac_res" >&6; }
20825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20826 cat >>confdefs.h <<_ACEOF
20827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20834 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20835 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20844 #include <limits.h>
20846 #include <stdint.h>
20853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20854 $EGREP "Found it" >/dev/null 2>&1; then
20859 if test -z "$result"; then
20860 if test "$cross_compiling" = yes; then
20861 # Depending upon the size, compute the lo and hi bounds.
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <stddef.h>
20872 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20879 rm -f conftest.$ac_objext
20880 if { (ac_try="$ac_compile"
20881 case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_compile") 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } && {
20893 test -z "$ac_cxx_werror_flag" ||
20894 test ! -s conftest.err
20895 } && test -s conftest.$ac_objext; then
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 #include <stddef.h>
20908 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_compile") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_cxx_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest.$ac_objext; then
20932 ac_hi=$ac_mid; break
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_lo=`expr $ac_mid + 1`
20938 if test $ac_lo -le $ac_mid; then
20942 ac_mid=`expr 2 '*' $ac_mid + 1`
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 #include <stddef.h>
20961 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_compile") 2>conftest.er1
20977 grep -v '^ *+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_cxx_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest.$ac_objext; then
20987 cat >conftest.$ac_ext <<_ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20993 #include <stddef.h>
20997 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_compile") 2>conftest.er1
21013 grep -v '^ *+' conftest.er1 >conftest.err
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_cxx_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest.$ac_objext; then
21021 ac_lo=$ac_mid; break
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_hi=`expr '(' $ac_mid ')' - 1`
21027 if test $ac_mid -le $ac_hi; then
21031 ac_mid=`expr 2 '*' $ac_mid`
21034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047 # Binary search between lo and hi bounds.
21048 while test "x$ac_lo" != "x$ac_hi"; do
21049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21050 cat >conftest.$ac_ext <<_ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 #include <stddef.h>
21060 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } && {
21081 test -z "$ac_cxx_werror_flag" ||
21082 test ! -s conftest.err
21083 } && test -s conftest.$ac_objext; then
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_lo=`expr '(' $ac_mid ')' + 1`
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095 ?*) res_hi=$ac_lo;;
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 #include <stddef.h>
21106 static long int longval () { return ~(size_t)0 / 10; }
21107 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21109 #include <stdlib.h>
21114 FILE *f = fopen ("conftest.val", "w");
21117 if ((~(size_t)0 / 10) < 0)
21119 long int i = longval ();
21120 if (i != (~(size_t)0 / 10))
21122 fprintf (f, "%ld\n", i);
21126 unsigned long int i = ulongval ();
21127 if (i != (~(size_t)0 / 10))
21129 fprintf (f, "%lu\n", i);
21131 return ferror (f) || fclose (f) != 0;
21137 rm -f conftest$ac_exeext
21138 if { (ac_try="$ac_link"
21139 case "(($ac_try" in
21140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141 *) ac_try_echo=$ac_try;;
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144 (eval "$ac_link") 2>&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21148 { (case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_try") 2>&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 res_hi=`cat conftest.val`
21159 echo "$as_me: program exited with status $ac_status" >&5
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ( exit $ac_status )
21166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21170 if test "$cross_compiling" = yes; then
21171 # Depending upon the size, compute the lo and hi bounds.
21172 cat >conftest.$ac_ext <<_ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 #include <stddef.h>
21182 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_compile") 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } && {
21203 test -z "$ac_cxx_werror_flag" ||
21204 test ! -s conftest.err
21205 } && test -s conftest.$ac_objext; then
21208 cat >conftest.$ac_ext <<_ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 #include <stddef.h>
21218 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_compile") 2>conftest.er1
21234 grep -v '^ *+' conftest.er1 >conftest.err
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_cxx_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest.$ac_objext; then
21242 ac_hi=$ac_mid; break
21244 echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_lo=`expr $ac_mid + 1`
21248 if test $ac_lo -le $ac_mid; then
21252 ac_mid=`expr 2 '*' $ac_mid + 1`
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 #include <stddef.h>
21271 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_compile") 2>conftest.er1
21287 grep -v '^ *+' conftest.er1 >conftest.err
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } && {
21292 test -z "$ac_cxx_werror_flag" ||
21293 test ! -s conftest.err
21294 } && test -s conftest.$ac_objext; then
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <stddef.h>
21307 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21314 rm -f conftest.$ac_objext
21315 if { (ac_try="$ac_compile"
21316 case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321 (eval "$ac_compile") 2>conftest.er1
21323 grep -v '^ *+' conftest.er1 >conftest.err
21325 cat conftest.err >&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } && {
21328 test -z "$ac_cxx_werror_flag" ||
21329 test ! -s conftest.err
21330 } && test -s conftest.$ac_objext; then
21331 ac_lo=$ac_mid; break
21333 echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21336 ac_hi=`expr '(' $ac_mid ')' - 1`
21337 if test $ac_mid -le $ac_hi; then
21341 ac_mid=`expr 2 '*' $ac_mid`
21344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21347 echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 # Binary search between lo and hi bounds.
21358 while test "x$ac_lo" != "x$ac_hi"; do
21359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 #include <stddef.h>
21370 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21377 rm -f conftest.$ac_objext
21378 if { (ac_try="$ac_compile"
21379 case "(($ac_try" in
21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381 *) ac_try_echo=$ac_try;;
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384 (eval "$ac_compile") 2>conftest.er1
21386 grep -v '^ *+' conftest.er1 >conftest.err
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_cxx_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest.$ac_objext; then
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 ac_lo=`expr '(' $ac_mid ')' + 1`
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 ?*) res_lo=$ac_lo;;
21409 cat >conftest.$ac_ext <<_ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 #include <stddef.h>
21416 static long int longval () { return ~(size_t)0 % 10; }
21417 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21419 #include <stdlib.h>
21424 FILE *f = fopen ("conftest.val", "w");
21427 if ((~(size_t)0 % 10) < 0)
21429 long int i = longval ();
21430 if (i != (~(size_t)0 % 10))
21432 fprintf (f, "%ld\n", i);
21436 unsigned long int i = ulongval ();
21437 if (i != (~(size_t)0 % 10))
21439 fprintf (f, "%lu\n", i);
21441 return ferror (f) || fclose (f) != 0;
21447 rm -f conftest$ac_exeext
21448 if { (ac_try="$ac_link"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_link") 2>&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21458 { (case "(($ac_try" in
21459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460 *) ac_try_echo=$ac_try;;
21462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21463 (eval "$ac_try") 2>&5
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; }; then
21467 res_lo=`cat conftest.val`
21469 echo "$as_me: program exited with status $ac_status" >&5
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 ( exit $ac_status )
21476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21480 if test "$cross_compiling" = yes; then
21481 # Depending upon the size, compute the lo and hi bounds.
21482 cat >conftest.$ac_ext <<_ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21488 #include <stddef.h>
21492 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_compile") 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } && {
21513 test -z "$ac_cxx_werror_flag" ||
21514 test ! -s conftest.err
21515 } && test -s conftest.$ac_objext; then
21518 cat >conftest.$ac_ext <<_ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 #include <stddef.h>
21528 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21544 grep -v '^ *+' conftest.er1 >conftest.err
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_cxx_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest.$ac_objext; then
21552 ac_hi=$ac_mid; break
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21557 ac_lo=`expr $ac_mid + 1`
21558 if test $ac_lo -le $ac_mid; then
21562 ac_mid=`expr 2 '*' $ac_mid + 1`
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 #include <stddef.h>
21581 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_compile") 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_cxx_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest.$ac_objext; then
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 #include <stddef.h>
21617 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21624 rm -f conftest.$ac_objext
21625 if { (ac_try="$ac_compile"
21626 case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21633 grep -v '^ *+' conftest.er1 >conftest.err
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_cxx_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21641 ac_lo=$ac_mid; break
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 ac_hi=`expr '(' $ac_mid ')' - 1`
21647 if test $ac_mid -le $ac_hi; then
21651 ac_mid=`expr 2 '*' $ac_mid`
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21667 # Binary search between lo and hi bounds.
21668 while test "x$ac_lo" != "x$ac_hi"; do
21669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21670 cat >conftest.$ac_ext <<_ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 #include <stddef.h>
21680 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21687 rm -f conftest.$ac_objext
21688 if { (ac_try="$ac_compile"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_compile") 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_cxx_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest.$ac_objext; then
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ac_lo=`expr '(' $ac_mid ')' + 1`
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21715 ?*) fits_in_uint=$ac_lo;;
21719 cat >conftest.$ac_ext <<_ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 #include <stddef.h>
21726 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21727 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21729 #include <stdlib.h>
21734 FILE *f = fopen ("conftest.val", "w");
21737 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21739 long int i = longval ();
21740 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21742 fprintf (f, "%ld\n", i);
21746 unsigned long int i = ulongval ();
21747 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21749 fprintf (f, "%lu\n", i);
21751 return ferror (f) || fclose (f) != 0;
21757 rm -f conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_link") 2>&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); }; }; then
21777 fits_in_uint=`cat conftest.val`
21779 echo "$as_me: program exited with status $ac_status" >&5
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ( exit $ac_status )
21786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21790 if test "$fits_in_uint" = 1; then
21791 cat >conftest.$ac_ext <<_ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21797 #include <stddef.h>
21799 extern unsigned long foo;
21809 rm -f conftest.$ac_objext
21810 if { (ac_try="$ac_compile"
21811 case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_compile") 2>conftest.er1
21818 grep -v '^ *+' conftest.er1 >conftest.err
21820 cat conftest.err >&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } && {
21823 test -z "$ac_cxx_werror_flag" ||
21824 test ! -s conftest.err
21825 } && test -s conftest.$ac_objext; then
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21836 if test -z "$result"; then
21837 if test "$fits_in_uint" = 1; then
21838 result="$res_hi$res_lo"U
21840 result="$res_hi$res_lo"UL
21843 result='~(size_t)0'
21846 { echo "$as_me:$LINENO: result: $result" >&5
21847 echo "${ECHO_T}$result" >&6; }
21848 if test "$result" != yes; then
21850 cat >>confdefs.h <<_ACEOF
21851 #define SIZE_MAX $result
21860 for ac_header in stdint.h
21862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21869 ac_res=`eval echo '${'$as_ac_Header'}'`
21870 { echo "$as_me:$LINENO: result: $ac_res" >&5
21871 echo "${ECHO_T}$ac_res" >&6; }
21873 # Is the header compilable?
21874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21876 cat >conftest.$ac_ext <<_ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h. */
21882 $ac_includes_default
21883 #include <$ac_header>
21885 rm -f conftest.$ac_objext
21886 if { (ac_try="$ac_compile"
21887 case "(($ac_try" in
21888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889 *) ac_try_echo=$ac_try;;
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892 (eval "$ac_compile") 2>conftest.er1
21894 grep -v '^ *+' conftest.er1 >conftest.err
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } && {
21899 test -z "$ac_cxx_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest.$ac_objext; then
21902 ac_header_compiler=yes
21904 echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 ac_header_compiler=no
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21912 echo "${ECHO_T}$ac_header_compiler" >&6; }
21914 # Is the header present?
21915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21917 cat >conftest.$ac_ext <<_ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21923 #include <$ac_header>
21925 if { (ac_try="$ac_cpp conftest.$ac_ext"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21933 grep -v '^ *+' conftest.er1 >conftest.err
21935 cat conftest.err >&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } >/dev/null && {
21938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21939 test ! -s conftest.err
21941 ac_header_preproc=yes
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 ac_header_preproc=no
21949 rm -f conftest.err conftest.$ac_ext
21950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21951 echo "${ECHO_T}$ac_header_preproc" >&6; }
21953 # So? What about this header?
21954 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21960 ac_header_preproc=yes
21963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 eval "$as_ac_Header=\$ac_header_preproc"
21985 ac_res=`eval echo '${'$as_ac_Header'}'`
21986 { echo "$as_me:$LINENO: result: $ac_res" >&5
21987 echo "${ECHO_T}$ac_res" >&6; }
21990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21991 cat >>confdefs.h <<_ACEOF
21992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22006 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22007 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
22008 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22011 cat >conftest.$ac_ext <<_ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22017 $ac_includes_default
22018 typedef ptrdiff_t ac__type_new_;
22022 if ((ac__type_new_ *) 0)
22024 if (sizeof (ac__type_new_))
22030 rm -f conftest.$ac_objext
22031 if { (ac_try="$ac_compile"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_compile") 2>conftest.er1
22039 grep -v '^ *+' conftest.er1 >conftest.err
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && {
22044 test -z "$ac_cxx_werror_flag" ||
22045 test ! -s conftest.err
22046 } && test -s conftest.$ac_objext; then
22047 ac_cv_type_ptrdiff_t=yes
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ac_cv_type_ptrdiff_t=no
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22058 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22059 if test $ac_cv_type_ptrdiff_t = yes; then
22063 cat >>confdefs.h <<\_ACEOF
22064 #define ptrdiff_t long
22080 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22081 stdlib.h string.h unistd.h sys/param.h
22083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 ac_res=`eval echo '${'$as_ac_Header'}'`
22091 { echo "$as_me:$LINENO: result: $ac_res" >&5
22092 echo "${ECHO_T}$ac_res" >&6; }
22094 # Is the header compilable?
22095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22097 cat >conftest.$ac_ext <<_ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 $ac_includes_default
22104 #include <$ac_header>
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_compile") 2>conftest.er1
22115 grep -v '^ *+' conftest.er1 >conftest.err
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_cxx_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest.$ac_objext; then
22123 ac_header_compiler=yes
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_header_compiler=no
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6; }
22135 # Is the header present?
22136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <$ac_header>
22146 if { (ac_try="$ac_cpp conftest.$ac_ext"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } >/dev/null && {
22159 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22160 test ! -s conftest.err
22162 ac_header_preproc=yes
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ac_header_preproc=no
22170 rm -f conftest.err conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6; }
22174 # So? What about this header?
22175 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22181 ac_header_preproc=yes
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 eval "$as_ac_Header=\$ac_header_preproc"
22206 ac_res=`eval echo '${'$as_ac_Header'}'`
22207 { echo "$as_me:$LINENO: result: $ac_res" >&5
22208 echo "${ECHO_T}$ac_res" >&6; }
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212 cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22243 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22244 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22245 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22254 cat >conftest.$ac_ext <<_ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22262 #define $ac_func innocuous_$ac_func
22264 /* System header to define __stub macros and hopefully few prototypes,
22265 which can conflict with char $ac_func (); below.
22266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22267 <limits.h> exists even on freestanding compilers. */
22270 # include <limits.h>
22272 # include <assert.h>
22277 /* Override any GCC internal prototype to avoid an error.
22278 Use char because int might match the return type of a GCC
22279 builtin and then its argument prototype would still apply. */
22284 /* The GNU C library defines this for functions which it implements
22285 to always fail with ENOSYS. Some functions are actually named
22286 something starting with __ and the normal name is an alias. */
22287 #if defined __stub_$ac_func || defined __stub___$ac_func
22294 return $ac_func ();
22299 rm -f conftest.$ac_objext conftest$ac_exeext
22300 if { (ac_try="$ac_link"
22301 case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_link") 2>conftest.er1
22308 grep -v '^ *+' conftest.er1 >conftest.err
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } && {
22313 test -z "$ac_cxx_werror_flag" ||
22314 test ! -s conftest.err
22315 } && test -s conftest$ac_exeext &&
22316 $as_test_x conftest$ac_exeext; then
22317 eval "$as_ac_var=yes"
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22322 eval "$as_ac_var=no"
22325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22326 conftest$ac_exeext conftest.$ac_ext
22328 ac_res=`eval echo '${'$as_ac_var'}'`
22329 { echo "$as_me:$LINENO: result: $ac_res" >&5
22330 echo "${ECHO_T}$ac_res" >&6; }
22331 if test `eval echo '${'$as_ac_var'}'` = yes; then
22332 cat >>confdefs.h <<_ACEOF
22333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22341 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22342 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22343 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 cat >conftest.$ac_ext <<_ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22358 char *p = (char *) _snprintf;
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_compile") 2>conftest.er1
22374 grep -v '^ *+' conftest.er1 >conftest.err
22376 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && {
22379 test -z "$ac_cxx_werror_flag" ||
22380 test ! -s conftest.err
22381 } && test -s conftest.$ac_objext; then
22382 ac_cv_have_decl__snprintf=yes
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 ac_cv_have_decl__snprintf=no
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22393 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22394 if test $ac_cv_have_decl__snprintf = yes; then
22400 cat >>confdefs.h <<_ACEOF
22401 #define HAVE_DECL__SNPRINTF $gt_value
22406 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22407 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22408 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
22411 cat >conftest.$ac_ext <<_ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22423 char *p = (char *) _snwprintf;
22430 rm -f conftest.$ac_objext
22431 if { (ac_try="$ac_compile"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_compile") 2>conftest.er1
22439 grep -v '^ *+' conftest.er1 >conftest.err
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } && {
22444 test -z "$ac_cxx_werror_flag" ||
22445 test ! -s conftest.err
22446 } && test -s conftest.$ac_objext; then
22447 ac_cv_have_decl__snwprintf=yes
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 ac_cv_have_decl__snwprintf=no
22455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22457 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22458 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22459 if test $ac_cv_have_decl__snwprintf = yes; then
22465 cat >>confdefs.h <<_ACEOF
22466 #define HAVE_DECL__SNWPRINTF $gt_value
22472 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22473 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22474 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22488 #ifndef feof_unlocked
22489 char *p = (char *) feof_unlocked;
22496 rm -f conftest.$ac_objext
22497 if { (ac_try="$ac_compile"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_compile") 2>conftest.er1
22505 grep -v '^ *+' conftest.er1 >conftest.err
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_cxx_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest.$ac_objext; then
22513 ac_cv_have_decl_feof_unlocked=yes
22515 echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22518 ac_cv_have_decl_feof_unlocked=no
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22524 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22525 if test $ac_cv_have_decl_feof_unlocked = yes; then
22531 cat >>confdefs.h <<_ACEOF
22532 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22537 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22538 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22539 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22553 #ifndef fgets_unlocked
22554 char *p = (char *) fgets_unlocked;
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_compile") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_cxx_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest.$ac_objext; then
22578 ac_cv_have_decl_fgets_unlocked=yes
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 ac_cv_have_decl_fgets_unlocked=no
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22589 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22590 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22602 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22603 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22604 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22605 echo $ECHO_N "(cached) $ECHO_C" >&6
22607 cat >conftest.$ac_ext <<_ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22618 #ifndef getc_unlocked
22619 char *p = (char *) getc_unlocked;
22626 rm -f conftest.$ac_objext
22627 if { (ac_try="$ac_compile"
22628 case "(($ac_try" in
22629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630 *) ac_try_echo=$ac_try;;
22632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633 (eval "$ac_compile") 2>conftest.er1
22635 grep -v '^ *+' conftest.er1 >conftest.err
22637 cat conftest.err >&5
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } && {
22640 test -z "$ac_cxx_werror_flag" ||
22641 test ! -s conftest.err
22642 } && test -s conftest.$ac_objext; then
22643 ac_cv_have_decl_getc_unlocked=yes
22645 echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22648 ac_cv_have_decl_getc_unlocked=no
22651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22653 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22654 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22655 if test $ac_cv_have_decl_getc_unlocked = yes; then
22661 cat >>confdefs.h <<_ACEOF
22662 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22667 case $gt_cv_func_printf_posix in
22668 *yes) HAVE_POSIX_PRINTF=1 ;;
22669 *) HAVE_POSIX_PRINTF=0 ;;
22672 if test "$ac_cv_func_asprintf" = yes; then
22678 if test "$ac_cv_func_snprintf" = yes; then
22684 if test "$ac_cv_func_wprintf" = yes; then
22696 am_save_CPPFLAGS="$CPPFLAGS"
22698 for element in $INCICONV; do
22700 for x in $CPPFLAGS; do
22702 acl_save_prefix="$prefix"
22703 prefix="$acl_final_prefix"
22704 acl_save_exec_prefix="$exec_prefix"
22705 exec_prefix="$acl_final_exec_prefix"
22707 exec_prefix="$acl_save_exec_prefix"
22708 prefix="$acl_save_prefix"
22710 if test "X$x" = "X$element"; then
22715 if test -z "$haveit"; then
22716 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22721 { echo "$as_me:$LINENO: checking for iconv" >&5
22722 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22723 if test "${am_cv_func_iconv+set}" = set; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 am_cv_func_iconv="no, consider installing GNU libiconv"
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 #include <stdlib.h>
22740 iconv_t cd = iconv_open("","");
22741 iconv(cd,NULL,NULL,NULL,NULL);
22747 rm -f conftest.$ac_objext conftest$ac_exeext
22748 if { (ac_try="$ac_link"
22749 case "(($ac_try" in
22750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751 *) ac_try_echo=$ac_try;;
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754 (eval "$ac_link") 2>conftest.er1
22756 grep -v '^ *+' conftest.er1 >conftest.err
22758 cat conftest.err >&5
22759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760 (exit $ac_status); } && {
22761 test -z "$ac_cxx_werror_flag" ||
22762 test ! -s conftest.err
22763 } && test -s conftest$ac_exeext &&
22764 $as_test_x conftest$ac_exeext; then
22765 am_cv_func_iconv=yes
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22774 conftest$ac_exeext conftest.$ac_ext
22775 if test "$am_cv_func_iconv" != yes; then
22776 am_save_LIBS="$LIBS"
22777 LIBS="$LIBS $LIBICONV"
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 #include <stdlib.h>
22789 iconv_t cd = iconv_open("","");
22790 iconv(cd,NULL,NULL,NULL,NULL);
22796 rm -f conftest.$ac_objext conftest$ac_exeext
22797 if { (ac_try="$ac_link"
22798 case "(($ac_try" in
22799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800 *) ac_try_echo=$ac_try;;
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803 (eval "$ac_link") 2>conftest.er1
22805 grep -v '^ *+' conftest.er1 >conftest.err
22807 cat conftest.err >&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } && {
22810 test -z "$ac_cxx_werror_flag" ||
22811 test ! -s conftest.err
22812 } && test -s conftest$ac_exeext &&
22813 $as_test_x conftest$ac_exeext; then
22814 am_cv_lib_iconv=yes
22815 am_cv_func_iconv=yes
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22824 conftest$ac_exeext conftest.$ac_ext
22825 LIBS="$am_save_LIBS"
22829 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22830 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22831 if test "$am_cv_func_iconv" = yes; then
22833 cat >>confdefs.h <<\_ACEOF
22834 #define HAVE_ICONV 1
22838 if test "$am_cv_lib_iconv" = yes; then
22839 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22840 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22841 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22842 echo "${ECHO_T}$LIBICONV" >&6; }
22844 CPPFLAGS="$am_save_CPPFLAGS"
22851 if test "$am_cv_func_iconv" = yes; then
22852 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22853 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22854 if test "${am_cv_proto_iconv+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22865 #include <stdlib.h>
22871 #if defined(__STDC__) || defined(__cplusplus)
22872 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22885 rm -f conftest.$ac_objext
22886 if { (ac_try="$ac_compile"
22887 case "(($ac_try" in
22888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22889 *) ac_try_echo=$ac_try;;
22891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22892 (eval "$ac_compile") 2>conftest.er1
22894 grep -v '^ *+' conftest.er1 >conftest.err
22896 cat conftest.err >&5
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); } && {
22899 test -z "$ac_cxx_werror_flag" ||
22900 test ! -s conftest.err
22901 } && test -s conftest.$ac_objext; then
22902 am_cv_proto_iconv_arg1=""
22904 echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22907 am_cv_proto_iconv_arg1="const"
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911 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);"
22914 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22915 { echo "$as_me:$LINENO: result: ${ac_t:-
22916 }$am_cv_proto_iconv" >&5
22917 echo "${ECHO_T}${ac_t:-
22918 }$am_cv_proto_iconv" >&6; }
22920 cat >>confdefs.h <<_ACEOF
22921 #define ICONV_CONST $am_cv_proto_iconv_arg1
22927 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22928 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22929 if test "${am_cv_langinfo_codeset+set}" = set; then
22930 echo $ECHO_N "(cached) $ECHO_C" >&6
22932 cat >conftest.$ac_ext <<_ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22938 #include <langinfo.h>
22942 char* cs = nl_langinfo(CODESET);
22947 rm -f conftest.$ac_objext conftest$ac_exeext
22948 if { (ac_try="$ac_link"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954 (eval "$ac_link") 2>conftest.er1
22956 grep -v '^ *+' conftest.er1 >conftest.err
22958 cat conftest.err >&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } && {
22961 test -z "$ac_cxx_werror_flag" ||
22962 test ! -s conftest.err
22963 } && test -s conftest$ac_exeext &&
22964 $as_test_x conftest$ac_exeext; then
22965 am_cv_langinfo_codeset=yes
22967 echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22970 am_cv_langinfo_codeset=no
22973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22974 conftest$ac_exeext conftest.$ac_ext
22977 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22978 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22979 if test $am_cv_langinfo_codeset = yes; then
22981 cat >>confdefs.h <<\_ACEOF
22982 #define HAVE_LANGINFO_CODESET 1
22987 if test $ac_cv_header_locale_h = yes; then
22989 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22990 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22991 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 #include <locale.h>
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016 (eval "$ac_link") 2>conftest.er1
23018 grep -v '^ *+' conftest.er1 >conftest.err
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && {
23023 test -z "$ac_cxx_werror_flag" ||
23024 test ! -s conftest.err
23025 } && test -s conftest$ac_exeext &&
23026 $as_test_x conftest$ac_exeext; then
23027 gt_cv_val_LC_MESSAGES=yes
23029 echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23032 gt_cv_val_LC_MESSAGES=no
23035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23036 conftest$ac_exeext conftest.$ac_ext
23038 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23039 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23040 if test $gt_cv_val_LC_MESSAGES = yes; then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define HAVE_LC_MESSAGES 1
23050 if test -n "$INTL_MACOSX_LIBS"; then
23051 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23054 for ac_prog in bison
23056 # Extract the first word of "$ac_prog", so it can be a program name with args.
23057 set dummy $ac_prog; ac_word=$2
23058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23060 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23063 if test -n "$INTLBISON"; then
23064 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23067 for as_dir in $PATH
23070 test -z "$as_dir" && as_dir=.
23071 for ac_exec_ext in '' $ac_executable_extensions; do
23072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23073 ac_cv_prog_INTLBISON="$ac_prog"
23074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23083 INTLBISON=$ac_cv_prog_INTLBISON
23084 if test -n "$INTLBISON"; then
23085 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23086 echo "${ECHO_T}$INTLBISON" >&6; }
23088 { echo "$as_me:$LINENO: result: no" >&5
23089 echo "${ECHO_T}no" >&6; }
23093 test -n "$INTLBISON" && break
23096 if test -z "$INTLBISON"; then
23099 { echo "$as_me:$LINENO: checking version of bison" >&5
23100 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23101 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23102 case $ac_prog_version in
23103 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23104 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23105 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23106 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23108 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23109 echo "${ECHO_T}$ac_prog_version" >&6; }
23111 if test $ac_verc_fail = yes; then
23130 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23131 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23132 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 gt_save_CPPFLAGS="$CPPFLAGS"
23136 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23137 gt_save_LIBS="$LIBS"
23138 LIBS="$LIBS -framework CoreFoundation"
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 #include <CFPreferences.h>
23149 CFPreferencesCopyAppValue(NULL, NULL)
23154 rm -f conftest.$ac_objext conftest$ac_exeext
23155 if { (ac_try="$ac_link"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_link") 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); } && {
23168 test -z "$ac_cxx_werror_flag" ||
23169 test ! -s conftest.err
23170 } && test -s conftest$ac_exeext &&
23171 $as_test_x conftest$ac_exeext; then
23172 gt_cv_func_CFPreferencesCopyAppValue=yes
23174 echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23177 gt_cv_func_CFPreferencesCopyAppValue=no
23180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23181 conftest$ac_exeext conftest.$ac_ext
23182 CPPFLAGS="$gt_save_CPPFLAGS"
23183 LIBS="$gt_save_LIBS"
23185 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23186 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23187 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23189 cat >>confdefs.h <<\_ACEOF
23190 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23194 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23195 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23196 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23199 gt_save_CPPFLAGS="$CPPFLAGS"
23200 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23201 gt_save_LIBS="$LIBS"
23202 LIBS="$LIBS -framework CoreFoundation"
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 #include <CFLocale.h>
23213 CFLocaleCopyCurrent();
23218 rm -f conftest.$ac_objext conftest$ac_exeext
23219 if { (ac_try="$ac_link"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_link") 2>conftest.er1
23227 grep -v '^ *+' conftest.er1 >conftest.err
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } && {
23232 test -z "$ac_cxx_werror_flag" ||
23233 test ! -s conftest.err
23234 } && test -s conftest$ac_exeext &&
23235 $as_test_x conftest$ac_exeext; then
23236 gt_cv_func_CFLocaleCopyCurrent=yes
23238 echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 gt_cv_func_CFLocaleCopyCurrent=no
23244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23245 conftest$ac_exeext conftest.$ac_ext
23246 CPPFLAGS="$gt_save_CPPFLAGS"
23247 LIBS="$gt_save_LIBS"
23249 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23250 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23251 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23253 cat >>confdefs.h <<\_ACEOF
23254 #define HAVE_CFLOCALECOPYCURRENT 1
23259 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23260 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23266 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23267 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23268 # Check whether --enable-nls was given.
23269 if test "${enable_nls+set}" = set; then
23270 enableval=$enable_nls; USE_NLS=$enableval
23275 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23276 echo "${ECHO_T}$USE_NLS" >&6; }
23281 BUILD_INCLUDED_LIBINTL=no
23282 USE_INCLUDED_LIBINTL=no
23288 if test "$USE_NLS" = "yes"; then
23289 gt_use_preinstalled_gnugettext=no
23291 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23292 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23294 # Check whether --with-included-gettext was given.
23295 if test "${with_included_gettext+set}" = set; then
23296 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23298 nls_cv_force_use_gnu_gettext=no
23301 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23302 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23304 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23305 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23312 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23313 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23314 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <libintl.h>
23324 extern int _nl_msg_cat_cntr;
23325 extern int *_nl_domain_bindings;
23329 bindtextdomain ("", "");
23330 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342 (eval "$ac_link") 2>conftest.er1
23344 grep -v '^ *+' conftest.er1 >conftest.err
23346 cat conftest.err >&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && {
23349 test -z "$ac_cxx_werror_flag" ||
23350 test ! -s conftest.err
23351 } && test -s conftest$ac_exeext &&
23352 $as_test_x conftest$ac_exeext; then
23353 gt_cv_func_gnugettext1_libc=yes
23355 echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 gt_cv_func_gnugettext1_libc=no
23361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23362 conftest$ac_exeext conftest.$ac_ext
23364 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23365 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23367 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23373 acl_save_prefix="$prefix"
23374 prefix="$acl_final_prefix"
23375 acl_save_exec_prefix="$exec_prefix"
23376 exec_prefix="$acl_final_exec_prefix"
23378 eval additional_includedir=\"$includedir\"
23379 eval additional_libdir=\"$libdir\"
23381 exec_prefix="$acl_save_exec_prefix"
23382 prefix="$acl_save_prefix"
23385 # Check whether --with-libintl-prefix was given.
23386 if test "${with_libintl_prefix+set}" = set; then
23387 withval=$with_libintl_prefix;
23388 if test "X$withval" = "Xno"; then
23391 if test "X$withval" = "X"; then
23393 acl_save_prefix="$prefix"
23394 prefix="$acl_final_prefix"
23395 acl_save_exec_prefix="$exec_prefix"
23396 exec_prefix="$acl_final_exec_prefix"
23398 eval additional_includedir=\"$includedir\"
23399 eval additional_libdir=\"$libdir\"
23401 exec_prefix="$acl_save_exec_prefix"
23402 prefix="$acl_save_prefix"
23405 additional_includedir="$withval/include"
23406 additional_libdir="$withval/lib"
23417 names_already_handled=
23418 names_next_round='intl '
23419 while test -n "$names_next_round"; do
23420 names_this_round="$names_next_round"
23422 for name in $names_this_round; do
23424 for n in $names_already_handled; do
23425 if test "$n" = "$name"; then
23426 already_handled=yes
23430 if test -z "$already_handled"; then
23431 names_already_handled="$names_already_handled $name"
23432 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23433 eval value=\"\$HAVE_LIB$uppername\"
23434 if test -n "$value"; then
23435 if test "$value" = yes; then
23436 eval value=\"\$LIB$uppername\"
23437 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23438 eval value=\"\$LTLIB$uppername\"
23439 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23448 if test $use_additional = yes; then
23449 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23450 found_dir="$additional_libdir"
23451 found_so="$additional_libdir/lib$name.$shlibext"
23452 if test -f "$additional_libdir/lib$name.la"; then
23453 found_la="$additional_libdir/lib$name.la"
23456 if test -f "$additional_libdir/lib$name.$libext"; then
23457 found_dir="$additional_libdir"
23458 found_a="$additional_libdir/lib$name.$libext"
23459 if test -f "$additional_libdir/lib$name.la"; then
23460 found_la="$additional_libdir/lib$name.la"
23465 if test "X$found_dir" = "X"; then
23466 for x in $LDFLAGS $LTLIBINTL; 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"
23478 dir=`echo "X$x" | sed -e 's/^X-L//'`
23479 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23481 found_so="$dir/lib$name.$shlibext"
23482 if test -f "$dir/lib$name.la"; then
23483 found_la="$dir/lib$name.la"
23486 if test -f "$dir/lib$name.$libext"; then
23488 found_a="$dir/lib$name.$libext"
23489 if test -f "$dir/lib$name.la"; then
23490 found_la="$dir/lib$name.la"
23496 if test "X$found_dir" != "X"; then
23501 if test "X$found_dir" != "X"; then
23502 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23503 if test "X$found_so" != "X"; then
23504 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23508 for x in $ltrpathdirs; do
23509 if test "X$x" = "X$found_dir"; then
23514 if test -z "$haveit"; then
23515 ltrpathdirs="$ltrpathdirs $found_dir"
23517 if test "$hardcode_direct" = yes; then
23518 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23520 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23521 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23523 for x in $rpathdirs; do
23524 if test "X$x" = "X$found_dir"; then
23529 if test -z "$haveit"; then
23530 rpathdirs="$rpathdirs $found_dir"
23534 for x in $LDFLAGS $LIBINTL; do
23536 acl_save_prefix="$prefix"
23537 prefix="$acl_final_prefix"
23538 acl_save_exec_prefix="$exec_prefix"
23539 exec_prefix="$acl_final_exec_prefix"
23541 exec_prefix="$acl_save_exec_prefix"
23542 prefix="$acl_save_prefix"
23544 if test "X$x" = "X-L$found_dir"; then
23549 if test -z "$haveit"; then
23550 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23552 if test "$hardcode_minus_L" != no; then
23553 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23555 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23561 if test "X$found_a" != "X"; then
23562 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23564 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23567 additional_includedir=
23568 case "$found_dir" in
23570 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23571 additional_includedir="$basedir/include"
23574 if test "X$additional_includedir" != "X"; then
23575 if test "X$additional_includedir" != "X/usr/include"; then
23577 if test "X$additional_includedir" = "X/usr/local/include"; then
23578 if test -n "$GCC"; then
23580 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23584 if test -z "$haveit"; then
23585 for x in $CPPFLAGS $INCINTL; do
23587 acl_save_prefix="$prefix"
23588 prefix="$acl_final_prefix"
23589 acl_save_exec_prefix="$exec_prefix"
23590 exec_prefix="$acl_final_exec_prefix"
23592 exec_prefix="$acl_save_exec_prefix"
23593 prefix="$acl_save_prefix"
23595 if test "X$x" = "X-I$additional_includedir"; then
23600 if test -z "$haveit"; then
23601 if test -d "$additional_includedir"; then
23602 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23608 if test -n "$found_la"; then
23609 save_libdir="$libdir"
23610 case "$found_la" in
23611 */* | *\\*) . "$found_la" ;;
23612 *) . "./$found_la" ;;
23614 libdir="$save_libdir"
23615 for dep in $dependency_libs; do
23618 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23619 if test "X$additional_libdir" != "X/usr/lib"; then
23621 if test "X$additional_libdir" = "X/usr/local/lib"; then
23622 if test -n "$GCC"; then
23624 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23628 if test -z "$haveit"; then
23630 for x in $LDFLAGS $LIBINTL; do
23632 acl_save_prefix="$prefix"
23633 prefix="$acl_final_prefix"
23634 acl_save_exec_prefix="$exec_prefix"
23635 exec_prefix="$acl_final_exec_prefix"
23637 exec_prefix="$acl_save_exec_prefix"
23638 prefix="$acl_save_prefix"
23640 if test "X$x" = "X-L$additional_libdir"; then
23645 if test -z "$haveit"; then
23646 if test -d "$additional_libdir"; then
23647 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23651 for x in $LDFLAGS $LTLIBINTL; do
23653 acl_save_prefix="$prefix"
23654 prefix="$acl_final_prefix"
23655 acl_save_exec_prefix="$exec_prefix"
23656 exec_prefix="$acl_final_exec_prefix"
23658 exec_prefix="$acl_save_exec_prefix"
23659 prefix="$acl_save_prefix"
23661 if test "X$x" = "X-L$additional_libdir"; then
23666 if test -z "$haveit"; then
23667 if test -d "$additional_libdir"; then
23668 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23675 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23676 if test "$enable_rpath" != no; then
23678 for x in $rpathdirs; do
23679 if test "X$x" = "X$dir"; then
23684 if test -z "$haveit"; then
23685 rpathdirs="$rpathdirs $dir"
23688 for x in $ltrpathdirs; do
23689 if test "X$x" = "X$dir"; then
23694 if test -z "$haveit"; then
23695 ltrpathdirs="$ltrpathdirs $dir"
23700 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23703 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23706 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23707 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23713 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23714 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23720 if test "X$rpathdirs" != "X"; then
23721 if test -n "$hardcode_libdir_separator"; then
23723 for found_dir in $rpathdirs; do
23724 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23726 acl_save_libdir="$libdir"
23728 eval flag=\"$hardcode_libdir_flag_spec\"
23729 libdir="$acl_save_libdir"
23730 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23732 for found_dir in $rpathdirs; do
23733 acl_save_libdir="$libdir"
23734 libdir="$found_dir"
23735 eval flag=\"$hardcode_libdir_flag_spec\"
23736 libdir="$acl_save_libdir"
23737 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23741 if test "X$ltrpathdirs" != "X"; then
23742 for found_dir in $ltrpathdirs; do
23743 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23747 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23748 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23749 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23750 echo $ECHO_N "(cached) $ECHO_C" >&6
23752 gt_save_CPPFLAGS="$CPPFLAGS"
23753 CPPFLAGS="$CPPFLAGS $INCINTL"
23754 gt_save_LIBS="$LIBS"
23755 LIBS="$LIBS $LIBINTL"
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762 #include <libintl.h>
23763 extern int _nl_msg_cat_cntr;
23768 const char *_nl_expand_alias (const char *);
23772 bindtextdomain ("", "");
23773 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_link") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1 >conftest.err
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_cxx_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest$ac_exeext &&
23795 $as_test_x conftest$ac_exeext; then
23796 gt_cv_func_gnugettext1_libintl=yes
23798 echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23801 gt_cv_func_gnugettext1_libintl=no
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805 conftest$ac_exeext conftest.$ac_ext
23806 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23807 LIBS="$LIBS $LIBICONV"
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 #include <libintl.h>
23815 extern int _nl_msg_cat_cntr;
23820 const char *_nl_expand_alias (const char *);
23824 bindtextdomain ("", "");
23825 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837 (eval "$ac_link") 2>conftest.er1
23839 grep -v '^ *+' conftest.er1 >conftest.err
23841 cat conftest.err >&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); } && {
23844 test -z "$ac_cxx_werror_flag" ||
23845 test ! -s conftest.err
23846 } && test -s conftest$ac_exeext &&
23847 $as_test_x conftest$ac_exeext; then
23848 LIBINTL="$LIBINTL $LIBICONV"
23849 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23850 gt_cv_func_gnugettext1_libintl=yes
23853 echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23860 conftest$ac_exeext conftest.$ac_ext
23862 CPPFLAGS="$gt_save_CPPFLAGS"
23863 LIBS="$gt_save_LIBS"
23865 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23866 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23869 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23870 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23871 && test "$PACKAGE" != gettext-runtime \
23872 && test "$PACKAGE" != gettext-tools; }; then
23873 gt_use_preinstalled_gnugettext=yes
23881 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23882 nls_cv_use_gnu_gettext=yes
23886 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23887 BUILD_INCLUDED_LIBINTL=yes
23888 USE_INCLUDED_LIBINTL=yes
23889 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23890 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23891 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23895 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23896 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23901 if test -n "$INTL_MACOSX_LIBS"; then
23902 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23903 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23904 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23905 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23909 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23910 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23912 cat >>confdefs.h <<\_ACEOF
23913 #define ENABLE_NLS 1
23921 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23922 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23923 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23924 echo "${ECHO_T}$USE_NLS" >&6; }
23925 if test "$USE_NLS" = "yes"; then
23926 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23927 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23928 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23929 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23930 gt_source="external libintl"
23935 gt_source="included intl directory"
23937 { echo "$as_me:$LINENO: result: $gt_source" >&5
23938 echo "${ECHO_T}$gt_source" >&6; }
23941 if test "$USE_NLS" = "yes"; then
23943 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23944 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23945 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23946 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23947 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23948 echo "${ECHO_T}$LIBINTL" >&6; }
23950 for element in $INCINTL; do
23952 for x in $CPPFLAGS; do
23954 acl_save_prefix="$prefix"
23955 prefix="$acl_final_prefix"
23956 acl_save_exec_prefix="$exec_prefix"
23957 exec_prefix="$acl_final_exec_prefix"
23959 exec_prefix="$acl_save_exec_prefix"
23960 prefix="$acl_save_prefix"
23962 if test "X$x" = "X$element"; then
23967 if test -z "$haveit"; then
23968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23975 cat >>confdefs.h <<\_ACEOF
23976 #define HAVE_GETTEXT 1
23980 cat >>confdefs.h <<\_ACEOF
23981 #define HAVE_DCGETTEXT 1
23990 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23991 BUILD_INCLUDED_LIBINTL=yes
23998 nls_cv_header_intl=
23999 nls_cv_header_libgt=
24011 if test "$USE_INCLUDED_LIBINTL" = yes; then
24012 INTLOBJS="\$(GETTOBJS)"
24016 INTL_LIBTOOL_SUFFIX_PREFIX=
24020 INTLLIBS="$LIBINTL"
24032 support_postgresql=no
24034 support_smartalloc=yes
24035 support_readline=yes
24039 support_wx_console=no
24040 support_tray_monitor=no
24045 support_static_tools=no
24046 support_static_fd=no
24047 support_static_sd=no
24048 support_static_dir=no
24049 support_static_cons=no
24051 build_client_only=no
24060 # Check whether --enable-gnome was given.
24061 if test "${enable_gnome+set}" = set; then
24062 enableval=$enable_gnome;
24063 if test x$enableval = xyes; then
24072 if test x$support_gnome = xyes; then
24073 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24074 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24075 { (exit 1); exit 1; }; }
24076 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24077 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24078 { (exit 1); exit 1; }; }
24080 # AC_SUBST(GNOME_DIR)
24082 # Check whether --enable-bat was given.
24083 if test "${enable_bat+set}" = set; then
24084 enableval=$enable_bat;
24085 if test x$enableval = xyes; then
24087 cat >>confdefs.h <<\_ACEOF
24099 if test x$support_bat = xyes; then
24100 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24102 if test $pkg = 0; then
24103 BAT_DIR=src/qt-console
24105 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24106 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24107 { (exit 1); exit 1; }; }
24117 if test x$support_bat = xyes; then
24118 { echo "$as_me:$LINENO: checking for qwt support" >&5
24119 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24121 # Check whether --with-qwt was given.
24122 if test "${with_qwt+set}" = set; then
24124 case "$with_qwt" in
24129 if test -f ${with_qwt}/include/qwt.h; then
24130 QWT_INC="${with_qwt}/include"
24131 QWT_LDFLAGS="-L${with_qwt}/lib"
24142 if test $no_qwt = no; then
24143 if test x$QWT_INC = x; then
24144 for root in /usr /usr/local; do
24145 for ver in qwt qwt5 qwt-qt4; do
24146 if test -f ${root}/include/${ver}/qwt.h; then
24147 QWT_INC="${root}/include/${ver}"
24148 if test -d ${root}/lib64/; then
24149 QWT_LDFLAGS="-L${root}/lib64"
24150 elif test -d ${root}/lib/64/; then
24151 QWT_LDFLAGS="-L${root}/64"
24153 QWT_LDFLAGS="-L${root}/lib"
24164 if test x$QWT_INC = x; then
24165 { echo "$as_me:$LINENO: result: no" >&5
24166 echo "${ECHO_T}no" >&6; }
24169 cat >>confdefs.h <<\_ACEOF
24173 { echo "$as_me:$LINENO: result: yes" >&5
24174 echo "${ECHO_T}yes" >&6; }
24184 # Check whether --enable-bwx-console was given.
24185 if test "${enable_bwx_console+set}" = set; then
24186 enableval=$enable_bwx_console;
24187 if test x$enableval = xyes; then
24188 support_wx_console=yes
24196 if test x$support_wx_console = xyes; then
24197 abc=`$WXCONFIG $WXFLAGS --cppflags`
24199 if test $pkg = 0; then
24200 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24201 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24202 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24206 WX_DIR="src/wx-console"
24209 echo "wx-config program not found. bwx-console disabled."
24211 support_wx_console=no
24216 # Check whether --enable-tray-monitor was given.
24217 if test "${enable_tray_monitor+set}" = set; then
24218 enableval=$enable_tray_monitor;
24219 if test x$enableval = xyes; then
24220 support_tray_monitor=yes
24228 if test x$support_tray_monitor = xyes; then
24229 abc=`$PKGCONFIG --exists gtk+-2.0`
24231 if test $pkg = 0; then
24232 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24233 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24236 TRAY_MONITOR_DIR=src/tray-monitor
24237 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24239 if test $pkg = 0; then
24241 cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_GTK_2_4 1
24250 # Check whether --enable-smartalloc was given.
24251 if test "${enable_smartalloc+set}" = set; then
24252 enableval=$enable_smartalloc;
24253 if test x$enableval = xno; then
24254 support_smartalloc=no
24261 if test x$support_smartalloc = xyes; then
24263 cat >>confdefs.h <<\_ACEOF
24264 #define SMARTALLOC 1
24269 # Check whether --enable-lockmgr was given.
24270 if test "${enable_lockmgr+set}" = set; then
24271 enableval=$enable_lockmgr;
24272 if test x$enableval = xyes; then
24273 support_lockmgr=yes
24280 if test x$support_lockmgr = xyes; then
24282 cat >>confdefs.h <<\_ACEOF
24283 #define _USE_LOCKMGR 1
24289 # Check whether --enable-static-tools was given.
24290 if test "${enable_static_tools+set}" = set; then
24291 enableval=$enable_static_tools;
24292 if test x$enableval = xyes; then
24293 if test x$use_libtool = xyes; then
24294 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24295 please rerun configure with --disable-libtool" >&5
24296 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24297 please rerun configure with --disable-libtool" >&2;}
24298 { (exit 1); exit 1; }; }
24300 support_static_tools=yes
24308 if test x$support_static_tools = xyes; then
24309 TTOOL_LDFLAGS="-static"
24313 # Check whether --enable-static-fd was given.
24314 if test "${enable_static_fd+set}" = set; then
24315 enableval=$enable_static_fd;
24316 if test x$enableval = xyes; then
24317 if test x$use_libtool = xyes; then
24318 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24319 please rerun configure with --disable-libtool" >&5
24320 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24321 please rerun configure with --disable-libtool" >&2;}
24322 { (exit 1); exit 1; }; }
24324 support_static_fd=yes
24332 if test x$support_static_fd = xyes; then
24333 STATIC_FD="static-bacula-fd"
24337 # Check whether --enable-static-sd was given.
24338 if test "${enable_static_sd+set}" = set; then
24339 enableval=$enable_static_sd;
24340 if test x$enableval = xyes; then
24341 if test x$use_libtool = xyes; then
24342 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24343 please rerun configure with --disable-libtool" >&5
24344 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24345 please rerun configure with --disable-libtool" >&2;}
24346 { (exit 1); exit 1; }; }
24348 support_static_sd=yes
24356 if test x$support_static_sd = xyes; then
24357 STATIC_SD="static-bacula-sd"
24361 # Check whether --enable-static-dir was given.
24362 if test "${enable_static_dir+set}" = set; then
24363 enableval=$enable_static_dir;
24364 if test x$enableval = xyes; then
24365 if test x$use_libtool = xyes; then
24366 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24367 please rerun configure with --disable-libtool" >&5
24368 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24369 please rerun configure with --disable-libtool" >&2;}
24370 { (exit 1); exit 1; }; }
24372 support_static_dir=yes
24380 if test x$support_static_dir = xyes; then
24381 STATIC_DIR="static-bacula-dir"
24385 # Check whether --enable-static-cons was given.
24386 if test "${enable_static_cons+set}" = set; then
24387 enableval=$enable_static_cons;
24388 if test x$enableval = xyes; then
24389 if test x$use_libtool = xyes; then
24390 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24391 please rerun configure with --disable-libtool" >&5
24392 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24393 please rerun configure with --disable-libtool" >&2;}
24394 { (exit 1); exit 1; }; }
24396 support_static_cons=yes
24406 if test x$support_static_cons = xyes; then
24407 STATIC_CONS="static-bconsole"
24408 STATIC_GNOME_CONS="static-bgnome-console"
24409 STATIC_WX_CONS="static-bwx-console"
24415 # Check whether --enable-client-only was given.
24416 if test "${enable_client_only+set}" = set; then
24417 enableval=$enable_client_only;
24418 if test x$enableval = xyes; then
24419 build_client_only=yes
24427 if test x$build_client_only = xno; then
24434 # Check whether --enable-build-dird was given.
24435 if test "${enable_build_dird+set}" = set; then
24436 enableval=$enable_build_dird;
24437 if test x$enableval = xno; then
24444 if test x$build_dird = xyes; then
24445 DIRD_DIR="src/dird"
24446 DIR_TOOLS="DIRTOOLS"
24449 DIR_TOOLS="NODIRTOOLS"
24454 # Check whether --enable-build-stored was given.
24455 if test "${enable_build_stored+set}" = set; then
24456 enableval=$enable_build_stored;
24457 if test x$enableval = xno; then
24464 if test x$build_stored = xyes; then
24465 STORED_DIR="src/stored"
24471 # Check whether --enable-conio was given.
24472 if test "${enable_conio+set}" = set; then
24473 enableval=$enable_conio;
24474 if test x$enableval = xno; then
24484 # Check whether --enable-ipv6 was given.
24485 if test "${enable_ipv6+set}" = set; then
24486 enableval=$enable_ipv6;
24487 if test x$enableval = xno; then
24495 if test x$support_ipv6 = xyes; then
24496 cat >conftest.$ac_ext <<_ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h. */
24502 #include <sys/types.h>
24503 #include <sys/socket.h>
24504 #include <netinet/in.h>
24508 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24513 rm -f conftest.$ac_objext conftest$ac_exeext
24514 if { (ac_try="$ac_link"
24515 case "(($ac_try" in
24516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517 *) ac_try_echo=$ac_try;;
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_link") 2>conftest.er1
24522 grep -v '^ *+' conftest.er1 >conftest.err
24524 cat conftest.err >&5
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_cxx_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest$ac_exeext &&
24530 $as_test_x conftest$ac_exeext; then
24533 echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24540 conftest$ac_exeext conftest.$ac_ext
24543 if test x$support_ipv6 = xyes; then
24545 cat >>confdefs.h <<\_ACEOF
24546 #define HAVE_IPV6 1
24552 if test x$support_conio = xyes; then
24553 if test "${ac_cv_header_termcap_h+set}" = set; then
24554 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24555 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24556 if test "${ac_cv_header_termcap_h+set}" = set; then
24557 echo $ECHO_N "(cached) $ECHO_C" >&6
24559 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24560 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24562 # Is the header compilable?
24563 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24564 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24565 cat >conftest.$ac_ext <<_ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h. */
24571 $ac_includes_default
24572 #include <termcap.h>
24574 rm -f conftest.$ac_objext
24575 if { (ac_try="$ac_compile"
24576 case "(($ac_try" in
24577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581 (eval "$ac_compile") 2>conftest.er1
24583 grep -v '^ *+' conftest.er1 >conftest.err
24585 cat conftest.err >&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } && {
24588 test -z "$ac_cxx_werror_flag" ||
24589 test ! -s conftest.err
24590 } && test -s conftest.$ac_objext; then
24591 ac_header_compiler=yes
24593 echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24596 ac_header_compiler=no
24599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24601 echo "${ECHO_T}$ac_header_compiler" >&6; }
24603 # Is the header present?
24604 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24605 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24606 cat >conftest.$ac_ext <<_ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 #include <termcap.h>
24614 if { (ac_try="$ac_cpp conftest.$ac_ext"
24615 case "(($ac_try" in
24616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24617 *) ac_try_echo=$ac_try;;
24619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24622 grep -v '^ *+' conftest.er1 >conftest.err
24624 cat conftest.err >&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } >/dev/null && {
24627 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24628 test ! -s conftest.err
24630 ac_header_preproc=yes
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24635 ac_header_preproc=no
24638 rm -f conftest.err conftest.$ac_ext
24639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24640 echo "${ECHO_T}$ac_header_preproc" >&6; }
24642 # So? What about this header?
24643 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24645 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24646 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24647 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24648 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24649 ac_header_preproc=yes
24652 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24653 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24654 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24655 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24656 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24657 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24658 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24659 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24660 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24661 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24662 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24663 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24667 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24668 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24669 if test "${ac_cv_header_termcap_h+set}" = set; then
24670 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 ac_cv_header_termcap_h=$ac_header_preproc
24674 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24675 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24678 if test $ac_cv_header_termcap_h = yes; then
24679 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24680 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24681 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24682 echo $ECHO_N "(cached) $ECHO_C" >&6
24684 ac_check_lib_save_LIBS=$LIBS
24685 LIBS="-ltermcap $LIBS"
24686 cat >conftest.$ac_ext <<_ACEOF
24689 cat confdefs.h >>conftest.$ac_ext
24690 cat >>conftest.$ac_ext <<_ACEOF
24691 /* end confdefs.h. */
24693 /* Override any GCC internal prototype to avoid an error.
24694 Use char because int might match the return type of a GCC
24695 builtin and then its argument prototype would still apply. */
24708 rm -f conftest.$ac_objext conftest$ac_exeext
24709 if { (ac_try="$ac_link"
24710 case "(($ac_try" in
24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712 *) ac_try_echo=$ac_try;;
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715 (eval "$ac_link") 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } && {
24722 test -z "$ac_cxx_werror_flag" ||
24723 test ! -s conftest.err
24724 } && test -s conftest$ac_exeext &&
24725 $as_test_x conftest$ac_exeext; then
24726 ac_cv_lib_termcap_tgetent=yes
24728 echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24731 ac_cv_lib_termcap_tgetent=no
24734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24735 conftest$ac_exeext conftest.$ac_ext
24736 LIBS=$ac_check_lib_save_LIBS
24738 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24739 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24740 if test $ac_cv_lib_termcap_tgetent = yes; then
24741 CONS_LIBS="-ltermcap"
24745 support_readline=no
24747 cat >>confdefs.h <<\_ACEOF
24748 #define HAVE_CONIO 1
24753 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24754 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24755 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24758 ac_check_lib_save_LIBS=$LIBS
24759 LIBS="-lncurses $LIBS"
24760 cat >conftest.$ac_ext <<_ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h. */
24767 /* Override any GCC internal prototype to avoid an error.
24768 Use char because int might match the return type of a GCC
24769 builtin and then its argument prototype would still apply. */
24782 rm -f conftest.$ac_objext conftest$ac_exeext
24783 if { (ac_try="$ac_link"
24784 case "(($ac_try" in
24785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24786 *) ac_try_echo=$ac_try;;
24788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24789 (eval "$ac_link") 2>conftest.er1
24791 grep -v '^ *+' conftest.er1 >conftest.err
24793 cat conftest.err >&5
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); } && {
24796 test -z "$ac_cxx_werror_flag" ||
24797 test ! -s conftest.err
24798 } && test -s conftest$ac_exeext &&
24799 $as_test_x conftest$ac_exeext; then
24800 ac_cv_lib_ncurses_tgetent=yes
24802 echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24805 ac_cv_lib_ncurses_tgetent=no
24808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24809 conftest$ac_exeext conftest.$ac_ext
24810 LIBS=$ac_check_lib_save_LIBS
24812 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24813 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24814 if test $ac_cv_lib_ncurses_tgetent = yes; then
24815 CONS_LIBS="-lncurses"
24819 support_readline=no
24821 cat >>confdefs.h <<\_ACEOF
24822 #define HAVE_CONIO 1
24835 for ac_header in curses.h
24837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24842 echo $ECHO_N "(cached) $ECHO_C" >&6
24844 ac_res=`eval echo '${'$as_ac_Header'}'`
24845 { echo "$as_me:$LINENO: result: $ac_res" >&5
24846 echo "${ECHO_T}$ac_res" >&6; }
24848 # Is the header compilable?
24849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24851 cat >conftest.$ac_ext <<_ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24857 $ac_includes_default
24858 #include <$ac_header>
24860 rm -f conftest.$ac_objext
24861 if { (ac_try="$ac_compile"
24862 case "(($ac_try" in
24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864 *) ac_try_echo=$ac_try;;
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867 (eval "$ac_compile") 2>conftest.er1
24869 grep -v '^ *+' conftest.er1 >conftest.err
24871 cat conftest.err >&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && {
24874 test -z "$ac_cxx_werror_flag" ||
24875 test ! -s conftest.err
24876 } && test -s conftest.$ac_objext; then
24877 ac_header_compiler=yes
24879 echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 ac_header_compiler=no
24885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24887 echo "${ECHO_T}$ac_header_compiler" >&6; }
24889 # Is the header present?
24890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h. */
24898 #include <$ac_header>
24900 if { (ac_try="$ac_cpp conftest.$ac_ext"
24901 case "(($ac_try" in
24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24908 grep -v '^ *+' conftest.er1 >conftest.err
24910 cat conftest.err >&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } >/dev/null && {
24913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24914 test ! -s conftest.err
24916 ac_header_preproc=yes
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ac_header_preproc=no
24924 rm -f conftest.err conftest.$ac_ext
24925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24926 echo "${ECHO_T}$ac_header_preproc" >&6; }
24928 # So? What about this header?
24929 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24935 ac_header_preproc=yes
24938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24956 echo $ECHO_N "(cached) $ECHO_C" >&6
24958 eval "$as_ac_Header=\$ac_header_preproc"
24960 ac_res=`eval echo '${'$as_ac_Header'}'`
24961 { echo "$as_me:$LINENO: result: $ac_res" >&5
24962 echo "${ECHO_T}$ac_res" >&6; }
24965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24966 cat >>confdefs.h <<_ACEOF
24967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24974 { echo "$as_me:$LINENO: checking for term.h" >&5
24975 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24976 if test "${ac_cv_header_term_h+set}" = set; then
24977 echo $ECHO_N "(cached) $ECHO_C" >&6
24979 cat >conftest.$ac_ext <<_ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h. */
24986 #include <curses.h>
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_compile") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_cxx_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest.$ac_objext; then
25009 ac_cv_header_term_h=yes
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ac_cv_header_term_h=no
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25020 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25021 if test $ac_cv_header_term_h = yes; then
25022 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25023 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25024 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 ac_check_lib_save_LIBS=$LIBS
25028 LIBS="-lcurses $LIBS"
25029 cat >conftest.$ac_ext <<_ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25036 /* Override any GCC internal prototype to avoid an error.
25037 Use char because int might match the return type of a GCC
25038 builtin and then its argument prototype would still apply. */
25051 rm -f conftest.$ac_objext conftest$ac_exeext
25052 if { (ac_try="$ac_link"
25053 case "(($ac_try" in
25054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25055 *) ac_try_echo=$ac_try;;
25057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25058 (eval "$ac_link") 2>conftest.er1
25060 grep -v '^ *+' conftest.er1 >conftest.err
25062 cat conftest.err >&5
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); } && {
25065 test -z "$ac_cxx_werror_flag" ||
25066 test ! -s conftest.err
25067 } && test -s conftest$ac_exeext &&
25068 $as_test_x conftest$ac_exeext; then
25069 ac_cv_lib_curses_tgetent=yes
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25074 ac_cv_lib_curses_tgetent=no
25077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25078 conftest$ac_exeext conftest.$ac_ext
25079 LIBS=$ac_check_lib_save_LIBS
25081 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25082 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25083 if test $ac_cv_lib_curses_tgetent = yes; then
25084 CONS_LIBS="-lcurses"
25088 support_readline=no
25090 cat >>confdefs.h <<\_ACEOF
25091 #define HAVE_CONIO 1
25099 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25110 # Check whether --enable-readline was given.
25111 if test "${enable_readline+set}" = set; then
25112 enableval=$enable_readline;
25113 if test x$enableval = xno; then
25114 support_readline=no
25123 if test x$support_readline = xyes; then
25125 # Check whether --with-readline was given.
25126 if test "${with_readline+set}" = set; then
25127 withval=$with_readline;
25128 case "$with_readline" in
25133 if test -f ${with_readline}/readline.h; then
25134 CONS_INC="-I${with_readline}"
25135 CONS_LDFLAGS="-L$with_readline"
25136 elif test -f ${with_readline}/include/readline/readline.h; then
25137 CONS_INC="-I${with_readline}/include/readline"
25138 CONS_LDFLAGS="-L${with_readline}/lib"
25139 with_readline="${with_readline}/include/readline"
25141 with_readline="/usr/include/readline"
25144 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25146 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25147 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25151 ac_res=`eval echo '${'$as_ac_Header'}'`
25152 { echo "$as_me:$LINENO: result: $ac_res" >&5
25153 echo "${ECHO_T}$ac_res" >&6; }
25155 # Is the header compilable?
25156 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25157 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25158 cat >conftest.$ac_ext <<_ACEOF
25161 cat confdefs.h >>conftest.$ac_ext
25162 cat >>conftest.$ac_ext <<_ACEOF
25163 /* end confdefs.h. */
25164 $ac_includes_default
25165 #include <${with_readline}/readline.h>
25167 rm -f conftest.$ac_objext
25168 if { (ac_try="$ac_compile"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174 (eval "$ac_compile") 2>conftest.er1
25176 grep -v '^ *+' conftest.er1 >conftest.err
25178 cat conftest.err >&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } && {
25181 test -z "$ac_cxx_werror_flag" ||
25182 test ! -s conftest.err
25183 } && test -s conftest.$ac_objext; then
25184 ac_header_compiler=yes
25186 echo "$as_me: failed program was:" >&5
25187 sed 's/^/| /' conftest.$ac_ext >&5
25189 ac_header_compiler=no
25192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25194 echo "${ECHO_T}$ac_header_compiler" >&6; }
25196 # Is the header present?
25197 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25198 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25199 cat >conftest.$ac_ext <<_ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h. */
25205 #include <${with_readline}/readline.h>
25207 if { (ac_try="$ac_cpp conftest.$ac_ext"
25208 case "(($ac_try" in
25209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210 *) ac_try_echo=$ac_try;;
25212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25215 grep -v '^ *+' conftest.er1 >conftest.err
25217 cat conftest.err >&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } >/dev/null && {
25220 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25221 test ! -s conftest.err
25223 ac_header_preproc=yes
25225 echo "$as_me: failed program was:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25228 ac_header_preproc=no
25231 rm -f conftest.err conftest.$ac_ext
25232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25233 echo "${ECHO_T}$ac_header_preproc" >&6; }
25235 # So? What about this header?
25236 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25238 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25242 ac_header_preproc=yes
25245 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25246 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25247 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25248 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25249 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25250 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25251 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25252 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25254 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25256 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25260 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25261 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25263 echo $ECHO_N "(cached) $ECHO_C" >&6
25265 eval "$as_ac_Header=\$ac_header_preproc"
25267 ac_res=`eval echo '${'$as_ac_Header'}'`
25268 { echo "$as_me:$LINENO: result: $ac_res" >&5
25269 echo "${ECHO_T}$ac_res" >&6; }
25272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25275 cat >>confdefs.h <<\_ACEOF
25276 #define HAVE_READLINE 1
25279 CONS_LIBS="-lreadline -lhistory -ltermcap"
25285 echo "readline.h not found. readline turned off ..."
25297 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25298 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25299 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25300 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
25303 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25304 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25306 # Is the header compilable?
25307 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25308 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25309 cat >conftest.$ac_ext <<_ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h. */
25315 $ac_includes_default
25316 #include </usr/include/readline/readline.h>
25318 rm -f conftest.$ac_objext
25319 if { (ac_try="$ac_compile"
25320 case "(($ac_try" in
25321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322 *) ac_try_echo=$ac_try;;
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325 (eval "$ac_compile") 2>conftest.er1
25327 grep -v '^ *+' conftest.er1 >conftest.err
25329 cat conftest.err >&5
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } && {
25332 test -z "$ac_cxx_werror_flag" ||
25333 test ! -s conftest.err
25334 } && test -s conftest.$ac_objext; then
25335 ac_header_compiler=yes
25337 echo "$as_me: failed program was:" >&5
25338 sed 's/^/| /' conftest.$ac_ext >&5
25340 ac_header_compiler=no
25343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25345 echo "${ECHO_T}$ac_header_compiler" >&6; }
25347 # Is the header present?
25348 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25349 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25350 cat >conftest.$ac_ext <<_ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25356 #include </usr/include/readline/readline.h>
25358 if { (ac_try="$ac_cpp conftest.$ac_ext"
25359 case "(($ac_try" in
25360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361 *) ac_try_echo=$ac_try;;
25363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25366 grep -v '^ *+' conftest.er1 >conftest.err
25368 cat conftest.err >&5
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } >/dev/null && {
25371 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25372 test ! -s conftest.err
25374 ac_header_preproc=yes
25376 echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25379 ac_header_preproc=no
25382 rm -f conftest.err conftest.$ac_ext
25383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25384 echo "${ECHO_T}$ac_header_preproc" >&6; }
25386 # So? What about this header?
25387 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25389 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25393 ac_header_preproc=yes
25396 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25397 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25398 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25399 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25400 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25401 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25402 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25403 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25404 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25405 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25406 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25407 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25411 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25412 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25413 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25414 echo $ECHO_N "(cached) $ECHO_C" >&6
25416 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25418 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25419 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25422 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25425 cat >>confdefs.h <<\_ACEOF
25426 #define HAVE_READLINE 1
25430 CONS_INC="-I/usr/include/readline"
25431 CONS_LIBS="-lreadline -ltermcap"
25435 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25437 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25438 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25442 ac_res=`eval echo '${'$as_ac_Header'}'`
25443 { echo "$as_me:$LINENO: result: $ac_res" >&5
25444 echo "${ECHO_T}$ac_res" >&6; }
25446 # Is the header compilable?
25447 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25448 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25449 cat >conftest.$ac_ext <<_ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25455 $ac_includes_default
25456 #include <${TOP_DIR}/depkgs/readline/readline.h>
25458 rm -f conftest.$ac_objext
25459 if { (ac_try="$ac_compile"
25460 case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_compile") 2>conftest.er1
25467 grep -v '^ *+' conftest.er1 >conftest.err
25469 cat conftest.err >&5
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } && {
25472 test -z "$ac_cxx_werror_flag" ||
25473 test ! -s conftest.err
25474 } && test -s conftest.$ac_objext; then
25475 ac_header_compiler=yes
25477 echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25480 ac_header_compiler=no
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25485 echo "${ECHO_T}$ac_header_compiler" >&6; }
25487 # Is the header present?
25488 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25489 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25490 cat >conftest.$ac_ext <<_ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h. */
25496 #include <${TOP_DIR}/depkgs/readline/readline.h>
25498 if { (ac_try="$ac_cpp conftest.$ac_ext"
25499 case "(($ac_try" in
25500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501 *) ac_try_echo=$ac_try;;
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25506 grep -v '^ *+' conftest.er1 >conftest.err
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } >/dev/null && {
25511 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25512 test ! -s conftest.err
25514 ac_header_preproc=yes
25516 echo "$as_me: failed program was:" >&5
25517 sed 's/^/| /' conftest.$ac_ext >&5
25519 ac_header_preproc=no
25522 rm -f conftest.err conftest.$ac_ext
25523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25524 echo "${ECHO_T}$ac_header_preproc" >&6; }
25526 # So? What about this header?
25527 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25529 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25533 ac_header_preproc=yes
25536 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25537 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25538 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25539 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25540 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25541 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25542 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25543 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25544 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25545 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25546 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25547 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25551 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25552 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
25556 eval "$as_ac_Header=\$ac_header_preproc"
25558 ac_res=`eval echo '${'$as_ac_Header'}'`
25559 { echo "$as_me:$LINENO: result: $ac_res" >&5
25560 echo "${ECHO_T}$ac_res" >&6; }
25563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25566 cat >>confdefs.h <<\_ACEOF
25567 #define HAVE_READLINE 1
25571 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25572 CONS_LIBS="-lreadline -lhistory -ltermcap"
25573 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25574 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25579 echo "readline.h not found. readline turned off ..."
25606 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25607 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25608 if test "${ac_cv_header_stat_broken+set}" = set; then
25609 echo $ECHO_N "(cached) $ECHO_C" >&6
25611 cat >conftest.$ac_ext <<_ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h. */
25617 #include <sys/types.h>
25618 #include <sys/stat.h>
25620 #if defined S_ISBLK && defined S_IFDIR
25621 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25624 #if defined S_ISBLK && defined S_IFCHR
25625 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25628 #if defined S_ISLNK && defined S_IFREG
25629 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25632 #if defined S_ISSOCK && defined S_IFREG
25633 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25637 rm -f conftest.$ac_objext
25638 if { (ac_try="$ac_compile"
25639 case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25646 grep -v '^ *+' conftest.er1 >conftest.err
25648 cat conftest.err >&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_cxx_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 ac_cv_header_stat_broken=no
25656 echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25659 ac_cv_header_stat_broken=yes
25662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25664 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25665 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25666 if test $ac_cv_header_stat_broken = yes; then
25668 cat >>confdefs.h <<\_ACEOF
25669 #define STAT_MACROS_BROKEN 1
25679 ac_header_dirent=no
25680 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25681 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25682 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25683 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25687 cat >conftest.$ac_ext <<_ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25693 #include <sys/types.h>
25705 rm -f conftest.$ac_objext
25706 if { (ac_try="$ac_compile"
25707 case "(($ac_try" in
25708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709 *) ac_try_echo=$ac_try;;
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712 (eval "$ac_compile") 2>conftest.er1
25714 grep -v '^ *+' conftest.er1 >conftest.err
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } && {
25719 test -z "$ac_cxx_werror_flag" ||
25720 test ! -s conftest.err
25721 } && test -s conftest.$ac_objext; then
25722 eval "$as_ac_Header=yes"
25724 echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25727 eval "$as_ac_Header=no"
25730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732 ac_res=`eval echo '${'$as_ac_Header'}'`
25733 { echo "$as_me:$LINENO: result: $ac_res" >&5
25734 echo "${ECHO_T}$ac_res" >&6; }
25735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25736 cat >>confdefs.h <<_ACEOF
25737 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25740 ac_header_dirent=$ac_hdr; break
25744 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25745 if test $ac_header_dirent = dirent.h; then
25746 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25748 if test "${ac_cv_search_opendir+set}" = set; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25751 ac_func_search_save_LIBS=$LIBS
25752 cat >conftest.$ac_ext <<_ACEOF
25755 cat confdefs.h >>conftest.$ac_ext
25756 cat >>conftest.$ac_ext <<_ACEOF
25757 /* end confdefs.h. */
25759 /* Override any GCC internal prototype to avoid an error.
25760 Use char because int might match the return type of a GCC
25761 builtin and then its argument prototype would still apply. */
25774 for ac_lib in '' dir; do
25775 if test -z "$ac_lib"; then
25776 ac_res="none required"
25779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25781 rm -f conftest.$ac_objext conftest$ac_exeext
25782 if { (ac_try="$ac_link"
25783 case "(($ac_try" in
25784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25785 *) ac_try_echo=$ac_try;;
25787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25788 (eval "$ac_link") 2>conftest.er1
25790 grep -v '^ *+' conftest.er1 >conftest.err
25792 cat conftest.err >&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); } && {
25795 test -z "$ac_cxx_werror_flag" ||
25796 test ! -s conftest.err
25797 } && test -s conftest$ac_exeext &&
25798 $as_test_x conftest$ac_exeext; then
25799 ac_cv_search_opendir=$ac_res
25801 echo "$as_me: failed program was:" >&5
25802 sed 's/^/| /' conftest.$ac_ext >&5
25807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25809 if test "${ac_cv_search_opendir+set}" = set; then
25813 if test "${ac_cv_search_opendir+set}" = set; then
25816 ac_cv_search_opendir=no
25818 rm conftest.$ac_ext
25819 LIBS=$ac_func_search_save_LIBS
25821 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25822 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25823 ac_res=$ac_cv_search_opendir
25824 if test "$ac_res" != no; then
25825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25830 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25831 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25832 if test "${ac_cv_search_opendir+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 ac_func_search_save_LIBS=$LIBS
25836 cat >conftest.$ac_ext <<_ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h. */
25843 /* Override any GCC internal prototype to avoid an error.
25844 Use char because int might match the return type of a GCC
25845 builtin and then its argument prototype would still apply. */
25858 for ac_lib in '' x; do
25859 if test -z "$ac_lib"; then
25860 ac_res="none required"
25863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25865 rm -f conftest.$ac_objext conftest$ac_exeext
25866 if { (ac_try="$ac_link"
25867 case "(($ac_try" in
25868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869 *) ac_try_echo=$ac_try;;
25871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872 (eval "$ac_link") 2>conftest.er1
25874 grep -v '^ *+' conftest.er1 >conftest.err
25876 cat conftest.err >&5
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } && {
25879 test -z "$ac_cxx_werror_flag" ||
25880 test ! -s conftest.err
25881 } && test -s conftest$ac_exeext &&
25882 $as_test_x conftest$ac_exeext; then
25883 ac_cv_search_opendir=$ac_res
25885 echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25893 if test "${ac_cv_search_opendir+set}" = set; then
25897 if test "${ac_cv_search_opendir+set}" = set; then
25900 ac_cv_search_opendir=no
25902 rm conftest.$ac_ext
25903 LIBS=$ac_func_search_save_LIBS
25905 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25906 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25907 ac_res=$ac_cv_search_opendir
25908 if test "$ac_res" != no; then
25909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25922 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25928 echo $ECHO_N "(cached) $ECHO_C" >&6
25930 cat >conftest.$ac_ext <<_ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h. */
25936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25938 #define $ac_func innocuous_$ac_func
25940 /* System header to define __stub macros and hopefully few prototypes,
25941 which can conflict with char $ac_func (); below.
25942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25943 <limits.h> exists even on freestanding compilers. */
25946 # include <limits.h>
25948 # include <assert.h>
25953 /* Override any GCC internal prototype to avoid an error.
25954 Use char because int might match the return type of a GCC
25955 builtin and then its argument prototype would still apply. */
25960 /* The GNU C library defines this for functions which it implements
25961 to always fail with ENOSYS. Some functions are actually named
25962 something starting with __ and the normal name is an alias. */
25963 #if defined __stub_$ac_func || defined __stub___$ac_func
25970 return $ac_func ();
25975 rm -f conftest.$ac_objext conftest$ac_exeext
25976 if { (ac_try="$ac_link"
25977 case "(($ac_try" in
25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979 *) ac_try_echo=$ac_try;;
25981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25982 (eval "$ac_link") 2>conftest.er1
25984 grep -v '^ *+' conftest.er1 >conftest.err
25986 cat conftest.err >&5
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } && {
25989 test -z "$ac_cxx_werror_flag" ||
25990 test ! -s conftest.err
25991 } && test -s conftest$ac_exeext &&
25992 $as_test_x conftest$ac_exeext; then
25993 eval "$as_ac_var=yes"
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25998 eval "$as_ac_var=no"
26001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26002 conftest$ac_exeext conftest.$ac_ext
26004 ac_res=`eval echo '${'$as_ac_var'}'`
26005 { echo "$as_me:$LINENO: result: $ac_res" >&5
26006 echo "${ECHO_T}$ac_res" >&6; }
26007 if test `eval echo '${'$as_ac_var'}'` = yes; then
26008 cat >>confdefs.h <<_ACEOF
26009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26017 for ac_func in nanosleep nl_langinfo
26019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26023 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 cat >conftest.$ac_ext <<_ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h. */
26031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26033 #define $ac_func innocuous_$ac_func
26035 /* System header to define __stub macros and hopefully few prototypes,
26036 which can conflict with char $ac_func (); below.
26037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26038 <limits.h> exists even on freestanding compilers. */
26041 # include <limits.h>
26043 # include <assert.h>
26048 /* Override any GCC internal prototype to avoid an error.
26049 Use char because int might match the return type of a GCC
26050 builtin and then its argument prototype would still apply. */
26055 /* The GNU C library defines this for functions which it implements
26056 to always fail with ENOSYS. Some functions are actually named
26057 something starting with __ and the normal name is an alias. */
26058 #if defined __stub_$ac_func || defined __stub___$ac_func
26065 return $ac_func ();
26070 rm -f conftest.$ac_objext conftest$ac_exeext
26071 if { (ac_try="$ac_link"
26072 case "(($ac_try" in
26073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074 *) ac_try_echo=$ac_try;;
26076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26077 (eval "$ac_link") 2>conftest.er1
26079 grep -v '^ *+' conftest.er1 >conftest.err
26081 cat conftest.err >&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } && {
26084 test -z "$ac_cxx_werror_flag" ||
26085 test ! -s conftest.err
26086 } && test -s conftest$ac_exeext &&
26087 $as_test_x conftest$ac_exeext; then
26088 eval "$as_ac_var=yes"
26090 echo "$as_me: failed program was:" >&5
26091 sed 's/^/| /' conftest.$ac_ext >&5
26093 eval "$as_ac_var=no"
26096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26097 conftest$ac_exeext conftest.$ac_ext
26099 ac_res=`eval echo '${'$as_ac_var'}'`
26100 { echo "$as_me:$LINENO: result: $ac_res" >&5
26101 echo "${ECHO_T}$ac_res" >&6; }
26102 if test `eval echo '${'$as_ac_var'}'` = yes; then
26103 cat >>confdefs.h <<_ACEOF
26104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26111 for ac_header in varargs.h
26113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26118 echo $ECHO_N "(cached) $ECHO_C" >&6
26120 ac_res=`eval echo '${'$as_ac_Header'}'`
26121 { echo "$as_me:$LINENO: result: $ac_res" >&5
26122 echo "${ECHO_T}$ac_res" >&6; }
26124 # Is the header compilable?
26125 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26127 cat >conftest.$ac_ext <<_ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26133 $ac_includes_default
26134 #include <$ac_header>
26136 rm -f conftest.$ac_objext
26137 if { (ac_try="$ac_compile"
26138 case "(($ac_try" in
26139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26140 *) ac_try_echo=$ac_try;;
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143 (eval "$ac_compile") 2>conftest.er1
26145 grep -v '^ *+' conftest.er1 >conftest.err
26147 cat conftest.err >&5
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); } && {
26150 test -z "$ac_cxx_werror_flag" ||
26151 test ! -s conftest.err
26152 } && test -s conftest.$ac_objext; then
26153 ac_header_compiler=yes
26155 echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26158 ac_header_compiler=no
26161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26163 echo "${ECHO_T}$ac_header_compiler" >&6; }
26165 # Is the header present?
26166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26168 cat >conftest.$ac_ext <<_ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h. */
26174 #include <$ac_header>
26176 if { (ac_try="$ac_cpp conftest.$ac_ext"
26177 case "(($ac_try" in
26178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179 *) ac_try_echo=$ac_try;;
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26184 grep -v '^ *+' conftest.er1 >conftest.err
26186 cat conftest.err >&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } >/dev/null && {
26189 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26190 test ! -s conftest.err
26192 ac_header_preproc=yes
26194 echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26197 ac_header_preproc=no
26200 rm -f conftest.err conftest.$ac_ext
26201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26202 echo "${ECHO_T}$ac_header_preproc" >&6; }
26204 # So? What about this header?
26205 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26211 ac_header_preproc=yes
26214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26234 eval "$as_ac_Header=\$ac_header_preproc"
26236 ac_res=`eval echo '${'$as_ac_Header'}'`
26237 { echo "$as_me:$LINENO: result: $ac_res" >&5
26238 echo "${ECHO_T}$ac_res" >&6; }
26241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26242 cat >>confdefs.h <<_ACEOF
26243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26252 { echo "$as_me:$LINENO: checking for Python support" >&5
26253 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26255 # Check whether --with-python was given.
26256 if test "${with_python+set}" = set; then
26257 withval=$with_python;
26260 if test "$withval" != "no"; then
26261 if test "$withval" = "yes"; then
26262 if test -e /usr/bin/python-config ; then
26263 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26264 PYTHON_LIBS=`/usr/bin/python-config --libs`
26266 for python_root in /usr /usr/local /usr/sfw; do
26267 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26268 if test -f $python_root/include/${ver}/Python.h; then
26269 PYTHON_INCDIR=-I$python_root/include/${ver}
26270 if test -d $python_root/lib64/${ver}/config; then
26271 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26273 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26280 if test x$PYTHON_INCDIR = x; then
26281 if test -f $prefix/include/Python.h; then
26282 PYTHON_INCDIR=-I$prefix/include
26283 if test -d $prefix/lib64/config; then
26284 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26286 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26289 { echo "$as_me:$LINENO: result: no" >&5
26290 echo "${ECHO_T}no" >&6; }
26291 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26292 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26293 { (exit 1); exit 1; }; }
26298 if test -e $withval/bin/python-config ; then
26299 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26300 PYTHON_LIBS=`$withval/bin/python-config --libs`
26301 elif test -f $withval/Python.h; then
26302 PYTHON_INCDIR=-I$withval
26303 PYTHON_LIBS="-L$withval/config -lpython"
26304 elif test -f $withval/include/Python.h; then
26305 PYTHON_INCDIR=-I$withval/include
26306 if test -d $withval/lib64/config; then
26307 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26309 PYTHON_LIBS="-L$withval/lib/config -lpython"
26311 elif test -f $withval/include/python/Python.h; then
26312 PYTHON_INCDIR=-I$withval/include/python
26313 if test -d $withval/lib64/python/config; then
26314 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26316 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26319 { echo "$as_me:$LINENO: result: no" >&5
26320 echo "${ECHO_T}no" >&6; }
26321 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26322 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26323 { (exit 1); exit 1; }; }
26327 cat >>confdefs.h <<\_ACEOF
26328 #define HAVE_PYTHON 1
26331 { echo "$as_me:$LINENO: result: yes" >&5
26332 echo "${ECHO_T}yes" >&6; }
26334 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26335 echo "$as_me: checking for more Python libs" >&6;}
26336 saved_LIBS="$LIBS"; LIBS=
26337 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26338 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26339 if test "${ac_cv_search_shm_open+set}" = set; then
26340 echo $ECHO_N "(cached) $ECHO_C" >&6
26342 ac_func_search_save_LIBS=$LIBS
26343 cat >conftest.$ac_ext <<_ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h. */
26350 /* Override any GCC internal prototype to avoid an error.
26351 Use char because int might match the return type of a GCC
26352 builtin and then its argument prototype would still apply. */
26360 return shm_open ();
26365 for ac_lib in '' rt; do
26366 if test -z "$ac_lib"; then
26367 ac_res="none required"
26370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26372 rm -f conftest.$ac_objext conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376 *) ac_try_echo=$ac_try;;
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379 (eval "$ac_link") 2>conftest.er1
26381 grep -v '^ *+' conftest.er1 >conftest.err
26383 cat conftest.err >&5
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); } && {
26386 test -z "$ac_cxx_werror_flag" ||
26387 test ! -s conftest.err
26388 } && test -s conftest$ac_exeext &&
26389 $as_test_x conftest$ac_exeext; then
26390 ac_cv_search_shm_open=$ac_res
26392 echo "$as_me: failed program was:" >&5
26393 sed 's/^/| /' conftest.$ac_ext >&5
26398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26400 if test "${ac_cv_search_shm_open+set}" = set; then
26404 if test "${ac_cv_search_shm_open+set}" = set; then
26407 ac_cv_search_shm_open=no
26409 rm conftest.$ac_ext
26410 LIBS=$ac_func_search_save_LIBS
26412 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26413 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26414 ac_res=$ac_cv_search_shm_open
26415 if test "$ac_res" != no; then
26416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26421 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26422 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26423 if test "${ac_cv_lib_util_openpty+set}" = set; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26426 ac_check_lib_save_LIBS=$LIBS
26427 LIBS="-lutil $LIBS"
26428 cat >conftest.$ac_ext <<_ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h. */
26435 /* Override any GCC internal prototype to avoid an error.
26436 Use char because int might match the return type of a GCC
26437 builtin and then its argument prototype would still apply. */
26450 rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (ac_try="$ac_link"
26452 case "(($ac_try" in
26453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454 *) ac_try_echo=$ac_try;;
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457 (eval "$ac_link") 2>conftest.er1
26459 grep -v '^ *+' conftest.er1 >conftest.err
26461 cat conftest.err >&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } && {
26464 test -z "$ac_cxx_werror_flag" ||
26465 test ! -s conftest.err
26466 } && test -s conftest$ac_exeext &&
26467 $as_test_x conftest$ac_exeext; then
26468 ac_cv_lib_util_openpty=yes
26470 echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26473 ac_cv_lib_util_openpty=no
26476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26477 conftest$ac_exeext conftest.$ac_ext
26478 LIBS=$ac_check_lib_save_LIBS
26480 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26481 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26482 if test $ac_cv_lib_util_openpty = yes; then
26483 cat >>confdefs.h <<_ACEOF
26484 #define HAVE_LIBUTIL 1
26487 LIBS="-lutil $LIBS"
26491 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26494 { echo "$as_me:$LINENO: result: no" >&5
26495 echo "${ECHO_T}no" >&6; }
26500 { echo "$as_me:$LINENO: result: no" >&5
26501 echo "${ECHO_T}no" >&6; }
26509 { echo "$as_me:$LINENO: checking for socket" >&5
26510 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26511 if test "${ac_cv_func_socket+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26514 cat >conftest.$ac_ext <<_ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h. */
26520 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26522 #define socket innocuous_socket
26524 /* System header to define __stub macros and hopefully few prototypes,
26525 which can conflict with char socket (); below.
26526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26527 <limits.h> exists even on freestanding compilers. */
26530 # include <limits.h>
26532 # include <assert.h>
26537 /* Override any GCC internal prototype to avoid an error.
26538 Use char because int might match the return type of a GCC
26539 builtin and then its argument prototype would still apply. */
26544 /* The GNU C library defines this for functions which it implements
26545 to always fail with ENOSYS. Some functions are actually named
26546 something starting with __ and the normal name is an alias. */
26547 #if defined __stub_socket || defined __stub___socket
26559 rm -f conftest.$ac_objext conftest$ac_exeext
26560 if { (ac_try="$ac_link"
26561 case "(($ac_try" in
26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563 *) ac_try_echo=$ac_try;;
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566 (eval "$ac_link") 2>conftest.er1
26568 grep -v '^ *+' conftest.er1 >conftest.err
26570 cat conftest.err >&5
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } && {
26573 test -z "$ac_cxx_werror_flag" ||
26574 test ! -s conftest.err
26575 } && test -s conftest$ac_exeext &&
26576 $as_test_x conftest$ac_exeext; then
26577 ac_cv_func_socket=yes
26579 echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26582 ac_cv_func_socket=no
26585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26586 conftest$ac_exeext conftest.$ac_ext
26588 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26589 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26590 if test $ac_cv_func_socket = yes; then
26591 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26592 echo "${ECHO_T}using libc's socket" >&6; }
26595 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26596 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26597 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26600 ac_check_lib_save_LIBS=$LIBS
26601 LIBS="-lxnet $LIBS"
26602 cat >conftest.$ac_ext <<_ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26609 /* Override any GCC internal prototype to avoid an error.
26610 Use char because int might match the return type of a GCC
26611 builtin and then its argument prototype would still apply. */
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (ac_try="$ac_link"
26626 case "(($ac_try" in
26627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628 *) ac_try_echo=$ac_try;;
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631 (eval "$ac_link") 2>conftest.er1
26633 grep -v '^ *+' conftest.er1 >conftest.err
26635 cat conftest.err >&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } && {
26638 test -z "$ac_cxx_werror_flag" ||
26639 test ! -s conftest.err
26640 } && test -s conftest$ac_exeext &&
26641 $as_test_x conftest$ac_exeext; then
26642 ac_cv_lib_xnet_socket=yes
26644 echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26647 ac_cv_lib_xnet_socket=no
26650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26651 conftest$ac_exeext conftest.$ac_ext
26652 LIBS=$ac_check_lib_save_LIBS
26654 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26655 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26656 if test $ac_cv_lib_xnet_socket = yes; then
26657 cat >>confdefs.h <<_ACEOF
26658 #define HAVE_LIBXNET 1
26661 LIBS="-lxnet $LIBS"
26666 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26667 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26668 if test "${ac_cv_lib_socket_socket+set}" = set; then
26669 echo $ECHO_N "(cached) $ECHO_C" >&6
26671 ac_check_lib_save_LIBS=$LIBS
26672 LIBS="-lsocket $LIBS"
26673 cat >conftest.$ac_ext <<_ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26680 /* Override any GCC internal prototype to avoid an error.
26681 Use char because int might match the return type of a GCC
26682 builtin and then its argument prototype would still apply. */
26695 rm -f conftest.$ac_objext conftest$ac_exeext
26696 if { (ac_try="$ac_link"
26697 case "(($ac_try" in
26698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699 *) ac_try_echo=$ac_try;;
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702 (eval "$ac_link") 2>conftest.er1
26704 grep -v '^ *+' conftest.er1 >conftest.err
26706 cat conftest.err >&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } && {
26709 test -z "$ac_cxx_werror_flag" ||
26710 test ! -s conftest.err
26711 } && test -s conftest$ac_exeext &&
26712 $as_test_x conftest$ac_exeext; then
26713 ac_cv_lib_socket_socket=yes
26715 echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26718 ac_cv_lib_socket_socket=no
26721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26722 conftest$ac_exeext conftest.$ac_ext
26723 LIBS=$ac_check_lib_save_LIBS
26725 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26726 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26727 if test $ac_cv_lib_socket_socket = yes; then
26728 cat >>confdefs.h <<_ACEOF
26729 #define HAVE_LIBSOCKET 1
26732 LIBS="-lsocket $LIBS"
26737 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26738 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26739 if test "${ac_cv_lib_inet_socket+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26742 ac_check_lib_save_LIBS=$LIBS
26743 LIBS="-linet $LIBS"
26744 cat >conftest.$ac_ext <<_ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26751 /* Override any GCC internal prototype to avoid an error.
26752 Use char because int might match the return type of a GCC
26753 builtin and then its argument prototype would still apply. */
26766 rm -f conftest.$ac_objext conftest$ac_exeext
26767 if { (ac_try="$ac_link"
26768 case "(($ac_try" in
26769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26770 *) ac_try_echo=$ac_try;;
26772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26773 (eval "$ac_link") 2>conftest.er1
26775 grep -v '^ *+' conftest.er1 >conftest.err
26777 cat conftest.err >&5
26778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779 (exit $ac_status); } && {
26780 test -z "$ac_cxx_werror_flag" ||
26781 test ! -s conftest.err
26782 } && test -s conftest$ac_exeext &&
26783 $as_test_x conftest$ac_exeext; then
26784 ac_cv_lib_inet_socket=yes
26786 echo "$as_me: failed program was:" >&5
26787 sed 's/^/| /' conftest.$ac_ext >&5
26789 ac_cv_lib_inet_socket=no
26792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26793 conftest$ac_exeext conftest.$ac_ext
26794 LIBS=$ac_check_lib_save_LIBS
26796 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26797 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26798 if test $ac_cv_lib_inet_socket = yes; then
26799 cat >>confdefs.h <<_ACEOF
26800 #define HAVE_LIBINET 1
26803 LIBS="-linet $LIBS"
26813 # Check whether --with-tcp-wrappers was given.
26814 if test "${with_tcp_wrappers+set}" = set; then
26815 withval=$with_tcp_wrappers;
26816 if test "x$withval" != "xno" ; then
26818 LIBS="$saved_LIBS -lwrap"
26819 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26820 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26821 if test "${ac_cv_search_nanosleep+set}" = set; then
26822 echo $ECHO_N "(cached) $ECHO_C" >&6
26824 ac_func_search_save_LIBS=$LIBS
26825 cat >conftest.$ac_ext <<_ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h. */
26832 /* Override any GCC internal prototype to avoid an error.
26833 Use char because int might match the return type of a GCC
26834 builtin and then its argument prototype would still apply. */
26842 return nanosleep ();
26847 for ac_lib in '' rt; do
26848 if test -z "$ac_lib"; then
26849 ac_res="none required"
26852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26854 rm -f conftest.$ac_objext conftest$ac_exeext
26855 if { (ac_try="$ac_link"
26856 case "(($ac_try" in
26857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858 *) ac_try_echo=$ac_try;;
26860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26861 (eval "$ac_link") 2>conftest.er1
26863 grep -v '^ *+' conftest.er1 >conftest.err
26865 cat conftest.err >&5
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); } && {
26868 test -z "$ac_cxx_werror_flag" ||
26869 test ! -s conftest.err
26870 } && test -s conftest$ac_exeext &&
26871 $as_test_x conftest$ac_exeext; then
26872 ac_cv_search_nanosleep=$ac_res
26874 echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26882 if test "${ac_cv_search_nanosleep+set}" = set; then
26886 if test "${ac_cv_search_nanosleep+set}" = set; then
26889 ac_cv_search_nanosleep=no
26891 rm conftest.$ac_ext
26892 LIBS=$ac_func_search_save_LIBS
26894 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26895 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26896 ac_res=$ac_cv_search_nanosleep
26897 if test "$ac_res" != no; then
26898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26902 { echo "$as_me:$LINENO: checking for libwrap" >&5
26903 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26904 cat >conftest.$ac_ext <<_ACEOF
26907 cat confdefs.h >>conftest.$ac_ext
26908 cat >>conftest.$ac_ext <<_ACEOF
26909 /* end confdefs.h. */
26911 #include <sys/types.h>
26913 int deny_severity = 0;
26914 int allow_severity = 0;
26915 struct request_info *req;
26927 rm -f conftest.$ac_objext conftest$ac_exeext
26928 if { (ac_try="$ac_link"
26929 case "(($ac_try" in
26930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931 *) ac_try_echo=$ac_try;;
26933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26934 (eval "$ac_link") 2>conftest.er1
26936 grep -v '^ *+' conftest.er1 >conftest.err
26938 cat conftest.err >&5
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); } && {
26941 test -z "$ac_cxx_werror_flag" ||
26942 test ! -s conftest.err
26943 } && test -s conftest$ac_exeext &&
26944 $as_test_x conftest$ac_exeext; then
26946 { echo "$as_me:$LINENO: result: yes" >&5
26947 echo "${ECHO_T}yes" >&6; }
26949 cat >>confdefs.h <<\_ACEOF
26950 #define HAVE_LIBWRAP 1
26958 echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26962 LIBS="$saved_LIBS -lwrap -lnsl"
26963 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26971 #include <sys/types.h>
26973 int deny_severity = 0;
26974 int allow_severity = 0;
26975 struct request_info *req;
26987 rm -f conftest.$ac_objext conftest$ac_exeext
26988 if { (ac_try="$ac_link"
26989 case "(($ac_try" in
26990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991 *) ac_try_echo=$ac_try;;
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994 (eval "$ac_link") 2>conftest.er1
26996 grep -v '^ *+' conftest.er1 >conftest.err
26998 cat conftest.err >&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } && {
27001 test -z "$ac_cxx_werror_flag" ||
27002 test ! -s conftest.err
27003 } && test -s conftest$ac_exeext &&
27004 $as_test_x conftest$ac_exeext; then
27006 { echo "$as_me:$LINENO: result: yes" >&5
27007 echo "${ECHO_T}yes" >&6; }
27009 cat >>confdefs.h <<\_ACEOF
27010 #define HAVE_LIBWRAP 1
27018 echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27022 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27023 echo "$as_me: error: *** libwrap missing" >&2;}
27024 { (exit 1); exit 1; }; }
27029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27030 conftest$ac_exeext conftest.$ac_ext
27035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27036 conftest$ac_exeext conftest.$ac_ext
27043 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27044 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27046 # Check whether --with-openssl was given.
27047 if test "${with_openssl+set}" = set; then
27048 withval=$with_openssl;
27049 with_openssl_directory=${withval}
27055 if test "x$with_openssl_directory" != "xno"; then
27056 OPENSSL_LIBS="-lssl -lcrypto"
27059 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27061 # Make sure the $with_openssl_directory also makes sense
27063 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27064 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27065 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27069 saved_LIBS="${LIBS}"
27070 saved_CFLAGS="${CFLAGS}"
27071 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27072 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27074 cat >conftest.$ac_ext <<_ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h. */
27081 #include <openssl/ssl.h>
27087 CRYPTO_set_id_callback(NULL);
27093 rm -f conftest.$ac_objext conftest$ac_exeext
27094 if { (ac_try="$ac_link"
27095 case "(($ac_try" in
27096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097 *) ac_try_echo=$ac_try;;
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_link") 2>conftest.er1
27102 grep -v '^ *+' conftest.er1 >conftest.err
27104 cat conftest.err >&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); } && {
27107 test -z "$ac_cxx_werror_flag" ||
27108 test ! -s conftest.err
27109 } && test -s conftest$ac_exeext &&
27110 $as_test_x conftest$ac_exeext; then
27113 support_crypto="yes"
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27126 conftest$ac_exeext conftest.$ac_ext
27128 cat >conftest.$ac_ext <<_ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h. */
27135 #include <openssl/evp.h>
27147 rm -f conftest.$ac_objext conftest$ac_exeext
27148 if { (ac_try="$ac_link"
27149 case "(($ac_try" in
27150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151 *) ac_try_echo=$ac_try;;
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154 (eval "$ac_link") 2>conftest.er1
27156 grep -v '^ *+' conftest.er1 >conftest.err
27158 cat conftest.err >&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); } && {
27161 test -z "$ac_cxx_werror_flag" ||
27162 test ! -s conftest.err
27163 } && test -s conftest$ac_exeext &&
27164 $as_test_x conftest$ac_exeext; then
27166 ac_cv_openssl_sha2="yes"
27169 echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27173 ac_cv_openssl_sha2="no"
27178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27179 conftest$ac_exeext conftest.$ac_ext
27181 cat >conftest.$ac_ext <<_ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27188 #include <openssl/evp.h>
27200 rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_link") 2>conftest.er1
27209 grep -v '^ *+' conftest.er1 >conftest.err
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } && {
27214 test -z "$ac_cxx_werror_flag" ||
27215 test ! -s conftest.err
27216 } && test -s conftest$ac_exeext &&
27217 $as_test_x conftest$ac_exeext; then
27219 ac_cv_openssl_export="no"
27222 echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27226 ac_cv_openssl_export="yes"
27231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27232 conftest$ac_exeext conftest.$ac_ext
27234 LIBS="${saved_LIBS}"
27235 CFLAGS="${saved_CFLAGS}"
27237 if test "$support_tls" = "yes"; then
27239 cat >>confdefs.h <<\_ACEOF
27240 #define HAVE_OPENSSL 1
27244 cat >>confdefs.h <<\_ACEOF
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_CRYPTO 1
27255 if test "$ac_cv_openssl_sha2" = "yes"; then
27257 cat >>confdefs.h <<\_ACEOF
27258 #define HAVE_SHA2 1
27263 if test "$ac_cv_openssl_export" = "yes"; then
27265 cat >>confdefs.h <<\_ACEOF
27266 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27272 support_crypto="no"
27277 if test "$support_tls" = "no"; then
27282 { echo "$as_me:$LINENO: result: $support_tls" >&5
27283 echo "${ECHO_T}$support_tls" >&6; }
27287 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27288 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27289 if test "${ac_cv_search_dlopen+set}" = set; then
27290 echo $ECHO_N "(cached) $ECHO_C" >&6
27292 ac_func_search_save_LIBS=$LIBS
27293 cat >conftest.$ac_ext <<_ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h. */
27300 /* Override any GCC internal prototype to avoid an error.
27301 Use char because int might match the return type of a GCC
27302 builtin and then its argument prototype would still apply. */
27315 for ac_lib in '' dl; do
27316 if test -z "$ac_lib"; then
27317 ac_res="none required"
27320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27322 rm -f conftest.$ac_objext conftest$ac_exeext
27323 if { (ac_try="$ac_link"
27324 case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_link") 2>conftest.er1
27331 grep -v '^ *+' conftest.er1 >conftest.err
27333 cat conftest.err >&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); } && {
27336 test -z "$ac_cxx_werror_flag" ||
27337 test ! -s conftest.err
27338 } && test -s conftest$ac_exeext &&
27339 $as_test_x conftest$ac_exeext; then
27340 ac_cv_search_dlopen=$ac_res
27342 echo "$as_me: failed program was:" >&5
27343 sed 's/^/| /' conftest.$ac_ext >&5
27348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27350 if test "${ac_cv_search_dlopen+set}" = set; then
27354 if test "${ac_cv_search_dlopen+set}" = set; then
27357 ac_cv_search_dlopen=no
27359 rm conftest.$ac_ext
27360 LIBS=$ac_func_search_save_LIBS
27362 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27363 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27364 ac_res=$ac_cv_search_dlopen
27365 if test "$ac_res" != no; then
27366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27371 working_dir=`eval echo ${prefix}/var/bacula/working`
27373 # Check whether --with-working-dir was given.
27374 if test "${with_working_dir+set}" = set; then
27375 withval=$with_working_dir;
27376 if test "x$withval" != "xno" ; then
27377 working_dir=$withval
27388 # Check whether --with-archivedir was given.
27389 if test "${with_archivedir+set}" = set; then
27390 withval=$with_archivedir;
27391 if test "x$withval" != "xno" ; then
27392 archivedir=$withval
27401 basename=`hostname`
27403 # Check whether --with-basename was given.
27404 if test "${with_basename+set}" = set; then
27405 withval=$with_basename;
27406 if test "x$withval" != "xno" ; then
27416 hostname=`uname -n | cut -d '.' -f 1`
27417 if test x${hostname} = x ; then
27418 hostname="localhost"
27421 # Check whether --with-hostname was given.
27422 if test "${with_hostname+set}" = set; then
27423 withval=$with_hostname;
27424 if test "x$withval" != "xno" ; then
27435 scriptdir=`eval echo ${sysconfdir}`
27437 # Check whether --with-scriptdir was given.
27438 if test "${with_scriptdir+set}" = set; then
27439 withval=$with_scriptdir;
27440 if test "x$withval" != "xno" ; then
27453 # Check whether --with-bsrdir was given.
27454 if test "${with_bsrdir+set}" = set; then
27455 withval=$with_bsrdir;
27456 if test "x$withval" != "xno" ; then
27468 # Check whether --with-logdir was given.
27469 if test "${with_logdir+set}" = set; then
27470 withval=$with_logdir;
27471 if test "x$withval" != "xno" ; then
27482 # ------------------------------------------
27483 # Where to place plugindir (plugin files)
27484 # ------------------------------------------
27485 plugindir=`eval echo ${libdir}`
27487 # Check whether --with-plugindir was given.
27488 if test "${with_plugindir+set}" = set; then
27489 withval=$with_plugindir;
27490 if test "x$withval" != "xno" ; then
27500 dump_email=root@localhost
27502 # Check whether --with-dump-email was given.
27503 if test "${with_dump_email+set}" = set; then
27504 withval=$with_dump_email;
27505 if test "x$withval" != "xno" ; then
27506 dump_email=$withval
27515 job_email=root@localhost
27517 # Check whether --with-job-email was given.
27518 if test "${with_job_email+set}" = set; then
27519 withval=$with_job_email;
27520 if test "x$withval" != "xno" ; then
27530 smtp_host=localhost
27532 # Check whether --with-smtp_host was given.
27533 if test "${with_smtp_host+set}" = set; then
27534 withval=$with_smtp_host;
27535 if test "x$withval" != "xno" ; then
27547 # Check whether --with-pid-dir was given.
27548 if test "${with_pid_dir+set}" = set; then
27549 withval=$with_pid_dir;
27550 if test "x$withval" != "xno" ; then
27558 cat >>confdefs.h <<_ACEOF
27559 #define _PATH_BACULA_PIDDIR "$piddir"
27564 subsysdir=/var/run/subsys
27565 if test -d /var/run/subsys; then
27566 subsysdir=/var/run/subsys
27567 elif test -d /var/lock/subsys; then
27568 subsysdir=/var/lock/subsys
27570 subsysdir=/var/run/subsys
27573 # Check whether --with-subsys-dir was given.
27574 if test "${with_subsys_dir+set}" = set; then
27575 withval=$with_subsys_dir;
27576 if test "x$withval" != "xno" ; then
27588 # Check whether --with-baseport was given.
27589 if test "${with_baseport+set}" = set; then
27590 withval=$with_baseport;
27591 if test "x$withval" != "xno" ; then
27600 dir_port=`expr $baseport`
27601 fd_port=`expr $baseport + 1`
27602 sd_port=`expr $fd_port + 1`
27610 # Check whether --with-dir-password was given.
27611 if test "${with_dir_password+set}" = set; then
27612 withval=$with_dir_password;
27613 if test "x$withval" != "xno" ; then
27614 dir_password=$withval
27621 if test "x$dir_password" = "x" ; then
27622 if test "x$OPENSSL" = "xnone" ; then
27623 key=`autoconf/randpass 33`
27625 key=`openssl rand -base64 33`
27632 # Check whether --with-fd-password was given.
27633 if test "${with_fd_password+set}" = set; then
27634 withval=$with_fd_password;
27635 if test "x$withval" != "xno" ; then
27636 fd_password=$withval
27643 if test "x$fd_password" = "x" ; then
27644 if test "x$OPENSSL" = "xnone" ; then
27645 key=`autoconf/randpass 37`
27647 key=`openssl rand -base64 33`
27654 # Check whether --with-sd-password was given.
27655 if test "${with_sd_password+set}" = set; then
27656 withval=$with_sd_password;
27657 if test "x$withval" != "xno" ; then
27658 sd_password=$withval
27665 if test "x$sd_password" = "x" ; then
27666 if test "x$OPENSSL" = "xnone" ; then
27667 key=`autoconf/randpass 41`
27669 key=`openssl rand -base64 33`
27676 # Check whether --with-mon-dir-password was given.
27677 if test "${with_mon_dir_password+set}" = set; then
27678 withval=$with_mon_dir_password;
27679 if test "x$withval" != "xno" ; then
27680 mon_dir_password=$withval
27687 if test "x$mon_dir_password" = "x" ; then
27688 if test "x$OPENSSL" = "xnone" ; then
27689 key=`autoconf/randpass 33`
27691 key=`openssl rand -base64 33`
27693 mon_dir_password=$key
27698 # Check whether --with-mon-fd-password was given.
27699 if test "${with_mon_fd_password+set}" = set; then
27700 withval=$with_mon_fd_password;
27701 if test "x$withval" != "xno" ; then
27702 mon_fd_password=$withval
27709 if test "x$mon_fd_password" = "x" ; then
27710 if test "x$OPENSSL" = "xnone" ; then
27711 key=`autoconf/randpass 37`
27713 key=`openssl rand -base64 33`
27715 mon_fd_password=$key
27720 # Check whether --with-mon-sd-password was given.
27721 if test "${with_mon_sd_password+set}" = set; then
27722 withval=$with_mon_sd_password;
27723 if test "x$withval" != "xno" ; then
27724 mon_sd_password=$withval
27731 if test "x$mon_sd_password" = "x" ; then
27732 if test "x$OPENSSL" = "xnone" ; then
27733 key=`autoconf/randpass 41`
27735 key=`openssl rand -base64 33`
27737 mon_sd_password=$key
27749 # Check whether --with-db_name was given.
27750 if test "${with_db_name+set}" = set; then
27751 withval=$with_db_name;
27752 if test "x$withval" != "x" ; then
27763 # Check whether --with-db_user was given.
27764 if test "${with_db_user+set}" = set; then
27765 withval=$with_db_user;
27766 if test "x$withval" != "x" ; then
27777 # Check whether --with-db_password was given.
27778 if test "${with_db_password+set}" = set; then
27779 withval=$with_db_password;
27780 if test "x$withval" != "x" ; then
27781 db_password=$withval
27791 # Check whether --with-db_port was given.
27792 if test "${with_db_port+set}" = set; then
27793 withval=$with_db_port;
27794 if test "x$withval" != "x" ; then
27804 # Handle users and groups for each daemon
27808 # Check whether --with-dir_user was given.
27809 if test "${with_dir_user+set}" = set; then
27810 withval=$with_dir_user;
27811 if test "x$withval" != "x" ; then
27821 # Check whether --with-dir_group was given.
27822 if test "${with_dir_group+set}" = set; then
27823 withval=$with_dir_group;
27824 if test "x$withval" != "x" ; then
27834 # Check whether --with-sd_user was given.
27835 if test "${with_sd_user+set}" = set; then
27836 withval=$with_sd_user;
27837 if test "x$withval" != "x" ; then
27847 # Check whether --with-sd_group was given.
27848 if test "${with_sd_group+set}" = set; then
27849 withval=$with_sd_group;
27850 if test "x$withval" != "x" ; then
27860 # Check whether --with-fd_user was given.
27861 if test "${with_fd_user+set}" = set; then
27862 withval=$with_fd_user;
27863 if test "x$withval" != "x" ; then
27873 # Check whether --with-fd_group was given.
27874 if test "${with_fd_group+set}" = set; then
27875 withval=$with_fd_group;
27876 if test "x$withval" != "x" ; then
27893 # Check whether --with-sbin-perm was given.
27894 if test "${with_sbin_perm+set}" = set; then
27895 withval=$with_sbin_perm;
27896 if test "x$withval" != "x" ; then
27909 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27910 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27912 # Check whether --with-postgresql was given.
27913 if test "${with_postgresql+set}" = set; then
27914 withval=$with_postgresql;
27915 if test "$withval" != "no"; then
27916 if test "$db_found" = "yes"; then
27917 { echo "$as_me:$LINENO: result: error" >&5
27918 echo "${ECHO_T}error" >&6; }
27919 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27920 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27921 { (exit 1); exit 1; }; };
27923 if test "$withval" = "yes"; then
27924 PG_CONFIG=`which pg_config`
27925 if test -n "$PG_CONFIG";then
27926 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27927 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27928 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27929 elif test -f /usr/local/include/libpq-fe.h; then
27930 POSTGRESQL_INCDIR=/usr/local/include
27931 if test -d /usr/local/lib64; then
27932 POSTGRESQL_LIBDIR=/usr/local/lib64
27934 POSTGRESQL_LIBDIR=/usr/local/lib
27936 POSTGRESQL_BINDIR=/usr/local/bin
27937 elif test -f /usr/include/libpq-fe.h; then
27938 POSTGRESQL_INCDIR=/usr/include
27939 if test -d /usr/lib64; then
27940 POSTGRESQL_LIBDIR=/usr/lib64
27942 POSTGRESQL_LIBDIR=/usr/lib
27944 POSTGRESQL_BINDIR=/usr/bin
27945 elif test -f /usr/include/pgsql/libpq-fe.h; then
27946 POSTGRESQL_INCDIR=/usr/include/pgsql
27947 if test -d /usr/lib64/pgsql; then
27948 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27950 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27952 POSTGRESQL_BINDIR=/usr/bin
27953 elif test -f /usr/include/postgresql/libpq-fe.h; then
27954 POSTGRESQL_INCDIR=/usr/include/postgresql
27955 if test -d /usr/lib64/postgresql; then
27956 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27958 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27960 POSTGRESQL_BINDIR=/usr/bin
27962 { echo "$as_me:$LINENO: result: no" >&5
27963 echo "${ECHO_T}no" >&6; }
27964 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27965 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27966 { (exit 1); exit 1; }; }
27968 elif test -f $withval/include/libpq-fe.h; then
27969 POSTGRESQL_INCDIR=$withval/include
27970 POSTGRESQL_LIBDIR=$withval/lib
27971 POSTGRESQL_BINDIR=$withval/bin
27972 elif test -f $withval/include/postgresql/libpq-fe.h; then
27973 POSTGRESQL_INCDIR=$withval/include/postgresql
27974 if test -d $withval/lib64; then
27975 POSTGRESQL_LIBDIR=$withval/lib64
27977 POSTGRESQL_LIBDIR=$withval/lib
27979 POSTGRESQL_BINDIR=$withval/bin
27981 { echo "$as_me:$LINENO: result: no" >&5
27982 echo "${ECHO_T}no" >&6; }
27983 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27984 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27985 { (exit 1); exit 1; }; }
27987 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27988 { echo "$as_me:$LINENO: checking for crypt" >&5
27989 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27990 if test "${ac_cv_func_crypt+set}" = set; then
27991 echo $ECHO_N "(cached) $ECHO_C" >&6
27993 cat >conftest.$ac_ext <<_ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h. */
27999 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
28000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28001 #define crypt innocuous_crypt
28003 /* System header to define __stub macros and hopefully few prototypes,
28004 which can conflict with char crypt (); below.
28005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28006 <limits.h> exists even on freestanding compilers. */
28009 # include <limits.h>
28011 # include <assert.h>
28016 /* Override any GCC internal prototype to avoid an error.
28017 Use char because int might match the return type of a GCC
28018 builtin and then its argument prototype would still apply. */
28023 /* The GNU C library defines this for functions which it implements
28024 to always fail with ENOSYS. Some functions are actually named
28025 something starting with __ and the normal name is an alias. */
28026 #if defined __stub_crypt || defined __stub___crypt
28038 rm -f conftest.$ac_objext conftest$ac_exeext
28039 if { (ac_try="$ac_link"
28040 case "(($ac_try" in
28041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042 *) ac_try_echo=$ac_try;;
28044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045 (eval "$ac_link") 2>conftest.er1
28047 grep -v '^ *+' conftest.er1 >conftest.err
28049 cat conftest.err >&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } && {
28052 test -z "$ac_cxx_werror_flag" ||
28053 test ! -s conftest.err
28054 } && test -s conftest$ac_exeext &&
28055 $as_test_x conftest$ac_exeext; then
28056 ac_cv_func_crypt=yes
28058 echo "$as_me: failed program was:" >&5
28059 sed 's/^/| /' conftest.$ac_ext >&5
28061 ac_cv_func_crypt=no
28064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28065 conftest$ac_exeext conftest.$ac_ext
28067 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28068 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28069 if test $ac_cv_func_crypt = yes; then
28072 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28073 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28074 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28075 echo $ECHO_N "(cached) $ECHO_C" >&6
28077 ac_check_lib_save_LIBS=$LIBS
28078 LIBS="-lcrypt $LIBS"
28079 cat >conftest.$ac_ext <<_ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h. */
28086 /* Override any GCC internal prototype to avoid an error.
28087 Use char because int might match the return type of a GCC
28088 builtin and then its argument prototype would still apply. */
28101 rm -f conftest.$ac_objext conftest$ac_exeext
28102 if { (ac_try="$ac_link"
28103 case "(($ac_try" in
28104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105 *) ac_try_echo=$ac_try;;
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108 (eval "$ac_link") 2>conftest.er1
28110 grep -v '^ *+' conftest.er1 >conftest.err
28112 cat conftest.err >&5
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); } && {
28115 test -z "$ac_cxx_werror_flag" ||
28116 test ! -s conftest.err
28117 } && test -s conftest$ac_exeext &&
28118 $as_test_x conftest$ac_exeext; then
28119 ac_cv_lib_crypt_crypt=yes
28121 echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28124 ac_cv_lib_crypt_crypt=no
28127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28128 conftest$ac_exeext conftest.$ac_ext
28129 LIBS=$ac_check_lib_save_LIBS
28131 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28132 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28133 if test $ac_cv_lib_crypt_crypt = yes; then
28134 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28139 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28140 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28141 SQL_BINDIR=$POSTGRESQL_BINDIR
28142 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28144 cat >>confdefs.h <<\_ACEOF
28145 #define HAVE_POSTGRESQL 1
28148 { echo "$as_me:$LINENO: result: yes" >&5
28149 echo "${ECHO_T}yes" >&6; }
28151 support_postgresql=yes
28155 { echo "$as_me:$LINENO: result: no" >&5
28156 echo "${ECHO_T}no" >&6; }
28161 { echo "$as_me:$LINENO: result: no" >&5
28162 echo "${ECHO_T}no" >&6; }
28174 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28175 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28177 # Check whether --with-mysql was given.
28178 if test "${with_mysql+set}" = set; then
28179 withval=$with_mysql;
28180 if test "$withval" != "no"; then
28181 if test "$withval" = "yes"; then
28182 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28183 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28184 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28185 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28186 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28188 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28190 MYSQL_BINDIR=/usr/local/mysql/bin
28191 elif test -f /usr/include/mysql/mysql.h; then
28192 MYSQL_INCDIR=/usr/include/mysql
28193 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28194 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28195 MYSQL_LIBDIR=/usr/lib64/mysql
28196 elif test -f /usr/lib64/libmysqlclient_r.a \
28197 -o -f /usr/lib64/libmysqlclient_r.so; then
28198 MYSQL_LIBDIR=/usr/lib64
28199 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28200 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28201 MYSQL_LIBDIR=/usr/lib/mysql
28203 MYSQL_LIBDIR=/usr/lib
28205 MYSQL_BINDIR=/usr/bin
28206 elif test -f /usr/include/mysql.h; then
28207 MYSQL_INCDIR=/usr/include
28208 if test -f /usr/lib64/libmysqlclient_r.a \
28209 -o -f /usr/lib64/libmysqlclient_r.so; then
28210 MYSQL_LIBDIR=/usr/lib64
28212 MYSQL_LIBDIR=/usr/lib
28214 MYSQL_BINDIR=/usr/bin
28215 elif test -f /usr/local/include/mysql/mysql.h; then
28216 MYSQL_INCDIR=/usr/local/include/mysql
28217 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28218 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28219 MYSQL_LIBDIR=/usr/local/lib64/mysql
28221 MYSQL_LIBDIR=/usr/local/lib/mysql
28223 MYSQL_BINDIR=/usr/local/bin
28224 elif test -f /usr/local/include/mysql.h; then
28225 MYSQL_INCDIR=/usr/local/include
28226 if test -f /usr/local/lib64/libmysqlclient_r.a \
28227 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28228 MYSQL_LIBDIR=/usr/local/lib64
28230 MYSQL_LIBDIR=/usr/local/lib
28232 MYSQL_BINDIR=/usr/local/bin
28234 { echo "$as_me:$LINENO: result: no" >&5
28235 echo "${ECHO_T}no" >&6; }
28236 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28237 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28238 { (exit 1); exit 1; }; }
28241 if test -f $withval/include/mysql/mysql.h; then
28242 MYSQL_INCDIR=$withval/include/mysql
28243 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28244 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28245 MYSQL_LIBDIR=$withval/lib64/mysql
28246 elif test -f $withval/lib64/libmysqlclient_r.a \
28247 -o -f $withval/lib64/libmysqlclient_r.so; then
28248 MYSQL_LIBDIR=$withval/lib64
28249 elif test -f $withval/lib/libmysqlclient_r.a \
28250 -o -f $withval/lib/libmysqlclient_r.so; then
28251 MYSQL_LIBDIR=$withval/lib
28253 MYSQL_LIBDIR=$withval/lib/mysql
28255 MYSQL_BINDIR=$withval/bin
28256 elif test -f $withval/include/mysql.h; then
28257 MYSQL_INCDIR=$withval/include
28258 if test -f $withval/lib64/libmysqlclient_r.a \
28259 -o -f $withval/lib64/libmysqlclient_r.so; then
28260 MYSQL_LIBDIR=$withval/lib64
28262 MYSQL_LIBDIR=$withval/lib
28264 MYSQL_BINDIR=$withval/bin
28266 { echo "$as_me:$LINENO: result: no" >&5
28267 echo "${ECHO_T}no" >&6; }
28268 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28269 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28270 { (exit 1); exit 1; }; }
28273 SQL_INCLUDE=-I$MYSQL_INCDIR
28274 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28275 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28276 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28277 cat >>confdefs.h <<\_ACEOF
28278 #define HAVE_THREAD_SAFE_MYSQL 1
28282 SQL_BINDIR=$MYSQL_BINDIR
28283 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28285 cat >>confdefs.h <<\_ACEOF
28286 #define HAVE_MYSQL 1
28289 { echo "$as_me:$LINENO: result: yes" >&5
28290 echo "${ECHO_T}yes" >&6; }
28297 { echo "$as_me:$LINENO: result: no" >&5
28298 echo "${ECHO_T}no" >&6; }
28306 # Check whether --with-embedded-mysql was given.
28307 if test "${with_embedded_mysql+set}" = set; then
28308 withval=$with_embedded_mysql;
28309 if test "$withval" != "no"; then
28310 if test "$withval" = "yes"; then
28311 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28312 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28313 if test -d /usr/local/mysql/lib64/mysql; then
28314 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28316 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28318 MYSQL_BINDIR=/usr/local/mysql/bin
28319 elif test -f /usr/include/mysql/mysql.h; then
28320 MYSQL_INCDIR=/usr/include/mysql
28321 if test -d /usr/lib64/mysql; then
28322 MYSQL_LIBDIR=/usr/lib64/mysql
28324 MYSQL_LIBDIR=/usr/lib/mysql
28326 MYSQL_BINDIR=/usr/bin
28327 elif test -f /usr/include/mysql.h; then
28328 MYSQL_INCDIR=/usr/include
28329 if test -d /usr/lib64; then
28330 MYSQL_LIBDIR=/usr/lib64
28332 MYSQL_LIBDIR=/usr/lib
28334 MYSQL_BINDIR=/usr/bin
28335 elif test -f /usr/local/include/mysql/mysql.h; then
28336 MYSQL_INCDIR=/usr/local/include/mysql
28337 if test -d /usr/local/lib64/mysql; then
28338 MYSQL_LIBDIR=/usr/local/lib64/mysql
28340 MYSQL_LIBDIR=/usr/local/lib/mysql
28342 MYSQL_BINDIR=/usr/local/bin
28343 elif test -f /usr/local/include/mysql.h; then
28344 MYSQL_INCDIR=/usr/local/include
28345 if test -d /usr/local/lib64; then
28346 MYSQL_LIBDIR=/usr/local/lib64
28348 MYSQL_LIBDIR=/usr/local/lib
28350 MYSQL_BINDIR=/usr/local/bin
28352 { echo "$as_me:$LINENO: result: no" >&5
28353 echo "${ECHO_T}no" >&6; }
28354 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28355 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28356 { (exit 1); exit 1; }; }
28359 if test -f $withval/include/mysql/mysql.h; then
28360 MYSQL_INCDIR=$withval/include/mysql
28361 if test -d $withval/lib64/mysql; then
28362 MYSQL_LIBDIR=$withval/lib64/mysql
28364 MYSQL_LIBDIR=$withval/lib/mysql
28366 MYSQL_BINDIR=$withval/bin
28367 elif test -f $withval/include/mysql.h; then
28368 MYSQL_INCDIR=$withval/include
28369 if test -d $withval/lib64; then
28370 MYSQL_LIBDIR=$withval/lib64
28372 MYSQL_LIBDIR=$withval/lib
28374 MYSQL_BINDIR=$withval/bin
28376 { echo "$as_me:$LINENO: result: no" >&5
28377 echo "${ECHO_T}no" >&6; }
28378 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28379 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28380 { (exit 1); exit 1; }; }
28383 SQL_INCLUDE=-I$MYSQL_INCDIR
28384 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28385 SQL_BINDIR=$MYSQL_BINDIR
28386 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28388 cat >>confdefs.h <<\_ACEOF
28389 #define HAVE_MYSQL 1
28392 cat >>confdefs.h <<\_ACEOF
28393 #define HAVE_EMBEDDED_MYSQL 1
28396 { echo "$as_me:$LINENO: result: yes" >&5
28397 echo "${ECHO_T}yes" >&6; }
28404 { echo "$as_me:$LINENO: result: no" >&5
28405 echo "${ECHO_T}no" >&6; }
28421 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28422 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28424 # Check whether --with-sqlite3 was given.
28425 if test "${with_sqlite3+set}" = set; then
28426 withval=$with_sqlite3;
28427 if test "$withval" != "no"; then
28428 if test "$withval" = "yes"; then
28429 if test -f /usr/local/include/sqlite3.h; then
28430 SQLITE_INCDIR=/usr/local/include
28431 if test -d /usr/local/lib64; then
28432 SQLITE_LIBDIR=/usr/local/lib64
28434 SQLITE_LIBDIR=/usr/local/lib
28436 SQLITE_BINDIR=/usr/local/bin
28437 elif test -f /usr/include/sqlite3.h; then
28438 SQLITE_INCDIR=/usr/include
28439 if test -d /usr/lib64; then
28440 SQLITE_LIBDIR=/usr/lib64
28442 SQLITE_LIBDIR=/usr/lib
28444 SQLITE_BINDIR=/usr/bin
28445 elif test -f $prefix/include/sqlite3.h; then
28446 SQLITE_INCDIR=$prefix/include
28447 if test -d $prefix/lib64; then
28448 SQLITE_LIBDIR=$prefix/lib64
28450 SQLITE_LIBDIR=$prefix/lib
28452 SQLITE_BINDIR=$prefix/bin
28454 { echo "$as_me:$LINENO: result: no" >&5
28455 echo "${ECHO_T}no" >&6; }
28456 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28457 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28458 { (exit 1); exit 1; }; }
28461 if test -f $withval/sqlite3.h; then
28462 SQLITE_INCDIR=$withval
28463 SQLITE_LIBDIR=$withval
28464 SQLITE_BINDIR=$withval
28465 elif test -f $withval/include/sqlite3.h; then
28466 SQLITE_INCDIR=$withval/include
28467 if test -d $withval/lib64; then
28468 SQLITE_LIBDIR=$withval/lib64
28470 SQLITE_LIBDIR=$withval/lib
28472 SQLITE_BINDIR=$withval/bin
28474 { echo "$as_me:$LINENO: result: no" >&5
28475 echo "${ECHO_T}no" >&6; }
28476 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28477 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28478 { (exit 1); exit 1; }; }
28481 SQL_INCLUDE=-I$SQLITE_INCDIR
28482 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28483 SQL_BINDIR=$SQLITE_BINDIR
28484 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28486 cat >>confdefs.h <<\_ACEOF
28487 #define HAVE_SQLITE3 1
28490 { echo "$as_me:$LINENO: result: yes" >&5
28491 echo "${ECHO_T}yes" >&6; }
28493 support_sqlite3=yes
28498 { echo "$as_me:$LINENO: result: no" >&5
28499 echo "${ECHO_T}no" >&6; }
28504 { echo "$as_me:$LINENO: result: no" >&5
28505 echo "${ECHO_T}no" >&6; }
28515 # BA_CHECK_SQLITE_DB
28519 { echo "$as_me:$LINENO: checking for DBI support" >&5
28520 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28522 # Check whether --with-dbi was given.
28523 if test "${with_dbi+set}" = set; then
28525 if test "$withval" != "no"; then
28526 if test "$withval" = "yes"; then
28527 if test -f /usr/local/include/dbi/dbi.h; then
28528 DBI_INCDIR=/usr/local/dbi/include
28529 if test -d /usr/local/lib64; then
28530 DBI_LIBDIR=/usr/local/lib64
28532 DBI_LIBDIR=/usr/local/lib
28534 DBI_BINDIR=/usr/local/bin
28535 elif test -f /usr/include/dbi/dbi.h; then
28536 DBI_INCDIR=/usr/include
28537 if test -d /usr/lib64; then
28538 DBI_LIBDIR=/usr/lib64
28540 DBI_LIBDIR=/usr/lib
28542 DBI_BINDIR=/usr/bin
28543 elif test -f $prefix/include/dbi/dbi.h; then
28544 DBI_INCDIR=$prefix/include
28545 if test -d $prefix/lib64; then
28546 DBI_LIBDIR=$prefix/lib64
28548 DBI_LIBDIR=$prefix/lib
28550 DBI_BINDIR=$prefix/bin
28552 { echo "$as_me:$LINENO: result: no" >&5
28553 echo "${ECHO_T}no" >&6; }
28554 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28555 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28556 { (exit 1); exit 1; }; }
28558 if test -d /usr/local/lib/dbd; then
28559 DRIVERDIR=/usr/local/lib/dbd
28560 if test -d /usr/local/lib64/dbd; then
28561 DRIVERDIR=/usr/local/lib64/dbd
28563 DRIVERDIR=/usr/local/lib/dbd
28565 elif test -d /usr/lib/dbd; then
28566 DRIVERDIR=/usr/lib/dbd
28567 if test -d /usr/lib64/dbd; then
28568 DRIVERDIR=/usr/lib64/dbd
28570 DRIVERDIR=/usr/lib/dbd
28572 elif test -d $prefix/lib/dbd; then
28573 if test -d $prefix/lib64/dbd; then
28574 DRIVERDIR=$prefix/lib64/dbd
28576 DRIVERDIR=$prefix/lib/dbd
28578 elif test -d /usr/local/lib64/dbd; then
28579 DRIVERDIR=/usr/local/lib64/dbd
28580 elif test -d /usr/lib64/dbd; then
28581 DRIVERDIR=/usr/lib64/dbd
28582 elif test -d $prefix/lib64/dbd; then
28583 DRIVERDIR=$prefix/lib64/dbd
28585 { echo "$as_me:$LINENO: result: no" >&5
28586 echo "${ECHO_T}no" >&6; }
28587 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28588 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28589 { (exit 1); exit 1; }; }
28592 if test -f $withval/dbi.h; then
28593 DBI_INCDIR=$withval
28594 DBI_LIBDIR=$withval
28595 DBI_BINDIR=$withval
28596 elif test -f $withval/include/dbi/dbi.h; then
28597 DBI_INCDIR=$withval/include
28598 if test -d $withval/lib64; then
28599 DBI_LIBDIR=$withval/lib64
28601 DBI_LIBDIR=$withval/lib
28603 DBI_BINDIR=$withval/bin
28605 { echo "$as_me:$LINENO: result: no" >&5
28606 echo "${ECHO_T}no" >&6; }
28607 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28608 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28609 { (exit 1); exit 1; }; }
28611 if test -d $withval/dbd; then
28612 DRIVERDIR=$withval/dbd
28613 elif test -d $withval/lib/; then
28614 if test -d $withval/lib64/dbd; then
28615 DRIVERDIR=$withval/lib64/dbd
28617 DRIVERDIR=$withval/lib/dbd
28619 elif test -d $withval/lib64/dbd; then
28620 DRIVERDIR=$withval/lib64/dbd
28622 { echo "$as_me:$LINENO: result: no" >&5
28623 echo "${ECHO_T}no" >&6; }
28624 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28625 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28626 { (exit 1); exit 1; }; }
28629 SQL_INCLUDE=-I$DBI_INCDIR
28630 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28631 SQL_BINDIR=$DBI_BINDIR
28632 SQL_LIB=$DBI_LIBDIR/libdbi.a
28633 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28636 cat >>confdefs.h <<\_ACEOF
28640 { echo "$as_me:$LINENO: result: yes" >&5
28641 echo "${ECHO_T}yes" >&6; }
28649 { echo "$as_me:$LINENO: result: no" >&5
28650 echo "${ECHO_T}no" >&6; }
28655 { echo "$as_me:$LINENO: result: no" >&5
28656 echo "${ECHO_T}no" >&6; }
28671 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28672 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28674 # Check whether --with-dbi-driver was given.
28675 if test "${with_dbi_driver+set}" = set; then
28676 withval=$with_dbi_driver;
28677 if test "$withval" != "no"; then
28681 if test -f /usr/local/mysql/bin/mysql; then
28682 SQL_BINDIR=/usr/local/mysql/bin
28683 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28684 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28685 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28687 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28689 elif test -f /usr/bin/mysql; then
28690 SQL_BINDIR=/usr/bin
28691 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28692 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28693 SQL_LIBDIR=/usr/lib64/mysql
28694 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28695 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28696 SQL_LIBDIR=/usr/lib/mysql
28698 SQL_LIBDIR=/usr/lib
28700 elif test -f /usr/local/bin/mysql; then
28701 SQL_BINDIR=/usr/local/bin
28702 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28703 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28704 SQL_LIBDIR=/usr/local/lib64/mysql
28705 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28706 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28707 SQL_LIBDIR=/usr/local/lib/mysql
28709 SQL_LIBDIR=/usr/local/lib
28711 elif test -f $withval/bin/mysql; then
28712 SQL_BINDIR=$withval/bin
28713 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28714 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28715 SQL_LIBDIR=$withval/lib64/mysql
28716 elif test -f $withval/lib64/libmysqlclient_r.a \
28717 -o -f $withval/lib64/libmysqlclient_r.so; then
28718 SQL_LIBDIR=$withval/lib64
28719 elif test -f $withval/lib/libmysqlclient_r.a \
28720 -o -f $withval/lib/libmysqlclient_r.so; then
28721 SQL_LIBDIR=$withval/lib/
28723 SQL_LIBDIR=$withval/lib/mysql
28726 { echo "$as_me:$LINENO: result: no" >&5
28727 echo "${ECHO_T}no" >&6; }
28728 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28729 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28730 { (exit 1); exit 1; }; }
28732 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28733 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28735 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28739 db_prog="postgresql"
28740 PG_CONFIG=`which pg_config`
28741 if test -n "$PG_CONFIG"; then
28742 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28743 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28744 elif test -f /usr/local/bin/psql; then
28745 SQL_BINDIR=/usr/local/bin
28746 if test -d /usr/local/lib64; then
28747 SQL_LIBDIR=/usr/local/lib64
28749 SQL_LIBDIR=/usr/local/lib
28751 elif test -f /usr/bin/psql; then
28752 SQL_BINDIR=/usr/local/bin
28753 if test -d /usr/lib64/postgresql; then
28754 SQL_LIBDIR=/usr/lib64/postgresql
28755 elif test -d /usr/lib/postgresql; then
28756 SQL_LIBDIR=/usr/lib/postgresql
28757 elif test -d /usr/lib64; then
28758 SQL_LIBDIR=/usr/lib64
28760 SQL_LIBDIR=/usr/lib
28762 elif test -f $withval/bin/psql; then
28763 SQL_BINDIR=$withval/bin
28764 if test -d $withval/lib64; then
28765 SQL_LIBDIR=$withval/lib64
28767 SQL_LIBDIR=$withval/lib
28770 { echo "$as_me:$LINENO: result: no" >&5
28771 echo "${ECHO_T}no" >&6; }
28772 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28773 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28774 { (exit 1); exit 1; }; }
28776 if test -f $SQL_LIBDIR/libpq.so; then
28777 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28779 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28784 if test -f /usr/local/bin/sqlite; then
28785 SQL_BINDIR=/usr/local/bin
28786 if test -d /usr/local/lib64; then
28787 SQL_LIBDIR=/usr/local/lib64
28789 SQL_LIBDIR=/usr/local/lib
28791 elif test -f /usr/bin/sqlite; then
28792 SQL_BINDIR=/usr/bin
28793 if test -d /usr/lib64; then
28794 SQL_LIBDIR=/usr/lib64
28796 SQL_LIBDIR=/usr/lib
28798 elif test -f $withval/bin/sqlite; then
28799 SQL_BINDIR=$withval/bin
28800 if test -d $withval/lib64; then
28801 SQL_LIBDIR=$withval/lib64
28803 SQL_LIBDIR=$withval/lib
28806 { echo "$as_me:$LINENO: result: no" >&5
28807 echo "${ECHO_T}no" >&6; }
28808 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28809 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28810 { (exit 1); exit 1; }; }
28812 if test -f $SQL_LIBDIR/libsqlite.so; then
28813 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28815 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28820 if test -f /usr/local/bin/sqlite3; then
28821 SQL_BINDIR=/usr/local/bin
28822 if test -d /usr/local/lib64; then
28823 SQL_LIBDIR=/usr/local/lib64
28825 SQL_LIBDIR=/usr/local/lib
28827 elif test -f /usr/bin/sqlite3; then
28828 SQL_BINDIR=/usr/bin
28829 if test -d /usr/lib64; then
28830 SQL_LIBDIR=/usr/lib64
28832 SQL_LIBDIR=/usr/lib
28834 elif test -f $withval/bin/sqlite3; then
28835 SQL_BINDIR=$withval/bin
28836 if test -d $withval/lib64; then
28837 SQL_LIBDIR=$withval/lib64
28839 SQL_LIBDIR=$withval/lib
28842 { echo "$as_me:$LINENO: result: no" >&5
28843 echo "${ECHO_T}no" >&6; }
28844 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28845 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28846 { (exit 1); exit 1; }; }
28848 if test -f $SQL_LIBDIR/libsqlite3.so; then
28849 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28851 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28855 { echo "$as_me:$LINENO: result: no" >&5
28856 echo "${ECHO_T}no" >&6; }
28857 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28858 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28859 { (exit 1); exit 1; }; }
28863 { echo "$as_me:$LINENO: result: yes" >&5
28864 echo "${ECHO_T}yes" >&6; }
28867 { echo "$as_me:$LINENO: result: no" >&5
28868 echo "${ECHO_T}no" >&6; }
28873 { echo "$as_me:$LINENO: result: no" >&5
28874 echo "${ECHO_T}no" >&6; }
28887 support_batch_insert=no
28888 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28890 if test $pkg = 0; then
28891 support_batch_insert=yes
28892 # Check whether --enable-batch-insert was given.
28893 if test "${enable_batch_insert+set}" = set; then
28894 enableval=$enable_batch_insert;
28895 if test x$enableval = xno; then
28896 support_batch_insert=no
28898 support_batch_insert=yes
28906 if test x$DB_TYPE = xpostgresql; then
28907 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28908 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28909 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28910 echo $ECHO_N "(cached) $ECHO_C" >&6
28912 ac_check_lib_save_LIBS=$LIBS
28914 cat >conftest.$ac_ext <<_ACEOF
28917 cat confdefs.h >>conftest.$ac_ext
28918 cat >>conftest.$ac_ext <<_ACEOF
28919 /* end confdefs.h. */
28921 /* Override any GCC internal prototype to avoid an error.
28922 Use char because int might match the return type of a GCC
28923 builtin and then its argument prototype would still apply. */
28927 char PQisthreadsafe ();
28931 return PQisthreadsafe ();
28936 rm -f conftest.$ac_objext conftest$ac_exeext
28937 if { (ac_try="$ac_link"
28938 case "(($ac_try" in
28939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940 *) ac_try_echo=$ac_try;;
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943 (eval "$ac_link") 2>conftest.er1
28945 grep -v '^ *+' conftest.er1 >conftest.err
28947 cat conftest.err >&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } && {
28950 test -z "$ac_cxx_werror_flag" ||
28951 test ! -s conftest.err
28952 } && test -s conftest$ac_exeext &&
28953 $as_test_x conftest$ac_exeext; then
28954 ac_cv_lib_pq_PQisthreadsafe=yes
28956 echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28959 ac_cv_lib_pq_PQisthreadsafe=no
28962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28963 conftest$ac_exeext conftest.$ac_ext
28964 LIBS=$ac_check_lib_save_LIBS
28966 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28967 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28968 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28970 cat >>confdefs.h <<\_ACEOF
28971 #define HAVE_PQISTHREADSAFE 1
28976 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28977 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28978 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28981 ac_check_lib_save_LIBS=$LIBS
28983 cat >conftest.$ac_ext <<_ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h. */
28990 /* Override any GCC internal prototype to avoid an error.
28991 Use char because int might match the return type of a GCC
28992 builtin and then its argument prototype would still apply. */
28996 char PQputCopyData ();
29000 return PQputCopyData ();
29005 rm -f conftest.$ac_objext conftest$ac_exeext
29006 if { (ac_try="$ac_link"
29007 case "(($ac_try" in
29008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29009 *) ac_try_echo=$ac_try;;
29011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29012 (eval "$ac_link") 2>conftest.er1
29014 grep -v '^ *+' conftest.er1 >conftest.err
29016 cat conftest.err >&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } && {
29019 test -z "$ac_cxx_werror_flag" ||
29020 test ! -s conftest.err
29021 } && test -s conftest$ac_exeext &&
29022 $as_test_x conftest$ac_exeext; then
29023 ac_cv_lib_pq_PQputCopyData=yes
29025 echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29028 ac_cv_lib_pq_PQputCopyData=no
29031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29032 conftest$ac_exeext conftest.$ac_ext
29033 LIBS=$ac_check_lib_save_LIBS
29035 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29036 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29037 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_PQ_COPY 1
29045 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29047 support_batch_insert=no
29051 if test x$DB_TYPE = xdbi; then
29055 if test $DB_PROG = postgresql; then
29056 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29057 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29058 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29059 echo $ECHO_N "(cached) $ECHO_C" >&6
29061 ac_check_lib_save_LIBS=$LIBS
29063 cat >conftest.$ac_ext <<_ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h. */
29070 /* Override any GCC internal prototype to avoid an error.
29071 Use char because int might match the return type of a GCC
29072 builtin and then its argument prototype would still apply. */
29076 char PQisthreadsafe ();
29080 return PQisthreadsafe ();
29085 rm -f conftest.$ac_objext conftest$ac_exeext
29086 if { (ac_try="$ac_link"
29087 case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_link") 2>conftest.er1
29094 grep -v '^ *+' conftest.er1 >conftest.err
29096 cat conftest.err >&5
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } && {
29099 test -z "$ac_cxx_werror_flag" ||
29100 test ! -s conftest.err
29101 } && test -s conftest$ac_exeext &&
29102 $as_test_x conftest$ac_exeext; then
29103 ac_cv_lib_pq_PQisthreadsafe=yes
29105 echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29108 ac_cv_lib_pq_PQisthreadsafe=no
29111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29112 conftest$ac_exeext conftest.$ac_ext
29113 LIBS=$ac_check_lib_save_LIBS
29115 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29116 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29117 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29118 cat >>confdefs.h <<\_ACEOF
29119 #define HAVE_PQISTHREADSAFE 1
29124 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29125 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29126 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29127 echo $ECHO_N "(cached) $ECHO_C" >&6
29129 ac_check_lib_save_LIBS=$LIBS
29131 cat >conftest.$ac_ext <<_ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h. */
29138 /* Override any GCC internal prototype to avoid an error.
29139 Use char because int might match the return type of a GCC
29140 builtin and then its argument prototype would still apply. */
29144 char PQputCopyData ();
29148 return PQputCopyData ();
29153 rm -f conftest.$ac_objext conftest$ac_exeext
29154 if { (ac_try="$ac_link"
29155 case "(($ac_try" in
29156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157 *) ac_try_echo=$ac_try;;
29159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160 (eval "$ac_link") 2>conftest.er1
29162 grep -v '^ *+' conftest.er1 >conftest.err
29164 cat conftest.err >&5
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); } && {
29167 test -z "$ac_cxx_werror_flag" ||
29168 test ! -s conftest.err
29169 } && test -s conftest$ac_exeext &&
29170 $as_test_x conftest$ac_exeext; then
29171 ac_cv_lib_pq_PQputCopyData=yes
29173 echo "$as_me: failed program was:" >&5
29174 sed 's/^/| /' conftest.$ac_ext >&5
29176 ac_cv_lib_pq_PQputCopyData=no
29179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29180 conftest$ac_exeext conftest.$ac_ext
29181 LIBS=$ac_check_lib_save_LIBS
29183 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29184 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29185 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29186 cat >>confdefs.h <<\_ACEOF
29187 #define HAVE_PQ_COPY 1
29192 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29196 if test $DB_PROG = mysql; then
29197 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29201 if test $DB_PROG = sqlite3; then
29202 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29206 if test $pkg = 0; then
29207 # Check whether --enable-batch-insert was given.
29208 if test "${enable_batch_insert+set}" = set; then
29209 enableval=$enable_batch_insert;
29210 if test x$enableval = xno; then
29211 support_batch_insert=no
29213 support_batch_insert=yes
29226 if test $support_batch_insert = yes ; then
29228 cat >>confdefs.h <<\_ACEOF
29229 #define HAVE_BATCH_FILE_INSERT 1
29234 cat >>confdefs.h <<\_ACEOF
29235 #define PROTOTYPES 1
29239 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29240 if test -z "$CCOPTS"; then
29241 CCOPTS='-g -O2 -Wall'
29248 largefile_support="no"
29250 # Check whether --enable-largefile was given.
29251 if test "${enable_largefile+set}" = set; then
29252 enableval=$enable_largefile;
29255 if test "$enable_largefile" != no; then
29256 if test -n "$ac_tool_prefix"; then
29257 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29258 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29261 if test "${ac_cv_prog_GETCONF+set}" = set; then
29262 echo $ECHO_N "(cached) $ECHO_C" >&6
29264 if test -n "$GETCONF"; then
29265 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29268 for as_dir in $PATH
29271 test -z "$as_dir" && as_dir=.
29272 for ac_exec_ext in '' $ac_executable_extensions; do
29273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29274 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29284 GETCONF=$ac_cv_prog_GETCONF
29285 if test -n "$GETCONF"; then
29286 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29287 echo "${ECHO_T}$GETCONF" >&6; }
29289 { echo "$as_me:$LINENO: result: no" >&5
29290 echo "${ECHO_T}no" >&6; }
29295 if test -z "$ac_cv_prog_GETCONF"; then
29296 ac_ct_GETCONF=$GETCONF
29297 # Extract the first word of "getconf", so it can be a program name with args.
29298 set dummy getconf; ac_word=$2
29299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29301 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29302 echo $ECHO_N "(cached) $ECHO_C" >&6
29304 if test -n "$ac_ct_GETCONF"; then
29305 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29308 for as_dir in $PATH
29311 test -z "$as_dir" && as_dir=.
29312 for ac_exec_ext in '' $ac_executable_extensions; do
29313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29314 ac_cv_prog_ac_ct_GETCONF="getconf"
29315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29324 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29325 if test -n "$ac_ct_GETCONF"; then
29326 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29327 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29329 { echo "$as_me:$LINENO: result: no" >&5
29330 echo "${ECHO_T}no" >&6; }
29333 if test "x$ac_ct_GETCONF" = x; then
29336 case $cross_compiling:$ac_tool_warned in
29338 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29339 whose name does not start with the host triplet. If you think this
29340 configuration is useful to you, please write to autoconf@gnu.org." >&5
29341 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29342 whose name does not start with the host triplet. If you think this
29343 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29344 ac_tool_warned=yes ;;
29346 GETCONF=$ac_ct_GETCONF
29349 GETCONF="$ac_cv_prog_GETCONF"
29352 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29353 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29354 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29357 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29358 ac_cv_sys_largefile_CFLAGS=no
29360 # IRIX 6.2 and later require cc -n32.
29361 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29362 if test "$GCC" != yes; then
29363 ac_cv_sys_largefile_CFLAGS=-n32
29366 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29367 cat >conftest.$ac_ext <<_ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h. */
29382 rm -f conftest.$ac_objext conftest$ac_exeext
29383 if { (ac_try="$ac_link"
29384 case "(($ac_try" in
29385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386 *) ac_try_echo=$ac_try;;
29388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389 (eval "$ac_link") 2>conftest.er1
29391 grep -v '^ *+' conftest.er1 >conftest.err
29393 cat conftest.err >&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } && {
29396 test -z "$ac_cxx_werror_flag" ||
29397 test ! -s conftest.err
29398 } && test -s conftest$ac_exeext &&
29399 $as_test_x conftest$ac_exeext; then
29402 echo "$as_me: failed program was:" >&5
29403 sed 's/^/| /' conftest.$ac_ext >&5
29405 ac_cv_sys_largefile_CFLAGS=no
29408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29409 conftest$ac_exeext conftest.$ac_ext
29414 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29415 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29416 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29417 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29418 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29419 echo $ECHO_N "(cached) $ECHO_C" >&6
29421 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29422 ac_cv_sys_largefile_LDFLAGS=no
29426 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29427 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29428 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29429 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29430 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29433 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29434 ac_cv_sys_largefile_LIBS=no
29438 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29439 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29441 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29444 -D_FILE_OFFSET_BITS=*) ;;
29445 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29446 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29451 case "$CPPFLAGS" in
29452 '') CPPFLAGS="$ac_flag" ;;
29453 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29461 '') CFLAGS="$ac_flag" ;;
29462 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29467 case "$ac_cv_sys_largefile_LDFLAGS" in
29471 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29472 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29475 case "$ac_cv_sys_largefile_LIBS" in
29479 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29480 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29483 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29484 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29485 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29488 ac_cv_sys_file_offset_bits=no
29489 ac_cv_sys_file_offset_bits=64
29490 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29492 -D_FILE_OFFSET_BITS)
29493 ac_cv_sys_file_offset_bits=1 ;;
29494 -D_FILE_OFFSET_BITS=*)
29495 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29500 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29501 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29502 if test "$ac_cv_sys_file_offset_bits" != no; then
29504 cat >>confdefs.h <<_ACEOF
29505 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29509 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29510 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29511 if test "${ac_cv_sys_largefile_source+set}" = set; then
29512 echo $ECHO_N "(cached) $ECHO_C" >&6
29514 ac_cv_sys_largefile_source=no
29515 ac_cv_sys_largefile_source=1
29516 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29518 -D_LARGEFILE_SOURCE)
29519 ac_cv_sys_largefile_source=1 ;;
29520 -D_LARGEFILE_SOURCE=*)
29521 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29526 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29527 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29528 if test "$ac_cv_sys_largefile_source" != no; then
29530 cat >>confdefs.h <<_ACEOF
29531 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29535 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29536 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29537 if test "${ac_cv_sys_large_files+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29540 ac_cv_sys_large_files=no
29541 ac_cv_sys_large_files=1
29542 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29545 ac_cv_sys_large_files=1 ;;
29547 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29552 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29553 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29554 if test "$ac_cv_sys_large_files" != no; then
29556 cat >>confdefs.h <<_ACEOF
29557 #define _LARGE_FILES $ac_cv_sys_large_files
29564 { echo "$as_me:$LINENO: checking for X" >&5
29565 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29568 # Check whether --with-x was given.
29569 if test "${with_x+set}" = set; then
29573 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29574 if test "x$with_x" = xno; then
29575 # The user explicitly disabled X.
29578 case $x_includes,$x_libraries in #(
29579 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29580 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29581 { (exit 1); exit 1; }; };; #(
29582 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29585 # One or both of the vars are not set, and there is no cached value.
29586 ac_x_includes=no ac_x_libraries=no
29587 rm -f -r conftest.dir
29588 if mkdir conftest.dir; then
29590 cat >Imakefile <<'_ACEOF'
29592 @echo incroot='${INCROOT}'
29594 @echo usrlibdir='${USRLIBDIR}'
29596 @echo libdir='${LIBDIR}'
29598 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29599 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29600 for ac_var in incroot usrlibdir libdir; do
29601 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29603 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29604 for ac_extension in a so sl; do
29605 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29606 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29607 ac_im_usrlibdir=$ac_im_libdir; break
29610 # Screen out bogus values from the imake configuration. They are
29611 # bogus both because they are the default anyway, and because
29612 # using them would break gcc on systems where it needs fixed includes.
29613 case $ac_im_incroot in
29614 /usr/include) ac_x_includes= ;;
29615 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29617 case $ac_im_usrlibdir in
29618 /usr/lib | /lib) ;;
29619 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29623 rm -f -r conftest.dir
29626 # Standard set of common directories for X headers.
29627 # Check X11 before X11Rn because it is often a symlink to the current release.
29639 /usr/local/X11/include
29640 /usr/local/X11R6/include
29641 /usr/local/X11R5/include
29642 /usr/local/X11R4/include
29644 /usr/local/include/X11
29645 /usr/local/include/X11R6
29646 /usr/local/include/X11R5
29647 /usr/local/include/X11R4
29651 /usr/XFree86/include/X11
29655 /usr/unsupported/include
29656 /usr/athena/include
29657 /usr/local/x11r5/include
29658 /usr/lpp/Xamples/include
29660 /usr/openwin/include
29661 /usr/openwin/share/include'
29663 if test "$ac_x_includes" = no; then
29664 # Guess where to find include files, by looking for Xlib.h.
29665 # First, try using that file with no special directory specified.
29666 cat >conftest.$ac_ext <<_ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h. */
29672 #include <X11/Xlib.h>
29674 if { (ac_try="$ac_cpp conftest.$ac_ext"
29675 case "(($ac_try" in
29676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677 *) ac_try_echo=$ac_try;;
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29682 grep -v '^ *+' conftest.er1 >conftest.err
29684 cat conftest.err >&5
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); } >/dev/null && {
29687 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
29688 test ! -s conftest.err
29690 # We can compile using X headers with no special include directory.
29693 echo "$as_me: failed program was:" >&5
29694 sed 's/^/| /' conftest.$ac_ext >&5
29696 for ac_dir in $ac_x_header_dirs; do
29697 if test -r "$ac_dir/X11/Xlib.h"; then
29698 ac_x_includes=$ac_dir
29704 rm -f conftest.err conftest.$ac_ext
29705 fi # $ac_x_includes = no
29707 if test "$ac_x_libraries" = no; then
29708 # Check for the libraries.
29709 # See if we find them without any special options.
29710 # Don't add to $LIBS permanently.
29713 cat >conftest.$ac_ext <<_ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h. */
29719 #include <X11/Xlib.h>
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (ac_try="$ac_link"
29730 case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29735 (eval "$ac_link") 2>conftest.er1
29737 grep -v '^ *+' conftest.er1 >conftest.err
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } && {
29742 test -z "$ac_cxx_werror_flag" ||
29743 test ! -s conftest.err
29744 } && test -s conftest$ac_exeext &&
29745 $as_test_x conftest$ac_exeext; then
29747 # We can link X programs with no special library path.
29750 echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29754 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29756 # Don't even attempt the hair of trying to link an X program!
29757 for ac_extension in a so sl; do
29758 if test -r "$ac_dir/libX11.$ac_extension"; then
29759 ac_x_libraries=$ac_dir
29766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29767 conftest$ac_exeext conftest.$ac_ext
29768 fi # $ac_x_libraries = no
29770 case $ac_x_includes,$ac_x_libraries in #(
29771 no,* | *,no | *\'*)
29772 # Didn't find X, or a directory has "'" in its name.
29773 ac_cv_have_x="have_x=no";; #(
29775 # Record where we found X for the cache.
29776 ac_cv_have_x="have_x=yes\
29777 ac_x_includes='$ac_x_includes'\
29778 ac_x_libraries='$ac_x_libraries'"
29784 eval "$ac_cv_have_x"
29787 if test "$have_x" != yes; then
29788 { echo "$as_me:$LINENO: result: $have_x" >&5
29789 echo "${ECHO_T}$have_x" >&6; }
29792 # If each of the values was on the command line, it overrides each guess.
29793 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29794 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29795 # Update the cache value to reflect the command line values.
29796 ac_cv_have_x="have_x=yes\
29797 ac_x_includes='$x_includes'\
29798 ac_x_libraries='$x_libraries'"
29799 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29800 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29803 if test "$no_x" = yes; then
29804 # Not all programs may use this symbol, but it does not hurt to define it.
29806 cat >>confdefs.h <<\_ACEOF
29807 #define X_DISPLAY_MISSING 1
29810 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29812 if test -n "$x_includes"; then
29813 X_CFLAGS="$X_CFLAGS -I$x_includes"
29816 # It would also be nice to do this for all -L options, not just this one.
29817 if test -n "$x_libraries"; then
29818 X_LIBS="$X_LIBS -L$x_libraries"
29819 # For Solaris; some versions of Sun CC require a space after -R and
29820 # others require no space. Words are not sufficient . . . .
29821 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29822 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29823 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29824 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
29825 ac_cxx_werror_flag=yes
29826 cat >conftest.$ac_ext <<_ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h. */
29841 rm -f conftest.$ac_objext conftest$ac_exeext
29842 if { (ac_try="$ac_link"
29843 case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_link") 2>conftest.er1
29850 grep -v '^ *+' conftest.er1 >conftest.err
29852 cat conftest.err >&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } && {
29855 test -z "$ac_cxx_werror_flag" ||
29856 test ! -s conftest.err
29857 } && test -s conftest$ac_exeext &&
29858 $as_test_x conftest$ac_exeext; then
29859 { echo "$as_me:$LINENO: result: no" >&5
29860 echo "${ECHO_T}no" >&6; }
29861 X_LIBS="$X_LIBS -R$x_libraries"
29863 echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29866 LIBS="$ac_xsave_LIBS -R $x_libraries"
29867 cat >conftest.$ac_ext <<_ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h. */
29882 rm -f conftest.$ac_objext conftest$ac_exeext
29883 if { (ac_try="$ac_link"
29884 case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889 (eval "$ac_link") 2>conftest.er1
29891 grep -v '^ *+' conftest.er1 >conftest.err
29893 cat conftest.err >&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } && {
29896 test -z "$ac_cxx_werror_flag" ||
29897 test ! -s conftest.err
29898 } && test -s conftest$ac_exeext &&
29899 $as_test_x conftest$ac_exeext; then
29900 { echo "$as_me:$LINENO: result: yes" >&5
29901 echo "${ECHO_T}yes" >&6; }
29902 X_LIBS="$X_LIBS -R $x_libraries"
29904 echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29907 { echo "$as_me:$LINENO: result: neither works" >&5
29908 echo "${ECHO_T}neither works" >&6; }
29911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29912 conftest$ac_exeext conftest.$ac_ext
29915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29916 conftest$ac_exeext conftest.$ac_ext
29917 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
29918 LIBS=$ac_xsave_LIBS
29921 # Check for system-dependent libraries X programs must link with.
29922 # Do this before checking for the system-independent R6 libraries
29923 # (-lICE), since we may need -lsocket or whatever for X linking.
29925 if test "$ISC" = yes; then
29926 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29928 # Martyn Johnson says this is needed for Ultrix, if the X
29929 # libraries were built with DECnet support. And Karl Berry says
29930 # the Alpha needs dnet_stub (dnet does not exist).
29931 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29932 cat >conftest.$ac_ext <<_ACEOF
29935 cat confdefs.h >>conftest.$ac_ext
29936 cat >>conftest.$ac_ext <<_ACEOF
29937 /* end confdefs.h. */
29939 /* Override any GCC internal prototype to avoid an error.
29940 Use char because int might match the return type of a GCC
29941 builtin and then its argument prototype would still apply. */
29945 char XOpenDisplay ();
29949 return XOpenDisplay ();
29954 rm -f conftest.$ac_objext conftest$ac_exeext
29955 if { (ac_try="$ac_link"
29956 case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_link") 2>conftest.er1
29963 grep -v '^ *+' conftest.er1 >conftest.err
29965 cat conftest.err >&5
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); } && {
29968 test -z "$ac_cxx_werror_flag" ||
29969 test ! -s conftest.err
29970 } && test -s conftest$ac_exeext &&
29971 $as_test_x conftest$ac_exeext; then
29974 echo "$as_me: failed program was:" >&5
29975 sed 's/^/| /' conftest.$ac_ext >&5
29977 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29978 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29979 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29980 echo $ECHO_N "(cached) $ECHO_C" >&6
29982 ac_check_lib_save_LIBS=$LIBS
29983 LIBS="-ldnet $LIBS"
29984 cat >conftest.$ac_ext <<_ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29991 /* Override any GCC internal prototype to avoid an error.
29992 Use char because int might match the return type of a GCC
29993 builtin and then its argument prototype would still apply. */
30001 return dnet_ntoa ();
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (ac_try="$ac_link"
30008 case "(($ac_try" in
30009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010 *) ac_try_echo=$ac_try;;
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013 (eval "$ac_link") 2>conftest.er1
30015 grep -v '^ *+' conftest.er1 >conftest.err
30017 cat conftest.err >&5
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } && {
30020 test -z "$ac_cxx_werror_flag" ||
30021 test ! -s conftest.err
30022 } && test -s conftest$ac_exeext &&
30023 $as_test_x conftest$ac_exeext; then
30024 ac_cv_lib_dnet_dnet_ntoa=yes
30026 echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30029 ac_cv_lib_dnet_dnet_ntoa=no
30032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30033 conftest$ac_exeext conftest.$ac_ext
30034 LIBS=$ac_check_lib_save_LIBS
30036 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30037 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30038 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30039 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30042 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30043 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30044 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30045 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30046 echo $ECHO_N "(cached) $ECHO_C" >&6
30048 ac_check_lib_save_LIBS=$LIBS
30049 LIBS="-ldnet_stub $LIBS"
30050 cat >conftest.$ac_ext <<_ACEOF
30053 cat confdefs.h >>conftest.$ac_ext
30054 cat >>conftest.$ac_ext <<_ACEOF
30055 /* end confdefs.h. */
30057 /* Override any GCC internal prototype to avoid an error.
30058 Use char because int might match the return type of a GCC
30059 builtin and then its argument prototype would still apply. */
30067 return dnet_ntoa ();
30072 rm -f conftest.$ac_objext conftest$ac_exeext
30073 if { (ac_try="$ac_link"
30074 case "(($ac_try" in
30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_link") 2>conftest.er1
30081 grep -v '^ *+' conftest.er1 >conftest.err
30083 cat conftest.err >&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); } && {
30086 test -z "$ac_cxx_werror_flag" ||
30087 test ! -s conftest.err
30088 } && test -s conftest$ac_exeext &&
30089 $as_test_x conftest$ac_exeext; then
30090 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30092 echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30095 ac_cv_lib_dnet_stub_dnet_ntoa=no
30098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30099 conftest$ac_exeext conftest.$ac_ext
30100 LIBS=$ac_check_lib_save_LIBS
30102 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30103 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30104 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30105 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112 conftest$ac_exeext conftest.$ac_ext
30113 LIBS="$ac_xsave_LIBS"
30115 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30116 # to get the SysV transport functions.
30117 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30119 # The nsl library prevents programs from opening the X display
30120 # on Irix 5.2, according to T.E. Dickey.
30121 # The functions gethostbyname, getservbyname, and inet_addr are
30122 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30123 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30124 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30125 if test "${ac_cv_func_gethostbyname+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30128 cat >conftest.$ac_ext <<_ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h. */
30134 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30136 #define gethostbyname innocuous_gethostbyname
30138 /* System header to define __stub macros and hopefully few prototypes,
30139 which can conflict with char gethostbyname (); below.
30140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30141 <limits.h> exists even on freestanding compilers. */
30144 # include <limits.h>
30146 # include <assert.h>
30149 #undef gethostbyname
30151 /* Override any GCC internal prototype to avoid an error.
30152 Use char because int might match the return type of a GCC
30153 builtin and then its argument prototype would still apply. */
30157 char gethostbyname ();
30158 /* The GNU C library defines this for functions which it implements
30159 to always fail with ENOSYS. Some functions are actually named
30160 something starting with __ and the normal name is an alias. */
30161 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30168 return gethostbyname ();
30173 rm -f conftest.$ac_objext conftest$ac_exeext
30174 if { (ac_try="$ac_link"
30175 case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_link") 2>conftest.er1
30182 grep -v '^ *+' conftest.er1 >conftest.err
30184 cat conftest.err >&5
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } && {
30187 test -z "$ac_cxx_werror_flag" ||
30188 test ! -s conftest.err
30189 } && test -s conftest$ac_exeext &&
30190 $as_test_x conftest$ac_exeext; then
30191 ac_cv_func_gethostbyname=yes
30193 echo "$as_me: failed program was:" >&5
30194 sed 's/^/| /' conftest.$ac_ext >&5
30196 ac_cv_func_gethostbyname=no
30199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30200 conftest$ac_exeext conftest.$ac_ext
30202 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30203 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30205 if test $ac_cv_func_gethostbyname = no; then
30206 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30207 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30208 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30209 echo $ECHO_N "(cached) $ECHO_C" >&6
30211 ac_check_lib_save_LIBS=$LIBS
30213 cat >conftest.$ac_ext <<_ACEOF
30216 cat confdefs.h >>conftest.$ac_ext
30217 cat >>conftest.$ac_ext <<_ACEOF
30218 /* end confdefs.h. */
30220 /* Override any GCC internal prototype to avoid an error.
30221 Use char because int might match the return type of a GCC
30222 builtin and then its argument prototype would still apply. */
30226 char gethostbyname ();
30230 return gethostbyname ();
30235 rm -f conftest.$ac_objext conftest$ac_exeext
30236 if { (ac_try="$ac_link"
30237 case "(($ac_try" in
30238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30239 *) ac_try_echo=$ac_try;;
30241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30242 (eval "$ac_link") 2>conftest.er1
30244 grep -v '^ *+' conftest.er1 >conftest.err
30246 cat conftest.err >&5
30247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248 (exit $ac_status); } && {
30249 test -z "$ac_cxx_werror_flag" ||
30250 test ! -s conftest.err
30251 } && test -s conftest$ac_exeext &&
30252 $as_test_x conftest$ac_exeext; then
30253 ac_cv_lib_nsl_gethostbyname=yes
30255 echo "$as_me: failed program was:" >&5
30256 sed 's/^/| /' conftest.$ac_ext >&5
30258 ac_cv_lib_nsl_gethostbyname=no
30261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30262 conftest$ac_exeext conftest.$ac_ext
30263 LIBS=$ac_check_lib_save_LIBS
30265 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30266 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30267 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30271 if test $ac_cv_lib_nsl_gethostbyname = no; then
30272 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30273 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30274 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30275 echo $ECHO_N "(cached) $ECHO_C" >&6
30277 ac_check_lib_save_LIBS=$LIBS
30279 cat >conftest.$ac_ext <<_ACEOF
30282 cat confdefs.h >>conftest.$ac_ext
30283 cat >>conftest.$ac_ext <<_ACEOF
30284 /* end confdefs.h. */
30286 /* Override any GCC internal prototype to avoid an error.
30287 Use char because int might match the return type of a GCC
30288 builtin and then its argument prototype would still apply. */
30292 char gethostbyname ();
30296 return gethostbyname ();
30301 rm -f conftest.$ac_objext conftest$ac_exeext
30302 if { (ac_try="$ac_link"
30303 case "(($ac_try" in
30304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30305 *) ac_try_echo=$ac_try;;
30307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30308 (eval "$ac_link") 2>conftest.er1
30310 grep -v '^ *+' conftest.er1 >conftest.err
30312 cat conftest.err >&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); } && {
30315 test -z "$ac_cxx_werror_flag" ||
30316 test ! -s conftest.err
30317 } && test -s conftest$ac_exeext &&
30318 $as_test_x conftest$ac_exeext; then
30319 ac_cv_lib_bsd_gethostbyname=yes
30321 echo "$as_me: failed program was:" >&5
30322 sed 's/^/| /' conftest.$ac_ext >&5
30324 ac_cv_lib_bsd_gethostbyname=no
30327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30328 conftest$ac_exeext conftest.$ac_ext
30329 LIBS=$ac_check_lib_save_LIBS
30331 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30332 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30333 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30340 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30341 # socket/setsockopt and other routines are undefined under SCO ODT
30342 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30343 # on later versions), says Simon Leinen: it contains gethostby*
30344 # variants that don't use the name server (or something). -lsocket
30345 # must be given before -lnsl if both are needed. We assume that
30346 # if connect needs -lnsl, so does gethostbyname.
30347 { echo "$as_me:$LINENO: checking for connect" >&5
30348 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30349 if test "${ac_cv_func_connect+set}" = set; then
30350 echo $ECHO_N "(cached) $ECHO_C" >&6
30352 cat >conftest.$ac_ext <<_ACEOF
30355 cat confdefs.h >>conftest.$ac_ext
30356 cat >>conftest.$ac_ext <<_ACEOF
30357 /* end confdefs.h. */
30358 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30360 #define connect innocuous_connect
30362 /* System header to define __stub macros and hopefully few prototypes,
30363 which can conflict with char connect (); below.
30364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30365 <limits.h> exists even on freestanding compilers. */
30368 # include <limits.h>
30370 # include <assert.h>
30375 /* Override any GCC internal prototype to avoid an error.
30376 Use char because int might match the return type of a GCC
30377 builtin and then its argument prototype would still apply. */
30382 /* The GNU C library defines this for functions which it implements
30383 to always fail with ENOSYS. Some functions are actually named
30384 something starting with __ and the normal name is an alias. */
30385 #if defined __stub_connect || defined __stub___connect
30397 rm -f conftest.$ac_objext conftest$ac_exeext
30398 if { (ac_try="$ac_link"
30399 case "(($ac_try" in
30400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30401 *) ac_try_echo=$ac_try;;
30403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30404 (eval "$ac_link") 2>conftest.er1
30406 grep -v '^ *+' conftest.er1 >conftest.err
30408 cat conftest.err >&5
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); } && {
30411 test -z "$ac_cxx_werror_flag" ||
30412 test ! -s conftest.err
30413 } && test -s conftest$ac_exeext &&
30414 $as_test_x conftest$ac_exeext; then
30415 ac_cv_func_connect=yes
30417 echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30420 ac_cv_func_connect=no
30423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30424 conftest$ac_exeext conftest.$ac_ext
30426 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30427 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30429 if test $ac_cv_func_connect = no; then
30430 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30431 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30432 if test "${ac_cv_lib_socket_connect+set}" = set; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30435 ac_check_lib_save_LIBS=$LIBS
30436 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30437 cat >conftest.$ac_ext <<_ACEOF
30440 cat confdefs.h >>conftest.$ac_ext
30441 cat >>conftest.$ac_ext <<_ACEOF
30442 /* end confdefs.h. */
30444 /* Override any GCC internal prototype to avoid an error.
30445 Use char because int might match the return type of a GCC
30446 builtin and then its argument prototype would still apply. */
30459 rm -f conftest.$ac_objext conftest$ac_exeext
30460 if { (ac_try="$ac_link"
30461 case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466 (eval "$ac_link") 2>conftest.er1
30468 grep -v '^ *+' conftest.er1 >conftest.err
30470 cat conftest.err >&5
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); } && {
30473 test -z "$ac_cxx_werror_flag" ||
30474 test ! -s conftest.err
30475 } && test -s conftest$ac_exeext &&
30476 $as_test_x conftest$ac_exeext; then
30477 ac_cv_lib_socket_connect=yes
30479 echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30482 ac_cv_lib_socket_connect=no
30485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30486 conftest$ac_exeext conftest.$ac_ext
30487 LIBS=$ac_check_lib_save_LIBS
30489 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30490 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30491 if test $ac_cv_lib_socket_connect = yes; then
30492 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30497 # Guillermo Gomez says -lposix is necessary on A/UX.
30498 { echo "$as_me:$LINENO: checking for remove" >&5
30499 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30500 if test "${ac_cv_func_remove+set}" = set; then
30501 echo $ECHO_N "(cached) $ECHO_C" >&6
30503 cat >conftest.$ac_ext <<_ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30509 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30511 #define remove innocuous_remove
30513 /* System header to define __stub macros and hopefully few prototypes,
30514 which can conflict with char remove (); below.
30515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30516 <limits.h> exists even on freestanding compilers. */
30519 # include <limits.h>
30521 # include <assert.h>
30526 /* Override any GCC internal prototype to avoid an error.
30527 Use char because int might match the return type of a GCC
30528 builtin and then its argument prototype would still apply. */
30533 /* The GNU C library defines this for functions which it implements
30534 to always fail with ENOSYS. Some functions are actually named
30535 something starting with __ and the normal name is an alias. */
30536 #if defined __stub_remove || defined __stub___remove
30548 rm -f conftest.$ac_objext conftest$ac_exeext
30549 if { (ac_try="$ac_link"
30550 case "(($ac_try" in
30551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552 *) ac_try_echo=$ac_try;;
30554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555 (eval "$ac_link") 2>conftest.er1
30557 grep -v '^ *+' conftest.er1 >conftest.err
30559 cat conftest.err >&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); } && {
30562 test -z "$ac_cxx_werror_flag" ||
30563 test ! -s conftest.err
30564 } && test -s conftest$ac_exeext &&
30565 $as_test_x conftest$ac_exeext; then
30566 ac_cv_func_remove=yes
30568 echo "$as_me: failed program was:" >&5
30569 sed 's/^/| /' conftest.$ac_ext >&5
30571 ac_cv_func_remove=no
30574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30575 conftest$ac_exeext conftest.$ac_ext
30577 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30578 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30580 if test $ac_cv_func_remove = no; then
30581 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30582 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30583 if test "${ac_cv_lib_posix_remove+set}" = set; then
30584 echo $ECHO_N "(cached) $ECHO_C" >&6
30586 ac_check_lib_save_LIBS=$LIBS
30587 LIBS="-lposix $LIBS"
30588 cat >conftest.$ac_ext <<_ACEOF
30591 cat confdefs.h >>conftest.$ac_ext
30592 cat >>conftest.$ac_ext <<_ACEOF
30593 /* end confdefs.h. */
30595 /* Override any GCC internal prototype to avoid an error.
30596 Use char because int might match the return type of a GCC
30597 builtin and then its argument prototype would still apply. */
30610 rm -f conftest.$ac_objext conftest$ac_exeext
30611 if { (ac_try="$ac_link"
30612 case "(($ac_try" in
30613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30614 *) ac_try_echo=$ac_try;;
30616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30617 (eval "$ac_link") 2>conftest.er1
30619 grep -v '^ *+' conftest.er1 >conftest.err
30621 cat conftest.err >&5
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); } && {
30624 test -z "$ac_cxx_werror_flag" ||
30625 test ! -s conftest.err
30626 } && test -s conftest$ac_exeext &&
30627 $as_test_x conftest$ac_exeext; then
30628 ac_cv_lib_posix_remove=yes
30630 echo "$as_me: failed program was:" >&5
30631 sed 's/^/| /' conftest.$ac_ext >&5
30633 ac_cv_lib_posix_remove=no
30636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30637 conftest$ac_exeext conftest.$ac_ext
30638 LIBS=$ac_check_lib_save_LIBS
30640 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30641 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30642 if test $ac_cv_lib_posix_remove = yes; then
30643 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30648 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30649 { echo "$as_me:$LINENO: checking for shmat" >&5
30650 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30651 if test "${ac_cv_func_shmat+set}" = set; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30654 cat >conftest.$ac_ext <<_ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h. */
30660 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30662 #define shmat innocuous_shmat
30664 /* System header to define __stub macros and hopefully few prototypes,
30665 which can conflict with char shmat (); below.
30666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667 <limits.h> exists even on freestanding compilers. */
30670 # include <limits.h>
30672 # include <assert.h>
30677 /* Override any GCC internal prototype to avoid an error.
30678 Use char because int might match the return type of a GCC
30679 builtin and then its argument prototype would still apply. */
30684 /* The GNU C library defines this for functions which it implements
30685 to always fail with ENOSYS. Some functions are actually named
30686 something starting with __ and the normal name is an alias. */
30687 #if defined __stub_shmat || defined __stub___shmat
30699 rm -f conftest.$ac_objext conftest$ac_exeext
30700 if { (ac_try="$ac_link"
30701 case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_link") 2>conftest.er1
30708 grep -v '^ *+' conftest.er1 >conftest.err
30710 cat conftest.err >&5
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); } && {
30713 test -z "$ac_cxx_werror_flag" ||
30714 test ! -s conftest.err
30715 } && test -s conftest$ac_exeext &&
30716 $as_test_x conftest$ac_exeext; then
30717 ac_cv_func_shmat=yes
30719 echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.$ac_ext >&5
30722 ac_cv_func_shmat=no
30725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30726 conftest$ac_exeext conftest.$ac_ext
30728 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30729 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30731 if test $ac_cv_func_shmat = no; then
30732 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30733 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30734 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30735 echo $ECHO_N "(cached) $ECHO_C" >&6
30737 ac_check_lib_save_LIBS=$LIBS
30739 cat >conftest.$ac_ext <<_ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h. */
30746 /* Override any GCC internal prototype to avoid an error.
30747 Use char because int might match the return type of a GCC
30748 builtin and then its argument prototype would still apply. */
30761 rm -f conftest.$ac_objext conftest$ac_exeext
30762 if { (ac_try="$ac_link"
30763 case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_link") 2>conftest.er1
30770 grep -v '^ *+' conftest.er1 >conftest.err
30772 cat conftest.err >&5
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); } && {
30775 test -z "$ac_cxx_werror_flag" ||
30776 test ! -s conftest.err
30777 } && test -s conftest$ac_exeext &&
30778 $as_test_x conftest$ac_exeext; then
30779 ac_cv_lib_ipc_shmat=yes
30781 echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30784 ac_cv_lib_ipc_shmat=no
30787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30788 conftest$ac_exeext conftest.$ac_ext
30789 LIBS=$ac_check_lib_save_LIBS
30791 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30792 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30793 if test $ac_cv_lib_ipc_shmat = yes; then
30794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30800 # Check for libraries that X11R6 Xt/Xaw programs need.
30801 ac_save_LDFLAGS=$LDFLAGS
30802 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30803 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30804 # check for ICE first), but we must link in the order -lSM -lICE or
30805 # we get undefined symbols. So assume we have SM if we have ICE.
30806 # These have to be linked with before -lX11, unlike the other
30807 # libraries we check for below, so use a different variable.
30808 # John Interrante, Karl Berry
30809 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30810 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30811 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30812 echo $ECHO_N "(cached) $ECHO_C" >&6
30814 ac_check_lib_save_LIBS=$LIBS
30815 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30816 cat >conftest.$ac_ext <<_ACEOF
30819 cat confdefs.h >>conftest.$ac_ext
30820 cat >>conftest.$ac_ext <<_ACEOF
30821 /* end confdefs.h. */
30823 /* Override any GCC internal prototype to avoid an error.
30824 Use char because int might match the return type of a GCC
30825 builtin and then its argument prototype would still apply. */
30829 char IceConnectionNumber ();
30833 return IceConnectionNumber ();
30838 rm -f conftest.$ac_objext conftest$ac_exeext
30839 if { (ac_try="$ac_link"
30840 case "(($ac_try" in
30841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842 *) ac_try_echo=$ac_try;;
30844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845 (eval "$ac_link") 2>conftest.er1
30847 grep -v '^ *+' conftest.er1 >conftest.err
30849 cat conftest.err >&5
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); } && {
30852 test -z "$ac_cxx_werror_flag" ||
30853 test ! -s conftest.err
30854 } && test -s conftest$ac_exeext &&
30855 $as_test_x conftest$ac_exeext; then
30856 ac_cv_lib_ICE_IceConnectionNumber=yes
30858 echo "$as_me: failed program was:" >&5
30859 sed 's/^/| /' conftest.$ac_ext >&5
30861 ac_cv_lib_ICE_IceConnectionNumber=no
30864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30865 conftest$ac_exeext conftest.$ac_ext
30866 LIBS=$ac_check_lib_save_LIBS
30868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30869 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30870 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30871 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30874 LDFLAGS=$ac_save_LDFLAGS
30940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30945 echo $ECHO_N "(cached) $ECHO_C" >&6
30947 ac_res=`eval echo '${'$as_ac_Header'}'`
30948 { echo "$as_me:$LINENO: result: $ac_res" >&5
30949 echo "${ECHO_T}$ac_res" >&6; }
30951 # Is the header compilable?
30952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30954 cat >conftest.$ac_ext <<_ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h. */
30960 $ac_includes_default
30961 #include <$ac_header>
30963 rm -f conftest.$ac_objext
30964 if { (ac_try="$ac_compile"
30965 case "(($ac_try" in
30966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967 *) ac_try_echo=$ac_try;;
30969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30970 (eval "$ac_compile") 2>conftest.er1
30972 grep -v '^ *+' conftest.er1 >conftest.err
30974 cat conftest.err >&5
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); } && {
30977 test -z "$ac_cxx_werror_flag" ||
30978 test ! -s conftest.err
30979 } && test -s conftest.$ac_objext; then
30980 ac_header_compiler=yes
30982 echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30985 ac_header_compiler=no
30988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30990 echo "${ECHO_T}$ac_header_compiler" >&6; }
30992 # Is the header present?
30993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30995 cat >conftest.$ac_ext <<_ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h. */
31001 #include <$ac_header>
31003 if { (ac_try="$ac_cpp conftest.$ac_ext"
31004 case "(($ac_try" in
31005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006 *) ac_try_echo=$ac_try;;
31008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31011 grep -v '^ *+' conftest.er1 >conftest.err
31013 cat conftest.err >&5
31014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015 (exit $ac_status); } >/dev/null && {
31016 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31017 test ! -s conftest.err
31019 ac_header_preproc=yes
31021 echo "$as_me: failed program was:" >&5
31022 sed 's/^/| /' conftest.$ac_ext >&5
31024 ac_header_preproc=no
31027 rm -f conftest.err conftest.$ac_ext
31028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31029 echo "${ECHO_T}$ac_header_preproc" >&6; }
31031 # So? What about this header?
31032 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31038 ac_header_preproc=yes
31041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31059 echo $ECHO_N "(cached) $ECHO_C" >&6
31061 eval "$as_ac_Header=\$ac_header_preproc"
31063 ac_res=`eval echo '${'$as_ac_Header'}'`
31064 { echo "$as_me:$LINENO: result: $ac_res" >&5
31065 echo "${ECHO_T}$ac_res" >&6; }
31068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31069 cat >>confdefs.h <<_ACEOF
31070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31077 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31078 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31079 if test "${ac_cv_header_stdc+set}" = set; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31082 cat >conftest.$ac_ext <<_ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h. */
31088 #include <stdlib.h>
31089 #include <stdarg.h>
31090 #include <string.h>
31101 rm -f conftest.$ac_objext
31102 if { (ac_try="$ac_compile"
31103 case "(($ac_try" in
31104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31105 *) ac_try_echo=$ac_try;;
31107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31108 (eval "$ac_compile") 2>conftest.er1
31110 grep -v '^ *+' conftest.er1 >conftest.err
31112 cat conftest.err >&5
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); } && {
31115 test -z "$ac_cxx_werror_flag" ||
31116 test ! -s conftest.err
31117 } && test -s conftest.$ac_objext; then
31118 ac_cv_header_stdc=yes
31120 echo "$as_me: failed program was:" >&5
31121 sed 's/^/| /' conftest.$ac_ext >&5
31123 ac_cv_header_stdc=no
31126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31128 if test $ac_cv_header_stdc = yes; then
31129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31130 cat >conftest.$ac_ext <<_ACEOF
31133 cat confdefs.h >>conftest.$ac_ext
31134 cat >>conftest.$ac_ext <<_ACEOF
31135 /* end confdefs.h. */
31136 #include <string.h>
31139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31140 $EGREP "memchr" >/dev/null 2>&1; then
31143 ac_cv_header_stdc=no
31149 if test $ac_cv_header_stdc = yes; then
31150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31151 cat >conftest.$ac_ext <<_ACEOF
31154 cat confdefs.h >>conftest.$ac_ext
31155 cat >>conftest.$ac_ext <<_ACEOF
31156 /* end confdefs.h. */
31157 #include <stdlib.h>
31160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31161 $EGREP "free" >/dev/null 2>&1; then
31164 ac_cv_header_stdc=no
31170 if test $ac_cv_header_stdc = yes; then
31171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31172 if test "$cross_compiling" = yes; then
31175 cat >conftest.$ac_ext <<_ACEOF
31178 cat confdefs.h >>conftest.$ac_ext
31179 cat >>conftest.$ac_ext <<_ACEOF
31180 /* end confdefs.h. */
31182 #include <stdlib.h>
31183 #if ((' ' & 0x0FF) == 0x020)
31184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31187 # define ISLOWER(c) \
31188 (('a' <= (c) && (c) <= 'i') \
31189 || ('j' <= (c) && (c) <= 'r') \
31190 || ('s' <= (c) && (c) <= 'z'))
31191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31199 for (i = 0; i < 256; i++)
31200 if (XOR (islower (i), ISLOWER (i))
31201 || toupper (i) != TOUPPER (i))
31206 rm -f conftest$ac_exeext
31207 if { (ac_try="$ac_link"
31208 case "(($ac_try" in
31209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210 *) ac_try_echo=$ac_try;;
31212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213 (eval "$ac_link") 2>&5
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31217 { (case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_try") 2>&5
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); }; }; then
31228 echo "$as_me: program exited with status $ac_status" >&5
31229 echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31232 ( exit $ac_status )
31233 ac_cv_header_stdc=no
31235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31241 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31242 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31243 if test $ac_cv_header_stdc = yes; then
31245 cat >>confdefs.h <<\_ACEOF
31246 #define STDC_HEADERS 1
31251 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31252 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31253 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
31256 cat >conftest.$ac_ext <<_ACEOF
31259 cat confdefs.h >>conftest.$ac_ext
31260 cat >>conftest.$ac_ext <<_ACEOF
31261 /* end confdefs.h. */
31262 #include <sys/types.h>
31266 return makedev(0, 0);
31271 rm -f conftest.$ac_objext conftest$ac_exeext
31272 if { (ac_try="$ac_link"
31273 case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278 (eval "$ac_link") 2>conftest.er1
31280 grep -v '^ *+' conftest.er1 >conftest.err
31282 cat conftest.err >&5
31283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); } && {
31285 test -z "$ac_cxx_werror_flag" ||
31286 test ! -s conftest.err
31287 } && test -s conftest$ac_exeext &&
31288 $as_test_x conftest$ac_exeext; then
31289 ac_cv_header_sys_types_h_makedev=yes
31291 echo "$as_me: failed program was:" >&5
31292 sed 's/^/| /' conftest.$ac_ext >&5
31294 ac_cv_header_sys_types_h_makedev=no
31297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31298 conftest$ac_exeext conftest.$ac_ext
31301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31302 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31304 if test $ac_cv_header_sys_types_h_makedev = no; then
31305 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31306 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31307 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31308 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31309 echo $ECHO_N "(cached) $ECHO_C" >&6
31311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31312 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31314 # Is the header compilable?
31315 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31316 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31317 cat >conftest.$ac_ext <<_ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h. */
31323 $ac_includes_default
31324 #include <sys/mkdev.h>
31326 rm -f conftest.$ac_objext
31327 if { (ac_try="$ac_compile"
31328 case "(($ac_try" in
31329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330 *) ac_try_echo=$ac_try;;
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_compile") 2>conftest.er1
31335 grep -v '^ *+' conftest.er1 >conftest.err
31337 cat conftest.err >&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } && {
31340 test -z "$ac_cxx_werror_flag" ||
31341 test ! -s conftest.err
31342 } && test -s conftest.$ac_objext; then
31343 ac_header_compiler=yes
31345 echo "$as_me: failed program was:" >&5
31346 sed 's/^/| /' conftest.$ac_ext >&5
31348 ac_header_compiler=no
31351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31353 echo "${ECHO_T}$ac_header_compiler" >&6; }
31355 # Is the header present?
31356 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31357 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31358 cat >conftest.$ac_ext <<_ACEOF
31361 cat confdefs.h >>conftest.$ac_ext
31362 cat >>conftest.$ac_ext <<_ACEOF
31363 /* end confdefs.h. */
31364 #include <sys/mkdev.h>
31366 if { (ac_try="$ac_cpp conftest.$ac_ext"
31367 case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31374 grep -v '^ *+' conftest.er1 >conftest.err
31376 cat conftest.err >&5
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); } >/dev/null && {
31379 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31380 test ! -s conftest.err
31382 ac_header_preproc=yes
31384 echo "$as_me: failed program was:" >&5
31385 sed 's/^/| /' conftest.$ac_ext >&5
31387 ac_header_preproc=no
31390 rm -f conftest.err conftest.$ac_ext
31391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31392 echo "${ECHO_T}$ac_header_preproc" >&6; }
31394 # So? What about this header?
31395 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31397 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31398 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31399 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31400 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31401 ac_header_preproc=yes
31404 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31405 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31406 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31407 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31408 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31409 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31410 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31411 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31412 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31413 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31414 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31415 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31419 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31420 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31421 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31422 echo $ECHO_N "(cached) $ECHO_C" >&6
31424 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31426 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31427 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31430 if test $ac_cv_header_sys_mkdev_h = yes; then
31432 cat >>confdefs.h <<\_ACEOF
31433 #define MAJOR_IN_MKDEV 1
31440 if test $ac_cv_header_sys_mkdev_h = no; then
31441 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31442 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31443 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31444 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31445 echo $ECHO_N "(cached) $ECHO_C" >&6
31447 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31448 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31450 # Is the header compilable?
31451 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31452 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31453 cat >conftest.$ac_ext <<_ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h. */
31459 $ac_includes_default
31460 #include <sys/sysmacros.h>
31462 rm -f conftest.$ac_objext
31463 if { (ac_try="$ac_compile"
31464 case "(($ac_try" in
31465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31466 *) ac_try_echo=$ac_try;;
31468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31469 (eval "$ac_compile") 2>conftest.er1
31471 grep -v '^ *+' conftest.er1 >conftest.err
31473 cat conftest.err >&5
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } && {
31476 test -z "$ac_cxx_werror_flag" ||
31477 test ! -s conftest.err
31478 } && test -s conftest.$ac_objext; then
31479 ac_header_compiler=yes
31481 echo "$as_me: failed program was:" >&5
31482 sed 's/^/| /' conftest.$ac_ext >&5
31484 ac_header_compiler=no
31487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31489 echo "${ECHO_T}$ac_header_compiler" >&6; }
31491 # Is the header present?
31492 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31493 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31494 cat >conftest.$ac_ext <<_ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h. */
31500 #include <sys/sysmacros.h>
31502 if { (ac_try="$ac_cpp conftest.$ac_ext"
31503 case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31510 grep -v '^ *+' conftest.er1 >conftest.err
31512 cat conftest.err >&5
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); } >/dev/null && {
31515 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
31516 test ! -s conftest.err
31518 ac_header_preproc=yes
31520 echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31523 ac_header_preproc=no
31526 rm -f conftest.err conftest.$ac_ext
31527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31528 echo "${ECHO_T}$ac_header_preproc" >&6; }
31530 # So? What about this header?
31531 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31533 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31534 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31535 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31536 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31537 ac_header_preproc=yes
31540 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31541 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31542 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31543 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31544 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31545 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31546 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31547 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31548 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31549 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31550 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31551 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31555 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31556 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31557 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31558 echo $ECHO_N "(cached) $ECHO_C" >&6
31560 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31562 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31563 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31566 if test $ac_cv_header_sys_sysmacros_h = yes; then
31568 cat >>confdefs.h <<\_ACEOF
31569 #define MAJOR_IN_SYSMACROS 1
31583 ac_header_dirent=no
31584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31585 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31586 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31587 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31589 echo $ECHO_N "(cached) $ECHO_C" >&6
31591 cat >conftest.$ac_ext <<_ACEOF
31594 cat confdefs.h >>conftest.$ac_ext
31595 cat >>conftest.$ac_ext <<_ACEOF
31596 /* end confdefs.h. */
31597 #include <sys/types.h>
31609 rm -f conftest.$ac_objext
31610 if { (ac_try="$ac_compile"
31611 case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_compile") 2>conftest.er1
31618 grep -v '^ *+' conftest.er1 >conftest.err
31620 cat conftest.err >&5
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); } && {
31623 test -z "$ac_cxx_werror_flag" ||
31624 test ! -s conftest.err
31625 } && test -s conftest.$ac_objext; then
31626 eval "$as_ac_Header=yes"
31628 echo "$as_me: failed program was:" >&5
31629 sed 's/^/| /' conftest.$ac_ext >&5
31631 eval "$as_ac_Header=no"
31634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31636 ac_res=`eval echo '${'$as_ac_Header'}'`
31637 { echo "$as_me:$LINENO: result: $ac_res" >&5
31638 echo "${ECHO_T}$ac_res" >&6; }
31639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31640 cat >>confdefs.h <<_ACEOF
31641 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31644 ac_header_dirent=$ac_hdr; break
31648 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31649 if test $ac_header_dirent = dirent.h; then
31650 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31651 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31652 if test "${ac_cv_search_opendir+set}" = set; then
31653 echo $ECHO_N "(cached) $ECHO_C" >&6
31655 ac_func_search_save_LIBS=$LIBS
31656 cat >conftest.$ac_ext <<_ACEOF
31659 cat confdefs.h >>conftest.$ac_ext
31660 cat >>conftest.$ac_ext <<_ACEOF
31661 /* end confdefs.h. */
31663 /* Override any GCC internal prototype to avoid an error.
31664 Use char because int might match the return type of a GCC
31665 builtin and then its argument prototype would still apply. */
31678 for ac_lib in '' dir; do
31679 if test -z "$ac_lib"; then
31680 ac_res="none required"
31683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31685 rm -f conftest.$ac_objext conftest$ac_exeext
31686 if { (ac_try="$ac_link"
31687 case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692 (eval "$ac_link") 2>conftest.er1
31694 grep -v '^ *+' conftest.er1 >conftest.err
31696 cat conftest.err >&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } && {
31699 test -z "$ac_cxx_werror_flag" ||
31700 test ! -s conftest.err
31701 } && test -s conftest$ac_exeext &&
31702 $as_test_x conftest$ac_exeext; then
31703 ac_cv_search_opendir=$ac_res
31705 echo "$as_me: failed program was:" >&5
31706 sed 's/^/| /' conftest.$ac_ext >&5
31711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31713 if test "${ac_cv_search_opendir+set}" = set; then
31717 if test "${ac_cv_search_opendir+set}" = set; then
31720 ac_cv_search_opendir=no
31722 rm conftest.$ac_ext
31723 LIBS=$ac_func_search_save_LIBS
31725 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31726 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31727 ac_res=$ac_cv_search_opendir
31728 if test "$ac_res" != no; then
31729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31734 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31735 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31736 if test "${ac_cv_search_opendir+set}" = set; then
31737 echo $ECHO_N "(cached) $ECHO_C" >&6
31739 ac_func_search_save_LIBS=$LIBS
31740 cat >conftest.$ac_ext <<_ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h. */
31747 /* Override any GCC internal prototype to avoid an error.
31748 Use char because int might match the return type of a GCC
31749 builtin and then its argument prototype would still apply. */
31762 for ac_lib in '' x; do
31763 if test -z "$ac_lib"; then
31764 ac_res="none required"
31767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31769 rm -f conftest.$ac_objext conftest$ac_exeext
31770 if { (ac_try="$ac_link"
31771 case "(($ac_try" in
31772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773 *) ac_try_echo=$ac_try;;
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776 (eval "$ac_link") 2>conftest.er1
31778 grep -v '^ *+' conftest.er1 >conftest.err
31780 cat conftest.err >&5
31781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); } && {
31783 test -z "$ac_cxx_werror_flag" ||
31784 test ! -s conftest.err
31785 } && test -s conftest$ac_exeext &&
31786 $as_test_x conftest$ac_exeext; then
31787 ac_cv_search_opendir=$ac_res
31789 echo "$as_me: failed program was:" >&5
31790 sed 's/^/| /' conftest.$ac_ext >&5
31795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31797 if test "${ac_cv_search_opendir+set}" = set; then
31801 if test "${ac_cv_search_opendir+set}" = set; then
31804 ac_cv_search_opendir=no
31806 rm conftest.$ac_ext
31807 LIBS=$ac_func_search_save_LIBS
31809 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31810 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31811 ac_res=$ac_cv_search_opendir
31812 if test "$ac_res" != no; then
31813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31819 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31820 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31821 if test "${ac_cv_header_stat_broken+set}" = set; then
31822 echo $ECHO_N "(cached) $ECHO_C" >&6
31824 cat >conftest.$ac_ext <<_ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31830 #include <sys/types.h>
31831 #include <sys/stat.h>
31833 #if defined S_ISBLK && defined S_IFDIR
31834 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31837 #if defined S_ISBLK && defined S_IFCHR
31838 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31841 #if defined S_ISLNK && defined S_IFREG
31842 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31845 #if defined S_ISSOCK && defined S_IFREG
31846 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31850 rm -f conftest.$ac_objext
31851 if { (ac_try="$ac_compile"
31852 case "(($ac_try" in
31853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854 *) ac_try_echo=$ac_try;;
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857 (eval "$ac_compile") 2>conftest.er1
31859 grep -v '^ *+' conftest.er1 >conftest.err
31861 cat conftest.err >&5
31862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31863 (exit $ac_status); } && {
31864 test -z "$ac_cxx_werror_flag" ||
31865 test ! -s conftest.err
31866 } && test -s conftest.$ac_objext; then
31867 ac_cv_header_stat_broken=no
31869 echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31872 ac_cv_header_stat_broken=yes
31875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31877 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31878 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31879 if test $ac_cv_header_stat_broken = yes; then
31881 cat >>confdefs.h <<\_ACEOF
31882 #define STAT_MACROS_BROKEN 1
31887 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31888 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31889 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31890 echo $ECHO_N "(cached) $ECHO_C" >&6
31892 cat >conftest.$ac_ext <<_ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h. */
31898 #include <sys/types.h>
31899 #include <sys/wait.h>
31900 #ifndef WEXITSTATUS
31901 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31904 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31912 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31917 rm -f conftest.$ac_objext
31918 if { (ac_try="$ac_compile"
31919 case "(($ac_try" in
31920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921 *) ac_try_echo=$ac_try;;
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924 (eval "$ac_compile") 2>conftest.er1
31926 grep -v '^ *+' conftest.er1 >conftest.err
31928 cat conftest.err >&5
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); } && {
31931 test -z "$ac_cxx_werror_flag" ||
31932 test ! -s conftest.err
31933 } && test -s conftest.$ac_objext; then
31934 ac_cv_header_sys_wait_h=yes
31936 echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31939 ac_cv_header_sys_wait_h=no
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31944 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31945 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31946 if test $ac_cv_header_sys_wait_h = yes; then
31948 cat >>confdefs.h <<\_ACEOF
31949 #define HAVE_SYS_WAIT_H 1
31954 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31955 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31956 if test "${ac_cv_header_time+set}" = set; then
31957 echo $ECHO_N "(cached) $ECHO_C" >&6
31959 cat >conftest.$ac_ext <<_ACEOF
31962 cat confdefs.h >>conftest.$ac_ext
31963 cat >>conftest.$ac_ext <<_ACEOF
31964 /* end confdefs.h. */
31965 #include <sys/types.h>
31966 #include <sys/time.h>
31972 if ((struct tm *) 0)
31978 rm -f conftest.$ac_objext
31979 if { (ac_try="$ac_compile"
31980 case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_compile") 2>conftest.er1
31987 grep -v '^ *+' conftest.er1 >conftest.err
31989 cat conftest.err >&5
31990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 (exit $ac_status); } && {
31992 test -z "$ac_cxx_werror_flag" ||
31993 test ! -s conftest.err
31994 } && test -s conftest.$ac_objext; then
31995 ac_cv_header_time=yes
31997 echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
32000 ac_cv_header_time=no
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32005 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32006 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32007 if test $ac_cv_header_time = yes; then
32009 cat >>confdefs.h <<\_ACEOF
32010 #define TIME_WITH_SYS_TIME 1
32015 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32016 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32017 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32018 echo $ECHO_N "(cached) $ECHO_C" >&6
32020 cat >conftest.$ac_ext <<_ACEOF
32023 cat confdefs.h >>conftest.$ac_ext
32024 cat >>conftest.$ac_ext <<_ACEOF
32025 /* end confdefs.h. */
32026 $ac_includes_default
32030 static struct stat ac_aggr;
32031 if (ac_aggr.st_blksize)
32037 rm -f conftest.$ac_objext
32038 if { (ac_try="$ac_compile"
32039 case "(($ac_try" in
32040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32041 *) ac_try_echo=$ac_try;;
32043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32044 (eval "$ac_compile") 2>conftest.er1
32046 grep -v '^ *+' conftest.er1 >conftest.err
32048 cat conftest.err >&5
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); } && {
32051 test -z "$ac_cxx_werror_flag" ||
32052 test ! -s conftest.err
32053 } && test -s conftest.$ac_objext; then
32054 ac_cv_member_struct_stat_st_blksize=yes
32056 echo "$as_me: failed program was:" >&5
32057 sed 's/^/| /' conftest.$ac_ext >&5
32059 cat >conftest.$ac_ext <<_ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h. */
32065 $ac_includes_default
32069 static struct stat ac_aggr;
32070 if (sizeof ac_aggr.st_blksize)
32076 rm -f conftest.$ac_objext
32077 if { (ac_try="$ac_compile"
32078 case "(($ac_try" in
32079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080 *) ac_try_echo=$ac_try;;
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083 (eval "$ac_compile") 2>conftest.er1
32085 grep -v '^ *+' conftest.er1 >conftest.err
32087 cat conftest.err >&5
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); } && {
32090 test -z "$ac_cxx_werror_flag" ||
32091 test ! -s conftest.err
32092 } && test -s conftest.$ac_objext; then
32093 ac_cv_member_struct_stat_st_blksize=yes
32095 echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32098 ac_cv_member_struct_stat_st_blksize=no
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32106 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32107 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32108 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32110 cat >>confdefs.h <<_ACEOF
32111 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32115 cat >>confdefs.h <<\_ACEOF
32116 #define HAVE_ST_BLKSIZE 1
32122 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32123 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32124 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32125 echo $ECHO_N "(cached) $ECHO_C" >&6
32127 cat >conftest.$ac_ext <<_ACEOF
32130 cat confdefs.h >>conftest.$ac_ext
32131 cat >>conftest.$ac_ext <<_ACEOF
32132 /* end confdefs.h. */
32133 $ac_includes_default
32137 static struct stat ac_aggr;
32138 if (ac_aggr.st_blocks)
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148 *) ac_try_echo=$ac_try;;
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151 (eval "$ac_compile") 2>conftest.er1
32153 grep -v '^ *+' conftest.er1 >conftest.err
32155 cat conftest.err >&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } && {
32158 test -z "$ac_cxx_werror_flag" ||
32159 test ! -s conftest.err
32160 } && test -s conftest.$ac_objext; then
32161 ac_cv_member_struct_stat_st_blocks=yes
32163 echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32166 cat >conftest.$ac_ext <<_ACEOF
32169 cat confdefs.h >>conftest.$ac_ext
32170 cat >>conftest.$ac_ext <<_ACEOF
32171 /* end confdefs.h. */
32172 $ac_includes_default
32176 static struct stat ac_aggr;
32177 if (sizeof ac_aggr.st_blocks)
32183 rm -f conftest.$ac_objext
32184 if { (ac_try="$ac_compile"
32185 case "(($ac_try" in
32186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187 *) ac_try_echo=$ac_try;;
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190 (eval "$ac_compile") 2>conftest.er1
32192 grep -v '^ *+' conftest.er1 >conftest.err
32194 cat conftest.err >&5
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); } && {
32197 test -z "$ac_cxx_werror_flag" ||
32198 test ! -s conftest.err
32199 } && test -s conftest.$ac_objext; then
32200 ac_cv_member_struct_stat_st_blocks=yes
32202 echo "$as_me: failed program was:" >&5
32203 sed 's/^/| /' conftest.$ac_ext >&5
32205 ac_cv_member_struct_stat_st_blocks=no
32208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32213 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32214 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32215 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32217 cat >>confdefs.h <<_ACEOF
32218 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32222 cat >>confdefs.h <<\_ACEOF
32223 #define HAVE_ST_BLOCKS 1
32227 case " $LIBOBJS " in
32228 *" fileblocks.$ac_objext "* ) ;;
32229 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32236 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32237 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32238 if test "${ac_cv_struct_tm+set}" = set; then
32239 echo $ECHO_N "(cached) $ECHO_C" >&6
32241 cat >conftest.$ac_ext <<_ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h. */
32247 #include <sys/types.h>
32254 int *p = &tm.tm_sec;
32260 rm -f conftest.$ac_objext
32261 if { (ac_try="$ac_compile"
32262 case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_compile") 2>conftest.er1
32269 grep -v '^ *+' conftest.er1 >conftest.err
32271 cat conftest.err >&5
32272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273 (exit $ac_status); } && {
32274 test -z "$ac_cxx_werror_flag" ||
32275 test ! -s conftest.err
32276 } && test -s conftest.$ac_objext; then
32277 ac_cv_struct_tm=time.h
32279 echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32282 ac_cv_struct_tm=sys/time.h
32285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32287 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32288 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32289 if test $ac_cv_struct_tm = sys/time.h; then
32291 cat >>confdefs.h <<\_ACEOF
32292 #define TM_IN_SYS_TIME 1
32297 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32298 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32299 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32302 cat >conftest.$ac_ext <<_ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h. */
32308 #include <sys/types.h>
32309 #include <$ac_cv_struct_tm>
32315 static struct tm ac_aggr;
32316 if (ac_aggr.tm_zone)
32322 rm -f conftest.$ac_objext
32323 if { (ac_try="$ac_compile"
32324 case "(($ac_try" in
32325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326 *) ac_try_echo=$ac_try;;
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329 (eval "$ac_compile") 2>conftest.er1
32331 grep -v '^ *+' conftest.er1 >conftest.err
32333 cat conftest.err >&5
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); } && {
32336 test -z "$ac_cxx_werror_flag" ||
32337 test ! -s conftest.err
32338 } && test -s conftest.$ac_objext; then
32339 ac_cv_member_struct_tm_tm_zone=yes
32341 echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32344 cat >conftest.$ac_ext <<_ACEOF
32347 cat confdefs.h >>conftest.$ac_ext
32348 cat >>conftest.$ac_ext <<_ACEOF
32349 /* end confdefs.h. */
32350 #include <sys/types.h>
32351 #include <$ac_cv_struct_tm>
32357 static struct tm ac_aggr;
32358 if (sizeof ac_aggr.tm_zone)
32364 rm -f conftest.$ac_objext
32365 if { (ac_try="$ac_compile"
32366 case "(($ac_try" in
32367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368 *) ac_try_echo=$ac_try;;
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371 (eval "$ac_compile") 2>conftest.er1
32373 grep -v '^ *+' conftest.er1 >conftest.err
32375 cat conftest.err >&5
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); } && {
32378 test -z "$ac_cxx_werror_flag" ||
32379 test ! -s conftest.err
32380 } && test -s conftest.$ac_objext; then
32381 ac_cv_member_struct_tm_tm_zone=yes
32383 echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32386 ac_cv_member_struct_tm_tm_zone=no
32389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32394 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32395 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32396 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32398 cat >>confdefs.h <<_ACEOF
32399 #define HAVE_STRUCT_TM_TM_ZONE 1
32405 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32407 cat >>confdefs.h <<\_ACEOF
32408 #define HAVE_TM_ZONE 1
32412 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32413 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32414 if test "${ac_cv_have_decl_tzname+set}" = set; then
32415 echo $ECHO_N "(cached) $ECHO_C" >&6
32417 cat >conftest.$ac_ext <<_ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h. */
32436 rm -f conftest.$ac_objext
32437 if { (ac_try="$ac_compile"
32438 case "(($ac_try" in
32439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440 *) ac_try_echo=$ac_try;;
32442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443 (eval "$ac_compile") 2>conftest.er1
32445 grep -v '^ *+' conftest.er1 >conftest.err
32447 cat conftest.err >&5
32448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449 (exit $ac_status); } && {
32450 test -z "$ac_cxx_werror_flag" ||
32451 test ! -s conftest.err
32452 } && test -s conftest.$ac_objext; then
32453 ac_cv_have_decl_tzname=yes
32455 echo "$as_me: failed program was:" >&5
32456 sed 's/^/| /' conftest.$ac_ext >&5
32458 ac_cv_have_decl_tzname=no
32461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32463 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32464 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32465 if test $ac_cv_have_decl_tzname = yes; then
32467 cat >>confdefs.h <<_ACEOF
32468 #define HAVE_DECL_TZNAME 1
32473 cat >>confdefs.h <<_ACEOF
32474 #define HAVE_DECL_TZNAME 0
32481 { echo "$as_me:$LINENO: checking for tzname" >&5
32482 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32483 if test "${ac_cv_var_tzname+set}" = set; then
32484 echo $ECHO_N "(cached) $ECHO_C" >&6
32486 cat >conftest.$ac_ext <<_ACEOF
32489 cat confdefs.h >>conftest.$ac_ext
32490 cat >>conftest.$ac_ext <<_ACEOF
32491 /* end confdefs.h. */
32493 #if !HAVE_DECL_TZNAME
32494 extern char *tzname[];
32500 return tzname[0][0];
32505 rm -f conftest.$ac_objext conftest$ac_exeext
32506 if { (ac_try="$ac_link"
32507 case "(($ac_try" in
32508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32509 *) ac_try_echo=$ac_try;;
32511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32512 (eval "$ac_link") 2>conftest.er1
32514 grep -v '^ *+' conftest.er1 >conftest.err
32516 cat conftest.err >&5
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); } && {
32519 test -z "$ac_cxx_werror_flag" ||
32520 test ! -s conftest.err
32521 } && test -s conftest$ac_exeext &&
32522 $as_test_x conftest$ac_exeext; then
32523 ac_cv_var_tzname=yes
32525 echo "$as_me: failed program was:" >&5
32526 sed 's/^/| /' conftest.$ac_ext >&5
32528 ac_cv_var_tzname=no
32531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32532 conftest$ac_exeext conftest.$ac_ext
32534 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32535 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32536 if test $ac_cv_var_tzname = yes; then
32538 cat >>confdefs.h <<\_ACEOF
32539 #define HAVE_TZNAME 1
32546 { echo "$as_me:$LINENO: checking for utime.h" >&5
32547 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32548 if test "${ba_cv_header_utime_h+set}" = set; then
32549 echo $ECHO_N "(cached) $ECHO_C" >&6
32552 cat >conftest.$ac_ext <<_ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h. */
32559 #include <sys/types.h>
32572 rm -f conftest.$ac_objext
32573 if { (ac_try="$ac_compile"
32574 case "(($ac_try" in
32575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32576 *) ac_try_echo=$ac_try;;
32578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32579 (eval "$ac_compile") 2>conftest.er1
32581 grep -v '^ *+' conftest.er1 >conftest.err
32583 cat conftest.err >&5
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); } && {
32586 test -z "$ac_cxx_werror_flag" ||
32587 test ! -s conftest.err
32588 } && test -s conftest.$ac_objext; then
32590 ba_cv_header_utime_h=yes
32593 echo "$as_me: failed program was:" >&5
32594 sed 's/^/| /' conftest.$ac_ext >&5
32597 ba_cv_header_utime_h=no
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32606 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32607 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32608 test $ba_cv_header_utime_h = yes &&
32609 cat >>confdefs.h <<\_ACEOF
32610 #define HAVE_UTIME_H 1
32614 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32615 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32616 if test "${ba_cv_header_socklen_t+set}" = set; then
32617 echo $ECHO_N "(cached) $ECHO_C" >&6
32620 cat >conftest.$ac_ext <<_ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h. */
32627 #include <sys/types.h>
32628 #include <sys/socket.h>
32640 rm -f conftest.$ac_objext
32641 if { (ac_try="$ac_compile"
32642 case "(($ac_try" in
32643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644 *) ac_try_echo=$ac_try;;
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647 (eval "$ac_compile") 2>conftest.er1
32649 grep -v '^ *+' conftest.er1 >conftest.err
32651 cat conftest.err >&5
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); } && {
32654 test -z "$ac_cxx_werror_flag" ||
32655 test ! -s conftest.err
32656 } && test -s conftest.$ac_objext; then
32658 ba_cv_header_socklen_t=yes
32661 echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32665 ba_cv_header_socklen_t=no
32670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32674 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32675 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32676 test $ba_cv_header_socklen_t = yes &&
32677 cat >>confdefs.h <<\_ACEOF
32678 #define HAVE_SOCKLEN_T 1
32682 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32683 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32684 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32685 echo $ECHO_N "(cached) $ECHO_C" >&6
32688 cat >conftest.$ac_ext <<_ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h. */
32695 #include <unistd.h>
32696 #include <sys/types.h>
32697 #include <sys/ioctl.h>
32703 int (*d_ioctl)(int fd, unsigned long int request, ...);
32710 rm -f conftest.$ac_objext
32711 if { (ac_try="$ac_compile"
32712 case "(($ac_try" in
32713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714 *) ac_try_echo=$ac_try;;
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717 (eval "$ac_compile") 2>conftest.er1
32719 grep -v '^ *+' conftest.er1 >conftest.err
32721 cat conftest.err >&5
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); } && {
32724 test -z "$ac_cxx_werror_flag" ||
32725 test ! -s conftest.err
32726 } && test -s conftest.$ac_objext; then
32728 ba_cv_header_ioctl_req_t=yes
32731 echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32735 ba_cv_header_ioct_req_t_t=no
32740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32744 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32745 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32746 test $ba_cv_header_ioctl_req_t = yes &&
32747 cat >>confdefs.h <<\_ACEOF
32748 #define HAVE_IOCTL_ULINT_REQUEST 1
32754 ac_cpp='$CXXCPP $CPPFLAGS'
32755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32759 { echo "$as_me:$LINENO: checking for typeof" >&5
32760 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32761 if test "${ba_cv_have_typeof+set}" = set; then
32762 echo $ECHO_N "(cached) $ECHO_C" >&6
32765 if test "$cross_compiling" = yes; then
32767 ba_cv_have_typeof=no
32771 cat >conftest.$ac_ext <<_ACEOF
32774 cat confdefs.h >>conftest.$ac_ext
32775 cat >>conftest.$ac_ext <<_ACEOF
32776 /* end confdefs.h. */
32778 main(){char *a = 0; a = (typeof a)a;}
32781 rm -f conftest$ac_exeext
32782 if { (ac_try="$ac_link"
32783 case "(($ac_try" in
32784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_link") 2>&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32792 { (case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_try") 2>&5
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; }; then
32802 ba_cv_have_typeof=yes
32805 echo "$as_me: program exited with status $ac_status" >&5
32806 echo "$as_me: failed program was:" >&5
32807 sed 's/^/| /' conftest.$ac_ext >&5
32809 ( exit $ac_status )
32811 ba_cv_have_typeof=no
32814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32821 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32822 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32823 test $ba_cv_have_typeof = yes &&
32824 cat >>confdefs.h <<\_ACEOF
32825 #define HAVE_TYPEOF 1
32829 ac_cpp='$CXXCPP $CPPFLAGS'
32830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32835 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32836 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32837 if test "${ac_cv_c_const+set}" = set; then
32838 echo $ECHO_N "(cached) $ECHO_C" >&6
32840 cat >conftest.$ac_ext <<_ACEOF
32843 cat confdefs.h >>conftest.$ac_ext
32844 cat >>conftest.$ac_ext <<_ACEOF
32845 /* end confdefs.h. */
32850 /* FIXME: Include the comments suggested by Paul. */
32851 #ifndef __cplusplus
32852 /* Ultrix mips cc rejects this. */
32853 typedef int charset[2];
32855 /* SunOS 4.1.1 cc rejects this. */
32856 char const *const *pcpcc;
32858 /* NEC SVR4.0.2 mips cc rejects this. */
32859 struct point {int x, y;};
32860 static struct point const zero = {0,0};
32861 /* AIX XL C 1.02.0.0 rejects this.
32862 It does not let you subtract one const X* pointer from another in
32863 an arm of an if-expression whose if-part is not a constant
32865 const char *g = "string";
32866 pcpcc = &g + (g ? g-g : 0);
32867 /* HPUX 7.0 cc rejects these. */
32869 ppc = (char**) pcpcc;
32870 pcpcc = (char const *const *) ppc;
32871 { /* SCO 3.2v4 cc rejects this. */
32873 char const *s = 0 ? (char *) 0 : (char const *) 0;
32878 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32879 int x[] = {25, 17};
32880 const int *foo = &x[0];
32883 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32884 typedef const int *iptr;
32888 { /* AIX XL C 1.02.0.0 rejects this saying
32889 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32890 struct s { int j; const int *ap[3]; };
32891 struct s *b; b->j = 5;
32893 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32894 const int foo = 10;
32895 if (!foo) return 0;
32897 return !cs[0] && !zero.x;
32904 rm -f conftest.$ac_objext
32905 if { (ac_try="$ac_compile"
32906 case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_compile") 2>conftest.er1
32913 grep -v '^ *+' conftest.er1 >conftest.err
32915 cat conftest.err >&5
32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); } && {
32918 test -z "$ac_cxx_werror_flag" ||
32919 test ! -s conftest.err
32920 } && test -s conftest.$ac_objext; then
32923 echo "$as_me: failed program was:" >&5
32924 sed 's/^/| /' conftest.$ac_ext >&5
32929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32931 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32932 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32933 if test $ac_cv_c_const = no; then
32935 cat >>confdefs.h <<\_ACEOF
32942 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32943 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32945 # The order of these tests is important.
32946 cat >conftest.$ac_ext <<_ACEOF
32949 cat confdefs.h >>conftest.$ac_ext
32950 cat >>conftest.$ac_ext <<_ACEOF
32951 /* end confdefs.h. */
32953 #include <sys/statvfs.h>
32954 #include <sys/fstyp.h>
32957 if { (ac_try="$ac_cpp conftest.$ac_ext"
32958 case "(($ac_try" in
32959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32960 *) ac_try_echo=$ac_try;;
32962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32965 grep -v '^ *+' conftest.er1 >conftest.err
32967 cat conftest.err >&5
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); } >/dev/null && {
32970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
32971 test ! -s conftest.err
32973 cat >>confdefs.h <<\_ACEOF
32974 #define FSTYPE_STATVFS 1
32979 echo "$as_me: failed program was:" >&5
32980 sed 's/^/| /' conftest.$ac_ext >&5
32985 rm -f conftest.err conftest.$ac_ext
32986 if test $fstype = no; then
32987 cat >conftest.$ac_ext <<_ACEOF
32990 cat confdefs.h >>conftest.$ac_ext
32991 cat >>conftest.$ac_ext <<_ACEOF
32992 /* end confdefs.h. */
32994 #include <sys/statfs.h>
32995 #include <sys/fstyp.h>
32998 if { (ac_try="$ac_cpp conftest.$ac_ext"
32999 case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33006 grep -v '^ *+' conftest.er1 >conftest.err
33008 cat conftest.err >&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } >/dev/null && {
33011 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33012 test ! -s conftest.err
33014 cat >>confdefs.h <<\_ACEOF
33015 #define FSTYPE_USG_STATFS 1
33020 echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33026 rm -f conftest.err conftest.$ac_ext
33028 if test $fstype = no; then
33029 cat >conftest.$ac_ext <<_ACEOF
33032 cat confdefs.h >>conftest.$ac_ext
33033 cat >>conftest.$ac_ext <<_ACEOF
33034 /* end confdefs.h. */
33036 #include <sys/statfs.h>
33037 #include <sys/vmount.h>
33040 if { (ac_try="$ac_cpp conftest.$ac_ext"
33041 case "(($ac_try" in
33042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33043 *) ac_try_echo=$ac_try;;
33045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33048 grep -v '^ *+' conftest.er1 >conftest.err
33050 cat conftest.err >&5
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); } >/dev/null && {
33053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33054 test ! -s conftest.err
33056 cat >>confdefs.h <<\_ACEOF
33057 #define FSTYPE_AIX_STATFS 1
33062 echo "$as_me: failed program was:" >&5
33063 sed 's/^/| /' conftest.$ac_ext >&5
33068 rm -f conftest.err conftest.$ac_ext
33070 if test $fstype = no; then
33071 cat >conftest.$ac_ext <<_ACEOF
33074 cat confdefs.h >>conftest.$ac_ext
33075 cat >>conftest.$ac_ext <<_ACEOF
33076 /* end confdefs.h. */
33078 #include <mntent.h>
33081 if { (ac_try="$ac_cpp conftest.$ac_ext"
33082 case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33089 grep -v '^ *+' conftest.er1 >conftest.err
33091 cat conftest.err >&5
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); } >/dev/null && {
33094 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33095 test ! -s conftest.err
33097 cat >>confdefs.h <<\_ACEOF
33098 #define FSTYPE_MNTENT 1
33103 echo "$as_me: failed program was:" >&5
33104 sed 's/^/| /' conftest.$ac_ext >&5
33109 rm -f conftest.err conftest.$ac_ext
33111 if test $fstype = no; then
33112 cat >conftest.$ac_ext <<_ACEOF
33115 cat confdefs.h >>conftest.$ac_ext
33116 cat >>conftest.$ac_ext <<_ACEOF
33117 /* end confdefs.h. */
33118 #include <sys/mount.h>
33121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33122 $EGREP "f_type;" >/dev/null 2>&1; then
33123 cat >>confdefs.h <<\_ACEOF
33124 #define FSTYPE_STATFS 1
33131 if test $fstype = no; then
33132 cat >conftest.$ac_ext <<_ACEOF
33135 cat confdefs.h >>conftest.$ac_ext
33136 cat >>conftest.$ac_ext <<_ACEOF
33137 /* end confdefs.h. */
33139 #include <sys/mount.h>
33140 #include <sys/fs_types.h>
33143 if { (ac_try="$ac_cpp conftest.$ac_ext"
33144 case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33151 grep -v '^ *+' conftest.er1 >conftest.err
33153 cat conftest.err >&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); } >/dev/null && {
33156 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33157 test ! -s conftest.err
33159 cat >>confdefs.h <<\_ACEOF
33160 #define FSTYPE_GETMNT 1
33165 echo "$as_me: failed program was:" >&5
33166 sed 's/^/| /' conftest.$ac_ext >&5
33171 rm -f conftest.err conftest.$ac_ext
33173 { echo "$as_me:$LINENO: result: $fstype" >&5
33174 echo "${ECHO_T}$fstype" >&6; }
33176 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33177 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33178 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33179 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
33182 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33183 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33185 # Is the header compilable?
33186 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33187 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33188 cat >conftest.$ac_ext <<_ACEOF
33191 cat confdefs.h >>conftest.$ac_ext
33192 cat >>conftest.$ac_ext <<_ACEOF
33193 /* end confdefs.h. */
33194 $ac_includes_default
33195 #include <sys/statvfs.h>
33197 rm -f conftest.$ac_objext
33198 if { (ac_try="$ac_compile"
33199 case "(($ac_try" in
33200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33201 *) ac_try_echo=$ac_try;;
33203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33204 (eval "$ac_compile") 2>conftest.er1
33206 grep -v '^ *+' conftest.er1 >conftest.err
33208 cat conftest.err >&5
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); } && {
33211 test -z "$ac_cxx_werror_flag" ||
33212 test ! -s conftest.err
33213 } && test -s conftest.$ac_objext; then
33214 ac_header_compiler=yes
33216 echo "$as_me: failed program was:" >&5
33217 sed 's/^/| /' conftest.$ac_ext >&5
33219 ac_header_compiler=no
33222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33224 echo "${ECHO_T}$ac_header_compiler" >&6; }
33226 # Is the header present?
33227 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33228 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33229 cat >conftest.$ac_ext <<_ACEOF
33232 cat confdefs.h >>conftest.$ac_ext
33233 cat >>conftest.$ac_ext <<_ACEOF
33234 /* end confdefs.h. */
33235 #include <sys/statvfs.h>
33237 if { (ac_try="$ac_cpp conftest.$ac_ext"
33238 case "(($ac_try" in
33239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240 *) ac_try_echo=$ac_try;;
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33245 grep -v '^ *+' conftest.er1 >conftest.err
33247 cat conftest.err >&5
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); } >/dev/null && {
33250 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33251 test ! -s conftest.err
33253 ac_header_preproc=yes
33255 echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33258 ac_header_preproc=no
33261 rm -f conftest.err conftest.$ac_ext
33262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33263 echo "${ECHO_T}$ac_header_preproc" >&6; }
33265 # So? What about this header?
33266 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
33268 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33269 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33270 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33271 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33272 ac_header_preproc=yes
33275 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33276 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33277 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33278 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33279 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33280 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33281 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33282 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33283 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33284 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33285 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33286 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33290 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33291 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33292 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33293 echo $ECHO_N "(cached) $ECHO_C" >&6
33295 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33297 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33298 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33301 if test $ac_cv_header_sys_statvfs_h = yes; then
33303 cat >>confdefs.h <<\_ACEOF
33304 #define HAVE_SYS_STATVFS_H 1
33311 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33312 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33313 if test "${ac_cv_type_signal+set}" = set; then
33314 echo $ECHO_N "(cached) $ECHO_C" >&6
33316 cat >conftest.$ac_ext <<_ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h. */
33322 #include <sys/types.h>
33323 #include <signal.h>
33328 return *(signal (0, 0)) (0) == 1;
33333 rm -f conftest.$ac_objext
33334 if { (ac_try="$ac_compile"
33335 case "(($ac_try" in
33336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33337 *) ac_try_echo=$ac_try;;
33339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33340 (eval "$ac_compile") 2>conftest.er1
33342 grep -v '^ *+' conftest.er1 >conftest.err
33344 cat conftest.err >&5
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); } && {
33347 test -z "$ac_cxx_werror_flag" ||
33348 test ! -s conftest.err
33349 } && test -s conftest.$ac_objext; then
33350 ac_cv_type_signal=int
33352 echo "$as_me: failed program was:" >&5
33353 sed 's/^/| /' conftest.$ac_ext >&5
33355 ac_cv_type_signal=void
33358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33360 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33361 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33363 cat >>confdefs.h <<_ACEOF
33364 #define RETSIGTYPE $ac_cv_type_signal
33369 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33370 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33371 if test "${bash_cv_signal_vintage+set}" = set; then
33372 echo $ECHO_N "(cached) $ECHO_C" >&6
33375 cat >conftest.$ac_ext <<_ACEOF
33378 cat confdefs.h >>conftest.$ac_ext
33379 cat >>conftest.$ac_ext <<_ACEOF
33380 /* end confdefs.h. */
33381 #include <signal.h>
33387 struct sigaction sa;
33388 sigemptyset(&ss); sigsuspend(&ss);
33389 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33390 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33396 rm -f conftest.$ac_objext conftest$ac_exeext
33397 if { (ac_try="$ac_link"
33398 case "(($ac_try" in
33399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400 *) ac_try_echo=$ac_try;;
33402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33403 (eval "$ac_link") 2>conftest.er1
33405 grep -v '^ *+' conftest.er1 >conftest.err
33407 cat conftest.err >&5
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); } && {
33410 test -z "$ac_cxx_werror_flag" ||
33411 test ! -s conftest.err
33412 } && test -s conftest$ac_exeext &&
33413 $as_test_x conftest$ac_exeext; then
33414 bash_cv_signal_vintage="posix"
33416 echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33420 cat >conftest.$ac_ext <<_ACEOF
33423 cat confdefs.h >>conftest.$ac_ext
33424 cat >>conftest.$ac_ext <<_ACEOF
33425 /* end confdefs.h. */
33426 #include <signal.h>
33431 int mask = sigmask(SIGINT);
33432 sigsetmask(mask); sigblock(mask); sigpause(mask);
33438 rm -f conftest.$ac_objext conftest$ac_exeext
33439 if { (ac_try="$ac_link"
33440 case "(($ac_try" in
33441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442 *) ac_try_echo=$ac_try;;
33444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445 (eval "$ac_link") 2>conftest.er1
33447 grep -v '^ *+' conftest.er1 >conftest.err
33449 cat conftest.err >&5
33450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451 (exit $ac_status); } && {
33452 test -z "$ac_cxx_werror_flag" ||
33453 test ! -s conftest.err
33454 } && test -s conftest$ac_exeext &&
33455 $as_test_x conftest$ac_exeext; then
33456 bash_cv_signal_vintage="4.2bsd"
33458 echo "$as_me: failed program was:" >&5
33459 sed 's/^/| /' conftest.$ac_ext >&5
33462 cat >conftest.$ac_ext <<_ACEOF
33465 cat confdefs.h >>conftest.$ac_ext
33466 cat >>conftest.$ac_ext <<_ACEOF
33467 /* end confdefs.h. */
33469 #include <signal.h>
33470 RETSIGTYPE foo() { }
33475 int mask = sigmask(SIGINT);
33476 sigset(SIGINT, foo); sigrelse(SIGINT);
33477 sighold(SIGINT); sigpause(SIGINT);
33483 rm -f conftest.$ac_objext conftest$ac_exeext
33484 if { (ac_try="$ac_link"
33485 case "(($ac_try" in
33486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33487 *) ac_try_echo=$ac_try;;
33489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33490 (eval "$ac_link") 2>conftest.er1
33492 grep -v '^ *+' conftest.er1 >conftest.err
33494 cat conftest.err >&5
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); } && {
33497 test -z "$ac_cxx_werror_flag" ||
33498 test ! -s conftest.err
33499 } && test -s conftest$ac_exeext &&
33500 $as_test_x conftest$ac_exeext; then
33501 bash_cv_signal_vintage="svr3"
33503 echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33506 bash_cv_signal_vintage="v7"
33510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33511 conftest$ac_exeext conftest.$ac_ext
33515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33516 conftest$ac_exeext conftest.$ac_ext
33520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33521 conftest$ac_exeext conftest.$ac_ext
33525 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33526 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33527 if test "$bash_cv_signal_vintage" = "posix"; then
33528 cat >>confdefs.h <<\_ACEOF
33529 #define HAVE_POSIX_SIGNALS 1
33532 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33533 cat >>confdefs.h <<\_ACEOF
33534 #define HAVE_BSD_SIGNALS 1
33537 elif test "$bash_cv_signal_vintage" = "svr3"; then
33538 cat >>confdefs.h <<\_ACEOF
33539 #define HAVE_USG_SIGHOLD 1
33544 { echo "$as_me:$LINENO: checking for mode_t" >&5
33545 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33546 if test "${ac_cv_type_mode_t+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33549 cat >conftest.$ac_ext <<_ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h. */
33555 $ac_includes_default
33556 typedef mode_t ac__type_new_;
33560 if ((ac__type_new_ *) 0)
33562 if (sizeof (ac__type_new_))
33568 rm -f conftest.$ac_objext
33569 if { (ac_try="$ac_compile"
33570 case "(($ac_try" in
33571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33572 *) ac_try_echo=$ac_try;;
33574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33575 (eval "$ac_compile") 2>conftest.er1
33577 grep -v '^ *+' conftest.er1 >conftest.err
33579 cat conftest.err >&5
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); } && {
33582 test -z "$ac_cxx_werror_flag" ||
33583 test ! -s conftest.err
33584 } && test -s conftest.$ac_objext; then
33585 ac_cv_type_mode_t=yes
33587 echo "$as_me: failed program was:" >&5
33588 sed 's/^/| /' conftest.$ac_ext >&5
33590 ac_cv_type_mode_t=no
33593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33595 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33596 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33597 if test $ac_cv_type_mode_t = yes; then
33601 cat >>confdefs.h <<_ACEOF
33607 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33608 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33609 if test "${ac_cv_type_uid_t+set}" = set; then
33610 echo $ECHO_N "(cached) $ECHO_C" >&6
33612 cat >conftest.$ac_ext <<_ACEOF
33615 cat confdefs.h >>conftest.$ac_ext
33616 cat >>conftest.$ac_ext <<_ACEOF
33617 /* end confdefs.h. */
33618 #include <sys/types.h>
33621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33622 $EGREP "uid_t" >/dev/null 2>&1; then
33623 ac_cv_type_uid_t=yes
33625 ac_cv_type_uid_t=no
33630 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33631 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33632 if test $ac_cv_type_uid_t = no; then
33634 cat >>confdefs.h <<\_ACEOF
33639 cat >>confdefs.h <<\_ACEOF
33645 { echo "$as_me:$LINENO: checking for size_t" >&5
33646 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33647 if test "${ac_cv_type_size_t+set}" = set; then
33648 echo $ECHO_N "(cached) $ECHO_C" >&6
33650 cat >conftest.$ac_ext <<_ACEOF
33653 cat confdefs.h >>conftest.$ac_ext
33654 cat >>conftest.$ac_ext <<_ACEOF
33655 /* end confdefs.h. */
33656 $ac_includes_default
33657 typedef size_t ac__type_new_;
33661 if ((ac__type_new_ *) 0)
33663 if (sizeof (ac__type_new_))
33669 rm -f conftest.$ac_objext
33670 if { (ac_try="$ac_compile"
33671 case "(($ac_try" in
33672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673 *) ac_try_echo=$ac_try;;
33675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676 (eval "$ac_compile") 2>conftest.er1
33678 grep -v '^ *+' conftest.er1 >conftest.err
33680 cat conftest.err >&5
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); } && {
33683 test -z "$ac_cxx_werror_flag" ||
33684 test ! -s conftest.err
33685 } && test -s conftest.$ac_objext; then
33686 ac_cv_type_size_t=yes
33688 echo "$as_me: failed program was:" >&5
33689 sed 's/^/| /' conftest.$ac_ext >&5
33691 ac_cv_type_size_t=no
33694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33696 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33697 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33698 if test $ac_cv_type_size_t = yes; then
33702 cat >>confdefs.h <<_ACEOF
33703 #define size_t unsigned int
33708 { echo "$as_me:$LINENO: checking for pid_t" >&5
33709 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33710 if test "${ac_cv_type_pid_t+set}" = set; then
33711 echo $ECHO_N "(cached) $ECHO_C" >&6
33713 cat >conftest.$ac_ext <<_ACEOF
33716 cat confdefs.h >>conftest.$ac_ext
33717 cat >>conftest.$ac_ext <<_ACEOF
33718 /* end confdefs.h. */
33719 $ac_includes_default
33720 typedef pid_t ac__type_new_;
33724 if ((ac__type_new_ *) 0)
33726 if (sizeof (ac__type_new_))
33732 rm -f conftest.$ac_objext
33733 if { (ac_try="$ac_compile"
33734 case "(($ac_try" in
33735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736 *) ac_try_echo=$ac_try;;
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739 (eval "$ac_compile") 2>conftest.er1
33741 grep -v '^ *+' conftest.er1 >conftest.err
33743 cat conftest.err >&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); } && {
33746 test -z "$ac_cxx_werror_flag" ||
33747 test ! -s conftest.err
33748 } && test -s conftest.$ac_objext; then
33749 ac_cv_type_pid_t=yes
33751 echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33754 ac_cv_type_pid_t=no
33757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33759 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33760 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33761 if test $ac_cv_type_pid_t = yes; then
33765 cat >>confdefs.h <<_ACEOF
33771 { echo "$as_me:$LINENO: checking for off_t" >&5
33772 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33773 if test "${ac_cv_type_off_t+set}" = set; then
33774 echo $ECHO_N "(cached) $ECHO_C" >&6
33776 cat >conftest.$ac_ext <<_ACEOF
33779 cat confdefs.h >>conftest.$ac_ext
33780 cat >>conftest.$ac_ext <<_ACEOF
33781 /* end confdefs.h. */
33782 $ac_includes_default
33783 typedef off_t ac__type_new_;
33787 if ((ac__type_new_ *) 0)
33789 if (sizeof (ac__type_new_))
33795 rm -f conftest.$ac_objext
33796 if { (ac_try="$ac_compile"
33797 case "(($ac_try" in
33798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33799 *) ac_try_echo=$ac_try;;
33801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33802 (eval "$ac_compile") 2>conftest.er1
33804 grep -v '^ *+' conftest.er1 >conftest.err
33806 cat conftest.err >&5
33807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); } && {
33809 test -z "$ac_cxx_werror_flag" ||
33810 test ! -s conftest.err
33811 } && test -s conftest.$ac_objext; then
33812 ac_cv_type_off_t=yes
33814 echo "$as_me: failed program was:" >&5
33815 sed 's/^/| /' conftest.$ac_ext >&5
33817 ac_cv_type_off_t=no
33820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33822 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33823 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33824 if test $ac_cv_type_off_t = yes; then
33828 cat >>confdefs.h <<_ACEOF
33829 #define off_t long int
33835 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33836 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33837 if test "${ac_cv_type_intptr_t+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33840 cat >conftest.$ac_ext <<_ACEOF
33843 cat confdefs.h >>conftest.$ac_ext
33844 cat >>conftest.$ac_ext <<_ACEOF
33845 /* end confdefs.h. */
33846 $ac_includes_default
33847 typedef intptr_t ac__type_new_;
33851 if ((ac__type_new_ *) 0)
33853 if (sizeof (ac__type_new_))
33859 rm -f conftest.$ac_objext
33860 if { (ac_try="$ac_compile"
33861 case "(($ac_try" in
33862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863 *) ac_try_echo=$ac_try;;
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866 (eval "$ac_compile") 2>conftest.er1
33868 grep -v '^ *+' conftest.er1 >conftest.err
33870 cat conftest.err >&5
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } && {
33873 test -z "$ac_cxx_werror_flag" ||
33874 test ! -s conftest.err
33875 } && test -s conftest.$ac_objext; then
33876 ac_cv_type_intptr_t=yes
33878 echo "$as_me: failed program was:" >&5
33879 sed 's/^/| /' conftest.$ac_ext >&5
33881 ac_cv_type_intptr_t=no
33884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33886 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33887 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33888 if test $ac_cv_type_intptr_t = yes; then
33890 cat >>confdefs.h <<\_ACEOF
33891 #define HAVE_INTPTR_T 1
33895 for ac_type in 'int' 'long int' 'long long int'; do
33896 cat >conftest.$ac_ext <<_ACEOF
33899 cat confdefs.h >>conftest.$ac_ext
33900 cat >>conftest.$ac_ext <<_ACEOF
33901 /* end confdefs.h. */
33902 $ac_includes_default
33906 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33913 rm -f conftest.$ac_objext
33914 if { (ac_try="$ac_compile"
33915 case "(($ac_try" in
33916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33917 *) ac_try_echo=$ac_try;;
33919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33920 (eval "$ac_compile") 2>conftest.er1
33922 grep -v '^ *+' conftest.er1 >conftest.err
33924 cat conftest.err >&5
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); } && {
33927 test -z "$ac_cxx_werror_flag" ||
33928 test ! -s conftest.err
33929 } && test -s conftest.$ac_objext; then
33931 cat >>confdefs.h <<_ACEOF
33932 #define intptr_t $ac_type
33937 echo "$as_me: failed program was:" >&5
33938 sed 's/^/| /' conftest.$ac_ext >&5
33943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33944 test -z "$ac_type" && break
33950 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33951 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33952 if test "${ac_cv_type_uintptr_t+set}" = set; then
33953 echo $ECHO_N "(cached) $ECHO_C" >&6
33955 cat >conftest.$ac_ext <<_ACEOF
33958 cat confdefs.h >>conftest.$ac_ext
33959 cat >>conftest.$ac_ext <<_ACEOF
33960 /* end confdefs.h. */
33961 $ac_includes_default
33962 typedef uintptr_t ac__type_new_;
33966 if ((ac__type_new_ *) 0)
33968 if (sizeof (ac__type_new_))
33974 rm -f conftest.$ac_objext
33975 if { (ac_try="$ac_compile"
33976 case "(($ac_try" in
33977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33978 *) ac_try_echo=$ac_try;;
33980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33981 (eval "$ac_compile") 2>conftest.er1
33983 grep -v '^ *+' conftest.er1 >conftest.err
33985 cat conftest.err >&5
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); } && {
33988 test -z "$ac_cxx_werror_flag" ||
33989 test ! -s conftest.err
33990 } && test -s conftest.$ac_objext; then
33991 ac_cv_type_uintptr_t=yes
33993 echo "$as_me: failed program was:" >&5
33994 sed 's/^/| /' conftest.$ac_ext >&5
33996 ac_cv_type_uintptr_t=no
33999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34001 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34002 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34003 if test $ac_cv_type_uintptr_t = yes; then
34005 cat >>confdefs.h <<\_ACEOF
34006 #define HAVE_UINTPTR_T 1
34010 for ac_type in 'unsigned int' 'unsigned long int' \
34011 'unsigned long long int'; do
34012 cat >conftest.$ac_ext <<_ACEOF
34015 cat confdefs.h >>conftest.$ac_ext
34016 cat >>conftest.$ac_ext <<_ACEOF
34017 /* end confdefs.h. */
34018 $ac_includes_default
34022 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34029 rm -f conftest.$ac_objext
34030 if { (ac_try="$ac_compile"
34031 case "(($ac_try" in
34032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34033 *) ac_try_echo=$ac_try;;
34035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34036 (eval "$ac_compile") 2>conftest.er1
34038 grep -v '^ *+' conftest.er1 >conftest.err
34040 cat conftest.err >&5
34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042 (exit $ac_status); } && {
34043 test -z "$ac_cxx_werror_flag" ||
34044 test ! -s conftest.err
34045 } && test -s conftest.$ac_objext; then
34047 cat >>confdefs.h <<_ACEOF
34048 #define uintptr_t $ac_type
34053 echo "$as_me: failed program was:" >&5
34054 sed 's/^/| /' conftest.$ac_ext >&5
34059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34060 test -z "$ac_type" && break
34065 { echo "$as_me:$LINENO: checking for ino_t" >&5
34066 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34067 if test "${ac_cv_type_ino_t+set}" = set; then
34068 echo $ECHO_N "(cached) $ECHO_C" >&6
34070 cat >conftest.$ac_ext <<_ACEOF
34073 cat confdefs.h >>conftest.$ac_ext
34074 cat >>conftest.$ac_ext <<_ACEOF
34075 /* end confdefs.h. */
34076 $ac_includes_default
34077 typedef ino_t ac__type_new_;
34081 if ((ac__type_new_ *) 0)
34083 if (sizeof (ac__type_new_))
34089 rm -f conftest.$ac_objext
34090 if { (ac_try="$ac_compile"
34091 case "(($ac_try" in
34092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34093 *) ac_try_echo=$ac_try;;
34095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34096 (eval "$ac_compile") 2>conftest.er1
34098 grep -v '^ *+' conftest.er1 >conftest.err
34100 cat conftest.err >&5
34101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102 (exit $ac_status); } && {
34103 test -z "$ac_cxx_werror_flag" ||
34104 test ! -s conftest.err
34105 } && test -s conftest.$ac_objext; then
34106 ac_cv_type_ino_t=yes
34108 echo "$as_me: failed program was:" >&5
34109 sed 's/^/| /' conftest.$ac_ext >&5
34111 ac_cv_type_ino_t=no
34114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34116 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34117 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34118 if test $ac_cv_type_ino_t = yes; then
34122 cat >>confdefs.h <<_ACEOF
34123 #define ino_t unsigned long
34128 { echo "$as_me:$LINENO: checking for dev_t" >&5
34129 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34130 if test "${ac_cv_type_dev_t+set}" = set; then
34131 echo $ECHO_N "(cached) $ECHO_C" >&6
34133 cat >conftest.$ac_ext <<_ACEOF
34136 cat confdefs.h >>conftest.$ac_ext
34137 cat >>conftest.$ac_ext <<_ACEOF
34138 /* end confdefs.h. */
34139 $ac_includes_default
34140 typedef dev_t ac__type_new_;
34144 if ((ac__type_new_ *) 0)
34146 if (sizeof (ac__type_new_))
34152 rm -f conftest.$ac_objext
34153 if { (ac_try="$ac_compile"
34154 case "(($ac_try" in
34155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34156 *) ac_try_echo=$ac_try;;
34158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34159 (eval "$ac_compile") 2>conftest.er1
34161 grep -v '^ *+' conftest.er1 >conftest.err
34163 cat conftest.err >&5
34164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34165 (exit $ac_status); } && {
34166 test -z "$ac_cxx_werror_flag" ||
34167 test ! -s conftest.err
34168 } && test -s conftest.$ac_objext; then
34169 ac_cv_type_dev_t=yes
34171 echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34174 ac_cv_type_dev_t=no
34177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34179 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34180 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34181 if test $ac_cv_type_dev_t = yes; then
34185 cat >>confdefs.h <<_ACEOF
34186 #define dev_t unsigned long
34191 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34192 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34193 if test "${ac_cv_type_daddr_t+set}" = set; then
34194 echo $ECHO_N "(cached) $ECHO_C" >&6
34196 cat >conftest.$ac_ext <<_ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h. */
34202 $ac_includes_default
34203 typedef daddr_t ac__type_new_;
34207 if ((ac__type_new_ *) 0)
34209 if (sizeof (ac__type_new_))
34215 rm -f conftest.$ac_objext
34216 if { (ac_try="$ac_compile"
34217 case "(($ac_try" in
34218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34219 *) ac_try_echo=$ac_try;;
34221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34222 (eval "$ac_compile") 2>conftest.er1
34224 grep -v '^ *+' conftest.er1 >conftest.err
34226 cat conftest.err >&5
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); } && {
34229 test -z "$ac_cxx_werror_flag" ||
34230 test ! -s conftest.err
34231 } && test -s conftest.$ac_objext; then
34232 ac_cv_type_daddr_t=yes
34234 echo "$as_me: failed program was:" >&5
34235 sed 's/^/| /' conftest.$ac_ext >&5
34237 ac_cv_type_daddr_t=no
34240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34242 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34243 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34244 if test $ac_cv_type_daddr_t = yes; then
34248 cat >>confdefs.h <<_ACEOF
34249 #define daddr_t long
34254 { echo "$as_me:$LINENO: checking for major_t" >&5
34255 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34256 if test "${ac_cv_type_major_t+set}" = set; then
34257 echo $ECHO_N "(cached) $ECHO_C" >&6
34259 cat >conftest.$ac_ext <<_ACEOF
34262 cat confdefs.h >>conftest.$ac_ext
34263 cat >>conftest.$ac_ext <<_ACEOF
34264 /* end confdefs.h. */
34265 $ac_includes_default
34266 typedef major_t ac__type_new_;
34270 if ((ac__type_new_ *) 0)
34272 if (sizeof (ac__type_new_))
34278 rm -f conftest.$ac_objext
34279 if { (ac_try="$ac_compile"
34280 case "(($ac_try" in
34281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34282 *) ac_try_echo=$ac_try;;
34284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34285 (eval "$ac_compile") 2>conftest.er1
34287 grep -v '^ *+' conftest.er1 >conftest.err
34289 cat conftest.err >&5
34290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291 (exit $ac_status); } && {
34292 test -z "$ac_cxx_werror_flag" ||
34293 test ! -s conftest.err
34294 } && test -s conftest.$ac_objext; then
34295 ac_cv_type_major_t=yes
34297 echo "$as_me: failed program was:" >&5
34298 sed 's/^/| /' conftest.$ac_ext >&5
34300 ac_cv_type_major_t=no
34303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34305 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34306 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34307 if test $ac_cv_type_major_t = yes; then
34311 cat >>confdefs.h <<_ACEOF
34312 #define major_t int
34317 { echo "$as_me:$LINENO: checking for minor_t" >&5
34318 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34319 if test "${ac_cv_type_minor_t+set}" = set; then
34320 echo $ECHO_N "(cached) $ECHO_C" >&6
34322 cat >conftest.$ac_ext <<_ACEOF
34325 cat confdefs.h >>conftest.$ac_ext
34326 cat >>conftest.$ac_ext <<_ACEOF
34327 /* end confdefs.h. */
34328 $ac_includes_default
34329 typedef minor_t ac__type_new_;
34333 if ((ac__type_new_ *) 0)
34335 if (sizeof (ac__type_new_))
34341 rm -f conftest.$ac_objext
34342 if { (ac_try="$ac_compile"
34343 case "(($ac_try" in
34344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34345 *) ac_try_echo=$ac_try;;
34347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34348 (eval "$ac_compile") 2>conftest.er1
34350 grep -v '^ *+' conftest.er1 >conftest.err
34352 cat conftest.err >&5
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); } && {
34355 test -z "$ac_cxx_werror_flag" ||
34356 test ! -s conftest.err
34357 } && test -s conftest.$ac_objext; then
34358 ac_cv_type_minor_t=yes
34360 echo "$as_me: failed program was:" >&5
34361 sed 's/^/| /' conftest.$ac_ext >&5
34363 ac_cv_type_minor_t=no
34366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34368 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34369 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34370 if test $ac_cv_type_minor_t = yes; then
34374 cat >>confdefs.h <<_ACEOF
34375 #define minor_t int
34380 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34381 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34382 if test "${ac_cv_type_ssize_t+set}" = set; then
34383 echo $ECHO_N "(cached) $ECHO_C" >&6
34385 cat >conftest.$ac_ext <<_ACEOF
34388 cat confdefs.h >>conftest.$ac_ext
34389 cat >>conftest.$ac_ext <<_ACEOF
34390 /* end confdefs.h. */
34391 $ac_includes_default
34392 typedef ssize_t ac__type_new_;
34396 if ((ac__type_new_ *) 0)
34398 if (sizeof (ac__type_new_))
34404 rm -f conftest.$ac_objext
34405 if { (ac_try="$ac_compile"
34406 case "(($ac_try" in
34407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34408 *) ac_try_echo=$ac_try;;
34410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34411 (eval "$ac_compile") 2>conftest.er1
34413 grep -v '^ *+' conftest.er1 >conftest.err
34415 cat conftest.err >&5
34416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417 (exit $ac_status); } && {
34418 test -z "$ac_cxx_werror_flag" ||
34419 test ! -s conftest.err
34420 } && test -s conftest.$ac_objext; then
34421 ac_cv_type_ssize_t=yes
34423 echo "$as_me: failed program was:" >&5
34424 sed 's/^/| /' conftest.$ac_ext >&5
34426 ac_cv_type_ssize_t=no
34429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34431 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34432 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34433 if test $ac_cv_type_ssize_t = yes; then
34437 cat >>confdefs.h <<_ACEOF
34438 #define ssize_t int
34443 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34444 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34445 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34446 echo $ECHO_N "(cached) $ECHO_C" >&6
34448 cat >conftest.$ac_ext <<_ACEOF
34451 cat confdefs.h >>conftest.$ac_ext
34452 cat >>conftest.$ac_ext <<_ACEOF
34453 /* end confdefs.h. */
34454 $ac_includes_default
34458 static struct stat ac_aggr;
34459 if (ac_aggr.st_blocks)
34465 rm -f conftest.$ac_objext
34466 if { (ac_try="$ac_compile"
34467 case "(($ac_try" in
34468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34469 *) ac_try_echo=$ac_try;;
34471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34472 (eval "$ac_compile") 2>conftest.er1
34474 grep -v '^ *+' conftest.er1 >conftest.err
34476 cat conftest.err >&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } && {
34479 test -z "$ac_cxx_werror_flag" ||
34480 test ! -s conftest.err
34481 } && test -s conftest.$ac_objext; then
34482 ac_cv_member_struct_stat_st_blocks=yes
34484 echo "$as_me: failed program was:" >&5
34485 sed 's/^/| /' conftest.$ac_ext >&5
34487 cat >conftest.$ac_ext <<_ACEOF
34490 cat confdefs.h >>conftest.$ac_ext
34491 cat >>conftest.$ac_ext <<_ACEOF
34492 /* end confdefs.h. */
34493 $ac_includes_default
34497 static struct stat ac_aggr;
34498 if (sizeof ac_aggr.st_blocks)
34504 rm -f conftest.$ac_objext
34505 if { (ac_try="$ac_compile"
34506 case "(($ac_try" in
34507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34508 *) ac_try_echo=$ac_try;;
34510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34511 (eval "$ac_compile") 2>conftest.er1
34513 grep -v '^ *+' conftest.er1 >conftest.err
34515 cat conftest.err >&5
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); } && {
34518 test -z "$ac_cxx_werror_flag" ||
34519 test ! -s conftest.err
34520 } && test -s conftest.$ac_objext; then
34521 ac_cv_member_struct_stat_st_blocks=yes
34523 echo "$as_me: failed program was:" >&5
34524 sed 's/^/| /' conftest.$ac_ext >&5
34526 ac_cv_member_struct_stat_st_blocks=no
34529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34535 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34536 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34538 cat >>confdefs.h <<_ACEOF
34539 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34543 cat >>confdefs.h <<\_ACEOF
34544 #define HAVE_ST_BLOCKS 1
34548 case " $LIBOBJS " in
34549 *" fileblocks.$ac_objext "* ) ;;
34550 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34557 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34558 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34559 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34560 echo $ECHO_N "(cached) $ECHO_C" >&6
34562 cat >conftest.$ac_ext <<_ACEOF
34565 cat confdefs.h >>conftest.$ac_ext
34566 cat >>conftest.$ac_ext <<_ACEOF
34567 /* end confdefs.h. */
34568 $ac_includes_default
34572 static struct stat ac_aggr;
34573 if (ac_aggr.st_rdev)
34579 rm -f conftest.$ac_objext
34580 if { (ac_try="$ac_compile"
34581 case "(($ac_try" in
34582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34583 *) ac_try_echo=$ac_try;;
34585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34586 (eval "$ac_compile") 2>conftest.er1
34588 grep -v '^ *+' conftest.er1 >conftest.err
34590 cat conftest.err >&5
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); } && {
34593 test -z "$ac_cxx_werror_flag" ||
34594 test ! -s conftest.err
34595 } && test -s conftest.$ac_objext; then
34596 ac_cv_member_struct_stat_st_rdev=yes
34598 echo "$as_me: failed program was:" >&5
34599 sed 's/^/| /' conftest.$ac_ext >&5
34601 cat >conftest.$ac_ext <<_ACEOF
34604 cat confdefs.h >>conftest.$ac_ext
34605 cat >>conftest.$ac_ext <<_ACEOF
34606 /* end confdefs.h. */
34607 $ac_includes_default
34611 static struct stat ac_aggr;
34612 if (sizeof ac_aggr.st_rdev)
34618 rm -f conftest.$ac_objext
34619 if { (ac_try="$ac_compile"
34620 case "(($ac_try" in
34621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34622 *) ac_try_echo=$ac_try;;
34624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34625 (eval "$ac_compile") 2>conftest.er1
34627 grep -v '^ *+' conftest.er1 >conftest.err
34629 cat conftest.err >&5
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); } && {
34632 test -z "$ac_cxx_werror_flag" ||
34633 test ! -s conftest.err
34634 } && test -s conftest.$ac_objext; then
34635 ac_cv_member_struct_stat_st_rdev=yes
34637 echo "$as_me: failed program was:" >&5
34638 sed 's/^/| /' conftest.$ac_ext >&5
34640 ac_cv_member_struct_stat_st_rdev=no
34643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34648 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34649 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34650 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34652 cat >>confdefs.h <<_ACEOF
34653 #define HAVE_STRUCT_STAT_ST_RDEV 1
34657 cat >>confdefs.h <<\_ACEOF
34658 #define HAVE_ST_RDEV 1
34664 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34665 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34666 if test "${ac_cv_struct_tm+set}" = set; then
34667 echo $ECHO_N "(cached) $ECHO_C" >&6
34669 cat >conftest.$ac_ext <<_ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h. */
34675 #include <sys/types.h>
34682 int *p = &tm.tm_sec;
34688 rm -f conftest.$ac_objext
34689 if { (ac_try="$ac_compile"
34690 case "(($ac_try" in
34691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34692 *) ac_try_echo=$ac_try;;
34694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34695 (eval "$ac_compile") 2>conftest.er1
34697 grep -v '^ *+' conftest.er1 >conftest.err
34699 cat conftest.err >&5
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); } && {
34702 test -z "$ac_cxx_werror_flag" ||
34703 test ! -s conftest.err
34704 } && test -s conftest.$ac_objext; then
34705 ac_cv_struct_tm=time.h
34707 echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34710 ac_cv_struct_tm=sys/time.h
34713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34715 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34716 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34717 if test $ac_cv_struct_tm = sys/time.h; then
34719 cat >>confdefs.h <<\_ACEOF
34720 #define TM_IN_SYS_TIME 1
34725 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34727 if test "${ac_cv_c_const+set}" = set; then
34728 echo $ECHO_N "(cached) $ECHO_C" >&6
34730 cat >conftest.$ac_ext <<_ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h. */
34740 /* FIXME: Include the comments suggested by Paul. */
34741 #ifndef __cplusplus
34742 /* Ultrix mips cc rejects this. */
34743 typedef int charset[2];
34745 /* SunOS 4.1.1 cc rejects this. */
34746 char const *const *pcpcc;
34748 /* NEC SVR4.0.2 mips cc rejects this. */
34749 struct point {int x, y;};
34750 static struct point const zero = {0,0};
34751 /* AIX XL C 1.02.0.0 rejects this.
34752 It does not let you subtract one const X* pointer from another in
34753 an arm of an if-expression whose if-part is not a constant
34755 const char *g = "string";
34756 pcpcc = &g + (g ? g-g : 0);
34757 /* HPUX 7.0 cc rejects these. */
34759 ppc = (char**) pcpcc;
34760 pcpcc = (char const *const *) ppc;
34761 { /* SCO 3.2v4 cc rejects this. */
34763 char const *s = 0 ? (char *) 0 : (char const *) 0;
34768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34769 int x[] = {25, 17};
34770 const int *foo = &x[0];
34773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34774 typedef const int *iptr;
34778 { /* AIX XL C 1.02.0.0 rejects this saying
34779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34780 struct s { int j; const int *ap[3]; };
34781 struct s *b; b->j = 5;
34783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34784 const int foo = 10;
34785 if (!foo) return 0;
34787 return !cs[0] && !zero.x;
34794 rm -f conftest.$ac_objext
34795 if { (ac_try="$ac_compile"
34796 case "(($ac_try" in
34797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798 *) ac_try_echo=$ac_try;;
34800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34801 (eval "$ac_compile") 2>conftest.er1
34803 grep -v '^ *+' conftest.er1 >conftest.err
34805 cat conftest.err >&5
34806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); } && {
34808 test -z "$ac_cxx_werror_flag" ||
34809 test ! -s conftest.err
34810 } && test -s conftest.$ac_objext; then
34813 echo "$as_me: failed program was:" >&5
34814 sed 's/^/| /' conftest.$ac_ext >&5
34819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34821 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34822 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34823 if test $ac_cv_c_const = no; then
34825 cat >>confdefs.h <<\_ACEOF
34832 { echo "$as_me:$LINENO: checking for char" >&5
34833 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34834 if test "${ac_cv_type_char+set}" = set; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
34837 cat >conftest.$ac_ext <<_ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h. */
34843 $ac_includes_default
34844 typedef char ac__type_new_;
34848 if ((ac__type_new_ *) 0)
34850 if (sizeof (ac__type_new_))
34856 rm -f conftest.$ac_objext
34857 if { (ac_try="$ac_compile"
34858 case "(($ac_try" in
34859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34860 *) ac_try_echo=$ac_try;;
34862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34863 (eval "$ac_compile") 2>conftest.er1
34865 grep -v '^ *+' conftest.er1 >conftest.err
34867 cat conftest.err >&5
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); } && {
34870 test -z "$ac_cxx_werror_flag" ||
34871 test ! -s conftest.err
34872 } && test -s conftest.$ac_objext; then
34873 ac_cv_type_char=yes
34875 echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34883 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34884 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34886 # The cast to long int works around a bug in the HP C Compiler
34887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34889 # This bug is HP SR number 8606223364.
34890 { echo "$as_me:$LINENO: checking size of char" >&5
34891 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34892 if test "${ac_cv_sizeof_char+set}" = set; then
34893 echo $ECHO_N "(cached) $ECHO_C" >&6
34895 if test "$cross_compiling" = yes; then
34896 # Depending upon the size, compute the lo and hi bounds.
34897 cat >conftest.$ac_ext <<_ACEOF
34900 cat confdefs.h >>conftest.$ac_ext
34901 cat >>conftest.$ac_ext <<_ACEOF
34902 /* end confdefs.h. */
34903 $ac_includes_default
34904 typedef char ac__type_sizeof_;
34908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34915 rm -f conftest.$ac_objext
34916 if { (ac_try="$ac_compile"
34917 case "(($ac_try" in
34918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34919 *) ac_try_echo=$ac_try;;
34921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34922 (eval "$ac_compile") 2>conftest.er1
34924 grep -v '^ *+' conftest.er1 >conftest.err
34926 cat conftest.err >&5
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); } && {
34929 test -z "$ac_cxx_werror_flag" ||
34930 test ! -s conftest.err
34931 } && test -s conftest.$ac_objext; then
34934 cat >conftest.$ac_ext <<_ACEOF
34937 cat confdefs.h >>conftest.$ac_ext
34938 cat >>conftest.$ac_ext <<_ACEOF
34939 /* end confdefs.h. */
34940 $ac_includes_default
34941 typedef char ac__type_sizeof_;
34945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34952 rm -f conftest.$ac_objext
34953 if { (ac_try="$ac_compile"
34954 case "(($ac_try" in
34955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34956 *) ac_try_echo=$ac_try;;
34958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34959 (eval "$ac_compile") 2>conftest.er1
34961 grep -v '^ *+' conftest.er1 >conftest.err
34963 cat conftest.err >&5
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); } && {
34966 test -z "$ac_cxx_werror_flag" ||
34967 test ! -s conftest.err
34968 } && test -s conftest.$ac_objext; then
34969 ac_hi=$ac_mid; break
34971 echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34974 ac_lo=`expr $ac_mid + 1`
34975 if test $ac_lo -le $ac_mid; then
34979 ac_mid=`expr 2 '*' $ac_mid + 1`
34982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34985 echo "$as_me: failed program was:" >&5
34986 sed 's/^/| /' conftest.$ac_ext >&5
34988 cat >conftest.$ac_ext <<_ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h. */
34994 $ac_includes_default
34995 typedef char ac__type_sizeof_;
34999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35006 rm -f conftest.$ac_objext
35007 if { (ac_try="$ac_compile"
35008 case "(($ac_try" in
35009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35010 *) ac_try_echo=$ac_try;;
35012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35013 (eval "$ac_compile") 2>conftest.er1
35015 grep -v '^ *+' conftest.er1 >conftest.err
35017 cat conftest.err >&5
35018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019 (exit $ac_status); } && {
35020 test -z "$ac_cxx_werror_flag" ||
35021 test ! -s conftest.err
35022 } && test -s conftest.$ac_objext; then
35025 cat >conftest.$ac_ext <<_ACEOF
35028 cat confdefs.h >>conftest.$ac_ext
35029 cat >>conftest.$ac_ext <<_ACEOF
35030 /* end confdefs.h. */
35031 $ac_includes_default
35032 typedef char ac__type_sizeof_;
35036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047 *) ac_try_echo=$ac_try;;
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050 (eval "$ac_compile") 2>conftest.er1
35052 grep -v '^ *+' conftest.er1 >conftest.err
35054 cat conftest.err >&5
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); } && {
35057 test -z "$ac_cxx_werror_flag" ||
35058 test ! -s conftest.err
35059 } && test -s conftest.$ac_objext; then
35060 ac_lo=$ac_mid; break
35062 echo "$as_me: failed program was:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35065 ac_hi=`expr '(' $ac_mid ')' - 1`
35066 if test $ac_mid -le $ac_hi; then
35070 ac_mid=`expr 2 '*' $ac_mid`
35073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35076 echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086 # Binary search between lo and hi bounds.
35087 while test "x$ac_lo" != "x$ac_hi"; do
35088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35089 cat >conftest.$ac_ext <<_ACEOF
35092 cat confdefs.h >>conftest.$ac_ext
35093 cat >>conftest.$ac_ext <<_ACEOF
35094 /* end confdefs.h. */
35095 $ac_includes_default
35096 typedef char ac__type_sizeof_;
35100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35107 rm -f conftest.$ac_objext
35108 if { (ac_try="$ac_compile"
35109 case "(($ac_try" in
35110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35111 *) ac_try_echo=$ac_try;;
35113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35114 (eval "$ac_compile") 2>conftest.er1
35116 grep -v '^ *+' conftest.er1 >conftest.err
35118 cat conftest.err >&5
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); } && {
35121 test -z "$ac_cxx_werror_flag" ||
35122 test ! -s conftest.err
35123 } && test -s conftest.$ac_objext; then
35126 echo "$as_me: failed program was:" >&5
35127 sed 's/^/| /' conftest.$ac_ext >&5
35129 ac_lo=`expr '(' $ac_mid ')' + 1`
35132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35135 ?*) ac_cv_sizeof_char=$ac_lo;;
35136 '') if test "$ac_cv_type_char" = yes; then
35137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35138 See \`config.log' for more details." >&5
35139 echo "$as_me: error: cannot compute sizeof (char)
35140 See \`config.log' for more details." >&2;}
35141 { (exit 77); exit 77; }; }
35143 ac_cv_sizeof_char=0
35147 cat >conftest.$ac_ext <<_ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h. */
35153 $ac_includes_default
35154 typedef char ac__type_sizeof_;
35155 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35156 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35158 #include <stdlib.h>
35163 FILE *f = fopen ("conftest.val", "w");
35166 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35168 long int i = longval ();
35169 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35171 fprintf (f, "%ld\n", i);
35175 unsigned long int i = ulongval ();
35176 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35178 fprintf (f, "%lu\n", i);
35180 return ferror (f) || fclose (f) != 0;
35186 rm -f conftest$ac_exeext
35187 if { (ac_try="$ac_link"
35188 case "(($ac_try" in
35189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35190 *) ac_try_echo=$ac_try;;
35192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35193 (eval "$ac_link") 2>&5
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35197 { (case "(($ac_try" in
35198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199 *) ac_try_echo=$ac_try;;
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202 (eval "$ac_try") 2>&5
35204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; }; then
35206 ac_cv_sizeof_char=`cat conftest.val`
35208 echo "$as_me: program exited with status $ac_status" >&5
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35212 ( exit $ac_status )
35213 if test "$ac_cv_type_char" = yes; then
35214 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35215 See \`config.log' for more details." >&5
35216 echo "$as_me: error: cannot compute sizeof (char)
35217 See \`config.log' for more details." >&2;}
35218 { (exit 77); exit 77; }; }
35220 ac_cv_sizeof_char=0
35223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35227 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35228 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35232 cat >>confdefs.h <<_ACEOF
35233 #define SIZEOF_CHAR $ac_cv_sizeof_char
35237 { echo "$as_me:$LINENO: checking for short int" >&5
35238 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35239 if test "${ac_cv_type_short_int+set}" = set; then
35240 echo $ECHO_N "(cached) $ECHO_C" >&6
35242 cat >conftest.$ac_ext <<_ACEOF
35245 cat confdefs.h >>conftest.$ac_ext
35246 cat >>conftest.$ac_ext <<_ACEOF
35247 /* end confdefs.h. */
35248 $ac_includes_default
35249 typedef short int ac__type_new_;
35253 if ((ac__type_new_ *) 0)
35255 if (sizeof (ac__type_new_))
35261 rm -f conftest.$ac_objext
35262 if { (ac_try="$ac_compile"
35263 case "(($ac_try" in
35264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35265 *) ac_try_echo=$ac_try;;
35267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35268 (eval "$ac_compile") 2>conftest.er1
35270 grep -v '^ *+' conftest.er1 >conftest.err
35272 cat conftest.err >&5
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); } && {
35275 test -z "$ac_cxx_werror_flag" ||
35276 test ! -s conftest.err
35277 } && test -s conftest.$ac_objext; then
35278 ac_cv_type_short_int=yes
35280 echo "$as_me: failed program was:" >&5
35281 sed 's/^/| /' conftest.$ac_ext >&5
35283 ac_cv_type_short_int=no
35286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35288 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35289 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35291 # The cast to long int works around a bug in the HP C Compiler
35292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35294 # This bug is HP SR number 8606223364.
35295 { echo "$as_me:$LINENO: checking size of short int" >&5
35296 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35297 if test "${ac_cv_sizeof_short_int+set}" = set; then
35298 echo $ECHO_N "(cached) $ECHO_C" >&6
35300 if test "$cross_compiling" = yes; then
35301 # Depending upon the size, compute the lo and hi bounds.
35302 cat >conftest.$ac_ext <<_ACEOF
35305 cat confdefs.h >>conftest.$ac_ext
35306 cat >>conftest.$ac_ext <<_ACEOF
35307 /* end confdefs.h. */
35308 $ac_includes_default
35309 typedef short int ac__type_sizeof_;
35313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35320 rm -f conftest.$ac_objext
35321 if { (ac_try="$ac_compile"
35322 case "(($ac_try" in
35323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35324 *) ac_try_echo=$ac_try;;
35326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35327 (eval "$ac_compile") 2>conftest.er1
35329 grep -v '^ *+' conftest.er1 >conftest.err
35331 cat conftest.err >&5
35332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333 (exit $ac_status); } && {
35334 test -z "$ac_cxx_werror_flag" ||
35335 test ! -s conftest.err
35336 } && test -s conftest.$ac_objext; then
35339 cat >conftest.$ac_ext <<_ACEOF
35342 cat confdefs.h >>conftest.$ac_ext
35343 cat >>conftest.$ac_ext <<_ACEOF
35344 /* end confdefs.h. */
35345 $ac_includes_default
35346 typedef short int ac__type_sizeof_;
35350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35357 rm -f conftest.$ac_objext
35358 if { (ac_try="$ac_compile"
35359 case "(($ac_try" in
35360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35361 *) ac_try_echo=$ac_try;;
35363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35364 (eval "$ac_compile") 2>conftest.er1
35366 grep -v '^ *+' conftest.er1 >conftest.err
35368 cat conftest.err >&5
35369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370 (exit $ac_status); } && {
35371 test -z "$ac_cxx_werror_flag" ||
35372 test ! -s conftest.err
35373 } && test -s conftest.$ac_objext; then
35374 ac_hi=$ac_mid; break
35376 echo "$as_me: failed program was:" >&5
35377 sed 's/^/| /' conftest.$ac_ext >&5
35379 ac_lo=`expr $ac_mid + 1`
35380 if test $ac_lo -le $ac_mid; then
35384 ac_mid=`expr 2 '*' $ac_mid + 1`
35387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35390 echo "$as_me: failed program was:" >&5
35391 sed 's/^/| /' conftest.$ac_ext >&5
35393 cat >conftest.$ac_ext <<_ACEOF
35396 cat confdefs.h >>conftest.$ac_ext
35397 cat >>conftest.$ac_ext <<_ACEOF
35398 /* end confdefs.h. */
35399 $ac_includes_default
35400 typedef short int ac__type_sizeof_;
35404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35411 rm -f conftest.$ac_objext
35412 if { (ac_try="$ac_compile"
35413 case "(($ac_try" in
35414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35415 *) ac_try_echo=$ac_try;;
35417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35418 (eval "$ac_compile") 2>conftest.er1
35420 grep -v '^ *+' conftest.er1 >conftest.err
35422 cat conftest.err >&5
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); } && {
35425 test -z "$ac_cxx_werror_flag" ||
35426 test ! -s conftest.err
35427 } && test -s conftest.$ac_objext; then
35430 cat >conftest.$ac_ext <<_ACEOF
35433 cat confdefs.h >>conftest.$ac_ext
35434 cat >>conftest.$ac_ext <<_ACEOF
35435 /* end confdefs.h. */
35436 $ac_includes_default
35437 typedef short int ac__type_sizeof_;
35441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35448 rm -f conftest.$ac_objext
35449 if { (ac_try="$ac_compile"
35450 case "(($ac_try" in
35451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35452 *) ac_try_echo=$ac_try;;
35454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35455 (eval "$ac_compile") 2>conftest.er1
35457 grep -v '^ *+' conftest.er1 >conftest.err
35459 cat conftest.err >&5
35460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461 (exit $ac_status); } && {
35462 test -z "$ac_cxx_werror_flag" ||
35463 test ! -s conftest.err
35464 } && test -s conftest.$ac_objext; then
35465 ac_lo=$ac_mid; break
35467 echo "$as_me: failed program was:" >&5
35468 sed 's/^/| /' conftest.$ac_ext >&5
35470 ac_hi=`expr '(' $ac_mid ')' - 1`
35471 if test $ac_mid -le $ac_hi; then
35475 ac_mid=`expr 2 '*' $ac_mid`
35478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35481 echo "$as_me: failed program was:" >&5
35482 sed 's/^/| /' conftest.$ac_ext >&5
35487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35491 # Binary search between lo and hi bounds.
35492 while test "x$ac_lo" != "x$ac_hi"; do
35493 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35494 cat >conftest.$ac_ext <<_ACEOF
35497 cat confdefs.h >>conftest.$ac_ext
35498 cat >>conftest.$ac_ext <<_ACEOF
35499 /* end confdefs.h. */
35500 $ac_includes_default
35501 typedef short int ac__type_sizeof_;
35505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35512 rm -f conftest.$ac_objext
35513 if { (ac_try="$ac_compile"
35514 case "(($ac_try" in
35515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35516 *) ac_try_echo=$ac_try;;
35518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35519 (eval "$ac_compile") 2>conftest.er1
35521 grep -v '^ *+' conftest.er1 >conftest.err
35523 cat conftest.err >&5
35524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525 (exit $ac_status); } && {
35526 test -z "$ac_cxx_werror_flag" ||
35527 test ! -s conftest.err
35528 } && test -s conftest.$ac_objext; then
35531 echo "$as_me: failed program was:" >&5
35532 sed 's/^/| /' conftest.$ac_ext >&5
35534 ac_lo=`expr '(' $ac_mid ')' + 1`
35537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35540 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35541 '') if test "$ac_cv_type_short_int" = yes; then
35542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35543 See \`config.log' for more details." >&5
35544 echo "$as_me: error: cannot compute sizeof (short int)
35545 See \`config.log' for more details." >&2;}
35546 { (exit 77); exit 77; }; }
35548 ac_cv_sizeof_short_int=0
35552 cat >conftest.$ac_ext <<_ACEOF
35555 cat confdefs.h >>conftest.$ac_ext
35556 cat >>conftest.$ac_ext <<_ACEOF
35557 /* end confdefs.h. */
35558 $ac_includes_default
35559 typedef short int ac__type_sizeof_;
35560 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35561 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35563 #include <stdlib.h>
35568 FILE *f = fopen ("conftest.val", "w");
35571 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35573 long int i = longval ();
35574 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35576 fprintf (f, "%ld\n", i);
35580 unsigned long int i = ulongval ();
35581 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35583 fprintf (f, "%lu\n", i);
35585 return ferror (f) || fclose (f) != 0;
35591 rm -f conftest$ac_exeext
35592 if { (ac_try="$ac_link"
35593 case "(($ac_try" in
35594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35595 *) ac_try_echo=$ac_try;;
35597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35598 (eval "$ac_link") 2>&5
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35602 { (case "(($ac_try" in
35603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604 *) ac_try_echo=$ac_try;;
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607 (eval "$ac_try") 2>&5
35609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610 (exit $ac_status); }; }; then
35611 ac_cv_sizeof_short_int=`cat conftest.val`
35613 echo "$as_me: program exited with status $ac_status" >&5
35614 echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35617 ( exit $ac_status )
35618 if test "$ac_cv_type_short_int" = yes; then
35619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35620 See \`config.log' for more details." >&5
35621 echo "$as_me: error: cannot compute sizeof (short int)
35622 See \`config.log' for more details." >&2;}
35623 { (exit 77); exit 77; }; }
35625 ac_cv_sizeof_short_int=0
35628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35632 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35633 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35637 cat >>confdefs.h <<_ACEOF
35638 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35642 { echo "$as_me:$LINENO: checking for int" >&5
35643 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35644 if test "${ac_cv_type_int+set}" = set; then
35645 echo $ECHO_N "(cached) $ECHO_C" >&6
35647 cat >conftest.$ac_ext <<_ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h. */
35653 $ac_includes_default
35654 typedef int ac__type_new_;
35658 if ((ac__type_new_ *) 0)
35660 if (sizeof (ac__type_new_))
35666 rm -f conftest.$ac_objext
35667 if { (ac_try="$ac_compile"
35668 case "(($ac_try" in
35669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35670 *) ac_try_echo=$ac_try;;
35672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35673 (eval "$ac_compile") 2>conftest.er1
35675 grep -v '^ *+' conftest.er1 >conftest.err
35677 cat conftest.err >&5
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); } && {
35680 test -z "$ac_cxx_werror_flag" ||
35681 test ! -s conftest.err
35682 } && test -s conftest.$ac_objext; then
35685 echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35693 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35694 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35696 # The cast to long int works around a bug in the HP C Compiler
35697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35699 # This bug is HP SR number 8606223364.
35700 { echo "$as_me:$LINENO: checking size of int" >&5
35701 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35702 if test "${ac_cv_sizeof_int+set}" = set; then
35703 echo $ECHO_N "(cached) $ECHO_C" >&6
35705 if test "$cross_compiling" = yes; then
35706 # Depending upon the size, compute the lo and hi bounds.
35707 cat >conftest.$ac_ext <<_ACEOF
35710 cat confdefs.h >>conftest.$ac_ext
35711 cat >>conftest.$ac_ext <<_ACEOF
35712 /* end confdefs.h. */
35713 $ac_includes_default
35714 typedef int ac__type_sizeof_;
35718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35725 rm -f conftest.$ac_objext
35726 if { (ac_try="$ac_compile"
35727 case "(($ac_try" in
35728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35729 *) ac_try_echo=$ac_try;;
35731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35732 (eval "$ac_compile") 2>conftest.er1
35734 grep -v '^ *+' conftest.er1 >conftest.err
35736 cat conftest.err >&5
35737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); } && {
35739 test -z "$ac_cxx_werror_flag" ||
35740 test ! -s conftest.err
35741 } && test -s conftest.$ac_objext; then
35744 cat >conftest.$ac_ext <<_ACEOF
35747 cat confdefs.h >>conftest.$ac_ext
35748 cat >>conftest.$ac_ext <<_ACEOF
35749 /* end confdefs.h. */
35750 $ac_includes_default
35751 typedef int ac__type_sizeof_;
35755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35762 rm -f conftest.$ac_objext
35763 if { (ac_try="$ac_compile"
35764 case "(($ac_try" in
35765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35766 *) ac_try_echo=$ac_try;;
35768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35769 (eval "$ac_compile") 2>conftest.er1
35771 grep -v '^ *+' conftest.er1 >conftest.err
35773 cat conftest.err >&5
35774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775 (exit $ac_status); } && {
35776 test -z "$ac_cxx_werror_flag" ||
35777 test ! -s conftest.err
35778 } && test -s conftest.$ac_objext; then
35779 ac_hi=$ac_mid; break
35781 echo "$as_me: failed program was:" >&5
35782 sed 's/^/| /' conftest.$ac_ext >&5
35784 ac_lo=`expr $ac_mid + 1`
35785 if test $ac_lo -le $ac_mid; then
35789 ac_mid=`expr 2 '*' $ac_mid + 1`
35792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35795 echo "$as_me: failed program was:" >&5
35796 sed 's/^/| /' conftest.$ac_ext >&5
35798 cat >conftest.$ac_ext <<_ACEOF
35801 cat confdefs.h >>conftest.$ac_ext
35802 cat >>conftest.$ac_ext <<_ACEOF
35803 /* end confdefs.h. */
35804 $ac_includes_default
35805 typedef int ac__type_sizeof_;
35809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35816 rm -f conftest.$ac_objext
35817 if { (ac_try="$ac_compile"
35818 case "(($ac_try" in
35819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35820 *) ac_try_echo=$ac_try;;
35822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35823 (eval "$ac_compile") 2>conftest.er1
35825 grep -v '^ *+' conftest.er1 >conftest.err
35827 cat conftest.err >&5
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); } && {
35830 test -z "$ac_cxx_werror_flag" ||
35831 test ! -s conftest.err
35832 } && test -s conftest.$ac_objext; then
35835 cat >conftest.$ac_ext <<_ACEOF
35838 cat confdefs.h >>conftest.$ac_ext
35839 cat >>conftest.$ac_ext <<_ACEOF
35840 /* end confdefs.h. */
35841 $ac_includes_default
35842 typedef int ac__type_sizeof_;
35846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35853 rm -f conftest.$ac_objext
35854 if { (ac_try="$ac_compile"
35855 case "(($ac_try" in
35856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857 *) ac_try_echo=$ac_try;;
35859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35860 (eval "$ac_compile") 2>conftest.er1
35862 grep -v '^ *+' conftest.er1 >conftest.err
35864 cat conftest.err >&5
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); } && {
35867 test -z "$ac_cxx_werror_flag" ||
35868 test ! -s conftest.err
35869 } && test -s conftest.$ac_objext; then
35870 ac_lo=$ac_mid; break
35872 echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35875 ac_hi=`expr '(' $ac_mid ')' - 1`
35876 if test $ac_mid -le $ac_hi; then
35880 ac_mid=`expr 2 '*' $ac_mid`
35883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35886 echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35896 # Binary search between lo and hi bounds.
35897 while test "x$ac_lo" != "x$ac_hi"; do
35898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35899 cat >conftest.$ac_ext <<_ACEOF
35902 cat confdefs.h >>conftest.$ac_ext
35903 cat >>conftest.$ac_ext <<_ACEOF
35904 /* end confdefs.h. */
35905 $ac_includes_default
35906 typedef int ac__type_sizeof_;
35910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35917 rm -f conftest.$ac_objext
35918 if { (ac_try="$ac_compile"
35919 case "(($ac_try" in
35920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35921 *) ac_try_echo=$ac_try;;
35923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35924 (eval "$ac_compile") 2>conftest.er1
35926 grep -v '^ *+' conftest.er1 >conftest.err
35928 cat conftest.err >&5
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); } && {
35931 test -z "$ac_cxx_werror_flag" ||
35932 test ! -s conftest.err
35933 } && test -s conftest.$ac_objext; then
35936 echo "$as_me: failed program was:" >&5
35937 sed 's/^/| /' conftest.$ac_ext >&5
35939 ac_lo=`expr '(' $ac_mid ')' + 1`
35942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35945 ?*) ac_cv_sizeof_int=$ac_lo;;
35946 '') if test "$ac_cv_type_int" = yes; then
35947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35948 See \`config.log' for more details." >&5
35949 echo "$as_me: error: cannot compute sizeof (int)
35950 See \`config.log' for more details." >&2;}
35951 { (exit 77); exit 77; }; }
35957 cat >conftest.$ac_ext <<_ACEOF
35960 cat confdefs.h >>conftest.$ac_ext
35961 cat >>conftest.$ac_ext <<_ACEOF
35962 /* end confdefs.h. */
35963 $ac_includes_default
35964 typedef int ac__type_sizeof_;
35965 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35966 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35968 #include <stdlib.h>
35973 FILE *f = fopen ("conftest.val", "w");
35976 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35978 long int i = longval ();
35979 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35981 fprintf (f, "%ld\n", i);
35985 unsigned long int i = ulongval ();
35986 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35988 fprintf (f, "%lu\n", i);
35990 return ferror (f) || fclose (f) != 0;
35996 rm -f conftest$ac_exeext
35997 if { (ac_try="$ac_link"
35998 case "(($ac_try" in
35999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36000 *) ac_try_echo=$ac_try;;
36002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36003 (eval "$ac_link") 2>&5
36005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36007 { (case "(($ac_try" in
36008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36009 *) ac_try_echo=$ac_try;;
36011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36012 (eval "$ac_try") 2>&5
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); }; }; then
36016 ac_cv_sizeof_int=`cat conftest.val`
36018 echo "$as_me: program exited with status $ac_status" >&5
36019 echo "$as_me: failed program was:" >&5
36020 sed 's/^/| /' conftest.$ac_ext >&5
36022 ( exit $ac_status )
36023 if test "$ac_cv_type_int" = yes; then
36024 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36025 See \`config.log' for more details." >&5
36026 echo "$as_me: error: cannot compute sizeof (int)
36027 See \`config.log' for more details." >&2;}
36028 { (exit 77); exit 77; }; }
36033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36037 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36038 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36042 cat >>confdefs.h <<_ACEOF
36043 #define SIZEOF_INT $ac_cv_sizeof_int
36047 { echo "$as_me:$LINENO: checking for long int" >&5
36048 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36049 if test "${ac_cv_type_long_int+set}" = set; then
36050 echo $ECHO_N "(cached) $ECHO_C" >&6
36052 cat >conftest.$ac_ext <<_ACEOF
36055 cat confdefs.h >>conftest.$ac_ext
36056 cat >>conftest.$ac_ext <<_ACEOF
36057 /* end confdefs.h. */
36058 $ac_includes_default
36059 typedef long int ac__type_new_;
36063 if ((ac__type_new_ *) 0)
36065 if (sizeof (ac__type_new_))
36071 rm -f conftest.$ac_objext
36072 if { (ac_try="$ac_compile"
36073 case "(($ac_try" in
36074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36075 *) ac_try_echo=$ac_try;;
36077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36078 (eval "$ac_compile") 2>conftest.er1
36080 grep -v '^ *+' conftest.er1 >conftest.err
36082 cat conftest.err >&5
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); } && {
36085 test -z "$ac_cxx_werror_flag" ||
36086 test ! -s conftest.err
36087 } && test -s conftest.$ac_objext; then
36088 ac_cv_type_long_int=yes
36090 echo "$as_me: failed program was:" >&5
36091 sed 's/^/| /' conftest.$ac_ext >&5
36093 ac_cv_type_long_int=no
36096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36098 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36099 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36101 # The cast to long int works around a bug in the HP C Compiler
36102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36104 # This bug is HP SR number 8606223364.
36105 { echo "$as_me:$LINENO: checking size of long int" >&5
36106 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36107 if test "${ac_cv_sizeof_long_int+set}" = set; then
36108 echo $ECHO_N "(cached) $ECHO_C" >&6
36110 if test "$cross_compiling" = yes; then
36111 # Depending upon the size, compute the lo and hi bounds.
36112 cat >conftest.$ac_ext <<_ACEOF
36115 cat confdefs.h >>conftest.$ac_ext
36116 cat >>conftest.$ac_ext <<_ACEOF
36117 /* end confdefs.h. */
36118 $ac_includes_default
36119 typedef long int ac__type_sizeof_;
36123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36130 rm -f conftest.$ac_objext
36131 if { (ac_try="$ac_compile"
36132 case "(($ac_try" in
36133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134 *) ac_try_echo=$ac_try;;
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137 (eval "$ac_compile") 2>conftest.er1
36139 grep -v '^ *+' conftest.er1 >conftest.err
36141 cat conftest.err >&5
36142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); } && {
36144 test -z "$ac_cxx_werror_flag" ||
36145 test ! -s conftest.err
36146 } && test -s conftest.$ac_objext; then
36149 cat >conftest.$ac_ext <<_ACEOF
36152 cat confdefs.h >>conftest.$ac_ext
36153 cat >>conftest.$ac_ext <<_ACEOF
36154 /* end confdefs.h. */
36155 $ac_includes_default
36156 typedef long int ac__type_sizeof_;
36160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36167 rm -f conftest.$ac_objext
36168 if { (ac_try="$ac_compile"
36169 case "(($ac_try" in
36170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36171 *) ac_try_echo=$ac_try;;
36173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36174 (eval "$ac_compile") 2>conftest.er1
36176 grep -v '^ *+' conftest.er1 >conftest.err
36178 cat conftest.err >&5
36179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180 (exit $ac_status); } && {
36181 test -z "$ac_cxx_werror_flag" ||
36182 test ! -s conftest.err
36183 } && test -s conftest.$ac_objext; then
36184 ac_hi=$ac_mid; break
36186 echo "$as_me: failed program was:" >&5
36187 sed 's/^/| /' conftest.$ac_ext >&5
36189 ac_lo=`expr $ac_mid + 1`
36190 if test $ac_lo -le $ac_mid; then
36194 ac_mid=`expr 2 '*' $ac_mid + 1`
36197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36200 echo "$as_me: failed program was:" >&5
36201 sed 's/^/| /' conftest.$ac_ext >&5
36203 cat >conftest.$ac_ext <<_ACEOF
36206 cat confdefs.h >>conftest.$ac_ext
36207 cat >>conftest.$ac_ext <<_ACEOF
36208 /* end confdefs.h. */
36209 $ac_includes_default
36210 typedef long int ac__type_sizeof_;
36214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36221 rm -f conftest.$ac_objext
36222 if { (ac_try="$ac_compile"
36223 case "(($ac_try" in
36224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36225 *) ac_try_echo=$ac_try;;
36227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36228 (eval "$ac_compile") 2>conftest.er1
36230 grep -v '^ *+' conftest.er1 >conftest.err
36232 cat conftest.err >&5
36233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36234 (exit $ac_status); } && {
36235 test -z "$ac_cxx_werror_flag" ||
36236 test ! -s conftest.err
36237 } && test -s conftest.$ac_objext; then
36240 cat >conftest.$ac_ext <<_ACEOF
36243 cat confdefs.h >>conftest.$ac_ext
36244 cat >>conftest.$ac_ext <<_ACEOF
36245 /* end confdefs.h. */
36246 $ac_includes_default
36247 typedef long int ac__type_sizeof_;
36251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36258 rm -f conftest.$ac_objext
36259 if { (ac_try="$ac_compile"
36260 case "(($ac_try" in
36261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36262 *) ac_try_echo=$ac_try;;
36264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36265 (eval "$ac_compile") 2>conftest.er1
36267 grep -v '^ *+' conftest.er1 >conftest.err
36269 cat conftest.err >&5
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 (exit $ac_status); } && {
36272 test -z "$ac_cxx_werror_flag" ||
36273 test ! -s conftest.err
36274 } && test -s conftest.$ac_objext; then
36275 ac_lo=$ac_mid; break
36277 echo "$as_me: failed program was:" >&5
36278 sed 's/^/| /' conftest.$ac_ext >&5
36280 ac_hi=`expr '(' $ac_mid ')' - 1`
36281 if test $ac_mid -le $ac_hi; then
36285 ac_mid=`expr 2 '*' $ac_mid`
36288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36291 echo "$as_me: failed program was:" >&5
36292 sed 's/^/| /' conftest.$ac_ext >&5
36297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36301 # Binary search between lo and hi bounds.
36302 while test "x$ac_lo" != "x$ac_hi"; do
36303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36304 cat >conftest.$ac_ext <<_ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h. */
36310 $ac_includes_default
36311 typedef long int ac__type_sizeof_;
36315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36322 rm -f conftest.$ac_objext
36323 if { (ac_try="$ac_compile"
36324 case "(($ac_try" in
36325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36326 *) ac_try_echo=$ac_try;;
36328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36329 (eval "$ac_compile") 2>conftest.er1
36331 grep -v '^ *+' conftest.er1 >conftest.err
36333 cat conftest.err >&5
36334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335 (exit $ac_status); } && {
36336 test -z "$ac_cxx_werror_flag" ||
36337 test ! -s conftest.err
36338 } && test -s conftest.$ac_objext; then
36341 echo "$as_me: failed program was:" >&5
36342 sed 's/^/| /' conftest.$ac_ext >&5
36344 ac_lo=`expr '(' $ac_mid ')' + 1`
36347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36350 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36351 '') if test "$ac_cv_type_long_int" = yes; then
36352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36353 See \`config.log' for more details." >&5
36354 echo "$as_me: error: cannot compute sizeof (long int)
36355 See \`config.log' for more details." >&2;}
36356 { (exit 77); exit 77; }; }
36358 ac_cv_sizeof_long_int=0
36362 cat >conftest.$ac_ext <<_ACEOF
36365 cat confdefs.h >>conftest.$ac_ext
36366 cat >>conftest.$ac_ext <<_ACEOF
36367 /* end confdefs.h. */
36368 $ac_includes_default
36369 typedef long int ac__type_sizeof_;
36370 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36371 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36373 #include <stdlib.h>
36378 FILE *f = fopen ("conftest.val", "w");
36381 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36383 long int i = longval ();
36384 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36386 fprintf (f, "%ld\n", i);
36390 unsigned long int i = ulongval ();
36391 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36393 fprintf (f, "%lu\n", i);
36395 return ferror (f) || fclose (f) != 0;
36401 rm -f conftest$ac_exeext
36402 if { (ac_try="$ac_link"
36403 case "(($ac_try" in
36404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36405 *) ac_try_echo=$ac_try;;
36407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36408 (eval "$ac_link") 2>&5
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36412 { (case "(($ac_try" in
36413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36414 *) ac_try_echo=$ac_try;;
36416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36417 (eval "$ac_try") 2>&5
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; }; then
36421 ac_cv_sizeof_long_int=`cat conftest.val`
36423 echo "$as_me: program exited with status $ac_status" >&5
36424 echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36427 ( exit $ac_status )
36428 if test "$ac_cv_type_long_int" = yes; then
36429 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36430 See \`config.log' for more details." >&5
36431 echo "$as_me: error: cannot compute sizeof (long int)
36432 See \`config.log' for more details." >&2;}
36433 { (exit 77); exit 77; }; }
36435 ac_cv_sizeof_long_int=0
36438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36442 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36443 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36447 cat >>confdefs.h <<_ACEOF
36448 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36452 { echo "$as_me:$LINENO: checking for long long int" >&5
36453 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36454 if test "${ac_cv_type_long_long_int+set}" = set; then
36455 echo $ECHO_N "(cached) $ECHO_C" >&6
36457 cat >conftest.$ac_ext <<_ACEOF
36460 cat confdefs.h >>conftest.$ac_ext
36461 cat >>conftest.$ac_ext <<_ACEOF
36462 /* end confdefs.h. */
36463 $ac_includes_default
36464 typedef long long int ac__type_new_;
36468 if ((ac__type_new_ *) 0)
36470 if (sizeof (ac__type_new_))
36476 rm -f conftest.$ac_objext
36477 if { (ac_try="$ac_compile"
36478 case "(($ac_try" in
36479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36480 *) ac_try_echo=$ac_try;;
36482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36483 (eval "$ac_compile") 2>conftest.er1
36485 grep -v '^ *+' conftest.er1 >conftest.err
36487 cat conftest.err >&5
36488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489 (exit $ac_status); } && {
36490 test -z "$ac_cxx_werror_flag" ||
36491 test ! -s conftest.err
36492 } && test -s conftest.$ac_objext; then
36493 ac_cv_type_long_long_int=yes
36495 echo "$as_me: failed program was:" >&5
36496 sed 's/^/| /' conftest.$ac_ext >&5
36498 ac_cv_type_long_long_int=no
36501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36503 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36504 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36506 # The cast to long int works around a bug in the HP C Compiler
36507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36509 # This bug is HP SR number 8606223364.
36510 { echo "$as_me:$LINENO: checking size of long long int" >&5
36511 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36512 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36513 echo $ECHO_N "(cached) $ECHO_C" >&6
36515 if test "$cross_compiling" = yes; then
36516 # Depending upon the size, compute the lo and hi bounds.
36517 cat >conftest.$ac_ext <<_ACEOF
36520 cat confdefs.h >>conftest.$ac_ext
36521 cat >>conftest.$ac_ext <<_ACEOF
36522 /* end confdefs.h. */
36523 $ac_includes_default
36524 typedef long long int ac__type_sizeof_;
36528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36535 rm -f conftest.$ac_objext
36536 if { (ac_try="$ac_compile"
36537 case "(($ac_try" in
36538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36539 *) ac_try_echo=$ac_try;;
36541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36542 (eval "$ac_compile") 2>conftest.er1
36544 grep -v '^ *+' conftest.er1 >conftest.err
36546 cat conftest.err >&5
36547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548 (exit $ac_status); } && {
36549 test -z "$ac_cxx_werror_flag" ||
36550 test ! -s conftest.err
36551 } && test -s conftest.$ac_objext; then
36554 cat >conftest.$ac_ext <<_ACEOF
36557 cat confdefs.h >>conftest.$ac_ext
36558 cat >>conftest.$ac_ext <<_ACEOF
36559 /* end confdefs.h. */
36560 $ac_includes_default
36561 typedef long long int ac__type_sizeof_;
36565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36572 rm -f conftest.$ac_objext
36573 if { (ac_try="$ac_compile"
36574 case "(($ac_try" in
36575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36576 *) ac_try_echo=$ac_try;;
36578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36579 (eval "$ac_compile") 2>conftest.er1
36581 grep -v '^ *+' conftest.er1 >conftest.err
36583 cat conftest.err >&5
36584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585 (exit $ac_status); } && {
36586 test -z "$ac_cxx_werror_flag" ||
36587 test ! -s conftest.err
36588 } && test -s conftest.$ac_objext; then
36589 ac_hi=$ac_mid; break
36591 echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36594 ac_lo=`expr $ac_mid + 1`
36595 if test $ac_lo -le $ac_mid; then
36599 ac_mid=`expr 2 '*' $ac_mid + 1`
36602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36605 echo "$as_me: failed program was:" >&5
36606 sed 's/^/| /' conftest.$ac_ext >&5
36608 cat >conftest.$ac_ext <<_ACEOF
36611 cat confdefs.h >>conftest.$ac_ext
36612 cat >>conftest.$ac_ext <<_ACEOF
36613 /* end confdefs.h. */
36614 $ac_includes_default
36615 typedef long long int ac__type_sizeof_;
36619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36626 rm -f conftest.$ac_objext
36627 if { (ac_try="$ac_compile"
36628 case "(($ac_try" in
36629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36630 *) ac_try_echo=$ac_try;;
36632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36633 (eval "$ac_compile") 2>conftest.er1
36635 grep -v '^ *+' conftest.er1 >conftest.err
36637 cat conftest.err >&5
36638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36639 (exit $ac_status); } && {
36640 test -z "$ac_cxx_werror_flag" ||
36641 test ! -s conftest.err
36642 } && test -s conftest.$ac_objext; then
36645 cat >conftest.$ac_ext <<_ACEOF
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h. */
36651 $ac_includes_default
36652 typedef long long int ac__type_sizeof_;
36656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36663 rm -f conftest.$ac_objext
36664 if { (ac_try="$ac_compile"
36665 case "(($ac_try" in
36666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36667 *) ac_try_echo=$ac_try;;
36669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36670 (eval "$ac_compile") 2>conftest.er1
36672 grep -v '^ *+' conftest.er1 >conftest.err
36674 cat conftest.err >&5
36675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676 (exit $ac_status); } && {
36677 test -z "$ac_cxx_werror_flag" ||
36678 test ! -s conftest.err
36679 } && test -s conftest.$ac_objext; then
36680 ac_lo=$ac_mid; break
36682 echo "$as_me: failed program was:" >&5
36683 sed 's/^/| /' conftest.$ac_ext >&5
36685 ac_hi=`expr '(' $ac_mid ')' - 1`
36686 if test $ac_mid -le $ac_hi; then
36690 ac_mid=`expr 2 '*' $ac_mid`
36693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36696 echo "$as_me: failed program was:" >&5
36697 sed 's/^/| /' conftest.$ac_ext >&5
36702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36706 # Binary search between lo and hi bounds.
36707 while test "x$ac_lo" != "x$ac_hi"; do
36708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36709 cat >conftest.$ac_ext <<_ACEOF
36712 cat confdefs.h >>conftest.$ac_ext
36713 cat >>conftest.$ac_ext <<_ACEOF
36714 /* end confdefs.h. */
36715 $ac_includes_default
36716 typedef long long int ac__type_sizeof_;
36720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36727 rm -f conftest.$ac_objext
36728 if { (ac_try="$ac_compile"
36729 case "(($ac_try" in
36730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36731 *) ac_try_echo=$ac_try;;
36733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36734 (eval "$ac_compile") 2>conftest.er1
36736 grep -v '^ *+' conftest.er1 >conftest.err
36738 cat conftest.err >&5
36739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740 (exit $ac_status); } && {
36741 test -z "$ac_cxx_werror_flag" ||
36742 test ! -s conftest.err
36743 } && test -s conftest.$ac_objext; then
36746 echo "$as_me: failed program was:" >&5
36747 sed 's/^/| /' conftest.$ac_ext >&5
36749 ac_lo=`expr '(' $ac_mid ')' + 1`
36752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36755 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36756 '') if test "$ac_cv_type_long_long_int" = yes; then
36757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36758 See \`config.log' for more details." >&5
36759 echo "$as_me: error: cannot compute sizeof (long long int)
36760 See \`config.log' for more details." >&2;}
36761 { (exit 77); exit 77; }; }
36763 ac_cv_sizeof_long_long_int=0
36767 cat >conftest.$ac_ext <<_ACEOF
36770 cat confdefs.h >>conftest.$ac_ext
36771 cat >>conftest.$ac_ext <<_ACEOF
36772 /* end confdefs.h. */
36773 $ac_includes_default
36774 typedef long long int ac__type_sizeof_;
36775 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36776 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36778 #include <stdlib.h>
36783 FILE *f = fopen ("conftest.val", "w");
36786 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36788 long int i = longval ();
36789 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36791 fprintf (f, "%ld\n", i);
36795 unsigned long int i = ulongval ();
36796 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36798 fprintf (f, "%lu\n", i);
36800 return ferror (f) || fclose (f) != 0;
36806 rm -f conftest$ac_exeext
36807 if { (ac_try="$ac_link"
36808 case "(($ac_try" in
36809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36810 *) ac_try_echo=$ac_try;;
36812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36813 (eval "$ac_link") 2>&5
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36817 { (case "(($ac_try" in
36818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819 *) ac_try_echo=$ac_try;;
36821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822 (eval "$ac_try") 2>&5
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; }; then
36826 ac_cv_sizeof_long_long_int=`cat conftest.val`
36828 echo "$as_me: program exited with status $ac_status" >&5
36829 echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36832 ( exit $ac_status )
36833 if test "$ac_cv_type_long_long_int" = yes; then
36834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36835 See \`config.log' for more details." >&5
36836 echo "$as_me: error: cannot compute sizeof (long long int)
36837 See \`config.log' for more details." >&2;}
36838 { (exit 77); exit 77; }; }
36840 ac_cv_sizeof_long_long_int=0
36843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36847 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36848 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36852 cat >>confdefs.h <<_ACEOF
36853 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36857 { echo "$as_me:$LINENO: checking for int *" >&5
36858 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36859 if test "${ac_cv_type_int_p+set}" = set; then
36860 echo $ECHO_N "(cached) $ECHO_C" >&6
36862 cat >conftest.$ac_ext <<_ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h. */
36868 $ac_includes_default
36869 typedef int * ac__type_new_;
36873 if ((ac__type_new_ *) 0)
36875 if (sizeof (ac__type_new_))
36881 rm -f conftest.$ac_objext
36882 if { (ac_try="$ac_compile"
36883 case "(($ac_try" in
36884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36885 *) ac_try_echo=$ac_try;;
36887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36888 (eval "$ac_compile") 2>conftest.er1
36890 grep -v '^ *+' conftest.er1 >conftest.err
36892 cat conftest.err >&5
36893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894 (exit $ac_status); } && {
36895 test -z "$ac_cxx_werror_flag" ||
36896 test ! -s conftest.err
36897 } && test -s conftest.$ac_objext; then
36898 ac_cv_type_int_p=yes
36900 echo "$as_me: failed program was:" >&5
36901 sed 's/^/| /' conftest.$ac_ext >&5
36903 ac_cv_type_int_p=no
36906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36908 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36909 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36911 # The cast to long int works around a bug in the HP C Compiler
36912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36914 # This bug is HP SR number 8606223364.
36915 { echo "$as_me:$LINENO: checking size of int *" >&5
36916 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36917 if test "${ac_cv_sizeof_int_p+set}" = set; then
36918 echo $ECHO_N "(cached) $ECHO_C" >&6
36920 if test "$cross_compiling" = yes; then
36921 # Depending upon the size, compute the lo and hi bounds.
36922 cat >conftest.$ac_ext <<_ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h. */
36928 $ac_includes_default
36929 typedef int * ac__type_sizeof_;
36933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36940 rm -f conftest.$ac_objext
36941 if { (ac_try="$ac_compile"
36942 case "(($ac_try" in
36943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36944 *) ac_try_echo=$ac_try;;
36946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36947 (eval "$ac_compile") 2>conftest.er1
36949 grep -v '^ *+' conftest.er1 >conftest.err
36951 cat conftest.err >&5
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); } && {
36954 test -z "$ac_cxx_werror_flag" ||
36955 test ! -s conftest.err
36956 } && test -s conftest.$ac_objext; then
36959 cat >conftest.$ac_ext <<_ACEOF
36962 cat confdefs.h >>conftest.$ac_ext
36963 cat >>conftest.$ac_ext <<_ACEOF
36964 /* end confdefs.h. */
36965 $ac_includes_default
36966 typedef int * ac__type_sizeof_;
36970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36977 rm -f conftest.$ac_objext
36978 if { (ac_try="$ac_compile"
36979 case "(($ac_try" in
36980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36981 *) ac_try_echo=$ac_try;;
36983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36984 (eval "$ac_compile") 2>conftest.er1
36986 grep -v '^ *+' conftest.er1 >conftest.err
36988 cat conftest.err >&5
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); } && {
36991 test -z "$ac_cxx_werror_flag" ||
36992 test ! -s conftest.err
36993 } && test -s conftest.$ac_objext; then
36994 ac_hi=$ac_mid; break
36996 echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36999 ac_lo=`expr $ac_mid + 1`
37000 if test $ac_lo -le $ac_mid; then
37004 ac_mid=`expr 2 '*' $ac_mid + 1`
37007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37010 echo "$as_me: failed program was:" >&5
37011 sed 's/^/| /' conftest.$ac_ext >&5
37013 cat >conftest.$ac_ext <<_ACEOF
37016 cat confdefs.h >>conftest.$ac_ext
37017 cat >>conftest.$ac_ext <<_ACEOF
37018 /* end confdefs.h. */
37019 $ac_includes_default
37020 typedef int * ac__type_sizeof_;
37024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37031 rm -f conftest.$ac_objext
37032 if { (ac_try="$ac_compile"
37033 case "(($ac_try" in
37034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37035 *) ac_try_echo=$ac_try;;
37037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37038 (eval "$ac_compile") 2>conftest.er1
37040 grep -v '^ *+' conftest.er1 >conftest.err
37042 cat conftest.err >&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); } && {
37045 test -z "$ac_cxx_werror_flag" ||
37046 test ! -s conftest.err
37047 } && test -s conftest.$ac_objext; then
37050 cat >conftest.$ac_ext <<_ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h. */
37056 $ac_includes_default
37057 typedef int * ac__type_sizeof_;
37061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37068 rm -f conftest.$ac_objext
37069 if { (ac_try="$ac_compile"
37070 case "(($ac_try" in
37071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072 *) ac_try_echo=$ac_try;;
37074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37075 (eval "$ac_compile") 2>conftest.er1
37077 grep -v '^ *+' conftest.er1 >conftest.err
37079 cat conftest.err >&5
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); } && {
37082 test -z "$ac_cxx_werror_flag" ||
37083 test ! -s conftest.err
37084 } && test -s conftest.$ac_objext; then
37085 ac_lo=$ac_mid; break
37087 echo "$as_me: failed program was:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37090 ac_hi=`expr '(' $ac_mid ')' - 1`
37091 if test $ac_mid -le $ac_hi; then
37095 ac_mid=`expr 2 '*' $ac_mid`
37098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37101 echo "$as_me: failed program was:" >&5
37102 sed 's/^/| /' conftest.$ac_ext >&5
37107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37111 # Binary search between lo and hi bounds.
37112 while test "x$ac_lo" != "x$ac_hi"; do
37113 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37114 cat >conftest.$ac_ext <<_ACEOF
37117 cat confdefs.h >>conftest.$ac_ext
37118 cat >>conftest.$ac_ext <<_ACEOF
37119 /* end confdefs.h. */
37120 $ac_includes_default
37121 typedef int * ac__type_sizeof_;
37125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37132 rm -f conftest.$ac_objext
37133 if { (ac_try="$ac_compile"
37134 case "(($ac_try" in
37135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37136 *) ac_try_echo=$ac_try;;
37138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37139 (eval "$ac_compile") 2>conftest.er1
37141 grep -v '^ *+' conftest.er1 >conftest.err
37143 cat conftest.err >&5
37144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145 (exit $ac_status); } && {
37146 test -z "$ac_cxx_werror_flag" ||
37147 test ! -s conftest.err
37148 } && test -s conftest.$ac_objext; then
37151 echo "$as_me: failed program was:" >&5
37152 sed 's/^/| /' conftest.$ac_ext >&5
37154 ac_lo=`expr '(' $ac_mid ')' + 1`
37157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37160 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37161 '') if test "$ac_cv_type_int_p" = yes; then
37162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37163 See \`config.log' for more details." >&5
37164 echo "$as_me: error: cannot compute sizeof (int *)
37165 See \`config.log' for more details." >&2;}
37166 { (exit 77); exit 77; }; }
37168 ac_cv_sizeof_int_p=0
37172 cat >conftest.$ac_ext <<_ACEOF
37175 cat confdefs.h >>conftest.$ac_ext
37176 cat >>conftest.$ac_ext <<_ACEOF
37177 /* end confdefs.h. */
37178 $ac_includes_default
37179 typedef int * ac__type_sizeof_;
37180 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37181 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37183 #include <stdlib.h>
37188 FILE *f = fopen ("conftest.val", "w");
37191 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37193 long int i = longval ();
37194 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37196 fprintf (f, "%ld\n", i);
37200 unsigned long int i = ulongval ();
37201 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37203 fprintf (f, "%lu\n", i);
37205 return ferror (f) || fclose (f) != 0;
37211 rm -f conftest$ac_exeext
37212 if { (ac_try="$ac_link"
37213 case "(($ac_try" in
37214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37215 *) ac_try_echo=$ac_try;;
37217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37218 (eval "$ac_link") 2>&5
37220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37222 { (case "(($ac_try" in
37223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37224 *) ac_try_echo=$ac_try;;
37226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37227 (eval "$ac_try") 2>&5
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; }; then
37231 ac_cv_sizeof_int_p=`cat conftest.val`
37233 echo "$as_me: program exited with status $ac_status" >&5
37234 echo "$as_me: failed program was:" >&5
37235 sed 's/^/| /' conftest.$ac_ext >&5
37237 ( exit $ac_status )
37238 if test "$ac_cv_type_int_p" = yes; then
37239 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37240 See \`config.log' for more details." >&5
37241 echo "$as_me: error: cannot compute sizeof (int *)
37242 See \`config.log' for more details." >&2;}
37243 { (exit 77); exit 77; }; }
37245 ac_cv_sizeof_int_p=0
37248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37252 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37253 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37257 cat >>confdefs.h <<_ACEOF
37258 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37263 { echo "$as_me:$LINENO: checking for u_int type" >&5
37264 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37265 if test "${ac_cv_have_u_int+set}" = set; then
37266 echo $ECHO_N "(cached) $ECHO_C" >&6
37269 cat >conftest.$ac_ext <<_ACEOF
37272 cat confdefs.h >>conftest.$ac_ext
37273 cat >>conftest.$ac_ext <<_ACEOF
37274 /* end confdefs.h. */
37276 #include <sys/types.h>
37288 rm -f conftest.$ac_objext
37289 if { (ac_try="$ac_compile"
37290 case "(($ac_try" in
37291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37292 *) ac_try_echo=$ac_try;;
37294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37295 (eval "$ac_compile") 2>conftest.er1
37297 grep -v '^ *+' conftest.er1 >conftest.err
37299 cat conftest.err >&5
37300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301 (exit $ac_status); } && {
37302 test -z "$ac_cxx_werror_flag" ||
37303 test ! -s conftest.err
37304 } && test -s conftest.$ac_objext; then
37306 ac_cv_have_u_int="yes"
37309 echo "$as_me: failed program was:" >&5
37310 sed 's/^/| /' conftest.$ac_ext >&5
37313 ac_cv_have_u_int="no"
37318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37322 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37323 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37324 if test "x$ac_cv_have_u_int" = "xyes" ; then
37325 cat >>confdefs.h <<\_ACEOF
37326 #define HAVE_U_INT 1
37332 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37333 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37334 if test "${ac_cv_have_intmax_t+set}" = set; then
37335 echo $ECHO_N "(cached) $ECHO_C" >&6
37338 cat >conftest.$ac_ext <<_ACEOF
37341 cat confdefs.h >>conftest.$ac_ext
37342 cat >>conftest.$ac_ext <<_ACEOF
37343 /* end confdefs.h. */
37345 #include <sys/types.h>
37357 rm -f conftest.$ac_objext
37358 if { (ac_try="$ac_compile"
37359 case "(($ac_try" in
37360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37361 *) ac_try_echo=$ac_try;;
37363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37364 (eval "$ac_compile") 2>conftest.er1
37366 grep -v '^ *+' conftest.er1 >conftest.err
37368 cat conftest.err >&5
37369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37370 (exit $ac_status); } && {
37371 test -z "$ac_cxx_werror_flag" ||
37372 test ! -s conftest.err
37373 } && test -s conftest.$ac_objext; then
37375 ac_cv_have_intmax_t="yes"
37378 echo "$as_me: failed program was:" >&5
37379 sed 's/^/| /' conftest.$ac_ext >&5
37382 cat >conftest.$ac_ext <<_ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h. */
37389 #include <stdint.h>
37401 rm -f conftest.$ac_objext
37402 if { (ac_try="$ac_compile"
37403 case "(($ac_try" in
37404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37405 *) ac_try_echo=$ac_try;;
37407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37408 (eval "$ac_compile") 2>conftest.er1
37410 grep -v '^ *+' conftest.er1 >conftest.err
37412 cat conftest.err >&5
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); } && {
37415 test -z "$ac_cxx_werror_flag" ||
37416 test ! -s conftest.err
37417 } && test -s conftest.$ac_objext; then
37419 ac_cv_have_intmax_t="yes"
37422 echo "$as_me: failed program was:" >&5
37423 sed 's/^/| /' conftest.$ac_ext >&5
37426 ac_cv_have_intmax_t="no"
37431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37440 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37441 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37442 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37443 cat >>confdefs.h <<\_ACEOF
37444 #define HAVE_INTMAX_T 1
37450 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37451 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37452 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37453 echo $ECHO_N "(cached) $ECHO_C" >&6
37456 cat >conftest.$ac_ext <<_ACEOF
37459 cat confdefs.h >>conftest.$ac_ext
37460 cat >>conftest.$ac_ext <<_ACEOF
37461 /* end confdefs.h. */
37463 #include <sys/types.h>
37469 u_intmax_t a; a = 1;
37475 rm -f conftest.$ac_objext
37476 if { (ac_try="$ac_compile"
37477 case "(($ac_try" in
37478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37479 *) ac_try_echo=$ac_try;;
37481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37482 (eval "$ac_compile") 2>conftest.er1
37484 grep -v '^ *+' conftest.er1 >conftest.err
37486 cat conftest.err >&5
37487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 (exit $ac_status); } && {
37489 test -z "$ac_cxx_werror_flag" ||
37490 test ! -s conftest.err
37491 } && test -s conftest.$ac_objext; then
37493 ac_cv_have_u_intmax_t="yes"
37496 echo "$as_me: failed program was:" >&5
37497 sed 's/^/| /' conftest.$ac_ext >&5
37500 cat >conftest.$ac_ext <<_ACEOF
37503 cat confdefs.h >>conftest.$ac_ext
37504 cat >>conftest.$ac_ext <<_ACEOF
37505 /* end confdefs.h. */
37507 #include <stdint.h>
37513 u_intmax_t a; a = 1;
37519 rm -f conftest.$ac_objext
37520 if { (ac_try="$ac_compile"
37521 case "(($ac_try" in
37522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37523 *) ac_try_echo=$ac_try;;
37525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37526 (eval "$ac_compile") 2>conftest.er1
37528 grep -v '^ *+' conftest.er1 >conftest.err
37530 cat conftest.err >&5
37531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532 (exit $ac_status); } && {
37533 test -z "$ac_cxx_werror_flag" ||
37534 test ! -s conftest.err
37535 } && test -s conftest.$ac_objext; then
37537 ac_cv_have_u_intmax_t="yes"
37540 echo "$as_me: failed program was:" >&5
37541 sed 's/^/| /' conftest.$ac_ext >&5
37544 ac_cv_have_u_intmax_t="no"
37549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37558 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37559 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37560 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37561 cat >>confdefs.h <<\_ACEOF
37562 #define HAVE_U_INTMAX_T 1
37568 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37569 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37570 if test "${ac_cv_have_intxx_t+set}" = set; then
37571 echo $ECHO_N "(cached) $ECHO_C" >&6
37574 cat >conftest.$ac_ext <<_ACEOF
37577 cat confdefs.h >>conftest.$ac_ext
37578 cat >>conftest.$ac_ext <<_ACEOF
37579 /* end confdefs.h. */
37581 #include <sys/types.h>
37587 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37593 rm -f conftest.$ac_objext
37594 if { (ac_try="$ac_compile"
37595 case "(($ac_try" in
37596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37597 *) ac_try_echo=$ac_try;;
37599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37600 (eval "$ac_compile") 2>conftest.er1
37602 grep -v '^ *+' conftest.er1 >conftest.err
37604 cat conftest.err >&5
37605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606 (exit $ac_status); } && {
37607 test -z "$ac_cxx_werror_flag" ||
37608 test ! -s conftest.err
37609 } && test -s conftest.$ac_objext; then
37611 ac_cv_have_intxx_t="yes"
37614 echo "$as_me: failed program was:" >&5
37615 sed 's/^/| /' conftest.$ac_ext >&5
37618 ac_cv_have_intxx_t="no"
37623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37627 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37628 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37629 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37630 cat >>confdefs.h <<\_ACEOF
37631 #define HAVE_INTXX_T 1
37637 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37638 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37639 if test "${ac_cv_have_int64_t+set}" = set; then
37640 echo $ECHO_N "(cached) $ECHO_C" >&6
37643 cat >conftest.$ac_ext <<_ACEOF
37646 cat confdefs.h >>conftest.$ac_ext
37647 cat >>conftest.$ac_ext <<_ACEOF
37648 /* end confdefs.h. */
37650 #include <sys/types.h>
37662 rm -f conftest.$ac_objext
37663 if { (ac_try="$ac_compile"
37664 case "(($ac_try" in
37665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37666 *) ac_try_echo=$ac_try;;
37668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37669 (eval "$ac_compile") 2>conftest.er1
37671 grep -v '^ *+' conftest.er1 >conftest.err
37673 cat conftest.err >&5
37674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37675 (exit $ac_status); } && {
37676 test -z "$ac_cxx_werror_flag" ||
37677 test ! -s conftest.err
37678 } && test -s conftest.$ac_objext; then
37680 ac_cv_have_int64_t="yes"
37683 echo "$as_me: failed program was:" >&5
37684 sed 's/^/| /' conftest.$ac_ext >&5
37687 ac_cv_have_int64_t="no"
37692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37696 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37697 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37698 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37699 cat >>confdefs.h <<\_ACEOF
37700 #define HAVE_INT64_T 1
37706 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37707 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37708 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37709 echo $ECHO_N "(cached) $ECHO_C" >&6
37712 cat >conftest.$ac_ext <<_ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h. */
37719 #include <sys/types.h>
37725 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37731 rm -f conftest.$ac_objext
37732 if { (ac_try="$ac_compile"
37733 case "(($ac_try" in
37734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37735 *) ac_try_echo=$ac_try;;
37737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37738 (eval "$ac_compile") 2>conftest.er1
37740 grep -v '^ *+' conftest.er1 >conftest.err
37742 cat conftest.err >&5
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); } && {
37745 test -z "$ac_cxx_werror_flag" ||
37746 test ! -s conftest.err
37747 } && test -s conftest.$ac_objext; then
37749 ac_cv_have_u_intxx_t="yes"
37752 echo "$as_me: failed program was:" >&5
37753 sed 's/^/| /' conftest.$ac_ext >&5
37756 ac_cv_have_u_intxx_t="no"
37761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37765 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37766 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37767 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37768 cat >>confdefs.h <<\_ACEOF
37769 #define HAVE_U_INTXX_T 1
37775 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37776 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37777 if test "${ac_cv_have_u_int64_t+set}" = set; then
37778 echo $ECHO_N "(cached) $ECHO_C" >&6
37781 cat >conftest.$ac_ext <<_ACEOF
37784 cat confdefs.h >>conftest.$ac_ext
37785 cat >>conftest.$ac_ext <<_ACEOF
37786 /* end confdefs.h. */
37788 #include <sys/types.h>
37794 u_int64_t a; a = 1;
37800 rm -f conftest.$ac_objext
37801 if { (ac_try="$ac_compile"
37802 case "(($ac_try" in
37803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37804 *) ac_try_echo=$ac_try;;
37806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37807 (eval "$ac_compile") 2>conftest.er1
37809 grep -v '^ *+' conftest.er1 >conftest.err
37811 cat conftest.err >&5
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); } && {
37814 test -z "$ac_cxx_werror_flag" ||
37815 test ! -s conftest.err
37816 } && test -s conftest.$ac_objext; then
37818 ac_cv_have_u_int64_t="yes"
37821 echo "$as_me: failed program was:" >&5
37822 sed 's/^/| /' conftest.$ac_ext >&5
37825 ac_cv_have_u_int64_t="no"
37830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37834 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37835 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37836 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37837 cat >>confdefs.h <<\_ACEOF
37838 #define HAVE_U_INT64_T 1
37844 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37845 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37847 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37848 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37849 cat >conftest.$ac_ext <<_ACEOF
37852 cat confdefs.h >>conftest.$ac_ext
37853 cat >>conftest.$ac_ext <<_ACEOF
37854 /* end confdefs.h. */
37856 #include <sys/bitypes.h>
37862 int8_t a; int16_t b; int32_t c;
37863 u_int8_t e; u_int16_t f; u_int32_t g;
37864 a = b = c = e = f = g = 1;
37870 rm -f conftest.$ac_objext
37871 if { (ac_try="$ac_compile"
37872 case "(($ac_try" in
37873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37874 *) ac_try_echo=$ac_try;;
37876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37877 (eval "$ac_compile") 2>conftest.er1
37879 grep -v '^ *+' conftest.er1 >conftest.err
37881 cat conftest.err >&5
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); } && {
37884 test -z "$ac_cxx_werror_flag" ||
37885 test ! -s conftest.err
37886 } && test -s conftest.$ac_objext; then
37888 cat >>confdefs.h <<\_ACEOF
37889 #define HAVE_U_INTXX_T 1
37892 cat >>confdefs.h <<\_ACEOF
37893 #define HAVE_INTXX_T 1
37896 cat >>confdefs.h <<\_ACEOF
37897 #define HAVE_SYS_BITYPES_H 1
37900 { echo "$as_me:$LINENO: result: yes" >&5
37901 echo "${ECHO_T}yes" >&6; }
37904 echo "$as_me: failed program was:" >&5
37905 sed 's/^/| /' conftest.$ac_ext >&5
37908 { echo "$as_me:$LINENO: result: no" >&5
37909 echo "${ECHO_T}no" >&6; }
37914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37917 if test -z "$have_u_intxx_t" ; then
37918 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37919 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37920 if test "${ac_cv_have_uintxx_t+set}" = set; then
37921 echo $ECHO_N "(cached) $ECHO_C" >&6
37924 cat >conftest.$ac_ext <<_ACEOF
37927 cat confdefs.h >>conftest.$ac_ext
37928 cat >>conftest.$ac_ext <<_ACEOF
37929 /* end confdefs.h. */
37931 #include <sys/types.h>
37937 uint8_t a; uint16_t b;
37938 uint32_t c; a = b = c = 1;
37944 rm -f conftest.$ac_objext
37945 if { (ac_try="$ac_compile"
37946 case "(($ac_try" in
37947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37948 *) ac_try_echo=$ac_try;;
37950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37951 (eval "$ac_compile") 2>conftest.er1
37953 grep -v '^ *+' conftest.er1 >conftest.err
37955 cat conftest.err >&5
37956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957 (exit $ac_status); } && {
37958 test -z "$ac_cxx_werror_flag" ||
37959 test ! -s conftest.err
37960 } && test -s conftest.$ac_objext; then
37962 ac_cv_have_uintxx_t="yes"
37965 echo "$as_me: failed program was:" >&5
37966 sed 's/^/| /' conftest.$ac_ext >&5
37969 ac_cv_have_uintxx_t="no"
37974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37978 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37979 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37980 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37981 cat >>confdefs.h <<\_ACEOF
37982 #define HAVE_UINTXX_T 1
37988 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37989 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37991 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37992 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37993 cat >conftest.$ac_ext <<_ACEOF
37996 cat confdefs.h >>conftest.$ac_ext
37997 cat >>conftest.$ac_ext <<_ACEOF
37998 /* end confdefs.h. */
38000 #include <sys/bitypes.h>
38006 int64_t a; u_int64_t b;
38013 rm -f conftest.$ac_objext
38014 if { (ac_try="$ac_compile"
38015 case "(($ac_try" in
38016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38017 *) ac_try_echo=$ac_try;;
38019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38020 (eval "$ac_compile") 2>conftest.er1
38022 grep -v '^ *+' conftest.er1 >conftest.err
38024 cat conftest.err >&5
38025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026 (exit $ac_status); } && {
38027 test -z "$ac_cxx_werror_flag" ||
38028 test ! -s conftest.err
38029 } && test -s conftest.$ac_objext; then
38031 cat >>confdefs.h <<\_ACEOF
38032 #define HAVE_U_INT64_T 1
38035 cat >>confdefs.h <<\_ACEOF
38036 #define HAVE_INT64_T 1
38039 { echo "$as_me:$LINENO: result: yes" >&5
38040 echo "${ECHO_T}yes" >&6; }
38043 echo "$as_me: failed program was:" >&5
38044 sed 's/^/| /' conftest.$ac_ext >&5
38047 { echo "$as_me:$LINENO: result: no" >&5
38048 echo "${ECHO_T}no" >&6; }
38053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38056 if (test -z "$have_uintxx_t" && \
38057 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38059 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38060 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38061 cat >conftest.$ac_ext <<_ACEOF
38064 cat confdefs.h >>conftest.$ac_ext
38065 cat >>conftest.$ac_ext <<_ACEOF
38066 /* end confdefs.h. */
38068 #include <sys/bitypes.h>
38074 uint8_t a; uint16_t b;
38075 uint32_t c; a = b = c = 1;
38081 rm -f conftest.$ac_objext
38082 if { (ac_try="$ac_compile"
38083 case "(($ac_try" in
38084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38085 *) ac_try_echo=$ac_try;;
38087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38088 (eval "$ac_compile") 2>conftest.er1
38090 grep -v '^ *+' conftest.er1 >conftest.err
38092 cat conftest.err >&5
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); } && {
38095 test -z "$ac_cxx_werror_flag" ||
38096 test ! -s conftest.err
38097 } && test -s conftest.$ac_objext; then
38099 cat >>confdefs.h <<\_ACEOF
38100 #define HAVE_UINTXX_T 1
38103 { echo "$as_me:$LINENO: result: yes" >&5
38104 echo "${ECHO_T}yes" >&6; }
38107 echo "$as_me: failed program was:" >&5
38108 sed 's/^/| /' conftest.$ac_ext >&5
38111 { echo "$as_me:$LINENO: result: no" >&5
38112 echo "${ECHO_T}no" >&6; }
38117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38153 echo $ECHO_N "(cached) $ECHO_C" >&6
38155 cat >conftest.$ac_ext <<_ACEOF
38158 cat confdefs.h >>conftest.$ac_ext
38159 cat >>conftest.$ac_ext <<_ACEOF
38160 /* end confdefs.h. */
38161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38163 #define $ac_func innocuous_$ac_func
38165 /* System header to define __stub macros and hopefully few prototypes,
38166 which can conflict with char $ac_func (); below.
38167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38168 <limits.h> exists even on freestanding compilers. */
38171 # include <limits.h>
38173 # include <assert.h>
38178 /* Override any GCC internal prototype to avoid an error.
38179 Use char because int might match the return type of a GCC
38180 builtin and then its argument prototype would still apply. */
38185 /* The GNU C library defines this for functions which it implements
38186 to always fail with ENOSYS. Some functions are actually named
38187 something starting with __ and the normal name is an alias. */
38188 #if defined __stub_$ac_func || defined __stub___$ac_func
38195 return $ac_func ();
38200 rm -f conftest.$ac_objext conftest$ac_exeext
38201 if { (ac_try="$ac_link"
38202 case "(($ac_try" in
38203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38204 *) ac_try_echo=$ac_try;;
38206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38207 (eval "$ac_link") 2>conftest.er1
38209 grep -v '^ *+' conftest.er1 >conftest.err
38211 cat conftest.err >&5
38212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213 (exit $ac_status); } && {
38214 test -z "$ac_cxx_werror_flag" ||
38215 test ! -s conftest.err
38216 } && test -s conftest$ac_exeext &&
38217 $as_test_x conftest$ac_exeext; then
38218 eval "$as_ac_var=yes"
38220 echo "$as_me: failed program was:" >&5
38221 sed 's/^/| /' conftest.$ac_ext >&5
38223 eval "$as_ac_var=no"
38226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38227 conftest$ac_exeext conftest.$ac_ext
38229 ac_res=`eval echo '${'$as_ac_var'}'`
38230 { echo "$as_me:$LINENO: result: $ac_res" >&5
38231 echo "${ECHO_T}$ac_res" >&6; }
38232 if test `eval echo '${'$as_ac_var'}'` = yes; then
38233 cat >>confdefs.h <<_ACEOF
38234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38238 echo 'configure: cannot find needed function.'; exit 1
38245 for ac_func in fchdir
38247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38251 echo $ECHO_N "(cached) $ECHO_C" >&6
38253 cat >conftest.$ac_ext <<_ACEOF
38256 cat confdefs.h >>conftest.$ac_ext
38257 cat >>conftest.$ac_ext <<_ACEOF
38258 /* end confdefs.h. */
38259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38261 #define $ac_func innocuous_$ac_func
38263 /* System header to define __stub macros and hopefully few prototypes,
38264 which can conflict with char $ac_func (); below.
38265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38266 <limits.h> exists even on freestanding compilers. */
38269 # include <limits.h>
38271 # include <assert.h>
38276 /* Override any GCC internal prototype to avoid an error.
38277 Use char because int might match the return type of a GCC
38278 builtin and then its argument prototype would still apply. */
38283 /* The GNU C library defines this for functions which it implements
38284 to always fail with ENOSYS. Some functions are actually named
38285 something starting with __ and the normal name is an alias. */
38286 #if defined __stub_$ac_func || defined __stub___$ac_func
38293 return $ac_func ();
38298 rm -f conftest.$ac_objext conftest$ac_exeext
38299 if { (ac_try="$ac_link"
38300 case "(($ac_try" in
38301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38302 *) ac_try_echo=$ac_try;;
38304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38305 (eval "$ac_link") 2>conftest.er1
38307 grep -v '^ *+' conftest.er1 >conftest.err
38309 cat conftest.err >&5
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); } && {
38312 test -z "$ac_cxx_werror_flag" ||
38313 test ! -s conftest.err
38314 } && test -s conftest$ac_exeext &&
38315 $as_test_x conftest$ac_exeext; then
38316 eval "$as_ac_var=yes"
38318 echo "$as_me: failed program was:" >&5
38319 sed 's/^/| /' conftest.$ac_ext >&5
38321 eval "$as_ac_var=no"
38324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38325 conftest$ac_exeext conftest.$ac_ext
38327 ac_res=`eval echo '${'$as_ac_var'}'`
38328 { echo "$as_me:$LINENO: result: $ac_res" >&5
38329 echo "${ECHO_T}$ac_res" >&6; }
38330 if test `eval echo '${'$as_ac_var'}'` = yes; then
38331 cat >>confdefs.h <<_ACEOF
38332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38334 cat >>confdefs.h <<\_ACEOF
38335 #define HAVE_FCHDIR 1
38342 for ac_func in strtoll
38344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38348 echo $ECHO_N "(cached) $ECHO_C" >&6
38350 cat >conftest.$ac_ext <<_ACEOF
38353 cat confdefs.h >>conftest.$ac_ext
38354 cat >>conftest.$ac_ext <<_ACEOF
38355 /* end confdefs.h. */
38356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38358 #define $ac_func innocuous_$ac_func
38360 /* System header to define __stub macros and hopefully few prototypes,
38361 which can conflict with char $ac_func (); below.
38362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38363 <limits.h> exists even on freestanding compilers. */
38366 # include <limits.h>
38368 # include <assert.h>
38373 /* Override any GCC internal prototype to avoid an error.
38374 Use char because int might match the return type of a GCC
38375 builtin and then its argument prototype would still apply. */
38380 /* The GNU C library defines this for functions which it implements
38381 to always fail with ENOSYS. Some functions are actually named
38382 something starting with __ and the normal name is an alias. */
38383 #if defined __stub_$ac_func || defined __stub___$ac_func
38390 return $ac_func ();
38395 rm -f conftest.$ac_objext conftest$ac_exeext
38396 if { (ac_try="$ac_link"
38397 case "(($ac_try" in
38398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38399 *) ac_try_echo=$ac_try;;
38401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38402 (eval "$ac_link") 2>conftest.er1
38404 grep -v '^ *+' conftest.er1 >conftest.err
38406 cat conftest.err >&5
38407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38408 (exit $ac_status); } && {
38409 test -z "$ac_cxx_werror_flag" ||
38410 test ! -s conftest.err
38411 } && test -s conftest$ac_exeext &&
38412 $as_test_x conftest$ac_exeext; then
38413 eval "$as_ac_var=yes"
38415 echo "$as_me: failed program was:" >&5
38416 sed 's/^/| /' conftest.$ac_ext >&5
38418 eval "$as_ac_var=no"
38421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38422 conftest$ac_exeext conftest.$ac_ext
38424 ac_res=`eval echo '${'$as_ac_var'}'`
38425 { echo "$as_me:$LINENO: result: $ac_res" >&5
38426 echo "${ECHO_T}$ac_res" >&6; }
38427 if test `eval echo '${'$as_ac_var'}'` = yes; then
38428 cat >>confdefs.h <<_ACEOF
38429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38431 cat >>confdefs.h <<\_ACEOF
38432 #define HAVE_STRTOLL 1
38439 for ac_func in posix_fadvise
38441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38445 echo $ECHO_N "(cached) $ECHO_C" >&6
38447 cat >conftest.$ac_ext <<_ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h. */
38453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38455 #define $ac_func innocuous_$ac_func
38457 /* System header to define __stub macros and hopefully few prototypes,
38458 which can conflict with char $ac_func (); below.
38459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38460 <limits.h> exists even on freestanding compilers. */
38463 # include <limits.h>
38465 # include <assert.h>
38470 /* Override any GCC internal prototype to avoid an error.
38471 Use char because int might match the return type of a GCC
38472 builtin and then its argument prototype would still apply. */
38477 /* The GNU C library defines this for functions which it implements
38478 to always fail with ENOSYS. Some functions are actually named
38479 something starting with __ and the normal name is an alias. */
38480 #if defined __stub_$ac_func || defined __stub___$ac_func
38487 return $ac_func ();
38492 rm -f conftest.$ac_objext conftest$ac_exeext
38493 if { (ac_try="$ac_link"
38494 case "(($ac_try" in
38495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38496 *) ac_try_echo=$ac_try;;
38498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38499 (eval "$ac_link") 2>conftest.er1
38501 grep -v '^ *+' conftest.er1 >conftest.err
38503 cat conftest.err >&5
38504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505 (exit $ac_status); } && {
38506 test -z "$ac_cxx_werror_flag" ||
38507 test ! -s conftest.err
38508 } && test -s conftest$ac_exeext &&
38509 $as_test_x conftest$ac_exeext; then
38510 eval "$as_ac_var=yes"
38512 echo "$as_me: failed program was:" >&5
38513 sed 's/^/| /' conftest.$ac_ext >&5
38515 eval "$as_ac_var=no"
38518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38519 conftest$ac_exeext conftest.$ac_ext
38521 ac_res=`eval echo '${'$as_ac_var'}'`
38522 { echo "$as_me:$LINENO: result: $ac_res" >&5
38523 echo "${ECHO_T}$ac_res" >&6; }
38524 if test `eval echo '${'$as_ac_var'}'` = yes; then
38525 cat >>confdefs.h <<_ACEOF
38526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38533 for ac_func in fdatasync
38535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38539 echo $ECHO_N "(cached) $ECHO_C" >&6
38541 cat >conftest.$ac_ext <<_ACEOF
38544 cat confdefs.h >>conftest.$ac_ext
38545 cat >>conftest.$ac_ext <<_ACEOF
38546 /* end confdefs.h. */
38547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38549 #define $ac_func innocuous_$ac_func
38551 /* System header to define __stub macros and hopefully few prototypes,
38552 which can conflict with char $ac_func (); below.
38553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38554 <limits.h> exists even on freestanding compilers. */
38557 # include <limits.h>
38559 # include <assert.h>
38564 /* Override any GCC internal prototype to avoid an error.
38565 Use char because int might match the return type of a GCC
38566 builtin and then its argument prototype would still apply. */
38571 /* The GNU C library defines this for functions which it implements
38572 to always fail with ENOSYS. Some functions are actually named
38573 something starting with __ and the normal name is an alias. */
38574 #if defined __stub_$ac_func || defined __stub___$ac_func
38581 return $ac_func ();
38586 rm -f conftest.$ac_objext conftest$ac_exeext
38587 if { (ac_try="$ac_link"
38588 case "(($ac_try" in
38589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38590 *) ac_try_echo=$ac_try;;
38592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38593 (eval "$ac_link") 2>conftest.er1
38595 grep -v '^ *+' conftest.er1 >conftest.err
38597 cat conftest.err >&5
38598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599 (exit $ac_status); } && {
38600 test -z "$ac_cxx_werror_flag" ||
38601 test ! -s conftest.err
38602 } && test -s conftest$ac_exeext &&
38603 $as_test_x conftest$ac_exeext; then
38604 eval "$as_ac_var=yes"
38606 echo "$as_me: failed program was:" >&5
38607 sed 's/^/| /' conftest.$ac_ext >&5
38609 eval "$as_ac_var=no"
38612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38613 conftest$ac_exeext conftest.$ac_ext
38615 ac_res=`eval echo '${'$as_ac_var'}'`
38616 { echo "$as_me:$LINENO: result: $ac_res" >&5
38617 echo "${ECHO_T}$ac_res" >&6; }
38618 if test `eval echo '${'$as_ac_var'}'` = yes; then
38619 cat >>confdefs.h <<_ACEOF
38620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38628 for ac_func in chflags
38630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38634 echo $ECHO_N "(cached) $ECHO_C" >&6
38636 cat >conftest.$ac_ext <<_ACEOF
38639 cat confdefs.h >>conftest.$ac_ext
38640 cat >>conftest.$ac_ext <<_ACEOF
38641 /* end confdefs.h. */
38642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38644 #define $ac_func innocuous_$ac_func
38646 /* System header to define __stub macros and hopefully few prototypes,
38647 which can conflict with char $ac_func (); below.
38648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38649 <limits.h> exists even on freestanding compilers. */
38652 # include <limits.h>
38654 # include <assert.h>
38659 /* Override any GCC internal prototype to avoid an error.
38660 Use char because int might match the return type of a GCC
38661 builtin and then its argument prototype would still apply. */
38666 /* The GNU C library defines this for functions which it implements
38667 to always fail with ENOSYS. Some functions are actually named
38668 something starting with __ and the normal name is an alias. */
38669 #if defined __stub_$ac_func || defined __stub___$ac_func
38676 return $ac_func ();
38681 rm -f conftest.$ac_objext conftest$ac_exeext
38682 if { (ac_try="$ac_link"
38683 case "(($ac_try" in
38684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38685 *) ac_try_echo=$ac_try;;
38687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38688 (eval "$ac_link") 2>conftest.er1
38690 grep -v '^ *+' conftest.er1 >conftest.err
38692 cat conftest.err >&5
38693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38694 (exit $ac_status); } && {
38695 test -z "$ac_cxx_werror_flag" ||
38696 test ! -s conftest.err
38697 } && test -s conftest$ac_exeext &&
38698 $as_test_x conftest$ac_exeext; then
38699 eval "$as_ac_var=yes"
38701 echo "$as_me: failed program was:" >&5
38702 sed 's/^/| /' conftest.$ac_ext >&5
38704 eval "$as_ac_var=no"
38707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38708 conftest$ac_exeext conftest.$ac_ext
38710 ac_res=`eval echo '${'$as_ac_var'}'`
38711 { echo "$as_me:$LINENO: result: $ac_res" >&5
38712 echo "${ECHO_T}$ac_res" >&6; }
38713 if test `eval echo '${'$as_ac_var'}'` = yes; then
38714 cat >>confdefs.h <<_ACEOF
38715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38726 for ac_func in snprintf vsnprintf gethostid fseeko
38728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38732 echo $ECHO_N "(cached) $ECHO_C" >&6
38734 cat >conftest.$ac_ext <<_ACEOF
38737 cat confdefs.h >>conftest.$ac_ext
38738 cat >>conftest.$ac_ext <<_ACEOF
38739 /* end confdefs.h. */
38740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38742 #define $ac_func innocuous_$ac_func
38744 /* System header to define __stub macros and hopefully few prototypes,
38745 which can conflict with char $ac_func (); below.
38746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38747 <limits.h> exists even on freestanding compilers. */
38750 # include <limits.h>
38752 # include <assert.h>
38757 /* Override any GCC internal prototype to avoid an error.
38758 Use char because int might match the return type of a GCC
38759 builtin and then its argument prototype would still apply. */
38764 /* The GNU C library defines this for functions which it implements
38765 to always fail with ENOSYS. Some functions are actually named
38766 something starting with __ and the normal name is an alias. */
38767 #if defined __stub_$ac_func || defined __stub___$ac_func
38774 return $ac_func ();
38779 rm -f conftest.$ac_objext conftest$ac_exeext
38780 if { (ac_try="$ac_link"
38781 case "(($ac_try" in
38782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38783 *) ac_try_echo=$ac_try;;
38785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38786 (eval "$ac_link") 2>conftest.er1
38788 grep -v '^ *+' conftest.er1 >conftest.err
38790 cat conftest.err >&5
38791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 (exit $ac_status); } && {
38793 test -z "$ac_cxx_werror_flag" ||
38794 test ! -s conftest.err
38795 } && test -s conftest$ac_exeext &&
38796 $as_test_x conftest$ac_exeext; then
38797 eval "$as_ac_var=yes"
38799 echo "$as_me: failed program was:" >&5
38800 sed 's/^/| /' conftest.$ac_ext >&5
38802 eval "$as_ac_var=no"
38805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38806 conftest$ac_exeext conftest.$ac_ext
38808 ac_res=`eval echo '${'$as_ac_var'}'`
38809 { echo "$as_me:$LINENO: result: $ac_res" >&5
38810 echo "${ECHO_T}$ac_res" >&6; }
38811 if test `eval echo '${'$as_ac_var'}'` = yes; then
38812 cat >>confdefs.h <<_ACEOF
38813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38820 { echo "$as_me:$LINENO: checking for va_copy" >&5
38821 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38822 if test "${ba_cv_va_copy+set}" = set; then
38823 echo $ECHO_N "(cached) $ECHO_C" >&6
38826 cat >conftest.$ac_ext <<_ACEOF
38829 cat confdefs.h >>conftest.$ac_ext
38830 cat >>conftest.$ac_ext <<_ACEOF
38831 /* end confdefs.h. */
38833 #include <stdarg.h>
38834 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38835 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38841 call_use_va_copy(1,2,3)
38847 rm -f conftest.$ac_objext conftest$ac_exeext
38848 if { (ac_try="$ac_link"
38849 case "(($ac_try" in
38850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38851 *) ac_try_echo=$ac_try;;
38853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38854 (eval "$ac_link") 2>conftest.er1
38856 grep -v '^ *+' conftest.er1 >conftest.err
38858 cat conftest.err >&5
38859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860 (exit $ac_status); } && {
38861 test -z "$ac_cxx_werror_flag" ||
38862 test ! -s conftest.err
38863 } && test -s conftest$ac_exeext &&
38864 $as_test_x conftest$ac_exeext; then
38869 echo "$as_me: failed program was:" >&5
38870 sed 's/^/| /' conftest.$ac_ext >&5
38878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38879 conftest$ac_exeext conftest.$ac_ext
38883 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38884 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38885 test $ba_cv_va_copy = yes &&
38886 cat >>confdefs.h <<\_ACEOF
38887 #define HAVE_VA_COPY 1
38895 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38901 echo $ECHO_N "(cached) $ECHO_C" >&6
38903 cat >conftest.$ac_ext <<_ACEOF
38906 cat confdefs.h >>conftest.$ac_ext
38907 cat >>conftest.$ac_ext <<_ACEOF
38908 /* end confdefs.h. */
38909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38911 #define $ac_func innocuous_$ac_func
38913 /* System header to define __stub macros and hopefully few prototypes,
38914 which can conflict with char $ac_func (); below.
38915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38916 <limits.h> exists even on freestanding compilers. */
38919 # include <limits.h>
38921 # include <assert.h>
38926 /* Override any GCC internal prototype to avoid an error.
38927 Use char because int might match the return type of a GCC
38928 builtin and then its argument prototype would still apply. */
38933 /* The GNU C library defines this for functions which it implements
38934 to always fail with ENOSYS. Some functions are actually named
38935 something starting with __ and the normal name is an alias. */
38936 #if defined __stub_$ac_func || defined __stub___$ac_func
38943 return $ac_func ();
38948 rm -f conftest.$ac_objext conftest$ac_exeext
38949 if { (ac_try="$ac_link"
38950 case "(($ac_try" in
38951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38952 *) ac_try_echo=$ac_try;;
38954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38955 (eval "$ac_link") 2>conftest.er1
38957 grep -v '^ *+' conftest.er1 >conftest.err
38959 cat conftest.err >&5
38960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961 (exit $ac_status); } && {
38962 test -z "$ac_cxx_werror_flag" ||
38963 test ! -s conftest.err
38964 } && test -s conftest$ac_exeext &&
38965 $as_test_x conftest$ac_exeext; then
38966 eval "$as_ac_var=yes"
38968 echo "$as_me: failed program was:" >&5
38969 sed 's/^/| /' conftest.$ac_ext >&5
38971 eval "$as_ac_var=no"
38974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38975 conftest$ac_exeext conftest.$ac_ext
38977 ac_res=`eval echo '${'$as_ac_var'}'`
38978 { echo "$as_me:$LINENO: result: $ac_res" >&5
38979 echo "${ECHO_T}$ac_res" >&6; }
38980 if test `eval echo '${'$as_ac_var'}'` = yes; then
38981 cat >>confdefs.h <<_ACEOF
38982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38989 # If resolver functions are not in libc check for -lnsl or -lresolv.
38990 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38991 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38992 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38993 echo $ECHO_N "(cached) $ECHO_C" >&6
38995 cat >conftest.$ac_ext <<_ACEOF
38998 cat confdefs.h >>conftest.$ac_ext
38999 cat >>conftest.$ac_ext <<_ACEOF
39000 /* end confdefs.h. */
39001 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39003 #define gethostbyname_r innocuous_gethostbyname_r
39005 /* System header to define __stub macros and hopefully few prototypes,
39006 which can conflict with char gethostbyname_r (); below.
39007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39008 <limits.h> exists even on freestanding compilers. */
39011 # include <limits.h>
39013 # include <assert.h>
39016 #undef gethostbyname_r
39018 /* Override any GCC internal prototype to avoid an error.
39019 Use char because int might match the return type of a GCC
39020 builtin and then its argument prototype would still apply. */
39024 char gethostbyname_r ();
39025 /* The GNU C library defines this for functions which it implements
39026 to always fail with ENOSYS. Some functions are actually named
39027 something starting with __ and the normal name is an alias. */
39028 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39035 return gethostbyname_r ();
39040 rm -f conftest.$ac_objext conftest$ac_exeext
39041 if { (ac_try="$ac_link"
39042 case "(($ac_try" in
39043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39044 *) ac_try_echo=$ac_try;;
39046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39047 (eval "$ac_link") 2>conftest.er1
39049 grep -v '^ *+' conftest.er1 >conftest.err
39051 cat conftest.err >&5
39052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39053 (exit $ac_status); } && {
39054 test -z "$ac_cxx_werror_flag" ||
39055 test ! -s conftest.err
39056 } && test -s conftest$ac_exeext &&
39057 $as_test_x conftest$ac_exeext; then
39058 ac_cv_func_gethostbyname_r=yes
39060 echo "$as_me: failed program was:" >&5
39061 sed 's/^/| /' conftest.$ac_ext >&5
39063 ac_cv_func_gethostbyname_r=no
39066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39067 conftest$ac_exeext conftest.$ac_ext
39069 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39070 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39071 if test $ac_cv_func_gethostbyname_r = yes; then
39072 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39073 echo "${ECHO_T}using libc's resolver" >&6; }
39076 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39077 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39078 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39079 echo $ECHO_N "(cached) $ECHO_C" >&6
39081 ac_check_lib_save_LIBS=$LIBS
39083 cat >conftest.$ac_ext <<_ACEOF
39086 cat confdefs.h >>conftest.$ac_ext
39087 cat >>conftest.$ac_ext <<_ACEOF
39088 /* end confdefs.h. */
39090 /* Override any GCC internal prototype to avoid an error.
39091 Use char because int might match the return type of a GCC
39092 builtin and then its argument prototype would still apply. */
39096 char gethostbyname_r ();
39100 return gethostbyname_r ();
39105 rm -f conftest.$ac_objext conftest$ac_exeext
39106 if { (ac_try="$ac_link"
39107 case "(($ac_try" in
39108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39109 *) ac_try_echo=$ac_try;;
39111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39112 (eval "$ac_link") 2>conftest.er1
39114 grep -v '^ *+' conftest.er1 >conftest.err
39116 cat conftest.err >&5
39117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39118 (exit $ac_status); } && {
39119 test -z "$ac_cxx_werror_flag" ||
39120 test ! -s conftest.err
39121 } && test -s conftest$ac_exeext &&
39122 $as_test_x conftest$ac_exeext; then
39123 ac_cv_lib_nsl_gethostbyname_r=yes
39125 echo "$as_me: failed program was:" >&5
39126 sed 's/^/| /' conftest.$ac_ext >&5
39128 ac_cv_lib_nsl_gethostbyname_r=no
39131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39132 conftest$ac_exeext conftest.$ac_ext
39133 LIBS=$ac_check_lib_save_LIBS
39135 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39136 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39137 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39138 cat >>confdefs.h <<_ACEOF
39139 #define HAVE_LIBNSL 1
39147 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39148 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39149 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39150 echo $ECHO_N "(cached) $ECHO_C" >&6
39152 ac_check_lib_save_LIBS=$LIBS
39153 LIBS="-lresolv $LIBS"
39154 cat >conftest.$ac_ext <<_ACEOF
39157 cat confdefs.h >>conftest.$ac_ext
39158 cat >>conftest.$ac_ext <<_ACEOF
39159 /* end confdefs.h. */
39161 /* Override any GCC internal prototype to avoid an error.
39162 Use char because int might match the return type of a GCC
39163 builtin and then its argument prototype would still apply. */
39167 char gethostbyname_r ();
39171 return gethostbyname_r ();
39176 rm -f conftest.$ac_objext conftest$ac_exeext
39177 if { (ac_try="$ac_link"
39178 case "(($ac_try" in
39179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39180 *) ac_try_echo=$ac_try;;
39182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39183 (eval "$ac_link") 2>conftest.er1
39185 grep -v '^ *+' conftest.er1 >conftest.err
39187 cat conftest.err >&5
39188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189 (exit $ac_status); } && {
39190 test -z "$ac_cxx_werror_flag" ||
39191 test ! -s conftest.err
39192 } && test -s conftest$ac_exeext &&
39193 $as_test_x conftest$ac_exeext; then
39194 ac_cv_lib_resolv_gethostbyname_r=yes
39196 echo "$as_me: failed program was:" >&5
39197 sed 's/^/| /' conftest.$ac_ext >&5
39199 ac_cv_lib_resolv_gethostbyname_r=no
39202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39203 conftest$ac_exeext conftest.$ac_ext
39204 LIBS=$ac_check_lib_save_LIBS
39206 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39207 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39208 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39209 cat >>confdefs.h <<_ACEOF
39210 #define HAVE_LIBRESOLV 1
39213 LIBS="-lresolv $LIBS"
39221 for ac_func in inet_pton
39223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39227 echo $ECHO_N "(cached) $ECHO_C" >&6
39229 cat >conftest.$ac_ext <<_ACEOF
39232 cat confdefs.h >>conftest.$ac_ext
39233 cat >>conftest.$ac_ext <<_ACEOF
39234 /* end confdefs.h. */
39235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39237 #define $ac_func innocuous_$ac_func
39239 /* System header to define __stub macros and hopefully few prototypes,
39240 which can conflict with char $ac_func (); below.
39241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39242 <limits.h> exists even on freestanding compilers. */
39245 # include <limits.h>
39247 # include <assert.h>
39252 /* Override any GCC internal prototype to avoid an error.
39253 Use char because int might match the return type of a GCC
39254 builtin and then its argument prototype would still apply. */
39259 /* The GNU C library defines this for functions which it implements
39260 to always fail with ENOSYS. Some functions are actually named
39261 something starting with __ and the normal name is an alias. */
39262 #if defined __stub_$ac_func || defined __stub___$ac_func
39269 return $ac_func ();
39274 rm -f conftest.$ac_objext conftest$ac_exeext
39275 if { (ac_try="$ac_link"
39276 case "(($ac_try" in
39277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39278 *) ac_try_echo=$ac_try;;
39280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39281 (eval "$ac_link") 2>conftest.er1
39283 grep -v '^ *+' conftest.er1 >conftest.err
39285 cat conftest.err >&5
39286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287 (exit $ac_status); } && {
39288 test -z "$ac_cxx_werror_flag" ||
39289 test ! -s conftest.err
39290 } && test -s conftest$ac_exeext &&
39291 $as_test_x conftest$ac_exeext; then
39292 eval "$as_ac_var=yes"
39294 echo "$as_me: failed program was:" >&5
39295 sed 's/^/| /' conftest.$ac_ext >&5
39297 eval "$as_ac_var=no"
39300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39301 conftest$ac_exeext conftest.$ac_ext
39303 ac_res=`eval echo '${'$as_ac_var'}'`
39304 { echo "$as_me:$LINENO: result: $ac_res" >&5
39305 echo "${ECHO_T}$ac_res" >&6; }
39306 if test `eval echo '${'$as_ac_var'}'` = yes; then
39307 cat >>confdefs.h <<_ACEOF
39308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39310 cat >>confdefs.h <<\_ACEOF
39311 #define HAVE_INET_PTON 1
39318 for ac_func in inet_ntop
39320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39324 echo $ECHO_N "(cached) $ECHO_C" >&6
39326 cat >conftest.$ac_ext <<_ACEOF
39329 cat confdefs.h >>conftest.$ac_ext
39330 cat >>conftest.$ac_ext <<_ACEOF
39331 /* end confdefs.h. */
39332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39334 #define $ac_func innocuous_$ac_func
39336 /* System header to define __stub macros and hopefully few prototypes,
39337 which can conflict with char $ac_func (); below.
39338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39339 <limits.h> exists even on freestanding compilers. */
39342 # include <limits.h>
39344 # include <assert.h>
39349 /* Override any GCC internal prototype to avoid an error.
39350 Use char because int might match the return type of a GCC
39351 builtin and then its argument prototype would still apply. */
39356 /* The GNU C library defines this for functions which it implements
39357 to always fail with ENOSYS. Some functions are actually named
39358 something starting with __ and the normal name is an alias. */
39359 #if defined __stub_$ac_func || defined __stub___$ac_func
39366 return $ac_func ();
39371 rm -f conftest.$ac_objext conftest$ac_exeext
39372 if { (ac_try="$ac_link"
39373 case "(($ac_try" in
39374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39375 *) ac_try_echo=$ac_try;;
39377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39378 (eval "$ac_link") 2>conftest.er1
39380 grep -v '^ *+' conftest.er1 >conftest.err
39382 cat conftest.err >&5
39383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384 (exit $ac_status); } && {
39385 test -z "$ac_cxx_werror_flag" ||
39386 test ! -s conftest.err
39387 } && test -s conftest$ac_exeext &&
39388 $as_test_x conftest$ac_exeext; then
39389 eval "$as_ac_var=yes"
39391 echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39394 eval "$as_ac_var=no"
39397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39398 conftest$ac_exeext conftest.$ac_ext
39400 ac_res=`eval echo '${'$as_ac_var'}'`
39401 { echo "$as_me:$LINENO: result: $ac_res" >&5
39402 echo "${ECHO_T}$ac_res" >&6; }
39403 if test `eval echo '${'$as_ac_var'}'` = yes; then
39404 cat >>confdefs.h <<_ACEOF
39405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39407 cat >>confdefs.h <<\_ACEOF
39408 #define HAVE_INET_NTOP 1
39415 for ac_func in gethostbyname2
39417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39421 echo $ECHO_N "(cached) $ECHO_C" >&6
39423 cat >conftest.$ac_ext <<_ACEOF
39426 cat confdefs.h >>conftest.$ac_ext
39427 cat >>conftest.$ac_ext <<_ACEOF
39428 /* end confdefs.h. */
39429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39431 #define $ac_func innocuous_$ac_func
39433 /* System header to define __stub macros and hopefully few prototypes,
39434 which can conflict with char $ac_func (); below.
39435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39436 <limits.h> exists even on freestanding compilers. */
39439 # include <limits.h>
39441 # include <assert.h>
39446 /* Override any GCC internal prototype to avoid an error.
39447 Use char because int might match the return type of a GCC
39448 builtin and then its argument prototype would still apply. */
39453 /* The GNU C library defines this for functions which it implements
39454 to always fail with ENOSYS. Some functions are actually named
39455 something starting with __ and the normal name is an alias. */
39456 #if defined __stub_$ac_func || defined __stub___$ac_func
39463 return $ac_func ();
39468 rm -f conftest.$ac_objext conftest$ac_exeext
39469 if { (ac_try="$ac_link"
39470 case "(($ac_try" in
39471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39472 *) ac_try_echo=$ac_try;;
39474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39475 (eval "$ac_link") 2>conftest.er1
39477 grep -v '^ *+' conftest.er1 >conftest.err
39479 cat conftest.err >&5
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); } && {
39482 test -z "$ac_cxx_werror_flag" ||
39483 test ! -s conftest.err
39484 } && test -s conftest$ac_exeext &&
39485 $as_test_x conftest$ac_exeext; then
39486 eval "$as_ac_var=yes"
39488 echo "$as_me: failed program was:" >&5
39489 sed 's/^/| /' conftest.$ac_ext >&5
39491 eval "$as_ac_var=no"
39494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39495 conftest$ac_exeext conftest.$ac_ext
39497 ac_res=`eval echo '${'$as_ac_var'}'`
39498 { echo "$as_me:$LINENO: result: $ac_res" >&5
39499 echo "${ECHO_T}$ac_res" >&6; }
39500 if test `eval echo '${'$as_ac_var'}'` = yes; then
39501 cat >>confdefs.h <<_ACEOF
39502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39504 cat >>confdefs.h <<\_ACEOF
39505 #define HAVE_GETHOSTBYNAME2 1
39512 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39513 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39514 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39515 echo $ECHO_N "(cached) $ECHO_C" >&6
39518 cat >conftest.$ac_ext <<_ACEOF
39521 cat confdefs.h >>conftest.$ac_ext
39522 cat >>conftest.$ac_ext <<_ACEOF
39523 /* end confdefs.h. */
39525 #include <sys/socket.h>
39531 struct sockaddr s; s.sa_len;
39537 rm -f conftest.$ac_objext
39538 if { (ac_try="$ac_compile"
39539 case "(($ac_try" in
39540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39541 *) ac_try_echo=$ac_try;;
39543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39544 (eval "$ac_compile") 2>conftest.er1
39546 grep -v '^ *+' conftest.er1 >conftest.err
39548 cat conftest.err >&5
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); } && {
39551 test -z "$ac_cxx_werror_flag" ||
39552 test ! -s conftest.err
39553 } && test -s conftest.$ac_objext; then
39555 ac_cv_struct_sockaddr_sa_len=yes
39558 echo "$as_me: failed program was:" >&5
39559 sed 's/^/| /' conftest.$ac_ext >&5
39561 ac_cv_struct_sockaddr_sa_len=no
39566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39570 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39571 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39573 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39575 cat >>confdefs.h <<\_ACEOF
39576 #define HAVE_SA_LEN 1
39582 for ac_func in strftime
39584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39588 echo $ECHO_N "(cached) $ECHO_C" >&6
39590 cat >conftest.$ac_ext <<_ACEOF
39593 cat confdefs.h >>conftest.$ac_ext
39594 cat >>conftest.$ac_ext <<_ACEOF
39595 /* end confdefs.h. */
39596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39598 #define $ac_func innocuous_$ac_func
39600 /* System header to define __stub macros and hopefully few prototypes,
39601 which can conflict with char $ac_func (); below.
39602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39603 <limits.h> exists even on freestanding compilers. */
39606 # include <limits.h>
39608 # include <assert.h>
39613 /* Override any GCC internal prototype to avoid an error.
39614 Use char because int might match the return type of a GCC
39615 builtin and then its argument prototype would still apply. */
39620 /* The GNU C library defines this for functions which it implements
39621 to always fail with ENOSYS. Some functions are actually named
39622 something starting with __ and the normal name is an alias. */
39623 #if defined __stub_$ac_func || defined __stub___$ac_func
39630 return $ac_func ();
39635 rm -f conftest.$ac_objext conftest$ac_exeext
39636 if { (ac_try="$ac_link"
39637 case "(($ac_try" in
39638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39639 *) ac_try_echo=$ac_try;;
39641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39642 (eval "$ac_link") 2>conftest.er1
39644 grep -v '^ *+' conftest.er1 >conftest.err
39646 cat conftest.err >&5
39647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39648 (exit $ac_status); } && {
39649 test -z "$ac_cxx_werror_flag" ||
39650 test ! -s conftest.err
39651 } && test -s conftest$ac_exeext &&
39652 $as_test_x conftest$ac_exeext; then
39653 eval "$as_ac_var=yes"
39655 echo "$as_me: failed program was:" >&5
39656 sed 's/^/| /' conftest.$ac_ext >&5
39658 eval "$as_ac_var=no"
39661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39662 conftest$ac_exeext conftest.$ac_ext
39664 ac_res=`eval echo '${'$as_ac_var'}'`
39665 { echo "$as_me:$LINENO: result: $ac_res" >&5
39666 echo "${ECHO_T}$ac_res" >&6; }
39667 if test `eval echo '${'$as_ac_var'}'` = yes; then
39668 cat >>confdefs.h <<_ACEOF
39669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39673 # strftime is in -lintl on SCO UNIX.
39674 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39675 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39676 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39677 echo $ECHO_N "(cached) $ECHO_C" >&6
39679 ac_check_lib_save_LIBS=$LIBS
39680 LIBS="-lintl $LIBS"
39681 cat >conftest.$ac_ext <<_ACEOF
39684 cat confdefs.h >>conftest.$ac_ext
39685 cat >>conftest.$ac_ext <<_ACEOF
39686 /* end confdefs.h. */
39688 /* Override any GCC internal prototype to avoid an error.
39689 Use char because int might match the return type of a GCC
39690 builtin and then its argument prototype would still apply. */
39698 return strftime ();
39703 rm -f conftest.$ac_objext conftest$ac_exeext
39704 if { (ac_try="$ac_link"
39705 case "(($ac_try" in
39706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39707 *) ac_try_echo=$ac_try;;
39709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39710 (eval "$ac_link") 2>conftest.er1
39712 grep -v '^ *+' conftest.er1 >conftest.err
39714 cat conftest.err >&5
39715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716 (exit $ac_status); } && {
39717 test -z "$ac_cxx_werror_flag" ||
39718 test ! -s conftest.err
39719 } && test -s conftest$ac_exeext &&
39720 $as_test_x conftest$ac_exeext; then
39721 ac_cv_lib_intl_strftime=yes
39723 echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39726 ac_cv_lib_intl_strftime=no
39729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39730 conftest$ac_exeext conftest.$ac_ext
39731 LIBS=$ac_check_lib_save_LIBS
39733 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39734 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39735 if test $ac_cv_lib_intl_strftime = yes; then
39736 cat >>confdefs.h <<\_ACEOF
39737 #define HAVE_STRFTIME 1
39740 LIBS="-lintl $LIBS"
39747 for ac_func in vprintf
39749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39753 echo $ECHO_N "(cached) $ECHO_C" >&6
39755 cat >conftest.$ac_ext <<_ACEOF
39758 cat confdefs.h >>conftest.$ac_ext
39759 cat >>conftest.$ac_ext <<_ACEOF
39760 /* end confdefs.h. */
39761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39763 #define $ac_func innocuous_$ac_func
39765 /* System header to define __stub macros and hopefully few prototypes,
39766 which can conflict with char $ac_func (); below.
39767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39768 <limits.h> exists even on freestanding compilers. */
39771 # include <limits.h>
39773 # include <assert.h>
39778 /* Override any GCC internal prototype to avoid an error.
39779 Use char because int might match the return type of a GCC
39780 builtin and then its argument prototype would still apply. */
39785 /* The GNU C library defines this for functions which it implements
39786 to always fail with ENOSYS. Some functions are actually named
39787 something starting with __ and the normal name is an alias. */
39788 #if defined __stub_$ac_func || defined __stub___$ac_func
39795 return $ac_func ();
39800 rm -f conftest.$ac_objext conftest$ac_exeext
39801 if { (ac_try="$ac_link"
39802 case "(($ac_try" in
39803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39804 *) ac_try_echo=$ac_try;;
39806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39807 (eval "$ac_link") 2>conftest.er1
39809 grep -v '^ *+' conftest.er1 >conftest.err
39811 cat conftest.err >&5
39812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813 (exit $ac_status); } && {
39814 test -z "$ac_cxx_werror_flag" ||
39815 test ! -s conftest.err
39816 } && test -s conftest$ac_exeext &&
39817 $as_test_x conftest$ac_exeext; then
39818 eval "$as_ac_var=yes"
39820 echo "$as_me: failed program was:" >&5
39821 sed 's/^/| /' conftest.$ac_ext >&5
39823 eval "$as_ac_var=no"
39826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39827 conftest$ac_exeext conftest.$ac_ext
39829 ac_res=`eval echo '${'$as_ac_var'}'`
39830 { echo "$as_me:$LINENO: result: $ac_res" >&5
39831 echo "${ECHO_T}$ac_res" >&6; }
39832 if test `eval echo '${'$as_ac_var'}'` = yes; then
39833 cat >>confdefs.h <<_ACEOF
39834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39837 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39838 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39839 if test "${ac_cv_func__doprnt+set}" = set; then
39840 echo $ECHO_N "(cached) $ECHO_C" >&6
39842 cat >conftest.$ac_ext <<_ACEOF
39845 cat confdefs.h >>conftest.$ac_ext
39846 cat >>conftest.$ac_ext <<_ACEOF
39847 /* end confdefs.h. */
39848 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39850 #define _doprnt innocuous__doprnt
39852 /* System header to define __stub macros and hopefully few prototypes,
39853 which can conflict with char _doprnt (); below.
39854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39855 <limits.h> exists even on freestanding compilers. */
39858 # include <limits.h>
39860 # include <assert.h>
39865 /* Override any GCC internal prototype to avoid an error.
39866 Use char because int might match the return type of a GCC
39867 builtin and then its argument prototype would still apply. */
39872 /* The GNU C library defines this for functions which it implements
39873 to always fail with ENOSYS. Some functions are actually named
39874 something starting with __ and the normal name is an alias. */
39875 #if defined __stub__doprnt || defined __stub____doprnt
39887 rm -f conftest.$ac_objext conftest$ac_exeext
39888 if { (ac_try="$ac_link"
39889 case "(($ac_try" in
39890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39891 *) ac_try_echo=$ac_try;;
39893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39894 (eval "$ac_link") 2>conftest.er1
39896 grep -v '^ *+' conftest.er1 >conftest.err
39898 cat conftest.err >&5
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); } && {
39901 test -z "$ac_cxx_werror_flag" ||
39902 test ! -s conftest.err
39903 } && test -s conftest$ac_exeext &&
39904 $as_test_x conftest$ac_exeext; then
39905 ac_cv_func__doprnt=yes
39907 echo "$as_me: failed program was:" >&5
39908 sed 's/^/| /' conftest.$ac_ext >&5
39910 ac_cv_func__doprnt=no
39913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39914 conftest$ac_exeext conftest.$ac_ext
39916 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39917 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39918 if test $ac_cv_func__doprnt = yes; then
39920 cat >>confdefs.h <<\_ACEOF
39921 #define HAVE_DOPRNT 1
39930 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39931 # for constant arguments. Useless!
39932 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39933 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39934 if test "${ac_cv_working_alloca_h+set}" = set; then
39935 echo $ECHO_N "(cached) $ECHO_C" >&6
39937 cat >conftest.$ac_ext <<_ACEOF
39940 cat confdefs.h >>conftest.$ac_ext
39941 cat >>conftest.$ac_ext <<_ACEOF
39942 /* end confdefs.h. */
39943 #include <alloca.h>
39947 char *p = (char *) alloca (2 * sizeof (int));
39953 rm -f conftest.$ac_objext conftest$ac_exeext
39954 if { (ac_try="$ac_link"
39955 case "(($ac_try" in
39956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39957 *) ac_try_echo=$ac_try;;
39959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39960 (eval "$ac_link") 2>conftest.er1
39962 grep -v '^ *+' conftest.er1 >conftest.err
39964 cat conftest.err >&5
39965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39966 (exit $ac_status); } && {
39967 test -z "$ac_cxx_werror_flag" ||
39968 test ! -s conftest.err
39969 } && test -s conftest$ac_exeext &&
39970 $as_test_x conftest$ac_exeext; then
39971 ac_cv_working_alloca_h=yes
39973 echo "$as_me: failed program was:" >&5
39974 sed 's/^/| /' conftest.$ac_ext >&5
39976 ac_cv_working_alloca_h=no
39979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39980 conftest$ac_exeext conftest.$ac_ext
39982 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39983 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39984 if test $ac_cv_working_alloca_h = yes; then
39986 cat >>confdefs.h <<\_ACEOF
39987 #define HAVE_ALLOCA_H 1
39992 { echo "$as_me:$LINENO: checking for alloca" >&5
39993 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39994 if test "${ac_cv_func_alloca_works+set}" = set; then
39995 echo $ECHO_N "(cached) $ECHO_C" >&6
39997 cat >conftest.$ac_ext <<_ACEOF
40000 cat confdefs.h >>conftest.$ac_ext
40001 cat >>conftest.$ac_ext <<_ACEOF
40002 /* end confdefs.h. */
40004 # define alloca __builtin_alloca
40007 # include <malloc.h>
40008 # define alloca _alloca
40010 # ifdef HAVE_ALLOCA_H
40011 # include <alloca.h>
40016 # ifndef alloca /* predefined by HP cc +Olibcalls */
40027 char *p = (char *) alloca (1);
40033 rm -f conftest.$ac_objext conftest$ac_exeext
40034 if { (ac_try="$ac_link"
40035 case "(($ac_try" in
40036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40037 *) ac_try_echo=$ac_try;;
40039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40040 (eval "$ac_link") 2>conftest.er1
40042 grep -v '^ *+' conftest.er1 >conftest.err
40044 cat conftest.err >&5
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); } && {
40047 test -z "$ac_cxx_werror_flag" ||
40048 test ! -s conftest.err
40049 } && test -s conftest$ac_exeext &&
40050 $as_test_x conftest$ac_exeext; then
40051 ac_cv_func_alloca_works=yes
40053 echo "$as_me: failed program was:" >&5
40054 sed 's/^/| /' conftest.$ac_ext >&5
40056 ac_cv_func_alloca_works=no
40059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40060 conftest$ac_exeext conftest.$ac_ext
40062 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40063 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40065 if test $ac_cv_func_alloca_works = yes; then
40067 cat >>confdefs.h <<\_ACEOF
40068 #define HAVE_ALLOCA 1
40072 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40073 # that cause trouble. Some versions do not even contain alloca or
40074 # contain a buggy version. If you still want to use their alloca,
40075 # use ar to extract alloca.o from them instead of compiling alloca.c.
40077 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40079 cat >>confdefs.h <<\_ACEOF
40084 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40085 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40086 if test "${ac_cv_os_cray+set}" = set; then
40087 echo $ECHO_N "(cached) $ECHO_C" >&6
40089 cat >conftest.$ac_ext <<_ACEOF
40092 cat confdefs.h >>conftest.$ac_ext
40093 cat >>conftest.$ac_ext <<_ACEOF
40094 /* end confdefs.h. */
40095 #if defined CRAY && ! defined CRAY2
40102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40103 $EGREP "webecray" >/dev/null 2>&1; then
40111 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40112 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40113 if test $ac_cv_os_cray = yes; then
40114 for ac_func in _getb67 GETB67 getb67; do
40115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40119 echo $ECHO_N "(cached) $ECHO_C" >&6
40121 cat >conftest.$ac_ext <<_ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h. */
40127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40129 #define $ac_func innocuous_$ac_func
40131 /* System header to define __stub macros and hopefully few prototypes,
40132 which can conflict with char $ac_func (); below.
40133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40134 <limits.h> exists even on freestanding compilers. */
40137 # include <limits.h>
40139 # include <assert.h>
40144 /* Override any GCC internal prototype to avoid an error.
40145 Use char because int might match the return type of a GCC
40146 builtin and then its argument prototype would still apply. */
40151 /* The GNU C library defines this for functions which it implements
40152 to always fail with ENOSYS. Some functions are actually named
40153 something starting with __ and the normal name is an alias. */
40154 #if defined __stub_$ac_func || defined __stub___$ac_func
40161 return $ac_func ();
40166 rm -f conftest.$ac_objext conftest$ac_exeext
40167 if { (ac_try="$ac_link"
40168 case "(($ac_try" in
40169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40170 *) ac_try_echo=$ac_try;;
40172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40173 (eval "$ac_link") 2>conftest.er1
40175 grep -v '^ *+' conftest.er1 >conftest.err
40177 cat conftest.err >&5
40178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179 (exit $ac_status); } && {
40180 test -z "$ac_cxx_werror_flag" ||
40181 test ! -s conftest.err
40182 } && test -s conftest$ac_exeext &&
40183 $as_test_x conftest$ac_exeext; then
40184 eval "$as_ac_var=yes"
40186 echo "$as_me: failed program was:" >&5
40187 sed 's/^/| /' conftest.$ac_ext >&5
40189 eval "$as_ac_var=no"
40192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40193 conftest$ac_exeext conftest.$ac_ext
40195 ac_res=`eval echo '${'$as_ac_var'}'`
40196 { echo "$as_me:$LINENO: result: $ac_res" >&5
40197 echo "${ECHO_T}$ac_res" >&6; }
40198 if test `eval echo '${'$as_ac_var'}'` = yes; then
40200 cat >>confdefs.h <<_ACEOF
40201 #define CRAY_STACKSEG_END $ac_func
40210 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40211 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40212 if test "${ac_cv_c_stack_direction+set}" = set; then
40213 echo $ECHO_N "(cached) $ECHO_C" >&6
40215 if test "$cross_compiling" = yes; then
40216 ac_cv_c_stack_direction=0
40218 cat >conftest.$ac_ext <<_ACEOF
40221 cat confdefs.h >>conftest.$ac_ext
40222 cat >>conftest.$ac_ext <<_ACEOF
40223 /* end confdefs.h. */
40224 $ac_includes_default
40226 find_stack_direction ()
40228 static char *addr = 0;
40233 return find_stack_direction ();
40236 return (&dummy > addr) ? 1 : -1;
40242 return find_stack_direction () < 0;
40245 rm -f conftest$ac_exeext
40246 if { (ac_try="$ac_link"
40247 case "(($ac_try" in
40248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40249 *) ac_try_echo=$ac_try;;
40251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40252 (eval "$ac_link") 2>&5
40254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40256 { (case "(($ac_try" in
40257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40258 *) ac_try_echo=$ac_try;;
40260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40261 (eval "$ac_try") 2>&5
40263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264 (exit $ac_status); }; }; then
40265 ac_cv_c_stack_direction=1
40267 echo "$as_me: program exited with status $ac_status" >&5
40268 echo "$as_me: failed program was:" >&5
40269 sed 's/^/| /' conftest.$ac_ext >&5
40271 ( exit $ac_status )
40272 ac_cv_c_stack_direction=-1
40274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40279 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40280 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40282 cat >>confdefs.h <<_ACEOF
40283 #define STACK_DIRECTION $ac_cv_c_stack_direction
40289 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40290 # -lseq on Dynix/PTX, -lgen on Unixware.
40291 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40292 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40293 if test "${ac_cv_search_getmntent+set}" = set; then
40294 echo $ECHO_N "(cached) $ECHO_C" >&6
40296 ac_func_search_save_LIBS=$LIBS
40297 cat >conftest.$ac_ext <<_ACEOF
40300 cat confdefs.h >>conftest.$ac_ext
40301 cat >>conftest.$ac_ext <<_ACEOF
40302 /* end confdefs.h. */
40304 /* Override any GCC internal prototype to avoid an error.
40305 Use char because int might match the return type of a GCC
40306 builtin and then its argument prototype would still apply. */
40314 return getmntent ();
40319 for ac_lib in '' sun seq gen; do
40320 if test -z "$ac_lib"; then
40321 ac_res="none required"
40324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40326 rm -f conftest.$ac_objext conftest$ac_exeext
40327 if { (ac_try="$ac_link"
40328 case "(($ac_try" in
40329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40330 *) ac_try_echo=$ac_try;;
40332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40333 (eval "$ac_link") 2>conftest.er1
40335 grep -v '^ *+' conftest.er1 >conftest.err
40337 cat conftest.err >&5
40338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40339 (exit $ac_status); } && {
40340 test -z "$ac_cxx_werror_flag" ||
40341 test ! -s conftest.err
40342 } && test -s conftest$ac_exeext &&
40343 $as_test_x conftest$ac_exeext; then
40344 ac_cv_search_getmntent=$ac_res
40346 echo "$as_me: failed program was:" >&5
40347 sed 's/^/| /' conftest.$ac_ext >&5
40352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40354 if test "${ac_cv_search_getmntent+set}" = set; then
40358 if test "${ac_cv_search_getmntent+set}" = set; then
40361 ac_cv_search_getmntent=no
40363 rm conftest.$ac_ext
40364 LIBS=$ac_func_search_save_LIBS
40366 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40367 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40368 ac_res=$ac_cv_search_getmntent
40369 if test "$ac_res" != no; then
40370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40371 ac_cv_func_getmntent=yes
40373 cat >>confdefs.h <<\_ACEOF
40374 #define HAVE_GETMNTENT 1
40378 ac_cv_func_getmntent=no
40382 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40383 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40384 if test "${ac_cv_func_closedir_void+set}" = set; then
40385 echo $ECHO_N "(cached) $ECHO_C" >&6
40387 if test "$cross_compiling" = yes; then
40388 ac_cv_func_closedir_void=yes
40390 cat >conftest.$ac_ext <<_ACEOF
40393 cat confdefs.h >>conftest.$ac_ext
40394 cat >>conftest.$ac_ext <<_ACEOF
40395 /* end confdefs.h. */
40396 $ac_includes_default
40397 #include <$ac_header_dirent>
40398 #ifndef __cplusplus
40405 return closedir (opendir (".")) != 0;
40410 rm -f conftest$ac_exeext
40411 if { (ac_try="$ac_link"
40412 case "(($ac_try" in
40413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40414 *) ac_try_echo=$ac_try;;
40416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40417 (eval "$ac_link") 2>&5
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40421 { (case "(($ac_try" in
40422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40423 *) ac_try_echo=$ac_try;;
40425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40426 (eval "$ac_try") 2>&5
40428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40429 (exit $ac_status); }; }; then
40430 ac_cv_func_closedir_void=no
40432 echo "$as_me: program exited with status $ac_status" >&5
40433 echo "$as_me: failed program was:" >&5
40434 sed 's/^/| /' conftest.$ac_ext >&5
40436 ( exit $ac_status )
40437 ac_cv_func_closedir_void=yes
40439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40444 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40445 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40446 if test $ac_cv_func_closedir_void = yes; then
40448 cat >>confdefs.h <<\_ACEOF
40449 #define CLOSEDIR_VOID 1
40454 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40455 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40456 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40457 echo $ECHO_N "(cached) $ECHO_C" >&6
40459 if test "$cross_compiling" = yes; then
40460 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40461 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40462 { (exit 1); exit 1; }; }
40464 cat >conftest.$ac_ext <<_ACEOF
40467 cat confdefs.h >>conftest.$ac_ext
40468 cat >>conftest.$ac_ext <<_ACEOF
40469 /* end confdefs.h. */
40470 $ac_includes_default
40474 /* If this system has a BSD-style setpgrp which takes arguments,
40475 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40476 exit successfully. */
40477 return setpgrp (1,1) != -1;
40482 rm -f conftest$ac_exeext
40483 if { (ac_try="$ac_link"
40484 case "(($ac_try" in
40485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40486 *) ac_try_echo=$ac_try;;
40488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40489 (eval "$ac_link") 2>&5
40491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40493 { (case "(($ac_try" in
40494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40495 *) ac_try_echo=$ac_try;;
40497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40498 (eval "$ac_try") 2>&5
40500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40501 (exit $ac_status); }; }; then
40502 ac_cv_func_setpgrp_void=no
40504 echo "$as_me: program exited with status $ac_status" >&5
40505 echo "$as_me: failed program was:" >&5
40506 sed 's/^/| /' conftest.$ac_ext >&5
40508 ( exit $ac_status )
40509 ac_cv_func_setpgrp_void=yes
40511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40516 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40517 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40518 if test $ac_cv_func_setpgrp_void = yes; then
40520 cat >>confdefs.h <<\_ACEOF
40521 #define SETPGRP_VOID 1
40525 # AC_FUNC_FNMATCH dnl use local version
40527 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40528 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40529 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40530 echo $ECHO_N "(cached) $ECHO_C" >&6
40532 ac_check_lib_save_LIBS=$LIBS
40533 LIBS="-lintl $LIBS"
40534 cat >conftest.$ac_ext <<_ACEOF
40537 cat confdefs.h >>conftest.$ac_ext
40538 cat >>conftest.$ac_ext <<_ACEOF
40539 /* end confdefs.h. */
40541 /* Override any GCC internal prototype to avoid an error.
40542 Use char because int might match the return type of a GCC
40543 builtin and then its argument prototype would still apply. */
40556 rm -f conftest.$ac_objext conftest$ac_exeext
40557 if { (ac_try="$ac_link"
40558 case "(($ac_try" in
40559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40560 *) ac_try_echo=$ac_try;;
40562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40563 (eval "$ac_link") 2>conftest.er1
40565 grep -v '^ *+' conftest.er1 >conftest.err
40567 cat conftest.err >&5
40568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569 (exit $ac_status); } && {
40570 test -z "$ac_cxx_werror_flag" ||
40571 test ! -s conftest.err
40572 } && test -s conftest$ac_exeext &&
40573 $as_test_x conftest$ac_exeext; then
40574 ac_cv_lib_intl_gettext=yes
40576 echo "$as_me: failed program was:" >&5
40577 sed 's/^/| /' conftest.$ac_ext >&5
40579 ac_cv_lib_intl_gettext=no
40582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40583 conftest$ac_exeext conftest.$ac_ext
40584 LIBS=$ac_check_lib_save_LIBS
40586 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40587 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40588 if test $ac_cv_lib_intl_gettext = yes; then
40589 LIBS="$LIBS -lintl"
40594 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40595 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40596 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40597 echo $ECHO_N "(cached) $ECHO_C" >&6
40599 ac_check_lib_save_LIBS=$LIBS
40601 cat >conftest.$ac_ext <<_ACEOF
40604 cat confdefs.h >>conftest.$ac_ext
40605 cat >>conftest.$ac_ext <<_ACEOF
40606 /* end confdefs.h. */
40608 /* Override any GCC internal prototype to avoid an error.
40609 Use char because int might match the return type of a GCC
40610 builtin and then its argument prototype would still apply. */
40618 return getpwnam ();
40623 rm -f conftest.$ac_objext conftest$ac_exeext
40624 if { (ac_try="$ac_link"
40625 case "(($ac_try" in
40626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40627 *) ac_try_echo=$ac_try;;
40629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40630 (eval "$ac_link") 2>conftest.er1
40632 grep -v '^ *+' conftest.er1 >conftest.err
40634 cat conftest.err >&5
40635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636 (exit $ac_status); } && {
40637 test -z "$ac_cxx_werror_flag" ||
40638 test ! -s conftest.err
40639 } && test -s conftest$ac_exeext &&
40640 $as_test_x conftest$ac_exeext; then
40641 ac_cv_lib_sun_getpwnam=yes
40643 echo "$as_me: failed program was:" >&5
40644 sed 's/^/| /' conftest.$ac_ext >&5
40646 ac_cv_lib_sun_getpwnam=no
40649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40650 conftest$ac_exeext conftest.$ac_ext
40651 LIBS=$ac_check_lib_save_LIBS
40653 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40654 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40655 if test $ac_cv_lib_sun_getpwnam = yes; then
40656 cat >>confdefs.h <<_ACEOF
40657 #define HAVE_LIBSUN 1
40666 for ac_header in zlib.h
40668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40673 echo $ECHO_N "(cached) $ECHO_C" >&6
40675 ac_res=`eval echo '${'$as_ac_Header'}'`
40676 { echo "$as_me:$LINENO: result: $ac_res" >&5
40677 echo "${ECHO_T}$ac_res" >&6; }
40679 # Is the header compilable?
40680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40682 cat >conftest.$ac_ext <<_ACEOF
40685 cat confdefs.h >>conftest.$ac_ext
40686 cat >>conftest.$ac_ext <<_ACEOF
40687 /* end confdefs.h. */
40688 $ac_includes_default
40689 #include <$ac_header>
40691 rm -f conftest.$ac_objext
40692 if { (ac_try="$ac_compile"
40693 case "(($ac_try" in
40694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40695 *) ac_try_echo=$ac_try;;
40697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40698 (eval "$ac_compile") 2>conftest.er1
40700 grep -v '^ *+' conftest.er1 >conftest.err
40702 cat conftest.err >&5
40703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704 (exit $ac_status); } && {
40705 test -z "$ac_cxx_werror_flag" ||
40706 test ! -s conftest.err
40707 } && test -s conftest.$ac_objext; then
40708 ac_header_compiler=yes
40710 echo "$as_me: failed program was:" >&5
40711 sed 's/^/| /' conftest.$ac_ext >&5
40713 ac_header_compiler=no
40716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40718 echo "${ECHO_T}$ac_header_compiler" >&6; }
40720 # Is the header present?
40721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40723 cat >conftest.$ac_ext <<_ACEOF
40726 cat confdefs.h >>conftest.$ac_ext
40727 cat >>conftest.$ac_ext <<_ACEOF
40728 /* end confdefs.h. */
40729 #include <$ac_header>
40731 if { (ac_try="$ac_cpp conftest.$ac_ext"
40732 case "(($ac_try" in
40733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40734 *) ac_try_echo=$ac_try;;
40736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40739 grep -v '^ *+' conftest.er1 >conftest.err
40741 cat conftest.err >&5
40742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743 (exit $ac_status); } >/dev/null && {
40744 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40745 test ! -s conftest.err
40747 ac_header_preproc=yes
40749 echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40752 ac_header_preproc=no
40755 rm -f conftest.err conftest.$ac_ext
40756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40757 echo "${ECHO_T}$ac_header_preproc" >&6; }
40759 # So? What about this header?
40760 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40766 ac_header_preproc=yes
40769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40787 echo $ECHO_N "(cached) $ECHO_C" >&6
40789 eval "$as_ac_Header=\$ac_header_preproc"
40791 ac_res=`eval echo '${'$as_ac_Header'}'`
40792 { echo "$as_me:$LINENO: result: $ac_res" >&5
40793 echo "${ECHO_T}$ac_res" >&6; }
40796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40797 cat >>confdefs.h <<_ACEOF
40798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40805 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40806 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40807 if test "${ac_cv_lib_z_deflate+set}" = set; then
40808 echo $ECHO_N "(cached) $ECHO_C" >&6
40810 ac_check_lib_save_LIBS=$LIBS
40812 cat >conftest.$ac_ext <<_ACEOF
40815 cat confdefs.h >>conftest.$ac_ext
40816 cat >>conftest.$ac_ext <<_ACEOF
40817 /* end confdefs.h. */
40819 /* Override any GCC internal prototype to avoid an error.
40820 Use char because int might match the return type of a GCC
40821 builtin and then its argument prototype would still apply. */
40834 rm -f conftest.$ac_objext conftest$ac_exeext
40835 if { (ac_try="$ac_link"
40836 case "(($ac_try" in
40837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40838 *) ac_try_echo=$ac_try;;
40840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40841 (eval "$ac_link") 2>conftest.er1
40843 grep -v '^ *+' conftest.er1 >conftest.err
40845 cat conftest.err >&5
40846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40847 (exit $ac_status); } && {
40848 test -z "$ac_cxx_werror_flag" ||
40849 test ! -s conftest.err
40850 } && test -s conftest$ac_exeext &&
40851 $as_test_x conftest$ac_exeext; then
40852 ac_cv_lib_z_deflate=yes
40854 echo "$as_me: failed program was:" >&5
40855 sed 's/^/| /' conftest.$ac_ext >&5
40857 ac_cv_lib_z_deflate=no
40860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40861 conftest$ac_exeext conftest.$ac_ext
40862 LIBS=$ac_check_lib_save_LIBS
40864 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40865 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40866 if test $ac_cv_lib_z_deflate = yes; then
40871 if test x$FDLIBS = x-lz; then
40872 cat >>confdefs.h <<\_ACEOF
40873 #define HAVE_LIBZ 1
40880 # Check whether --enable-acl was given.
40881 if test "${enable_acl+set}" = set; then
40882 enableval=$enable_acl;
40883 if test x$enableval = xyes; then
40885 elif test x$enableval = xno; then
40894 have_extended_acl=no
40895 if test x$support_acl = xyes -o x$support_acl = xauto; then
40896 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40897 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40898 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40899 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40900 echo $ECHO_N "(cached) $ECHO_C" >&6
40902 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40903 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40905 # Is the header compilable?
40906 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40907 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40908 cat >conftest.$ac_ext <<_ACEOF
40911 cat confdefs.h >>conftest.$ac_ext
40912 cat >>conftest.$ac_ext <<_ACEOF
40913 /* end confdefs.h. */
40914 $ac_includes_default
40915 #include <sys/acl.h>
40917 rm -f conftest.$ac_objext
40918 if { (ac_try="$ac_compile"
40919 case "(($ac_try" in
40920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40921 *) ac_try_echo=$ac_try;;
40923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40924 (eval "$ac_compile") 2>conftest.er1
40926 grep -v '^ *+' conftest.er1 >conftest.err
40928 cat conftest.err >&5
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); } && {
40931 test -z "$ac_cxx_werror_flag" ||
40932 test ! -s conftest.err
40933 } && test -s conftest.$ac_objext; then
40934 ac_header_compiler=yes
40936 echo "$as_me: failed program was:" >&5
40937 sed 's/^/| /' conftest.$ac_ext >&5
40939 ac_header_compiler=no
40942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40944 echo "${ECHO_T}$ac_header_compiler" >&6; }
40946 # Is the header present?
40947 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40948 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40949 cat >conftest.$ac_ext <<_ACEOF
40952 cat confdefs.h >>conftest.$ac_ext
40953 cat >>conftest.$ac_ext <<_ACEOF
40954 /* end confdefs.h. */
40955 #include <sys/acl.h>
40957 if { (ac_try="$ac_cpp conftest.$ac_ext"
40958 case "(($ac_try" in
40959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40960 *) ac_try_echo=$ac_try;;
40962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40965 grep -v '^ *+' conftest.er1 >conftest.err
40967 cat conftest.err >&5
40968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969 (exit $ac_status); } >/dev/null && {
40970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40971 test ! -s conftest.err
40973 ac_header_preproc=yes
40975 echo "$as_me: failed program was:" >&5
40976 sed 's/^/| /' conftest.$ac_ext >&5
40978 ac_header_preproc=no
40981 rm -f conftest.err conftest.$ac_ext
40982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40983 echo "${ECHO_T}$ac_header_preproc" >&6; }
40985 # So? What about this header?
40986 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40988 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40989 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40990 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40991 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40992 ac_header_preproc=yes
40995 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40996 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40997 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40998 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40999 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41000 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41001 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
41002 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
41003 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41004 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41005 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41006 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41010 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41011 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41012 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41013 echo $ECHO_N "(cached) $ECHO_C" >&6
41015 ac_cv_header_sys_acl_h=$ac_header_preproc
41017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41018 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41021 if test $ac_cv_header_sys_acl_h = yes; then
41023 cat >>confdefs.h <<\_ACEOF
41024 #define HAVE_SYS_ACL_H 1
41030 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41031 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41032 if test "${ac_cv_func_acl_get_file+set}" = set; then
41033 echo $ECHO_N "(cached) $ECHO_C" >&6
41035 cat >conftest.$ac_ext <<_ACEOF
41038 cat confdefs.h >>conftest.$ac_ext
41039 cat >>conftest.$ac_ext <<_ACEOF
41040 /* end confdefs.h. */
41041 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41043 #define acl_get_file innocuous_acl_get_file
41045 /* System header to define __stub macros and hopefully few prototypes,
41046 which can conflict with char acl_get_file (); below.
41047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41048 <limits.h> exists even on freestanding compilers. */
41051 # include <limits.h>
41053 # include <assert.h>
41056 #undef acl_get_file
41058 /* Override any GCC internal prototype to avoid an error.
41059 Use char because int might match the return type of a GCC
41060 builtin and then its argument prototype would still apply. */
41064 char acl_get_file ();
41065 /* The GNU C library defines this for functions which it implements
41066 to always fail with ENOSYS. Some functions are actually named
41067 something starting with __ and the normal name is an alias. */
41068 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41075 return acl_get_file ();
41080 rm -f conftest.$ac_objext conftest$ac_exeext
41081 if { (ac_try="$ac_link"
41082 case "(($ac_try" in
41083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41084 *) ac_try_echo=$ac_try;;
41086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41087 (eval "$ac_link") 2>conftest.er1
41089 grep -v '^ *+' conftest.er1 >conftest.err
41091 cat conftest.err >&5
41092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093 (exit $ac_status); } && {
41094 test -z "$ac_cxx_werror_flag" ||
41095 test ! -s conftest.err
41096 } && test -s conftest$ac_exeext &&
41097 $as_test_x conftest$ac_exeext; then
41098 ac_cv_func_acl_get_file=yes
41100 echo "$as_me: failed program was:" >&5
41101 sed 's/^/| /' conftest.$ac_ext >&5
41103 ac_cv_func_acl_get_file=no
41106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41107 conftest$ac_exeext conftest.$ac_ext
41109 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41110 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41111 if test $ac_cv_func_acl_get_file = yes; then
41117 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41118 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41119 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41120 echo $ECHO_N "(cached) $ECHO_C" >&6
41122 ac_check_lib_save_LIBS=$LIBS
41124 cat >conftest.$ac_ext <<_ACEOF
41127 cat confdefs.h >>conftest.$ac_ext
41128 cat >>conftest.$ac_ext <<_ACEOF
41129 /* end confdefs.h. */
41131 /* Override any GCC internal prototype to avoid an error.
41132 Use char because int might match the return type of a GCC
41133 builtin and then its argument prototype would still apply. */
41137 char acl_get_file ();
41141 return acl_get_file ();
41146 rm -f conftest.$ac_objext conftest$ac_exeext
41147 if { (ac_try="$ac_link"
41148 case "(($ac_try" in
41149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41150 *) ac_try_echo=$ac_try;;
41152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41153 (eval "$ac_link") 2>conftest.er1
41155 grep -v '^ *+' conftest.er1 >conftest.err
41157 cat conftest.err >&5
41158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41159 (exit $ac_status); } && {
41160 test -z "$ac_cxx_werror_flag" ||
41161 test ! -s conftest.err
41162 } && test -s conftest$ac_exeext &&
41163 $as_test_x conftest$ac_exeext; then
41164 ac_cv_lib_acl_acl_get_file=yes
41166 echo "$as_me: failed program was:" >&5
41167 sed 's/^/| /' conftest.$ac_ext >&5
41169 ac_cv_lib_acl_acl_get_file=no
41172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41173 conftest$ac_exeext conftest.$ac_ext
41174 LIBS=$ac_check_lib_save_LIBS
41176 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41177 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41178 if test $ac_cv_lib_acl_acl_get_file = yes; then
41181 FDLIBS="-lacl $FDLIBS"
41185 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41186 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41187 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41188 echo $ECHO_N "(cached) $ECHO_C" >&6
41190 ac_check_lib_save_LIBS=$LIBS
41191 LIBS="-lpacl $LIBS"
41192 cat >conftest.$ac_ext <<_ACEOF
41195 cat confdefs.h >>conftest.$ac_ext
41196 cat >>conftest.$ac_ext <<_ACEOF
41197 /* end confdefs.h. */
41199 /* Override any GCC internal prototype to avoid an error.
41200 Use char because int might match the return type of a GCC
41201 builtin and then its argument prototype would still apply. */
41205 char acl_get_file ();
41209 return acl_get_file ();
41214 rm -f conftest.$ac_objext conftest$ac_exeext
41215 if { (ac_try="$ac_link"
41216 case "(($ac_try" in
41217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41218 *) ac_try_echo=$ac_try;;
41220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41221 (eval "$ac_link") 2>conftest.er1
41223 grep -v '^ *+' conftest.er1 >conftest.err
41225 cat conftest.err >&5
41226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41227 (exit $ac_status); } && {
41228 test -z "$ac_cxx_werror_flag" ||
41229 test ! -s conftest.err
41230 } && test -s conftest$ac_exeext &&
41231 $as_test_x conftest$ac_exeext; then
41232 ac_cv_lib_pacl_acl_get_file=yes
41234 echo "$as_me: failed program was:" >&5
41235 sed 's/^/| /' conftest.$ac_ext >&5
41237 ac_cv_lib_pacl_acl_get_file=no
41240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41241 conftest$ac_exeext conftest.$ac_ext
41242 LIBS=$ac_check_lib_save_LIBS
41244 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41245 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41246 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41249 FDLIBS="-lpacl $FDLIBS"
41253 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41254 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41255 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41256 echo $ECHO_N "(cached) $ECHO_C" >&6
41258 ac_check_lib_save_LIBS=$LIBS
41260 cat >conftest.$ac_ext <<_ACEOF
41263 cat confdefs.h >>conftest.$ac_ext
41264 cat >>conftest.$ac_ext <<_ACEOF
41265 /* end confdefs.h. */
41267 /* Override any GCC internal prototype to avoid an error.
41268 Use char because int might match the return type of a GCC
41269 builtin and then its argument prototype would still apply. */
41277 return acltotext ();
41282 rm -f conftest.$ac_objext conftest$ac_exeext
41283 if { (ac_try="$ac_link"
41284 case "(($ac_try" in
41285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41286 *) ac_try_echo=$ac_try;;
41288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41289 (eval "$ac_link") 2>conftest.er1
41291 grep -v '^ *+' conftest.er1 >conftest.err
41293 cat conftest.err >&5
41294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41295 (exit $ac_status); } && {
41296 test -z "$ac_cxx_werror_flag" ||
41297 test ! -s conftest.err
41298 } && test -s conftest$ac_exeext &&
41299 $as_test_x conftest$ac_exeext; then
41300 ac_cv_lib_sec_acltotext=yes
41302 echo "$as_me: failed program was:" >&5
41303 sed 's/^/| /' conftest.$ac_ext >&5
41305 ac_cv_lib_sec_acltotext=no
41308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41309 conftest$ac_exeext conftest.$ac_ext
41310 LIBS=$ac_check_lib_save_LIBS
41312 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41313 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41314 if test $ac_cv_lib_sec_acltotext = yes; then
41317 FDLIBS="-lsec $FDLIBS"
41319 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41320 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41321 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41322 echo $ECHO_N "(cached) $ECHO_C" >&6
41324 ac_check_lib_save_LIBS=$LIBS
41326 cat >conftest.$ac_ext <<_ACEOF
41329 cat confdefs.h >>conftest.$ac_ext
41330 cat >>conftest.$ac_ext <<_ACEOF
41331 /* end confdefs.h. */
41333 /* Override any GCC internal prototype to avoid an error.
41334 Use char because int might match the return type of a GCC
41335 builtin and then its argument prototype would still apply. */
41339 char acl_totext ();
41343 return acl_totext ();
41348 rm -f conftest.$ac_objext conftest$ac_exeext
41349 if { (ac_try="$ac_link"
41350 case "(($ac_try" in
41351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41352 *) ac_try_echo=$ac_try;;
41354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41355 (eval "$ac_link") 2>conftest.er1
41357 grep -v '^ *+' conftest.er1 >conftest.err
41359 cat conftest.err >&5
41360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361 (exit $ac_status); } && {
41362 test -z "$ac_cxx_werror_flag" ||
41363 test ! -s conftest.err
41364 } && test -s conftest$ac_exeext &&
41365 $as_test_x conftest$ac_exeext; then
41366 ac_cv_lib_sec_acl_totext=yes
41368 echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41371 ac_cv_lib_sec_acl_totext=no
41374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41375 conftest$ac_exeext conftest.$ac_ext
41376 LIBS=$ac_check_lib_save_LIBS
41378 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41379 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41380 if test $ac_cv_lib_sec_acl_totext = yes; then
41382 have_extended_acl=yes
41404 if test x$support_acl = xyes -a $have_acl != yes; then
41405 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41406 please either load the acl libraries or rerun configure without --enable-acl" >&5
41407 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41408 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41409 { (exit 1); exit 1; }; }
41411 if test $have_acl = yes; then
41413 cat >>confdefs.h <<\_ACEOF
41419 if test $have_extended_acl = yes; then
41421 cat >>confdefs.h <<\_ACEOF
41422 #define HAVE_EXTENDED_ACL 1
41430 # Check whether --enable-xattr was given.
41431 if test "${enable_xattr+set}" = set; then
41432 enableval=$enable_xattr;
41433 if test x$enableval = xyes; then
41435 elif test x$enableval = xno; then
41444 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41445 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41446 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41447 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41448 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41449 echo $ECHO_N "(cached) $ECHO_C" >&6
41451 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41452 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41454 # Is the header compilable?
41455 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41456 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41457 cat >conftest.$ac_ext <<_ACEOF
41460 cat confdefs.h >>conftest.$ac_ext
41461 cat >>conftest.$ac_ext <<_ACEOF
41462 /* end confdefs.h. */
41463 $ac_includes_default
41464 #include <sys/extattr.h>
41466 rm -f conftest.$ac_objext
41467 if { (ac_try="$ac_compile"
41468 case "(($ac_try" in
41469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41470 *) ac_try_echo=$ac_try;;
41472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41473 (eval "$ac_compile") 2>conftest.er1
41475 grep -v '^ *+' conftest.er1 >conftest.err
41477 cat conftest.err >&5
41478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479 (exit $ac_status); } && {
41480 test -z "$ac_cxx_werror_flag" ||
41481 test ! -s conftest.err
41482 } && test -s conftest.$ac_objext; then
41483 ac_header_compiler=yes
41485 echo "$as_me: failed program was:" >&5
41486 sed 's/^/| /' conftest.$ac_ext >&5
41488 ac_header_compiler=no
41491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41493 echo "${ECHO_T}$ac_header_compiler" >&6; }
41495 # Is the header present?
41496 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41497 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41498 cat >conftest.$ac_ext <<_ACEOF
41501 cat confdefs.h >>conftest.$ac_ext
41502 cat >>conftest.$ac_ext <<_ACEOF
41503 /* end confdefs.h. */
41504 #include <sys/extattr.h>
41506 if { (ac_try="$ac_cpp conftest.$ac_ext"
41507 case "(($ac_try" in
41508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41509 *) ac_try_echo=$ac_try;;
41511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41514 grep -v '^ *+' conftest.er1 >conftest.err
41516 cat conftest.err >&5
41517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41518 (exit $ac_status); } >/dev/null && {
41519 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41520 test ! -s conftest.err
41522 ac_header_preproc=yes
41524 echo "$as_me: failed program was:" >&5
41525 sed 's/^/| /' conftest.$ac_ext >&5
41527 ac_header_preproc=no
41530 rm -f conftest.err conftest.$ac_ext
41531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41532 echo "${ECHO_T}$ac_header_preproc" >&6; }
41534 # So? What about this header?
41535 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41537 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41538 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41539 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41540 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41541 ac_header_preproc=yes
41544 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41545 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41546 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41547 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41548 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41549 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41550 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41551 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41552 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41553 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41554 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41555 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41559 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41560 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41561 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41562 echo $ECHO_N "(cached) $ECHO_C" >&6
41564 ac_cv_header_sys_extattr_h=$ac_header_preproc
41566 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41567 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41570 if test $ac_cv_header_sys_extattr_h = yes; then
41572 cat >>confdefs.h <<\_ACEOF
41573 #define HAVE_SYS_EXTATTR_H 1
41579 if test "${ac_cv_header_libutil_h+set}" = set; then
41580 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41581 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41582 if test "${ac_cv_header_libutil_h+set}" = set; then
41583 echo $ECHO_N "(cached) $ECHO_C" >&6
41585 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41586 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41588 # Is the header compilable?
41589 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41590 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41591 cat >conftest.$ac_ext <<_ACEOF
41594 cat confdefs.h >>conftest.$ac_ext
41595 cat >>conftest.$ac_ext <<_ACEOF
41596 /* end confdefs.h. */
41597 $ac_includes_default
41598 #include <libutil.h>
41600 rm -f conftest.$ac_objext
41601 if { (ac_try="$ac_compile"
41602 case "(($ac_try" in
41603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41604 *) ac_try_echo=$ac_try;;
41606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41607 (eval "$ac_compile") 2>conftest.er1
41609 grep -v '^ *+' conftest.er1 >conftest.err
41611 cat conftest.err >&5
41612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613 (exit $ac_status); } && {
41614 test -z "$ac_cxx_werror_flag" ||
41615 test ! -s conftest.err
41616 } && test -s conftest.$ac_objext; then
41617 ac_header_compiler=yes
41619 echo "$as_me: failed program was:" >&5
41620 sed 's/^/| /' conftest.$ac_ext >&5
41622 ac_header_compiler=no
41625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41627 echo "${ECHO_T}$ac_header_compiler" >&6; }
41629 # Is the header present?
41630 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41631 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41632 cat >conftest.$ac_ext <<_ACEOF
41635 cat confdefs.h >>conftest.$ac_ext
41636 cat >>conftest.$ac_ext <<_ACEOF
41637 /* end confdefs.h. */
41638 #include <libutil.h>
41640 if { (ac_try="$ac_cpp conftest.$ac_ext"
41641 case "(($ac_try" in
41642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41643 *) ac_try_echo=$ac_try;;
41645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41648 grep -v '^ *+' conftest.er1 >conftest.err
41650 cat conftest.err >&5
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); } >/dev/null && {
41653 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41654 test ! -s conftest.err
41656 ac_header_preproc=yes
41658 echo "$as_me: failed program was:" >&5
41659 sed 's/^/| /' conftest.$ac_ext >&5
41661 ac_header_preproc=no
41664 rm -f conftest.err conftest.$ac_ext
41665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41666 echo "${ECHO_T}$ac_header_preproc" >&6; }
41668 # So? What about this header?
41669 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41671 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41672 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41673 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41674 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41675 ac_header_preproc=yes
41678 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41679 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41680 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41681 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41682 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41683 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41684 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41685 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41686 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41687 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41688 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41689 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41693 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41694 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41695 if test "${ac_cv_header_libutil_h+set}" = set; then
41696 echo $ECHO_N "(cached) $ECHO_C" >&6
41698 ac_cv_header_libutil_h=$ac_header_preproc
41700 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41701 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41704 if test $ac_cv_header_libutil_h = yes; then
41706 cat >>confdefs.h <<\_ACEOF
41707 #define HAVE_LIBUTIL_H 1
41716 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41722 echo $ECHO_N "(cached) $ECHO_C" >&6
41724 cat >conftest.$ac_ext <<_ACEOF
41727 cat confdefs.h >>conftest.$ac_ext
41728 cat >>conftest.$ac_ext <<_ACEOF
41729 /* end confdefs.h. */
41730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41732 #define $ac_func innocuous_$ac_func
41734 /* System header to define __stub macros and hopefully few prototypes,
41735 which can conflict with char $ac_func (); below.
41736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41737 <limits.h> exists even on freestanding compilers. */
41740 # include <limits.h>
41742 # include <assert.h>
41747 /* Override any GCC internal prototype to avoid an error.
41748 Use char because int might match the return type of a GCC
41749 builtin and then its argument prototype would still apply. */
41754 /* The GNU C library defines this for functions which it implements
41755 to always fail with ENOSYS. Some functions are actually named
41756 something starting with __ and the normal name is an alias. */
41757 #if defined __stub_$ac_func || defined __stub___$ac_func
41764 return $ac_func ();
41769 rm -f conftest.$ac_objext conftest$ac_exeext
41770 if { (ac_try="$ac_link"
41771 case "(($ac_try" in
41772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41773 *) ac_try_echo=$ac_try;;
41775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41776 (eval "$ac_link") 2>conftest.er1
41778 grep -v '^ *+' conftest.er1 >conftest.err
41780 cat conftest.err >&5
41781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782 (exit $ac_status); } && {
41783 test -z "$ac_cxx_werror_flag" ||
41784 test ! -s conftest.err
41785 } && test -s conftest$ac_exeext &&
41786 $as_test_x conftest$ac_exeext; then
41787 eval "$as_ac_var=yes"
41789 echo "$as_me: failed program was:" >&5
41790 sed 's/^/| /' conftest.$ac_ext >&5
41792 eval "$as_ac_var=no"
41795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41796 conftest$ac_exeext conftest.$ac_ext
41798 ac_res=`eval echo '${'$as_ac_var'}'`
41799 { echo "$as_me:$LINENO: result: $ac_res" >&5
41800 echo "${ECHO_T}$ac_res" >&6; }
41801 if test `eval echo '${'$as_ac_var'}'` = yes; then
41802 cat >>confdefs.h <<_ACEOF
41803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41808 cat >>confdefs.h <<\_ACEOF
41809 #define HAVE_EXTATTR_GET_LINK 1
41813 cat >>confdefs.h <<\_ACEOF
41814 #define HAVE_EXTATTR_SET_LINK 1
41818 cat >>confdefs.h <<\_ACEOF
41819 #define HAVE_EXTATTR_LIST_LINK 1
41828 if test $have_xattr = no; then
41832 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41838 echo $ECHO_N "(cached) $ECHO_C" >&6
41840 cat >conftest.$ac_ext <<_ACEOF
41843 cat confdefs.h >>conftest.$ac_ext
41844 cat >>conftest.$ac_ext <<_ACEOF
41845 /* end confdefs.h. */
41846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41848 #define $ac_func innocuous_$ac_func
41850 /* System header to define __stub macros and hopefully few prototypes,
41851 which can conflict with char $ac_func (); below.
41852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41853 <limits.h> exists even on freestanding compilers. */
41856 # include <limits.h>
41858 # include <assert.h>
41863 /* Override any GCC internal prototype to avoid an error.
41864 Use char because int might match the return type of a GCC
41865 builtin and then its argument prototype would still apply. */
41870 /* The GNU C library defines this for functions which it implements
41871 to always fail with ENOSYS. Some functions are actually named
41872 something starting with __ and the normal name is an alias. */
41873 #if defined __stub_$ac_func || defined __stub___$ac_func
41880 return $ac_func ();
41885 rm -f conftest.$ac_objext conftest$ac_exeext
41886 if { (ac_try="$ac_link"
41887 case "(($ac_try" in
41888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41889 *) ac_try_echo=$ac_try;;
41891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41892 (eval "$ac_link") 2>conftest.er1
41894 grep -v '^ *+' conftest.er1 >conftest.err
41896 cat conftest.err >&5
41897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898 (exit $ac_status); } && {
41899 test -z "$ac_cxx_werror_flag" ||
41900 test ! -s conftest.err
41901 } && test -s conftest$ac_exeext &&
41902 $as_test_x conftest$ac_exeext; then
41903 eval "$as_ac_var=yes"
41905 echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41908 eval "$as_ac_var=no"
41911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41912 conftest$ac_exeext conftest.$ac_ext
41914 ac_res=`eval echo '${'$as_ac_var'}'`
41915 { echo "$as_me:$LINENO: result: $ac_res" >&5
41916 echo "${ECHO_T}$ac_res" >&6; }
41917 if test `eval echo '${'$as_ac_var'}'` = yes; then
41918 cat >>confdefs.h <<_ACEOF
41919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41924 cat >>confdefs.h <<\_ACEOF
41925 #define HAVE_EXTATTR_GET_FILE 1
41929 cat >>confdefs.h <<\_ACEOF
41930 #define HAVE_EXTATTR_SET_FILE 1
41934 cat >>confdefs.h <<\_ACEOF
41935 #define HAVE_EXTATTR_LIST_FILE 1
41945 if test $have_xattr = yes; then
41946 have_extattr_string_in_libc=no
41949 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41955 echo $ECHO_N "(cached) $ECHO_C" >&6
41957 cat >conftest.$ac_ext <<_ACEOF
41960 cat confdefs.h >>conftest.$ac_ext
41961 cat >>conftest.$ac_ext <<_ACEOF
41962 /* end confdefs.h. */
41963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41965 #define $ac_func innocuous_$ac_func
41967 /* System header to define __stub macros and hopefully few prototypes,
41968 which can conflict with char $ac_func (); below.
41969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41970 <limits.h> exists even on freestanding compilers. */
41973 # include <limits.h>
41975 # include <assert.h>
41980 /* Override any GCC internal prototype to avoid an error.
41981 Use char because int might match the return type of a GCC
41982 builtin and then its argument prototype would still apply. */
41987 /* The GNU C library defines this for functions which it implements
41988 to always fail with ENOSYS. Some functions are actually named
41989 something starting with __ and the normal name is an alias. */
41990 #if defined __stub_$ac_func || defined __stub___$ac_func
41997 return $ac_func ();
42002 rm -f conftest.$ac_objext conftest$ac_exeext
42003 if { (ac_try="$ac_link"
42004 case "(($ac_try" in
42005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42006 *) ac_try_echo=$ac_try;;
42008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42009 (eval "$ac_link") 2>conftest.er1
42011 grep -v '^ *+' conftest.er1 >conftest.err
42013 cat conftest.err >&5
42014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42015 (exit $ac_status); } && {
42016 test -z "$ac_cxx_werror_flag" ||
42017 test ! -s conftest.err
42018 } && test -s conftest$ac_exeext &&
42019 $as_test_x conftest$ac_exeext; then
42020 eval "$as_ac_var=yes"
42022 echo "$as_me: failed program was:" >&5
42023 sed 's/^/| /' conftest.$ac_ext >&5
42025 eval "$as_ac_var=no"
42028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42029 conftest$ac_exeext conftest.$ac_ext
42031 ac_res=`eval echo '${'$as_ac_var'}'`
42032 { echo "$as_me:$LINENO: result: $ac_res" >&5
42033 echo "${ECHO_T}$ac_res" >&6; }
42034 if test `eval echo '${'$as_ac_var'}'` = yes; then
42035 cat >>confdefs.h <<_ACEOF
42036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42039 have_extattr_string_in_libc=yes
42041 cat >>confdefs.h <<\_ACEOF
42042 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42046 cat >>confdefs.h <<\_ACEOF
42047 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42056 if test $have_extattr_string_in_libc = no; then
42057 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42058 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42059 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42060 echo $ECHO_N "(cached) $ECHO_C" >&6
42062 ac_check_lib_save_LIBS=$LIBS
42063 LIBS="-lutil $LIBS"
42064 cat >conftest.$ac_ext <<_ACEOF
42067 cat confdefs.h >>conftest.$ac_ext
42068 cat >>conftest.$ac_ext <<_ACEOF
42069 /* end confdefs.h. */
42071 /* Override any GCC internal prototype to avoid an error.
42072 Use char because int might match the return type of a GCC
42073 builtin and then its argument prototype would still apply. */
42077 char extattr_namespace_to_string extattr_string_to_namespace ();
42081 return extattr_namespace_to_string extattr_string_to_namespace ();
42086 rm -f conftest.$ac_objext conftest$ac_exeext
42087 if { (ac_try="$ac_link"
42088 case "(($ac_try" in
42089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42090 *) ac_try_echo=$ac_try;;
42092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42093 (eval "$ac_link") 2>conftest.er1
42095 grep -v '^ *+' conftest.er1 >conftest.err
42097 cat conftest.err >&5
42098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099 (exit $ac_status); } && {
42100 test -z "$ac_cxx_werror_flag" ||
42101 test ! -s conftest.err
42102 } && test -s conftest$ac_exeext &&
42103 $as_test_x conftest$ac_exeext; then
42104 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42106 echo "$as_me: failed program was:" >&5
42107 sed 's/^/| /' conftest.$ac_ext >&5
42109 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42113 conftest$ac_exeext conftest.$ac_ext
42114 LIBS=$ac_check_lib_save_LIBS
42116 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42117 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42118 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42121 cat >>confdefs.h <<\_ACEOF
42122 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42126 cat >>confdefs.h <<\_ACEOF
42127 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42130 FDLIBS="-lutil $FDLIBS"
42138 if test $have_xattr = no; then
42139 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42140 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42141 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42142 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42143 echo $ECHO_N "(cached) $ECHO_C" >&6
42145 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42146 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42148 # Is the header compilable?
42149 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42150 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42151 cat >conftest.$ac_ext <<_ACEOF
42154 cat confdefs.h >>conftest.$ac_ext
42155 cat >>conftest.$ac_ext <<_ACEOF
42156 /* end confdefs.h. */
42157 $ac_includes_default
42158 #include <sys/xattr.h>
42160 rm -f conftest.$ac_objext
42161 if { (ac_try="$ac_compile"
42162 case "(($ac_try" in
42163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42164 *) ac_try_echo=$ac_try;;
42166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42167 (eval "$ac_compile") 2>conftest.er1
42169 grep -v '^ *+' conftest.er1 >conftest.err
42171 cat conftest.err >&5
42172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42173 (exit $ac_status); } && {
42174 test -z "$ac_cxx_werror_flag" ||
42175 test ! -s conftest.err
42176 } && test -s conftest.$ac_objext; then
42177 ac_header_compiler=yes
42179 echo "$as_me: failed program was:" >&5
42180 sed 's/^/| /' conftest.$ac_ext >&5
42182 ac_header_compiler=no
42185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42187 echo "${ECHO_T}$ac_header_compiler" >&6; }
42189 # Is the header present?
42190 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42191 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42192 cat >conftest.$ac_ext <<_ACEOF
42195 cat confdefs.h >>conftest.$ac_ext
42196 cat >>conftest.$ac_ext <<_ACEOF
42197 /* end confdefs.h. */
42198 #include <sys/xattr.h>
42200 if { (ac_try="$ac_cpp conftest.$ac_ext"
42201 case "(($ac_try" in
42202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42203 *) ac_try_echo=$ac_try;;
42205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42208 grep -v '^ *+' conftest.er1 >conftest.err
42210 cat conftest.err >&5
42211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212 (exit $ac_status); } >/dev/null && {
42213 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42214 test ! -s conftest.err
42216 ac_header_preproc=yes
42218 echo "$as_me: failed program was:" >&5
42219 sed 's/^/| /' conftest.$ac_ext >&5
42221 ac_header_preproc=no
42224 rm -f conftest.err conftest.$ac_ext
42225 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42226 echo "${ECHO_T}$ac_header_preproc" >&6; }
42228 # So? What about this header?
42229 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42231 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42232 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42233 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42234 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42235 ac_header_preproc=yes
42238 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42239 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42240 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42241 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42242 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42243 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42244 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42245 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42246 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42247 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42248 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42249 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42253 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42254 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42255 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42256 echo $ECHO_N "(cached) $ECHO_C" >&6
42258 ac_cv_header_sys_xattr_h=$ac_header_preproc
42260 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42261 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42264 if test $ac_cv_header_sys_xattr_h = yes; then
42266 cat >>confdefs.h <<\_ACEOF
42267 #define HAVE_SYS_XATTR_H 1
42276 for ac_func in llistxattr lgetxattr lsetxattr
42278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42282 echo $ECHO_N "(cached) $ECHO_C" >&6
42284 cat >conftest.$ac_ext <<_ACEOF
42287 cat confdefs.h >>conftest.$ac_ext
42288 cat >>conftest.$ac_ext <<_ACEOF
42289 /* end confdefs.h. */
42290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42292 #define $ac_func innocuous_$ac_func
42294 /* System header to define __stub macros and hopefully few prototypes,
42295 which can conflict with char $ac_func (); below.
42296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42297 <limits.h> exists even on freestanding compilers. */
42300 # include <limits.h>
42302 # include <assert.h>
42307 /* Override any GCC internal prototype to avoid an error.
42308 Use char because int might match the return type of a GCC
42309 builtin and then its argument prototype would still apply. */
42314 /* The GNU C library defines this for functions which it implements
42315 to always fail with ENOSYS. Some functions are actually named
42316 something starting with __ and the normal name is an alias. */
42317 #if defined __stub_$ac_func || defined __stub___$ac_func
42324 return $ac_func ();
42329 rm -f conftest.$ac_objext conftest$ac_exeext
42330 if { (ac_try="$ac_link"
42331 case "(($ac_try" in
42332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42333 *) ac_try_echo=$ac_try;;
42335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42336 (eval "$ac_link") 2>conftest.er1
42338 grep -v '^ *+' conftest.er1 >conftest.err
42340 cat conftest.err >&5
42341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42342 (exit $ac_status); } && {
42343 test -z "$ac_cxx_werror_flag" ||
42344 test ! -s conftest.err
42345 } && test -s conftest$ac_exeext &&
42346 $as_test_x conftest$ac_exeext; then
42347 eval "$as_ac_var=yes"
42349 echo "$as_me: failed program was:" >&5
42350 sed 's/^/| /' conftest.$ac_ext >&5
42352 eval "$as_ac_var=no"
42355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42356 conftest$ac_exeext conftest.$ac_ext
42358 ac_res=`eval echo '${'$as_ac_var'}'`
42359 { echo "$as_me:$LINENO: result: $ac_res" >&5
42360 echo "${ECHO_T}$ac_res" >&6; }
42361 if test `eval echo '${'$as_ac_var'}'` = yes; then
42362 cat >>confdefs.h <<_ACEOF
42363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42368 cat >>confdefs.h <<\_ACEOF
42369 #define HAVE_LLISTXATTR 1
42373 cat >>confdefs.h <<\_ACEOF
42374 #define HAVE_LGETXATTR 1
42378 cat >>confdefs.h <<\_ACEOF
42379 #define HAVE_LSETXATTR 1
42388 if test $have_xattr = no; then
42392 for ac_func in listxattr getxattr setxattr
42394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42398 echo $ECHO_N "(cached) $ECHO_C" >&6
42400 cat >conftest.$ac_ext <<_ACEOF
42403 cat confdefs.h >>conftest.$ac_ext
42404 cat >>conftest.$ac_ext <<_ACEOF
42405 /* end confdefs.h. */
42406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42408 #define $ac_func innocuous_$ac_func
42410 /* System header to define __stub macros and hopefully few prototypes,
42411 which can conflict with char $ac_func (); below.
42412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42413 <limits.h> exists even on freestanding compilers. */
42416 # include <limits.h>
42418 # include <assert.h>
42423 /* Override any GCC internal prototype to avoid an error.
42424 Use char because int might match the return type of a GCC
42425 builtin and then its argument prototype would still apply. */
42430 /* The GNU C library defines this for functions which it implements
42431 to always fail with ENOSYS. Some functions are actually named
42432 something starting with __ and the normal name is an alias. */
42433 #if defined __stub_$ac_func || defined __stub___$ac_func
42440 return $ac_func ();
42445 rm -f conftest.$ac_objext conftest$ac_exeext
42446 if { (ac_try="$ac_link"
42447 case "(($ac_try" in
42448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42449 *) ac_try_echo=$ac_try;;
42451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42452 (eval "$ac_link") 2>conftest.er1
42454 grep -v '^ *+' conftest.er1 >conftest.err
42456 cat conftest.err >&5
42457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42458 (exit $ac_status); } && {
42459 test -z "$ac_cxx_werror_flag" ||
42460 test ! -s conftest.err
42461 } && test -s conftest$ac_exeext &&
42462 $as_test_x conftest$ac_exeext; then
42463 eval "$as_ac_var=yes"
42465 echo "$as_me: failed program was:" >&5
42466 sed 's/^/| /' conftest.$ac_ext >&5
42468 eval "$as_ac_var=no"
42471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42472 conftest$ac_exeext conftest.$ac_ext
42474 ac_res=`eval echo '${'$as_ac_var'}'`
42475 { echo "$as_me:$LINENO: result: $ac_res" >&5
42476 echo "${ECHO_T}$ac_res" >&6; }
42477 if test `eval echo '${'$as_ac_var'}'` = yes; then
42478 cat >>confdefs.h <<_ACEOF
42479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42484 cat >>confdefs.h <<\_ACEOF
42485 #define HAVE_LISTXATTR 1
42489 cat >>confdefs.h <<\_ACEOF
42490 #define HAVE_GETXATTR 1
42494 cat >>confdefs.h <<\_ACEOF
42495 #define HAVE_SETXATTR 1
42506 if test $have_xattr = no; then
42507 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42508 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42509 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42510 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42511 echo $ECHO_N "(cached) $ECHO_C" >&6
42513 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42514 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42516 # Is the header compilable?
42517 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42518 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42519 cat >conftest.$ac_ext <<_ACEOF
42522 cat confdefs.h >>conftest.$ac_ext
42523 cat >>conftest.$ac_ext <<_ACEOF
42524 /* end confdefs.h. */
42525 $ac_includes_default
42526 #include <sys/attr.h>
42528 rm -f conftest.$ac_objext
42529 if { (ac_try="$ac_compile"
42530 case "(($ac_try" in
42531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42532 *) ac_try_echo=$ac_try;;
42534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42535 (eval "$ac_compile") 2>conftest.er1
42537 grep -v '^ *+' conftest.er1 >conftest.err
42539 cat conftest.err >&5
42540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42541 (exit $ac_status); } && {
42542 test -z "$ac_cxx_werror_flag" ||
42543 test ! -s conftest.err
42544 } && test -s conftest.$ac_objext; then
42545 ac_header_compiler=yes
42547 echo "$as_me: failed program was:" >&5
42548 sed 's/^/| /' conftest.$ac_ext >&5
42550 ac_header_compiler=no
42553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42555 echo "${ECHO_T}$ac_header_compiler" >&6; }
42557 # Is the header present?
42558 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42559 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42560 cat >conftest.$ac_ext <<_ACEOF
42563 cat confdefs.h >>conftest.$ac_ext
42564 cat >>conftest.$ac_ext <<_ACEOF
42565 /* end confdefs.h. */
42566 #include <sys/attr.h>
42568 if { (ac_try="$ac_cpp conftest.$ac_ext"
42569 case "(($ac_try" in
42570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42571 *) ac_try_echo=$ac_try;;
42573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42576 grep -v '^ *+' conftest.er1 >conftest.err
42578 cat conftest.err >&5
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); } >/dev/null && {
42581 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42582 test ! -s conftest.err
42584 ac_header_preproc=yes
42586 echo "$as_me: failed program was:" >&5
42587 sed 's/^/| /' conftest.$ac_ext >&5
42589 ac_header_preproc=no
42592 rm -f conftest.err conftest.$ac_ext
42593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42594 echo "${ECHO_T}$ac_header_preproc" >&6; }
42596 # So? What about this header?
42597 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42599 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42600 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42601 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42602 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42603 ac_header_preproc=yes
42606 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42607 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42608 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42609 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42610 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42611 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42612 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42613 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42614 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42615 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42616 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42617 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42621 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42622 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42623 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42624 echo $ECHO_N "(cached) $ECHO_C" >&6
42626 ac_cv_header_sys_attr_h=$ac_header_preproc
42628 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42629 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42632 if test $ac_cv_header_sys_attr_h = yes; then
42634 cat >>confdefs.h <<\_ACEOF
42635 #define HAVE_SYS_ATTR_H 1
42641 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42642 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42643 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42644 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42645 echo $ECHO_N "(cached) $ECHO_C" >&6
42647 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42648 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42650 # Is the header compilable?
42651 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42652 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42653 cat >conftest.$ac_ext <<_ACEOF
42656 cat confdefs.h >>conftest.$ac_ext
42657 cat >>conftest.$ac_ext <<_ACEOF
42658 /* end confdefs.h. */
42659 $ac_includes_default
42660 #include <sys/nvpair.h>
42662 rm -f conftest.$ac_objext
42663 if { (ac_try="$ac_compile"
42664 case "(($ac_try" in
42665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42666 *) ac_try_echo=$ac_try;;
42668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42669 (eval "$ac_compile") 2>conftest.er1
42671 grep -v '^ *+' conftest.er1 >conftest.err
42673 cat conftest.err >&5
42674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42675 (exit $ac_status); } && {
42676 test -z "$ac_cxx_werror_flag" ||
42677 test ! -s conftest.err
42678 } && test -s conftest.$ac_objext; then
42679 ac_header_compiler=yes
42681 echo "$as_me: failed program was:" >&5
42682 sed 's/^/| /' conftest.$ac_ext >&5
42684 ac_header_compiler=no
42687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42689 echo "${ECHO_T}$ac_header_compiler" >&6; }
42691 # Is the header present?
42692 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42693 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42694 cat >conftest.$ac_ext <<_ACEOF
42697 cat confdefs.h >>conftest.$ac_ext
42698 cat >>conftest.$ac_ext <<_ACEOF
42699 /* end confdefs.h. */
42700 #include <sys/nvpair.h>
42702 if { (ac_try="$ac_cpp conftest.$ac_ext"
42703 case "(($ac_try" in
42704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42705 *) ac_try_echo=$ac_try;;
42707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42710 grep -v '^ *+' conftest.er1 >conftest.err
42712 cat conftest.err >&5
42713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42714 (exit $ac_status); } >/dev/null && {
42715 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42716 test ! -s conftest.err
42718 ac_header_preproc=yes
42720 echo "$as_me: failed program was:" >&5
42721 sed 's/^/| /' conftest.$ac_ext >&5
42723 ac_header_preproc=no
42726 rm -f conftest.err conftest.$ac_ext
42727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42728 echo "${ECHO_T}$ac_header_preproc" >&6; }
42730 # So? What about this header?
42731 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42733 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42734 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42735 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42736 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42737 ac_header_preproc=yes
42740 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42741 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42742 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42743 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42744 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42745 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42746 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42747 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42748 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42749 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42750 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42751 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42755 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42756 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42757 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42758 echo $ECHO_N "(cached) $ECHO_C" >&6
42760 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42763 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42766 if test $ac_cv_header_sys_nvpair_h = yes; then
42768 cat >>confdefs.h <<\_ACEOF
42769 #define HAVE_SYS_NVPAIR_H 1
42775 if test "${ac_cv_header_attr_h+set}" = set; then
42776 { echo "$as_me:$LINENO: checking for attr.h" >&5
42777 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42778 if test "${ac_cv_header_attr_h+set}" = set; then
42779 echo $ECHO_N "(cached) $ECHO_C" >&6
42781 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42782 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42784 # Is the header compilable?
42785 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42786 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42787 cat >conftest.$ac_ext <<_ACEOF
42790 cat confdefs.h >>conftest.$ac_ext
42791 cat >>conftest.$ac_ext <<_ACEOF
42792 /* end confdefs.h. */
42793 $ac_includes_default
42796 rm -f conftest.$ac_objext
42797 if { (ac_try="$ac_compile"
42798 case "(($ac_try" in
42799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42800 *) ac_try_echo=$ac_try;;
42802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42803 (eval "$ac_compile") 2>conftest.er1
42805 grep -v '^ *+' conftest.er1 >conftest.err
42807 cat conftest.err >&5
42808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809 (exit $ac_status); } && {
42810 test -z "$ac_cxx_werror_flag" ||
42811 test ! -s conftest.err
42812 } && test -s conftest.$ac_objext; then
42813 ac_header_compiler=yes
42815 echo "$as_me: failed program was:" >&5
42816 sed 's/^/| /' conftest.$ac_ext >&5
42818 ac_header_compiler=no
42821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42823 echo "${ECHO_T}$ac_header_compiler" >&6; }
42825 # Is the header present?
42826 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42827 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42828 cat >conftest.$ac_ext <<_ACEOF
42831 cat confdefs.h >>conftest.$ac_ext
42832 cat >>conftest.$ac_ext <<_ACEOF
42833 /* end confdefs.h. */
42836 if { (ac_try="$ac_cpp conftest.$ac_ext"
42837 case "(($ac_try" in
42838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42839 *) ac_try_echo=$ac_try;;
42841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42844 grep -v '^ *+' conftest.er1 >conftest.err
42846 cat conftest.err >&5
42847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42848 (exit $ac_status); } >/dev/null && {
42849 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42850 test ! -s conftest.err
42852 ac_header_preproc=yes
42854 echo "$as_me: failed program was:" >&5
42855 sed 's/^/| /' conftest.$ac_ext >&5
42857 ac_header_preproc=no
42860 rm -f conftest.err conftest.$ac_ext
42861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42862 echo "${ECHO_T}$ac_header_preproc" >&6; }
42864 # So? What about this header?
42865 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42867 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42868 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42869 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42870 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42871 ac_header_preproc=yes
42874 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42875 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42876 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42877 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42878 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42879 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42880 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42881 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42882 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42883 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42884 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42885 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42889 { echo "$as_me:$LINENO: checking for attr.h" >&5
42890 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42891 if test "${ac_cv_header_attr_h+set}" = set; then
42892 echo $ECHO_N "(cached) $ECHO_C" >&6
42894 ac_cv_header_attr_h=$ac_header_preproc
42896 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42897 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42900 if test $ac_cv_header_attr_h = yes; then
42902 cat >>confdefs.h <<\_ACEOF
42903 #define HAVE_ATTR_H 1
42915 for ac_func in openat fstatat unlinkat fchownat futimesat
42917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42921 echo $ECHO_N "(cached) $ECHO_C" >&6
42923 cat >conftest.$ac_ext <<_ACEOF
42926 cat confdefs.h >>conftest.$ac_ext
42927 cat >>conftest.$ac_ext <<_ACEOF
42928 /* end confdefs.h. */
42929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42931 #define $ac_func innocuous_$ac_func
42933 /* System header to define __stub macros and hopefully few prototypes,
42934 which can conflict with char $ac_func (); below.
42935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42936 <limits.h> exists even on freestanding compilers. */
42939 # include <limits.h>
42941 # include <assert.h>
42946 /* Override any GCC internal prototype to avoid an error.
42947 Use char because int might match the return type of a GCC
42948 builtin and then its argument prototype would still apply. */
42953 /* The GNU C library defines this for functions which it implements
42954 to always fail with ENOSYS. Some functions are actually named
42955 something starting with __ and the normal name is an alias. */
42956 #if defined __stub_$ac_func || defined __stub___$ac_func
42963 return $ac_func ();
42968 rm -f conftest.$ac_objext conftest$ac_exeext
42969 if { (ac_try="$ac_link"
42970 case "(($ac_try" in
42971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42972 *) ac_try_echo=$ac_try;;
42974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42975 (eval "$ac_link") 2>conftest.er1
42977 grep -v '^ *+' conftest.er1 >conftest.err
42979 cat conftest.err >&5
42980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981 (exit $ac_status); } && {
42982 test -z "$ac_cxx_werror_flag" ||
42983 test ! -s conftest.err
42984 } && test -s conftest$ac_exeext &&
42985 $as_test_x conftest$ac_exeext; then
42986 eval "$as_ac_var=yes"
42988 echo "$as_me: failed program was:" >&5
42989 sed 's/^/| /' conftest.$ac_ext >&5
42991 eval "$as_ac_var=no"
42994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42995 conftest$ac_exeext conftest.$ac_ext
42997 ac_res=`eval echo '${'$as_ac_var'}'`
42998 { echo "$as_me:$LINENO: result: $ac_res" >&5
42999 echo "${ECHO_T}$ac_res" >&6; }
43000 if test `eval echo '${'$as_ac_var'}'` = yes; then
43001 cat >>confdefs.h <<_ACEOF
43002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43007 cat >>confdefs.h <<\_ACEOF
43008 #define HAVE_OPENAT 1
43012 cat >>confdefs.h <<\_ACEOF
43013 #define HAVE_FSTATAT 1
43017 cat >>confdefs.h <<\_ACEOF
43018 #define HAVE_UNLINKAT 1
43022 cat >>confdefs.h <<\_ACEOF
43023 #define HAVE_FCHOWNAT 1
43027 cat >>confdefs.h <<\_ACEOF
43028 #define HAVE_FUTIMESAT 1
43037 if test $have_xattr = yes; then
43038 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43039 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43040 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43041 echo $ECHO_N "(cached) $ECHO_C" >&6
43043 ac_check_lib_save_LIBS=$LIBS
43044 LIBS="-lnvpair $LIBS"
43045 cat >conftest.$ac_ext <<_ACEOF
43048 cat confdefs.h >>conftest.$ac_ext
43049 cat >>conftest.$ac_ext <<_ACEOF
43050 /* end confdefs.h. */
43052 /* Override any GCC internal prototype to avoid an error.
43053 Use char because int might match the return type of a GCC
43054 builtin and then its argument prototype would still apply. */
43058 char nvlist_next_nvpair ();
43062 return nvlist_next_nvpair ();
43067 rm -f conftest.$ac_objext conftest$ac_exeext
43068 if { (ac_try="$ac_link"
43069 case "(($ac_try" in
43070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43071 *) ac_try_echo=$ac_try;;
43073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43074 (eval "$ac_link") 2>conftest.er1
43076 grep -v '^ *+' conftest.er1 >conftest.err
43078 cat conftest.err >&5
43079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080 (exit $ac_status); } && {
43081 test -z "$ac_cxx_werror_flag" ||
43082 test ! -s conftest.err
43083 } && test -s conftest$ac_exeext &&
43084 $as_test_x conftest$ac_exeext; then
43085 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43087 echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43090 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43094 conftest$ac_exeext conftest.$ac_ext
43095 LIBS=$ac_check_lib_save_LIBS
43097 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43098 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43099 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43102 cat >>confdefs.h <<\_ACEOF
43103 #define HAVE_NVLIST_NEXT_NVPAIR 1
43106 FDLIBS="-lnvpair $FDLIBS"
43114 if test x$support_xattr = xyes -a $have_xattr != yes; then
43115 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43116 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43117 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43118 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43119 { (exit 1); exit 1; }; }
43121 if test $have_xattr = yes; then
43123 cat >>confdefs.h <<\_ACEOF
43124 #define HAVE_XATTR 1
43132 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43133 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43134 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43135 echo $ECHO_N "(cached) $ECHO_C" >&6
43137 ac_check_lib_save_LIBS=$LIBS
43138 LIBS="-lpthread $LIBS"
43139 cat >conftest.$ac_ext <<_ACEOF
43142 cat confdefs.h >>conftest.$ac_ext
43143 cat >>conftest.$ac_ext <<_ACEOF
43144 /* end confdefs.h. */
43146 /* Override any GCC internal prototype to avoid an error.
43147 Use char because int might match the return type of a GCC
43148 builtin and then its argument prototype would still apply. */
43152 char pthread_create ();
43156 return pthread_create ();
43161 rm -f conftest.$ac_objext conftest$ac_exeext
43162 if { (ac_try="$ac_link"
43163 case "(($ac_try" in
43164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43165 *) ac_try_echo=$ac_try;;
43167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43168 (eval "$ac_link") 2>conftest.er1
43170 grep -v '^ *+' conftest.er1 >conftest.err
43172 cat conftest.err >&5
43173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43174 (exit $ac_status); } && {
43175 test -z "$ac_cxx_werror_flag" ||
43176 test ! -s conftest.err
43177 } && test -s conftest$ac_exeext &&
43178 $as_test_x conftest$ac_exeext; then
43179 ac_cv_lib_pthread_pthread_create=yes
43181 echo "$as_me: failed program was:" >&5
43182 sed 's/^/| /' conftest.$ac_ext >&5
43184 ac_cv_lib_pthread_pthread_create=no
43187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43188 conftest$ac_exeext conftest.$ac_ext
43189 LIBS=$ac_check_lib_save_LIBS
43191 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43192 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43193 if test $ac_cv_lib_pthread_pthread_create = yes; then
43194 PTHREAD_LIB="-lpthread"
43197 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43198 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43199 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43200 echo $ECHO_N "(cached) $ECHO_C" >&6
43202 ac_check_lib_save_LIBS=$LIBS
43203 LIBS="-lpthreads $LIBS"
43204 cat >conftest.$ac_ext <<_ACEOF
43207 cat confdefs.h >>conftest.$ac_ext
43208 cat >>conftest.$ac_ext <<_ACEOF
43209 /* end confdefs.h. */
43211 /* Override any GCC internal prototype to avoid an error.
43212 Use char because int might match the return type of a GCC
43213 builtin and then its argument prototype would still apply. */
43217 char pthread_create ();
43221 return pthread_create ();
43226 rm -f conftest.$ac_objext conftest$ac_exeext
43227 if { (ac_try="$ac_link"
43228 case "(($ac_try" in
43229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43230 *) ac_try_echo=$ac_try;;
43232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43233 (eval "$ac_link") 2>conftest.er1
43235 grep -v '^ *+' conftest.er1 >conftest.err
43237 cat conftest.err >&5
43238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43239 (exit $ac_status); } && {
43240 test -z "$ac_cxx_werror_flag" ||
43241 test ! -s conftest.err
43242 } && test -s conftest$ac_exeext &&
43243 $as_test_x conftest$ac_exeext; then
43244 ac_cv_lib_pthreads_pthread_create=yes
43246 echo "$as_me: failed program was:" >&5
43247 sed 's/^/| /' conftest.$ac_ext >&5
43249 ac_cv_lib_pthreads_pthread_create=no
43252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43253 conftest$ac_exeext conftest.$ac_ext
43254 LIBS=$ac_check_lib_save_LIBS
43256 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43257 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43258 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43259 PTHREAD_LIB="-lpthreads"
43262 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43263 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43264 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43265 echo $ECHO_N "(cached) $ECHO_C" >&6
43267 ac_check_lib_save_LIBS=$LIBS
43269 cat >conftest.$ac_ext <<_ACEOF
43272 cat confdefs.h >>conftest.$ac_ext
43273 cat >>conftest.$ac_ext <<_ACEOF
43274 /* end confdefs.h. */
43276 /* Override any GCC internal prototype to avoid an error.
43277 Use char because int might match the return type of a GCC
43278 builtin and then its argument prototype would still apply. */
43282 char pthread_create ();
43286 return pthread_create ();
43291 rm -f conftest.$ac_objext conftest$ac_exeext
43292 if { (ac_try="$ac_link"
43293 case "(($ac_try" in
43294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43295 *) ac_try_echo=$ac_try;;
43297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43298 (eval "$ac_link") 2>conftest.er1
43300 grep -v '^ *+' conftest.er1 >conftest.err
43302 cat conftest.err >&5
43303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); } && {
43305 test -z "$ac_cxx_werror_flag" ||
43306 test ! -s conftest.err
43307 } && test -s conftest$ac_exeext &&
43308 $as_test_x conftest$ac_exeext; then
43309 ac_cv_lib_c_r_pthread_create=yes
43311 echo "$as_me: failed program was:" >&5
43312 sed 's/^/| /' conftest.$ac_ext >&5
43314 ac_cv_lib_c_r_pthread_create=no
43317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43318 conftest$ac_exeext conftest.$ac_ext
43319 LIBS=$ac_check_lib_save_LIBS
43321 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43322 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43323 if test $ac_cv_lib_c_r_pthread_create = yes; then
43324 PTHREAD_LIB="-lc_r"
43327 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43328 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43329 if test "${ac_cv_func_pthread_create+set}" = set; then
43330 echo $ECHO_N "(cached) $ECHO_C" >&6
43332 cat >conftest.$ac_ext <<_ACEOF
43335 cat confdefs.h >>conftest.$ac_ext
43336 cat >>conftest.$ac_ext <<_ACEOF
43337 /* end confdefs.h. */
43338 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43340 #define pthread_create innocuous_pthread_create
43342 /* System header to define __stub macros and hopefully few prototypes,
43343 which can conflict with char pthread_create (); below.
43344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43345 <limits.h> exists even on freestanding compilers. */
43348 # include <limits.h>
43350 # include <assert.h>
43353 #undef pthread_create
43355 /* Override any GCC internal prototype to avoid an error.
43356 Use char because int might match the return type of a GCC
43357 builtin and then its argument prototype would still apply. */
43361 char pthread_create ();
43362 /* The GNU C library defines this for functions which it implements
43363 to always fail with ENOSYS. Some functions are actually named
43364 something starting with __ and the normal name is an alias. */
43365 #if defined __stub_pthread_create || defined __stub___pthread_create
43372 return pthread_create ();
43377 rm -f conftest.$ac_objext conftest$ac_exeext
43378 if { (ac_try="$ac_link"
43379 case "(($ac_try" in
43380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43381 *) ac_try_echo=$ac_try;;
43383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43384 (eval "$ac_link") 2>conftest.er1
43386 grep -v '^ *+' conftest.er1 >conftest.err
43388 cat conftest.err >&5
43389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390 (exit $ac_status); } && {
43391 test -z "$ac_cxx_werror_flag" ||
43392 test ! -s conftest.err
43393 } && test -s conftest$ac_exeext &&
43394 $as_test_x conftest$ac_exeext; then
43395 ac_cv_func_pthread_create=yes
43397 echo "$as_me: failed program was:" >&5
43398 sed 's/^/| /' conftest.$ac_ext >&5
43400 ac_cv_func_pthread_create=no
43403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43404 conftest$ac_exeext conftest.$ac_ext
43406 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43407 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43424 for ac_header in sys/prctl.h sys/capability.h
43426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43431 echo $ECHO_N "(cached) $ECHO_C" >&6
43433 ac_res=`eval echo '${'$as_ac_Header'}'`
43434 { echo "$as_me:$LINENO: result: $ac_res" >&5
43435 echo "${ECHO_T}$ac_res" >&6; }
43437 # Is the header compilable?
43438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43440 cat >conftest.$ac_ext <<_ACEOF
43443 cat confdefs.h >>conftest.$ac_ext
43444 cat >>conftest.$ac_ext <<_ACEOF
43445 /* end confdefs.h. */
43446 $ac_includes_default
43447 #include <$ac_header>
43449 rm -f conftest.$ac_objext
43450 if { (ac_try="$ac_compile"
43451 case "(($ac_try" in
43452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43453 *) ac_try_echo=$ac_try;;
43455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43456 (eval "$ac_compile") 2>conftest.er1
43458 grep -v '^ *+' conftest.er1 >conftest.err
43460 cat conftest.err >&5
43461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43462 (exit $ac_status); } && {
43463 test -z "$ac_cxx_werror_flag" ||
43464 test ! -s conftest.err
43465 } && test -s conftest.$ac_objext; then
43466 ac_header_compiler=yes
43468 echo "$as_me: failed program was:" >&5
43469 sed 's/^/| /' conftest.$ac_ext >&5
43471 ac_header_compiler=no
43474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43476 echo "${ECHO_T}$ac_header_compiler" >&6; }
43478 # Is the header present?
43479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43481 cat >conftest.$ac_ext <<_ACEOF
43484 cat confdefs.h >>conftest.$ac_ext
43485 cat >>conftest.$ac_ext <<_ACEOF
43486 /* end confdefs.h. */
43487 #include <$ac_header>
43489 if { (ac_try="$ac_cpp conftest.$ac_ext"
43490 case "(($ac_try" in
43491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43492 *) ac_try_echo=$ac_try;;
43494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43497 grep -v '^ *+' conftest.er1 >conftest.err
43499 cat conftest.err >&5
43500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43501 (exit $ac_status); } >/dev/null && {
43502 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
43503 test ! -s conftest.err
43505 ac_header_preproc=yes
43507 echo "$as_me: failed program was:" >&5
43508 sed 's/^/| /' conftest.$ac_ext >&5
43510 ac_header_preproc=no
43513 rm -f conftest.err conftest.$ac_ext
43514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43515 echo "${ECHO_T}$ac_header_preproc" >&6; }
43517 # So? What about this header?
43518 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43524 ac_header_preproc=yes
43527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43545 echo $ECHO_N "(cached) $ECHO_C" >&6
43547 eval "$as_ac_Header=\$ac_header_preproc"
43549 ac_res=`eval echo '${'$as_ac_Header'}'`
43550 { echo "$as_me:$LINENO: result: $ac_res" >&5
43551 echo "${ECHO_T}$ac_res" >&6; }
43554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43555 cat >>confdefs.h <<_ACEOF
43556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43565 for ac_func in prctl setreuid
43567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43571 echo $ECHO_N "(cached) $ECHO_C" >&6
43573 cat >conftest.$ac_ext <<_ACEOF
43576 cat confdefs.h >>conftest.$ac_ext
43577 cat >>conftest.$ac_ext <<_ACEOF
43578 /* end confdefs.h. */
43579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43581 #define $ac_func innocuous_$ac_func
43583 /* System header to define __stub macros and hopefully few prototypes,
43584 which can conflict with char $ac_func (); below.
43585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43586 <limits.h> exists even on freestanding compilers. */
43589 # include <limits.h>
43591 # include <assert.h>
43596 /* Override any GCC internal prototype to avoid an error.
43597 Use char because int might match the return type of a GCC
43598 builtin and then its argument prototype would still apply. */
43603 /* The GNU C library defines this for functions which it implements
43604 to always fail with ENOSYS. Some functions are actually named
43605 something starting with __ and the normal name is an alias. */
43606 #if defined __stub_$ac_func || defined __stub___$ac_func
43613 return $ac_func ();
43618 rm -f conftest.$ac_objext conftest$ac_exeext
43619 if { (ac_try="$ac_link"
43620 case "(($ac_try" in
43621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43622 *) ac_try_echo=$ac_try;;
43624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43625 (eval "$ac_link") 2>conftest.er1
43627 grep -v '^ *+' conftest.er1 >conftest.err
43629 cat conftest.err >&5
43630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43631 (exit $ac_status); } && {
43632 test -z "$ac_cxx_werror_flag" ||
43633 test ! -s conftest.err
43634 } && test -s conftest$ac_exeext &&
43635 $as_test_x conftest$ac_exeext; then
43636 eval "$as_ac_var=yes"
43638 echo "$as_me: failed program was:" >&5
43639 sed 's/^/| /' conftest.$ac_ext >&5
43641 eval "$as_ac_var=no"
43644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43645 conftest$ac_exeext conftest.$ac_ext
43647 ac_res=`eval echo '${'$as_ac_var'}'`
43648 { echo "$as_me:$LINENO: result: $ac_res" >&5
43649 echo "${ECHO_T}$ac_res" >&6; }
43650 if test `eval echo '${'$as_ac_var'}'` = yes; then
43651 cat >>confdefs.h <<_ACEOF
43652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43658 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43659 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43660 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43661 echo $ECHO_N "(cached) $ECHO_C" >&6
43663 ac_check_lib_save_LIBS=$LIBS
43665 cat >conftest.$ac_ext <<_ACEOF
43668 cat confdefs.h >>conftest.$ac_ext
43669 cat >>conftest.$ac_ext <<_ACEOF
43670 /* end confdefs.h. */
43672 /* Override any GCC internal prototype to avoid an error.
43673 Use char because int might match the return type of a GCC
43674 builtin and then its argument prototype would still apply. */
43678 char cap_set_proc ();
43682 return cap_set_proc ();
43687 rm -f conftest.$ac_objext conftest$ac_exeext
43688 if { (ac_try="$ac_link"
43689 case "(($ac_try" in
43690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43691 *) ac_try_echo=$ac_try;;
43693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43694 (eval "$ac_link") 2>conftest.er1
43696 grep -v '^ *+' conftest.er1 >conftest.err
43698 cat conftest.err >&5
43699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700 (exit $ac_status); } && {
43701 test -z "$ac_cxx_werror_flag" ||
43702 test ! -s conftest.err
43703 } && test -s conftest$ac_exeext &&
43704 $as_test_x conftest$ac_exeext; then
43705 ac_cv_lib_cap_cap_set_proc=yes
43707 echo "$as_me: failed program was:" >&5
43708 sed 's/^/| /' conftest.$ac_ext >&5
43710 ac_cv_lib_cap_cap_set_proc=no
43713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43714 conftest$ac_exeext conftest.$ac_ext
43715 LIBS=$ac_check_lib_save_LIBS
43717 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43718 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43719 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43725 if test x$CAP_LIBS = x-lcap; then
43727 cat >>confdefs.h <<\_ACEOF
43728 #define HAVE_LIBCAP 1
43735 cat >>confdefs.h <<\_ACEOF
43740 CFLAGS=${CFLAGS--O}
43742 if test x$have_gcc = xyes ; then
43743 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43744 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43746 LDFLAGS=${LDFLAGS--O}
43747 DB_LIBS="${SQL_LFLAGS}"
43748 CPPFLAGS="$CPPFLAGS"
43775 PFILES="platforms/Makefile"
43780 hostname=`uname -n | cut -d '.' -f 1`
43781 if test x${hostname} = x ; then
43782 hostname="localhost"
43784 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43785 if test ! $? = 0; then
43786 hostname="localhost"
43789 case "$DISTNAME" in
43792 PSCMD="ps -e -o pid,comm"
43793 PFILES="${PFILES} \
43794 platforms/aix/Makefile"
43795 TAPEDRIVE="/dev/rmt0.1"
43799 PTHREAD_LIB="-lpthread -lexc"
43800 if test "${CC}" = "gcc" ; then
43807 TAPEDRIVE="/dev/nrmt0"
43810 DISTVER=`uname -a |awk '{print $3}'`
43811 TAPEDRIVE="/dev/nrmt0"
43812 PTHREAD_LIB="-pthread"
43813 CFLAGS="${CFLAGS} -pthread"
43814 PSCMD="ps -ax -o pid,command"
43817 PFILES="${PFILES} \
43818 platforms/bsdi/Makefile \
43819 platforms/bsdi/bacula-fd \
43820 platforms/bsdi/bacula-sd \
43821 platforms/bsdi/bacula-dir"
43822 largefile_support="yes"
43825 DISTVER=`uname -a |awk '{print $3}'`
43826 TAPEDRIVE="/dev/nrst0"
43828 WCFLAGS="-mwindows"
43829 WLDFLAGS="-mwindows"
43833 TAPEDRIVE="/dev/nst0"
43834 PSCMD="ps -e -o pid,command"
43836 PFILES="${PFILES} \
43837 platforms/darwin/Makefile"
43841 TAPEDRIVE="/dev/nst0"
43842 PSCMD="ps -e -o pid,command"
43844 PFILES="${PFILES} \
43845 platforms/osx/Makefile"
43848 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43851 DISTVER=`cat /etc/debian_version`
43852 if test -f /etc/lsb-release ; then
43854 if test "x$DISTRIB_ID" != "x" ; then
43855 DISTNAME=$DISTRIB_ID
43857 if test "x$DISTRIB_RELEASE" != "x" ; then
43858 DISTVER=$DISTRIB_RELEASE
43861 if test "$DISTNAME" = "Ubuntu" ; then
43864 TAPEDRIVE="/dev/nst0"
43865 PSCMD="ps -e -o pid,command"
43866 if test "$DISTNAME" = "ubuntu" ; then
43867 PFILES="${PFILES} \
43868 platforms/ubuntu/Makefile \
43869 platforms/ubuntu/bacula-fd \
43870 platforms/ubuntu/bacula-sd \
43871 platforms/ubuntu/bacula-dir"
43873 PFILES="${PFILES} \
43874 platforms/debian/Makefile \
43875 platforms/debian/bacula-fd \
43876 platforms/debian/bacula-sd \
43877 platforms/debian/bacula-dir"
43881 DISTVER=`uname -a |awk '{print $3}'`
43882 VER=`echo $DISTVER | cut -c 1`
43883 if test x$VER = x4 ; then
43884 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43885 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43889 TAPEDRIVE="/dev/nrsa0"
43890 PSCMD="ps -ax -o pid,command"
43891 PFILES="${PFILES} \
43892 platforms/freebsd/Makefile \
43893 platforms/freebsd/bacula-fd \
43894 platforms/freebsd/bacula-sd \
43895 platforms/freebsd/bacula-dir"
43896 largefile_support="yes"
43899 PSCMD="UNIX95=1; ps -e -o pid,comm"
43900 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43902 TAPEDRIVE="/dev/rmt/0hnb"
43903 PTHREAD_LIB="-lpthread"
43904 cat >>confdefs.h <<\_ACEOF
43905 #define _INCLUDE_LONGLONG 1
43911 TAPEDRIVE="/dev/rmt/0cbn"
43912 PSCMD="ps -e -o pid,comm"
43913 PFILES="${PFILES} \
43914 platforms/irix/Makefile \
43915 platforms/irix/bacula-fd \
43916 platforms/irix/bacula-sd \
43917 platforms/irix/bacula-dir"
43920 DISTVER=`uname -a |awk '{print $3}'`
43923 TAPEDRIVE="/dev/nrst0"
43924 PSCMD="ps -ax -o pid,command"
43925 PTHREAD_LIB="-pthread"
43926 CFLAGS="${CFLAGS} -pthread"
43929 DISTVER=`uname -a |awk '{print $3}'`
43932 TAPEDRIVE="/dev/nrst0"
43933 PSCMD="ps -ax -o pid,command"
43934 PTHREAD_LIB="-pthread"
43935 CFLAGS="${CFLAGS} -pthread"
43936 PFILES="${PFILES} \
43937 platforms/openbsd/Makefile \
43938 platforms/openbsd/bacula-fd \
43939 platforms/openbsd/bacula-sd \
43940 platforms/openbsd/bacula-dir"
43943 if test -f /etc/whitebox-release ; then
43944 f=/etc/whitebox-release
43946 f=/etc/redhat-release
43948 if test `cat $f | grep release |\
43949 cut -f 3 -d ' '`x = "Enterprise"x ; then
43950 DISTVER="Enterprise "`cat $f | grep release |\
43953 DISTVER=`cat /etc/redhat-release | grep release |\
43956 TAPEDRIVE="/dev/nst0"
43957 PSCMD="ps -e -o pid,command"
43958 PFILES="${PFILES} \
43959 platforms/redhat/Makefile \
43960 platforms/redhat/bacula-fd \
43961 platforms/redhat/bacula-sd \
43962 platforms/redhat/bacula-dir
43966 DISTVER=`cat /etc/mandrake-release | grep release |\
43968 TAPEDRIVE="/dev/nst0"
43969 PSCMD="ps -e -o pid,command"
43970 PFILES="${PFILES} \
43971 platforms/mandrake/Makefile \
43972 platforms/mandrake/bacula-fd \
43973 platforms/mandrake/bacula-sd \
43974 platforms/mandrake/bacula-dir \
43975 platforms/mandrake/bacula.spec \
43979 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43980 TAPEDRIVE="/dev/nst0"
43981 PSCMD="ps -e -o pid,command"
43982 PFILES="${PFILES} \
43983 platforms/gentoo/Makefile \
43984 platforms/gentoo/bacula-init \
43985 platforms/gentoo/bacula-fd \
43986 platforms/gentoo/bacula-sd \
43987 platforms/gentoo/bacula-dir"
43990 DISTVER=`cat /etc/slackware-version`
43991 TAPEDRIVE="/dev/nst0"
43992 PSCMD="ps -e -o pid,command"
43993 PFILES="${PFILES} \
43994 platforms/slackware/Makefile \
43995 platforms/slackware/rc.bacula-fd \
43996 platforms/slackware/rc.bacula-sd \
43997 platforms/slackware/rc.bacula-dir\
43998 platforms/slackware/functions.bacula"
44002 TAPEDRIVE="/dev/rmt/0cbn"
44003 PSCMD="ps -e -o pid,comm"
44004 PFILES="${PFILES} \
44005 platforms/solaris/Makefile \
44006 platforms/solaris/bacula-fd \
44007 platforms/solaris/bacula-sd \
44008 platforms/solaris/bacula-dir"
44009 if test x$DISTVER = x5.6 ; then
44010 cat >>confdefs.h <<\_ACEOF
44011 #define HAVE_OLD_SOCKOPT 1
44015 LIBS="$LIBS -lresolv"
44018 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44020 TAPEDRIVE="/dev/nst0"
44021 PSCMD="ps -e -o pid,command"
44022 PFILES="${PFILES} \
44023 platforms/suse/Makefile \
44024 platforms/suse/bacula-fd \
44025 platforms/suse/bacula-sd \
44026 platforms/suse/bacula-dir \
44027 platforms/suse/bacula \
44028 platforms/suse/bacula.spec"
44033 TAPEDRIVE="/dev/nst0"
44034 PSCMD="ps -e -o pid,command"
44035 PFILES="${PFILES} \
44036 platforms/suse/Makefile \
44037 platforms/suse/bacula-fd \
44038 platforms/suse/bacula-sd \
44039 platforms/suse/bacula-dir"
44043 TAPEDRIVE="/dev/nst0"
44046 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44052 LIBS="$PTHREAD_LIB $LIBS"
44054 cat >>confdefs.h <<_ACEOF
44058 cat >>confdefs.h <<_ACEOF
44069 MCOMMON=./autoconf/Make.common
44072 if test "x${subsysdir}" = "x${sbindir}" ; then
44075 echo "You have set both --sbindir and --with-subsys-dir"
44076 echo " equal to: ${subsysdir} "
44077 echo "This is not permitted. Please reconfigure."
44079 echo "Aborting configuration ..."
44085 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/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_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44087 ac_config_commands="$ac_config_commands default"
44089 cat >confcache <<\_ACEOF
44090 # This file is a shell script that caches the results of configure
44091 # tests run on this system so they can be shared between configure
44092 # scripts and configure runs, see configure's option --config-cache.
44093 # It is not useful on other systems. If it contains results you don't
44094 # want to keep, you may remove or edit it.
44096 # config.status only pays attention to the cache file if you give it
44097 # the --recheck option to rerun configure.
44099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44101 # following values.
44105 # The following way of writing the cache mishandles newlines in values,
44106 # but we know of no workaround that is simple, portable, and efficient.
44107 # So, we kill variables containing newlines.
44108 # Ultrix sh set writes to stderr and can't be redirected directly,
44109 # and sets the high bit in the cache file unless we assign to the vars.
44111 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44112 eval ac_val=\$$ac_var
44116 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44117 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44120 _ | IFS | as_nl) ;; #(
44121 *) $as_unset $ac_var ;;
44127 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44128 *${as_nl}ac_space=\ *)
44129 # `set' does not quote correctly, so add quotes (double-quote
44130 # substitution turns \\\\ into \\, and sed turns \\ into \).
44133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44136 # `set' quotes correctly as required by POSIX, so do not add quotes.
44137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44150 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44151 if test -w "$cache_file"; then
44152 test "x$cache_file" != "x/dev/null" &&
44153 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44154 echo "$as_me: updating cache $cache_file" >&6;}
44155 cat confcache >$cache_file
44157 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44158 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44163 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44164 # Let make expand exec_prefix.
44165 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44167 DEFS=-DHAVE_CONFIG_H
44171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44172 # 1. Remove the extension, and $U if already installed.
44173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44174 ac_i=`echo "$ac_i" | sed "$ac_script"`
44175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44176 # will be set to the directory where LIBOBJS objects are built.
44177 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44178 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44180 LIBOBJS=$ac_libobjs
44182 LTLIBOBJS=$ac_ltlibobjs
44186 : ${CONFIG_STATUS=./config.status}
44187 ac_clean_files_save=$ac_clean_files
44188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44191 cat >$CONFIG_STATUS <<_ACEOF
44193 # Generated by $as_me.
44194 # Run this file to recreate the current configuration.
44195 # Compiler output produced by configure, useful for debugging
44196 # configure, is in config.log if it exists.
44199 ac_cs_recheck=false
44201 SHELL=\${CONFIG_SHELL-$SHELL}
44204 cat >>$CONFIG_STATUS <<\_ACEOF
44205 ## --------------------- ##
44206 ## M4sh Initialization. ##
44207 ## --------------------- ##
44209 # Be more Bourne compatible
44210 DUALCASE=1; export DUALCASE # for MKS sh
44211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44215 # is contrary to our usage. Disable this feature.
44216 alias -g '${1+"$@"}'='"$@"'
44217 setopt NO_GLOB_SUBST
44219 case `(set -o) 2>/dev/null` in
44220 *posix*) set -o posix ;;
44229 # Avoid depending upon Character Ranges.
44230 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44231 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44232 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44233 as_cr_digits='0123456789'
44234 as_cr_alnum=$as_cr_Letters$as_cr_digits
44236 # The user is always right.
44237 if test "${PATH_SEPARATOR+set}" != set; then
44238 echo "#! /bin/sh" >conf$$.sh
44239 echo "exit 0" >>conf$$.sh
44241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44249 # Support unset when possible.
44250 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44258 # We need space, tab and new line, in precisely that order. Quoting is
44259 # there to prevent editors from complaining about space-tab.
44260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44261 # splitting by setting IFS to empty value.)
44266 # Find who we are. Look in the path if we contain no directory separator.
44268 *[\\/]* ) as_myself=$0 ;;
44269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44270 for as_dir in $PATH
44273 test -z "$as_dir" && as_dir=.
44274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44280 # We did not find ourselves, most probably we were run as `sh COMMAND'
44281 # in which case we are not to be found in the path.
44282 if test "x$as_myself" = x; then
44285 if test ! -f "$as_myself"; then
44286 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44287 { (exit 1); exit 1; }
44290 # Work around bugs in pre-3.0 UWIN ksh.
44291 for as_var in ENV MAIL MAILPATH
44292 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44300 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44301 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44302 LC_TELEPHONE LC_TIME
44304 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44305 eval $as_var=C; export $as_var
44307 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44311 # Required to use basename.
44312 if expr a : '\(a\)' >/dev/null 2>&1 &&
44313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44319 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44320 as_basename=basename
44326 # Name of the executable.
44327 as_me=`$as_basename -- "$0" ||
44328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44329 X"$0" : 'X\(//\)$' \| \
44330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44332 sed '/^.*\/\([^/][^/]*\)\/*$/{
44351 as_lineno_1=$LINENO
44352 as_lineno_2=$LINENO
44353 test "x$as_lineno_1" != "x$as_lineno_2" &&
44354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44357 # uniformly replaced by the line number. The first 'sed' inserts a
44358 # line-number line after each line using $LINENO; the second 'sed'
44359 # does the real work. The second script uses 'N' to pair each
44360 # line-number line with the line containing $LINENO, and appends
44361 # trailing '-' during substitution so that $LINENO is not a special
44362 # case at line end.
44363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44364 # scripts with optimization help from Paolo Bonzini. Blame Lee
44365 # E. McMahon (1931-1989) for sed's syntax. :-)
44377 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44380 ' >$as_me.lineno &&
44381 chmod +x "$as_me.lineno" ||
44382 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44383 { (exit 1); exit 1; }; }
44385 # Don't try to exec as it changes $[0], causing all sort of problems
44386 # (the dirname of $[0] is not the place where we might find the
44387 # original and so on. Autoconf is especially sensitive to this).
44388 . "./$as_me.lineno"
44389 # Exit status is that of the last command.
44394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44400 ECHO_C= ECHO_N= ECHO_T=
44401 case `echo -n x` in
44403 case `echo 'x\c'` in
44404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44411 if expr a : '\(a\)' >/dev/null 2>&1 &&
44412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44418 rm -f conf$$ conf$$.exe conf$$.file
44419 if test -d conf$$.dir; then
44420 rm -f conf$$.dir/conf$$.file
44426 if ln -s conf$$.file conf$$ 2>/dev/null; then
44428 # ... but there are two gotchas:
44429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44431 # In both cases, we have to default to `cp -p'.
44432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44434 elif ln conf$$.file conf$$ 2>/dev/null; then
44439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44440 rmdir conf$$.dir 2>/dev/null
44442 if mkdir -p . 2>/dev/null; then
44445 test -d ./-p && rmdir ./-p
44449 if test -x / >/dev/null 2>&1; then
44450 as_test_x='test -x'
44452 if ls -dL / >/dev/null 2>&1; then
44459 if test -d "$1"; then
44465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44466 ???[sx]*):;;*)false;;esac;fi
44470 as_executable_p=$as_test_x
44472 # Sed expression to map a string onto a valid CPP name.
44473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44475 # Sed expression to map a string onto a valid variable name.
44476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44481 # Save the log message, to keep $[0] and so on meaningful, and to
44482 # report actual input values of CONFIG_FILES etc. instead of their
44483 # values after options handling.
44485 This file was extended by $as_me, which was
44486 generated by GNU Autoconf 2.61. Invocation command line was
44488 CONFIG_FILES = $CONFIG_FILES
44489 CONFIG_HEADERS = $CONFIG_HEADERS
44490 CONFIG_LINKS = $CONFIG_LINKS
44491 CONFIG_COMMANDS = $CONFIG_COMMANDS
44494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44499 cat >>$CONFIG_STATUS <<_ACEOF
44500 # Files that config.status was made for.
44501 config_files="$ac_config_files"
44502 config_headers="$ac_config_headers"
44503 config_commands="$ac_config_commands"
44507 cat >>$CONFIG_STATUS <<\_ACEOF
44509 \`$as_me' instantiates files from templates according to the
44510 current configuration.
44512 Usage: $0 [OPTIONS] [FILE]...
44514 -h, --help print this help, then exit
44515 -V, --version print version number and configuration settings, then exit
44516 -q, --quiet do not print progress messages
44517 -d, --debug don't remove temporary files
44518 --recheck update $as_me by reconfiguring in the same conditions
44519 --file=FILE[:TEMPLATE]
44520 instantiate the configuration file FILE
44521 --header=FILE[:TEMPLATE]
44522 instantiate the configuration header FILE
44524 Configuration files:
44527 Configuration headers:
44530 Configuration commands:
44533 Report bugs to <bug-autoconf@gnu.org>."
44536 cat >>$CONFIG_STATUS <<_ACEOF
44539 configured by $0, generated by GNU Autoconf 2.61,
44540 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44542 Copyright (C) 2006 Free Software Foundation, Inc.
44543 This config.status script is free software; the Free Software Foundation
44544 gives unlimited permission to copy, distribute and modify it."
44551 cat >>$CONFIG_STATUS <<\_ACEOF
44552 # If no file are specified by the user, then we need to provide default
44553 # value. By we need to know if files were specified by the user.
44559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44560 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44571 # Handling of the options.
44572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44574 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44575 echo "$ac_cs_version"; exit ;;
44576 --debug | --debu | --deb | --de | --d | -d )
44578 --file | --fil | --fi | --f )
44580 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44581 ac_need_defaults=false;;
44582 --header | --heade | --head | --hea )
44584 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44585 ac_need_defaults=false;;
44587 # Conflict between --help and --header
44588 { echo "$as_me: error: ambiguous option: $1
44589 Try \`$0 --help' for more information." >&2
44590 { (exit 1); exit 1; }; };;
44591 --help | --hel | -h )
44592 echo "$ac_cs_usage"; exit ;;
44593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44594 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44597 # This is an error.
44598 -*) { echo "$as_me: error: unrecognized option: $1
44599 Try \`$0 --help' for more information." >&2
44600 { (exit 1); exit 1; }; } ;;
44602 *) ac_config_targets="$ac_config_targets $1"
44603 ac_need_defaults=false ;;
44609 ac_configure_extra_args=
44611 if $ac_cs_silent; then
44613 ac_configure_extra_args="$ac_configure_extra_args --silent"
44617 cat >>$CONFIG_STATUS <<_ACEOF
44618 if \$ac_cs_recheck; then
44619 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44620 CONFIG_SHELL=$SHELL
44621 export CONFIG_SHELL
44622 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44626 cat >>$CONFIG_STATUS <<\_ACEOF
44630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44631 ## Running $as_me. ##
44637 cat >>$CONFIG_STATUS <<_ACEOF
44643 # The HP-UX ksh and POSIX shell print the target directory to stdout
44644 # if CDPATH is set.
44645 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44647 sed_quote_subst='$sed_quote_subst'
44648 double_quote_subst='$double_quote_subst'
44649 delay_variable_subst='$delay_variable_subst'
44650 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44651 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44652 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44653 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44654 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44655 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44656 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44657 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44658 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44659 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44660 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44661 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44662 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44663 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44664 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44665 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44666 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44667 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44668 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44669 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44670 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44671 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44672 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44673 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44674 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44675 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44676 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44677 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44678 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44679 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44680 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44681 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44682 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44683 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44684 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44685 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44686 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44687 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44688 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44689 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44690 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44691 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44692 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44693 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44694 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"`'
44695 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"`'
44696 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44697 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44698 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44699 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44700 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44701 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44702 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44703 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44704 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44705 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44706 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44707 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44708 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44709 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44710 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44711 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44712 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44713 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44714 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44715 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44716 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44717 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44718 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44719 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44720 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44721 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44722 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44723 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44724 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44725 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44726 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44727 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44728 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44729 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44730 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44731 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44732 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44733 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44734 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44735 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44736 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44737 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44738 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44739 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44740 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44741 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44742 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44743 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44744 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44745 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44746 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44747 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44748 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44749 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44750 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44751 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44752 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44753 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44754 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44755 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44756 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44757 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44758 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44759 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44760 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44761 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44762 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44763 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44764 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44765 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44766 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44767 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44768 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44769 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44770 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44771 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44772 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44773 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44774 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44775 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44776 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44777 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44778 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44779 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44780 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44781 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44782 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44783 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44784 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44785 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44786 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44787 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44788 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44789 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44790 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44791 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44792 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44793 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44794 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44795 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44796 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44797 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44798 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44799 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44802 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44804 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44805 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44806 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44807 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44808 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44809 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44810 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44811 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44812 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44813 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44814 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44815 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44816 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44817 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44818 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44819 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44820 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44823 LTCFLAGS='$LTCFLAGS'
44824 compiler='$compiler_DEFAULT'
44826 # Quote evaled strings.
44838 deplibs_check_method \
44847 lt_cv_sys_global_symbol_pipe \
44848 lt_cv_sys_global_symbol_to_cdecl \
44849 lt_cv_sys_global_symbol_to_c_name_address \
44850 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44853 lt_prog_compiler_no_builtin_flag \
44854 lt_prog_compiler_wl \
44855 lt_prog_compiler_pic \
44856 lt_prog_compiler_static \
44857 lt_cv_prog_compiler_c_o \
44865 export_dynamic_flag_spec \
44866 whole_archive_flag_spec \
44867 compiler_needs_object \
44869 allow_undefined_flag \
44870 no_undefined_flag \
44871 hardcode_libdir_flag_spec \
44872 hardcode_libdir_flag_spec_ld \
44873 hardcode_libdir_separator \
44878 variables_saved_for_relink \
44880 library_names_spec \
44885 compiler_lib_search_dirs \
44890 compiler_lib_search_path \
44893 lt_prog_compiler_no_builtin_flag_CXX \
44894 lt_prog_compiler_wl_CXX \
44895 lt_prog_compiler_pic_CXX \
44896 lt_prog_compiler_static_CXX \
44897 lt_cv_prog_compiler_c_o_CXX \
44898 export_dynamic_flag_spec_CXX \
44899 whole_archive_flag_spec_CXX \
44900 compiler_needs_object_CXX \
44902 allow_undefined_flag_CXX \
44903 no_undefined_flag_CXX \
44904 hardcode_libdir_flag_spec_CXX \
44905 hardcode_libdir_flag_spec_ld_CXX \
44906 hardcode_libdir_separator_CXX \
44907 fix_srcfile_path_CXX \
44908 exclude_expsyms_CXX \
44909 include_expsyms_CXX \
44910 file_list_spec_CXX \
44911 compiler_lib_search_dirs_CXX \
44912 predep_objects_CXX \
44913 postdep_objects_CXX \
44916 compiler_lib_search_path_CXX; do
44917 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44918 *[\\\\\\\`\\"\\\$]*)
44919 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44922 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44927 # Double-quote double-evaled strings.
44928 for var in reload_cmds \
44929 old_postinstall_cmds \
44930 old_postuninstall_cmds \
44932 extract_expsyms_cmds \
44933 old_archive_from_new_cmds \
44934 old_archive_from_expsyms_cmds \
44936 archive_expsym_cmds \
44938 module_expsym_cmds \
44939 export_symbols_cmds \
44942 postuninstall_cmds \
44944 sys_lib_search_path_spec \
44945 sys_lib_dlsearch_path_spec \
44946 old_archive_cmds_CXX \
44947 old_archive_from_new_cmds_CXX \
44948 old_archive_from_expsyms_cmds_CXX \
44950 archive_expsym_cmds_CXX \
44952 module_expsym_cmds_CXX \
44953 export_symbols_cmds_CXX \
44954 prelink_cmds_CXX; do
44955 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44956 *[\\\\\\\`\\"\\\$]*)
44957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44965 # Fix-up fallback echo if it was mangled by the above quoting rules.
44967 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44971 ac_aux_dir='$ac_aux_dir'
44972 xsi_shell='$xsi_shell'
44973 lt_shell_append='$lt_shell_append'
44975 # See if we are running on zsh, and set the options which allow our
44976 # commands through without removal of \ escapes INIT.
44977 if test -n "\${ZSH_VERSION+set}" ; then
44978 setopt NO_GLOB_SUBST
44984 TIMESTAMP='$TIMESTAMP'
44992 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44993 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44995 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44996 # Capture the value of LINGUAS because we need it to compute CATALOGS.
44997 LINGUAS="${LINGUAS-%UNSET%}"
45002 cat >>$CONFIG_STATUS <<\_ACEOF
45004 # Handling of arguments.
45005 for ac_config_target in $ac_config_targets
45007 case $ac_config_target in
45008 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45009 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45010 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45011 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45012 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45013 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45014 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45015 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45016 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45017 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45018 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45019 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45020 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45021 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45022 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45023 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45024 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45025 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45026 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45027 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45028 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45029 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45030 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45031 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45032 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45033 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45034 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45035 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45036 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45037 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45038 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45039 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45040 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45041 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45042 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45043 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45044 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45045 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45046 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45047 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45048 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45049 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45050 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45051 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45052 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45053 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45054 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45055 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45056 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45057 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45058 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45059 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45060 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45061 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45062 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45063 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45064 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45065 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45066 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45067 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45068 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45069 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45070 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45071 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45072 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45073 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45074 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45075 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45076 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45077 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45078 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45079 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45080 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45081 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45082 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45083 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45084 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45085 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45086 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45087 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45088 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45089 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45090 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45091 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45092 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45093 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45094 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45095 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45096 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45097 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45098 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45099 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45100 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45101 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45102 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45103 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45104 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45105 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45106 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45107 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45108 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45109 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45110 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45111 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45112 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45113 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45114 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45115 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45116 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45117 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45118 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45120 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45121 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45122 { (exit 1); exit 1; }; };;
45127 # If the user did not use the arguments to specify the items to instantiate,
45128 # then the envvar interface is used. Set only those that are not.
45129 # We use the long form for the default assignment because of an extremely
45130 # bizarre bug on SunOS 4.1.3.
45131 if $ac_need_defaults; then
45132 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45133 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45134 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45137 # Have a temporary directory for convenience. Make it in the build tree
45138 # simply because there is no reason against having it here, and in addition,
45139 # creating and moving files from /tmp can sometimes cause problems.
45140 # Hook for its removal unless debugging.
45141 # Note that there is a small window in which the directory will not be cleaned:
45142 # after its creation but before its name has been assigned to `$tmp'.
45146 trap 'exit_status=$?
45147 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45149 trap '{ (exit 1); exit 1; }' 1 2 13 15
45151 # Create a (secure) tmp directory for tmp files.
45154 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45155 test -n "$tmp" && test -d "$tmp"
45158 tmp=./conf$$-$RANDOM
45159 (umask 077 && mkdir "$tmp")
45162 echo "$me: cannot create a temporary directory in ." >&2
45163 { (exit 1); exit 1; }
45167 # Set up the sed scripts for CONFIG_FILES section.
45170 # No need to generate the scripts if there are no CONFIG_FILES.
45171 # This happens for instance when ./config.status config.h
45172 if test -n "$CONFIG_FILES"; then
45176 # Create sed commands to just substitute file output variables.
45178 # Remaining file output variables are in a fragment that also has non-file
45184 for ac_last_try in false false false false false :; do
45185 cat >conf$$subs.sed <<_ACEOF
45186 SHELL!$SHELL$ac_delim
45187 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45188 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45189 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45190 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45191 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45192 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45193 exec_prefix!$exec_prefix$ac_delim
45194 prefix!$prefix$ac_delim
45195 program_transform_name!$program_transform_name$ac_delim
45196 bindir!$bindir$ac_delim
45197 sbindir!$sbindir$ac_delim
45198 libexecdir!$libexecdir$ac_delim
45199 datarootdir!$datarootdir$ac_delim
45200 datadir!$datadir$ac_delim
45201 sysconfdir!$sysconfdir$ac_delim
45202 sharedstatedir!$sharedstatedir$ac_delim
45203 localstatedir!$localstatedir$ac_delim
45204 includedir!$includedir$ac_delim
45205 oldincludedir!$oldincludedir$ac_delim
45206 docdir!$docdir$ac_delim
45207 infodir!$infodir$ac_delim
45208 htmldir!$htmldir$ac_delim
45209 dvidir!$dvidir$ac_delim
45210 pdfdir!$pdfdir$ac_delim
45211 psdir!$psdir$ac_delim
45212 libdir!$libdir$ac_delim
45213 localedir!$localedir$ac_delim
45214 mandir!$mandir$ac_delim
45215 DEFS!$DEFS$ac_delim
45216 ECHO_C!$ECHO_C$ac_delim
45217 ECHO_N!$ECHO_N$ac_delim
45218 ECHO_T!$ECHO_T$ac_delim
45219 LIBS!$LIBS$ac_delim
45220 build_alias!$build_alias$ac_delim
45221 host_alias!$host_alias$ac_delim
45222 target_alias!$target_alias$ac_delim
45223 BUILD_DIR!$BUILD_DIR$ac_delim
45224 TOP_DIR!$TOP_DIR$ac_delim
45225 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45226 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45227 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45228 TRUEPRG!$TRUEPRG$ac_delim
45229 FALSEPRG!$FALSEPRG$ac_delim
45230 VERSION!$VERSION$ac_delim
45231 DATE!$DATE$ac_delim
45232 LSMDATE!$LSMDATE$ac_delim
45233 BACULA!$BACULA$ac_delim
45234 post_host!$post_host$ac_delim
45236 CFLAGS!$CFLAGS$ac_delim
45237 LDFLAGS!$LDFLAGS$ac_delim
45238 CPPFLAGS!$CPPFLAGS$ac_delim
45239 ac_ct_CC!$ac_ct_CC$ac_delim
45240 EXEEXT!$EXEEXT$ac_delim
45241 OBJEXT!$OBJEXT$ac_delim
45243 CXXFLAGS!$CXXFLAGS$ac_delim
45244 ac_ct_CXX!$ac_ct_CXX$ac_delim
45246 GREP!$GREP$ac_delim
45247 EGREP!$EGREP$ac_delim
45248 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45249 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45250 INSTALL_DATA!$INSTALL_DATA$ac_delim
45252 REMOVE!$REMOVE$ac_delim
45255 ECHO!$ECHO$ac_delim
45259 OPENSSL!$OPENSSL$ac_delim
45262 MKISOFS!$MKISOFS$ac_delim
45263 PYTHON!$PYTHON$ac_delim
45264 GROWISOFS!$GROWISOFS$ac_delim
45265 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45266 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45267 PKGCONFIG!$PKGCONFIG$ac_delim
45268 QMAKE!$QMAKE$ac_delim
45269 QMAKEQT4!$QMAKEQT4$ac_delim
45270 GMAKE!$GMAKE$ac_delim
45271 WXCONFIG!$WXCONFIG$ac_delim
45272 WXFLAGS!$WXFLAGS$ac_delim
45273 CDRECORD!$CDRECORD$ac_delim
45274 PIDOF!$PIDOF$ac_delim
45276 ARFLAGS!$ARFLAGS$ac_delim
45277 MAKE_SHELL!$MAKE_SHELL$ac_delim
45278 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45279 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45282 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45284 elif $ac_last_try; then
45285 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45286 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45287 { (exit 1); exit 1; }; }
45289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45293 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45294 if test -n "$ac_eof"; then
45295 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45296 ac_eof=`expr $ac_eof + 1`
45299 cat >>$CONFIG_STATUS <<_ACEOF
45300 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45302 /^[ ]*@MCOMMON@[ ]*$/{
45308 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45309 s/^/s,@/; s/!/@,|#_!!_#|/
45312 s/'"$ac_delim"'$/,g/; t
45314 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45315 ' >>$CONFIG_STATUS <conf$$subs.sed
45316 rm -f conf$$subs.sed
45317 cat >>$CONFIG_STATUS <<_ACEOF
45323 for ac_last_try in false false false false false :; do
45324 cat >conf$$subs.sed <<_ACEOF
45325 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45326 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45327 LIBTOOL!$LIBTOOL$ac_delim
45328 build!$build$ac_delim
45329 build_cpu!$build_cpu$ac_delim
45330 build_vendor!$build_vendor$ac_delim
45331 build_os!$build_os$ac_delim
45332 host!$host$ac_delim
45333 host_cpu!$host_cpu$ac_delim
45334 host_vendor!$host_vendor$ac_delim
45335 host_os!$host_os$ac_delim
45336 FGREP!$FGREP$ac_delim
45338 DUMPBIN!$DUMPBIN$ac_delim
45339 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45341 LN_S!$LN_S$ac_delim
45342 OBJDUMP!$OBJDUMP$ac_delim
45343 STRIP!$STRIP$ac_delim
45344 RANLIB!$RANLIB$ac_delim
45345 lt_ECHO!$lt_ECHO$ac_delim
45346 DSYMUTIL!$DSYMUTIL$ac_delim
45347 NMEDIT!$NMEDIT$ac_delim
45348 LIPO!$LIPO$ac_delim
45349 OTOOL!$OTOOL$ac_delim
45350 OTOOL64!$OTOOL64$ac_delim
45351 CXXCPP!$CXXCPP$ac_delim
45352 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45353 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45354 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45355 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45356 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45357 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45358 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45359 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45360 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45361 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45362 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45363 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45364 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45365 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45366 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45367 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45368 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45369 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45370 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45371 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45372 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45373 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45374 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45375 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45376 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45377 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45378 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45379 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45380 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45381 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45382 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45383 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45384 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45385 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45386 SET_MAKE!$SET_MAKE$ac_delim
45387 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45388 USE_NLS!$USE_NLS$ac_delim
45389 MSGFMT!$MSGFMT$ac_delim
45390 GMSGFMT!$GMSGFMT$ac_delim
45391 XGETTEXT!$XGETTEXT$ac_delim
45392 MSGMERGE!$MSGMERGE$ac_delim
45393 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45394 LIBICONV!$LIBICONV$ac_delim
45395 LTLIBICONV!$LTLIBICONV$ac_delim
45396 INTLLIBS!$INTLLIBS$ac_delim
45397 LIBINTL!$LIBINTL$ac_delim
45398 LTLIBINTL!$LTLIBINTL$ac_delim
45399 POSUB!$POSUB$ac_delim
45400 GLIBC2!$GLIBC2$ac_delim
45401 ALLOCA!$ALLOCA$ac_delim
45402 GLIBC21!$GLIBC21$ac_delim
45403 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45404 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45405 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45406 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45407 INTLBISON!$INTLBISON$ac_delim
45408 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45409 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45410 CATOBJEXT!$CATOBJEXT$ac_delim
45411 DATADIRNAME!$DATADIRNAME$ac_delim
45412 INSTOBJEXT!$INSTOBJEXT$ac_delim
45413 GENCAT!$GENCAT$ac_delim
45414 INTLOBJS!$INTLOBJS$ac_delim
45415 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45416 BAT_DIR!$BAT_DIR$ac_delim
45417 QWT_INC!$QWT_INC$ac_delim
45418 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45419 QWT_LIB!$QWT_LIB$ac_delim
45421 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45424 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45426 elif $ac_last_try; then
45427 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45428 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45429 { (exit 1); exit 1; }; }
45431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45435 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45436 if test -n "$ac_eof"; then
45437 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45438 ac_eof=`expr $ac_eof + 1`
45441 cat >>$CONFIG_STATUS <<_ACEOF
45442 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45446 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45447 s/^/s,@/; s/!/@,|#_!!_#|/
45450 s/'"$ac_delim"'$/,g/; t
45452 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45453 ' >>$CONFIG_STATUS <conf$$subs.sed
45454 rm -f conf$$subs.sed
45455 cat >>$CONFIG_STATUS <<_ACEOF
45461 for ac_last_try in false false false false false :; do
45462 cat >conf$$subs.sed <<_ACEOF
45463 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45464 WX_DIR!$WX_DIR$ac_delim
45465 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45466 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45467 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45468 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45469 STATIC_FD!$STATIC_FD$ac_delim
45470 STATIC_SD!$STATIC_SD$ac_delim
45471 STATIC_DIR!$STATIC_DIR$ac_delim
45472 STATIC_CONS!$STATIC_CONS$ac_delim
45473 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45474 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45475 ALL_DIRS!$ALL_DIRS$ac_delim
45476 DIRD_DIR!$DIRD_DIR$ac_delim
45477 DIR_TOOLS!$DIR_TOOLS$ac_delim
45478 STORED_DIR!$STORED_DIR$ac_delim
45479 CONS_INC!$CONS_INC$ac_delim
45480 CONS_OBJ!$CONS_OBJ$ac_delim
45481 CONS_SRC!$CONS_SRC$ac_delim
45482 CONS_LIBS!$CONS_LIBS$ac_delim
45483 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45484 READLINE_SRC!$READLINE_SRC$ac_delim
45485 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45486 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45487 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45488 OPENSSL_INC!$OPENSSL_INC$ac_delim
45489 working_dir!$working_dir$ac_delim
45490 archivedir!$archivedir$ac_delim
45491 basename!$basename$ac_delim
45492 hostname!$hostname$ac_delim
45493 scriptdir!$scriptdir$ac_delim
45494 bsrdir!$bsrdir$ac_delim
45495 logdir!$logdir$ac_delim
45496 plugindir!$plugindir$ac_delim
45497 dump_email!$dump_email$ac_delim
45498 job_email!$job_email$ac_delim
45499 smtp_host!$smtp_host$ac_delim
45500 piddir!$piddir$ac_delim
45501 subsysdir!$subsysdir$ac_delim
45502 baseport!$baseport$ac_delim
45503 dir_port!$dir_port$ac_delim
45504 fd_port!$fd_port$ac_delim
45505 sd_port!$sd_port$ac_delim
45506 dir_password!$dir_password$ac_delim
45507 fd_password!$fd_password$ac_delim
45508 sd_password!$sd_password$ac_delim
45509 mon_dir_password!$mon_dir_password$ac_delim
45510 mon_fd_password!$mon_fd_password$ac_delim
45511 mon_sd_password!$mon_sd_password$ac_delim
45512 db_name!$db_name$ac_delim
45513 db_user!$db_user$ac_delim
45514 db_password!$db_password$ac_delim
45515 db_port!$db_port$ac_delim
45516 dir_user!$dir_user$ac_delim
45517 dir_group!$dir_group$ac_delim
45518 sd_user!$sd_user$ac_delim
45519 sd_group!$sd_group$ac_delim
45520 fd_user!$fd_user$ac_delim
45521 fd_group!$fd_group$ac_delim
45522 SBINPERM!$SBINPERM$ac_delim
45523 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45524 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45525 SQL_BINDIR!$SQL_BINDIR$ac_delim
45526 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45527 uncomment_dbi!$uncomment_dbi$ac_delim
45528 DB_PROG!$DB_PROG$ac_delim
45529 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45530 cats!$cats$ac_delim
45531 DB_TYPE!$DB_TYPE$ac_delim
45532 GETCONF!$GETCONF$ac_delim
45533 XMKMF!$XMKMF$ac_delim
45534 X_CFLAGS!$X_CFLAGS$ac_delim
45535 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45536 X_LIBS!$X_LIBS$ac_delim
45537 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45538 LIBOBJS!$LIBOBJS$ac_delim
45539 CAP_LIBS!$CAP_LIBS$ac_delim
45540 FDLIBS!$FDLIBS$ac_delim
45541 DEBUG!$DEBUG$ac_delim
45542 DINCLUDE!$DINCLUDE$ac_delim
45543 DLIB!$DLIB$ac_delim
45544 DB_LIBS!$DB_LIBS$ac_delim
45545 WCFLAGS!$WCFLAGS$ac_delim
45546 WLDFLAGS!$WLDFLAGS$ac_delim
45547 WRAPLIBS!$WRAPLIBS$ac_delim
45548 OBJLIST!$OBJLIST$ac_delim
45549 TAPEDRIVE!$TAPEDRIVE$ac_delim
45550 PSCMD!$PSCMD$ac_delim
45551 WIN32!$WIN32$ac_delim
45552 MACOSX!$MACOSX$ac_delim
45553 DISTNAME!$DISTNAME$ac_delim
45554 DISTVER!$DISTVER$ac_delim
45555 LTLIBOBJS!$LTLIBOBJS$ac_delim
45558 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
45560 elif $ac_last_try; then
45561 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45563 { (exit 1); exit 1; }; }
45565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45570 if test -n "$ac_eof"; then
45571 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45572 ac_eof=`expr $ac_eof + 1`
45575 cat >>$CONFIG_STATUS <<_ACEOF
45576 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45581 s/^/s,@/; s/!/@,|#_!!_#|/
45584 s/'"$ac_delim"'$/,g/; t
45586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45587 ' >>$CONFIG_STATUS <conf$$subs.sed
45588 rm -f conf$$subs.sed
45589 cat >>$CONFIG_STATUS <<_ACEOF
45596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45598 # trailing colons and then remove the whole line if VPATH becomes empty
45599 # (actually we leave an empty line to preserve line numbers).
45600 if test "x$srcdir" = x.; then
45601 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45602 s/:*\$(srcdir):*/:/
45603 s/:*\${srcdir}:*/:/
45605 s/^\([^=]*=[ ]*\):*/\1/
45611 cat >>$CONFIG_STATUS <<\_ACEOF
45612 fi # test -n "$CONFIG_FILES"
45615 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45618 :[FHLC]) ac_mode=$ac_tag; continue;;
45620 case $ac_mode$ac_tag in
45622 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45623 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45624 { (exit 1); exit 1; }; };;
45625 :[FH]-) ac_tag=-:-;;
45626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45643 -) ac_f="$tmp/stdin";;
45644 *) # Look for the file first in the build tree, then in the source tree
45645 # (if the path is not absolute). The absolute path cannot be DOS-style,
45646 # because $ac_f cannot contain `:'.
45650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45652 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45653 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45654 { (exit 1); exit 1; }; };;
45656 ac_file_inputs="$ac_file_inputs $ac_f"
45659 # Let's still pretend it is `configure' which instantiates (i.e., don't
45660 # use $as_me), people would be surprised to read:
45661 # /* config.h. Generated by config.status. */
45662 configure_input="Generated from "`IFS=:
45663 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45664 if test x"$ac_file" != x-; then
45665 configure_input="$ac_file. $configure_input"
45666 { echo "$as_me:$LINENO: creating $ac_file" >&5
45667 echo "$as_me: creating $ac_file" >&6;}
45671 *:-:* | *:-) cat >"$tmp/stdin";;
45676 ac_dir=`$as_dirname -- "$ac_file" ||
45677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45678 X"$ac_file" : 'X\(//\)[^/]' \| \
45679 X"$ac_file" : 'X\(//\)$' \| \
45680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45686 /^X\(\/\/\)[^/].*/{
45701 -*) as_dir=./$as_dir;;
45703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45708 *) as_qdir=$as_dir;;
45710 as_dirs="'$as_qdir' $as_dirs"
45711 as_dir=`$as_dirname -- "$as_dir" ||
45712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45713 X"$as_dir" : 'X\(//\)[^/]' \| \
45714 X"$as_dir" : 'X\(//\)$' \| \
45715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45721 /^X\(\/\/\)[^/].*/{
45734 test -d "$as_dir" && break
45736 test -z "$as_dirs" || eval "mkdir $as_dirs"
45737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45739 { (exit 1); exit 1; }; }; }
45743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45746 # A ".." for each directory in $ac_dir_suffix.
45747 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45748 case $ac_top_builddir_sub in
45749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45753 ac_abs_top_builddir=$ac_pwd
45754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45755 # for backward compatibility:
45756 ac_top_builddir=$ac_top_build_prefix
45759 .) # We are building in place.
45761 ac_top_srcdir=$ac_top_builddir_sub
45762 ac_abs_top_srcdir=$ac_pwd ;;
45763 [\\/]* | ?:[\\/]* ) # Absolute name.
45764 ac_srcdir=$srcdir$ac_dir_suffix;
45765 ac_top_srcdir=$srcdir
45766 ac_abs_top_srcdir=$srcdir ;;
45767 *) # Relative name.
45768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45769 ac_top_srcdir=$ac_top_build_prefix$srcdir
45770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45787 cat >>$CONFIG_STATUS <<\_ACEOF
45788 # If the template does not know about datarootdir, expand it.
45789 # FIXME: This hack should be removed a few years after 2.60.
45790 ac_datarootdir_hack=; ac_datarootdir_seen=
45792 case `sed -n '/datarootdir/ {
45801 ' $ac_file_inputs` in
45802 *datarootdir*) ac_datarootdir_seen=yes;;
45803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45804 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45805 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45807 cat >>$CONFIG_STATUS <<_ACEOF
45808 ac_datarootdir_hack='
45809 s&@datadir@&$datadir&g
45810 s&@docdir@&$docdir&g
45811 s&@infodir@&$infodir&g
45812 s&@localedir@&$localedir&g
45813 s&@mandir@&$mandir&g
45814 s&\\\${datarootdir}&$datarootdir&g' ;;
45818 # Neutralize VPATH when `$srcdir' = `.'.
45819 # Shell code in configure.ac might set extrasub.
45820 # FIXME: do we really want to maintain this feature?
45821 cat >>$CONFIG_STATUS <<_ACEOF
45825 cat >>$CONFIG_STATUS <<\_ACEOF
45827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45828 s&@configure_input@&$configure_input&;t t
45829 s&@top_builddir@&$ac_top_builddir_sub&;t t
45830 s&@srcdir@&$ac_srcdir&;t t
45831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45832 s&@top_srcdir@&$ac_top_srcdir&;t t
45833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45834 s&@builddir@&$ac_builddir&;t t
45835 s&@abs_builddir@&$ac_abs_builddir&;t t
45836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45837 s&@INSTALL@&$ac_INSTALL&;t t
45838 $ac_datarootdir_hack
45839 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45842 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45844 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45845 which seems to be undefined. Please make sure it is defined." >&5
45846 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45847 which seems to be undefined. Please make sure it is defined." >&2;}
45851 -) cat "$tmp/out"; rm -f "$tmp/out";;
45852 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45861 # Transform confdefs.h into a sed script `conftest.defines', that
45862 # substitutes the proper values into config.h.in to produce config.h.
45863 rm -f conftest.defines conftest.tail
45864 # First, append a space to every undef/define line, to ease matching.
45865 echo 's/$/ /' >conftest.defines
45866 # Then, protect against being on the right side of a sed subst, or in
45867 # an unquoted here document, in config.status. If some macros were
45868 # called several times there might be several #defines for the same
45869 # symbol, which is useless. But do not sort them, since the last
45870 # AC_DEFINE must be honored.
45871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45872 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45873 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45874 # PARAMS is the parameter list in the macro definition--in most cases, it's
45875 # just an empty string.
45876 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
45877 ac_dB='\\)[ (].*,\\1define\\2'
45885 s/^[ ]*#[ ]*define[ ][ ]*//
45890 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45891 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45892 ' >>conftest.defines
45894 # Remove the space that was appended to ease matching.
45895 # Then replace #undef with comments. This is necessary, for
45896 # example, in the case of _POSIX_SOURCE, which is predefined and required
45897 # on some systems where configure will not decide to define it.
45898 # (The regexp can be short, since the line contains either #define or #undef.)
45900 s,^[ #]*u.*,/* & */,' >>conftest.defines
45902 # Break up conftest.defines:
45903 ac_max_sed_lines=50
45905 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45906 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45907 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45909 ac_in='$ac_file_inputs'
45910 ac_out='"$tmp/out1"'
45911 ac_nxt='"$tmp/out2"'
45915 # Write a here document:
45916 cat >>$CONFIG_STATUS <<_ACEOF
45917 # First, check the format of the line:
45918 cat >"\$tmp/defines.sed" <<\\CEOF
45919 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
45920 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
45924 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45926 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45927 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45928 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45929 grep . conftest.tail >/dev/null || break
45930 rm -f conftest.defines
45931 mv conftest.tail conftest.defines
45933 rm -f conftest.defines conftest.tail
45935 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45936 cat >>$CONFIG_STATUS <<\_ACEOF
45937 if test x"$ac_file" != x-; then
45938 echo "/* $configure_input */" >"$tmp/config.h"
45939 cat "$ac_result" >>"$tmp/config.h"
45940 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45941 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45942 echo "$as_me: $ac_file is unchanged" >&6;}
45945 mv "$tmp/config.h" $ac_file
45948 echo "/* $configure_input */"
45954 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45955 echo "$as_me: executing $ac_file commands" >&6;}
45960 case $ac_file$ac_mode in
45963 # See if we are running on zsh, and set the options which allow our
45964 # commands through without removal of \ escapes.
45965 if test -n "${ZSH_VERSION+set}" ; then
45966 setopt NO_GLOB_SUBST
45969 cfgfile="${ofile}T"
45970 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45973 cat <<_LT_EOF >> "$cfgfile"
45976 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45977 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45981 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45982 # 2006, 2007, 2008 Free Software Foundation, Inc.
45983 # Written by Gordon Matzigkeit, 1996
45985 # This file is part of GNU Libtool.
45987 # GNU Libtool is free software; you can redistribute it and/or
45988 # modify it under the terms of the GNU General Public License as
45989 # published by the Free Software Foundation; either version 2 of
45990 # the License, or (at your option) any later version.
45992 # As a special exception to the GNU General Public License,
45993 # if you distribute this file as part of a program or library that
45994 # is built using GNU Libtool, you may include this file under the
45995 # same distribution terms that you use for the rest of that program.
45997 # GNU Libtool is distributed in the hope that it will be useful,
45998 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45999 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46000 # GNU General Public License for more details.
46002 # You should have received a copy of the GNU General Public License
46003 # along with GNU Libtool; see the file COPYING. If not, a copy
46004 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46005 # obtained by writing to the Free Software Foundation, Inc.,
46006 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46009 # The names of the tagged configurations supported by this script.
46010 available_tags="CXX "
46012 # ### BEGIN LIBTOOL CONFIG
46014 # Which release of libtool.m4 was used?
46015 macro_version=$macro_version
46016 macro_revision=$macro_revision
46018 # Whether or not to build shared libraries.
46019 build_libtool_libs=$enable_shared
46021 # Whether or not to build static libraries.
46022 build_old_libs=$enable_static
46024 # What type of objects to build.
46027 # Whether or not to optimize for fast installation.
46028 fast_install=$enable_fast_install
46031 host_alias=$host_alias
46035 # The build system.
46036 build_alias=$build_alias
46040 # A sed program that does not truncate output.
46043 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46044 Xsed="\$SED -e 1s/^X//"
46046 # A grep program that handles long lines.
46052 # A literal string matcher.
46055 # A BSD- or MS-compatible name lister.
46058 # Whether we need soft or hard links.
46061 # What is the maximum length of a command?
46062 max_cmd_len=$max_cmd_len
46064 # Object file suffix (normally "o").
46067 # Executable file suffix (normally "").
46070 # whether the shell understands "unset".
46073 # turn spaces into newlines.
46076 # turn newlines into spaces.
46079 # How to create reloadable object files.
46080 reload_flag=$lt_reload_flag
46081 reload_cmds=$lt_reload_cmds
46083 # An object symbol dumper.
46084 OBJDUMP=$lt_OBJDUMP
46086 # Method to check whether dependent libraries are shared objects.
46087 deplibs_check_method=$lt_deplibs_check_method
46089 # Command to use when deplibs_check_method == "file_magic".
46090 file_magic_cmd=$lt_file_magic_cmd
46094 AR_FLAGS=$lt_AR_FLAGS
46096 # A symbol stripping program.
46099 # Commands used to install an old-style archive.
46101 old_postinstall_cmds=$lt_old_postinstall_cmds
46102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46107 # LTCC compiler flags.
46108 LTCFLAGS=$lt_CFLAGS
46110 # Take the output of nm and produce a listing of raw symbols and C names.
46111 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46113 # Transform the output of nm in a proper C declaration.
46114 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46116 # Transform the output of nm in a C name address pair.
46117 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46119 # Transform the output of nm in a C name address pair when lib prefix is needed.
46120 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46122 # The name of the directory that contains temporary libtool files.
46125 # Shell to use when invoking shell scripts.
46128 # An echo program that does not interpret backslashes.
46131 # Used to examine libraries when file_magic_cmd begins with "file".
46132 MAGIC_CMD=$MAGIC_CMD
46134 # Must we lock files when doing compilation?
46135 need_locks=$lt_need_locks
46137 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46138 DSYMUTIL=$lt_DSYMUTIL
46140 # Tool to change global to local symbols on Mac OS X.
46143 # Tool to manipulate fat objects and archives on Mac OS X.
46146 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46149 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46150 OTOOL64=$lt_OTOOL64
46152 # Old archive suffix (normally "a").
46155 # Shared library suffix (normally ".so").
46156 shrext_cmds=$lt_shrext_cmds
46158 # The commands to extract the exported symbol list from a shared archive.
46159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46161 # Variables whose values should be saved in libtool wrapper scripts and
46162 # restored at link time.
46163 variables_saved_for_relink=$lt_variables_saved_for_relink
46165 # Do we need the "lib" prefix for modules?
46166 need_lib_prefix=$need_lib_prefix
46168 # Do we need a version for libraries?
46169 need_version=$need_version
46171 # Library versioning type.
46172 version_type=$version_type
46174 # Shared library runtime path variable.
46175 runpath_var=$runpath_var
46177 # Shared library path variable.
46178 shlibpath_var=$shlibpath_var
46180 # Is shlibpath searched before the hard-coded library search path?
46181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46183 # Format of library name prefix.
46184 libname_spec=$lt_libname_spec
46186 # List of archive names. First name is the real one, the rest are links.
46187 # The last name is the one that the linker finds with -lNAME
46188 library_names_spec=$lt_library_names_spec
46190 # The coded name of the library, if different from the real name.
46191 soname_spec=$lt_soname_spec
46193 # Command to use after installation of a shared archive.
46194 postinstall_cmds=$lt_postinstall_cmds
46196 # Command to use after uninstallation of a shared archive.
46197 postuninstall_cmds=$lt_postuninstall_cmds
46199 # Commands used to finish a libtool library installation in a directory.
46200 finish_cmds=$lt_finish_cmds
46202 # As "finish_cmds", except a single script fragment to be evaled but
46204 finish_eval=$lt_finish_eval
46206 # Whether we should hardcode library paths into libraries.
46207 hardcode_into_libs=$hardcode_into_libs
46209 # Compile-time system search path for libraries.
46210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46212 # Run-time system search path for libraries.
46213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46215 # Whether dlopen is supported.
46216 dlopen_support=$enable_dlopen
46218 # Whether dlopen of programs is supported.
46219 dlopen_self=$enable_dlopen_self
46221 # Whether dlopen of statically linked programs is supported.
46222 dlopen_self_static=$enable_dlopen_self_static
46224 # Commands to strip libraries.
46225 old_striplib=$lt_old_striplib
46226 striplib=$lt_striplib
46229 # The linker used to build libraries.
46232 # Commands used to build an old-style archive.
46233 old_archive_cmds=$lt_old_archive_cmds
46235 # A language specific compiler.
46238 # Is the compiler the GNU compiler?
46241 # Compiler flag to turn off builtin functions.
46242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46244 # How to pass a linker flag through the compiler.
46245 wl=$lt_lt_prog_compiler_wl
46247 # Additional compiler flags for building library objects.
46248 pic_flag=$lt_lt_prog_compiler_pic
46250 # Compiler flag to prevent dynamic linking.
46251 link_static_flag=$lt_lt_prog_compiler_static
46253 # Does compiler simultaneously support -c and -o options?
46254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46256 # Whether or not to add -lc for building shared libraries.
46257 build_libtool_need_lc=$archive_cmds_need_lc
46259 # Whether or not to disallow shared libs when runtime libs are static.
46260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46262 # Compiler flag to allow reflexive dlopens.
46263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46265 # Compiler flag to generate shared objects directly from archives.
46266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46268 # Whether the compiler copes with passing no objects directly.
46269 compiler_needs_object=$lt_compiler_needs_object
46271 # Create an old-style archive from a shared archive.
46272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46274 # Create a temporary old-style archive to link instead of a shared archive.
46275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46277 # Commands used to build a shared archive.
46278 archive_cmds=$lt_archive_cmds
46279 archive_expsym_cmds=$lt_archive_expsym_cmds
46281 # Commands used to build a loadable module if different from building
46282 # a shared archive.
46283 module_cmds=$lt_module_cmds
46284 module_expsym_cmds=$lt_module_expsym_cmds
46286 # Whether we are building with GNU ld or not.
46287 with_gnu_ld=$lt_with_gnu_ld
46289 # Flag that allows shared libraries with undefined symbols to be built.
46290 allow_undefined_flag=$lt_allow_undefined_flag
46292 # Flag that enforces no undefined symbols.
46293 no_undefined_flag=$lt_no_undefined_flag
46295 # Flag to hardcode \$libdir into a binary during linking.
46296 # This must work even if \$libdir does not exist
46297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46299 # If ld is used when linking, flag to hardcode \$libdir into a binary
46300 # during linking. This must work even if \$libdir does not exist.
46301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46303 # Whether we need a single "-rpath" flag with a separated argument.
46304 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46307 # DIR into the resulting binary.
46308 hardcode_direct=$hardcode_direct
46310 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46311 # DIR into the resulting binary and the resulting library dependency is
46312 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46313 # library is relocated.
46314 hardcode_direct_absolute=$hardcode_direct_absolute
46316 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46317 # into the resulting binary.
46318 hardcode_minus_L=$hardcode_minus_L
46320 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46321 # into the resulting binary.
46322 hardcode_shlibpath_var=$hardcode_shlibpath_var
46324 # Set to "yes" if building a shared library automatically hardcodes DIR
46325 # into the library and all subsequent libraries and executables linked
46327 hardcode_automatic=$hardcode_automatic
46329 # Set to yes if linker adds runtime paths of dependent libraries
46330 # to runtime path list.
46331 inherit_rpath=$inherit_rpath
46333 # Whether libtool must link a program against all its dependency libraries.
46334 link_all_deplibs=$link_all_deplibs
46336 # Fix the shell variable \$srcfile for the compiler.
46337 fix_srcfile_path=$lt_fix_srcfile_path
46339 # Set to "yes" if exported symbols are required.
46340 always_export_symbols=$always_export_symbols
46342 # The commands to list exported symbols.
46343 export_symbols_cmds=$lt_export_symbols_cmds
46345 # Symbols that should not be listed in the preloaded symbols.
46346 exclude_expsyms=$lt_exclude_expsyms
46348 # Symbols that must always be exported.
46349 include_expsyms=$lt_include_expsyms
46351 # Commands necessary for linking programs (against libraries) with templates.
46352 prelink_cmds=$lt_prelink_cmds
46354 # Specify filename containing input files.
46355 file_list_spec=$lt_file_list_spec
46357 # How to hardcode a shared library path into an executable.
46358 hardcode_action=$hardcode_action
46360 # The directories searched by this compiler when creating a shared library.
46361 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46363 # Dependencies to place before and after the objects being linked to
46364 # create a shared library.
46365 predep_objects=$lt_predep_objects
46366 postdep_objects=$lt_postdep_objects
46367 predeps=$lt_predeps
46368 postdeps=$lt_postdeps
46370 # The library search path used internally by the compiler when linking
46371 # a shared library.
46372 compiler_lib_search_path=$lt_compiler_lib_search_path
46374 # ### END LIBTOOL CONFIG
46380 cat <<\_LT_EOF >> "$cfgfile"
46381 # AIX sometimes has problems with the GCC collect2 program. For some
46382 # reason, if we set the COLLECT_NAMES environment variable, the problems
46383 # vanish in a puff of smoke.
46384 if test "X${COLLECT_NAMES+set}" != Xset; then
46386 export COLLECT_NAMES
46393 ltmain="$ac_aux_dir/ltmain.sh"
46396 # We use sed instead of cat because bash on DJGPP gets confused if
46397 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46398 # text mode, it properly converts lines to CR/LF. This bash problem
46399 # is reportedly fixed, but why not run on old versions too?
46400 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46401 || (rm -f "$cfgfile"; exit 1)
46405 cat << \_LT_EOF >> "$cfgfile"
46407 # func_dirname file append nondir_replacement
46408 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46409 # otherwise set result to NONDIR_REPLACEMENT.
46413 */*) func_dirname_result="${1%/*}${2}" ;;
46414 * ) func_dirname_result="${3}" ;;
46418 # func_basename file
46421 func_basename_result="${1##*/}"
46424 # func_dirname_and_basename file append nondir_replacement
46425 # perform func_basename and func_dirname in a single function
46427 # dirname: Compute the dirname of FILE. If nonempty,
46428 # add APPEND to the result, otherwise set result
46429 # to NONDIR_REPLACEMENT.
46430 # value returned in "$func_dirname_result"
46431 # basename: Compute filename of FILE.
46432 # value retuned in "$func_basename_result"
46433 # Implementation must be kept synchronized with func_dirname
46434 # and func_basename. For efficiency, we do not delegate to
46435 # those functions but instead duplicate the functionality here.
46436 func_dirname_and_basename ()
46439 */*) func_dirname_result="${1%/*}${2}" ;;
46440 * ) func_dirname_result="${3}" ;;
46442 func_basename_result="${1##*/}"
46445 # func_stripname prefix suffix name
46446 # strip PREFIX and SUFFIX off of NAME.
46447 # PREFIX and SUFFIX must not contain globbing or regex special
46448 # characters, hashes, percent signs, but SUFFIX may contain a leading
46449 # dot (in which case that matches only a dot).
46452 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46453 # positional parameters, so assign one to ordinary parameter first.
46454 func_stripname_result=${3}
46455 func_stripname_result=${func_stripname_result#"${1}"}
46456 func_stripname_result=${func_stripname_result%"${2}"}
46462 func_opt_split_opt=${1%%=*}
46463 func_opt_split_arg=${1#*=}
46470 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46471 *) func_lo2o_result=${1} ;;
46475 # func_xform libobj-or-source
46478 func_xform_result=${1%.*}.lo
46481 # func_arith arithmetic-term...
46484 func_arith_result=$(( $* ))
46488 # STRING may not start with a hyphen.
46491 func_len_result=${#1}
46496 *) # Bourne compatible functions.
46497 cat << \_LT_EOF >> "$cfgfile"
46499 # func_dirname file append nondir_replacement
46500 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46501 # otherwise set result to NONDIR_REPLACEMENT.
46504 # Extract subdirectory from the argument.
46505 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46506 if test "X$func_dirname_result" = "X${1}"; then
46507 func_dirname_result="${3}"
46509 func_dirname_result="$func_dirname_result${2}"
46513 # func_basename file
46516 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46520 # func_stripname prefix suffix name
46521 # strip PREFIX and SUFFIX off of NAME.
46522 # PREFIX and SUFFIX must not contain globbing or regex special
46523 # characters, hashes, percent signs, but SUFFIX may contain a leading
46524 # dot (in which case that matches only a dot).
46525 # func_strip_suffix prefix name
46529 .*) func_stripname_result=`$ECHO "X${3}" \
46530 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46531 *) func_stripname_result=`$ECHO "X${3}" \
46532 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46537 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46538 my_sed_long_arg='1s/^-[^=]*=//'
46543 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46544 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46550 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46553 # func_xform libobj-or-source
46556 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46559 # func_arith arithmetic-term...
46562 func_arith_result=`expr "$@"`
46566 # STRING may not start with a hyphen.
46569 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46575 case $lt_shell_append in
46577 cat << \_LT_EOF >> "$cfgfile"
46579 # func_append var value
46580 # Append VALUE to the end of shell variable VAR.
46588 cat << \_LT_EOF >> "$cfgfile"
46590 # func_append var value
46591 # Append VALUE to the end of shell variable VAR.
46602 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46603 || (rm -f "$cfgfile"; exit 1)
46605 mv -f "$cfgfile" "$ofile" ||
46606 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46610 cat <<_LT_EOF >> "$ofile"
46612 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46614 # The linker used to build libraries.
46617 # Commands used to build an old-style archive.
46618 old_archive_cmds=$lt_old_archive_cmds_CXX
46620 # A language specific compiler.
46621 CC=$lt_compiler_CXX
46623 # Is the compiler the GNU compiler?
46626 # Compiler flag to turn off builtin functions.
46627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46629 # How to pass a linker flag through the compiler.
46630 wl=$lt_lt_prog_compiler_wl_CXX
46632 # Additional compiler flags for building library objects.
46633 pic_flag=$lt_lt_prog_compiler_pic_CXX
46635 # Compiler flag to prevent dynamic linking.
46636 link_static_flag=$lt_lt_prog_compiler_static_CXX
46638 # Does compiler simultaneously support -c and -o options?
46639 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46641 # Whether or not to add -lc for building shared libraries.
46642 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46644 # Whether or not to disallow shared libs when runtime libs are static.
46645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46647 # Compiler flag to allow reflexive dlopens.
46648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46650 # Compiler flag to generate shared objects directly from archives.
46651 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46653 # Whether the compiler copes with passing no objects directly.
46654 compiler_needs_object=$lt_compiler_needs_object_CXX
46656 # Create an old-style archive from a shared archive.
46657 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46659 # Create a temporary old-style archive to link instead of a shared archive.
46660 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46662 # Commands used to build a shared archive.
46663 archive_cmds=$lt_archive_cmds_CXX
46664 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46666 # Commands used to build a loadable module if different from building
46667 # a shared archive.
46668 module_cmds=$lt_module_cmds_CXX
46669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46671 # Whether we are building with GNU ld or not.
46672 with_gnu_ld=$lt_with_gnu_ld_CXX
46674 # Flag that allows shared libraries with undefined symbols to be built.
46675 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46677 # Flag that enforces no undefined symbols.
46678 no_undefined_flag=$lt_no_undefined_flag_CXX
46680 # Flag to hardcode \$libdir into a binary during linking.
46681 # This must work even if \$libdir does not exist
46682 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46684 # If ld is used when linking, flag to hardcode \$libdir into a binary
46685 # during linking. This must work even if \$libdir does not exist.
46686 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46688 # Whether we need a single "-rpath" flag with a separated argument.
46689 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46691 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46692 # DIR into the resulting binary.
46693 hardcode_direct=$hardcode_direct_CXX
46695 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46696 # DIR into the resulting binary and the resulting library dependency is
46697 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46698 # library is relocated.
46699 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46701 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46702 # into the resulting binary.
46703 hardcode_minus_L=$hardcode_minus_L_CXX
46705 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46706 # into the resulting binary.
46707 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46709 # Set to "yes" if building a shared library automatically hardcodes DIR
46710 # into the library and all subsequent libraries and executables linked
46712 hardcode_automatic=$hardcode_automatic_CXX
46714 # Set to yes if linker adds runtime paths of dependent libraries
46715 # to runtime path list.
46716 inherit_rpath=$inherit_rpath_CXX
46718 # Whether libtool must link a program against all its dependency libraries.
46719 link_all_deplibs=$link_all_deplibs_CXX
46721 # Fix the shell variable \$srcfile for the compiler.
46722 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46724 # Set to "yes" if exported symbols are required.
46725 always_export_symbols=$always_export_symbols_CXX
46727 # The commands to list exported symbols.
46728 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46730 # Symbols that should not be listed in the preloaded symbols.
46731 exclude_expsyms=$lt_exclude_expsyms_CXX
46733 # Symbols that must always be exported.
46734 include_expsyms=$lt_include_expsyms_CXX
46736 # Commands necessary for linking programs (against libraries) with templates.
46737 prelink_cmds=$lt_prelink_cmds_CXX
46739 # Specify filename containing input files.
46740 file_list_spec=$lt_file_list_spec_CXX
46742 # How to hardcode a shared library path into an executable.
46743 hardcode_action=$hardcode_action_CXX
46745 # The directories searched by this compiler when creating a shared library.
46746 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46748 # Dependencies to place before and after the objects being linked to
46749 # create a shared library.
46750 predep_objects=$lt_predep_objects_CXX
46751 postdep_objects=$lt_postdep_objects_CXX
46752 predeps=$lt_predeps_CXX
46753 postdeps=$lt_postdeps_CXX
46755 # The library search path used internally by the compiler when linking
46756 # a shared library.
46757 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46759 # ### END LIBTOOL TAG CONFIG: CXX
46764 for ac_file in $CONFIG_FILES; do
46765 # Support "outfile[:infile[:infile...]]"
46767 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46769 # PO directories have a Makefile.in generated from Makefile.in.in.
46770 case "$ac_file" in */Makefile.in)
46771 # Adjust a relative srcdir.
46772 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46773 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46774 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46775 # In autoconf-2.13 it is called $ac_given_srcdir.
46776 # In autoconf-2.50 it is called $srcdir.
46777 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46778 case "$ac_given_srcdir" in
46779 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46780 /*) top_srcdir="$ac_given_srcdir" ;;
46781 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46783 # Treat a directory as a PO directory if and only if it has a
46784 # POTFILES.in file. This allows packages to have multiple PO
46785 # directories under different names or in different locations.
46786 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46787 rm -f "$ac_dir/POTFILES"
46788 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46789 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46790 POMAKEFILEDEPS="POTFILES.in"
46791 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46792 # on $ac_dir but don't depend on user-specified configuration
46794 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46795 # The LINGUAS file contains the set of available languages.
46796 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46797 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46799 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46800 # Hide the ALL_LINGUAS assigment from automake.
46801 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46802 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46804 # The set of available languages was given in configure.in.
46805 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46808 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46809 # Compute UPDATEPOFILES
46810 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46811 # Compute DUMMYPOFILES
46812 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46814 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46815 case "$ac_given_srcdir" in
46817 *) srcdirpre='$(srcdir)/' ;;
46823 for lang in $ALL_LINGUAS; do
46824 POFILES="$POFILES $srcdirpre$lang.po"
46825 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46826 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46827 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46829 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46830 # environment variable.
46832 if test -n "$ALL_LINGUAS"; then
46833 for presentlang in $ALL_LINGUAS; do
46835 if test "%UNSET%" != "$LINGUAS"; then
46836 desiredlanguages="$LINGUAS"
46838 desiredlanguages="$ALL_LINGUAS"
46840 for desiredlang in $desiredlanguages; do
46841 # Use the presentlang catalog if desiredlang is
46842 # a. equal to presentlang, or
46843 # b. a variant of presentlang (because in this case,
46844 # presentlang can be used as a fallback for messages
46845 # which are not translated in the desiredlang catalog).
46846 case "$desiredlang" in
46847 "$presentlang"*) useit=yes;;
46850 if test $useit = yes; then
46851 INST_LINGUAS="$INST_LINGUAS $presentlang"
46856 if test -n "$INST_LINGUAS"; then
46857 for lang in $INST_LINGUAS; do
46858 CATALOGS="$CATALOGS $lang.gmo"
46861 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46862 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"
46863 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46864 if test -f "$f"; then
46866 *.orig | *.bak | *~) ;;
46867 *) cat "$f" >> "$ac_dir/Makefile" ;;
46882 { (exit 0); exit 0; }
46884 chmod +x $CONFIG_STATUS
46885 ac_clean_files=$ac_clean_files_save
46888 # configure is writing to config.log, and then calls config.status.
46889 # config.status does its own redirection, appending to config.log.
46890 # Unfortunately, on DOS this fails, as config.log is still kept open
46891 # by configure, so config.status won't be able to write to it; its
46892 # output is simply discarded. So we exec the FD to /dev/null,
46893 # effectively closing config.log, so it can be properly (re)opened and
46894 # appended to by config.status. When coming back to configure, we
46895 # need to make the FD available again.
46896 if test "$no_create" != yes; then
46898 ac_config_status_args=
46899 test "$silent" = yes &&
46900 ac_config_status_args="$ac_config_status_args --quiet"
46902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46905 # would make configure fail if this is the last instruction.
46906 $ac_cs_success || { (exit 1); exit 1; }
46910 if test "${support_bat}" = "yes" ; then
46911 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46912 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46913 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46914 { (exit 1); exit 1; }; }
46919 if test "x$QMAKEQT4" != "xnone"; then
46924 echo "Creating bat Makefile"
46928 ${MAKE:-make} clean
46932 if test X"$GCC" = "Xyes" ; then
46933 echo "Doing make of dependencies"
46934 ${MAKE:-make} depend
46938 chmod 755 install_conf_file build-depkgs-qt-console
46942 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46943 chmod 755 dvd-handler dvd-simulator breload make_catalog_backup.pl
46944 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46948 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
46949 chmod 755 $c/update_postgresql_tables_10_to_11
46953 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
46954 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
46956 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
46957 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
46959 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
46960 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
46962 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
46963 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
46965 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
46966 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
46968 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46969 chmod 755 $c/sqlite
46972 chmod 755 src/win32/build-depkgs-mingw32
46974 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46975 largefile_support="yes"
46978 if test X"$GCC" = "Xyes" ; then
46979 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46980 if test "x${CCVERSION}" = "x" ; then
46981 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46983 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46984 if test x"${CXXVERSION}" = x ; then
46985 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46989 # clean up any old junk
46993 ${MAKE:-make} clean
46995 if test "x${db_type}" = "xInternal" ; then
46998 echo "You have not specified either --enable-client-only or one of the"
46999 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
47000 echo " This is not permitted. Please reconfigure."
47002 echo "Aborting the configuration ..."
47009 Configuration on `date`:
47011 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47012 Bacula version: ${BACULA} ${VERSION} (${DATE})
47013 Source code location: ${srcdir}
47014 Install binaries: ${sbindir}
47015 Install libraries: ${libdir}
47016 Install config files: ${sysconfdir}
47017 Scripts directory: ${scriptdir}
47018 Archive directory: ${archivedir}
47019 Working directory: ${working_dir}
47020 PID directory: ${piddir}
47021 Subsys directory: ${subsysdir}
47022 Man directory: ${mandir}
47023 Data directory: ${datarootdir}
47024 Plugin directory: ${plugindir}
47025 C Compiler: ${CC} ${CCVERSION}
47026 C++ Compiler: ${CXX} ${CXXVERSION}
47027 Compiler flags: ${WCFLAGS} ${CFLAGS}
47028 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47030 Statically Linked Tools: ${support_static_tools}
47031 Statically Linked FD: ${support_static_fd}
47032 Statically Linked SD: ${support_static_sd}
47033 Statically Linked DIR: ${support_static_dir}
47034 Statically Linked CONS: ${support_static_cons}
47035 Database type: ${db_type}
47036 Database port: ${db_port}
47037 Database lib: ${DB_LIBS}
47038 Database name: ${db_name}
47039 Database user: ${db_user}
47041 Job Output Email: ${job_email}
47042 Traceback Email: ${dump_email}
47043 SMTP Host Address: ${smtp_host}
47045 Director Port: ${dir_port}
47046 File daemon Port: ${fd_port}
47047 Storage daemon Port: ${sd_port}
47049 Director User: ${dir_user}
47050 Director Group: ${dir_group}
47051 Storage Daemon User: ${sd_user}
47052 Storage DaemonGroup: ${sd_group}
47053 File Daemon User: ${fd_user}
47054 File Daemon Group: ${fd_group}
47056 SQL binaries Directory ${SQL_BINDIR}
47058 Large file support: $largefile_support
47059 Bacula conio support: ${got_conio} ${CONS_LIBS}
47060 readline support: ${got_readline} ${PRTREADLINE_SRC}
47061 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47062 TLS support: ${support_tls}
47063 Encryption support: ${support_crypto}
47064 ZLIB support: ${have_zlib}
47065 enable-smartalloc: ${support_smartalloc}
47066 enable-lockmgr: ${support_lockmgr}
47067 bat support: ${support_bat} ${QWT_LDFLAGS}
47068 enable-gnome: ${support_gnome} ${gnome_version}
47069 enable-bwx-console: ${support_wx_console} ${wx_version}
47070 enable-tray-monitor: ${support_tray_monitor}
47071 client-only: ${build_client_only}
47072 build-dird: ${build_dird}
47073 build-stored: ${build_stored}
47074 Plugin support: ${have_plugins}
47075 ACL support: ${have_acl}
47076 XATTR support: ${have_xattr}
47077 Python support: ${support_python} ${PYTHON_LIBS}
47078 Batch insert enabled: ${support_batch_insert}
47082 # create a small shell script useful for support with
47083 # configure options and config.out info
47084 cat > scripts/bacula_config << EOF
47087 $ $0 $ac_configure_args
47089 cat config.out >> scripts/bacula_config
47090 echo __EOC__ >> scripts/bacula_config
47091 chmod 755 scripts/bacula_config
47095 # Display a warning message if postgresql client lib is <= 8.1
47096 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47097 -a x$support_batch_insert = xyes
47099 echo "WARNING: Your PostgreSQL client library is too old to detect "
47100 echo " if it was compiled with --enable-thread-safety, consider to"
47101 echo " upgrade it in order to avoid problems with Batch insert mode"