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 unsigned long int req = 0;
32711 rm -f conftest.$ac_objext
32712 if { (ac_try="$ac_compile"
32713 case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_compile") 2>conftest.er1
32720 grep -v '^ *+' conftest.er1 >conftest.err
32722 cat conftest.err >&5
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); } && {
32725 test -z "$ac_cxx_werror_flag" ||
32726 test ! -s conftest.err
32727 } && test -s conftest.$ac_objext; then
32729 ba_cv_header_ioctl_req_t=yes
32732 echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32736 ba_cv_header_ioct_req_t_t=no
32741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32745 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32746 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32747 test $ba_cv_header_ioctl_req_t = yes &&
32748 cat >>confdefs.h <<\_ACEOF
32749 #define HAVE_IOCTL_ULINT_REQUEST 1
32755 ac_cpp='$CXXCPP $CPPFLAGS'
32756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32760 { echo "$as_me:$LINENO: checking for typeof" >&5
32761 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32762 if test "${ba_cv_have_typeof+set}" = set; then
32763 echo $ECHO_N "(cached) $ECHO_C" >&6
32766 if test "$cross_compiling" = yes; then
32768 ba_cv_have_typeof=no
32772 cat >conftest.$ac_ext <<_ACEOF
32775 cat confdefs.h >>conftest.$ac_ext
32776 cat >>conftest.$ac_ext <<_ACEOF
32777 /* end confdefs.h. */
32779 main(){char *a = 0; a = (typeof a)a;}
32782 rm -f conftest$ac_exeext
32783 if { (ac_try="$ac_link"
32784 case "(($ac_try" in
32785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786 *) ac_try_echo=$ac_try;;
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789 (eval "$ac_link") 2>&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32793 { (case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_try") 2>&5
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; }; then
32803 ba_cv_have_typeof=yes
32806 echo "$as_me: program exited with status $ac_status" >&5
32807 echo "$as_me: failed program was:" >&5
32808 sed 's/^/| /' conftest.$ac_ext >&5
32810 ( exit $ac_status )
32812 ba_cv_have_typeof=no
32815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32822 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32823 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32824 test $ba_cv_have_typeof = yes &&
32825 cat >>confdefs.h <<\_ACEOF
32826 #define HAVE_TYPEOF 1
32830 ac_cpp='$CXXCPP $CPPFLAGS'
32831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32836 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32837 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32838 if test "${ac_cv_c_const+set}" = set; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32841 cat >conftest.$ac_ext <<_ACEOF
32844 cat confdefs.h >>conftest.$ac_ext
32845 cat >>conftest.$ac_ext <<_ACEOF
32846 /* end confdefs.h. */
32851 /* FIXME: Include the comments suggested by Paul. */
32852 #ifndef __cplusplus
32853 /* Ultrix mips cc rejects this. */
32854 typedef int charset[2];
32856 /* SunOS 4.1.1 cc rejects this. */
32857 char const *const *pcpcc;
32859 /* NEC SVR4.0.2 mips cc rejects this. */
32860 struct point {int x, y;};
32861 static struct point const zero = {0,0};
32862 /* AIX XL C 1.02.0.0 rejects this.
32863 It does not let you subtract one const X* pointer from another in
32864 an arm of an if-expression whose if-part is not a constant
32866 const char *g = "string";
32867 pcpcc = &g + (g ? g-g : 0);
32868 /* HPUX 7.0 cc rejects these. */
32870 ppc = (char**) pcpcc;
32871 pcpcc = (char const *const *) ppc;
32872 { /* SCO 3.2v4 cc rejects this. */
32874 char const *s = 0 ? (char *) 0 : (char const *) 0;
32879 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32880 int x[] = {25, 17};
32881 const int *foo = &x[0];
32884 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32885 typedef const int *iptr;
32889 { /* AIX XL C 1.02.0.0 rejects this saying
32890 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32891 struct s { int j; const int *ap[3]; };
32892 struct s *b; b->j = 5;
32894 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32895 const int foo = 10;
32896 if (!foo) return 0;
32898 return !cs[0] && !zero.x;
32905 rm -f conftest.$ac_objext
32906 if { (ac_try="$ac_compile"
32907 case "(($ac_try" in
32908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32909 *) ac_try_echo=$ac_try;;
32911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32912 (eval "$ac_compile") 2>conftest.er1
32914 grep -v '^ *+' conftest.er1 >conftest.err
32916 cat conftest.err >&5
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); } && {
32919 test -z "$ac_cxx_werror_flag" ||
32920 test ! -s conftest.err
32921 } && test -s conftest.$ac_objext; then
32924 echo "$as_me: failed program was:" >&5
32925 sed 's/^/| /' conftest.$ac_ext >&5
32930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32932 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32933 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32934 if test $ac_cv_c_const = no; then
32936 cat >>confdefs.h <<\_ACEOF
32943 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32944 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32946 # The order of these tests is important.
32947 cat >conftest.$ac_ext <<_ACEOF
32950 cat confdefs.h >>conftest.$ac_ext
32951 cat >>conftest.$ac_ext <<_ACEOF
32952 /* end confdefs.h. */
32954 #include <sys/statvfs.h>
32955 #include <sys/fstyp.h>
32958 if { (ac_try="$ac_cpp conftest.$ac_ext"
32959 case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32966 grep -v '^ *+' conftest.er1 >conftest.err
32968 cat conftest.err >&5
32969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970 (exit $ac_status); } >/dev/null && {
32971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
32972 test ! -s conftest.err
32974 cat >>confdefs.h <<\_ACEOF
32975 #define FSTYPE_STATVFS 1
32980 echo "$as_me: failed program was:" >&5
32981 sed 's/^/| /' conftest.$ac_ext >&5
32986 rm -f conftest.err conftest.$ac_ext
32987 if test $fstype = no; then
32988 cat >conftest.$ac_ext <<_ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h. */
32995 #include <sys/statfs.h>
32996 #include <sys/fstyp.h>
32999 if { (ac_try="$ac_cpp conftest.$ac_ext"
33000 case "(($ac_try" in
33001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002 *) ac_try_echo=$ac_try;;
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33007 grep -v '^ *+' conftest.er1 >conftest.err
33009 cat conftest.err >&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } >/dev/null && {
33012 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33013 test ! -s conftest.err
33015 cat >>confdefs.h <<\_ACEOF
33016 #define FSTYPE_USG_STATFS 1
33021 echo "$as_me: failed program was:" >&5
33022 sed 's/^/| /' conftest.$ac_ext >&5
33027 rm -f conftest.err conftest.$ac_ext
33029 if test $fstype = no; then
33030 cat >conftest.$ac_ext <<_ACEOF
33033 cat confdefs.h >>conftest.$ac_ext
33034 cat >>conftest.$ac_ext <<_ACEOF
33035 /* end confdefs.h. */
33037 #include <sys/statfs.h>
33038 #include <sys/vmount.h>
33041 if { (ac_try="$ac_cpp conftest.$ac_ext"
33042 case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33049 grep -v '^ *+' conftest.er1 >conftest.err
33051 cat conftest.err >&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); } >/dev/null && {
33054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33055 test ! -s conftest.err
33057 cat >>confdefs.h <<\_ACEOF
33058 #define FSTYPE_AIX_STATFS 1
33063 echo "$as_me: failed program was:" >&5
33064 sed 's/^/| /' conftest.$ac_ext >&5
33069 rm -f conftest.err conftest.$ac_ext
33071 if test $fstype = no; then
33072 cat >conftest.$ac_ext <<_ACEOF
33075 cat confdefs.h >>conftest.$ac_ext
33076 cat >>conftest.$ac_ext <<_ACEOF
33077 /* end confdefs.h. */
33079 #include <mntent.h>
33082 if { (ac_try="$ac_cpp conftest.$ac_ext"
33083 case "(($ac_try" in
33084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085 *) ac_try_echo=$ac_try;;
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33090 grep -v '^ *+' conftest.er1 >conftest.err
33092 cat conftest.err >&5
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); } >/dev/null && {
33095 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33096 test ! -s conftest.err
33098 cat >>confdefs.h <<\_ACEOF
33099 #define FSTYPE_MNTENT 1
33104 echo "$as_me: failed program was:" >&5
33105 sed 's/^/| /' conftest.$ac_ext >&5
33110 rm -f conftest.err conftest.$ac_ext
33112 if test $fstype = no; then
33113 cat >conftest.$ac_ext <<_ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h. */
33119 #include <sys/mount.h>
33122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33123 $EGREP "f_type;" >/dev/null 2>&1; then
33124 cat >>confdefs.h <<\_ACEOF
33125 #define FSTYPE_STATFS 1
33132 if test $fstype = no; then
33133 cat >conftest.$ac_ext <<_ACEOF
33136 cat confdefs.h >>conftest.$ac_ext
33137 cat >>conftest.$ac_ext <<_ACEOF
33138 /* end confdefs.h. */
33140 #include <sys/mount.h>
33141 #include <sys/fs_types.h>
33144 if { (ac_try="$ac_cpp conftest.$ac_ext"
33145 case "(($ac_try" in
33146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147 *) ac_try_echo=$ac_try;;
33149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33152 grep -v '^ *+' conftest.er1 >conftest.err
33154 cat conftest.err >&5
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } >/dev/null && {
33157 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33158 test ! -s conftest.err
33160 cat >>confdefs.h <<\_ACEOF
33161 #define FSTYPE_GETMNT 1
33166 echo "$as_me: failed program was:" >&5
33167 sed 's/^/| /' conftest.$ac_ext >&5
33172 rm -f conftest.err conftest.$ac_ext
33174 { echo "$as_me:$LINENO: result: $fstype" >&5
33175 echo "${ECHO_T}$fstype" >&6; }
33177 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33178 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33179 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33180 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33181 echo $ECHO_N "(cached) $ECHO_C" >&6
33183 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33184 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33186 # Is the header compilable?
33187 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33188 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33189 cat >conftest.$ac_ext <<_ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h. */
33195 $ac_includes_default
33196 #include <sys/statvfs.h>
33198 rm -f conftest.$ac_objext
33199 if { (ac_try="$ac_compile"
33200 case "(($ac_try" in
33201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202 *) ac_try_echo=$ac_try;;
33204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205 (eval "$ac_compile") 2>conftest.er1
33207 grep -v '^ *+' conftest.er1 >conftest.err
33209 cat conftest.err >&5
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); } && {
33212 test -z "$ac_cxx_werror_flag" ||
33213 test ! -s conftest.err
33214 } && test -s conftest.$ac_objext; then
33215 ac_header_compiler=yes
33217 echo "$as_me: failed program was:" >&5
33218 sed 's/^/| /' conftest.$ac_ext >&5
33220 ac_header_compiler=no
33223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33225 echo "${ECHO_T}$ac_header_compiler" >&6; }
33227 # Is the header present?
33228 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33229 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33230 cat >conftest.$ac_ext <<_ACEOF
33233 cat confdefs.h >>conftest.$ac_ext
33234 cat >>conftest.$ac_ext <<_ACEOF
33235 /* end confdefs.h. */
33236 #include <sys/statvfs.h>
33238 if { (ac_try="$ac_cpp conftest.$ac_ext"
33239 case "(($ac_try" in
33240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241 *) ac_try_echo=$ac_try;;
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33246 grep -v '^ *+' conftest.er1 >conftest.err
33248 cat conftest.err >&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); } >/dev/null && {
33251 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33252 test ! -s conftest.err
33254 ac_header_preproc=yes
33256 echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33259 ac_header_preproc=no
33262 rm -f conftest.err conftest.$ac_ext
33263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33264 echo "${ECHO_T}$ac_header_preproc" >&6; }
33266 # So? What about this header?
33267 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
33269 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33270 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33271 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33272 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33273 ac_header_preproc=yes
33276 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33277 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33278 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33279 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33280 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33281 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33282 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33283 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33284 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33285 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33286 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33287 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33291 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33292 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33293 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33298 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33299 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33302 if test $ac_cv_header_sys_statvfs_h = yes; then
33304 cat >>confdefs.h <<\_ACEOF
33305 #define HAVE_SYS_STATVFS_H 1
33312 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33313 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33314 if test "${ac_cv_type_signal+set}" = set; then
33315 echo $ECHO_N "(cached) $ECHO_C" >&6
33317 cat >conftest.$ac_ext <<_ACEOF
33320 cat confdefs.h >>conftest.$ac_ext
33321 cat >>conftest.$ac_ext <<_ACEOF
33322 /* end confdefs.h. */
33323 #include <sys/types.h>
33324 #include <signal.h>
33329 return *(signal (0, 0)) (0) == 1;
33334 rm -f conftest.$ac_objext
33335 if { (ac_try="$ac_compile"
33336 case "(($ac_try" in
33337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338 *) ac_try_echo=$ac_try;;
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341 (eval "$ac_compile") 2>conftest.er1
33343 grep -v '^ *+' conftest.er1 >conftest.err
33345 cat conftest.err >&5
33346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347 (exit $ac_status); } && {
33348 test -z "$ac_cxx_werror_flag" ||
33349 test ! -s conftest.err
33350 } && test -s conftest.$ac_objext; then
33351 ac_cv_type_signal=int
33353 echo "$as_me: failed program was:" >&5
33354 sed 's/^/| /' conftest.$ac_ext >&5
33356 ac_cv_type_signal=void
33359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33361 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33362 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33364 cat >>confdefs.h <<_ACEOF
33365 #define RETSIGTYPE $ac_cv_type_signal
33370 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33371 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33372 if test "${bash_cv_signal_vintage+set}" = set; then
33373 echo $ECHO_N "(cached) $ECHO_C" >&6
33376 cat >conftest.$ac_ext <<_ACEOF
33379 cat confdefs.h >>conftest.$ac_ext
33380 cat >>conftest.$ac_ext <<_ACEOF
33381 /* end confdefs.h. */
33382 #include <signal.h>
33388 struct sigaction sa;
33389 sigemptyset(&ss); sigsuspend(&ss);
33390 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33391 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33397 rm -f conftest.$ac_objext conftest$ac_exeext
33398 if { (ac_try="$ac_link"
33399 case "(($ac_try" in
33400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401 *) ac_try_echo=$ac_try;;
33403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33404 (eval "$ac_link") 2>conftest.er1
33406 grep -v '^ *+' conftest.er1 >conftest.err
33408 cat conftest.err >&5
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); } && {
33411 test -z "$ac_cxx_werror_flag" ||
33412 test ! -s conftest.err
33413 } && test -s conftest$ac_exeext &&
33414 $as_test_x conftest$ac_exeext; then
33415 bash_cv_signal_vintage="posix"
33417 echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33421 cat >conftest.$ac_ext <<_ACEOF
33424 cat confdefs.h >>conftest.$ac_ext
33425 cat >>conftest.$ac_ext <<_ACEOF
33426 /* end confdefs.h. */
33427 #include <signal.h>
33432 int mask = sigmask(SIGINT);
33433 sigsetmask(mask); sigblock(mask); sigpause(mask);
33439 rm -f conftest.$ac_objext conftest$ac_exeext
33440 if { (ac_try="$ac_link"
33441 case "(($ac_try" in
33442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33443 *) ac_try_echo=$ac_try;;
33445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33446 (eval "$ac_link") 2>conftest.er1
33448 grep -v '^ *+' conftest.er1 >conftest.err
33450 cat conftest.err >&5
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); } && {
33453 test -z "$ac_cxx_werror_flag" ||
33454 test ! -s conftest.err
33455 } && test -s conftest$ac_exeext &&
33456 $as_test_x conftest$ac_exeext; then
33457 bash_cv_signal_vintage="4.2bsd"
33459 echo "$as_me: failed program was:" >&5
33460 sed 's/^/| /' conftest.$ac_ext >&5
33463 cat >conftest.$ac_ext <<_ACEOF
33466 cat confdefs.h >>conftest.$ac_ext
33467 cat >>conftest.$ac_ext <<_ACEOF
33468 /* end confdefs.h. */
33470 #include <signal.h>
33471 RETSIGTYPE foo() { }
33476 int mask = sigmask(SIGINT);
33477 sigset(SIGINT, foo); sigrelse(SIGINT);
33478 sighold(SIGINT); sigpause(SIGINT);
33484 rm -f conftest.$ac_objext conftest$ac_exeext
33485 if { (ac_try="$ac_link"
33486 case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_link") 2>conftest.er1
33493 grep -v '^ *+' conftest.er1 >conftest.err
33495 cat conftest.err >&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); } && {
33498 test -z "$ac_cxx_werror_flag" ||
33499 test ! -s conftest.err
33500 } && test -s conftest$ac_exeext &&
33501 $as_test_x conftest$ac_exeext; then
33502 bash_cv_signal_vintage="svr3"
33504 echo "$as_me: failed program was:" >&5
33505 sed 's/^/| /' conftest.$ac_ext >&5
33507 bash_cv_signal_vintage="v7"
33511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33512 conftest$ac_exeext conftest.$ac_ext
33516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33517 conftest$ac_exeext conftest.$ac_ext
33521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33522 conftest$ac_exeext conftest.$ac_ext
33526 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33527 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33528 if test "$bash_cv_signal_vintage" = "posix"; then
33529 cat >>confdefs.h <<\_ACEOF
33530 #define HAVE_POSIX_SIGNALS 1
33533 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33534 cat >>confdefs.h <<\_ACEOF
33535 #define HAVE_BSD_SIGNALS 1
33538 elif test "$bash_cv_signal_vintage" = "svr3"; then
33539 cat >>confdefs.h <<\_ACEOF
33540 #define HAVE_USG_SIGHOLD 1
33545 { echo "$as_me:$LINENO: checking for mode_t" >&5
33546 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33547 if test "${ac_cv_type_mode_t+set}" = set; then
33548 echo $ECHO_N "(cached) $ECHO_C" >&6
33550 cat >conftest.$ac_ext <<_ACEOF
33553 cat confdefs.h >>conftest.$ac_ext
33554 cat >>conftest.$ac_ext <<_ACEOF
33555 /* end confdefs.h. */
33556 $ac_includes_default
33557 typedef mode_t ac__type_new_;
33561 if ((ac__type_new_ *) 0)
33563 if (sizeof (ac__type_new_))
33569 rm -f conftest.$ac_objext
33570 if { (ac_try="$ac_compile"
33571 case "(($ac_try" in
33572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33573 *) ac_try_echo=$ac_try;;
33575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33576 (eval "$ac_compile") 2>conftest.er1
33578 grep -v '^ *+' conftest.er1 >conftest.err
33580 cat conftest.err >&5
33581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33582 (exit $ac_status); } && {
33583 test -z "$ac_cxx_werror_flag" ||
33584 test ! -s conftest.err
33585 } && test -s conftest.$ac_objext; then
33586 ac_cv_type_mode_t=yes
33588 echo "$as_me: failed program was:" >&5
33589 sed 's/^/| /' conftest.$ac_ext >&5
33591 ac_cv_type_mode_t=no
33594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33596 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33597 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33598 if test $ac_cv_type_mode_t = yes; then
33602 cat >>confdefs.h <<_ACEOF
33608 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33609 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33610 if test "${ac_cv_type_uid_t+set}" = set; then
33611 echo $ECHO_N "(cached) $ECHO_C" >&6
33613 cat >conftest.$ac_ext <<_ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h. */
33619 #include <sys/types.h>
33622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33623 $EGREP "uid_t" >/dev/null 2>&1; then
33624 ac_cv_type_uid_t=yes
33626 ac_cv_type_uid_t=no
33631 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33632 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33633 if test $ac_cv_type_uid_t = no; then
33635 cat >>confdefs.h <<\_ACEOF
33640 cat >>confdefs.h <<\_ACEOF
33646 { echo "$as_me:$LINENO: checking for size_t" >&5
33647 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33648 if test "${ac_cv_type_size_t+set}" = set; then
33649 echo $ECHO_N "(cached) $ECHO_C" >&6
33651 cat >conftest.$ac_ext <<_ACEOF
33654 cat confdefs.h >>conftest.$ac_ext
33655 cat >>conftest.$ac_ext <<_ACEOF
33656 /* end confdefs.h. */
33657 $ac_includes_default
33658 typedef size_t ac__type_new_;
33662 if ((ac__type_new_ *) 0)
33664 if (sizeof (ac__type_new_))
33670 rm -f conftest.$ac_objext
33671 if { (ac_try="$ac_compile"
33672 case "(($ac_try" in
33673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33674 *) ac_try_echo=$ac_try;;
33676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33677 (eval "$ac_compile") 2>conftest.er1
33679 grep -v '^ *+' conftest.er1 >conftest.err
33681 cat conftest.err >&5
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); } && {
33684 test -z "$ac_cxx_werror_flag" ||
33685 test ! -s conftest.err
33686 } && test -s conftest.$ac_objext; then
33687 ac_cv_type_size_t=yes
33689 echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33692 ac_cv_type_size_t=no
33695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33697 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33699 if test $ac_cv_type_size_t = yes; then
33703 cat >>confdefs.h <<_ACEOF
33704 #define size_t unsigned int
33709 { echo "$as_me:$LINENO: checking for pid_t" >&5
33710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33711 if test "${ac_cv_type_pid_t+set}" = set; then
33712 echo $ECHO_N "(cached) $ECHO_C" >&6
33714 cat >conftest.$ac_ext <<_ACEOF
33717 cat confdefs.h >>conftest.$ac_ext
33718 cat >>conftest.$ac_ext <<_ACEOF
33719 /* end confdefs.h. */
33720 $ac_includes_default
33721 typedef pid_t ac__type_new_;
33725 if ((ac__type_new_ *) 0)
33727 if (sizeof (ac__type_new_))
33733 rm -f conftest.$ac_objext
33734 if { (ac_try="$ac_compile"
33735 case "(($ac_try" in
33736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33737 *) ac_try_echo=$ac_try;;
33739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33740 (eval "$ac_compile") 2>conftest.er1
33742 grep -v '^ *+' conftest.er1 >conftest.err
33744 cat conftest.err >&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } && {
33747 test -z "$ac_cxx_werror_flag" ||
33748 test ! -s conftest.err
33749 } && test -s conftest.$ac_objext; then
33750 ac_cv_type_pid_t=yes
33752 echo "$as_me: failed program was:" >&5
33753 sed 's/^/| /' conftest.$ac_ext >&5
33755 ac_cv_type_pid_t=no
33758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33760 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33761 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33762 if test $ac_cv_type_pid_t = yes; then
33766 cat >>confdefs.h <<_ACEOF
33772 { echo "$as_me:$LINENO: checking for off_t" >&5
33773 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33774 if test "${ac_cv_type_off_t+set}" = set; then
33775 echo $ECHO_N "(cached) $ECHO_C" >&6
33777 cat >conftest.$ac_ext <<_ACEOF
33780 cat confdefs.h >>conftest.$ac_ext
33781 cat >>conftest.$ac_ext <<_ACEOF
33782 /* end confdefs.h. */
33783 $ac_includes_default
33784 typedef off_t ac__type_new_;
33788 if ((ac__type_new_ *) 0)
33790 if (sizeof (ac__type_new_))
33796 rm -f conftest.$ac_objext
33797 if { (ac_try="$ac_compile"
33798 case "(($ac_try" in
33799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800 *) ac_try_echo=$ac_try;;
33802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33803 (eval "$ac_compile") 2>conftest.er1
33805 grep -v '^ *+' conftest.er1 >conftest.err
33807 cat conftest.err >&5
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); } && {
33810 test -z "$ac_cxx_werror_flag" ||
33811 test ! -s conftest.err
33812 } && test -s conftest.$ac_objext; then
33813 ac_cv_type_off_t=yes
33815 echo "$as_me: failed program was:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33818 ac_cv_type_off_t=no
33821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33823 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33824 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33825 if test $ac_cv_type_off_t = yes; then
33829 cat >>confdefs.h <<_ACEOF
33830 #define off_t long int
33836 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33837 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33838 if test "${ac_cv_type_intptr_t+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33841 cat >conftest.$ac_ext <<_ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h. */
33847 $ac_includes_default
33848 typedef intptr_t ac__type_new_;
33852 if ((ac__type_new_ *) 0)
33854 if (sizeof (ac__type_new_))
33860 rm -f conftest.$ac_objext
33861 if { (ac_try="$ac_compile"
33862 case "(($ac_try" in
33863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33864 *) ac_try_echo=$ac_try;;
33866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33867 (eval "$ac_compile") 2>conftest.er1
33869 grep -v '^ *+' conftest.er1 >conftest.err
33871 cat conftest.err >&5
33872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873 (exit $ac_status); } && {
33874 test -z "$ac_cxx_werror_flag" ||
33875 test ! -s conftest.err
33876 } && test -s conftest.$ac_objext; then
33877 ac_cv_type_intptr_t=yes
33879 echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.$ac_ext >&5
33882 ac_cv_type_intptr_t=no
33885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33887 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33888 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33889 if test $ac_cv_type_intptr_t = yes; then
33891 cat >>confdefs.h <<\_ACEOF
33892 #define HAVE_INTPTR_T 1
33896 for ac_type in 'int' 'long int' 'long long int'; do
33897 cat >conftest.$ac_ext <<_ACEOF
33900 cat confdefs.h >>conftest.$ac_ext
33901 cat >>conftest.$ac_ext <<_ACEOF
33902 /* end confdefs.h. */
33903 $ac_includes_default
33907 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33914 rm -f conftest.$ac_objext
33915 if { (ac_try="$ac_compile"
33916 case "(($ac_try" in
33917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_compile") 2>conftest.er1
33923 grep -v '^ *+' conftest.er1 >conftest.err
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } && {
33928 test -z "$ac_cxx_werror_flag" ||
33929 test ! -s conftest.err
33930 } && test -s conftest.$ac_objext; then
33932 cat >>confdefs.h <<_ACEOF
33933 #define intptr_t $ac_type
33938 echo "$as_me: failed program was:" >&5
33939 sed 's/^/| /' conftest.$ac_ext >&5
33944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33945 test -z "$ac_type" && break
33951 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33952 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33953 if test "${ac_cv_type_uintptr_t+set}" = set; then
33954 echo $ECHO_N "(cached) $ECHO_C" >&6
33956 cat >conftest.$ac_ext <<_ACEOF
33959 cat confdefs.h >>conftest.$ac_ext
33960 cat >>conftest.$ac_ext <<_ACEOF
33961 /* end confdefs.h. */
33962 $ac_includes_default
33963 typedef uintptr_t ac__type_new_;
33967 if ((ac__type_new_ *) 0)
33969 if (sizeof (ac__type_new_))
33975 rm -f conftest.$ac_objext
33976 if { (ac_try="$ac_compile"
33977 case "(($ac_try" in
33978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33979 *) ac_try_echo=$ac_try;;
33981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33982 (eval "$ac_compile") 2>conftest.er1
33984 grep -v '^ *+' conftest.er1 >conftest.err
33986 cat conftest.err >&5
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); } && {
33989 test -z "$ac_cxx_werror_flag" ||
33990 test ! -s conftest.err
33991 } && test -s conftest.$ac_objext; then
33992 ac_cv_type_uintptr_t=yes
33994 echo "$as_me: failed program was:" >&5
33995 sed 's/^/| /' conftest.$ac_ext >&5
33997 ac_cv_type_uintptr_t=no
34000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34002 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34003 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34004 if test $ac_cv_type_uintptr_t = yes; then
34006 cat >>confdefs.h <<\_ACEOF
34007 #define HAVE_UINTPTR_T 1
34011 for ac_type in 'unsigned int' 'unsigned long int' \
34012 'unsigned long long int'; do
34013 cat >conftest.$ac_ext <<_ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h. */
34019 $ac_includes_default
34023 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34030 rm -f conftest.$ac_objext
34031 if { (ac_try="$ac_compile"
34032 case "(($ac_try" in
34033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_compile") 2>conftest.er1
34039 grep -v '^ *+' conftest.er1 >conftest.err
34041 cat conftest.err >&5
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); } && {
34044 test -z "$ac_cxx_werror_flag" ||
34045 test ! -s conftest.err
34046 } && test -s conftest.$ac_objext; then
34048 cat >>confdefs.h <<_ACEOF
34049 #define uintptr_t $ac_type
34054 echo "$as_me: failed program was:" >&5
34055 sed 's/^/| /' conftest.$ac_ext >&5
34060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34061 test -z "$ac_type" && break
34066 { echo "$as_me:$LINENO: checking for ino_t" >&5
34067 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34068 if test "${ac_cv_type_ino_t+set}" = set; then
34069 echo $ECHO_N "(cached) $ECHO_C" >&6
34071 cat >conftest.$ac_ext <<_ACEOF
34074 cat confdefs.h >>conftest.$ac_ext
34075 cat >>conftest.$ac_ext <<_ACEOF
34076 /* end confdefs.h. */
34077 $ac_includes_default
34078 typedef ino_t ac__type_new_;
34082 if ((ac__type_new_ *) 0)
34084 if (sizeof (ac__type_new_))
34090 rm -f conftest.$ac_objext
34091 if { (ac_try="$ac_compile"
34092 case "(($ac_try" in
34093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094 *) ac_try_echo=$ac_try;;
34096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34097 (eval "$ac_compile") 2>conftest.er1
34099 grep -v '^ *+' conftest.er1 >conftest.err
34101 cat conftest.err >&5
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); } && {
34104 test -z "$ac_cxx_werror_flag" ||
34105 test ! -s conftest.err
34106 } && test -s conftest.$ac_objext; then
34107 ac_cv_type_ino_t=yes
34109 echo "$as_me: failed program was:" >&5
34110 sed 's/^/| /' conftest.$ac_ext >&5
34112 ac_cv_type_ino_t=no
34115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34117 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34118 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34119 if test $ac_cv_type_ino_t = yes; then
34123 cat >>confdefs.h <<_ACEOF
34124 #define ino_t unsigned long
34129 { echo "$as_me:$LINENO: checking for dev_t" >&5
34130 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34131 if test "${ac_cv_type_dev_t+set}" = set; then
34132 echo $ECHO_N "(cached) $ECHO_C" >&6
34134 cat >conftest.$ac_ext <<_ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h. */
34140 $ac_includes_default
34141 typedef dev_t ac__type_new_;
34145 if ((ac__type_new_ *) 0)
34147 if (sizeof (ac__type_new_))
34153 rm -f conftest.$ac_objext
34154 if { (ac_try="$ac_compile"
34155 case "(($ac_try" in
34156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34157 *) ac_try_echo=$ac_try;;
34159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34160 (eval "$ac_compile") 2>conftest.er1
34162 grep -v '^ *+' conftest.er1 >conftest.err
34164 cat conftest.err >&5
34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166 (exit $ac_status); } && {
34167 test -z "$ac_cxx_werror_flag" ||
34168 test ! -s conftest.err
34169 } && test -s conftest.$ac_objext; then
34170 ac_cv_type_dev_t=yes
34172 echo "$as_me: failed program was:" >&5
34173 sed 's/^/| /' conftest.$ac_ext >&5
34175 ac_cv_type_dev_t=no
34178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34180 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34181 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34182 if test $ac_cv_type_dev_t = yes; then
34186 cat >>confdefs.h <<_ACEOF
34187 #define dev_t unsigned long
34192 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34193 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34194 if test "${ac_cv_type_daddr_t+set}" = set; then
34195 echo $ECHO_N "(cached) $ECHO_C" >&6
34197 cat >conftest.$ac_ext <<_ACEOF
34200 cat confdefs.h >>conftest.$ac_ext
34201 cat >>conftest.$ac_ext <<_ACEOF
34202 /* end confdefs.h. */
34203 $ac_includes_default
34204 typedef daddr_t ac__type_new_;
34208 if ((ac__type_new_ *) 0)
34210 if (sizeof (ac__type_new_))
34216 rm -f conftest.$ac_objext
34217 if { (ac_try="$ac_compile"
34218 case "(($ac_try" in
34219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220 *) ac_try_echo=$ac_try;;
34222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34223 (eval "$ac_compile") 2>conftest.er1
34225 grep -v '^ *+' conftest.er1 >conftest.err
34227 cat conftest.err >&5
34228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229 (exit $ac_status); } && {
34230 test -z "$ac_cxx_werror_flag" ||
34231 test ! -s conftest.err
34232 } && test -s conftest.$ac_objext; then
34233 ac_cv_type_daddr_t=yes
34235 echo "$as_me: failed program was:" >&5
34236 sed 's/^/| /' conftest.$ac_ext >&5
34238 ac_cv_type_daddr_t=no
34241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34243 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34244 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34245 if test $ac_cv_type_daddr_t = yes; then
34249 cat >>confdefs.h <<_ACEOF
34250 #define daddr_t long
34255 { echo "$as_me:$LINENO: checking for major_t" >&5
34256 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34257 if test "${ac_cv_type_major_t+set}" = set; then
34258 echo $ECHO_N "(cached) $ECHO_C" >&6
34260 cat >conftest.$ac_ext <<_ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h. */
34266 $ac_includes_default
34267 typedef major_t ac__type_new_;
34271 if ((ac__type_new_ *) 0)
34273 if (sizeof (ac__type_new_))
34279 rm -f conftest.$ac_objext
34280 if { (ac_try="$ac_compile"
34281 case "(($ac_try" in
34282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34283 *) ac_try_echo=$ac_try;;
34285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34286 (eval "$ac_compile") 2>conftest.er1
34288 grep -v '^ *+' conftest.er1 >conftest.err
34290 cat conftest.err >&5
34291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34292 (exit $ac_status); } && {
34293 test -z "$ac_cxx_werror_flag" ||
34294 test ! -s conftest.err
34295 } && test -s conftest.$ac_objext; then
34296 ac_cv_type_major_t=yes
34298 echo "$as_me: failed program was:" >&5
34299 sed 's/^/| /' conftest.$ac_ext >&5
34301 ac_cv_type_major_t=no
34304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34306 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34307 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34308 if test $ac_cv_type_major_t = yes; then
34312 cat >>confdefs.h <<_ACEOF
34313 #define major_t int
34318 { echo "$as_me:$LINENO: checking for minor_t" >&5
34319 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34320 if test "${ac_cv_type_minor_t+set}" = set; then
34321 echo $ECHO_N "(cached) $ECHO_C" >&6
34323 cat >conftest.$ac_ext <<_ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h. */
34329 $ac_includes_default
34330 typedef minor_t ac__type_new_;
34334 if ((ac__type_new_ *) 0)
34336 if (sizeof (ac__type_new_))
34342 rm -f conftest.$ac_objext
34343 if { (ac_try="$ac_compile"
34344 case "(($ac_try" in
34345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34346 *) ac_try_echo=$ac_try;;
34348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34349 (eval "$ac_compile") 2>conftest.er1
34351 grep -v '^ *+' conftest.er1 >conftest.err
34353 cat conftest.err >&5
34354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355 (exit $ac_status); } && {
34356 test -z "$ac_cxx_werror_flag" ||
34357 test ! -s conftest.err
34358 } && test -s conftest.$ac_objext; then
34359 ac_cv_type_minor_t=yes
34361 echo "$as_me: failed program was:" >&5
34362 sed 's/^/| /' conftest.$ac_ext >&5
34364 ac_cv_type_minor_t=no
34367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34369 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34370 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34371 if test $ac_cv_type_minor_t = yes; then
34375 cat >>confdefs.h <<_ACEOF
34376 #define minor_t int
34381 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34382 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34383 if test "${ac_cv_type_ssize_t+set}" = set; then
34384 echo $ECHO_N "(cached) $ECHO_C" >&6
34386 cat >conftest.$ac_ext <<_ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h. */
34392 $ac_includes_default
34393 typedef ssize_t ac__type_new_;
34397 if ((ac__type_new_ *) 0)
34399 if (sizeof (ac__type_new_))
34405 rm -f conftest.$ac_objext
34406 if { (ac_try="$ac_compile"
34407 case "(($ac_try" in
34408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34409 *) ac_try_echo=$ac_try;;
34411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34412 (eval "$ac_compile") 2>conftest.er1
34414 grep -v '^ *+' conftest.er1 >conftest.err
34416 cat conftest.err >&5
34417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418 (exit $ac_status); } && {
34419 test -z "$ac_cxx_werror_flag" ||
34420 test ! -s conftest.err
34421 } && test -s conftest.$ac_objext; then
34422 ac_cv_type_ssize_t=yes
34424 echo "$as_me: failed program was:" >&5
34425 sed 's/^/| /' conftest.$ac_ext >&5
34427 ac_cv_type_ssize_t=no
34430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34432 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34433 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34434 if test $ac_cv_type_ssize_t = yes; then
34438 cat >>confdefs.h <<_ACEOF
34439 #define ssize_t int
34444 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34445 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34446 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34447 echo $ECHO_N "(cached) $ECHO_C" >&6
34449 cat >conftest.$ac_ext <<_ACEOF
34452 cat confdefs.h >>conftest.$ac_ext
34453 cat >>conftest.$ac_ext <<_ACEOF
34454 /* end confdefs.h. */
34455 $ac_includes_default
34459 static struct stat ac_aggr;
34460 if (ac_aggr.st_blocks)
34466 rm -f conftest.$ac_objext
34467 if { (ac_try="$ac_compile"
34468 case "(($ac_try" in
34469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34470 *) ac_try_echo=$ac_try;;
34472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34473 (eval "$ac_compile") 2>conftest.er1
34475 grep -v '^ *+' conftest.er1 >conftest.err
34477 cat conftest.err >&5
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); } && {
34480 test -z "$ac_cxx_werror_flag" ||
34481 test ! -s conftest.err
34482 } && test -s conftest.$ac_objext; then
34483 ac_cv_member_struct_stat_st_blocks=yes
34485 echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34488 cat >conftest.$ac_ext <<_ACEOF
34491 cat confdefs.h >>conftest.$ac_ext
34492 cat >>conftest.$ac_ext <<_ACEOF
34493 /* end confdefs.h. */
34494 $ac_includes_default
34498 static struct stat ac_aggr;
34499 if (sizeof ac_aggr.st_blocks)
34505 rm -f conftest.$ac_objext
34506 if { (ac_try="$ac_compile"
34507 case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512 (eval "$ac_compile") 2>conftest.er1
34514 grep -v '^ *+' conftest.er1 >conftest.err
34516 cat conftest.err >&5
34517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 (exit $ac_status); } && {
34519 test -z "$ac_cxx_werror_flag" ||
34520 test ! -s conftest.err
34521 } && test -s conftest.$ac_objext; then
34522 ac_cv_member_struct_stat_st_blocks=yes
34524 echo "$as_me: failed program was:" >&5
34525 sed 's/^/| /' conftest.$ac_ext >&5
34527 ac_cv_member_struct_stat_st_blocks=no
34530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34535 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34536 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34537 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34539 cat >>confdefs.h <<_ACEOF
34540 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34544 cat >>confdefs.h <<\_ACEOF
34545 #define HAVE_ST_BLOCKS 1
34549 case " $LIBOBJS " in
34550 *" fileblocks.$ac_objext "* ) ;;
34551 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34558 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34559 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34560 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34561 echo $ECHO_N "(cached) $ECHO_C" >&6
34563 cat >conftest.$ac_ext <<_ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h. */
34569 $ac_includes_default
34573 static struct stat ac_aggr;
34574 if (ac_aggr.st_rdev)
34580 rm -f conftest.$ac_objext
34581 if { (ac_try="$ac_compile"
34582 case "(($ac_try" in
34583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34584 *) ac_try_echo=$ac_try;;
34586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34587 (eval "$ac_compile") 2>conftest.er1
34589 grep -v '^ *+' conftest.er1 >conftest.err
34591 cat conftest.err >&5
34592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34593 (exit $ac_status); } && {
34594 test -z "$ac_cxx_werror_flag" ||
34595 test ! -s conftest.err
34596 } && test -s conftest.$ac_objext; then
34597 ac_cv_member_struct_stat_st_rdev=yes
34599 echo "$as_me: failed program was:" >&5
34600 sed 's/^/| /' conftest.$ac_ext >&5
34602 cat >conftest.$ac_ext <<_ACEOF
34605 cat confdefs.h >>conftest.$ac_ext
34606 cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h. */
34608 $ac_includes_default
34612 static struct stat ac_aggr;
34613 if (sizeof ac_aggr.st_rdev)
34619 rm -f conftest.$ac_objext
34620 if { (ac_try="$ac_compile"
34621 case "(($ac_try" in
34622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34623 *) ac_try_echo=$ac_try;;
34625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34626 (eval "$ac_compile") 2>conftest.er1
34628 grep -v '^ *+' conftest.er1 >conftest.err
34630 cat conftest.err >&5
34631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632 (exit $ac_status); } && {
34633 test -z "$ac_cxx_werror_flag" ||
34634 test ! -s conftest.err
34635 } && test -s conftest.$ac_objext; then
34636 ac_cv_member_struct_stat_st_rdev=yes
34638 echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34641 ac_cv_member_struct_stat_st_rdev=no
34644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34649 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34650 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34651 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34653 cat >>confdefs.h <<_ACEOF
34654 #define HAVE_STRUCT_STAT_ST_RDEV 1
34658 cat >>confdefs.h <<\_ACEOF
34659 #define HAVE_ST_RDEV 1
34665 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34666 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34667 if test "${ac_cv_struct_tm+set}" = set; then
34668 echo $ECHO_N "(cached) $ECHO_C" >&6
34670 cat >conftest.$ac_ext <<_ACEOF
34673 cat confdefs.h >>conftest.$ac_ext
34674 cat >>conftest.$ac_ext <<_ACEOF
34675 /* end confdefs.h. */
34676 #include <sys/types.h>
34683 int *p = &tm.tm_sec;
34689 rm -f conftest.$ac_objext
34690 if { (ac_try="$ac_compile"
34691 case "(($ac_try" in
34692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34693 *) ac_try_echo=$ac_try;;
34695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34696 (eval "$ac_compile") 2>conftest.er1
34698 grep -v '^ *+' conftest.er1 >conftest.err
34700 cat conftest.err >&5
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); } && {
34703 test -z "$ac_cxx_werror_flag" ||
34704 test ! -s conftest.err
34705 } && test -s conftest.$ac_objext; then
34706 ac_cv_struct_tm=time.h
34708 echo "$as_me: failed program was:" >&5
34709 sed 's/^/| /' conftest.$ac_ext >&5
34711 ac_cv_struct_tm=sys/time.h
34714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34716 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34717 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34718 if test $ac_cv_struct_tm = sys/time.h; then
34720 cat >>confdefs.h <<\_ACEOF
34721 #define TM_IN_SYS_TIME 1
34726 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34727 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34728 if test "${ac_cv_c_const+set}" = set; then
34729 echo $ECHO_N "(cached) $ECHO_C" >&6
34731 cat >conftest.$ac_ext <<_ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h. */
34741 /* FIXME: Include the comments suggested by Paul. */
34742 #ifndef __cplusplus
34743 /* Ultrix mips cc rejects this. */
34744 typedef int charset[2];
34746 /* SunOS 4.1.1 cc rejects this. */
34747 char const *const *pcpcc;
34749 /* NEC SVR4.0.2 mips cc rejects this. */
34750 struct point {int x, y;};
34751 static struct point const zero = {0,0};
34752 /* AIX XL C 1.02.0.0 rejects this.
34753 It does not let you subtract one const X* pointer from another in
34754 an arm of an if-expression whose if-part is not a constant
34756 const char *g = "string";
34757 pcpcc = &g + (g ? g-g : 0);
34758 /* HPUX 7.0 cc rejects these. */
34760 ppc = (char**) pcpcc;
34761 pcpcc = (char const *const *) ppc;
34762 { /* SCO 3.2v4 cc rejects this. */
34764 char const *s = 0 ? (char *) 0 : (char const *) 0;
34769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34770 int x[] = {25, 17};
34771 const int *foo = &x[0];
34774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34775 typedef const int *iptr;
34779 { /* AIX XL C 1.02.0.0 rejects this saying
34780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34781 struct s { int j; const int *ap[3]; };
34782 struct s *b; b->j = 5;
34784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34785 const int foo = 10;
34786 if (!foo) return 0;
34788 return !cs[0] && !zero.x;
34795 rm -f conftest.$ac_objext
34796 if { (ac_try="$ac_compile"
34797 case "(($ac_try" in
34798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34799 *) ac_try_echo=$ac_try;;
34801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34802 (eval "$ac_compile") 2>conftest.er1
34804 grep -v '^ *+' conftest.er1 >conftest.err
34806 cat conftest.err >&5
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } && {
34809 test -z "$ac_cxx_werror_flag" ||
34810 test ! -s conftest.err
34811 } && test -s conftest.$ac_objext; then
34814 echo "$as_me: failed program was:" >&5
34815 sed 's/^/| /' conftest.$ac_ext >&5
34820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34822 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34823 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34824 if test $ac_cv_c_const = no; then
34826 cat >>confdefs.h <<\_ACEOF
34833 { echo "$as_me:$LINENO: checking for char" >&5
34834 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34835 if test "${ac_cv_type_char+set}" = set; then
34836 echo $ECHO_N "(cached) $ECHO_C" >&6
34838 cat >conftest.$ac_ext <<_ACEOF
34841 cat confdefs.h >>conftest.$ac_ext
34842 cat >>conftest.$ac_ext <<_ACEOF
34843 /* end confdefs.h. */
34844 $ac_includes_default
34845 typedef char ac__type_new_;
34849 if ((ac__type_new_ *) 0)
34851 if (sizeof (ac__type_new_))
34857 rm -f conftest.$ac_objext
34858 if { (ac_try="$ac_compile"
34859 case "(($ac_try" in
34860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34861 *) ac_try_echo=$ac_try;;
34863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34864 (eval "$ac_compile") 2>conftest.er1
34866 grep -v '^ *+' conftest.er1 >conftest.err
34868 cat conftest.err >&5
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); } && {
34871 test -z "$ac_cxx_werror_flag" ||
34872 test ! -s conftest.err
34873 } && test -s conftest.$ac_objext; then
34874 ac_cv_type_char=yes
34876 echo "$as_me: failed program was:" >&5
34877 sed 's/^/| /' conftest.$ac_ext >&5
34882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34884 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34885 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34887 # The cast to long int works around a bug in the HP C Compiler
34888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34890 # This bug is HP SR number 8606223364.
34891 { echo "$as_me:$LINENO: checking size of char" >&5
34892 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34893 if test "${ac_cv_sizeof_char+set}" = set; then
34894 echo $ECHO_N "(cached) $ECHO_C" >&6
34896 if test "$cross_compiling" = yes; then
34897 # Depending upon the size, compute the lo and hi bounds.
34898 cat >conftest.$ac_ext <<_ACEOF
34901 cat confdefs.h >>conftest.$ac_ext
34902 cat >>conftest.$ac_ext <<_ACEOF
34903 /* end confdefs.h. */
34904 $ac_includes_default
34905 typedef char ac__type_sizeof_;
34909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34916 rm -f conftest.$ac_objext
34917 if { (ac_try="$ac_compile"
34918 case "(($ac_try" in
34919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34920 *) ac_try_echo=$ac_try;;
34922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34923 (eval "$ac_compile") 2>conftest.er1
34925 grep -v '^ *+' conftest.er1 >conftest.err
34927 cat conftest.err >&5
34928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929 (exit $ac_status); } && {
34930 test -z "$ac_cxx_werror_flag" ||
34931 test ! -s conftest.err
34932 } && test -s conftest.$ac_objext; then
34935 cat >conftest.$ac_ext <<_ACEOF
34938 cat confdefs.h >>conftest.$ac_ext
34939 cat >>conftest.$ac_ext <<_ACEOF
34940 /* end confdefs.h. */
34941 $ac_includes_default
34942 typedef char ac__type_sizeof_;
34946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34953 rm -f conftest.$ac_objext
34954 if { (ac_try="$ac_compile"
34955 case "(($ac_try" in
34956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957 *) ac_try_echo=$ac_try;;
34959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960 (eval "$ac_compile") 2>conftest.er1
34962 grep -v '^ *+' conftest.er1 >conftest.err
34964 cat conftest.err >&5
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); } && {
34967 test -z "$ac_cxx_werror_flag" ||
34968 test ! -s conftest.err
34969 } && test -s conftest.$ac_objext; then
34970 ac_hi=$ac_mid; break
34972 echo "$as_me: failed program was:" >&5
34973 sed 's/^/| /' conftest.$ac_ext >&5
34975 ac_lo=`expr $ac_mid + 1`
34976 if test $ac_lo -le $ac_mid; then
34980 ac_mid=`expr 2 '*' $ac_mid + 1`
34983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34986 echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34989 cat >conftest.$ac_ext <<_ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h. */
34995 $ac_includes_default
34996 typedef char ac__type_sizeof_;
35000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35007 rm -f conftest.$ac_objext
35008 if { (ac_try="$ac_compile"
35009 case "(($ac_try" in
35010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35011 *) ac_try_echo=$ac_try;;
35013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35014 (eval "$ac_compile") 2>conftest.er1
35016 grep -v '^ *+' conftest.er1 >conftest.err
35018 cat conftest.err >&5
35019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35020 (exit $ac_status); } && {
35021 test -z "$ac_cxx_werror_flag" ||
35022 test ! -s conftest.err
35023 } && test -s conftest.$ac_objext; then
35026 cat >conftest.$ac_ext <<_ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h. */
35032 $ac_includes_default
35033 typedef char ac__type_sizeof_;
35037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35044 rm -f conftest.$ac_objext
35045 if { (ac_try="$ac_compile"
35046 case "(($ac_try" in
35047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35048 *) ac_try_echo=$ac_try;;
35050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35051 (eval "$ac_compile") 2>conftest.er1
35053 grep -v '^ *+' conftest.er1 >conftest.err
35055 cat conftest.err >&5
35056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057 (exit $ac_status); } && {
35058 test -z "$ac_cxx_werror_flag" ||
35059 test ! -s conftest.err
35060 } && test -s conftest.$ac_objext; then
35061 ac_lo=$ac_mid; break
35063 echo "$as_me: failed program was:" >&5
35064 sed 's/^/| /' conftest.$ac_ext >&5
35066 ac_hi=`expr '(' $ac_mid ')' - 1`
35067 if test $ac_mid -le $ac_hi; then
35071 ac_mid=`expr 2 '*' $ac_mid`
35074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35077 echo "$as_me: failed program was:" >&5
35078 sed 's/^/| /' conftest.$ac_ext >&5
35083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35087 # Binary search between lo and hi bounds.
35088 while test "x$ac_lo" != "x$ac_hi"; do
35089 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35090 cat >conftest.$ac_ext <<_ACEOF
35093 cat confdefs.h >>conftest.$ac_ext
35094 cat >>conftest.$ac_ext <<_ACEOF
35095 /* end confdefs.h. */
35096 $ac_includes_default
35097 typedef char ac__type_sizeof_;
35101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35108 rm -f conftest.$ac_objext
35109 if { (ac_try="$ac_compile"
35110 case "(($ac_try" in
35111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35112 *) ac_try_echo=$ac_try;;
35114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35115 (eval "$ac_compile") 2>conftest.er1
35117 grep -v '^ *+' conftest.er1 >conftest.err
35119 cat conftest.err >&5
35120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121 (exit $ac_status); } && {
35122 test -z "$ac_cxx_werror_flag" ||
35123 test ! -s conftest.err
35124 } && test -s conftest.$ac_objext; then
35127 echo "$as_me: failed program was:" >&5
35128 sed 's/^/| /' conftest.$ac_ext >&5
35130 ac_lo=`expr '(' $ac_mid ')' + 1`
35133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35136 ?*) ac_cv_sizeof_char=$ac_lo;;
35137 '') if test "$ac_cv_type_char" = yes; then
35138 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35139 See \`config.log' for more details." >&5
35140 echo "$as_me: error: cannot compute sizeof (char)
35141 See \`config.log' for more details." >&2;}
35142 { (exit 77); exit 77; }; }
35144 ac_cv_sizeof_char=0
35148 cat >conftest.$ac_ext <<_ACEOF
35151 cat confdefs.h >>conftest.$ac_ext
35152 cat >>conftest.$ac_ext <<_ACEOF
35153 /* end confdefs.h. */
35154 $ac_includes_default
35155 typedef char ac__type_sizeof_;
35156 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35157 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35159 #include <stdlib.h>
35164 FILE *f = fopen ("conftest.val", "w");
35167 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35169 long int i = longval ();
35170 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35172 fprintf (f, "%ld\n", i);
35176 unsigned long int i = ulongval ();
35177 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35179 fprintf (f, "%lu\n", i);
35181 return ferror (f) || fclose (f) != 0;
35187 rm -f conftest$ac_exeext
35188 if { (ac_try="$ac_link"
35189 case "(($ac_try" in
35190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35191 *) ac_try_echo=$ac_try;;
35193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35194 (eval "$ac_link") 2>&5
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35198 { (case "(($ac_try" in
35199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35200 *) ac_try_echo=$ac_try;;
35202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35203 (eval "$ac_try") 2>&5
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); }; }; then
35207 ac_cv_sizeof_char=`cat conftest.val`
35209 echo "$as_me: program exited with status $ac_status" >&5
35210 echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35213 ( exit $ac_status )
35214 if test "$ac_cv_type_char" = yes; then
35215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35216 See \`config.log' for more details." >&5
35217 echo "$as_me: error: cannot compute sizeof (char)
35218 See \`config.log' for more details." >&2;}
35219 { (exit 77); exit 77; }; }
35221 ac_cv_sizeof_char=0
35224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35228 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35229 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35233 cat >>confdefs.h <<_ACEOF
35234 #define SIZEOF_CHAR $ac_cv_sizeof_char
35238 { echo "$as_me:$LINENO: checking for short int" >&5
35239 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35240 if test "${ac_cv_type_short_int+set}" = set; then
35241 echo $ECHO_N "(cached) $ECHO_C" >&6
35243 cat >conftest.$ac_ext <<_ACEOF
35246 cat confdefs.h >>conftest.$ac_ext
35247 cat >>conftest.$ac_ext <<_ACEOF
35248 /* end confdefs.h. */
35249 $ac_includes_default
35250 typedef short int ac__type_new_;
35254 if ((ac__type_new_ *) 0)
35256 if (sizeof (ac__type_new_))
35262 rm -f conftest.$ac_objext
35263 if { (ac_try="$ac_compile"
35264 case "(($ac_try" in
35265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266 *) ac_try_echo=$ac_try;;
35268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35269 (eval "$ac_compile") 2>conftest.er1
35271 grep -v '^ *+' conftest.er1 >conftest.err
35273 cat conftest.err >&5
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); } && {
35276 test -z "$ac_cxx_werror_flag" ||
35277 test ! -s conftest.err
35278 } && test -s conftest.$ac_objext; then
35279 ac_cv_type_short_int=yes
35281 echo "$as_me: failed program was:" >&5
35282 sed 's/^/| /' conftest.$ac_ext >&5
35284 ac_cv_type_short_int=no
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35289 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35290 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35292 # The cast to long int works around a bug in the HP C Compiler
35293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35295 # This bug is HP SR number 8606223364.
35296 { echo "$as_me:$LINENO: checking size of short int" >&5
35297 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35298 if test "${ac_cv_sizeof_short_int+set}" = set; then
35299 echo $ECHO_N "(cached) $ECHO_C" >&6
35301 if test "$cross_compiling" = yes; then
35302 # Depending upon the size, compute the lo and hi bounds.
35303 cat >conftest.$ac_ext <<_ACEOF
35306 cat confdefs.h >>conftest.$ac_ext
35307 cat >>conftest.$ac_ext <<_ACEOF
35308 /* end confdefs.h. */
35309 $ac_includes_default
35310 typedef short int ac__type_sizeof_;
35314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35321 rm -f conftest.$ac_objext
35322 if { (ac_try="$ac_compile"
35323 case "(($ac_try" in
35324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325 *) ac_try_echo=$ac_try;;
35327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328 (eval "$ac_compile") 2>conftest.er1
35330 grep -v '^ *+' conftest.er1 >conftest.err
35332 cat conftest.err >&5
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); } && {
35335 test -z "$ac_cxx_werror_flag" ||
35336 test ! -s conftest.err
35337 } && test -s conftest.$ac_objext; then
35340 cat >conftest.$ac_ext <<_ACEOF
35343 cat confdefs.h >>conftest.$ac_ext
35344 cat >>conftest.$ac_ext <<_ACEOF
35345 /* end confdefs.h. */
35346 $ac_includes_default
35347 typedef short int ac__type_sizeof_;
35351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35358 rm -f conftest.$ac_objext
35359 if { (ac_try="$ac_compile"
35360 case "(($ac_try" in
35361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35362 *) ac_try_echo=$ac_try;;
35364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35365 (eval "$ac_compile") 2>conftest.er1
35367 grep -v '^ *+' conftest.er1 >conftest.err
35369 cat conftest.err >&5
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); } && {
35372 test -z "$ac_cxx_werror_flag" ||
35373 test ! -s conftest.err
35374 } && test -s conftest.$ac_objext; then
35375 ac_hi=$ac_mid; break
35377 echo "$as_me: failed program was:" >&5
35378 sed 's/^/| /' conftest.$ac_ext >&5
35380 ac_lo=`expr $ac_mid + 1`
35381 if test $ac_lo -le $ac_mid; then
35385 ac_mid=`expr 2 '*' $ac_mid + 1`
35388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35391 echo "$as_me: failed program was:" >&5
35392 sed 's/^/| /' conftest.$ac_ext >&5
35394 cat >conftest.$ac_ext <<_ACEOF
35397 cat confdefs.h >>conftest.$ac_ext
35398 cat >>conftest.$ac_ext <<_ACEOF
35399 /* end confdefs.h. */
35400 $ac_includes_default
35401 typedef short int ac__type_sizeof_;
35405 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35412 rm -f conftest.$ac_objext
35413 if { (ac_try="$ac_compile"
35414 case "(($ac_try" in
35415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416 *) ac_try_echo=$ac_try;;
35418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35419 (eval "$ac_compile") 2>conftest.er1
35421 grep -v '^ *+' conftest.er1 >conftest.err
35423 cat conftest.err >&5
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } && {
35426 test -z "$ac_cxx_werror_flag" ||
35427 test ! -s conftest.err
35428 } && test -s conftest.$ac_objext; then
35431 cat >conftest.$ac_ext <<_ACEOF
35434 cat confdefs.h >>conftest.$ac_ext
35435 cat >>conftest.$ac_ext <<_ACEOF
35436 /* end confdefs.h. */
35437 $ac_includes_default
35438 typedef short int ac__type_sizeof_;
35442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35449 rm -f conftest.$ac_objext
35450 if { (ac_try="$ac_compile"
35451 case "(($ac_try" in
35452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35453 *) ac_try_echo=$ac_try;;
35455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35456 (eval "$ac_compile") 2>conftest.er1
35458 grep -v '^ *+' conftest.er1 >conftest.err
35460 cat conftest.err >&5
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); } && {
35463 test -z "$ac_cxx_werror_flag" ||
35464 test ! -s conftest.err
35465 } && test -s conftest.$ac_objext; then
35466 ac_lo=$ac_mid; break
35468 echo "$as_me: failed program was:" >&5
35469 sed 's/^/| /' conftest.$ac_ext >&5
35471 ac_hi=`expr '(' $ac_mid ')' - 1`
35472 if test $ac_mid -le $ac_hi; then
35476 ac_mid=`expr 2 '*' $ac_mid`
35479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35482 echo "$as_me: failed program was:" >&5
35483 sed 's/^/| /' conftest.$ac_ext >&5
35488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35492 # Binary search between lo and hi bounds.
35493 while test "x$ac_lo" != "x$ac_hi"; do
35494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35495 cat >conftest.$ac_ext <<_ACEOF
35498 cat confdefs.h >>conftest.$ac_ext
35499 cat >>conftest.$ac_ext <<_ACEOF
35500 /* end confdefs.h. */
35501 $ac_includes_default
35502 typedef short int ac__type_sizeof_;
35506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35513 rm -f conftest.$ac_objext
35514 if { (ac_try="$ac_compile"
35515 case "(($ac_try" in
35516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35517 *) ac_try_echo=$ac_try;;
35519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35520 (eval "$ac_compile") 2>conftest.er1
35522 grep -v '^ *+' conftest.er1 >conftest.err
35524 cat conftest.err >&5
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); } && {
35527 test -z "$ac_cxx_werror_flag" ||
35528 test ! -s conftest.err
35529 } && test -s conftest.$ac_objext; then
35532 echo "$as_me: failed program was:" >&5
35533 sed 's/^/| /' conftest.$ac_ext >&5
35535 ac_lo=`expr '(' $ac_mid ')' + 1`
35538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35541 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35542 '') if test "$ac_cv_type_short_int" = yes; then
35543 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35544 See \`config.log' for more details." >&5
35545 echo "$as_me: error: cannot compute sizeof (short int)
35546 See \`config.log' for more details." >&2;}
35547 { (exit 77); exit 77; }; }
35549 ac_cv_sizeof_short_int=0
35553 cat >conftest.$ac_ext <<_ACEOF
35556 cat confdefs.h >>conftest.$ac_ext
35557 cat >>conftest.$ac_ext <<_ACEOF
35558 /* end confdefs.h. */
35559 $ac_includes_default
35560 typedef short int ac__type_sizeof_;
35561 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35562 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35564 #include <stdlib.h>
35569 FILE *f = fopen ("conftest.val", "w");
35572 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35574 long int i = longval ();
35575 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35577 fprintf (f, "%ld\n", i);
35581 unsigned long int i = ulongval ();
35582 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35584 fprintf (f, "%lu\n", i);
35586 return ferror (f) || fclose (f) != 0;
35592 rm -f conftest$ac_exeext
35593 if { (ac_try="$ac_link"
35594 case "(($ac_try" in
35595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35596 *) ac_try_echo=$ac_try;;
35598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35599 (eval "$ac_link") 2>&5
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35603 { (case "(($ac_try" in
35604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35605 *) ac_try_echo=$ac_try;;
35607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35608 (eval "$ac_try") 2>&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); }; }; then
35612 ac_cv_sizeof_short_int=`cat conftest.val`
35614 echo "$as_me: program exited with status $ac_status" >&5
35615 echo "$as_me: failed program was:" >&5
35616 sed 's/^/| /' conftest.$ac_ext >&5
35618 ( exit $ac_status )
35619 if test "$ac_cv_type_short_int" = yes; then
35620 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35621 See \`config.log' for more details." >&5
35622 echo "$as_me: error: cannot compute sizeof (short int)
35623 See \`config.log' for more details." >&2;}
35624 { (exit 77); exit 77; }; }
35626 ac_cv_sizeof_short_int=0
35629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35633 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35634 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35638 cat >>confdefs.h <<_ACEOF
35639 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35643 { echo "$as_me:$LINENO: checking for int" >&5
35644 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35645 if test "${ac_cv_type_int+set}" = set; then
35646 echo $ECHO_N "(cached) $ECHO_C" >&6
35648 cat >conftest.$ac_ext <<_ACEOF
35651 cat confdefs.h >>conftest.$ac_ext
35652 cat >>conftest.$ac_ext <<_ACEOF
35653 /* end confdefs.h. */
35654 $ac_includes_default
35655 typedef int ac__type_new_;
35659 if ((ac__type_new_ *) 0)
35661 if (sizeof (ac__type_new_))
35667 rm -f conftest.$ac_objext
35668 if { (ac_try="$ac_compile"
35669 case "(($ac_try" in
35670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671 *) ac_try_echo=$ac_try;;
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674 (eval "$ac_compile") 2>conftest.er1
35676 grep -v '^ *+' conftest.er1 >conftest.err
35678 cat conftest.err >&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); } && {
35681 test -z "$ac_cxx_werror_flag" ||
35682 test ! -s conftest.err
35683 } && test -s conftest.$ac_objext; then
35686 echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35694 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35695 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35697 # The cast to long int works around a bug in the HP C Compiler
35698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35700 # This bug is HP SR number 8606223364.
35701 { echo "$as_me:$LINENO: checking size of int" >&5
35702 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35703 if test "${ac_cv_sizeof_int+set}" = set; then
35704 echo $ECHO_N "(cached) $ECHO_C" >&6
35706 if test "$cross_compiling" = yes; then
35707 # Depending upon the size, compute the lo and hi bounds.
35708 cat >conftest.$ac_ext <<_ACEOF
35711 cat confdefs.h >>conftest.$ac_ext
35712 cat >>conftest.$ac_ext <<_ACEOF
35713 /* end confdefs.h. */
35714 $ac_includes_default
35715 typedef int ac__type_sizeof_;
35719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35726 rm -f conftest.$ac_objext
35727 if { (ac_try="$ac_compile"
35728 case "(($ac_try" in
35729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35730 *) ac_try_echo=$ac_try;;
35732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35733 (eval "$ac_compile") 2>conftest.er1
35735 grep -v '^ *+' conftest.er1 >conftest.err
35737 cat conftest.err >&5
35738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739 (exit $ac_status); } && {
35740 test -z "$ac_cxx_werror_flag" ||
35741 test ! -s conftest.err
35742 } && test -s conftest.$ac_objext; then
35745 cat >conftest.$ac_ext <<_ACEOF
35748 cat confdefs.h >>conftest.$ac_ext
35749 cat >>conftest.$ac_ext <<_ACEOF
35750 /* end confdefs.h. */
35751 $ac_includes_default
35752 typedef int ac__type_sizeof_;
35756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35763 rm -f conftest.$ac_objext
35764 if { (ac_try="$ac_compile"
35765 case "(($ac_try" in
35766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35767 *) ac_try_echo=$ac_try;;
35769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35770 (eval "$ac_compile") 2>conftest.er1
35772 grep -v '^ *+' conftest.er1 >conftest.err
35774 cat conftest.err >&5
35775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35776 (exit $ac_status); } && {
35777 test -z "$ac_cxx_werror_flag" ||
35778 test ! -s conftest.err
35779 } && test -s conftest.$ac_objext; then
35780 ac_hi=$ac_mid; break
35782 echo "$as_me: failed program was:" >&5
35783 sed 's/^/| /' conftest.$ac_ext >&5
35785 ac_lo=`expr $ac_mid + 1`
35786 if test $ac_lo -le $ac_mid; then
35790 ac_mid=`expr 2 '*' $ac_mid + 1`
35793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35796 echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35799 cat >conftest.$ac_ext <<_ACEOF
35802 cat confdefs.h >>conftest.$ac_ext
35803 cat >>conftest.$ac_ext <<_ACEOF
35804 /* end confdefs.h. */
35805 $ac_includes_default
35806 typedef int ac__type_sizeof_;
35810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35817 rm -f conftest.$ac_objext
35818 if { (ac_try="$ac_compile"
35819 case "(($ac_try" in
35820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35821 *) ac_try_echo=$ac_try;;
35823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35824 (eval "$ac_compile") 2>conftest.er1
35826 grep -v '^ *+' conftest.er1 >conftest.err
35828 cat conftest.err >&5
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } && {
35831 test -z "$ac_cxx_werror_flag" ||
35832 test ! -s conftest.err
35833 } && test -s conftest.$ac_objext; then
35836 cat >conftest.$ac_ext <<_ACEOF
35839 cat confdefs.h >>conftest.$ac_ext
35840 cat >>conftest.$ac_ext <<_ACEOF
35841 /* end confdefs.h. */
35842 $ac_includes_default
35843 typedef int ac__type_sizeof_;
35847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35854 rm -f conftest.$ac_objext
35855 if { (ac_try="$ac_compile"
35856 case "(($ac_try" in
35857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35858 *) ac_try_echo=$ac_try;;
35860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35861 (eval "$ac_compile") 2>conftest.er1
35863 grep -v '^ *+' conftest.er1 >conftest.err
35865 cat conftest.err >&5
35866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867 (exit $ac_status); } && {
35868 test -z "$ac_cxx_werror_flag" ||
35869 test ! -s conftest.err
35870 } && test -s conftest.$ac_objext; then
35871 ac_lo=$ac_mid; break
35873 echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35876 ac_hi=`expr '(' $ac_mid ')' - 1`
35877 if test $ac_mid -le $ac_hi; then
35881 ac_mid=`expr 2 '*' $ac_mid`
35884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35887 echo "$as_me: failed program was:" >&5
35888 sed 's/^/| /' conftest.$ac_ext >&5
35893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35897 # Binary search between lo and hi bounds.
35898 while test "x$ac_lo" != "x$ac_hi"; do
35899 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35900 cat >conftest.$ac_ext <<_ACEOF
35903 cat confdefs.h >>conftest.$ac_ext
35904 cat >>conftest.$ac_ext <<_ACEOF
35905 /* end confdefs.h. */
35906 $ac_includes_default
35907 typedef int ac__type_sizeof_;
35911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35918 rm -f conftest.$ac_objext
35919 if { (ac_try="$ac_compile"
35920 case "(($ac_try" in
35921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35922 *) ac_try_echo=$ac_try;;
35924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35925 (eval "$ac_compile") 2>conftest.er1
35927 grep -v '^ *+' conftest.er1 >conftest.err
35929 cat conftest.err >&5
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); } && {
35932 test -z "$ac_cxx_werror_flag" ||
35933 test ! -s conftest.err
35934 } && test -s conftest.$ac_objext; then
35937 echo "$as_me: failed program was:" >&5
35938 sed 's/^/| /' conftest.$ac_ext >&5
35940 ac_lo=`expr '(' $ac_mid ')' + 1`
35943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35946 ?*) ac_cv_sizeof_int=$ac_lo;;
35947 '') if test "$ac_cv_type_int" = yes; then
35948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35949 See \`config.log' for more details." >&5
35950 echo "$as_me: error: cannot compute sizeof (int)
35951 See \`config.log' for more details." >&2;}
35952 { (exit 77); exit 77; }; }
35958 cat >conftest.$ac_ext <<_ACEOF
35961 cat confdefs.h >>conftest.$ac_ext
35962 cat >>conftest.$ac_ext <<_ACEOF
35963 /* end confdefs.h. */
35964 $ac_includes_default
35965 typedef int ac__type_sizeof_;
35966 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35967 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35969 #include <stdlib.h>
35974 FILE *f = fopen ("conftest.val", "w");
35977 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35979 long int i = longval ();
35980 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35982 fprintf (f, "%ld\n", i);
35986 unsigned long int i = ulongval ();
35987 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35989 fprintf (f, "%lu\n", i);
35991 return ferror (f) || fclose (f) != 0;
35997 rm -f conftest$ac_exeext
35998 if { (ac_try="$ac_link"
35999 case "(($ac_try" in
36000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36001 *) ac_try_echo=$ac_try;;
36003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36004 (eval "$ac_link") 2>&5
36006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36008 { (case "(($ac_try" in
36009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36010 *) ac_try_echo=$ac_try;;
36012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36013 (eval "$ac_try") 2>&5
36015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016 (exit $ac_status); }; }; then
36017 ac_cv_sizeof_int=`cat conftest.val`
36019 echo "$as_me: program exited with status $ac_status" >&5
36020 echo "$as_me: failed program was:" >&5
36021 sed 's/^/| /' conftest.$ac_ext >&5
36023 ( exit $ac_status )
36024 if test "$ac_cv_type_int" = yes; then
36025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36026 See \`config.log' for more details." >&5
36027 echo "$as_me: error: cannot compute sizeof (int)
36028 See \`config.log' for more details." >&2;}
36029 { (exit 77); exit 77; }; }
36034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36038 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36039 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36043 cat >>confdefs.h <<_ACEOF
36044 #define SIZEOF_INT $ac_cv_sizeof_int
36048 { echo "$as_me:$LINENO: checking for long int" >&5
36049 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36050 if test "${ac_cv_type_long_int+set}" = set; then
36051 echo $ECHO_N "(cached) $ECHO_C" >&6
36053 cat >conftest.$ac_ext <<_ACEOF
36056 cat confdefs.h >>conftest.$ac_ext
36057 cat >>conftest.$ac_ext <<_ACEOF
36058 /* end confdefs.h. */
36059 $ac_includes_default
36060 typedef long int ac__type_new_;
36064 if ((ac__type_new_ *) 0)
36066 if (sizeof (ac__type_new_))
36072 rm -f conftest.$ac_objext
36073 if { (ac_try="$ac_compile"
36074 case "(($ac_try" in
36075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36076 *) ac_try_echo=$ac_try;;
36078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36079 (eval "$ac_compile") 2>conftest.er1
36081 grep -v '^ *+' conftest.er1 >conftest.err
36083 cat conftest.err >&5
36084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085 (exit $ac_status); } && {
36086 test -z "$ac_cxx_werror_flag" ||
36087 test ! -s conftest.err
36088 } && test -s conftest.$ac_objext; then
36089 ac_cv_type_long_int=yes
36091 echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36094 ac_cv_type_long_int=no
36097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36099 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36100 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36102 # The cast to long int works around a bug in the HP C Compiler
36103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36105 # This bug is HP SR number 8606223364.
36106 { echo "$as_me:$LINENO: checking size of long int" >&5
36107 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36108 if test "${ac_cv_sizeof_long_int+set}" = set; then
36109 echo $ECHO_N "(cached) $ECHO_C" >&6
36111 if test "$cross_compiling" = yes; then
36112 # Depending upon the size, compute the lo and hi bounds.
36113 cat >conftest.$ac_ext <<_ACEOF
36116 cat confdefs.h >>conftest.$ac_ext
36117 cat >>conftest.$ac_ext <<_ACEOF
36118 /* end confdefs.h. */
36119 $ac_includes_default
36120 typedef long int ac__type_sizeof_;
36124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36131 rm -f conftest.$ac_objext
36132 if { (ac_try="$ac_compile"
36133 case "(($ac_try" in
36134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36135 *) ac_try_echo=$ac_try;;
36137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36138 (eval "$ac_compile") 2>conftest.er1
36140 grep -v '^ *+' conftest.er1 >conftest.err
36142 cat conftest.err >&5
36143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144 (exit $ac_status); } && {
36145 test -z "$ac_cxx_werror_flag" ||
36146 test ! -s conftest.err
36147 } && test -s conftest.$ac_objext; then
36150 cat >conftest.$ac_ext <<_ACEOF
36153 cat confdefs.h >>conftest.$ac_ext
36154 cat >>conftest.$ac_ext <<_ACEOF
36155 /* end confdefs.h. */
36156 $ac_includes_default
36157 typedef long int ac__type_sizeof_;
36161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36168 rm -f conftest.$ac_objext
36169 if { (ac_try="$ac_compile"
36170 case "(($ac_try" in
36171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36172 *) ac_try_echo=$ac_try;;
36174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36175 (eval "$ac_compile") 2>conftest.er1
36177 grep -v '^ *+' conftest.er1 >conftest.err
36179 cat conftest.err >&5
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); } && {
36182 test -z "$ac_cxx_werror_flag" ||
36183 test ! -s conftest.err
36184 } && test -s conftest.$ac_objext; then
36185 ac_hi=$ac_mid; break
36187 echo "$as_me: failed program was:" >&5
36188 sed 's/^/| /' conftest.$ac_ext >&5
36190 ac_lo=`expr $ac_mid + 1`
36191 if test $ac_lo -le $ac_mid; then
36195 ac_mid=`expr 2 '*' $ac_mid + 1`
36198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36201 echo "$as_me: failed program was:" >&5
36202 sed 's/^/| /' conftest.$ac_ext >&5
36204 cat >conftest.$ac_ext <<_ACEOF
36207 cat confdefs.h >>conftest.$ac_ext
36208 cat >>conftest.$ac_ext <<_ACEOF
36209 /* end confdefs.h. */
36210 $ac_includes_default
36211 typedef long int ac__type_sizeof_;
36215 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36222 rm -f conftest.$ac_objext
36223 if { (ac_try="$ac_compile"
36224 case "(($ac_try" in
36225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36226 *) ac_try_echo=$ac_try;;
36228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36229 (eval "$ac_compile") 2>conftest.er1
36231 grep -v '^ *+' conftest.er1 >conftest.err
36233 cat conftest.err >&5
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); } && {
36236 test -z "$ac_cxx_werror_flag" ||
36237 test ! -s conftest.err
36238 } && test -s conftest.$ac_objext; then
36241 cat >conftest.$ac_ext <<_ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h. */
36247 $ac_includes_default
36248 typedef long int ac__type_sizeof_;
36252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36259 rm -f conftest.$ac_objext
36260 if { (ac_try="$ac_compile"
36261 case "(($ac_try" in
36262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36263 *) ac_try_echo=$ac_try;;
36265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36266 (eval "$ac_compile") 2>conftest.er1
36268 grep -v '^ *+' conftest.er1 >conftest.err
36270 cat conftest.err >&5
36271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272 (exit $ac_status); } && {
36273 test -z "$ac_cxx_werror_flag" ||
36274 test ! -s conftest.err
36275 } && test -s conftest.$ac_objext; then
36276 ac_lo=$ac_mid; break
36278 echo "$as_me: failed program was:" >&5
36279 sed 's/^/| /' conftest.$ac_ext >&5
36281 ac_hi=`expr '(' $ac_mid ')' - 1`
36282 if test $ac_mid -le $ac_hi; then
36286 ac_mid=`expr 2 '*' $ac_mid`
36289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36292 echo "$as_me: failed program was:" >&5
36293 sed 's/^/| /' conftest.$ac_ext >&5
36298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36302 # Binary search between lo and hi bounds.
36303 while test "x$ac_lo" != "x$ac_hi"; do
36304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36305 cat >conftest.$ac_ext <<_ACEOF
36308 cat confdefs.h >>conftest.$ac_ext
36309 cat >>conftest.$ac_ext <<_ACEOF
36310 /* end confdefs.h. */
36311 $ac_includes_default
36312 typedef long int ac__type_sizeof_;
36316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36323 rm -f conftest.$ac_objext
36324 if { (ac_try="$ac_compile"
36325 case "(($ac_try" in
36326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36327 *) ac_try_echo=$ac_try;;
36329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36330 (eval "$ac_compile") 2>conftest.er1
36332 grep -v '^ *+' conftest.er1 >conftest.err
36334 cat conftest.err >&5
36335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36336 (exit $ac_status); } && {
36337 test -z "$ac_cxx_werror_flag" ||
36338 test ! -s conftest.err
36339 } && test -s conftest.$ac_objext; then
36342 echo "$as_me: failed program was:" >&5
36343 sed 's/^/| /' conftest.$ac_ext >&5
36345 ac_lo=`expr '(' $ac_mid ')' + 1`
36348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36351 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36352 '') if test "$ac_cv_type_long_int" = yes; then
36353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36354 See \`config.log' for more details." >&5
36355 echo "$as_me: error: cannot compute sizeof (long int)
36356 See \`config.log' for more details." >&2;}
36357 { (exit 77); exit 77; }; }
36359 ac_cv_sizeof_long_int=0
36363 cat >conftest.$ac_ext <<_ACEOF
36366 cat confdefs.h >>conftest.$ac_ext
36367 cat >>conftest.$ac_ext <<_ACEOF
36368 /* end confdefs.h. */
36369 $ac_includes_default
36370 typedef long int ac__type_sizeof_;
36371 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36372 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36374 #include <stdlib.h>
36379 FILE *f = fopen ("conftest.val", "w");
36382 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36384 long int i = longval ();
36385 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36387 fprintf (f, "%ld\n", i);
36391 unsigned long int i = ulongval ();
36392 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36394 fprintf (f, "%lu\n", i);
36396 return ferror (f) || fclose (f) != 0;
36402 rm -f conftest$ac_exeext
36403 if { (ac_try="$ac_link"
36404 case "(($ac_try" in
36405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36406 *) ac_try_echo=$ac_try;;
36408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36409 (eval "$ac_link") 2>&5
36411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36413 { (case "(($ac_try" in
36414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36415 *) ac_try_echo=$ac_try;;
36417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36418 (eval "$ac_try") 2>&5
36420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421 (exit $ac_status); }; }; then
36422 ac_cv_sizeof_long_int=`cat conftest.val`
36424 echo "$as_me: program exited with status $ac_status" >&5
36425 echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36428 ( exit $ac_status )
36429 if test "$ac_cv_type_long_int" = yes; then
36430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36431 See \`config.log' for more details." >&5
36432 echo "$as_me: error: cannot compute sizeof (long int)
36433 See \`config.log' for more details." >&2;}
36434 { (exit 77); exit 77; }; }
36436 ac_cv_sizeof_long_int=0
36439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36443 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36444 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36448 cat >>confdefs.h <<_ACEOF
36449 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36453 { echo "$as_me:$LINENO: checking for long long int" >&5
36454 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36455 if test "${ac_cv_type_long_long_int+set}" = set; then
36456 echo $ECHO_N "(cached) $ECHO_C" >&6
36458 cat >conftest.$ac_ext <<_ACEOF
36461 cat confdefs.h >>conftest.$ac_ext
36462 cat >>conftest.$ac_ext <<_ACEOF
36463 /* end confdefs.h. */
36464 $ac_includes_default
36465 typedef long long int ac__type_new_;
36469 if ((ac__type_new_ *) 0)
36471 if (sizeof (ac__type_new_))
36477 rm -f conftest.$ac_objext
36478 if { (ac_try="$ac_compile"
36479 case "(($ac_try" in
36480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36481 *) ac_try_echo=$ac_try;;
36483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36484 (eval "$ac_compile") 2>conftest.er1
36486 grep -v '^ *+' conftest.er1 >conftest.err
36488 cat conftest.err >&5
36489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490 (exit $ac_status); } && {
36491 test -z "$ac_cxx_werror_flag" ||
36492 test ! -s conftest.err
36493 } && test -s conftest.$ac_objext; then
36494 ac_cv_type_long_long_int=yes
36496 echo "$as_me: failed program was:" >&5
36497 sed 's/^/| /' conftest.$ac_ext >&5
36499 ac_cv_type_long_long_int=no
36502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36504 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36505 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36507 # The cast to long int works around a bug in the HP C Compiler
36508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36510 # This bug is HP SR number 8606223364.
36511 { echo "$as_me:$LINENO: checking size of long long int" >&5
36512 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36513 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36514 echo $ECHO_N "(cached) $ECHO_C" >&6
36516 if test "$cross_compiling" = yes; then
36517 # Depending upon the size, compute the lo and hi bounds.
36518 cat >conftest.$ac_ext <<_ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h. */
36524 $ac_includes_default
36525 typedef long long int ac__type_sizeof_;
36529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36536 rm -f conftest.$ac_objext
36537 if { (ac_try="$ac_compile"
36538 case "(($ac_try" in
36539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36540 *) ac_try_echo=$ac_try;;
36542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36543 (eval "$ac_compile") 2>conftest.er1
36545 grep -v '^ *+' conftest.er1 >conftest.err
36547 cat conftest.err >&5
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); } && {
36550 test -z "$ac_cxx_werror_flag" ||
36551 test ! -s conftest.err
36552 } && test -s conftest.$ac_objext; then
36555 cat >conftest.$ac_ext <<_ACEOF
36558 cat confdefs.h >>conftest.$ac_ext
36559 cat >>conftest.$ac_ext <<_ACEOF
36560 /* end confdefs.h. */
36561 $ac_includes_default
36562 typedef long long int ac__type_sizeof_;
36566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36573 rm -f conftest.$ac_objext
36574 if { (ac_try="$ac_compile"
36575 case "(($ac_try" in
36576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36577 *) ac_try_echo=$ac_try;;
36579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36580 (eval "$ac_compile") 2>conftest.er1
36582 grep -v '^ *+' conftest.er1 >conftest.err
36584 cat conftest.err >&5
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); } && {
36587 test -z "$ac_cxx_werror_flag" ||
36588 test ! -s conftest.err
36589 } && test -s conftest.$ac_objext; then
36590 ac_hi=$ac_mid; break
36592 echo "$as_me: failed program was:" >&5
36593 sed 's/^/| /' conftest.$ac_ext >&5
36595 ac_lo=`expr $ac_mid + 1`
36596 if test $ac_lo -le $ac_mid; then
36600 ac_mid=`expr 2 '*' $ac_mid + 1`
36603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36606 echo "$as_me: failed program was:" >&5
36607 sed 's/^/| /' conftest.$ac_ext >&5
36609 cat >conftest.$ac_ext <<_ACEOF
36612 cat confdefs.h >>conftest.$ac_ext
36613 cat >>conftest.$ac_ext <<_ACEOF
36614 /* end confdefs.h. */
36615 $ac_includes_default
36616 typedef long long int ac__type_sizeof_;
36620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36627 rm -f conftest.$ac_objext
36628 if { (ac_try="$ac_compile"
36629 case "(($ac_try" in
36630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36631 *) ac_try_echo=$ac_try;;
36633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36634 (eval "$ac_compile") 2>conftest.er1
36636 grep -v '^ *+' conftest.er1 >conftest.err
36638 cat conftest.err >&5
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); } && {
36641 test -z "$ac_cxx_werror_flag" ||
36642 test ! -s conftest.err
36643 } && test -s conftest.$ac_objext; then
36646 cat >conftest.$ac_ext <<_ACEOF
36649 cat confdefs.h >>conftest.$ac_ext
36650 cat >>conftest.$ac_ext <<_ACEOF
36651 /* end confdefs.h. */
36652 $ac_includes_default
36653 typedef long long int ac__type_sizeof_;
36657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36664 rm -f conftest.$ac_objext
36665 if { (ac_try="$ac_compile"
36666 case "(($ac_try" in
36667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36668 *) ac_try_echo=$ac_try;;
36670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36671 (eval "$ac_compile") 2>conftest.er1
36673 grep -v '^ *+' conftest.er1 >conftest.err
36675 cat conftest.err >&5
36676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36677 (exit $ac_status); } && {
36678 test -z "$ac_cxx_werror_flag" ||
36679 test ! -s conftest.err
36680 } && test -s conftest.$ac_objext; then
36681 ac_lo=$ac_mid; break
36683 echo "$as_me: failed program was:" >&5
36684 sed 's/^/| /' conftest.$ac_ext >&5
36686 ac_hi=`expr '(' $ac_mid ')' - 1`
36687 if test $ac_mid -le $ac_hi; then
36691 ac_mid=`expr 2 '*' $ac_mid`
36694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36697 echo "$as_me: failed program was:" >&5
36698 sed 's/^/| /' conftest.$ac_ext >&5
36703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36707 # Binary search between lo and hi bounds.
36708 while test "x$ac_lo" != "x$ac_hi"; do
36709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36710 cat >conftest.$ac_ext <<_ACEOF
36713 cat confdefs.h >>conftest.$ac_ext
36714 cat >>conftest.$ac_ext <<_ACEOF
36715 /* end confdefs.h. */
36716 $ac_includes_default
36717 typedef long long int ac__type_sizeof_;
36721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36728 rm -f conftest.$ac_objext
36729 if { (ac_try="$ac_compile"
36730 case "(($ac_try" in
36731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36732 *) ac_try_echo=$ac_try;;
36734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36735 (eval "$ac_compile") 2>conftest.er1
36737 grep -v '^ *+' conftest.er1 >conftest.err
36739 cat conftest.err >&5
36740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741 (exit $ac_status); } && {
36742 test -z "$ac_cxx_werror_flag" ||
36743 test ! -s conftest.err
36744 } && test -s conftest.$ac_objext; then
36747 echo "$as_me: failed program was:" >&5
36748 sed 's/^/| /' conftest.$ac_ext >&5
36750 ac_lo=`expr '(' $ac_mid ')' + 1`
36753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36756 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36757 '') if test "$ac_cv_type_long_long_int" = yes; then
36758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36759 See \`config.log' for more details." >&5
36760 echo "$as_me: error: cannot compute sizeof (long long int)
36761 See \`config.log' for more details." >&2;}
36762 { (exit 77); exit 77; }; }
36764 ac_cv_sizeof_long_long_int=0
36768 cat >conftest.$ac_ext <<_ACEOF
36771 cat confdefs.h >>conftest.$ac_ext
36772 cat >>conftest.$ac_ext <<_ACEOF
36773 /* end confdefs.h. */
36774 $ac_includes_default
36775 typedef long long int ac__type_sizeof_;
36776 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36777 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36779 #include <stdlib.h>
36784 FILE *f = fopen ("conftest.val", "w");
36787 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36789 long int i = longval ();
36790 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36792 fprintf (f, "%ld\n", i);
36796 unsigned long int i = ulongval ();
36797 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36799 fprintf (f, "%lu\n", i);
36801 return ferror (f) || fclose (f) != 0;
36807 rm -f conftest$ac_exeext
36808 if { (ac_try="$ac_link"
36809 case "(($ac_try" in
36810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36811 *) ac_try_echo=$ac_try;;
36813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36814 (eval "$ac_link") 2>&5
36816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36818 { (case "(($ac_try" in
36819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36820 *) ac_try_echo=$ac_try;;
36822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36823 (eval "$ac_try") 2>&5
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); }; }; then
36827 ac_cv_sizeof_long_long_int=`cat conftest.val`
36829 echo "$as_me: program exited with status $ac_status" >&5
36830 echo "$as_me: failed program was:" >&5
36831 sed 's/^/| /' conftest.$ac_ext >&5
36833 ( exit $ac_status )
36834 if test "$ac_cv_type_long_long_int" = yes; then
36835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36836 See \`config.log' for more details." >&5
36837 echo "$as_me: error: cannot compute sizeof (long long int)
36838 See \`config.log' for more details." >&2;}
36839 { (exit 77); exit 77; }; }
36841 ac_cv_sizeof_long_long_int=0
36844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36848 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36849 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36853 cat >>confdefs.h <<_ACEOF
36854 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36858 { echo "$as_me:$LINENO: checking for int *" >&5
36859 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36860 if test "${ac_cv_type_int_p+set}" = set; then
36861 echo $ECHO_N "(cached) $ECHO_C" >&6
36863 cat >conftest.$ac_ext <<_ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h. */
36869 $ac_includes_default
36870 typedef int * ac__type_new_;
36874 if ((ac__type_new_ *) 0)
36876 if (sizeof (ac__type_new_))
36882 rm -f conftest.$ac_objext
36883 if { (ac_try="$ac_compile"
36884 case "(($ac_try" in
36885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36886 *) ac_try_echo=$ac_try;;
36888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36889 (eval "$ac_compile") 2>conftest.er1
36891 grep -v '^ *+' conftest.er1 >conftest.err
36893 cat conftest.err >&5
36894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895 (exit $ac_status); } && {
36896 test -z "$ac_cxx_werror_flag" ||
36897 test ! -s conftest.err
36898 } && test -s conftest.$ac_objext; then
36899 ac_cv_type_int_p=yes
36901 echo "$as_me: failed program was:" >&5
36902 sed 's/^/| /' conftest.$ac_ext >&5
36904 ac_cv_type_int_p=no
36907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36909 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36910 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36912 # The cast to long int works around a bug in the HP C Compiler
36913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36915 # This bug is HP SR number 8606223364.
36916 { echo "$as_me:$LINENO: checking size of int *" >&5
36917 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36918 if test "${ac_cv_sizeof_int_p+set}" = set; then
36919 echo $ECHO_N "(cached) $ECHO_C" >&6
36921 if test "$cross_compiling" = yes; then
36922 # Depending upon the size, compute the lo and hi bounds.
36923 cat >conftest.$ac_ext <<_ACEOF
36926 cat confdefs.h >>conftest.$ac_ext
36927 cat >>conftest.$ac_ext <<_ACEOF
36928 /* end confdefs.h. */
36929 $ac_includes_default
36930 typedef int * ac__type_sizeof_;
36934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36941 rm -f conftest.$ac_objext
36942 if { (ac_try="$ac_compile"
36943 case "(($ac_try" in
36944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36945 *) ac_try_echo=$ac_try;;
36947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36948 (eval "$ac_compile") 2>conftest.er1
36950 grep -v '^ *+' conftest.er1 >conftest.err
36952 cat conftest.err >&5
36953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954 (exit $ac_status); } && {
36955 test -z "$ac_cxx_werror_flag" ||
36956 test ! -s conftest.err
36957 } && test -s conftest.$ac_objext; then
36960 cat >conftest.$ac_ext <<_ACEOF
36963 cat confdefs.h >>conftest.$ac_ext
36964 cat >>conftest.$ac_ext <<_ACEOF
36965 /* end confdefs.h. */
36966 $ac_includes_default
36967 typedef int * ac__type_sizeof_;
36971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36978 rm -f conftest.$ac_objext
36979 if { (ac_try="$ac_compile"
36980 case "(($ac_try" in
36981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36982 *) ac_try_echo=$ac_try;;
36984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36985 (eval "$ac_compile") 2>conftest.er1
36987 grep -v '^ *+' conftest.er1 >conftest.err
36989 cat conftest.err >&5
36990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991 (exit $ac_status); } && {
36992 test -z "$ac_cxx_werror_flag" ||
36993 test ! -s conftest.err
36994 } && test -s conftest.$ac_objext; then
36995 ac_hi=$ac_mid; break
36997 echo "$as_me: failed program was:" >&5
36998 sed 's/^/| /' conftest.$ac_ext >&5
37000 ac_lo=`expr $ac_mid + 1`
37001 if test $ac_lo -le $ac_mid; then
37005 ac_mid=`expr 2 '*' $ac_mid + 1`
37008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37011 echo "$as_me: failed program was:" >&5
37012 sed 's/^/| /' conftest.$ac_ext >&5
37014 cat >conftest.$ac_ext <<_ACEOF
37017 cat confdefs.h >>conftest.$ac_ext
37018 cat >>conftest.$ac_ext <<_ACEOF
37019 /* end confdefs.h. */
37020 $ac_includes_default
37021 typedef int * ac__type_sizeof_;
37025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37032 rm -f conftest.$ac_objext
37033 if { (ac_try="$ac_compile"
37034 case "(($ac_try" in
37035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37036 *) ac_try_echo=$ac_try;;
37038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37039 (eval "$ac_compile") 2>conftest.er1
37041 grep -v '^ *+' conftest.er1 >conftest.err
37043 cat conftest.err >&5
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); } && {
37046 test -z "$ac_cxx_werror_flag" ||
37047 test ! -s conftest.err
37048 } && test -s conftest.$ac_objext; then
37051 cat >conftest.$ac_ext <<_ACEOF
37054 cat confdefs.h >>conftest.$ac_ext
37055 cat >>conftest.$ac_ext <<_ACEOF
37056 /* end confdefs.h. */
37057 $ac_includes_default
37058 typedef int * ac__type_sizeof_;
37062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37069 rm -f conftest.$ac_objext
37070 if { (ac_try="$ac_compile"
37071 case "(($ac_try" in
37072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073 *) ac_try_echo=$ac_try;;
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076 (eval "$ac_compile") 2>conftest.er1
37078 grep -v '^ *+' conftest.er1 >conftest.err
37080 cat conftest.err >&5
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); } && {
37083 test -z "$ac_cxx_werror_flag" ||
37084 test ! -s conftest.err
37085 } && test -s conftest.$ac_objext; then
37086 ac_lo=$ac_mid; break
37088 echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37091 ac_hi=`expr '(' $ac_mid ')' - 1`
37092 if test $ac_mid -le $ac_hi; then
37096 ac_mid=`expr 2 '*' $ac_mid`
37099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37102 echo "$as_me: failed program was:" >&5
37103 sed 's/^/| /' conftest.$ac_ext >&5
37108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37112 # Binary search between lo and hi bounds.
37113 while test "x$ac_lo" != "x$ac_hi"; do
37114 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37115 cat >conftest.$ac_ext <<_ACEOF
37118 cat confdefs.h >>conftest.$ac_ext
37119 cat >>conftest.$ac_ext <<_ACEOF
37120 /* end confdefs.h. */
37121 $ac_includes_default
37122 typedef int * ac__type_sizeof_;
37126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37133 rm -f conftest.$ac_objext
37134 if { (ac_try="$ac_compile"
37135 case "(($ac_try" in
37136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37137 *) ac_try_echo=$ac_try;;
37139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37140 (eval "$ac_compile") 2>conftest.er1
37142 grep -v '^ *+' conftest.er1 >conftest.err
37144 cat conftest.err >&5
37145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37146 (exit $ac_status); } && {
37147 test -z "$ac_cxx_werror_flag" ||
37148 test ! -s conftest.err
37149 } && test -s conftest.$ac_objext; then
37152 echo "$as_me: failed program was:" >&5
37153 sed 's/^/| /' conftest.$ac_ext >&5
37155 ac_lo=`expr '(' $ac_mid ')' + 1`
37158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37161 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37162 '') if test "$ac_cv_type_int_p" = yes; then
37163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37164 See \`config.log' for more details." >&5
37165 echo "$as_me: error: cannot compute sizeof (int *)
37166 See \`config.log' for more details." >&2;}
37167 { (exit 77); exit 77; }; }
37169 ac_cv_sizeof_int_p=0
37173 cat >conftest.$ac_ext <<_ACEOF
37176 cat confdefs.h >>conftest.$ac_ext
37177 cat >>conftest.$ac_ext <<_ACEOF
37178 /* end confdefs.h. */
37179 $ac_includes_default
37180 typedef int * ac__type_sizeof_;
37181 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37182 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37184 #include <stdlib.h>
37189 FILE *f = fopen ("conftest.val", "w");
37192 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37194 long int i = longval ();
37195 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37197 fprintf (f, "%ld\n", i);
37201 unsigned long int i = ulongval ();
37202 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37204 fprintf (f, "%lu\n", i);
37206 return ferror (f) || fclose (f) != 0;
37212 rm -f conftest$ac_exeext
37213 if { (ac_try="$ac_link"
37214 case "(($ac_try" in
37215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37216 *) ac_try_echo=$ac_try;;
37218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37219 (eval "$ac_link") 2>&5
37221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37223 { (case "(($ac_try" in
37224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37225 *) ac_try_echo=$ac_try;;
37227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37228 (eval "$ac_try") 2>&5
37230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231 (exit $ac_status); }; }; then
37232 ac_cv_sizeof_int_p=`cat conftest.val`
37234 echo "$as_me: program exited with status $ac_status" >&5
37235 echo "$as_me: failed program was:" >&5
37236 sed 's/^/| /' conftest.$ac_ext >&5
37238 ( exit $ac_status )
37239 if test "$ac_cv_type_int_p" = yes; then
37240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37241 See \`config.log' for more details." >&5
37242 echo "$as_me: error: cannot compute sizeof (int *)
37243 See \`config.log' for more details." >&2;}
37244 { (exit 77); exit 77; }; }
37246 ac_cv_sizeof_int_p=0
37249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37253 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37254 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37258 cat >>confdefs.h <<_ACEOF
37259 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37264 { echo "$as_me:$LINENO: checking for u_int type" >&5
37265 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37266 if test "${ac_cv_have_u_int+set}" = set; then
37267 echo $ECHO_N "(cached) $ECHO_C" >&6
37270 cat >conftest.$ac_ext <<_ACEOF
37273 cat confdefs.h >>conftest.$ac_ext
37274 cat >>conftest.$ac_ext <<_ACEOF
37275 /* end confdefs.h. */
37277 #include <sys/types.h>
37289 rm -f conftest.$ac_objext
37290 if { (ac_try="$ac_compile"
37291 case "(($ac_try" in
37292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37293 *) ac_try_echo=$ac_try;;
37295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37296 (eval "$ac_compile") 2>conftest.er1
37298 grep -v '^ *+' conftest.er1 >conftest.err
37300 cat conftest.err >&5
37301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302 (exit $ac_status); } && {
37303 test -z "$ac_cxx_werror_flag" ||
37304 test ! -s conftest.err
37305 } && test -s conftest.$ac_objext; then
37307 ac_cv_have_u_int="yes"
37310 echo "$as_me: failed program was:" >&5
37311 sed 's/^/| /' conftest.$ac_ext >&5
37314 ac_cv_have_u_int="no"
37319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37323 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37324 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37325 if test "x$ac_cv_have_u_int" = "xyes" ; then
37326 cat >>confdefs.h <<\_ACEOF
37327 #define HAVE_U_INT 1
37333 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37334 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37335 if test "${ac_cv_have_intmax_t+set}" = set; then
37336 echo $ECHO_N "(cached) $ECHO_C" >&6
37339 cat >conftest.$ac_ext <<_ACEOF
37342 cat confdefs.h >>conftest.$ac_ext
37343 cat >>conftest.$ac_ext <<_ACEOF
37344 /* end confdefs.h. */
37346 #include <sys/types.h>
37358 rm -f conftest.$ac_objext
37359 if { (ac_try="$ac_compile"
37360 case "(($ac_try" in
37361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37362 *) ac_try_echo=$ac_try;;
37364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37365 (eval "$ac_compile") 2>conftest.er1
37367 grep -v '^ *+' conftest.er1 >conftest.err
37369 cat conftest.err >&5
37370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371 (exit $ac_status); } && {
37372 test -z "$ac_cxx_werror_flag" ||
37373 test ! -s conftest.err
37374 } && test -s conftest.$ac_objext; then
37376 ac_cv_have_intmax_t="yes"
37379 echo "$as_me: failed program was:" >&5
37380 sed 's/^/| /' conftest.$ac_ext >&5
37383 cat >conftest.$ac_ext <<_ACEOF
37386 cat confdefs.h >>conftest.$ac_ext
37387 cat >>conftest.$ac_ext <<_ACEOF
37388 /* end confdefs.h. */
37390 #include <stdint.h>
37402 rm -f conftest.$ac_objext
37403 if { (ac_try="$ac_compile"
37404 case "(($ac_try" in
37405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37406 *) ac_try_echo=$ac_try;;
37408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37409 (eval "$ac_compile") 2>conftest.er1
37411 grep -v '^ *+' conftest.er1 >conftest.err
37413 cat conftest.err >&5
37414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); } && {
37416 test -z "$ac_cxx_werror_flag" ||
37417 test ! -s conftest.err
37418 } && test -s conftest.$ac_objext; then
37420 ac_cv_have_intmax_t="yes"
37423 echo "$as_me: failed program was:" >&5
37424 sed 's/^/| /' conftest.$ac_ext >&5
37427 ac_cv_have_intmax_t="no"
37432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37441 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37442 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37443 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37444 cat >>confdefs.h <<\_ACEOF
37445 #define HAVE_INTMAX_T 1
37451 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37452 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37453 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37457 cat >conftest.$ac_ext <<_ACEOF
37460 cat confdefs.h >>conftest.$ac_ext
37461 cat >>conftest.$ac_ext <<_ACEOF
37462 /* end confdefs.h. */
37464 #include <sys/types.h>
37470 u_intmax_t a; a = 1;
37476 rm -f conftest.$ac_objext
37477 if { (ac_try="$ac_compile"
37478 case "(($ac_try" in
37479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37480 *) ac_try_echo=$ac_try;;
37482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37483 (eval "$ac_compile") 2>conftest.er1
37485 grep -v '^ *+' conftest.er1 >conftest.err
37487 cat conftest.err >&5
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); } && {
37490 test -z "$ac_cxx_werror_flag" ||
37491 test ! -s conftest.err
37492 } && test -s conftest.$ac_objext; then
37494 ac_cv_have_u_intmax_t="yes"
37497 echo "$as_me: failed program was:" >&5
37498 sed 's/^/| /' conftest.$ac_ext >&5
37501 cat >conftest.$ac_ext <<_ACEOF
37504 cat confdefs.h >>conftest.$ac_ext
37505 cat >>conftest.$ac_ext <<_ACEOF
37506 /* end confdefs.h. */
37508 #include <stdint.h>
37514 u_intmax_t a; a = 1;
37520 rm -f conftest.$ac_objext
37521 if { (ac_try="$ac_compile"
37522 case "(($ac_try" in
37523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37524 *) ac_try_echo=$ac_try;;
37526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37527 (eval "$ac_compile") 2>conftest.er1
37529 grep -v '^ *+' conftest.er1 >conftest.err
37531 cat conftest.err >&5
37532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533 (exit $ac_status); } && {
37534 test -z "$ac_cxx_werror_flag" ||
37535 test ! -s conftest.err
37536 } && test -s conftest.$ac_objext; then
37538 ac_cv_have_u_intmax_t="yes"
37541 echo "$as_me: failed program was:" >&5
37542 sed 's/^/| /' conftest.$ac_ext >&5
37545 ac_cv_have_u_intmax_t="no"
37550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37559 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37560 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37561 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37562 cat >>confdefs.h <<\_ACEOF
37563 #define HAVE_U_INTMAX_T 1
37569 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37570 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37571 if test "${ac_cv_have_intxx_t+set}" = set; then
37572 echo $ECHO_N "(cached) $ECHO_C" >&6
37575 cat >conftest.$ac_ext <<_ACEOF
37578 cat confdefs.h >>conftest.$ac_ext
37579 cat >>conftest.$ac_ext <<_ACEOF
37580 /* end confdefs.h. */
37582 #include <sys/types.h>
37588 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37594 rm -f conftest.$ac_objext
37595 if { (ac_try="$ac_compile"
37596 case "(($ac_try" in
37597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37598 *) ac_try_echo=$ac_try;;
37600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37601 (eval "$ac_compile") 2>conftest.er1
37603 grep -v '^ *+' conftest.er1 >conftest.err
37605 cat conftest.err >&5
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); } && {
37608 test -z "$ac_cxx_werror_flag" ||
37609 test ! -s conftest.err
37610 } && test -s conftest.$ac_objext; then
37612 ac_cv_have_intxx_t="yes"
37615 echo "$as_me: failed program was:" >&5
37616 sed 's/^/| /' conftest.$ac_ext >&5
37619 ac_cv_have_intxx_t="no"
37624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37628 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37629 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37630 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37631 cat >>confdefs.h <<\_ACEOF
37632 #define HAVE_INTXX_T 1
37638 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37639 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37640 if test "${ac_cv_have_int64_t+set}" = set; then
37641 echo $ECHO_N "(cached) $ECHO_C" >&6
37644 cat >conftest.$ac_ext <<_ACEOF
37647 cat confdefs.h >>conftest.$ac_ext
37648 cat >>conftest.$ac_ext <<_ACEOF
37649 /* end confdefs.h. */
37651 #include <sys/types.h>
37663 rm -f conftest.$ac_objext
37664 if { (ac_try="$ac_compile"
37665 case "(($ac_try" in
37666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37667 *) ac_try_echo=$ac_try;;
37669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37670 (eval "$ac_compile") 2>conftest.er1
37672 grep -v '^ *+' conftest.er1 >conftest.err
37674 cat conftest.err >&5
37675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676 (exit $ac_status); } && {
37677 test -z "$ac_cxx_werror_flag" ||
37678 test ! -s conftest.err
37679 } && test -s conftest.$ac_objext; then
37681 ac_cv_have_int64_t="yes"
37684 echo "$as_me: failed program was:" >&5
37685 sed 's/^/| /' conftest.$ac_ext >&5
37688 ac_cv_have_int64_t="no"
37693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37697 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37698 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37699 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37700 cat >>confdefs.h <<\_ACEOF
37701 #define HAVE_INT64_T 1
37707 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37708 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37709 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37710 echo $ECHO_N "(cached) $ECHO_C" >&6
37713 cat >conftest.$ac_ext <<_ACEOF
37716 cat confdefs.h >>conftest.$ac_ext
37717 cat >>conftest.$ac_ext <<_ACEOF
37718 /* end confdefs.h. */
37720 #include <sys/types.h>
37726 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37732 rm -f conftest.$ac_objext
37733 if { (ac_try="$ac_compile"
37734 case "(($ac_try" in
37735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37736 *) ac_try_echo=$ac_try;;
37738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37739 (eval "$ac_compile") 2>conftest.er1
37741 grep -v '^ *+' conftest.er1 >conftest.err
37743 cat conftest.err >&5
37744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37745 (exit $ac_status); } && {
37746 test -z "$ac_cxx_werror_flag" ||
37747 test ! -s conftest.err
37748 } && test -s conftest.$ac_objext; then
37750 ac_cv_have_u_intxx_t="yes"
37753 echo "$as_me: failed program was:" >&5
37754 sed 's/^/| /' conftest.$ac_ext >&5
37757 ac_cv_have_u_intxx_t="no"
37762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37766 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37767 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37768 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37769 cat >>confdefs.h <<\_ACEOF
37770 #define HAVE_U_INTXX_T 1
37776 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37777 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37778 if test "${ac_cv_have_u_int64_t+set}" = set; then
37779 echo $ECHO_N "(cached) $ECHO_C" >&6
37782 cat >conftest.$ac_ext <<_ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h. */
37789 #include <sys/types.h>
37795 u_int64_t a; a = 1;
37801 rm -f conftest.$ac_objext
37802 if { (ac_try="$ac_compile"
37803 case "(($ac_try" in
37804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37805 *) ac_try_echo=$ac_try;;
37807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37808 (eval "$ac_compile") 2>conftest.er1
37810 grep -v '^ *+' conftest.er1 >conftest.err
37812 cat conftest.err >&5
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); } && {
37815 test -z "$ac_cxx_werror_flag" ||
37816 test ! -s conftest.err
37817 } && test -s conftest.$ac_objext; then
37819 ac_cv_have_u_int64_t="yes"
37822 echo "$as_me: failed program was:" >&5
37823 sed 's/^/| /' conftest.$ac_ext >&5
37826 ac_cv_have_u_int64_t="no"
37831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37835 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37836 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37837 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37838 cat >>confdefs.h <<\_ACEOF
37839 #define HAVE_U_INT64_T 1
37845 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37846 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37848 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37849 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37850 cat >conftest.$ac_ext <<_ACEOF
37853 cat confdefs.h >>conftest.$ac_ext
37854 cat >>conftest.$ac_ext <<_ACEOF
37855 /* end confdefs.h. */
37857 #include <sys/bitypes.h>
37863 int8_t a; int16_t b; int32_t c;
37864 u_int8_t e; u_int16_t f; u_int32_t g;
37865 a = b = c = e = f = g = 1;
37871 rm -f conftest.$ac_objext
37872 if { (ac_try="$ac_compile"
37873 case "(($ac_try" in
37874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37875 *) ac_try_echo=$ac_try;;
37877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37878 (eval "$ac_compile") 2>conftest.er1
37880 grep -v '^ *+' conftest.er1 >conftest.err
37882 cat conftest.err >&5
37883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37884 (exit $ac_status); } && {
37885 test -z "$ac_cxx_werror_flag" ||
37886 test ! -s conftest.err
37887 } && test -s conftest.$ac_objext; then
37889 cat >>confdefs.h <<\_ACEOF
37890 #define HAVE_U_INTXX_T 1
37893 cat >>confdefs.h <<\_ACEOF
37894 #define HAVE_INTXX_T 1
37897 cat >>confdefs.h <<\_ACEOF
37898 #define HAVE_SYS_BITYPES_H 1
37901 { echo "$as_me:$LINENO: result: yes" >&5
37902 echo "${ECHO_T}yes" >&6; }
37905 echo "$as_me: failed program was:" >&5
37906 sed 's/^/| /' conftest.$ac_ext >&5
37909 { echo "$as_me:$LINENO: result: no" >&5
37910 echo "${ECHO_T}no" >&6; }
37915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37918 if test -z "$have_u_intxx_t" ; then
37919 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37920 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37921 if test "${ac_cv_have_uintxx_t+set}" = set; then
37922 echo $ECHO_N "(cached) $ECHO_C" >&6
37925 cat >conftest.$ac_ext <<_ACEOF
37928 cat confdefs.h >>conftest.$ac_ext
37929 cat >>conftest.$ac_ext <<_ACEOF
37930 /* end confdefs.h. */
37932 #include <sys/types.h>
37938 uint8_t a; uint16_t b;
37939 uint32_t c; a = b = c = 1;
37945 rm -f conftest.$ac_objext
37946 if { (ac_try="$ac_compile"
37947 case "(($ac_try" in
37948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37949 *) ac_try_echo=$ac_try;;
37951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37952 (eval "$ac_compile") 2>conftest.er1
37954 grep -v '^ *+' conftest.er1 >conftest.err
37956 cat conftest.err >&5
37957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958 (exit $ac_status); } && {
37959 test -z "$ac_cxx_werror_flag" ||
37960 test ! -s conftest.err
37961 } && test -s conftest.$ac_objext; then
37963 ac_cv_have_uintxx_t="yes"
37966 echo "$as_me: failed program was:" >&5
37967 sed 's/^/| /' conftest.$ac_ext >&5
37970 ac_cv_have_uintxx_t="no"
37975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37979 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37980 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37981 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37982 cat >>confdefs.h <<\_ACEOF
37983 #define HAVE_UINTXX_T 1
37989 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37990 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37992 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37993 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37994 cat >conftest.$ac_ext <<_ACEOF
37997 cat confdefs.h >>conftest.$ac_ext
37998 cat >>conftest.$ac_ext <<_ACEOF
37999 /* end confdefs.h. */
38001 #include <sys/bitypes.h>
38007 int64_t a; u_int64_t b;
38014 rm -f conftest.$ac_objext
38015 if { (ac_try="$ac_compile"
38016 case "(($ac_try" in
38017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38018 *) ac_try_echo=$ac_try;;
38020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38021 (eval "$ac_compile") 2>conftest.er1
38023 grep -v '^ *+' conftest.er1 >conftest.err
38025 cat conftest.err >&5
38026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38027 (exit $ac_status); } && {
38028 test -z "$ac_cxx_werror_flag" ||
38029 test ! -s conftest.err
38030 } && test -s conftest.$ac_objext; then
38032 cat >>confdefs.h <<\_ACEOF
38033 #define HAVE_U_INT64_T 1
38036 cat >>confdefs.h <<\_ACEOF
38037 #define HAVE_INT64_T 1
38040 { echo "$as_me:$LINENO: result: yes" >&5
38041 echo "${ECHO_T}yes" >&6; }
38044 echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38048 { echo "$as_me:$LINENO: result: no" >&5
38049 echo "${ECHO_T}no" >&6; }
38054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38057 if (test -z "$have_uintxx_t" && \
38058 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38060 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38061 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38062 cat >conftest.$ac_ext <<_ACEOF
38065 cat confdefs.h >>conftest.$ac_ext
38066 cat >>conftest.$ac_ext <<_ACEOF
38067 /* end confdefs.h. */
38069 #include <sys/bitypes.h>
38075 uint8_t a; uint16_t b;
38076 uint32_t c; a = b = c = 1;
38082 rm -f conftest.$ac_objext
38083 if { (ac_try="$ac_compile"
38084 case "(($ac_try" in
38085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38086 *) ac_try_echo=$ac_try;;
38088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38089 (eval "$ac_compile") 2>conftest.er1
38091 grep -v '^ *+' conftest.er1 >conftest.err
38093 cat conftest.err >&5
38094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095 (exit $ac_status); } && {
38096 test -z "$ac_cxx_werror_flag" ||
38097 test ! -s conftest.err
38098 } && test -s conftest.$ac_objext; then
38100 cat >>confdefs.h <<\_ACEOF
38101 #define HAVE_UINTXX_T 1
38104 { echo "$as_me:$LINENO: result: yes" >&5
38105 echo "${ECHO_T}yes" >&6; }
38108 echo "$as_me: failed program was:" >&5
38109 sed 's/^/| /' conftest.$ac_ext >&5
38112 { echo "$as_me:$LINENO: result: no" >&5
38113 echo "${ECHO_T}no" >&6; }
38118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38154 echo $ECHO_N "(cached) $ECHO_C" >&6
38156 cat >conftest.$ac_ext <<_ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h. */
38162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38164 #define $ac_func innocuous_$ac_func
38166 /* System header to define __stub macros and hopefully few prototypes,
38167 which can conflict with char $ac_func (); below.
38168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38169 <limits.h> exists even on freestanding compilers. */
38172 # include <limits.h>
38174 # include <assert.h>
38179 /* Override any GCC internal prototype to avoid an error.
38180 Use char because int might match the return type of a GCC
38181 builtin and then its argument prototype would still apply. */
38186 /* The GNU C library defines this for functions which it implements
38187 to always fail with ENOSYS. Some functions are actually named
38188 something starting with __ and the normal name is an alias. */
38189 #if defined __stub_$ac_func || defined __stub___$ac_func
38196 return $ac_func ();
38201 rm -f conftest.$ac_objext conftest$ac_exeext
38202 if { (ac_try="$ac_link"
38203 case "(($ac_try" in
38204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38205 *) ac_try_echo=$ac_try;;
38207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38208 (eval "$ac_link") 2>conftest.er1
38210 grep -v '^ *+' conftest.er1 >conftest.err
38212 cat conftest.err >&5
38213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214 (exit $ac_status); } && {
38215 test -z "$ac_cxx_werror_flag" ||
38216 test ! -s conftest.err
38217 } && test -s conftest$ac_exeext &&
38218 $as_test_x conftest$ac_exeext; then
38219 eval "$as_ac_var=yes"
38221 echo "$as_me: failed program was:" >&5
38222 sed 's/^/| /' conftest.$ac_ext >&5
38224 eval "$as_ac_var=no"
38227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38228 conftest$ac_exeext conftest.$ac_ext
38230 ac_res=`eval echo '${'$as_ac_var'}'`
38231 { echo "$as_me:$LINENO: result: $ac_res" >&5
38232 echo "${ECHO_T}$ac_res" >&6; }
38233 if test `eval echo '${'$as_ac_var'}'` = yes; then
38234 cat >>confdefs.h <<_ACEOF
38235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38239 echo 'configure: cannot find needed function.'; exit 1
38246 for ac_func in fchdir
38248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38252 echo $ECHO_N "(cached) $ECHO_C" >&6
38254 cat >conftest.$ac_ext <<_ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h. */
38260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38262 #define $ac_func innocuous_$ac_func
38264 /* System header to define __stub macros and hopefully few prototypes,
38265 which can conflict with char $ac_func (); below.
38266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38267 <limits.h> exists even on freestanding compilers. */
38270 # include <limits.h>
38272 # include <assert.h>
38277 /* Override any GCC internal prototype to avoid an error.
38278 Use char because int might match the return type of a GCC
38279 builtin and then its argument prototype would still apply. */
38284 /* The GNU C library defines this for functions which it implements
38285 to always fail with ENOSYS. Some functions are actually named
38286 something starting with __ and the normal name is an alias. */
38287 #if defined __stub_$ac_func || defined __stub___$ac_func
38294 return $ac_func ();
38299 rm -f conftest.$ac_objext conftest$ac_exeext
38300 if { (ac_try="$ac_link"
38301 case "(($ac_try" in
38302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38303 *) ac_try_echo=$ac_try;;
38305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38306 (eval "$ac_link") 2>conftest.er1
38308 grep -v '^ *+' conftest.er1 >conftest.err
38310 cat conftest.err >&5
38311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38312 (exit $ac_status); } && {
38313 test -z "$ac_cxx_werror_flag" ||
38314 test ! -s conftest.err
38315 } && test -s conftest$ac_exeext &&
38316 $as_test_x conftest$ac_exeext; then
38317 eval "$as_ac_var=yes"
38319 echo "$as_me: failed program was:" >&5
38320 sed 's/^/| /' conftest.$ac_ext >&5
38322 eval "$as_ac_var=no"
38325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38326 conftest$ac_exeext conftest.$ac_ext
38328 ac_res=`eval echo '${'$as_ac_var'}'`
38329 { echo "$as_me:$LINENO: result: $ac_res" >&5
38330 echo "${ECHO_T}$ac_res" >&6; }
38331 if test `eval echo '${'$as_ac_var'}'` = yes; then
38332 cat >>confdefs.h <<_ACEOF
38333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38335 cat >>confdefs.h <<\_ACEOF
38336 #define HAVE_FCHDIR 1
38343 for ac_func in strtoll
38345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38349 echo $ECHO_N "(cached) $ECHO_C" >&6
38351 cat >conftest.$ac_ext <<_ACEOF
38354 cat confdefs.h >>conftest.$ac_ext
38355 cat >>conftest.$ac_ext <<_ACEOF
38356 /* end confdefs.h. */
38357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38359 #define $ac_func innocuous_$ac_func
38361 /* System header to define __stub macros and hopefully few prototypes,
38362 which can conflict with char $ac_func (); below.
38363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38364 <limits.h> exists even on freestanding compilers. */
38367 # include <limits.h>
38369 # include <assert.h>
38374 /* Override any GCC internal prototype to avoid an error.
38375 Use char because int might match the return type of a GCC
38376 builtin and then its argument prototype would still apply. */
38381 /* The GNU C library defines this for functions which it implements
38382 to always fail with ENOSYS. Some functions are actually named
38383 something starting with __ and the normal name is an alias. */
38384 #if defined __stub_$ac_func || defined __stub___$ac_func
38391 return $ac_func ();
38396 rm -f conftest.$ac_objext conftest$ac_exeext
38397 if { (ac_try="$ac_link"
38398 case "(($ac_try" in
38399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38400 *) ac_try_echo=$ac_try;;
38402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38403 (eval "$ac_link") 2>conftest.er1
38405 grep -v '^ *+' conftest.er1 >conftest.err
38407 cat conftest.err >&5
38408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38409 (exit $ac_status); } && {
38410 test -z "$ac_cxx_werror_flag" ||
38411 test ! -s conftest.err
38412 } && test -s conftest$ac_exeext &&
38413 $as_test_x conftest$ac_exeext; then
38414 eval "$as_ac_var=yes"
38416 echo "$as_me: failed program was:" >&5
38417 sed 's/^/| /' conftest.$ac_ext >&5
38419 eval "$as_ac_var=no"
38422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38423 conftest$ac_exeext conftest.$ac_ext
38425 ac_res=`eval echo '${'$as_ac_var'}'`
38426 { echo "$as_me:$LINENO: result: $ac_res" >&5
38427 echo "${ECHO_T}$ac_res" >&6; }
38428 if test `eval echo '${'$as_ac_var'}'` = yes; then
38429 cat >>confdefs.h <<_ACEOF
38430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38432 cat >>confdefs.h <<\_ACEOF
38433 #define HAVE_STRTOLL 1
38440 for ac_func in posix_fadvise
38442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38446 echo $ECHO_N "(cached) $ECHO_C" >&6
38448 cat >conftest.$ac_ext <<_ACEOF
38451 cat confdefs.h >>conftest.$ac_ext
38452 cat >>conftest.$ac_ext <<_ACEOF
38453 /* end confdefs.h. */
38454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38456 #define $ac_func innocuous_$ac_func
38458 /* System header to define __stub macros and hopefully few prototypes,
38459 which can conflict with char $ac_func (); below.
38460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38461 <limits.h> exists even on freestanding compilers. */
38464 # include <limits.h>
38466 # include <assert.h>
38471 /* Override any GCC internal prototype to avoid an error.
38472 Use char because int might match the return type of a GCC
38473 builtin and then its argument prototype would still apply. */
38478 /* The GNU C library defines this for functions which it implements
38479 to always fail with ENOSYS. Some functions are actually named
38480 something starting with __ and the normal name is an alias. */
38481 #if defined __stub_$ac_func || defined __stub___$ac_func
38488 return $ac_func ();
38493 rm -f conftest.$ac_objext conftest$ac_exeext
38494 if { (ac_try="$ac_link"
38495 case "(($ac_try" in
38496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38497 *) ac_try_echo=$ac_try;;
38499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38500 (eval "$ac_link") 2>conftest.er1
38502 grep -v '^ *+' conftest.er1 >conftest.err
38504 cat conftest.err >&5
38505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506 (exit $ac_status); } && {
38507 test -z "$ac_cxx_werror_flag" ||
38508 test ! -s conftest.err
38509 } && test -s conftest$ac_exeext &&
38510 $as_test_x conftest$ac_exeext; then
38511 eval "$as_ac_var=yes"
38513 echo "$as_me: failed program was:" >&5
38514 sed 's/^/| /' conftest.$ac_ext >&5
38516 eval "$as_ac_var=no"
38519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38520 conftest$ac_exeext conftest.$ac_ext
38522 ac_res=`eval echo '${'$as_ac_var'}'`
38523 { echo "$as_me:$LINENO: result: $ac_res" >&5
38524 echo "${ECHO_T}$ac_res" >&6; }
38525 if test `eval echo '${'$as_ac_var'}'` = yes; then
38526 cat >>confdefs.h <<_ACEOF
38527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38534 for ac_func in fdatasync
38536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38540 echo $ECHO_N "(cached) $ECHO_C" >&6
38542 cat >conftest.$ac_ext <<_ACEOF
38545 cat confdefs.h >>conftest.$ac_ext
38546 cat >>conftest.$ac_ext <<_ACEOF
38547 /* end confdefs.h. */
38548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38550 #define $ac_func innocuous_$ac_func
38552 /* System header to define __stub macros and hopefully few prototypes,
38553 which can conflict with char $ac_func (); below.
38554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38555 <limits.h> exists even on freestanding compilers. */
38558 # include <limits.h>
38560 # include <assert.h>
38565 /* Override any GCC internal prototype to avoid an error.
38566 Use char because int might match the return type of a GCC
38567 builtin and then its argument prototype would still apply. */
38572 /* The GNU C library defines this for functions which it implements
38573 to always fail with ENOSYS. Some functions are actually named
38574 something starting with __ and the normal name is an alias. */
38575 #if defined __stub_$ac_func || defined __stub___$ac_func
38582 return $ac_func ();
38587 rm -f conftest.$ac_objext conftest$ac_exeext
38588 if { (ac_try="$ac_link"
38589 case "(($ac_try" in
38590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38591 *) ac_try_echo=$ac_try;;
38593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38594 (eval "$ac_link") 2>conftest.er1
38596 grep -v '^ *+' conftest.er1 >conftest.err
38598 cat conftest.err >&5
38599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600 (exit $ac_status); } && {
38601 test -z "$ac_cxx_werror_flag" ||
38602 test ! -s conftest.err
38603 } && test -s conftest$ac_exeext &&
38604 $as_test_x conftest$ac_exeext; then
38605 eval "$as_ac_var=yes"
38607 echo "$as_me: failed program was:" >&5
38608 sed 's/^/| /' conftest.$ac_ext >&5
38610 eval "$as_ac_var=no"
38613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38614 conftest$ac_exeext conftest.$ac_ext
38616 ac_res=`eval echo '${'$as_ac_var'}'`
38617 { echo "$as_me:$LINENO: result: $ac_res" >&5
38618 echo "${ECHO_T}$ac_res" >&6; }
38619 if test `eval echo '${'$as_ac_var'}'` = yes; then
38620 cat >>confdefs.h <<_ACEOF
38621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38629 for ac_func in chflags
38631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38635 echo $ECHO_N "(cached) $ECHO_C" >&6
38637 cat >conftest.$ac_ext <<_ACEOF
38640 cat confdefs.h >>conftest.$ac_ext
38641 cat >>conftest.$ac_ext <<_ACEOF
38642 /* end confdefs.h. */
38643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38645 #define $ac_func innocuous_$ac_func
38647 /* System header to define __stub macros and hopefully few prototypes,
38648 which can conflict with char $ac_func (); below.
38649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38650 <limits.h> exists even on freestanding compilers. */
38653 # include <limits.h>
38655 # include <assert.h>
38660 /* Override any GCC internal prototype to avoid an error.
38661 Use char because int might match the return type of a GCC
38662 builtin and then its argument prototype would still apply. */
38667 /* The GNU C library defines this for functions which it implements
38668 to always fail with ENOSYS. Some functions are actually named
38669 something starting with __ and the normal name is an alias. */
38670 #if defined __stub_$ac_func || defined __stub___$ac_func
38677 return $ac_func ();
38682 rm -f conftest.$ac_objext conftest$ac_exeext
38683 if { (ac_try="$ac_link"
38684 case "(($ac_try" in
38685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38686 *) ac_try_echo=$ac_try;;
38688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38689 (eval "$ac_link") 2>conftest.er1
38691 grep -v '^ *+' conftest.er1 >conftest.err
38693 cat conftest.err >&5
38694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695 (exit $ac_status); } && {
38696 test -z "$ac_cxx_werror_flag" ||
38697 test ! -s conftest.err
38698 } && test -s conftest$ac_exeext &&
38699 $as_test_x conftest$ac_exeext; then
38700 eval "$as_ac_var=yes"
38702 echo "$as_me: failed program was:" >&5
38703 sed 's/^/| /' conftest.$ac_ext >&5
38705 eval "$as_ac_var=no"
38708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38709 conftest$ac_exeext conftest.$ac_ext
38711 ac_res=`eval echo '${'$as_ac_var'}'`
38712 { echo "$as_me:$LINENO: result: $ac_res" >&5
38713 echo "${ECHO_T}$ac_res" >&6; }
38714 if test `eval echo '${'$as_ac_var'}'` = yes; then
38715 cat >>confdefs.h <<_ACEOF
38716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38727 for ac_func in snprintf vsnprintf gethostid fseeko
38729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38733 echo $ECHO_N "(cached) $ECHO_C" >&6
38735 cat >conftest.$ac_ext <<_ACEOF
38738 cat confdefs.h >>conftest.$ac_ext
38739 cat >>conftest.$ac_ext <<_ACEOF
38740 /* end confdefs.h. */
38741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38743 #define $ac_func innocuous_$ac_func
38745 /* System header to define __stub macros and hopefully few prototypes,
38746 which can conflict with char $ac_func (); below.
38747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38748 <limits.h> exists even on freestanding compilers. */
38751 # include <limits.h>
38753 # include <assert.h>
38758 /* Override any GCC internal prototype to avoid an error.
38759 Use char because int might match the return type of a GCC
38760 builtin and then its argument prototype would still apply. */
38765 /* The GNU C library defines this for functions which it implements
38766 to always fail with ENOSYS. Some functions are actually named
38767 something starting with __ and the normal name is an alias. */
38768 #if defined __stub_$ac_func || defined __stub___$ac_func
38775 return $ac_func ();
38780 rm -f conftest.$ac_objext conftest$ac_exeext
38781 if { (ac_try="$ac_link"
38782 case "(($ac_try" in
38783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38784 *) ac_try_echo=$ac_try;;
38786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38787 (eval "$ac_link") 2>conftest.er1
38789 grep -v '^ *+' conftest.er1 >conftest.err
38791 cat conftest.err >&5
38792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793 (exit $ac_status); } && {
38794 test -z "$ac_cxx_werror_flag" ||
38795 test ! -s conftest.err
38796 } && test -s conftest$ac_exeext &&
38797 $as_test_x conftest$ac_exeext; then
38798 eval "$as_ac_var=yes"
38800 echo "$as_me: failed program was:" >&5
38801 sed 's/^/| /' conftest.$ac_ext >&5
38803 eval "$as_ac_var=no"
38806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38807 conftest$ac_exeext conftest.$ac_ext
38809 ac_res=`eval echo '${'$as_ac_var'}'`
38810 { echo "$as_me:$LINENO: result: $ac_res" >&5
38811 echo "${ECHO_T}$ac_res" >&6; }
38812 if test `eval echo '${'$as_ac_var'}'` = yes; then
38813 cat >>confdefs.h <<_ACEOF
38814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38821 { echo "$as_me:$LINENO: checking for va_copy" >&5
38822 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38823 if test "${ba_cv_va_copy+set}" = set; then
38824 echo $ECHO_N "(cached) $ECHO_C" >&6
38827 cat >conftest.$ac_ext <<_ACEOF
38830 cat confdefs.h >>conftest.$ac_ext
38831 cat >>conftest.$ac_ext <<_ACEOF
38832 /* end confdefs.h. */
38834 #include <stdarg.h>
38835 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38836 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38842 call_use_va_copy(1,2,3)
38848 rm -f conftest.$ac_objext conftest$ac_exeext
38849 if { (ac_try="$ac_link"
38850 case "(($ac_try" in
38851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38852 *) ac_try_echo=$ac_try;;
38854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38855 (eval "$ac_link") 2>conftest.er1
38857 grep -v '^ *+' conftest.er1 >conftest.err
38859 cat conftest.err >&5
38860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861 (exit $ac_status); } && {
38862 test -z "$ac_cxx_werror_flag" ||
38863 test ! -s conftest.err
38864 } && test -s conftest$ac_exeext &&
38865 $as_test_x conftest$ac_exeext; then
38870 echo "$as_me: failed program was:" >&5
38871 sed 's/^/| /' conftest.$ac_ext >&5
38879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38880 conftest$ac_exeext conftest.$ac_ext
38884 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38885 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38886 test $ba_cv_va_copy = yes &&
38887 cat >>confdefs.h <<\_ACEOF
38888 #define HAVE_VA_COPY 1
38896 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38902 echo $ECHO_N "(cached) $ECHO_C" >&6
38904 cat >conftest.$ac_ext <<_ACEOF
38907 cat confdefs.h >>conftest.$ac_ext
38908 cat >>conftest.$ac_ext <<_ACEOF
38909 /* end confdefs.h. */
38910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38912 #define $ac_func innocuous_$ac_func
38914 /* System header to define __stub macros and hopefully few prototypes,
38915 which can conflict with char $ac_func (); below.
38916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38917 <limits.h> exists even on freestanding compilers. */
38920 # include <limits.h>
38922 # include <assert.h>
38927 /* Override any GCC internal prototype to avoid an error.
38928 Use char because int might match the return type of a GCC
38929 builtin and then its argument prototype would still apply. */
38934 /* The GNU C library defines this for functions which it implements
38935 to always fail with ENOSYS. Some functions are actually named
38936 something starting with __ and the normal name is an alias. */
38937 #if defined __stub_$ac_func || defined __stub___$ac_func
38944 return $ac_func ();
38949 rm -f conftest.$ac_objext conftest$ac_exeext
38950 if { (ac_try="$ac_link"
38951 case "(($ac_try" in
38952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38953 *) ac_try_echo=$ac_try;;
38955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38956 (eval "$ac_link") 2>conftest.er1
38958 grep -v '^ *+' conftest.er1 >conftest.err
38960 cat conftest.err >&5
38961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962 (exit $ac_status); } && {
38963 test -z "$ac_cxx_werror_flag" ||
38964 test ! -s conftest.err
38965 } && test -s conftest$ac_exeext &&
38966 $as_test_x conftest$ac_exeext; then
38967 eval "$as_ac_var=yes"
38969 echo "$as_me: failed program was:" >&5
38970 sed 's/^/| /' conftest.$ac_ext >&5
38972 eval "$as_ac_var=no"
38975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38976 conftest$ac_exeext conftest.$ac_ext
38978 ac_res=`eval echo '${'$as_ac_var'}'`
38979 { echo "$as_me:$LINENO: result: $ac_res" >&5
38980 echo "${ECHO_T}$ac_res" >&6; }
38981 if test `eval echo '${'$as_ac_var'}'` = yes; then
38982 cat >>confdefs.h <<_ACEOF
38983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38990 # If resolver functions are not in libc check for -lnsl or -lresolv.
38991 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38992 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38993 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38994 echo $ECHO_N "(cached) $ECHO_C" >&6
38996 cat >conftest.$ac_ext <<_ACEOF
38999 cat confdefs.h >>conftest.$ac_ext
39000 cat >>conftest.$ac_ext <<_ACEOF
39001 /* end confdefs.h. */
39002 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39004 #define gethostbyname_r innocuous_gethostbyname_r
39006 /* System header to define __stub macros and hopefully few prototypes,
39007 which can conflict with char gethostbyname_r (); below.
39008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39009 <limits.h> exists even on freestanding compilers. */
39012 # include <limits.h>
39014 # include <assert.h>
39017 #undef gethostbyname_r
39019 /* Override any GCC internal prototype to avoid an error.
39020 Use char because int might match the return type of a GCC
39021 builtin and then its argument prototype would still apply. */
39025 char gethostbyname_r ();
39026 /* The GNU C library defines this for functions which it implements
39027 to always fail with ENOSYS. Some functions are actually named
39028 something starting with __ and the normal name is an alias. */
39029 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39036 return gethostbyname_r ();
39041 rm -f conftest.$ac_objext conftest$ac_exeext
39042 if { (ac_try="$ac_link"
39043 case "(($ac_try" in
39044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39045 *) ac_try_echo=$ac_try;;
39047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39048 (eval "$ac_link") 2>conftest.er1
39050 grep -v '^ *+' conftest.er1 >conftest.err
39052 cat conftest.err >&5
39053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); } && {
39055 test -z "$ac_cxx_werror_flag" ||
39056 test ! -s conftest.err
39057 } && test -s conftest$ac_exeext &&
39058 $as_test_x conftest$ac_exeext; then
39059 ac_cv_func_gethostbyname_r=yes
39061 echo "$as_me: failed program was:" >&5
39062 sed 's/^/| /' conftest.$ac_ext >&5
39064 ac_cv_func_gethostbyname_r=no
39067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39068 conftest$ac_exeext conftest.$ac_ext
39070 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39071 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39072 if test $ac_cv_func_gethostbyname_r = yes; then
39073 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39074 echo "${ECHO_T}using libc's resolver" >&6; }
39077 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39078 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39079 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39080 echo $ECHO_N "(cached) $ECHO_C" >&6
39082 ac_check_lib_save_LIBS=$LIBS
39084 cat >conftest.$ac_ext <<_ACEOF
39087 cat confdefs.h >>conftest.$ac_ext
39088 cat >>conftest.$ac_ext <<_ACEOF
39089 /* end confdefs.h. */
39091 /* Override any GCC internal prototype to avoid an error.
39092 Use char because int might match the return type of a GCC
39093 builtin and then its argument prototype would still apply. */
39097 char gethostbyname_r ();
39101 return gethostbyname_r ();
39106 rm -f conftest.$ac_objext conftest$ac_exeext
39107 if { (ac_try="$ac_link"
39108 case "(($ac_try" in
39109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39110 *) ac_try_echo=$ac_try;;
39112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39113 (eval "$ac_link") 2>conftest.er1
39115 grep -v '^ *+' conftest.er1 >conftest.err
39117 cat conftest.err >&5
39118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119 (exit $ac_status); } && {
39120 test -z "$ac_cxx_werror_flag" ||
39121 test ! -s conftest.err
39122 } && test -s conftest$ac_exeext &&
39123 $as_test_x conftest$ac_exeext; then
39124 ac_cv_lib_nsl_gethostbyname_r=yes
39126 echo "$as_me: failed program was:" >&5
39127 sed 's/^/| /' conftest.$ac_ext >&5
39129 ac_cv_lib_nsl_gethostbyname_r=no
39132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39133 conftest$ac_exeext conftest.$ac_ext
39134 LIBS=$ac_check_lib_save_LIBS
39136 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39137 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39138 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39139 cat >>confdefs.h <<_ACEOF
39140 #define HAVE_LIBNSL 1
39148 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39149 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39150 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39151 echo $ECHO_N "(cached) $ECHO_C" >&6
39153 ac_check_lib_save_LIBS=$LIBS
39154 LIBS="-lresolv $LIBS"
39155 cat >conftest.$ac_ext <<_ACEOF
39158 cat confdefs.h >>conftest.$ac_ext
39159 cat >>conftest.$ac_ext <<_ACEOF
39160 /* end confdefs.h. */
39162 /* Override any GCC internal prototype to avoid an error.
39163 Use char because int might match the return type of a GCC
39164 builtin and then its argument prototype would still apply. */
39168 char gethostbyname_r ();
39172 return gethostbyname_r ();
39177 rm -f conftest.$ac_objext conftest$ac_exeext
39178 if { (ac_try="$ac_link"
39179 case "(($ac_try" in
39180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181 *) ac_try_echo=$ac_try;;
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184 (eval "$ac_link") 2>conftest.er1
39186 grep -v '^ *+' conftest.er1 >conftest.err
39188 cat conftest.err >&5
39189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190 (exit $ac_status); } && {
39191 test -z "$ac_cxx_werror_flag" ||
39192 test ! -s conftest.err
39193 } && test -s conftest$ac_exeext &&
39194 $as_test_x conftest$ac_exeext; then
39195 ac_cv_lib_resolv_gethostbyname_r=yes
39197 echo "$as_me: failed program was:" >&5
39198 sed 's/^/| /' conftest.$ac_ext >&5
39200 ac_cv_lib_resolv_gethostbyname_r=no
39203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39204 conftest$ac_exeext conftest.$ac_ext
39205 LIBS=$ac_check_lib_save_LIBS
39207 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39208 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39209 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39210 cat >>confdefs.h <<_ACEOF
39211 #define HAVE_LIBRESOLV 1
39214 LIBS="-lresolv $LIBS"
39222 for ac_func in inet_pton
39224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39228 echo $ECHO_N "(cached) $ECHO_C" >&6
39230 cat >conftest.$ac_ext <<_ACEOF
39233 cat confdefs.h >>conftest.$ac_ext
39234 cat >>conftest.$ac_ext <<_ACEOF
39235 /* end confdefs.h. */
39236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39238 #define $ac_func innocuous_$ac_func
39240 /* System header to define __stub macros and hopefully few prototypes,
39241 which can conflict with char $ac_func (); below.
39242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39243 <limits.h> exists even on freestanding compilers. */
39246 # include <limits.h>
39248 # include <assert.h>
39253 /* Override any GCC internal prototype to avoid an error.
39254 Use char because int might match the return type of a GCC
39255 builtin and then its argument prototype would still apply. */
39260 /* The GNU C library defines this for functions which it implements
39261 to always fail with ENOSYS. Some functions are actually named
39262 something starting with __ and the normal name is an alias. */
39263 #if defined __stub_$ac_func || defined __stub___$ac_func
39270 return $ac_func ();
39275 rm -f conftest.$ac_objext conftest$ac_exeext
39276 if { (ac_try="$ac_link"
39277 case "(($ac_try" in
39278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39279 *) ac_try_echo=$ac_try;;
39281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39282 (eval "$ac_link") 2>conftest.er1
39284 grep -v '^ *+' conftest.er1 >conftest.err
39286 cat conftest.err >&5
39287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288 (exit $ac_status); } && {
39289 test -z "$ac_cxx_werror_flag" ||
39290 test ! -s conftest.err
39291 } && test -s conftest$ac_exeext &&
39292 $as_test_x conftest$ac_exeext; then
39293 eval "$as_ac_var=yes"
39295 echo "$as_me: failed program was:" >&5
39296 sed 's/^/| /' conftest.$ac_ext >&5
39298 eval "$as_ac_var=no"
39301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39302 conftest$ac_exeext conftest.$ac_ext
39304 ac_res=`eval echo '${'$as_ac_var'}'`
39305 { echo "$as_me:$LINENO: result: $ac_res" >&5
39306 echo "${ECHO_T}$ac_res" >&6; }
39307 if test `eval echo '${'$as_ac_var'}'` = yes; then
39308 cat >>confdefs.h <<_ACEOF
39309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39311 cat >>confdefs.h <<\_ACEOF
39312 #define HAVE_INET_PTON 1
39319 for ac_func in inet_ntop
39321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39325 echo $ECHO_N "(cached) $ECHO_C" >&6
39327 cat >conftest.$ac_ext <<_ACEOF
39330 cat confdefs.h >>conftest.$ac_ext
39331 cat >>conftest.$ac_ext <<_ACEOF
39332 /* end confdefs.h. */
39333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39335 #define $ac_func innocuous_$ac_func
39337 /* System header to define __stub macros and hopefully few prototypes,
39338 which can conflict with char $ac_func (); below.
39339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39340 <limits.h> exists even on freestanding compilers. */
39343 # include <limits.h>
39345 # include <assert.h>
39350 /* Override any GCC internal prototype to avoid an error.
39351 Use char because int might match the return type of a GCC
39352 builtin and then its argument prototype would still apply. */
39357 /* The GNU C library defines this for functions which it implements
39358 to always fail with ENOSYS. Some functions are actually named
39359 something starting with __ and the normal name is an alias. */
39360 #if defined __stub_$ac_func || defined __stub___$ac_func
39367 return $ac_func ();
39372 rm -f conftest.$ac_objext conftest$ac_exeext
39373 if { (ac_try="$ac_link"
39374 case "(($ac_try" in
39375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39376 *) ac_try_echo=$ac_try;;
39378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39379 (eval "$ac_link") 2>conftest.er1
39381 grep -v '^ *+' conftest.er1 >conftest.err
39383 cat conftest.err >&5
39384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); } && {
39386 test -z "$ac_cxx_werror_flag" ||
39387 test ! -s conftest.err
39388 } && test -s conftest$ac_exeext &&
39389 $as_test_x conftest$ac_exeext; then
39390 eval "$as_ac_var=yes"
39392 echo "$as_me: failed program was:" >&5
39393 sed 's/^/| /' conftest.$ac_ext >&5
39395 eval "$as_ac_var=no"
39398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39399 conftest$ac_exeext conftest.$ac_ext
39401 ac_res=`eval echo '${'$as_ac_var'}'`
39402 { echo "$as_me:$LINENO: result: $ac_res" >&5
39403 echo "${ECHO_T}$ac_res" >&6; }
39404 if test `eval echo '${'$as_ac_var'}'` = yes; then
39405 cat >>confdefs.h <<_ACEOF
39406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39408 cat >>confdefs.h <<\_ACEOF
39409 #define HAVE_INET_NTOP 1
39416 for ac_func in gethostbyname2
39418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39422 echo $ECHO_N "(cached) $ECHO_C" >&6
39424 cat >conftest.$ac_ext <<_ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h. */
39430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39432 #define $ac_func innocuous_$ac_func
39434 /* System header to define __stub macros and hopefully few prototypes,
39435 which can conflict with char $ac_func (); below.
39436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39437 <limits.h> exists even on freestanding compilers. */
39440 # include <limits.h>
39442 # include <assert.h>
39447 /* Override any GCC internal prototype to avoid an error.
39448 Use char because int might match the return type of a GCC
39449 builtin and then its argument prototype would still apply. */
39454 /* The GNU C library defines this for functions which it implements
39455 to always fail with ENOSYS. Some functions are actually named
39456 something starting with __ and the normal name is an alias. */
39457 #if defined __stub_$ac_func || defined __stub___$ac_func
39464 return $ac_func ();
39469 rm -f conftest.$ac_objext conftest$ac_exeext
39470 if { (ac_try="$ac_link"
39471 case "(($ac_try" in
39472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39473 *) ac_try_echo=$ac_try;;
39475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39476 (eval "$ac_link") 2>conftest.er1
39478 grep -v '^ *+' conftest.er1 >conftest.err
39480 cat conftest.err >&5
39481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39482 (exit $ac_status); } && {
39483 test -z "$ac_cxx_werror_flag" ||
39484 test ! -s conftest.err
39485 } && test -s conftest$ac_exeext &&
39486 $as_test_x conftest$ac_exeext; then
39487 eval "$as_ac_var=yes"
39489 echo "$as_me: failed program was:" >&5
39490 sed 's/^/| /' conftest.$ac_ext >&5
39492 eval "$as_ac_var=no"
39495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39496 conftest$ac_exeext conftest.$ac_ext
39498 ac_res=`eval echo '${'$as_ac_var'}'`
39499 { echo "$as_me:$LINENO: result: $ac_res" >&5
39500 echo "${ECHO_T}$ac_res" >&6; }
39501 if test `eval echo '${'$as_ac_var'}'` = yes; then
39502 cat >>confdefs.h <<_ACEOF
39503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39505 cat >>confdefs.h <<\_ACEOF
39506 #define HAVE_GETHOSTBYNAME2 1
39513 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39514 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39515 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39516 echo $ECHO_N "(cached) $ECHO_C" >&6
39519 cat >conftest.$ac_ext <<_ACEOF
39522 cat confdefs.h >>conftest.$ac_ext
39523 cat >>conftest.$ac_ext <<_ACEOF
39524 /* end confdefs.h. */
39526 #include <sys/socket.h>
39532 struct sockaddr s; s.sa_len;
39538 rm -f conftest.$ac_objext
39539 if { (ac_try="$ac_compile"
39540 case "(($ac_try" in
39541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39542 *) ac_try_echo=$ac_try;;
39544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39545 (eval "$ac_compile") 2>conftest.er1
39547 grep -v '^ *+' conftest.er1 >conftest.err
39549 cat conftest.err >&5
39550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39551 (exit $ac_status); } && {
39552 test -z "$ac_cxx_werror_flag" ||
39553 test ! -s conftest.err
39554 } && test -s conftest.$ac_objext; then
39556 ac_cv_struct_sockaddr_sa_len=yes
39559 echo "$as_me: failed program was:" >&5
39560 sed 's/^/| /' conftest.$ac_ext >&5
39562 ac_cv_struct_sockaddr_sa_len=no
39567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39571 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39572 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39574 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39576 cat >>confdefs.h <<\_ACEOF
39577 #define HAVE_SA_LEN 1
39583 for ac_func in strftime
39585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39589 echo $ECHO_N "(cached) $ECHO_C" >&6
39591 cat >conftest.$ac_ext <<_ACEOF
39594 cat confdefs.h >>conftest.$ac_ext
39595 cat >>conftest.$ac_ext <<_ACEOF
39596 /* end confdefs.h. */
39597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39599 #define $ac_func innocuous_$ac_func
39601 /* System header to define __stub macros and hopefully few prototypes,
39602 which can conflict with char $ac_func (); below.
39603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39604 <limits.h> exists even on freestanding compilers. */
39607 # include <limits.h>
39609 # include <assert.h>
39614 /* Override any GCC internal prototype to avoid an error.
39615 Use char because int might match the return type of a GCC
39616 builtin and then its argument prototype would still apply. */
39621 /* The GNU C library defines this for functions which it implements
39622 to always fail with ENOSYS. Some functions are actually named
39623 something starting with __ and the normal name is an alias. */
39624 #if defined __stub_$ac_func || defined __stub___$ac_func
39631 return $ac_func ();
39636 rm -f conftest.$ac_objext conftest$ac_exeext
39637 if { (ac_try="$ac_link"
39638 case "(($ac_try" in
39639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39640 *) ac_try_echo=$ac_try;;
39642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39643 (eval "$ac_link") 2>conftest.er1
39645 grep -v '^ *+' conftest.er1 >conftest.err
39647 cat conftest.err >&5
39648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649 (exit $ac_status); } && {
39650 test -z "$ac_cxx_werror_flag" ||
39651 test ! -s conftest.err
39652 } && test -s conftest$ac_exeext &&
39653 $as_test_x conftest$ac_exeext; then
39654 eval "$as_ac_var=yes"
39656 echo "$as_me: failed program was:" >&5
39657 sed 's/^/| /' conftest.$ac_ext >&5
39659 eval "$as_ac_var=no"
39662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39663 conftest$ac_exeext conftest.$ac_ext
39665 ac_res=`eval echo '${'$as_ac_var'}'`
39666 { echo "$as_me:$LINENO: result: $ac_res" >&5
39667 echo "${ECHO_T}$ac_res" >&6; }
39668 if test `eval echo '${'$as_ac_var'}'` = yes; then
39669 cat >>confdefs.h <<_ACEOF
39670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39674 # strftime is in -lintl on SCO UNIX.
39675 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39676 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39677 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39678 echo $ECHO_N "(cached) $ECHO_C" >&6
39680 ac_check_lib_save_LIBS=$LIBS
39681 LIBS="-lintl $LIBS"
39682 cat >conftest.$ac_ext <<_ACEOF
39685 cat confdefs.h >>conftest.$ac_ext
39686 cat >>conftest.$ac_ext <<_ACEOF
39687 /* end confdefs.h. */
39689 /* Override any GCC internal prototype to avoid an error.
39690 Use char because int might match the return type of a GCC
39691 builtin and then its argument prototype would still apply. */
39699 return strftime ();
39704 rm -f conftest.$ac_objext conftest$ac_exeext
39705 if { (ac_try="$ac_link"
39706 case "(($ac_try" in
39707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39708 *) ac_try_echo=$ac_try;;
39710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39711 (eval "$ac_link") 2>conftest.er1
39713 grep -v '^ *+' conftest.er1 >conftest.err
39715 cat conftest.err >&5
39716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39717 (exit $ac_status); } && {
39718 test -z "$ac_cxx_werror_flag" ||
39719 test ! -s conftest.err
39720 } && test -s conftest$ac_exeext &&
39721 $as_test_x conftest$ac_exeext; then
39722 ac_cv_lib_intl_strftime=yes
39724 echo "$as_me: failed program was:" >&5
39725 sed 's/^/| /' conftest.$ac_ext >&5
39727 ac_cv_lib_intl_strftime=no
39730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39731 conftest$ac_exeext conftest.$ac_ext
39732 LIBS=$ac_check_lib_save_LIBS
39734 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39735 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39736 if test $ac_cv_lib_intl_strftime = yes; then
39737 cat >>confdefs.h <<\_ACEOF
39738 #define HAVE_STRFTIME 1
39741 LIBS="-lintl $LIBS"
39748 for ac_func in vprintf
39750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39754 echo $ECHO_N "(cached) $ECHO_C" >&6
39756 cat >conftest.$ac_ext <<_ACEOF
39759 cat confdefs.h >>conftest.$ac_ext
39760 cat >>conftest.$ac_ext <<_ACEOF
39761 /* end confdefs.h. */
39762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39764 #define $ac_func innocuous_$ac_func
39766 /* System header to define __stub macros and hopefully few prototypes,
39767 which can conflict with char $ac_func (); below.
39768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39769 <limits.h> exists even on freestanding compilers. */
39772 # include <limits.h>
39774 # include <assert.h>
39779 /* Override any GCC internal prototype to avoid an error.
39780 Use char because int might match the return type of a GCC
39781 builtin and then its argument prototype would still apply. */
39786 /* The GNU C library defines this for functions which it implements
39787 to always fail with ENOSYS. Some functions are actually named
39788 something starting with __ and the normal name is an alias. */
39789 #if defined __stub_$ac_func || defined __stub___$ac_func
39796 return $ac_func ();
39801 rm -f conftest.$ac_objext conftest$ac_exeext
39802 if { (ac_try="$ac_link"
39803 case "(($ac_try" in
39804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39805 *) ac_try_echo=$ac_try;;
39807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39808 (eval "$ac_link") 2>conftest.er1
39810 grep -v '^ *+' conftest.er1 >conftest.err
39812 cat conftest.err >&5
39813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814 (exit $ac_status); } && {
39815 test -z "$ac_cxx_werror_flag" ||
39816 test ! -s conftest.err
39817 } && test -s conftest$ac_exeext &&
39818 $as_test_x conftest$ac_exeext; then
39819 eval "$as_ac_var=yes"
39821 echo "$as_me: failed program was:" >&5
39822 sed 's/^/| /' conftest.$ac_ext >&5
39824 eval "$as_ac_var=no"
39827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39828 conftest$ac_exeext conftest.$ac_ext
39830 ac_res=`eval echo '${'$as_ac_var'}'`
39831 { echo "$as_me:$LINENO: result: $ac_res" >&5
39832 echo "${ECHO_T}$ac_res" >&6; }
39833 if test `eval echo '${'$as_ac_var'}'` = yes; then
39834 cat >>confdefs.h <<_ACEOF
39835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39838 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39839 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39840 if test "${ac_cv_func__doprnt+set}" = set; then
39841 echo $ECHO_N "(cached) $ECHO_C" >&6
39843 cat >conftest.$ac_ext <<_ACEOF
39846 cat confdefs.h >>conftest.$ac_ext
39847 cat >>conftest.$ac_ext <<_ACEOF
39848 /* end confdefs.h. */
39849 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39851 #define _doprnt innocuous__doprnt
39853 /* System header to define __stub macros and hopefully few prototypes,
39854 which can conflict with char _doprnt (); below.
39855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39856 <limits.h> exists even on freestanding compilers. */
39859 # include <limits.h>
39861 # include <assert.h>
39866 /* Override any GCC internal prototype to avoid an error.
39867 Use char because int might match the return type of a GCC
39868 builtin and then its argument prototype would still apply. */
39873 /* The GNU C library defines this for functions which it implements
39874 to always fail with ENOSYS. Some functions are actually named
39875 something starting with __ and the normal name is an alias. */
39876 #if defined __stub__doprnt || defined __stub____doprnt
39888 rm -f conftest.$ac_objext conftest$ac_exeext
39889 if { (ac_try="$ac_link"
39890 case "(($ac_try" in
39891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39892 *) ac_try_echo=$ac_try;;
39894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39895 (eval "$ac_link") 2>conftest.er1
39897 grep -v '^ *+' conftest.er1 >conftest.err
39899 cat conftest.err >&5
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); } && {
39902 test -z "$ac_cxx_werror_flag" ||
39903 test ! -s conftest.err
39904 } && test -s conftest$ac_exeext &&
39905 $as_test_x conftest$ac_exeext; then
39906 ac_cv_func__doprnt=yes
39908 echo "$as_me: failed program was:" >&5
39909 sed 's/^/| /' conftest.$ac_ext >&5
39911 ac_cv_func__doprnt=no
39914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39915 conftest$ac_exeext conftest.$ac_ext
39917 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39918 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39919 if test $ac_cv_func__doprnt = yes; then
39921 cat >>confdefs.h <<\_ACEOF
39922 #define HAVE_DOPRNT 1
39931 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39932 # for constant arguments. Useless!
39933 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39934 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39935 if test "${ac_cv_working_alloca_h+set}" = set; then
39936 echo $ECHO_N "(cached) $ECHO_C" >&6
39938 cat >conftest.$ac_ext <<_ACEOF
39941 cat confdefs.h >>conftest.$ac_ext
39942 cat >>conftest.$ac_ext <<_ACEOF
39943 /* end confdefs.h. */
39944 #include <alloca.h>
39948 char *p = (char *) alloca (2 * sizeof (int));
39954 rm -f conftest.$ac_objext conftest$ac_exeext
39955 if { (ac_try="$ac_link"
39956 case "(($ac_try" in
39957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39958 *) ac_try_echo=$ac_try;;
39960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39961 (eval "$ac_link") 2>conftest.er1
39963 grep -v '^ *+' conftest.er1 >conftest.err
39965 cat conftest.err >&5
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); } && {
39968 test -z "$ac_cxx_werror_flag" ||
39969 test ! -s conftest.err
39970 } && test -s conftest$ac_exeext &&
39971 $as_test_x conftest$ac_exeext; then
39972 ac_cv_working_alloca_h=yes
39974 echo "$as_me: failed program was:" >&5
39975 sed 's/^/| /' conftest.$ac_ext >&5
39977 ac_cv_working_alloca_h=no
39980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39981 conftest$ac_exeext conftest.$ac_ext
39983 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39984 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39985 if test $ac_cv_working_alloca_h = yes; then
39987 cat >>confdefs.h <<\_ACEOF
39988 #define HAVE_ALLOCA_H 1
39993 { echo "$as_me:$LINENO: checking for alloca" >&5
39994 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39995 if test "${ac_cv_func_alloca_works+set}" = set; then
39996 echo $ECHO_N "(cached) $ECHO_C" >&6
39998 cat >conftest.$ac_ext <<_ACEOF
40001 cat confdefs.h >>conftest.$ac_ext
40002 cat >>conftest.$ac_ext <<_ACEOF
40003 /* end confdefs.h. */
40005 # define alloca __builtin_alloca
40008 # include <malloc.h>
40009 # define alloca _alloca
40011 # ifdef HAVE_ALLOCA_H
40012 # include <alloca.h>
40017 # ifndef alloca /* predefined by HP cc +Olibcalls */
40028 char *p = (char *) alloca (1);
40034 rm -f conftest.$ac_objext conftest$ac_exeext
40035 if { (ac_try="$ac_link"
40036 case "(($ac_try" in
40037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40038 *) ac_try_echo=$ac_try;;
40040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40041 (eval "$ac_link") 2>conftest.er1
40043 grep -v '^ *+' conftest.er1 >conftest.err
40045 cat conftest.err >&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } && {
40048 test -z "$ac_cxx_werror_flag" ||
40049 test ! -s conftest.err
40050 } && test -s conftest$ac_exeext &&
40051 $as_test_x conftest$ac_exeext; then
40052 ac_cv_func_alloca_works=yes
40054 echo "$as_me: failed program was:" >&5
40055 sed 's/^/| /' conftest.$ac_ext >&5
40057 ac_cv_func_alloca_works=no
40060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40061 conftest$ac_exeext conftest.$ac_ext
40063 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40064 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40066 if test $ac_cv_func_alloca_works = yes; then
40068 cat >>confdefs.h <<\_ACEOF
40069 #define HAVE_ALLOCA 1
40073 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40074 # that cause trouble. Some versions do not even contain alloca or
40075 # contain a buggy version. If you still want to use their alloca,
40076 # use ar to extract alloca.o from them instead of compiling alloca.c.
40078 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40080 cat >>confdefs.h <<\_ACEOF
40085 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40086 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40087 if test "${ac_cv_os_cray+set}" = set; then
40088 echo $ECHO_N "(cached) $ECHO_C" >&6
40090 cat >conftest.$ac_ext <<_ACEOF
40093 cat confdefs.h >>conftest.$ac_ext
40094 cat >>conftest.$ac_ext <<_ACEOF
40095 /* end confdefs.h. */
40096 #if defined CRAY && ! defined CRAY2
40103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40104 $EGREP "webecray" >/dev/null 2>&1; then
40112 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40113 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40114 if test $ac_cv_os_cray = yes; then
40115 for ac_func in _getb67 GETB67 getb67; do
40116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40120 echo $ECHO_N "(cached) $ECHO_C" >&6
40122 cat >conftest.$ac_ext <<_ACEOF
40125 cat confdefs.h >>conftest.$ac_ext
40126 cat >>conftest.$ac_ext <<_ACEOF
40127 /* end confdefs.h. */
40128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40130 #define $ac_func innocuous_$ac_func
40132 /* System header to define __stub macros and hopefully few prototypes,
40133 which can conflict with char $ac_func (); below.
40134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40135 <limits.h> exists even on freestanding compilers. */
40138 # include <limits.h>
40140 # include <assert.h>
40145 /* Override any GCC internal prototype to avoid an error.
40146 Use char because int might match the return type of a GCC
40147 builtin and then its argument prototype would still apply. */
40152 /* The GNU C library defines this for functions which it implements
40153 to always fail with ENOSYS. Some functions are actually named
40154 something starting with __ and the normal name is an alias. */
40155 #if defined __stub_$ac_func || defined __stub___$ac_func
40162 return $ac_func ();
40167 rm -f conftest.$ac_objext conftest$ac_exeext
40168 if { (ac_try="$ac_link"
40169 case "(($ac_try" in
40170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40171 *) ac_try_echo=$ac_try;;
40173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40174 (eval "$ac_link") 2>conftest.er1
40176 grep -v '^ *+' conftest.er1 >conftest.err
40178 cat conftest.err >&5
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); } && {
40181 test -z "$ac_cxx_werror_flag" ||
40182 test ! -s conftest.err
40183 } && test -s conftest$ac_exeext &&
40184 $as_test_x conftest$ac_exeext; then
40185 eval "$as_ac_var=yes"
40187 echo "$as_me: failed program was:" >&5
40188 sed 's/^/| /' conftest.$ac_ext >&5
40190 eval "$as_ac_var=no"
40193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40194 conftest$ac_exeext conftest.$ac_ext
40196 ac_res=`eval echo '${'$as_ac_var'}'`
40197 { echo "$as_me:$LINENO: result: $ac_res" >&5
40198 echo "${ECHO_T}$ac_res" >&6; }
40199 if test `eval echo '${'$as_ac_var'}'` = yes; then
40201 cat >>confdefs.h <<_ACEOF
40202 #define CRAY_STACKSEG_END $ac_func
40211 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40212 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40213 if test "${ac_cv_c_stack_direction+set}" = set; then
40214 echo $ECHO_N "(cached) $ECHO_C" >&6
40216 if test "$cross_compiling" = yes; then
40217 ac_cv_c_stack_direction=0
40219 cat >conftest.$ac_ext <<_ACEOF
40222 cat confdefs.h >>conftest.$ac_ext
40223 cat >>conftest.$ac_ext <<_ACEOF
40224 /* end confdefs.h. */
40225 $ac_includes_default
40227 find_stack_direction ()
40229 static char *addr = 0;
40234 return find_stack_direction ();
40237 return (&dummy > addr) ? 1 : -1;
40243 return find_stack_direction () < 0;
40246 rm -f conftest$ac_exeext
40247 if { (ac_try="$ac_link"
40248 case "(($ac_try" in
40249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40250 *) ac_try_echo=$ac_try;;
40252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40253 (eval "$ac_link") 2>&5
40255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40257 { (case "(($ac_try" in
40258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40259 *) ac_try_echo=$ac_try;;
40261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40262 (eval "$ac_try") 2>&5
40264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265 (exit $ac_status); }; }; then
40266 ac_cv_c_stack_direction=1
40268 echo "$as_me: program exited with status $ac_status" >&5
40269 echo "$as_me: failed program was:" >&5
40270 sed 's/^/| /' conftest.$ac_ext >&5
40272 ( exit $ac_status )
40273 ac_cv_c_stack_direction=-1
40275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40280 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40281 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40283 cat >>confdefs.h <<_ACEOF
40284 #define STACK_DIRECTION $ac_cv_c_stack_direction
40290 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40291 # -lseq on Dynix/PTX, -lgen on Unixware.
40292 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40293 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40294 if test "${ac_cv_search_getmntent+set}" = set; then
40295 echo $ECHO_N "(cached) $ECHO_C" >&6
40297 ac_func_search_save_LIBS=$LIBS
40298 cat >conftest.$ac_ext <<_ACEOF
40301 cat confdefs.h >>conftest.$ac_ext
40302 cat >>conftest.$ac_ext <<_ACEOF
40303 /* end confdefs.h. */
40305 /* Override any GCC internal prototype to avoid an error.
40306 Use char because int might match the return type of a GCC
40307 builtin and then its argument prototype would still apply. */
40315 return getmntent ();
40320 for ac_lib in '' sun seq gen; do
40321 if test -z "$ac_lib"; then
40322 ac_res="none required"
40325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40327 rm -f conftest.$ac_objext conftest$ac_exeext
40328 if { (ac_try="$ac_link"
40329 case "(($ac_try" in
40330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40331 *) ac_try_echo=$ac_try;;
40333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40334 (eval "$ac_link") 2>conftest.er1
40336 grep -v '^ *+' conftest.er1 >conftest.err
40338 cat conftest.err >&5
40339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340 (exit $ac_status); } && {
40341 test -z "$ac_cxx_werror_flag" ||
40342 test ! -s conftest.err
40343 } && test -s conftest$ac_exeext &&
40344 $as_test_x conftest$ac_exeext; then
40345 ac_cv_search_getmntent=$ac_res
40347 echo "$as_me: failed program was:" >&5
40348 sed 's/^/| /' conftest.$ac_ext >&5
40353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40355 if test "${ac_cv_search_getmntent+set}" = set; then
40359 if test "${ac_cv_search_getmntent+set}" = set; then
40362 ac_cv_search_getmntent=no
40364 rm conftest.$ac_ext
40365 LIBS=$ac_func_search_save_LIBS
40367 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40368 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40369 ac_res=$ac_cv_search_getmntent
40370 if test "$ac_res" != no; then
40371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40372 ac_cv_func_getmntent=yes
40374 cat >>confdefs.h <<\_ACEOF
40375 #define HAVE_GETMNTENT 1
40379 ac_cv_func_getmntent=no
40383 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40384 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40385 if test "${ac_cv_func_closedir_void+set}" = set; then
40386 echo $ECHO_N "(cached) $ECHO_C" >&6
40388 if test "$cross_compiling" = yes; then
40389 ac_cv_func_closedir_void=yes
40391 cat >conftest.$ac_ext <<_ACEOF
40394 cat confdefs.h >>conftest.$ac_ext
40395 cat >>conftest.$ac_ext <<_ACEOF
40396 /* end confdefs.h. */
40397 $ac_includes_default
40398 #include <$ac_header_dirent>
40399 #ifndef __cplusplus
40406 return closedir (opendir (".")) != 0;
40411 rm -f conftest$ac_exeext
40412 if { (ac_try="$ac_link"
40413 case "(($ac_try" in
40414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40415 *) ac_try_echo=$ac_try;;
40417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40418 (eval "$ac_link") 2>&5
40420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40422 { (case "(($ac_try" in
40423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40424 *) ac_try_echo=$ac_try;;
40426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40427 (eval "$ac_try") 2>&5
40429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430 (exit $ac_status); }; }; then
40431 ac_cv_func_closedir_void=no
40433 echo "$as_me: program exited with status $ac_status" >&5
40434 echo "$as_me: failed program was:" >&5
40435 sed 's/^/| /' conftest.$ac_ext >&5
40437 ( exit $ac_status )
40438 ac_cv_func_closedir_void=yes
40440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40445 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40446 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40447 if test $ac_cv_func_closedir_void = yes; then
40449 cat >>confdefs.h <<\_ACEOF
40450 #define CLOSEDIR_VOID 1
40455 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40456 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40457 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40458 echo $ECHO_N "(cached) $ECHO_C" >&6
40460 if test "$cross_compiling" = yes; then
40461 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40462 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40463 { (exit 1); exit 1; }; }
40465 cat >conftest.$ac_ext <<_ACEOF
40468 cat confdefs.h >>conftest.$ac_ext
40469 cat >>conftest.$ac_ext <<_ACEOF
40470 /* end confdefs.h. */
40471 $ac_includes_default
40475 /* If this system has a BSD-style setpgrp which takes arguments,
40476 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40477 exit successfully. */
40478 return setpgrp (1,1) != -1;
40483 rm -f conftest$ac_exeext
40484 if { (ac_try="$ac_link"
40485 case "(($ac_try" in
40486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40487 *) ac_try_echo=$ac_try;;
40489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40490 (eval "$ac_link") 2>&5
40492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40494 { (case "(($ac_try" in
40495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40496 *) ac_try_echo=$ac_try;;
40498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40499 (eval "$ac_try") 2>&5
40501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40502 (exit $ac_status); }; }; then
40503 ac_cv_func_setpgrp_void=no
40505 echo "$as_me: program exited with status $ac_status" >&5
40506 echo "$as_me: failed program was:" >&5
40507 sed 's/^/| /' conftest.$ac_ext >&5
40509 ( exit $ac_status )
40510 ac_cv_func_setpgrp_void=yes
40512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40517 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40518 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40519 if test $ac_cv_func_setpgrp_void = yes; then
40521 cat >>confdefs.h <<\_ACEOF
40522 #define SETPGRP_VOID 1
40526 # AC_FUNC_FNMATCH dnl use local version
40528 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40529 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40530 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40531 echo $ECHO_N "(cached) $ECHO_C" >&6
40533 ac_check_lib_save_LIBS=$LIBS
40534 LIBS="-lintl $LIBS"
40535 cat >conftest.$ac_ext <<_ACEOF
40538 cat confdefs.h >>conftest.$ac_ext
40539 cat >>conftest.$ac_ext <<_ACEOF
40540 /* end confdefs.h. */
40542 /* Override any GCC internal prototype to avoid an error.
40543 Use char because int might match the return type of a GCC
40544 builtin and then its argument prototype would still apply. */
40557 rm -f conftest.$ac_objext conftest$ac_exeext
40558 if { (ac_try="$ac_link"
40559 case "(($ac_try" in
40560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40561 *) ac_try_echo=$ac_try;;
40563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40564 (eval "$ac_link") 2>conftest.er1
40566 grep -v '^ *+' conftest.er1 >conftest.err
40568 cat conftest.err >&5
40569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); } && {
40571 test -z "$ac_cxx_werror_flag" ||
40572 test ! -s conftest.err
40573 } && test -s conftest$ac_exeext &&
40574 $as_test_x conftest$ac_exeext; then
40575 ac_cv_lib_intl_gettext=yes
40577 echo "$as_me: failed program was:" >&5
40578 sed 's/^/| /' conftest.$ac_ext >&5
40580 ac_cv_lib_intl_gettext=no
40583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40584 conftest$ac_exeext conftest.$ac_ext
40585 LIBS=$ac_check_lib_save_LIBS
40587 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40588 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40589 if test $ac_cv_lib_intl_gettext = yes; then
40590 LIBS="$LIBS -lintl"
40595 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40596 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40597 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40598 echo $ECHO_N "(cached) $ECHO_C" >&6
40600 ac_check_lib_save_LIBS=$LIBS
40602 cat >conftest.$ac_ext <<_ACEOF
40605 cat confdefs.h >>conftest.$ac_ext
40606 cat >>conftest.$ac_ext <<_ACEOF
40607 /* end confdefs.h. */
40609 /* Override any GCC internal prototype to avoid an error.
40610 Use char because int might match the return type of a GCC
40611 builtin and then its argument prototype would still apply. */
40619 return getpwnam ();
40624 rm -f conftest.$ac_objext conftest$ac_exeext
40625 if { (ac_try="$ac_link"
40626 case "(($ac_try" in
40627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40628 *) ac_try_echo=$ac_try;;
40630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40631 (eval "$ac_link") 2>conftest.er1
40633 grep -v '^ *+' conftest.er1 >conftest.err
40635 cat conftest.err >&5
40636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637 (exit $ac_status); } && {
40638 test -z "$ac_cxx_werror_flag" ||
40639 test ! -s conftest.err
40640 } && test -s conftest$ac_exeext &&
40641 $as_test_x conftest$ac_exeext; then
40642 ac_cv_lib_sun_getpwnam=yes
40644 echo "$as_me: failed program was:" >&5
40645 sed 's/^/| /' conftest.$ac_ext >&5
40647 ac_cv_lib_sun_getpwnam=no
40650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40651 conftest$ac_exeext conftest.$ac_ext
40652 LIBS=$ac_check_lib_save_LIBS
40654 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40655 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40656 if test $ac_cv_lib_sun_getpwnam = yes; then
40657 cat >>confdefs.h <<_ACEOF
40658 #define HAVE_LIBSUN 1
40667 for ac_header in zlib.h
40669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40674 echo $ECHO_N "(cached) $ECHO_C" >&6
40676 ac_res=`eval echo '${'$as_ac_Header'}'`
40677 { echo "$as_me:$LINENO: result: $ac_res" >&5
40678 echo "${ECHO_T}$ac_res" >&6; }
40680 # Is the header compilable?
40681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40683 cat >conftest.$ac_ext <<_ACEOF
40686 cat confdefs.h >>conftest.$ac_ext
40687 cat >>conftest.$ac_ext <<_ACEOF
40688 /* end confdefs.h. */
40689 $ac_includes_default
40690 #include <$ac_header>
40692 rm -f conftest.$ac_objext
40693 if { (ac_try="$ac_compile"
40694 case "(($ac_try" in
40695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40696 *) ac_try_echo=$ac_try;;
40698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40699 (eval "$ac_compile") 2>conftest.er1
40701 grep -v '^ *+' conftest.er1 >conftest.err
40703 cat conftest.err >&5
40704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705 (exit $ac_status); } && {
40706 test -z "$ac_cxx_werror_flag" ||
40707 test ! -s conftest.err
40708 } && test -s conftest.$ac_objext; then
40709 ac_header_compiler=yes
40711 echo "$as_me: failed program was:" >&5
40712 sed 's/^/| /' conftest.$ac_ext >&5
40714 ac_header_compiler=no
40717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40719 echo "${ECHO_T}$ac_header_compiler" >&6; }
40721 # Is the header present?
40722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40724 cat >conftest.$ac_ext <<_ACEOF
40727 cat confdefs.h >>conftest.$ac_ext
40728 cat >>conftest.$ac_ext <<_ACEOF
40729 /* end confdefs.h. */
40730 #include <$ac_header>
40732 if { (ac_try="$ac_cpp conftest.$ac_ext"
40733 case "(($ac_try" in
40734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40735 *) ac_try_echo=$ac_try;;
40737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40740 grep -v '^ *+' conftest.er1 >conftest.err
40742 cat conftest.err >&5
40743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40744 (exit $ac_status); } >/dev/null && {
40745 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40746 test ! -s conftest.err
40748 ac_header_preproc=yes
40750 echo "$as_me: failed program was:" >&5
40751 sed 's/^/| /' conftest.$ac_ext >&5
40753 ac_header_preproc=no
40756 rm -f conftest.err conftest.$ac_ext
40757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40758 echo "${ECHO_T}$ac_header_preproc" >&6; }
40760 # So? What about this header?
40761 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40767 ac_header_preproc=yes
40770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40788 echo $ECHO_N "(cached) $ECHO_C" >&6
40790 eval "$as_ac_Header=\$ac_header_preproc"
40792 ac_res=`eval echo '${'$as_ac_Header'}'`
40793 { echo "$as_me:$LINENO: result: $ac_res" >&5
40794 echo "${ECHO_T}$ac_res" >&6; }
40797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40798 cat >>confdefs.h <<_ACEOF
40799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40806 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40807 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40808 if test "${ac_cv_lib_z_deflate+set}" = set; then
40809 echo $ECHO_N "(cached) $ECHO_C" >&6
40811 ac_check_lib_save_LIBS=$LIBS
40813 cat >conftest.$ac_ext <<_ACEOF
40816 cat confdefs.h >>conftest.$ac_ext
40817 cat >>conftest.$ac_ext <<_ACEOF
40818 /* end confdefs.h. */
40820 /* Override any GCC internal prototype to avoid an error.
40821 Use char because int might match the return type of a GCC
40822 builtin and then its argument prototype would still apply. */
40835 rm -f conftest.$ac_objext conftest$ac_exeext
40836 if { (ac_try="$ac_link"
40837 case "(($ac_try" in
40838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40839 *) ac_try_echo=$ac_try;;
40841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40842 (eval "$ac_link") 2>conftest.er1
40844 grep -v '^ *+' conftest.er1 >conftest.err
40846 cat conftest.err >&5
40847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); } && {
40849 test -z "$ac_cxx_werror_flag" ||
40850 test ! -s conftest.err
40851 } && test -s conftest$ac_exeext &&
40852 $as_test_x conftest$ac_exeext; then
40853 ac_cv_lib_z_deflate=yes
40855 echo "$as_me: failed program was:" >&5
40856 sed 's/^/| /' conftest.$ac_ext >&5
40858 ac_cv_lib_z_deflate=no
40861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40862 conftest$ac_exeext conftest.$ac_ext
40863 LIBS=$ac_check_lib_save_LIBS
40865 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40866 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40867 if test $ac_cv_lib_z_deflate = yes; then
40872 if test x$FDLIBS = x-lz; then
40873 cat >>confdefs.h <<\_ACEOF
40874 #define HAVE_LIBZ 1
40881 # Check whether --enable-acl was given.
40882 if test "${enable_acl+set}" = set; then
40883 enableval=$enable_acl;
40884 if test x$enableval = xyes; then
40886 elif test x$enableval = xno; then
40895 have_extended_acl=no
40896 if test x$support_acl = xyes -o x$support_acl = xauto; then
40897 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40898 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40899 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40900 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40901 echo $ECHO_N "(cached) $ECHO_C" >&6
40903 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40904 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40906 # Is the header compilable?
40907 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40908 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40909 cat >conftest.$ac_ext <<_ACEOF
40912 cat confdefs.h >>conftest.$ac_ext
40913 cat >>conftest.$ac_ext <<_ACEOF
40914 /* end confdefs.h. */
40915 $ac_includes_default
40916 #include <sys/acl.h>
40918 rm -f conftest.$ac_objext
40919 if { (ac_try="$ac_compile"
40920 case "(($ac_try" in
40921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40922 *) ac_try_echo=$ac_try;;
40924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40925 (eval "$ac_compile") 2>conftest.er1
40927 grep -v '^ *+' conftest.er1 >conftest.err
40929 cat conftest.err >&5
40930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40931 (exit $ac_status); } && {
40932 test -z "$ac_cxx_werror_flag" ||
40933 test ! -s conftest.err
40934 } && test -s conftest.$ac_objext; then
40935 ac_header_compiler=yes
40937 echo "$as_me: failed program was:" >&5
40938 sed 's/^/| /' conftest.$ac_ext >&5
40940 ac_header_compiler=no
40943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40945 echo "${ECHO_T}$ac_header_compiler" >&6; }
40947 # Is the header present?
40948 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40949 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40950 cat >conftest.$ac_ext <<_ACEOF
40953 cat confdefs.h >>conftest.$ac_ext
40954 cat >>conftest.$ac_ext <<_ACEOF
40955 /* end confdefs.h. */
40956 #include <sys/acl.h>
40958 if { (ac_try="$ac_cpp conftest.$ac_ext"
40959 case "(($ac_try" in
40960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40961 *) ac_try_echo=$ac_try;;
40963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40966 grep -v '^ *+' conftest.er1 >conftest.err
40968 cat conftest.err >&5
40969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40970 (exit $ac_status); } >/dev/null && {
40971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
40972 test ! -s conftest.err
40974 ac_header_preproc=yes
40976 echo "$as_me: failed program was:" >&5
40977 sed 's/^/| /' conftest.$ac_ext >&5
40979 ac_header_preproc=no
40982 rm -f conftest.err conftest.$ac_ext
40983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40984 echo "${ECHO_T}$ac_header_preproc" >&6; }
40986 # So? What about this header?
40987 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
40989 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40990 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40991 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40992 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40993 ac_header_preproc=yes
40996 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40997 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40998 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40999 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
41000 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41001 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41002 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
41003 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
41004 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41005 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41006 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41007 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41011 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41012 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41013 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41014 echo $ECHO_N "(cached) $ECHO_C" >&6
41016 ac_cv_header_sys_acl_h=$ac_header_preproc
41018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41019 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41022 if test $ac_cv_header_sys_acl_h = yes; then
41024 cat >>confdefs.h <<\_ACEOF
41025 #define HAVE_SYS_ACL_H 1
41031 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41032 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41033 if test "${ac_cv_func_acl_get_file+set}" = set; then
41034 echo $ECHO_N "(cached) $ECHO_C" >&6
41036 cat >conftest.$ac_ext <<_ACEOF
41039 cat confdefs.h >>conftest.$ac_ext
41040 cat >>conftest.$ac_ext <<_ACEOF
41041 /* end confdefs.h. */
41042 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41044 #define acl_get_file innocuous_acl_get_file
41046 /* System header to define __stub macros and hopefully few prototypes,
41047 which can conflict with char acl_get_file (); below.
41048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41049 <limits.h> exists even on freestanding compilers. */
41052 # include <limits.h>
41054 # include <assert.h>
41057 #undef acl_get_file
41059 /* Override any GCC internal prototype to avoid an error.
41060 Use char because int might match the return type of a GCC
41061 builtin and then its argument prototype would still apply. */
41065 char acl_get_file ();
41066 /* The GNU C library defines this for functions which it implements
41067 to always fail with ENOSYS. Some functions are actually named
41068 something starting with __ and the normal name is an alias. */
41069 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41076 return acl_get_file ();
41081 rm -f conftest.$ac_objext conftest$ac_exeext
41082 if { (ac_try="$ac_link"
41083 case "(($ac_try" in
41084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41085 *) ac_try_echo=$ac_try;;
41087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41088 (eval "$ac_link") 2>conftest.er1
41090 grep -v '^ *+' conftest.er1 >conftest.err
41092 cat conftest.err >&5
41093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094 (exit $ac_status); } && {
41095 test -z "$ac_cxx_werror_flag" ||
41096 test ! -s conftest.err
41097 } && test -s conftest$ac_exeext &&
41098 $as_test_x conftest$ac_exeext; then
41099 ac_cv_func_acl_get_file=yes
41101 echo "$as_me: failed program was:" >&5
41102 sed 's/^/| /' conftest.$ac_ext >&5
41104 ac_cv_func_acl_get_file=no
41107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41108 conftest$ac_exeext conftest.$ac_ext
41110 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41111 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41112 if test $ac_cv_func_acl_get_file = yes; then
41118 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41119 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41120 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41121 echo $ECHO_N "(cached) $ECHO_C" >&6
41123 ac_check_lib_save_LIBS=$LIBS
41125 cat >conftest.$ac_ext <<_ACEOF
41128 cat confdefs.h >>conftest.$ac_ext
41129 cat >>conftest.$ac_ext <<_ACEOF
41130 /* end confdefs.h. */
41132 /* Override any GCC internal prototype to avoid an error.
41133 Use char because int might match the return type of a GCC
41134 builtin and then its argument prototype would still apply. */
41138 char acl_get_file ();
41142 return acl_get_file ();
41147 rm -f conftest.$ac_objext conftest$ac_exeext
41148 if { (ac_try="$ac_link"
41149 case "(($ac_try" in
41150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41151 *) ac_try_echo=$ac_try;;
41153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41154 (eval "$ac_link") 2>conftest.er1
41156 grep -v '^ *+' conftest.er1 >conftest.err
41158 cat conftest.err >&5
41159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41160 (exit $ac_status); } && {
41161 test -z "$ac_cxx_werror_flag" ||
41162 test ! -s conftest.err
41163 } && test -s conftest$ac_exeext &&
41164 $as_test_x conftest$ac_exeext; then
41165 ac_cv_lib_acl_acl_get_file=yes
41167 echo "$as_me: failed program was:" >&5
41168 sed 's/^/| /' conftest.$ac_ext >&5
41170 ac_cv_lib_acl_acl_get_file=no
41173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41174 conftest$ac_exeext conftest.$ac_ext
41175 LIBS=$ac_check_lib_save_LIBS
41177 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41178 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41179 if test $ac_cv_lib_acl_acl_get_file = yes; then
41182 FDLIBS="-lacl $FDLIBS"
41186 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41187 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41188 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41189 echo $ECHO_N "(cached) $ECHO_C" >&6
41191 ac_check_lib_save_LIBS=$LIBS
41192 LIBS="-lpacl $LIBS"
41193 cat >conftest.$ac_ext <<_ACEOF
41196 cat confdefs.h >>conftest.$ac_ext
41197 cat >>conftest.$ac_ext <<_ACEOF
41198 /* end confdefs.h. */
41200 /* Override any GCC internal prototype to avoid an error.
41201 Use char because int might match the return type of a GCC
41202 builtin and then its argument prototype would still apply. */
41206 char acl_get_file ();
41210 return acl_get_file ();
41215 rm -f conftest.$ac_objext conftest$ac_exeext
41216 if { (ac_try="$ac_link"
41217 case "(($ac_try" in
41218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41219 *) ac_try_echo=$ac_try;;
41221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41222 (eval "$ac_link") 2>conftest.er1
41224 grep -v '^ *+' conftest.er1 >conftest.err
41226 cat conftest.err >&5
41227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41228 (exit $ac_status); } && {
41229 test -z "$ac_cxx_werror_flag" ||
41230 test ! -s conftest.err
41231 } && test -s conftest$ac_exeext &&
41232 $as_test_x conftest$ac_exeext; then
41233 ac_cv_lib_pacl_acl_get_file=yes
41235 echo "$as_me: failed program was:" >&5
41236 sed 's/^/| /' conftest.$ac_ext >&5
41238 ac_cv_lib_pacl_acl_get_file=no
41241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41242 conftest$ac_exeext conftest.$ac_ext
41243 LIBS=$ac_check_lib_save_LIBS
41245 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41246 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41247 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41250 FDLIBS="-lpacl $FDLIBS"
41254 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41255 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41256 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41257 echo $ECHO_N "(cached) $ECHO_C" >&6
41259 ac_check_lib_save_LIBS=$LIBS
41261 cat >conftest.$ac_ext <<_ACEOF
41264 cat confdefs.h >>conftest.$ac_ext
41265 cat >>conftest.$ac_ext <<_ACEOF
41266 /* end confdefs.h. */
41268 /* Override any GCC internal prototype to avoid an error.
41269 Use char because int might match the return type of a GCC
41270 builtin and then its argument prototype would still apply. */
41278 return acltotext ();
41283 rm -f conftest.$ac_objext conftest$ac_exeext
41284 if { (ac_try="$ac_link"
41285 case "(($ac_try" in
41286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41287 *) ac_try_echo=$ac_try;;
41289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41290 (eval "$ac_link") 2>conftest.er1
41292 grep -v '^ *+' conftest.er1 >conftest.err
41294 cat conftest.err >&5
41295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296 (exit $ac_status); } && {
41297 test -z "$ac_cxx_werror_flag" ||
41298 test ! -s conftest.err
41299 } && test -s conftest$ac_exeext &&
41300 $as_test_x conftest$ac_exeext; then
41301 ac_cv_lib_sec_acltotext=yes
41303 echo "$as_me: failed program was:" >&5
41304 sed 's/^/| /' conftest.$ac_ext >&5
41306 ac_cv_lib_sec_acltotext=no
41309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41310 conftest$ac_exeext conftest.$ac_ext
41311 LIBS=$ac_check_lib_save_LIBS
41313 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41314 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41315 if test $ac_cv_lib_sec_acltotext = yes; then
41318 FDLIBS="-lsec $FDLIBS"
41320 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41321 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41322 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41323 echo $ECHO_N "(cached) $ECHO_C" >&6
41325 ac_check_lib_save_LIBS=$LIBS
41327 cat >conftest.$ac_ext <<_ACEOF
41330 cat confdefs.h >>conftest.$ac_ext
41331 cat >>conftest.$ac_ext <<_ACEOF
41332 /* end confdefs.h. */
41334 /* Override any GCC internal prototype to avoid an error.
41335 Use char because int might match the return type of a GCC
41336 builtin and then its argument prototype would still apply. */
41340 char acl_totext ();
41344 return acl_totext ();
41349 rm -f conftest.$ac_objext conftest$ac_exeext
41350 if { (ac_try="$ac_link"
41351 case "(($ac_try" in
41352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41353 *) ac_try_echo=$ac_try;;
41355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41356 (eval "$ac_link") 2>conftest.er1
41358 grep -v '^ *+' conftest.er1 >conftest.err
41360 cat conftest.err >&5
41361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362 (exit $ac_status); } && {
41363 test -z "$ac_cxx_werror_flag" ||
41364 test ! -s conftest.err
41365 } && test -s conftest$ac_exeext &&
41366 $as_test_x conftest$ac_exeext; then
41367 ac_cv_lib_sec_acl_totext=yes
41369 echo "$as_me: failed program was:" >&5
41370 sed 's/^/| /' conftest.$ac_ext >&5
41372 ac_cv_lib_sec_acl_totext=no
41375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41376 conftest$ac_exeext conftest.$ac_ext
41377 LIBS=$ac_check_lib_save_LIBS
41379 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41380 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41381 if test $ac_cv_lib_sec_acl_totext = yes; then
41383 have_extended_acl=yes
41405 if test x$support_acl = xyes -a $have_acl != yes; then
41406 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41407 please either load the acl libraries or rerun configure without --enable-acl" >&5
41408 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41409 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41410 { (exit 1); exit 1; }; }
41412 if test $have_acl = yes; then
41414 cat >>confdefs.h <<\_ACEOF
41420 if test $have_extended_acl = yes; then
41422 cat >>confdefs.h <<\_ACEOF
41423 #define HAVE_EXTENDED_ACL 1
41431 # Check whether --enable-xattr was given.
41432 if test "${enable_xattr+set}" = set; then
41433 enableval=$enable_xattr;
41434 if test x$enableval = xyes; then
41436 elif test x$enableval = xno; then
41445 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41446 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41447 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41448 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41449 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41450 echo $ECHO_N "(cached) $ECHO_C" >&6
41452 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41453 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41455 # Is the header compilable?
41456 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41457 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41458 cat >conftest.$ac_ext <<_ACEOF
41461 cat confdefs.h >>conftest.$ac_ext
41462 cat >>conftest.$ac_ext <<_ACEOF
41463 /* end confdefs.h. */
41464 $ac_includes_default
41465 #include <sys/extattr.h>
41467 rm -f conftest.$ac_objext
41468 if { (ac_try="$ac_compile"
41469 case "(($ac_try" in
41470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41471 *) ac_try_echo=$ac_try;;
41473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41474 (eval "$ac_compile") 2>conftest.er1
41476 grep -v '^ *+' conftest.er1 >conftest.err
41478 cat conftest.err >&5
41479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41480 (exit $ac_status); } && {
41481 test -z "$ac_cxx_werror_flag" ||
41482 test ! -s conftest.err
41483 } && test -s conftest.$ac_objext; then
41484 ac_header_compiler=yes
41486 echo "$as_me: failed program was:" >&5
41487 sed 's/^/| /' conftest.$ac_ext >&5
41489 ac_header_compiler=no
41492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41494 echo "${ECHO_T}$ac_header_compiler" >&6; }
41496 # Is the header present?
41497 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41498 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41499 cat >conftest.$ac_ext <<_ACEOF
41502 cat confdefs.h >>conftest.$ac_ext
41503 cat >>conftest.$ac_ext <<_ACEOF
41504 /* end confdefs.h. */
41505 #include <sys/extattr.h>
41507 if { (ac_try="$ac_cpp conftest.$ac_ext"
41508 case "(($ac_try" in
41509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41510 *) ac_try_echo=$ac_try;;
41512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41515 grep -v '^ *+' conftest.er1 >conftest.err
41517 cat conftest.err >&5
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); } >/dev/null && {
41520 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41521 test ! -s conftest.err
41523 ac_header_preproc=yes
41525 echo "$as_me: failed program was:" >&5
41526 sed 's/^/| /' conftest.$ac_ext >&5
41528 ac_header_preproc=no
41531 rm -f conftest.err conftest.$ac_ext
41532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41533 echo "${ECHO_T}$ac_header_preproc" >&6; }
41535 # So? What about this header?
41536 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41538 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41539 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41540 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41541 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41542 ac_header_preproc=yes
41545 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41546 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41547 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41548 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41549 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41550 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41551 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41552 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41553 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41554 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41555 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41556 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41560 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41561 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41562 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41563 echo $ECHO_N "(cached) $ECHO_C" >&6
41565 ac_cv_header_sys_extattr_h=$ac_header_preproc
41567 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41568 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41571 if test $ac_cv_header_sys_extattr_h = yes; then
41573 cat >>confdefs.h <<\_ACEOF
41574 #define HAVE_SYS_EXTATTR_H 1
41580 if test "${ac_cv_header_libutil_h+set}" = set; then
41581 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41582 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41583 if test "${ac_cv_header_libutil_h+set}" = set; then
41584 echo $ECHO_N "(cached) $ECHO_C" >&6
41586 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41587 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41589 # Is the header compilable?
41590 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41591 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41592 cat >conftest.$ac_ext <<_ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h. */
41598 $ac_includes_default
41599 #include <libutil.h>
41601 rm -f conftest.$ac_objext
41602 if { (ac_try="$ac_compile"
41603 case "(($ac_try" in
41604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41605 *) ac_try_echo=$ac_try;;
41607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41608 (eval "$ac_compile") 2>conftest.er1
41610 grep -v '^ *+' conftest.er1 >conftest.err
41612 cat conftest.err >&5
41613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614 (exit $ac_status); } && {
41615 test -z "$ac_cxx_werror_flag" ||
41616 test ! -s conftest.err
41617 } && test -s conftest.$ac_objext; then
41618 ac_header_compiler=yes
41620 echo "$as_me: failed program was:" >&5
41621 sed 's/^/| /' conftest.$ac_ext >&5
41623 ac_header_compiler=no
41626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41628 echo "${ECHO_T}$ac_header_compiler" >&6; }
41630 # Is the header present?
41631 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41632 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41633 cat >conftest.$ac_ext <<_ACEOF
41636 cat confdefs.h >>conftest.$ac_ext
41637 cat >>conftest.$ac_ext <<_ACEOF
41638 /* end confdefs.h. */
41639 #include <libutil.h>
41641 if { (ac_try="$ac_cpp conftest.$ac_ext"
41642 case "(($ac_try" in
41643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41644 *) ac_try_echo=$ac_try;;
41646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41649 grep -v '^ *+' conftest.er1 >conftest.err
41651 cat conftest.err >&5
41652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653 (exit $ac_status); } >/dev/null && {
41654 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
41655 test ! -s conftest.err
41657 ac_header_preproc=yes
41659 echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41662 ac_header_preproc=no
41665 rm -f conftest.err conftest.$ac_ext
41666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41667 echo "${ECHO_T}$ac_header_preproc" >&6; }
41669 # So? What about this header?
41670 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
41672 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41673 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41674 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41675 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41676 ac_header_preproc=yes
41679 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41680 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41681 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41682 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41683 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41684 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41685 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41686 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41687 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41688 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41689 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41690 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41694 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41695 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41696 if test "${ac_cv_header_libutil_h+set}" = set; then
41697 echo $ECHO_N "(cached) $ECHO_C" >&6
41699 ac_cv_header_libutil_h=$ac_header_preproc
41701 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41702 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41705 if test $ac_cv_header_libutil_h = yes; then
41707 cat >>confdefs.h <<\_ACEOF
41708 #define HAVE_LIBUTIL_H 1
41717 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41723 echo $ECHO_N "(cached) $ECHO_C" >&6
41725 cat >conftest.$ac_ext <<_ACEOF
41728 cat confdefs.h >>conftest.$ac_ext
41729 cat >>conftest.$ac_ext <<_ACEOF
41730 /* end confdefs.h. */
41731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41733 #define $ac_func innocuous_$ac_func
41735 /* System header to define __stub macros and hopefully few prototypes,
41736 which can conflict with char $ac_func (); below.
41737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41738 <limits.h> exists even on freestanding compilers. */
41741 # include <limits.h>
41743 # include <assert.h>
41748 /* Override any GCC internal prototype to avoid an error.
41749 Use char because int might match the return type of a GCC
41750 builtin and then its argument prototype would still apply. */
41755 /* The GNU C library defines this for functions which it implements
41756 to always fail with ENOSYS. Some functions are actually named
41757 something starting with __ and the normal name is an alias. */
41758 #if defined __stub_$ac_func || defined __stub___$ac_func
41765 return $ac_func ();
41770 rm -f conftest.$ac_objext conftest$ac_exeext
41771 if { (ac_try="$ac_link"
41772 case "(($ac_try" in
41773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41774 *) ac_try_echo=$ac_try;;
41776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41777 (eval "$ac_link") 2>conftest.er1
41779 grep -v '^ *+' conftest.er1 >conftest.err
41781 cat conftest.err >&5
41782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41783 (exit $ac_status); } && {
41784 test -z "$ac_cxx_werror_flag" ||
41785 test ! -s conftest.err
41786 } && test -s conftest$ac_exeext &&
41787 $as_test_x conftest$ac_exeext; then
41788 eval "$as_ac_var=yes"
41790 echo "$as_me: failed program was:" >&5
41791 sed 's/^/| /' conftest.$ac_ext >&5
41793 eval "$as_ac_var=no"
41796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41797 conftest$ac_exeext conftest.$ac_ext
41799 ac_res=`eval echo '${'$as_ac_var'}'`
41800 { echo "$as_me:$LINENO: result: $ac_res" >&5
41801 echo "${ECHO_T}$ac_res" >&6; }
41802 if test `eval echo '${'$as_ac_var'}'` = yes; then
41803 cat >>confdefs.h <<_ACEOF
41804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41809 cat >>confdefs.h <<\_ACEOF
41810 #define HAVE_EXTATTR_GET_LINK 1
41814 cat >>confdefs.h <<\_ACEOF
41815 #define HAVE_EXTATTR_SET_LINK 1
41819 cat >>confdefs.h <<\_ACEOF
41820 #define HAVE_EXTATTR_LIST_LINK 1
41829 if test $have_xattr = no; then
41833 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41839 echo $ECHO_N "(cached) $ECHO_C" >&6
41841 cat >conftest.$ac_ext <<_ACEOF
41844 cat confdefs.h >>conftest.$ac_ext
41845 cat >>conftest.$ac_ext <<_ACEOF
41846 /* end confdefs.h. */
41847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41849 #define $ac_func innocuous_$ac_func
41851 /* System header to define __stub macros and hopefully few prototypes,
41852 which can conflict with char $ac_func (); below.
41853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41854 <limits.h> exists even on freestanding compilers. */
41857 # include <limits.h>
41859 # include <assert.h>
41864 /* Override any GCC internal prototype to avoid an error.
41865 Use char because int might match the return type of a GCC
41866 builtin and then its argument prototype would still apply. */
41871 /* The GNU C library defines this for functions which it implements
41872 to always fail with ENOSYS. Some functions are actually named
41873 something starting with __ and the normal name is an alias. */
41874 #if defined __stub_$ac_func || defined __stub___$ac_func
41881 return $ac_func ();
41886 rm -f conftest.$ac_objext conftest$ac_exeext
41887 if { (ac_try="$ac_link"
41888 case "(($ac_try" in
41889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41890 *) ac_try_echo=$ac_try;;
41892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41893 (eval "$ac_link") 2>conftest.er1
41895 grep -v '^ *+' conftest.er1 >conftest.err
41897 cat conftest.err >&5
41898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41899 (exit $ac_status); } && {
41900 test -z "$ac_cxx_werror_flag" ||
41901 test ! -s conftest.err
41902 } && test -s conftest$ac_exeext &&
41903 $as_test_x conftest$ac_exeext; then
41904 eval "$as_ac_var=yes"
41906 echo "$as_me: failed program was:" >&5
41907 sed 's/^/| /' conftest.$ac_ext >&5
41909 eval "$as_ac_var=no"
41912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41913 conftest$ac_exeext conftest.$ac_ext
41915 ac_res=`eval echo '${'$as_ac_var'}'`
41916 { echo "$as_me:$LINENO: result: $ac_res" >&5
41917 echo "${ECHO_T}$ac_res" >&6; }
41918 if test `eval echo '${'$as_ac_var'}'` = yes; then
41919 cat >>confdefs.h <<_ACEOF
41920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41925 cat >>confdefs.h <<\_ACEOF
41926 #define HAVE_EXTATTR_GET_FILE 1
41930 cat >>confdefs.h <<\_ACEOF
41931 #define HAVE_EXTATTR_SET_FILE 1
41935 cat >>confdefs.h <<\_ACEOF
41936 #define HAVE_EXTATTR_LIST_FILE 1
41946 if test $have_xattr = yes; then
41947 have_extattr_string_in_libc=no
41950 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41956 echo $ECHO_N "(cached) $ECHO_C" >&6
41958 cat >conftest.$ac_ext <<_ACEOF
41961 cat confdefs.h >>conftest.$ac_ext
41962 cat >>conftest.$ac_ext <<_ACEOF
41963 /* end confdefs.h. */
41964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41966 #define $ac_func innocuous_$ac_func
41968 /* System header to define __stub macros and hopefully few prototypes,
41969 which can conflict with char $ac_func (); below.
41970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41971 <limits.h> exists even on freestanding compilers. */
41974 # include <limits.h>
41976 # include <assert.h>
41981 /* Override any GCC internal prototype to avoid an error.
41982 Use char because int might match the return type of a GCC
41983 builtin and then its argument prototype would still apply. */
41988 /* The GNU C library defines this for functions which it implements
41989 to always fail with ENOSYS. Some functions are actually named
41990 something starting with __ and the normal name is an alias. */
41991 #if defined __stub_$ac_func || defined __stub___$ac_func
41998 return $ac_func ();
42003 rm -f conftest.$ac_objext conftest$ac_exeext
42004 if { (ac_try="$ac_link"
42005 case "(($ac_try" in
42006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42007 *) ac_try_echo=$ac_try;;
42009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42010 (eval "$ac_link") 2>conftest.er1
42012 grep -v '^ *+' conftest.er1 >conftest.err
42014 cat conftest.err >&5
42015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016 (exit $ac_status); } && {
42017 test -z "$ac_cxx_werror_flag" ||
42018 test ! -s conftest.err
42019 } && test -s conftest$ac_exeext &&
42020 $as_test_x conftest$ac_exeext; then
42021 eval "$as_ac_var=yes"
42023 echo "$as_me: failed program was:" >&5
42024 sed 's/^/| /' conftest.$ac_ext >&5
42026 eval "$as_ac_var=no"
42029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42030 conftest$ac_exeext conftest.$ac_ext
42032 ac_res=`eval echo '${'$as_ac_var'}'`
42033 { echo "$as_me:$LINENO: result: $ac_res" >&5
42034 echo "${ECHO_T}$ac_res" >&6; }
42035 if test `eval echo '${'$as_ac_var'}'` = yes; then
42036 cat >>confdefs.h <<_ACEOF
42037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42040 have_extattr_string_in_libc=yes
42042 cat >>confdefs.h <<\_ACEOF
42043 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42047 cat >>confdefs.h <<\_ACEOF
42048 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42057 if test $have_extattr_string_in_libc = no; then
42058 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42059 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42060 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42061 echo $ECHO_N "(cached) $ECHO_C" >&6
42063 ac_check_lib_save_LIBS=$LIBS
42064 LIBS="-lutil $LIBS"
42065 cat >conftest.$ac_ext <<_ACEOF
42068 cat confdefs.h >>conftest.$ac_ext
42069 cat >>conftest.$ac_ext <<_ACEOF
42070 /* end confdefs.h. */
42072 /* Override any GCC internal prototype to avoid an error.
42073 Use char because int might match the return type of a GCC
42074 builtin and then its argument prototype would still apply. */
42078 char extattr_namespace_to_string extattr_string_to_namespace ();
42082 return extattr_namespace_to_string extattr_string_to_namespace ();
42087 rm -f conftest.$ac_objext conftest$ac_exeext
42088 if { (ac_try="$ac_link"
42089 case "(($ac_try" in
42090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42091 *) ac_try_echo=$ac_try;;
42093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42094 (eval "$ac_link") 2>conftest.er1
42096 grep -v '^ *+' conftest.er1 >conftest.err
42098 cat conftest.err >&5
42099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100 (exit $ac_status); } && {
42101 test -z "$ac_cxx_werror_flag" ||
42102 test ! -s conftest.err
42103 } && test -s conftest$ac_exeext &&
42104 $as_test_x conftest$ac_exeext; then
42105 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42107 echo "$as_me: failed program was:" >&5
42108 sed 's/^/| /' conftest.$ac_ext >&5
42110 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42114 conftest$ac_exeext conftest.$ac_ext
42115 LIBS=$ac_check_lib_save_LIBS
42117 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42118 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42119 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42122 cat >>confdefs.h <<\_ACEOF
42123 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42127 cat >>confdefs.h <<\_ACEOF
42128 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42131 FDLIBS="-lutil $FDLIBS"
42139 if test $have_xattr = no; then
42140 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42141 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42142 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42143 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42144 echo $ECHO_N "(cached) $ECHO_C" >&6
42146 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42147 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42149 # Is the header compilable?
42150 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42151 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42152 cat >conftest.$ac_ext <<_ACEOF
42155 cat confdefs.h >>conftest.$ac_ext
42156 cat >>conftest.$ac_ext <<_ACEOF
42157 /* end confdefs.h. */
42158 $ac_includes_default
42159 #include <sys/xattr.h>
42161 rm -f conftest.$ac_objext
42162 if { (ac_try="$ac_compile"
42163 case "(($ac_try" in
42164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42165 *) ac_try_echo=$ac_try;;
42167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42168 (eval "$ac_compile") 2>conftest.er1
42170 grep -v '^ *+' conftest.er1 >conftest.err
42172 cat conftest.err >&5
42173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42174 (exit $ac_status); } && {
42175 test -z "$ac_cxx_werror_flag" ||
42176 test ! -s conftest.err
42177 } && test -s conftest.$ac_objext; then
42178 ac_header_compiler=yes
42180 echo "$as_me: failed program was:" >&5
42181 sed 's/^/| /' conftest.$ac_ext >&5
42183 ac_header_compiler=no
42186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42188 echo "${ECHO_T}$ac_header_compiler" >&6; }
42190 # Is the header present?
42191 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42192 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42193 cat >conftest.$ac_ext <<_ACEOF
42196 cat confdefs.h >>conftest.$ac_ext
42197 cat >>conftest.$ac_ext <<_ACEOF
42198 /* end confdefs.h. */
42199 #include <sys/xattr.h>
42201 if { (ac_try="$ac_cpp conftest.$ac_ext"
42202 case "(($ac_try" in
42203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42204 *) ac_try_echo=$ac_try;;
42206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42209 grep -v '^ *+' conftest.er1 >conftest.err
42211 cat conftest.err >&5
42212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42213 (exit $ac_status); } >/dev/null && {
42214 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42215 test ! -s conftest.err
42217 ac_header_preproc=yes
42219 echo "$as_me: failed program was:" >&5
42220 sed 's/^/| /' conftest.$ac_ext >&5
42222 ac_header_preproc=no
42225 rm -f conftest.err conftest.$ac_ext
42226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42227 echo "${ECHO_T}$ac_header_preproc" >&6; }
42229 # So? What about this header?
42230 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42232 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42233 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42234 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42235 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42236 ac_header_preproc=yes
42239 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42240 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42241 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42242 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42243 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42244 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42245 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42246 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42247 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42248 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42249 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42250 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42254 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42255 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42256 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42257 echo $ECHO_N "(cached) $ECHO_C" >&6
42259 ac_cv_header_sys_xattr_h=$ac_header_preproc
42261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42262 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42265 if test $ac_cv_header_sys_xattr_h = yes; then
42267 cat >>confdefs.h <<\_ACEOF
42268 #define HAVE_SYS_XATTR_H 1
42277 for ac_func in llistxattr lgetxattr lsetxattr
42279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42283 echo $ECHO_N "(cached) $ECHO_C" >&6
42285 cat >conftest.$ac_ext <<_ACEOF
42288 cat confdefs.h >>conftest.$ac_ext
42289 cat >>conftest.$ac_ext <<_ACEOF
42290 /* end confdefs.h. */
42291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42293 #define $ac_func innocuous_$ac_func
42295 /* System header to define __stub macros and hopefully few prototypes,
42296 which can conflict with char $ac_func (); below.
42297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42298 <limits.h> exists even on freestanding compilers. */
42301 # include <limits.h>
42303 # include <assert.h>
42308 /* Override any GCC internal prototype to avoid an error.
42309 Use char because int might match the return type of a GCC
42310 builtin and then its argument prototype would still apply. */
42315 /* The GNU C library defines this for functions which it implements
42316 to always fail with ENOSYS. Some functions are actually named
42317 something starting with __ and the normal name is an alias. */
42318 #if defined __stub_$ac_func || defined __stub___$ac_func
42325 return $ac_func ();
42330 rm -f conftest.$ac_objext conftest$ac_exeext
42331 if { (ac_try="$ac_link"
42332 case "(($ac_try" in
42333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42334 *) ac_try_echo=$ac_try;;
42336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42337 (eval "$ac_link") 2>conftest.er1
42339 grep -v '^ *+' conftest.er1 >conftest.err
42341 cat conftest.err >&5
42342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343 (exit $ac_status); } && {
42344 test -z "$ac_cxx_werror_flag" ||
42345 test ! -s conftest.err
42346 } && test -s conftest$ac_exeext &&
42347 $as_test_x conftest$ac_exeext; then
42348 eval "$as_ac_var=yes"
42350 echo "$as_me: failed program was:" >&5
42351 sed 's/^/| /' conftest.$ac_ext >&5
42353 eval "$as_ac_var=no"
42356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42357 conftest$ac_exeext conftest.$ac_ext
42359 ac_res=`eval echo '${'$as_ac_var'}'`
42360 { echo "$as_me:$LINENO: result: $ac_res" >&5
42361 echo "${ECHO_T}$ac_res" >&6; }
42362 if test `eval echo '${'$as_ac_var'}'` = yes; then
42363 cat >>confdefs.h <<_ACEOF
42364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42369 cat >>confdefs.h <<\_ACEOF
42370 #define HAVE_LLISTXATTR 1
42374 cat >>confdefs.h <<\_ACEOF
42375 #define HAVE_LGETXATTR 1
42379 cat >>confdefs.h <<\_ACEOF
42380 #define HAVE_LSETXATTR 1
42389 if test $have_xattr = no; then
42393 for ac_func in listxattr getxattr setxattr
42395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42399 echo $ECHO_N "(cached) $ECHO_C" >&6
42401 cat >conftest.$ac_ext <<_ACEOF
42404 cat confdefs.h >>conftest.$ac_ext
42405 cat >>conftest.$ac_ext <<_ACEOF
42406 /* end confdefs.h. */
42407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42409 #define $ac_func innocuous_$ac_func
42411 /* System header to define __stub macros and hopefully few prototypes,
42412 which can conflict with char $ac_func (); below.
42413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42414 <limits.h> exists even on freestanding compilers. */
42417 # include <limits.h>
42419 # include <assert.h>
42424 /* Override any GCC internal prototype to avoid an error.
42425 Use char because int might match the return type of a GCC
42426 builtin and then its argument prototype would still apply. */
42431 /* The GNU C library defines this for functions which it implements
42432 to always fail with ENOSYS. Some functions are actually named
42433 something starting with __ and the normal name is an alias. */
42434 #if defined __stub_$ac_func || defined __stub___$ac_func
42441 return $ac_func ();
42446 rm -f conftest.$ac_objext conftest$ac_exeext
42447 if { (ac_try="$ac_link"
42448 case "(($ac_try" in
42449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42450 *) ac_try_echo=$ac_try;;
42452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42453 (eval "$ac_link") 2>conftest.er1
42455 grep -v '^ *+' conftest.er1 >conftest.err
42457 cat conftest.err >&5
42458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42459 (exit $ac_status); } && {
42460 test -z "$ac_cxx_werror_flag" ||
42461 test ! -s conftest.err
42462 } && test -s conftest$ac_exeext &&
42463 $as_test_x conftest$ac_exeext; then
42464 eval "$as_ac_var=yes"
42466 echo "$as_me: failed program was:" >&5
42467 sed 's/^/| /' conftest.$ac_ext >&5
42469 eval "$as_ac_var=no"
42472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42473 conftest$ac_exeext conftest.$ac_ext
42475 ac_res=`eval echo '${'$as_ac_var'}'`
42476 { echo "$as_me:$LINENO: result: $ac_res" >&5
42477 echo "${ECHO_T}$ac_res" >&6; }
42478 if test `eval echo '${'$as_ac_var'}'` = yes; then
42479 cat >>confdefs.h <<_ACEOF
42480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42485 cat >>confdefs.h <<\_ACEOF
42486 #define HAVE_LISTXATTR 1
42490 cat >>confdefs.h <<\_ACEOF
42491 #define HAVE_GETXATTR 1
42495 cat >>confdefs.h <<\_ACEOF
42496 #define HAVE_SETXATTR 1
42507 if test $have_xattr = no; then
42508 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42509 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42510 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42511 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42512 echo $ECHO_N "(cached) $ECHO_C" >&6
42514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42515 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42517 # Is the header compilable?
42518 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42519 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42520 cat >conftest.$ac_ext <<_ACEOF
42523 cat confdefs.h >>conftest.$ac_ext
42524 cat >>conftest.$ac_ext <<_ACEOF
42525 /* end confdefs.h. */
42526 $ac_includes_default
42527 #include <sys/attr.h>
42529 rm -f conftest.$ac_objext
42530 if { (ac_try="$ac_compile"
42531 case "(($ac_try" in
42532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42533 *) ac_try_echo=$ac_try;;
42535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42536 (eval "$ac_compile") 2>conftest.er1
42538 grep -v '^ *+' conftest.er1 >conftest.err
42540 cat conftest.err >&5
42541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542 (exit $ac_status); } && {
42543 test -z "$ac_cxx_werror_flag" ||
42544 test ! -s conftest.err
42545 } && test -s conftest.$ac_objext; then
42546 ac_header_compiler=yes
42548 echo "$as_me: failed program was:" >&5
42549 sed 's/^/| /' conftest.$ac_ext >&5
42551 ac_header_compiler=no
42554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42556 echo "${ECHO_T}$ac_header_compiler" >&6; }
42558 # Is the header present?
42559 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42560 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42561 cat >conftest.$ac_ext <<_ACEOF
42564 cat confdefs.h >>conftest.$ac_ext
42565 cat >>conftest.$ac_ext <<_ACEOF
42566 /* end confdefs.h. */
42567 #include <sys/attr.h>
42569 if { (ac_try="$ac_cpp conftest.$ac_ext"
42570 case "(($ac_try" in
42571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42572 *) ac_try_echo=$ac_try;;
42574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42577 grep -v '^ *+' conftest.er1 >conftest.err
42579 cat conftest.err >&5
42580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581 (exit $ac_status); } >/dev/null && {
42582 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42583 test ! -s conftest.err
42585 ac_header_preproc=yes
42587 echo "$as_me: failed program was:" >&5
42588 sed 's/^/| /' conftest.$ac_ext >&5
42590 ac_header_preproc=no
42593 rm -f conftest.err conftest.$ac_ext
42594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42595 echo "${ECHO_T}$ac_header_preproc" >&6; }
42597 # So? What about this header?
42598 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42600 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42601 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42602 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42603 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42604 ac_header_preproc=yes
42607 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42608 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42609 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42610 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42611 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42612 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42613 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42614 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42615 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42616 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42617 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42618 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42622 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42623 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42624 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42625 echo $ECHO_N "(cached) $ECHO_C" >&6
42627 ac_cv_header_sys_attr_h=$ac_header_preproc
42629 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42630 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42633 if test $ac_cv_header_sys_attr_h = yes; then
42635 cat >>confdefs.h <<\_ACEOF
42636 #define HAVE_SYS_ATTR_H 1
42642 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42643 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42644 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42645 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42646 echo $ECHO_N "(cached) $ECHO_C" >&6
42648 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42649 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42651 # Is the header compilable?
42652 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42653 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42654 cat >conftest.$ac_ext <<_ACEOF
42657 cat confdefs.h >>conftest.$ac_ext
42658 cat >>conftest.$ac_ext <<_ACEOF
42659 /* end confdefs.h. */
42660 $ac_includes_default
42661 #include <sys/nvpair.h>
42663 rm -f conftest.$ac_objext
42664 if { (ac_try="$ac_compile"
42665 case "(($ac_try" in
42666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42667 *) ac_try_echo=$ac_try;;
42669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42670 (eval "$ac_compile") 2>conftest.er1
42672 grep -v '^ *+' conftest.er1 >conftest.err
42674 cat conftest.err >&5
42675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42676 (exit $ac_status); } && {
42677 test -z "$ac_cxx_werror_flag" ||
42678 test ! -s conftest.err
42679 } && test -s conftest.$ac_objext; then
42680 ac_header_compiler=yes
42682 echo "$as_me: failed program was:" >&5
42683 sed 's/^/| /' conftest.$ac_ext >&5
42685 ac_header_compiler=no
42688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42690 echo "${ECHO_T}$ac_header_compiler" >&6; }
42692 # Is the header present?
42693 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42694 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42695 cat >conftest.$ac_ext <<_ACEOF
42698 cat confdefs.h >>conftest.$ac_ext
42699 cat >>conftest.$ac_ext <<_ACEOF
42700 /* end confdefs.h. */
42701 #include <sys/nvpair.h>
42703 if { (ac_try="$ac_cpp conftest.$ac_ext"
42704 case "(($ac_try" in
42705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42706 *) ac_try_echo=$ac_try;;
42708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42711 grep -v '^ *+' conftest.er1 >conftest.err
42713 cat conftest.err >&5
42714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715 (exit $ac_status); } >/dev/null && {
42716 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42717 test ! -s conftest.err
42719 ac_header_preproc=yes
42721 echo "$as_me: failed program was:" >&5
42722 sed 's/^/| /' conftest.$ac_ext >&5
42724 ac_header_preproc=no
42727 rm -f conftest.err conftest.$ac_ext
42728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42729 echo "${ECHO_T}$ac_header_preproc" >&6; }
42731 # So? What about this header?
42732 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42734 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42735 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42736 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42737 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42738 ac_header_preproc=yes
42741 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42742 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42743 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42744 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42745 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42746 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42747 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42748 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42749 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42750 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42751 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42752 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42756 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42757 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42758 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42759 echo $ECHO_N "(cached) $ECHO_C" >&6
42761 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42763 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42764 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42767 if test $ac_cv_header_sys_nvpair_h = yes; then
42769 cat >>confdefs.h <<\_ACEOF
42770 #define HAVE_SYS_NVPAIR_H 1
42776 if test "${ac_cv_header_attr_h+set}" = set; then
42777 { echo "$as_me:$LINENO: checking for attr.h" >&5
42778 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42779 if test "${ac_cv_header_attr_h+set}" = set; then
42780 echo $ECHO_N "(cached) $ECHO_C" >&6
42782 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42783 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42785 # Is the header compilable?
42786 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42787 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42788 cat >conftest.$ac_ext <<_ACEOF
42791 cat confdefs.h >>conftest.$ac_ext
42792 cat >>conftest.$ac_ext <<_ACEOF
42793 /* end confdefs.h. */
42794 $ac_includes_default
42797 rm -f conftest.$ac_objext
42798 if { (ac_try="$ac_compile"
42799 case "(($ac_try" in
42800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42801 *) ac_try_echo=$ac_try;;
42803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42804 (eval "$ac_compile") 2>conftest.er1
42806 grep -v '^ *+' conftest.er1 >conftest.err
42808 cat conftest.err >&5
42809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810 (exit $ac_status); } && {
42811 test -z "$ac_cxx_werror_flag" ||
42812 test ! -s conftest.err
42813 } && test -s conftest.$ac_objext; then
42814 ac_header_compiler=yes
42816 echo "$as_me: failed program was:" >&5
42817 sed 's/^/| /' conftest.$ac_ext >&5
42819 ac_header_compiler=no
42822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42824 echo "${ECHO_T}$ac_header_compiler" >&6; }
42826 # Is the header present?
42827 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42828 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42829 cat >conftest.$ac_ext <<_ACEOF
42832 cat confdefs.h >>conftest.$ac_ext
42833 cat >>conftest.$ac_ext <<_ACEOF
42834 /* end confdefs.h. */
42837 if { (ac_try="$ac_cpp conftest.$ac_ext"
42838 case "(($ac_try" in
42839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42840 *) ac_try_echo=$ac_try;;
42842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42845 grep -v '^ *+' conftest.er1 >conftest.err
42847 cat conftest.err >&5
42848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42849 (exit $ac_status); } >/dev/null && {
42850 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
42851 test ! -s conftest.err
42853 ac_header_preproc=yes
42855 echo "$as_me: failed program was:" >&5
42856 sed 's/^/| /' conftest.$ac_ext >&5
42858 ac_header_preproc=no
42861 rm -f conftest.err conftest.$ac_ext
42862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42863 echo "${ECHO_T}$ac_header_preproc" >&6; }
42865 # So? What about this header?
42866 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
42868 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42869 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42870 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42871 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42872 ac_header_preproc=yes
42875 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42876 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42877 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42878 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42879 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42880 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42881 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42882 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42883 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42884 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42885 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42886 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42890 { echo "$as_me:$LINENO: checking for attr.h" >&5
42891 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42892 if test "${ac_cv_header_attr_h+set}" = set; then
42893 echo $ECHO_N "(cached) $ECHO_C" >&6
42895 ac_cv_header_attr_h=$ac_header_preproc
42897 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42898 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42901 if test $ac_cv_header_attr_h = yes; then
42903 cat >>confdefs.h <<\_ACEOF
42904 #define HAVE_ATTR_H 1
42916 for ac_func in openat fstatat unlinkat fchownat futimesat
42918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42922 echo $ECHO_N "(cached) $ECHO_C" >&6
42924 cat >conftest.$ac_ext <<_ACEOF
42927 cat confdefs.h >>conftest.$ac_ext
42928 cat >>conftest.$ac_ext <<_ACEOF
42929 /* end confdefs.h. */
42930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42932 #define $ac_func innocuous_$ac_func
42934 /* System header to define __stub macros and hopefully few prototypes,
42935 which can conflict with char $ac_func (); below.
42936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42937 <limits.h> exists even on freestanding compilers. */
42940 # include <limits.h>
42942 # include <assert.h>
42947 /* Override any GCC internal prototype to avoid an error.
42948 Use char because int might match the return type of a GCC
42949 builtin and then its argument prototype would still apply. */
42954 /* The GNU C library defines this for functions which it implements
42955 to always fail with ENOSYS. Some functions are actually named
42956 something starting with __ and the normal name is an alias. */
42957 #if defined __stub_$ac_func || defined __stub___$ac_func
42964 return $ac_func ();
42969 rm -f conftest.$ac_objext conftest$ac_exeext
42970 if { (ac_try="$ac_link"
42971 case "(($ac_try" in
42972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42973 *) ac_try_echo=$ac_try;;
42975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42976 (eval "$ac_link") 2>conftest.er1
42978 grep -v '^ *+' conftest.er1 >conftest.err
42980 cat conftest.err >&5
42981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42982 (exit $ac_status); } && {
42983 test -z "$ac_cxx_werror_flag" ||
42984 test ! -s conftest.err
42985 } && test -s conftest$ac_exeext &&
42986 $as_test_x conftest$ac_exeext; then
42987 eval "$as_ac_var=yes"
42989 echo "$as_me: failed program was:" >&5
42990 sed 's/^/| /' conftest.$ac_ext >&5
42992 eval "$as_ac_var=no"
42995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42996 conftest$ac_exeext conftest.$ac_ext
42998 ac_res=`eval echo '${'$as_ac_var'}'`
42999 { echo "$as_me:$LINENO: result: $ac_res" >&5
43000 echo "${ECHO_T}$ac_res" >&6; }
43001 if test `eval echo '${'$as_ac_var'}'` = yes; then
43002 cat >>confdefs.h <<_ACEOF
43003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43008 cat >>confdefs.h <<\_ACEOF
43009 #define HAVE_OPENAT 1
43013 cat >>confdefs.h <<\_ACEOF
43014 #define HAVE_FSTATAT 1
43018 cat >>confdefs.h <<\_ACEOF
43019 #define HAVE_UNLINKAT 1
43023 cat >>confdefs.h <<\_ACEOF
43024 #define HAVE_FCHOWNAT 1
43028 cat >>confdefs.h <<\_ACEOF
43029 #define HAVE_FUTIMESAT 1
43038 if test $have_xattr = yes; then
43039 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43040 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43041 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43042 echo $ECHO_N "(cached) $ECHO_C" >&6
43044 ac_check_lib_save_LIBS=$LIBS
43045 LIBS="-lnvpair $LIBS"
43046 cat >conftest.$ac_ext <<_ACEOF
43049 cat confdefs.h >>conftest.$ac_ext
43050 cat >>conftest.$ac_ext <<_ACEOF
43051 /* end confdefs.h. */
43053 /* Override any GCC internal prototype to avoid an error.
43054 Use char because int might match the return type of a GCC
43055 builtin and then its argument prototype would still apply. */
43059 char nvlist_next_nvpair ();
43063 return nvlist_next_nvpair ();
43068 rm -f conftest.$ac_objext conftest$ac_exeext
43069 if { (ac_try="$ac_link"
43070 case "(($ac_try" in
43071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43072 *) ac_try_echo=$ac_try;;
43074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43075 (eval "$ac_link") 2>conftest.er1
43077 grep -v '^ *+' conftest.er1 >conftest.err
43079 cat conftest.err >&5
43080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081 (exit $ac_status); } && {
43082 test -z "$ac_cxx_werror_flag" ||
43083 test ! -s conftest.err
43084 } && test -s conftest$ac_exeext &&
43085 $as_test_x conftest$ac_exeext; then
43086 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43088 echo "$as_me: failed program was:" >&5
43089 sed 's/^/| /' conftest.$ac_ext >&5
43091 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43095 conftest$ac_exeext conftest.$ac_ext
43096 LIBS=$ac_check_lib_save_LIBS
43098 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43099 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43100 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43103 cat >>confdefs.h <<\_ACEOF
43104 #define HAVE_NVLIST_NEXT_NVPAIR 1
43107 FDLIBS="-lnvpair $FDLIBS"
43115 if test x$support_xattr = xyes -a $have_xattr != yes; then
43116 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43117 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43118 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43119 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43120 { (exit 1); exit 1; }; }
43122 if test $have_xattr = yes; then
43124 cat >>confdefs.h <<\_ACEOF
43125 #define HAVE_XATTR 1
43133 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43134 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43135 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43136 echo $ECHO_N "(cached) $ECHO_C" >&6
43138 ac_check_lib_save_LIBS=$LIBS
43139 LIBS="-lpthread $LIBS"
43140 cat >conftest.$ac_ext <<_ACEOF
43143 cat confdefs.h >>conftest.$ac_ext
43144 cat >>conftest.$ac_ext <<_ACEOF
43145 /* end confdefs.h. */
43147 /* Override any GCC internal prototype to avoid an error.
43148 Use char because int might match the return type of a GCC
43149 builtin and then its argument prototype would still apply. */
43153 char pthread_create ();
43157 return pthread_create ();
43162 rm -f conftest.$ac_objext conftest$ac_exeext
43163 if { (ac_try="$ac_link"
43164 case "(($ac_try" in
43165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43166 *) ac_try_echo=$ac_try;;
43168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43169 (eval "$ac_link") 2>conftest.er1
43171 grep -v '^ *+' conftest.er1 >conftest.err
43173 cat conftest.err >&5
43174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43175 (exit $ac_status); } && {
43176 test -z "$ac_cxx_werror_flag" ||
43177 test ! -s conftest.err
43178 } && test -s conftest$ac_exeext &&
43179 $as_test_x conftest$ac_exeext; then
43180 ac_cv_lib_pthread_pthread_create=yes
43182 echo "$as_me: failed program was:" >&5
43183 sed 's/^/| /' conftest.$ac_ext >&5
43185 ac_cv_lib_pthread_pthread_create=no
43188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43189 conftest$ac_exeext conftest.$ac_ext
43190 LIBS=$ac_check_lib_save_LIBS
43192 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43193 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43194 if test $ac_cv_lib_pthread_pthread_create = yes; then
43195 PTHREAD_LIB="-lpthread"
43198 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43199 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43200 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43201 echo $ECHO_N "(cached) $ECHO_C" >&6
43203 ac_check_lib_save_LIBS=$LIBS
43204 LIBS="-lpthreads $LIBS"
43205 cat >conftest.$ac_ext <<_ACEOF
43208 cat confdefs.h >>conftest.$ac_ext
43209 cat >>conftest.$ac_ext <<_ACEOF
43210 /* end confdefs.h. */
43212 /* Override any GCC internal prototype to avoid an error.
43213 Use char because int might match the return type of a GCC
43214 builtin and then its argument prototype would still apply. */
43218 char pthread_create ();
43222 return pthread_create ();
43227 rm -f conftest.$ac_objext conftest$ac_exeext
43228 if { (ac_try="$ac_link"
43229 case "(($ac_try" in
43230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43231 *) ac_try_echo=$ac_try;;
43233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43234 (eval "$ac_link") 2>conftest.er1
43236 grep -v '^ *+' conftest.er1 >conftest.err
43238 cat conftest.err >&5
43239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43240 (exit $ac_status); } && {
43241 test -z "$ac_cxx_werror_flag" ||
43242 test ! -s conftest.err
43243 } && test -s conftest$ac_exeext &&
43244 $as_test_x conftest$ac_exeext; then
43245 ac_cv_lib_pthreads_pthread_create=yes
43247 echo "$as_me: failed program was:" >&5
43248 sed 's/^/| /' conftest.$ac_ext >&5
43250 ac_cv_lib_pthreads_pthread_create=no
43253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43254 conftest$ac_exeext conftest.$ac_ext
43255 LIBS=$ac_check_lib_save_LIBS
43257 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43258 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43259 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43260 PTHREAD_LIB="-lpthreads"
43263 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43264 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43265 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43266 echo $ECHO_N "(cached) $ECHO_C" >&6
43268 ac_check_lib_save_LIBS=$LIBS
43270 cat >conftest.$ac_ext <<_ACEOF
43273 cat confdefs.h >>conftest.$ac_ext
43274 cat >>conftest.$ac_ext <<_ACEOF
43275 /* end confdefs.h. */
43277 /* Override any GCC internal prototype to avoid an error.
43278 Use char because int might match the return type of a GCC
43279 builtin and then its argument prototype would still apply. */
43283 char pthread_create ();
43287 return pthread_create ();
43292 rm -f conftest.$ac_objext conftest$ac_exeext
43293 if { (ac_try="$ac_link"
43294 case "(($ac_try" in
43295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43296 *) ac_try_echo=$ac_try;;
43298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43299 (eval "$ac_link") 2>conftest.er1
43301 grep -v '^ *+' conftest.er1 >conftest.err
43303 cat conftest.err >&5
43304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43305 (exit $ac_status); } && {
43306 test -z "$ac_cxx_werror_flag" ||
43307 test ! -s conftest.err
43308 } && test -s conftest$ac_exeext &&
43309 $as_test_x conftest$ac_exeext; then
43310 ac_cv_lib_c_r_pthread_create=yes
43312 echo "$as_me: failed program was:" >&5
43313 sed 's/^/| /' conftest.$ac_ext >&5
43315 ac_cv_lib_c_r_pthread_create=no
43318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43319 conftest$ac_exeext conftest.$ac_ext
43320 LIBS=$ac_check_lib_save_LIBS
43322 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43323 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43324 if test $ac_cv_lib_c_r_pthread_create = yes; then
43325 PTHREAD_LIB="-lc_r"
43328 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43329 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43330 if test "${ac_cv_func_pthread_create+set}" = set; then
43331 echo $ECHO_N "(cached) $ECHO_C" >&6
43333 cat >conftest.$ac_ext <<_ACEOF
43336 cat confdefs.h >>conftest.$ac_ext
43337 cat >>conftest.$ac_ext <<_ACEOF
43338 /* end confdefs.h. */
43339 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43341 #define pthread_create innocuous_pthread_create
43343 /* System header to define __stub macros and hopefully few prototypes,
43344 which can conflict with char pthread_create (); below.
43345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43346 <limits.h> exists even on freestanding compilers. */
43349 # include <limits.h>
43351 # include <assert.h>
43354 #undef pthread_create
43356 /* Override any GCC internal prototype to avoid an error.
43357 Use char because int might match the return type of a GCC
43358 builtin and then its argument prototype would still apply. */
43362 char pthread_create ();
43363 /* The GNU C library defines this for functions which it implements
43364 to always fail with ENOSYS. Some functions are actually named
43365 something starting with __ and the normal name is an alias. */
43366 #if defined __stub_pthread_create || defined __stub___pthread_create
43373 return pthread_create ();
43378 rm -f conftest.$ac_objext conftest$ac_exeext
43379 if { (ac_try="$ac_link"
43380 case "(($ac_try" in
43381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43382 *) ac_try_echo=$ac_try;;
43384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43385 (eval "$ac_link") 2>conftest.er1
43387 grep -v '^ *+' conftest.er1 >conftest.err
43389 cat conftest.err >&5
43390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43391 (exit $ac_status); } && {
43392 test -z "$ac_cxx_werror_flag" ||
43393 test ! -s conftest.err
43394 } && test -s conftest$ac_exeext &&
43395 $as_test_x conftest$ac_exeext; then
43396 ac_cv_func_pthread_create=yes
43398 echo "$as_me: failed program was:" >&5
43399 sed 's/^/| /' conftest.$ac_ext >&5
43401 ac_cv_func_pthread_create=no
43404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43405 conftest$ac_exeext conftest.$ac_ext
43407 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43408 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43425 for ac_header in sys/prctl.h sys/capability.h
43427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43432 echo $ECHO_N "(cached) $ECHO_C" >&6
43434 ac_res=`eval echo '${'$as_ac_Header'}'`
43435 { echo "$as_me:$LINENO: result: $ac_res" >&5
43436 echo "${ECHO_T}$ac_res" >&6; }
43438 # Is the header compilable?
43439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43441 cat >conftest.$ac_ext <<_ACEOF
43444 cat confdefs.h >>conftest.$ac_ext
43445 cat >>conftest.$ac_ext <<_ACEOF
43446 /* end confdefs.h. */
43447 $ac_includes_default
43448 #include <$ac_header>
43450 rm -f conftest.$ac_objext
43451 if { (ac_try="$ac_compile"
43452 case "(($ac_try" in
43453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43454 *) ac_try_echo=$ac_try;;
43456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43457 (eval "$ac_compile") 2>conftest.er1
43459 grep -v '^ *+' conftest.er1 >conftest.err
43461 cat conftest.err >&5
43462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43463 (exit $ac_status); } && {
43464 test -z "$ac_cxx_werror_flag" ||
43465 test ! -s conftest.err
43466 } && test -s conftest.$ac_objext; then
43467 ac_header_compiler=yes
43469 echo "$as_me: failed program was:" >&5
43470 sed 's/^/| /' conftest.$ac_ext >&5
43472 ac_header_compiler=no
43475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43477 echo "${ECHO_T}$ac_header_compiler" >&6; }
43479 # Is the header present?
43480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43482 cat >conftest.$ac_ext <<_ACEOF
43485 cat confdefs.h >>conftest.$ac_ext
43486 cat >>conftest.$ac_ext <<_ACEOF
43487 /* end confdefs.h. */
43488 #include <$ac_header>
43490 if { (ac_try="$ac_cpp conftest.$ac_ext"
43491 case "(($ac_try" in
43492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43493 *) ac_try_echo=$ac_try;;
43495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43498 grep -v '^ *+' conftest.er1 >conftest.err
43500 cat conftest.err >&5
43501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43502 (exit $ac_status); } >/dev/null && {
43503 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
43504 test ! -s conftest.err
43506 ac_header_preproc=yes
43508 echo "$as_me: failed program was:" >&5
43509 sed 's/^/| /' conftest.$ac_ext >&5
43511 ac_header_preproc=no
43514 rm -f conftest.err conftest.$ac_ext
43515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43516 echo "${ECHO_T}$ac_header_preproc" >&6; }
43518 # So? What about this header?
43519 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
43521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43525 ac_header_preproc=yes
43528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43546 echo $ECHO_N "(cached) $ECHO_C" >&6
43548 eval "$as_ac_Header=\$ac_header_preproc"
43550 ac_res=`eval echo '${'$as_ac_Header'}'`
43551 { echo "$as_me:$LINENO: result: $ac_res" >&5
43552 echo "${ECHO_T}$ac_res" >&6; }
43555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43556 cat >>confdefs.h <<_ACEOF
43557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43566 for ac_func in prctl setreuid
43568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43572 echo $ECHO_N "(cached) $ECHO_C" >&6
43574 cat >conftest.$ac_ext <<_ACEOF
43577 cat confdefs.h >>conftest.$ac_ext
43578 cat >>conftest.$ac_ext <<_ACEOF
43579 /* end confdefs.h. */
43580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43582 #define $ac_func innocuous_$ac_func
43584 /* System header to define __stub macros and hopefully few prototypes,
43585 which can conflict with char $ac_func (); below.
43586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43587 <limits.h> exists even on freestanding compilers. */
43590 # include <limits.h>
43592 # include <assert.h>
43597 /* Override any GCC internal prototype to avoid an error.
43598 Use char because int might match the return type of a GCC
43599 builtin and then its argument prototype would still apply. */
43604 /* The GNU C library defines this for functions which it implements
43605 to always fail with ENOSYS. Some functions are actually named
43606 something starting with __ and the normal name is an alias. */
43607 #if defined __stub_$ac_func || defined __stub___$ac_func
43614 return $ac_func ();
43619 rm -f conftest.$ac_objext conftest$ac_exeext
43620 if { (ac_try="$ac_link"
43621 case "(($ac_try" in
43622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43623 *) ac_try_echo=$ac_try;;
43625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43626 (eval "$ac_link") 2>conftest.er1
43628 grep -v '^ *+' conftest.er1 >conftest.err
43630 cat conftest.err >&5
43631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43632 (exit $ac_status); } && {
43633 test -z "$ac_cxx_werror_flag" ||
43634 test ! -s conftest.err
43635 } && test -s conftest$ac_exeext &&
43636 $as_test_x conftest$ac_exeext; then
43637 eval "$as_ac_var=yes"
43639 echo "$as_me: failed program was:" >&5
43640 sed 's/^/| /' conftest.$ac_ext >&5
43642 eval "$as_ac_var=no"
43645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43646 conftest$ac_exeext conftest.$ac_ext
43648 ac_res=`eval echo '${'$as_ac_var'}'`
43649 { echo "$as_me:$LINENO: result: $ac_res" >&5
43650 echo "${ECHO_T}$ac_res" >&6; }
43651 if test `eval echo '${'$as_ac_var'}'` = yes; then
43652 cat >>confdefs.h <<_ACEOF
43653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43659 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43660 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43661 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43662 echo $ECHO_N "(cached) $ECHO_C" >&6
43664 ac_check_lib_save_LIBS=$LIBS
43666 cat >conftest.$ac_ext <<_ACEOF
43669 cat confdefs.h >>conftest.$ac_ext
43670 cat >>conftest.$ac_ext <<_ACEOF
43671 /* end confdefs.h. */
43673 /* Override any GCC internal prototype to avoid an error.
43674 Use char because int might match the return type of a GCC
43675 builtin and then its argument prototype would still apply. */
43679 char cap_set_proc ();
43683 return cap_set_proc ();
43688 rm -f conftest.$ac_objext conftest$ac_exeext
43689 if { (ac_try="$ac_link"
43690 case "(($ac_try" in
43691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43692 *) ac_try_echo=$ac_try;;
43694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43695 (eval "$ac_link") 2>conftest.er1
43697 grep -v '^ *+' conftest.er1 >conftest.err
43699 cat conftest.err >&5
43700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43701 (exit $ac_status); } && {
43702 test -z "$ac_cxx_werror_flag" ||
43703 test ! -s conftest.err
43704 } && test -s conftest$ac_exeext &&
43705 $as_test_x conftest$ac_exeext; then
43706 ac_cv_lib_cap_cap_set_proc=yes
43708 echo "$as_me: failed program was:" >&5
43709 sed 's/^/| /' conftest.$ac_ext >&5
43711 ac_cv_lib_cap_cap_set_proc=no
43714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43715 conftest$ac_exeext conftest.$ac_ext
43716 LIBS=$ac_check_lib_save_LIBS
43718 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43719 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43720 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43726 if test x$CAP_LIBS = x-lcap; then
43728 cat >>confdefs.h <<\_ACEOF
43729 #define HAVE_LIBCAP 1
43736 cat >>confdefs.h <<\_ACEOF
43741 CFLAGS=${CFLAGS--O}
43743 if test x$have_gcc = xyes ; then
43744 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43745 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43747 LDFLAGS=${LDFLAGS--O}
43748 DB_LIBS="${SQL_LFLAGS}"
43749 CPPFLAGS="$CPPFLAGS"
43776 PFILES="platforms/Makefile"
43781 hostname=`uname -n | cut -d '.' -f 1`
43782 if test x${hostname} = x ; then
43783 hostname="localhost"
43785 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43786 if test ! $? = 0; then
43787 hostname="localhost"
43790 case "$DISTNAME" in
43793 PSCMD="ps -e -o pid,comm"
43794 PFILES="${PFILES} \
43795 platforms/aix/Makefile"
43796 TAPEDRIVE="/dev/rmt0.1"
43800 PTHREAD_LIB="-lpthread -lexc"
43801 if test "${CC}" = "gcc" ; then
43808 TAPEDRIVE="/dev/nrmt0"
43811 DISTVER=`uname -a |awk '{print $3}'`
43812 TAPEDRIVE="/dev/nrmt0"
43813 PTHREAD_LIB="-pthread"
43814 CFLAGS="${CFLAGS} -pthread"
43815 PSCMD="ps -ax -o pid,command"
43818 PFILES="${PFILES} \
43819 platforms/bsdi/Makefile \
43820 platforms/bsdi/bacula-fd \
43821 platforms/bsdi/bacula-sd \
43822 platforms/bsdi/bacula-dir"
43823 largefile_support="yes"
43826 DISTVER=`uname -a |awk '{print $3}'`
43827 TAPEDRIVE="/dev/nrst0"
43829 WCFLAGS="-mwindows"
43830 WLDFLAGS="-mwindows"
43834 TAPEDRIVE="/dev/nst0"
43835 PSCMD="ps -e -o pid,command"
43837 PFILES="${PFILES} \
43838 platforms/darwin/Makefile"
43842 TAPEDRIVE="/dev/nst0"
43843 PSCMD="ps -e -o pid,command"
43845 PFILES="${PFILES} \
43846 platforms/osx/Makefile"
43849 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43852 DISTVER=`cat /etc/debian_version`
43853 if test -f /etc/lsb-release ; then
43855 if test "x$DISTRIB_ID" != "x" ; then
43856 DISTNAME=$DISTRIB_ID
43858 if test "x$DISTRIB_RELEASE" != "x" ; then
43859 DISTVER=$DISTRIB_RELEASE
43862 if test "$DISTNAME" = "Ubuntu" ; then
43865 TAPEDRIVE="/dev/nst0"
43866 PSCMD="ps -e -o pid,command"
43867 if test "$DISTNAME" = "ubuntu" ; then
43868 PFILES="${PFILES} \
43869 platforms/ubuntu/Makefile \
43870 platforms/ubuntu/bacula-fd \
43871 platforms/ubuntu/bacula-sd \
43872 platforms/ubuntu/bacula-dir"
43874 PFILES="${PFILES} \
43875 platforms/debian/Makefile \
43876 platforms/debian/bacula-fd \
43877 platforms/debian/bacula-sd \
43878 platforms/debian/bacula-dir"
43882 DISTVER=`uname -a |awk '{print $3}'`
43883 VER=`echo $DISTVER | cut -c 1`
43884 if test x$VER = x4 ; then
43885 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43886 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43890 TAPEDRIVE="/dev/nrsa0"
43891 PSCMD="ps -ax -o pid,command"
43892 PFILES="${PFILES} \
43893 platforms/freebsd/Makefile \
43894 platforms/freebsd/bacula-fd \
43895 platforms/freebsd/bacula-sd \
43896 platforms/freebsd/bacula-dir"
43897 largefile_support="yes"
43900 PSCMD="UNIX95=1; ps -e -o pid,comm"
43901 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43903 TAPEDRIVE="/dev/rmt/0hnb"
43904 PTHREAD_LIB="-lpthread"
43905 cat >>confdefs.h <<\_ACEOF
43906 #define _INCLUDE_LONGLONG 1
43912 TAPEDRIVE="/dev/rmt/0cbn"
43913 PSCMD="ps -e -o pid,comm"
43914 PFILES="${PFILES} \
43915 platforms/irix/Makefile \
43916 platforms/irix/bacula-fd \
43917 platforms/irix/bacula-sd \
43918 platforms/irix/bacula-dir"
43921 DISTVER=`uname -a |awk '{print $3}'`
43924 TAPEDRIVE="/dev/nrst0"
43925 PSCMD="ps -ax -o pid,command"
43926 PTHREAD_LIB="-pthread"
43927 CFLAGS="${CFLAGS} -pthread"
43930 DISTVER=`uname -a |awk '{print $3}'`
43933 TAPEDRIVE="/dev/nrst0"
43934 PSCMD="ps -ax -o pid,command"
43935 PTHREAD_LIB="-pthread"
43936 CFLAGS="${CFLAGS} -pthread"
43937 PFILES="${PFILES} \
43938 platforms/openbsd/Makefile \
43939 platforms/openbsd/bacula-fd \
43940 platforms/openbsd/bacula-sd \
43941 platforms/openbsd/bacula-dir"
43944 if test -f /etc/whitebox-release ; then
43945 f=/etc/whitebox-release
43947 f=/etc/redhat-release
43949 if test `cat $f | grep release |\
43950 cut -f 3 -d ' '`x = "Enterprise"x ; then
43951 DISTVER="Enterprise "`cat $f | grep release |\
43954 DISTVER=`cat /etc/redhat-release | grep release |\
43957 TAPEDRIVE="/dev/nst0"
43958 PSCMD="ps -e -o pid,command"
43959 PFILES="${PFILES} \
43960 platforms/redhat/Makefile \
43961 platforms/redhat/bacula-fd \
43962 platforms/redhat/bacula-sd \
43963 platforms/redhat/bacula-dir
43967 DISTVER=`cat /etc/mandrake-release | grep release |\
43969 TAPEDRIVE="/dev/nst0"
43970 PSCMD="ps -e -o pid,command"
43971 PFILES="${PFILES} \
43972 platforms/mandrake/Makefile \
43973 platforms/mandrake/bacula-fd \
43974 platforms/mandrake/bacula-sd \
43975 platforms/mandrake/bacula-dir \
43976 platforms/mandrake/bacula.spec \
43980 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43981 TAPEDRIVE="/dev/nst0"
43982 PSCMD="ps -e -o pid,command"
43983 PFILES="${PFILES} \
43984 platforms/gentoo/Makefile \
43985 platforms/gentoo/bacula-init \
43986 platforms/gentoo/bacula-fd \
43987 platforms/gentoo/bacula-sd \
43988 platforms/gentoo/bacula-dir"
43991 DISTVER=`cat /etc/slackware-version`
43992 TAPEDRIVE="/dev/nst0"
43993 PSCMD="ps -e -o pid,command"
43994 PFILES="${PFILES} \
43995 platforms/slackware/Makefile \
43996 platforms/slackware/rc.bacula-fd \
43997 platforms/slackware/rc.bacula-sd \
43998 platforms/slackware/rc.bacula-dir\
43999 platforms/slackware/functions.bacula"
44003 TAPEDRIVE="/dev/rmt/0cbn"
44004 PSCMD="ps -e -o pid,comm"
44005 PFILES="${PFILES} \
44006 platforms/solaris/Makefile \
44007 platforms/solaris/bacula-fd \
44008 platforms/solaris/bacula-sd \
44009 platforms/solaris/bacula-dir"
44010 if test x$DISTVER = x5.6 ; then
44011 cat >>confdefs.h <<\_ACEOF
44012 #define HAVE_OLD_SOCKOPT 1
44016 LIBS="$LIBS -lresolv"
44019 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44021 TAPEDRIVE="/dev/nst0"
44022 PSCMD="ps -e -o pid,command"
44023 PFILES="${PFILES} \
44024 platforms/suse/Makefile \
44025 platforms/suse/bacula-fd \
44026 platforms/suse/bacula-sd \
44027 platforms/suse/bacula-dir \
44028 platforms/suse/bacula \
44029 platforms/suse/bacula.spec"
44034 TAPEDRIVE="/dev/nst0"
44035 PSCMD="ps -e -o pid,command"
44036 PFILES="${PFILES} \
44037 platforms/suse/Makefile \
44038 platforms/suse/bacula-fd \
44039 platforms/suse/bacula-sd \
44040 platforms/suse/bacula-dir"
44044 TAPEDRIVE="/dev/nst0"
44047 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44053 LIBS="$PTHREAD_LIB $LIBS"
44055 cat >>confdefs.h <<_ACEOF
44059 cat >>confdefs.h <<_ACEOF
44070 MCOMMON=./autoconf/Make.common
44073 if test "x${subsysdir}" = "x${sbindir}" ; then
44076 echo "You have set both --sbindir and --with-subsys-dir"
44077 echo " equal to: ${subsysdir} "
44078 echo "This is not permitted. Please reconfigure."
44080 echo "Aborting configuration ..."
44086 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"
44088 ac_config_commands="$ac_config_commands default"
44090 cat >confcache <<\_ACEOF
44091 # This file is a shell script that caches the results of configure
44092 # tests run on this system so they can be shared between configure
44093 # scripts and configure runs, see configure's option --config-cache.
44094 # It is not useful on other systems. If it contains results you don't
44095 # want to keep, you may remove or edit it.
44097 # config.status only pays attention to the cache file if you give it
44098 # the --recheck option to rerun configure.
44100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44102 # following values.
44106 # The following way of writing the cache mishandles newlines in values,
44107 # but we know of no workaround that is simple, portable, and efficient.
44108 # So, we kill variables containing newlines.
44109 # Ultrix sh set writes to stderr and can't be redirected directly,
44110 # and sets the high bit in the cache file unless we assign to the vars.
44112 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44113 eval ac_val=\$$ac_var
44117 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44118 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44121 _ | IFS | as_nl) ;; #(
44122 *) $as_unset $ac_var ;;
44128 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44129 *${as_nl}ac_space=\ *)
44130 # `set' does not quote correctly, so add quotes (double-quote
44131 # substitution turns \\\\ into \\, and sed turns \\ into \).
44134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44137 # `set' quotes correctly as required by POSIX, so do not add quotes.
44138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44147 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44149 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44151 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44152 if test -w "$cache_file"; then
44153 test "x$cache_file" != "x/dev/null" &&
44154 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44155 echo "$as_me: updating cache $cache_file" >&6;}
44156 cat confcache >$cache_file
44158 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44159 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44165 # Let make expand exec_prefix.
44166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44168 DEFS=-DHAVE_CONFIG_H
44172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44173 # 1. Remove the extension, and $U if already installed.
44174 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44175 ac_i=`echo "$ac_i" | sed "$ac_script"`
44176 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44177 # will be set to the directory where LIBOBJS objects are built.
44178 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44179 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44181 LIBOBJS=$ac_libobjs
44183 LTLIBOBJS=$ac_ltlibobjs
44187 : ${CONFIG_STATUS=./config.status}
44188 ac_clean_files_save=$ac_clean_files
44189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44190 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44191 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44192 cat >$CONFIG_STATUS <<_ACEOF
44194 # Generated by $as_me.
44195 # Run this file to recreate the current configuration.
44196 # Compiler output produced by configure, useful for debugging
44197 # configure, is in config.log if it exists.
44200 ac_cs_recheck=false
44202 SHELL=\${CONFIG_SHELL-$SHELL}
44205 cat >>$CONFIG_STATUS <<\_ACEOF
44206 ## --------------------- ##
44207 ## M4sh Initialization. ##
44208 ## --------------------- ##
44210 # Be more Bourne compatible
44211 DUALCASE=1; export DUALCASE # for MKS sh
44212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44215 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44216 # is contrary to our usage. Disable this feature.
44217 alias -g '${1+"$@"}'='"$@"'
44218 setopt NO_GLOB_SUBST
44220 case `(set -o) 2>/dev/null` in
44221 *posix*) set -o posix ;;
44230 # Avoid depending upon Character Ranges.
44231 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44232 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44233 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44234 as_cr_digits='0123456789'
44235 as_cr_alnum=$as_cr_Letters$as_cr_digits
44237 # The user is always right.
44238 if test "${PATH_SEPARATOR+set}" != set; then
44239 echo "#! /bin/sh" >conf$$.sh
44240 echo "exit 0" >>conf$$.sh
44242 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44250 # Support unset when possible.
44251 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44259 # We need space, tab and new line, in precisely that order. Quoting is
44260 # there to prevent editors from complaining about space-tab.
44261 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44262 # splitting by setting IFS to empty value.)
44267 # Find who we are. Look in the path if we contain no directory separator.
44269 *[\\/]* ) as_myself=$0 ;;
44270 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44271 for as_dir in $PATH
44274 test -z "$as_dir" && as_dir=.
44275 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44281 # We did not find ourselves, most probably we were run as `sh COMMAND'
44282 # in which case we are not to be found in the path.
44283 if test "x$as_myself" = x; then
44286 if test ! -f "$as_myself"; then
44287 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44288 { (exit 1); exit 1; }
44291 # Work around bugs in pre-3.0 UWIN ksh.
44292 for as_var in ENV MAIL MAILPATH
44293 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44301 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44302 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44303 LC_TELEPHONE LC_TIME
44305 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44306 eval $as_var=C; export $as_var
44308 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44312 # Required to use basename.
44313 if expr a : '\(a\)' >/dev/null 2>&1 &&
44314 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44320 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44321 as_basename=basename
44327 # Name of the executable.
44328 as_me=`$as_basename -- "$0" ||
44329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44330 X"$0" : 'X\(//\)$' \| \
44331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44333 sed '/^.*\/\([^/][^/]*\)\/*$/{
44352 as_lineno_1=$LINENO
44353 as_lineno_2=$LINENO
44354 test "x$as_lineno_1" != "x$as_lineno_2" &&
44355 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44357 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44358 # uniformly replaced by the line number. The first 'sed' inserts a
44359 # line-number line after each line using $LINENO; the second 'sed'
44360 # does the real work. The second script uses 'N' to pair each
44361 # line-number line with the line containing $LINENO, and appends
44362 # trailing '-' during substitution so that $LINENO is not a special
44363 # case at line end.
44364 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44365 # scripts with optimization help from Paolo Bonzini. Blame Lee
44366 # E. McMahon (1931-1989) for sed's syntax. :-)
44378 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44381 ' >$as_me.lineno &&
44382 chmod +x "$as_me.lineno" ||
44383 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44384 { (exit 1); exit 1; }; }
44386 # Don't try to exec as it changes $[0], causing all sort of problems
44387 # (the dirname of $[0] is not the place where we might find the
44388 # original and so on. Autoconf is especially sensitive to this).
44389 . "./$as_me.lineno"
44390 # Exit status is that of the last command.
44395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44401 ECHO_C= ECHO_N= ECHO_T=
44402 case `echo -n x` in
44404 case `echo 'x\c'` in
44405 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44412 if expr a : '\(a\)' >/dev/null 2>&1 &&
44413 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44419 rm -f conf$$ conf$$.exe conf$$.file
44420 if test -d conf$$.dir; then
44421 rm -f conf$$.dir/conf$$.file
44427 if ln -s conf$$.file conf$$ 2>/dev/null; then
44429 # ... but there are two gotchas:
44430 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44431 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44432 # In both cases, we have to default to `cp -p'.
44433 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44435 elif ln conf$$.file conf$$ 2>/dev/null; then
44440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44441 rmdir conf$$.dir 2>/dev/null
44443 if mkdir -p . 2>/dev/null; then
44446 test -d ./-p && rmdir ./-p
44450 if test -x / >/dev/null 2>&1; then
44451 as_test_x='test -x'
44453 if ls -dL / >/dev/null 2>&1; then
44460 if test -d "$1"; then
44466 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44467 ???[sx]*):;;*)false;;esac;fi
44471 as_executable_p=$as_test_x
44473 # Sed expression to map a string onto a valid CPP name.
44474 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44476 # Sed expression to map a string onto a valid variable name.
44477 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44482 # Save the log message, to keep $[0] and so on meaningful, and to
44483 # report actual input values of CONFIG_FILES etc. instead of their
44484 # values after options handling.
44486 This file was extended by $as_me, which was
44487 generated by GNU Autoconf 2.61. Invocation command line was
44489 CONFIG_FILES = $CONFIG_FILES
44490 CONFIG_HEADERS = $CONFIG_HEADERS
44491 CONFIG_LINKS = $CONFIG_LINKS
44492 CONFIG_COMMANDS = $CONFIG_COMMANDS
44495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44500 cat >>$CONFIG_STATUS <<_ACEOF
44501 # Files that config.status was made for.
44502 config_files="$ac_config_files"
44503 config_headers="$ac_config_headers"
44504 config_commands="$ac_config_commands"
44508 cat >>$CONFIG_STATUS <<\_ACEOF
44510 \`$as_me' instantiates files from templates according to the
44511 current configuration.
44513 Usage: $0 [OPTIONS] [FILE]...
44515 -h, --help print this help, then exit
44516 -V, --version print version number and configuration settings, then exit
44517 -q, --quiet do not print progress messages
44518 -d, --debug don't remove temporary files
44519 --recheck update $as_me by reconfiguring in the same conditions
44520 --file=FILE[:TEMPLATE]
44521 instantiate the configuration file FILE
44522 --header=FILE[:TEMPLATE]
44523 instantiate the configuration header FILE
44525 Configuration files:
44528 Configuration headers:
44531 Configuration commands:
44534 Report bugs to <bug-autoconf@gnu.org>."
44537 cat >>$CONFIG_STATUS <<_ACEOF
44540 configured by $0, generated by GNU Autoconf 2.61,
44541 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44543 Copyright (C) 2006 Free Software Foundation, Inc.
44544 This config.status script is free software; the Free Software Foundation
44545 gives unlimited permission to copy, distribute and modify it."
44552 cat >>$CONFIG_STATUS <<\_ACEOF
44553 # If no file are specified by the user, then we need to provide default
44554 # value. By we need to know if files were specified by the user.
44560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44561 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44572 # Handling of the options.
44573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44576 echo "$ac_cs_version"; exit ;;
44577 --debug | --debu | --deb | --de | --d | -d )
44579 --file | --fil | --fi | --f )
44581 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44582 ac_need_defaults=false;;
44583 --header | --heade | --head | --hea )
44585 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44586 ac_need_defaults=false;;
44588 # Conflict between --help and --header
44589 { echo "$as_me: error: ambiguous option: $1
44590 Try \`$0 --help' for more information." >&2
44591 { (exit 1); exit 1; }; };;
44592 --help | --hel | -h )
44593 echo "$ac_cs_usage"; exit ;;
44594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44598 # This is an error.
44599 -*) { echo "$as_me: error: unrecognized option: $1
44600 Try \`$0 --help' for more information." >&2
44601 { (exit 1); exit 1; }; } ;;
44603 *) ac_config_targets="$ac_config_targets $1"
44604 ac_need_defaults=false ;;
44610 ac_configure_extra_args=
44612 if $ac_cs_silent; then
44614 ac_configure_extra_args="$ac_configure_extra_args --silent"
44618 cat >>$CONFIG_STATUS <<_ACEOF
44619 if \$ac_cs_recheck; then
44620 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44621 CONFIG_SHELL=$SHELL
44622 export CONFIG_SHELL
44623 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44627 cat >>$CONFIG_STATUS <<\_ACEOF
44631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44632 ## Running $as_me. ##
44638 cat >>$CONFIG_STATUS <<_ACEOF
44644 # The HP-UX ksh and POSIX shell print the target directory to stdout
44645 # if CDPATH is set.
44646 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44648 sed_quote_subst='$sed_quote_subst'
44649 double_quote_subst='$double_quote_subst'
44650 delay_variable_subst='$delay_variable_subst'
44651 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44652 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44653 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44654 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44655 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44656 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44657 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44658 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44659 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44660 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44661 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44662 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44663 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44664 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44665 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44666 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44667 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44668 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44669 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44670 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44671 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44672 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44673 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44674 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44675 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44676 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44677 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44678 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44679 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44680 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44681 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44682 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44683 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44684 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44685 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44686 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44687 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44688 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44689 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44690 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44691 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44692 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44693 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44694 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44695 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"`'
44696 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"`'
44697 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44698 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44699 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44700 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44701 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44702 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44703 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44704 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44705 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44706 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44707 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44708 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44709 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44710 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44711 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44712 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44713 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44714 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44715 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44716 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44717 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44718 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44719 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44720 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44721 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44722 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44723 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44724 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44725 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44726 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44727 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44728 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44729 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44730 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44731 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44732 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44733 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44734 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44735 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44736 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44737 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44738 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44739 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44740 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44741 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44742 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44743 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44744 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44745 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44746 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44747 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44748 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44749 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44750 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44751 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44752 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44753 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44754 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44755 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44756 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44757 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44758 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44759 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44760 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44761 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44762 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44763 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44764 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44765 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44766 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44767 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44768 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44769 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44770 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44771 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44772 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44773 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44774 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44775 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44776 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44777 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44778 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44779 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44780 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44781 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44782 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44783 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44784 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44785 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44786 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44787 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44788 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44789 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44790 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44791 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44792 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44793 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44794 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44795 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44796 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44797 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44798 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44799 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44800 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44801 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44802 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44803 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44804 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44805 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44806 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44807 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44808 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44809 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44810 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44811 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44812 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44813 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44814 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44815 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44816 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44817 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44818 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44819 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44820 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44821 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44824 LTCFLAGS='$LTCFLAGS'
44825 compiler='$compiler_DEFAULT'
44827 # Quote evaled strings.
44839 deplibs_check_method \
44848 lt_cv_sys_global_symbol_pipe \
44849 lt_cv_sys_global_symbol_to_cdecl \
44850 lt_cv_sys_global_symbol_to_c_name_address \
44851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44854 lt_prog_compiler_no_builtin_flag \
44855 lt_prog_compiler_wl \
44856 lt_prog_compiler_pic \
44857 lt_prog_compiler_static \
44858 lt_cv_prog_compiler_c_o \
44866 export_dynamic_flag_spec \
44867 whole_archive_flag_spec \
44868 compiler_needs_object \
44870 allow_undefined_flag \
44871 no_undefined_flag \
44872 hardcode_libdir_flag_spec \
44873 hardcode_libdir_flag_spec_ld \
44874 hardcode_libdir_separator \
44879 variables_saved_for_relink \
44881 library_names_spec \
44886 compiler_lib_search_dirs \
44891 compiler_lib_search_path \
44894 lt_prog_compiler_no_builtin_flag_CXX \
44895 lt_prog_compiler_wl_CXX \
44896 lt_prog_compiler_pic_CXX \
44897 lt_prog_compiler_static_CXX \
44898 lt_cv_prog_compiler_c_o_CXX \
44899 export_dynamic_flag_spec_CXX \
44900 whole_archive_flag_spec_CXX \
44901 compiler_needs_object_CXX \
44903 allow_undefined_flag_CXX \
44904 no_undefined_flag_CXX \
44905 hardcode_libdir_flag_spec_CXX \
44906 hardcode_libdir_flag_spec_ld_CXX \
44907 hardcode_libdir_separator_CXX \
44908 fix_srcfile_path_CXX \
44909 exclude_expsyms_CXX \
44910 include_expsyms_CXX \
44911 file_list_spec_CXX \
44912 compiler_lib_search_dirs_CXX \
44913 predep_objects_CXX \
44914 postdep_objects_CXX \
44917 compiler_lib_search_path_CXX; do
44918 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44919 *[\\\\\\\`\\"\\\$]*)
44920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44928 # Double-quote double-evaled strings.
44929 for var in reload_cmds \
44930 old_postinstall_cmds \
44931 old_postuninstall_cmds \
44933 extract_expsyms_cmds \
44934 old_archive_from_new_cmds \
44935 old_archive_from_expsyms_cmds \
44937 archive_expsym_cmds \
44939 module_expsym_cmds \
44940 export_symbols_cmds \
44943 postuninstall_cmds \
44945 sys_lib_search_path_spec \
44946 sys_lib_dlsearch_path_spec \
44947 old_archive_cmds_CXX \
44948 old_archive_from_new_cmds_CXX \
44949 old_archive_from_expsyms_cmds_CXX \
44951 archive_expsym_cmds_CXX \
44953 module_expsym_cmds_CXX \
44954 export_symbols_cmds_CXX \
44955 prelink_cmds_CXX; do
44956 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44957 *[\\\\\\\`\\"\\\$]*)
44958 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44961 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44966 # Fix-up fallback echo if it was mangled by the above quoting rules.
44968 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44972 ac_aux_dir='$ac_aux_dir'
44973 xsi_shell='$xsi_shell'
44974 lt_shell_append='$lt_shell_append'
44976 # See if we are running on zsh, and set the options which allow our
44977 # commands through without removal of \ escapes INIT.
44978 if test -n "\${ZSH_VERSION+set}" ; then
44979 setopt NO_GLOB_SUBST
44985 TIMESTAMP='$TIMESTAMP'
44993 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44994 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44996 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44997 # Capture the value of LINGUAS because we need it to compute CATALOGS.
44998 LINGUAS="${LINGUAS-%UNSET%}"
45003 cat >>$CONFIG_STATUS <<\_ACEOF
45005 # Handling of arguments.
45006 for ac_config_target in $ac_config_targets
45008 case $ac_config_target in
45009 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45010 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45011 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45012 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45013 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45014 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45015 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45016 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45017 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45018 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45019 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45020 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45021 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45022 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45023 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45024 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45025 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45026 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45027 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45028 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45029 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45030 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45031 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45032 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45033 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45034 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45035 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45036 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45037 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45038 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45039 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45040 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45041 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45042 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45043 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45044 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45045 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45046 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45047 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45048 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45049 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45050 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45051 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45052 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45053 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45054 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45055 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45056 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45057 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45058 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45059 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45060 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45061 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45062 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45063 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45064 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45065 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45066 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45067 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45068 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45069 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45070 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45071 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45072 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45073 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45074 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45075 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45076 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45077 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45078 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45079 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45080 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45081 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45082 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45083 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45084 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45085 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45086 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45087 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45088 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45089 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45090 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45091 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45092 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45093 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45094 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45095 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45096 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45097 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45098 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45099 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45100 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45101 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45102 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45103 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45104 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45105 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45106 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45107 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45108 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45109 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45110 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45111 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45112 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45113 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45114 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45115 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45116 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45117 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45118 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45119 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45121 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45122 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45123 { (exit 1); exit 1; }; };;
45128 # If the user did not use the arguments to specify the items to instantiate,
45129 # then the envvar interface is used. Set only those that are not.
45130 # We use the long form for the default assignment because of an extremely
45131 # bizarre bug on SunOS 4.1.3.
45132 if $ac_need_defaults; then
45133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45135 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45138 # Have a temporary directory for convenience. Make it in the build tree
45139 # simply because there is no reason against having it here, and in addition,
45140 # creating and moving files from /tmp can sometimes cause problems.
45141 # Hook for its removal unless debugging.
45142 # Note that there is a small window in which the directory will not be cleaned:
45143 # after its creation but before its name has been assigned to `$tmp'.
45147 trap 'exit_status=$?
45148 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45150 trap '{ (exit 1); exit 1; }' 1 2 13 15
45152 # Create a (secure) tmp directory for tmp files.
45155 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45156 test -n "$tmp" && test -d "$tmp"
45159 tmp=./conf$$-$RANDOM
45160 (umask 077 && mkdir "$tmp")
45163 echo "$me: cannot create a temporary directory in ." >&2
45164 { (exit 1); exit 1; }
45168 # Set up the sed scripts for CONFIG_FILES section.
45171 # No need to generate the scripts if there are no CONFIG_FILES.
45172 # This happens for instance when ./config.status config.h
45173 if test -n "$CONFIG_FILES"; then
45177 # Create sed commands to just substitute file output variables.
45179 # Remaining file output variables are in a fragment that also has non-file
45185 for ac_last_try in false false false false false :; do
45186 cat >conf$$subs.sed <<_ACEOF
45187 SHELL!$SHELL$ac_delim
45188 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45189 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45190 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45191 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45192 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45193 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45194 exec_prefix!$exec_prefix$ac_delim
45195 prefix!$prefix$ac_delim
45196 program_transform_name!$program_transform_name$ac_delim
45197 bindir!$bindir$ac_delim
45198 sbindir!$sbindir$ac_delim
45199 libexecdir!$libexecdir$ac_delim
45200 datarootdir!$datarootdir$ac_delim
45201 datadir!$datadir$ac_delim
45202 sysconfdir!$sysconfdir$ac_delim
45203 sharedstatedir!$sharedstatedir$ac_delim
45204 localstatedir!$localstatedir$ac_delim
45205 includedir!$includedir$ac_delim
45206 oldincludedir!$oldincludedir$ac_delim
45207 docdir!$docdir$ac_delim
45208 infodir!$infodir$ac_delim
45209 htmldir!$htmldir$ac_delim
45210 dvidir!$dvidir$ac_delim
45211 pdfdir!$pdfdir$ac_delim
45212 psdir!$psdir$ac_delim
45213 libdir!$libdir$ac_delim
45214 localedir!$localedir$ac_delim
45215 mandir!$mandir$ac_delim
45216 DEFS!$DEFS$ac_delim
45217 ECHO_C!$ECHO_C$ac_delim
45218 ECHO_N!$ECHO_N$ac_delim
45219 ECHO_T!$ECHO_T$ac_delim
45220 LIBS!$LIBS$ac_delim
45221 build_alias!$build_alias$ac_delim
45222 host_alias!$host_alias$ac_delim
45223 target_alias!$target_alias$ac_delim
45224 BUILD_DIR!$BUILD_DIR$ac_delim
45225 TOP_DIR!$TOP_DIR$ac_delim
45226 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45227 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45228 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45229 TRUEPRG!$TRUEPRG$ac_delim
45230 FALSEPRG!$FALSEPRG$ac_delim
45231 VERSION!$VERSION$ac_delim
45232 DATE!$DATE$ac_delim
45233 LSMDATE!$LSMDATE$ac_delim
45234 BACULA!$BACULA$ac_delim
45235 post_host!$post_host$ac_delim
45237 CFLAGS!$CFLAGS$ac_delim
45238 LDFLAGS!$LDFLAGS$ac_delim
45239 CPPFLAGS!$CPPFLAGS$ac_delim
45240 ac_ct_CC!$ac_ct_CC$ac_delim
45241 EXEEXT!$EXEEXT$ac_delim
45242 OBJEXT!$OBJEXT$ac_delim
45244 CXXFLAGS!$CXXFLAGS$ac_delim
45245 ac_ct_CXX!$ac_ct_CXX$ac_delim
45247 GREP!$GREP$ac_delim
45248 EGREP!$EGREP$ac_delim
45249 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45250 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45251 INSTALL_DATA!$INSTALL_DATA$ac_delim
45253 REMOVE!$REMOVE$ac_delim
45256 ECHO!$ECHO$ac_delim
45260 OPENSSL!$OPENSSL$ac_delim
45263 MKISOFS!$MKISOFS$ac_delim
45264 PYTHON!$PYTHON$ac_delim
45265 GROWISOFS!$GROWISOFS$ac_delim
45266 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45267 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45268 PKGCONFIG!$PKGCONFIG$ac_delim
45269 QMAKE!$QMAKE$ac_delim
45270 QMAKEQT4!$QMAKEQT4$ac_delim
45271 GMAKE!$GMAKE$ac_delim
45272 WXCONFIG!$WXCONFIG$ac_delim
45273 WXFLAGS!$WXFLAGS$ac_delim
45274 CDRECORD!$CDRECORD$ac_delim
45275 PIDOF!$PIDOF$ac_delim
45277 ARFLAGS!$ARFLAGS$ac_delim
45278 MAKE_SHELL!$MAKE_SHELL$ac_delim
45279 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45280 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45283 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45285 elif $ac_last_try; then
45286 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45287 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45288 { (exit 1); exit 1; }; }
45290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45294 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45295 if test -n "$ac_eof"; then
45296 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45297 ac_eof=`expr $ac_eof + 1`
45300 cat >>$CONFIG_STATUS <<_ACEOF
45301 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45303 /^[ ]*@MCOMMON@[ ]*$/{
45309 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45310 s/^/s,@/; s/!/@,|#_!!_#|/
45313 s/'"$ac_delim"'$/,g/; t
45315 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45316 ' >>$CONFIG_STATUS <conf$$subs.sed
45317 rm -f conf$$subs.sed
45318 cat >>$CONFIG_STATUS <<_ACEOF
45324 for ac_last_try in false false false false false :; do
45325 cat >conf$$subs.sed <<_ACEOF
45326 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45327 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45328 LIBTOOL!$LIBTOOL$ac_delim
45329 build!$build$ac_delim
45330 build_cpu!$build_cpu$ac_delim
45331 build_vendor!$build_vendor$ac_delim
45332 build_os!$build_os$ac_delim
45333 host!$host$ac_delim
45334 host_cpu!$host_cpu$ac_delim
45335 host_vendor!$host_vendor$ac_delim
45336 host_os!$host_os$ac_delim
45337 FGREP!$FGREP$ac_delim
45339 DUMPBIN!$DUMPBIN$ac_delim
45340 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45342 LN_S!$LN_S$ac_delim
45343 OBJDUMP!$OBJDUMP$ac_delim
45344 STRIP!$STRIP$ac_delim
45345 RANLIB!$RANLIB$ac_delim
45346 lt_ECHO!$lt_ECHO$ac_delim
45347 DSYMUTIL!$DSYMUTIL$ac_delim
45348 NMEDIT!$NMEDIT$ac_delim
45349 LIPO!$LIPO$ac_delim
45350 OTOOL!$OTOOL$ac_delim
45351 OTOOL64!$OTOOL64$ac_delim
45352 CXXCPP!$CXXCPP$ac_delim
45353 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45354 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45355 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45356 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45357 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45358 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45359 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45360 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45361 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45362 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45363 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45364 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45365 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45366 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45367 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45368 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45369 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45370 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45371 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45372 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45373 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45374 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45375 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45376 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45377 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45378 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45379 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45380 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45381 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45382 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45383 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45384 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45385 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45386 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45387 SET_MAKE!$SET_MAKE$ac_delim
45388 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45389 USE_NLS!$USE_NLS$ac_delim
45390 MSGFMT!$MSGFMT$ac_delim
45391 GMSGFMT!$GMSGFMT$ac_delim
45392 XGETTEXT!$XGETTEXT$ac_delim
45393 MSGMERGE!$MSGMERGE$ac_delim
45394 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45395 LIBICONV!$LIBICONV$ac_delim
45396 LTLIBICONV!$LTLIBICONV$ac_delim
45397 INTLLIBS!$INTLLIBS$ac_delim
45398 LIBINTL!$LIBINTL$ac_delim
45399 LTLIBINTL!$LTLIBINTL$ac_delim
45400 POSUB!$POSUB$ac_delim
45401 GLIBC2!$GLIBC2$ac_delim
45402 ALLOCA!$ALLOCA$ac_delim
45403 GLIBC21!$GLIBC21$ac_delim
45404 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45405 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45406 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45407 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45408 INTLBISON!$INTLBISON$ac_delim
45409 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45410 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45411 CATOBJEXT!$CATOBJEXT$ac_delim
45412 DATADIRNAME!$DATADIRNAME$ac_delim
45413 INSTOBJEXT!$INSTOBJEXT$ac_delim
45414 GENCAT!$GENCAT$ac_delim
45415 INTLOBJS!$INTLOBJS$ac_delim
45416 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45417 BAT_DIR!$BAT_DIR$ac_delim
45418 QWT_INC!$QWT_INC$ac_delim
45419 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45420 QWT_LIB!$QWT_LIB$ac_delim
45422 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45425 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45427 elif $ac_last_try; then
45428 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45429 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45430 { (exit 1); exit 1; }; }
45432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45436 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45437 if test -n "$ac_eof"; then
45438 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45439 ac_eof=`expr $ac_eof + 1`
45442 cat >>$CONFIG_STATUS <<_ACEOF
45443 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45448 s/^/s,@/; s/!/@,|#_!!_#|/
45451 s/'"$ac_delim"'$/,g/; t
45453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45454 ' >>$CONFIG_STATUS <conf$$subs.sed
45455 rm -f conf$$subs.sed
45456 cat >>$CONFIG_STATUS <<_ACEOF
45462 for ac_last_try in false false false false false :; do
45463 cat >conf$$subs.sed <<_ACEOF
45464 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45465 WX_DIR!$WX_DIR$ac_delim
45466 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45467 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45468 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45469 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45470 STATIC_FD!$STATIC_FD$ac_delim
45471 STATIC_SD!$STATIC_SD$ac_delim
45472 STATIC_DIR!$STATIC_DIR$ac_delim
45473 STATIC_CONS!$STATIC_CONS$ac_delim
45474 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45475 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45476 ALL_DIRS!$ALL_DIRS$ac_delim
45477 DIRD_DIR!$DIRD_DIR$ac_delim
45478 DIR_TOOLS!$DIR_TOOLS$ac_delim
45479 STORED_DIR!$STORED_DIR$ac_delim
45480 CONS_INC!$CONS_INC$ac_delim
45481 CONS_OBJ!$CONS_OBJ$ac_delim
45482 CONS_SRC!$CONS_SRC$ac_delim
45483 CONS_LIBS!$CONS_LIBS$ac_delim
45484 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45485 READLINE_SRC!$READLINE_SRC$ac_delim
45486 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45487 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45488 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45489 OPENSSL_INC!$OPENSSL_INC$ac_delim
45490 working_dir!$working_dir$ac_delim
45491 archivedir!$archivedir$ac_delim
45492 basename!$basename$ac_delim
45493 hostname!$hostname$ac_delim
45494 scriptdir!$scriptdir$ac_delim
45495 bsrdir!$bsrdir$ac_delim
45496 logdir!$logdir$ac_delim
45497 plugindir!$plugindir$ac_delim
45498 dump_email!$dump_email$ac_delim
45499 job_email!$job_email$ac_delim
45500 smtp_host!$smtp_host$ac_delim
45501 piddir!$piddir$ac_delim
45502 subsysdir!$subsysdir$ac_delim
45503 baseport!$baseport$ac_delim
45504 dir_port!$dir_port$ac_delim
45505 fd_port!$fd_port$ac_delim
45506 sd_port!$sd_port$ac_delim
45507 dir_password!$dir_password$ac_delim
45508 fd_password!$fd_password$ac_delim
45509 sd_password!$sd_password$ac_delim
45510 mon_dir_password!$mon_dir_password$ac_delim
45511 mon_fd_password!$mon_fd_password$ac_delim
45512 mon_sd_password!$mon_sd_password$ac_delim
45513 db_name!$db_name$ac_delim
45514 db_user!$db_user$ac_delim
45515 db_password!$db_password$ac_delim
45516 db_port!$db_port$ac_delim
45517 dir_user!$dir_user$ac_delim
45518 dir_group!$dir_group$ac_delim
45519 sd_user!$sd_user$ac_delim
45520 sd_group!$sd_group$ac_delim
45521 fd_user!$fd_user$ac_delim
45522 fd_group!$fd_group$ac_delim
45523 SBINPERM!$SBINPERM$ac_delim
45524 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45525 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45526 SQL_BINDIR!$SQL_BINDIR$ac_delim
45527 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45528 uncomment_dbi!$uncomment_dbi$ac_delim
45529 DB_PROG!$DB_PROG$ac_delim
45530 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45531 cats!$cats$ac_delim
45532 DB_TYPE!$DB_TYPE$ac_delim
45533 GETCONF!$GETCONF$ac_delim
45534 XMKMF!$XMKMF$ac_delim
45535 X_CFLAGS!$X_CFLAGS$ac_delim
45536 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45537 X_LIBS!$X_LIBS$ac_delim
45538 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45539 LIBOBJS!$LIBOBJS$ac_delim
45540 CAP_LIBS!$CAP_LIBS$ac_delim
45541 FDLIBS!$FDLIBS$ac_delim
45542 DEBUG!$DEBUG$ac_delim
45543 DINCLUDE!$DINCLUDE$ac_delim
45544 DLIB!$DLIB$ac_delim
45545 DB_LIBS!$DB_LIBS$ac_delim
45546 WCFLAGS!$WCFLAGS$ac_delim
45547 WLDFLAGS!$WLDFLAGS$ac_delim
45548 WRAPLIBS!$WRAPLIBS$ac_delim
45549 OBJLIST!$OBJLIST$ac_delim
45550 TAPEDRIVE!$TAPEDRIVE$ac_delim
45551 PSCMD!$PSCMD$ac_delim
45552 WIN32!$WIN32$ac_delim
45553 MACOSX!$MACOSX$ac_delim
45554 DISTNAME!$DISTNAME$ac_delim
45555 DISTVER!$DISTVER$ac_delim
45556 LTLIBOBJS!$LTLIBOBJS$ac_delim
45559 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
45561 elif $ac_last_try; then
45562 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45563 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45564 { (exit 1); exit 1; }; }
45566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45570 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45571 if test -n "$ac_eof"; then
45572 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45573 ac_eof=`expr $ac_eof + 1`
45576 cat >>$CONFIG_STATUS <<_ACEOF
45577 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45581 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45582 s/^/s,@/; s/!/@,|#_!!_#|/
45585 s/'"$ac_delim"'$/,g/; t
45587 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45588 ' >>$CONFIG_STATUS <conf$$subs.sed
45589 rm -f conf$$subs.sed
45590 cat >>$CONFIG_STATUS <<_ACEOF
45597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45599 # trailing colons and then remove the whole line if VPATH becomes empty
45600 # (actually we leave an empty line to preserve line numbers).
45601 if test "x$srcdir" = x.; then
45602 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45603 s/:*\$(srcdir):*/:/
45604 s/:*\${srcdir}:*/:/
45606 s/^\([^=]*=[ ]*\):*/\1/
45612 cat >>$CONFIG_STATUS <<\_ACEOF
45613 fi # test -n "$CONFIG_FILES"
45616 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45619 :[FHLC]) ac_mode=$ac_tag; continue;;
45621 case $ac_mode$ac_tag in
45623 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45624 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45625 { (exit 1); exit 1; }; };;
45626 :[FH]-) ac_tag=-:-;;
45627 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45644 -) ac_f="$tmp/stdin";;
45645 *) # Look for the file first in the build tree, then in the source tree
45646 # (if the path is not absolute). The absolute path cannot be DOS-style,
45647 # because $ac_f cannot contain `:'.
45651 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45653 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45654 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45655 { (exit 1); exit 1; }; };;
45657 ac_file_inputs="$ac_file_inputs $ac_f"
45660 # Let's still pretend it is `configure' which instantiates (i.e., don't
45661 # use $as_me), people would be surprised to read:
45662 # /* config.h. Generated by config.status. */
45663 configure_input="Generated from "`IFS=:
45664 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45665 if test x"$ac_file" != x-; then
45666 configure_input="$ac_file. $configure_input"
45667 { echo "$as_me:$LINENO: creating $ac_file" >&5
45668 echo "$as_me: creating $ac_file" >&6;}
45672 *:-:* | *:-) cat >"$tmp/stdin";;
45677 ac_dir=`$as_dirname -- "$ac_file" ||
45678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45679 X"$ac_file" : 'X\(//\)[^/]' \| \
45680 X"$ac_file" : 'X\(//\)$' \| \
45681 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45687 /^X\(\/\/\)[^/].*/{
45702 -*) as_dir=./$as_dir;;
45704 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45708 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45709 *) as_qdir=$as_dir;;
45711 as_dirs="'$as_qdir' $as_dirs"
45712 as_dir=`$as_dirname -- "$as_dir" ||
45713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45714 X"$as_dir" : 'X\(//\)[^/]' \| \
45715 X"$as_dir" : 'X\(//\)$' \| \
45716 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45722 /^X\(\/\/\)[^/].*/{
45735 test -d "$as_dir" && break
45737 test -z "$as_dirs" || eval "mkdir $as_dirs"
45738 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45739 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45740 { (exit 1); exit 1; }; }; }
45744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45746 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45747 # A ".." for each directory in $ac_dir_suffix.
45748 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45749 case $ac_top_builddir_sub in
45750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45754 ac_abs_top_builddir=$ac_pwd
45755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45756 # for backward compatibility:
45757 ac_top_builddir=$ac_top_build_prefix
45760 .) # We are building in place.
45762 ac_top_srcdir=$ac_top_builddir_sub
45763 ac_abs_top_srcdir=$ac_pwd ;;
45764 [\\/]* | ?:[\\/]* ) # Absolute name.
45765 ac_srcdir=$srcdir$ac_dir_suffix;
45766 ac_top_srcdir=$srcdir
45767 ac_abs_top_srcdir=$srcdir ;;
45768 *) # Relative name.
45769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45770 ac_top_srcdir=$ac_top_build_prefix$srcdir
45771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45783 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45784 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45788 cat >>$CONFIG_STATUS <<\_ACEOF
45789 # If the template does not know about datarootdir, expand it.
45790 # FIXME: This hack should be removed a few years after 2.60.
45791 ac_datarootdir_hack=; ac_datarootdir_seen=
45793 case `sed -n '/datarootdir/ {
45802 ' $ac_file_inputs` in
45803 *datarootdir*) ac_datarootdir_seen=yes;;
45804 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45805 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45806 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45808 cat >>$CONFIG_STATUS <<_ACEOF
45809 ac_datarootdir_hack='
45810 s&@datadir@&$datadir&g
45811 s&@docdir@&$docdir&g
45812 s&@infodir@&$infodir&g
45813 s&@localedir@&$localedir&g
45814 s&@mandir@&$mandir&g
45815 s&\\\${datarootdir}&$datarootdir&g' ;;
45819 # Neutralize VPATH when `$srcdir' = `.'.
45820 # Shell code in configure.ac might set extrasub.
45821 # FIXME: do we really want to maintain this feature?
45822 cat >>$CONFIG_STATUS <<_ACEOF
45826 cat >>$CONFIG_STATUS <<\_ACEOF
45828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45829 s&@configure_input@&$configure_input&;t t
45830 s&@top_builddir@&$ac_top_builddir_sub&;t t
45831 s&@srcdir@&$ac_srcdir&;t t
45832 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45833 s&@top_srcdir@&$ac_top_srcdir&;t t
45834 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45835 s&@builddir@&$ac_builddir&;t t
45836 s&@abs_builddir@&$ac_abs_builddir&;t t
45837 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45838 s&@INSTALL@&$ac_INSTALL&;t t
45839 $ac_datarootdir_hack
45840 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45842 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45843 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45845 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45846 which seems to be undefined. Please make sure it is defined." >&5
45847 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45848 which seems to be undefined. Please make sure it is defined." >&2;}
45852 -) cat "$tmp/out"; rm -f "$tmp/out";;
45853 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45862 # Transform confdefs.h into a sed script `conftest.defines', that
45863 # substitutes the proper values into config.h.in to produce config.h.
45864 rm -f conftest.defines conftest.tail
45865 # First, append a space to every undef/define line, to ease matching.
45866 echo 's/$/ /' >conftest.defines
45867 # Then, protect against being on the right side of a sed subst, or in
45868 # an unquoted here document, in config.status. If some macros were
45869 # called several times there might be several #defines for the same
45870 # symbol, which is useless. But do not sort them, since the last
45871 # AC_DEFINE must be honored.
45872 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45873 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45874 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45875 # PARAMS is the parameter list in the macro definition--in most cases, it's
45876 # just an empty string.
45877 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
45878 ac_dB='\\)[ (].*,\\1define\\2'
45886 s/^[ ]*#[ ]*define[ ][ ]*//
45891 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45892 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45893 ' >>conftest.defines
45895 # Remove the space that was appended to ease matching.
45896 # Then replace #undef with comments. This is necessary, for
45897 # example, in the case of _POSIX_SOURCE, which is predefined and required
45898 # on some systems where configure will not decide to define it.
45899 # (The regexp can be short, since the line contains either #define or #undef.)
45901 s,^[ #]*u.*,/* & */,' >>conftest.defines
45903 # Break up conftest.defines:
45904 ac_max_sed_lines=50
45906 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45907 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45908 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45910 ac_in='$ac_file_inputs'
45911 ac_out='"$tmp/out1"'
45912 ac_nxt='"$tmp/out2"'
45916 # Write a here document:
45917 cat >>$CONFIG_STATUS <<_ACEOF
45918 # First, check the format of the line:
45919 cat >"\$tmp/defines.sed" <<\\CEOF
45920 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
45921 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
45925 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45927 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45928 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45929 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45930 grep . conftest.tail >/dev/null || break
45931 rm -f conftest.defines
45932 mv conftest.tail conftest.defines
45934 rm -f conftest.defines conftest.tail
45936 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45937 cat >>$CONFIG_STATUS <<\_ACEOF
45938 if test x"$ac_file" != x-; then
45939 echo "/* $configure_input */" >"$tmp/config.h"
45940 cat "$ac_result" >>"$tmp/config.h"
45941 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45942 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45943 echo "$as_me: $ac_file is unchanged" >&6;}
45946 mv "$tmp/config.h" $ac_file
45949 echo "/* $configure_input */"
45955 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45956 echo "$as_me: executing $ac_file commands" >&6;}
45961 case $ac_file$ac_mode in
45964 # See if we are running on zsh, and set the options which allow our
45965 # commands through without removal of \ escapes.
45966 if test -n "${ZSH_VERSION+set}" ; then
45967 setopt NO_GLOB_SUBST
45970 cfgfile="${ofile}T"
45971 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45974 cat <<_LT_EOF >> "$cfgfile"
45977 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45978 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45980 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45982 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45983 # 2006, 2007, 2008 Free Software Foundation, Inc.
45984 # Written by Gordon Matzigkeit, 1996
45986 # This file is part of GNU Libtool.
45988 # GNU Libtool is free software; you can redistribute it and/or
45989 # modify it under the terms of the GNU General Public License as
45990 # published by the Free Software Foundation; either version 2 of
45991 # the License, or (at your option) any later version.
45993 # As a special exception to the GNU General Public License,
45994 # if you distribute this file as part of a program or library that
45995 # is built using GNU Libtool, you may include this file under the
45996 # same distribution terms that you use for the rest of that program.
45998 # GNU Libtool is distributed in the hope that it will be useful,
45999 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46000 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46001 # GNU General Public License for more details.
46003 # You should have received a copy of the GNU General Public License
46004 # along with GNU Libtool; see the file COPYING. If not, a copy
46005 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46006 # obtained by writing to the Free Software Foundation, Inc.,
46007 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46010 # The names of the tagged configurations supported by this script.
46011 available_tags="CXX "
46013 # ### BEGIN LIBTOOL CONFIG
46015 # Which release of libtool.m4 was used?
46016 macro_version=$macro_version
46017 macro_revision=$macro_revision
46019 # Whether or not to build shared libraries.
46020 build_libtool_libs=$enable_shared
46022 # Whether or not to build static libraries.
46023 build_old_libs=$enable_static
46025 # What type of objects to build.
46028 # Whether or not to optimize for fast installation.
46029 fast_install=$enable_fast_install
46032 host_alias=$host_alias
46036 # The build system.
46037 build_alias=$build_alias
46041 # A sed program that does not truncate output.
46044 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46045 Xsed="\$SED -e 1s/^X//"
46047 # A grep program that handles long lines.
46053 # A literal string matcher.
46056 # A BSD- or MS-compatible name lister.
46059 # Whether we need soft or hard links.
46062 # What is the maximum length of a command?
46063 max_cmd_len=$max_cmd_len
46065 # Object file suffix (normally "o").
46068 # Executable file suffix (normally "").
46071 # whether the shell understands "unset".
46074 # turn spaces into newlines.
46077 # turn newlines into spaces.
46080 # How to create reloadable object files.
46081 reload_flag=$lt_reload_flag
46082 reload_cmds=$lt_reload_cmds
46084 # An object symbol dumper.
46085 OBJDUMP=$lt_OBJDUMP
46087 # Method to check whether dependent libraries are shared objects.
46088 deplibs_check_method=$lt_deplibs_check_method
46090 # Command to use when deplibs_check_method == "file_magic".
46091 file_magic_cmd=$lt_file_magic_cmd
46095 AR_FLAGS=$lt_AR_FLAGS
46097 # A symbol stripping program.
46100 # Commands used to install an old-style archive.
46102 old_postinstall_cmds=$lt_old_postinstall_cmds
46103 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46108 # LTCC compiler flags.
46109 LTCFLAGS=$lt_CFLAGS
46111 # Take the output of nm and produce a listing of raw symbols and C names.
46112 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46114 # Transform the output of nm in a proper C declaration.
46115 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46117 # Transform the output of nm in a C name address pair.
46118 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46120 # Transform the output of nm in a C name address pair when lib prefix is needed.
46121 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46123 # The name of the directory that contains temporary libtool files.
46126 # Shell to use when invoking shell scripts.
46129 # An echo program that does not interpret backslashes.
46132 # Used to examine libraries when file_magic_cmd begins with "file".
46133 MAGIC_CMD=$MAGIC_CMD
46135 # Must we lock files when doing compilation?
46136 need_locks=$lt_need_locks
46138 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46139 DSYMUTIL=$lt_DSYMUTIL
46141 # Tool to change global to local symbols on Mac OS X.
46144 # Tool to manipulate fat objects and archives on Mac OS X.
46147 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46150 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46151 OTOOL64=$lt_OTOOL64
46153 # Old archive suffix (normally "a").
46156 # Shared library suffix (normally ".so").
46157 shrext_cmds=$lt_shrext_cmds
46159 # The commands to extract the exported symbol list from a shared archive.
46160 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46162 # Variables whose values should be saved in libtool wrapper scripts and
46163 # restored at link time.
46164 variables_saved_for_relink=$lt_variables_saved_for_relink
46166 # Do we need the "lib" prefix for modules?
46167 need_lib_prefix=$need_lib_prefix
46169 # Do we need a version for libraries?
46170 need_version=$need_version
46172 # Library versioning type.
46173 version_type=$version_type
46175 # Shared library runtime path variable.
46176 runpath_var=$runpath_var
46178 # Shared library path variable.
46179 shlibpath_var=$shlibpath_var
46181 # Is shlibpath searched before the hard-coded library search path?
46182 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46184 # Format of library name prefix.
46185 libname_spec=$lt_libname_spec
46187 # List of archive names. First name is the real one, the rest are links.
46188 # The last name is the one that the linker finds with -lNAME
46189 library_names_spec=$lt_library_names_spec
46191 # The coded name of the library, if different from the real name.
46192 soname_spec=$lt_soname_spec
46194 # Command to use after installation of a shared archive.
46195 postinstall_cmds=$lt_postinstall_cmds
46197 # Command to use after uninstallation of a shared archive.
46198 postuninstall_cmds=$lt_postuninstall_cmds
46200 # Commands used to finish a libtool library installation in a directory.
46201 finish_cmds=$lt_finish_cmds
46203 # As "finish_cmds", except a single script fragment to be evaled but
46205 finish_eval=$lt_finish_eval
46207 # Whether we should hardcode library paths into libraries.
46208 hardcode_into_libs=$hardcode_into_libs
46210 # Compile-time system search path for libraries.
46211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46213 # Run-time system search path for libraries.
46214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46216 # Whether dlopen is supported.
46217 dlopen_support=$enable_dlopen
46219 # Whether dlopen of programs is supported.
46220 dlopen_self=$enable_dlopen_self
46222 # Whether dlopen of statically linked programs is supported.
46223 dlopen_self_static=$enable_dlopen_self_static
46225 # Commands to strip libraries.
46226 old_striplib=$lt_old_striplib
46227 striplib=$lt_striplib
46230 # The linker used to build libraries.
46233 # Commands used to build an old-style archive.
46234 old_archive_cmds=$lt_old_archive_cmds
46236 # A language specific compiler.
46239 # Is the compiler the GNU compiler?
46242 # Compiler flag to turn off builtin functions.
46243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46245 # How to pass a linker flag through the compiler.
46246 wl=$lt_lt_prog_compiler_wl
46248 # Additional compiler flags for building library objects.
46249 pic_flag=$lt_lt_prog_compiler_pic
46251 # Compiler flag to prevent dynamic linking.
46252 link_static_flag=$lt_lt_prog_compiler_static
46254 # Does compiler simultaneously support -c and -o options?
46255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46257 # Whether or not to add -lc for building shared libraries.
46258 build_libtool_need_lc=$archive_cmds_need_lc
46260 # Whether or not to disallow shared libs when runtime libs are static.
46261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46263 # Compiler flag to allow reflexive dlopens.
46264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46266 # Compiler flag to generate shared objects directly from archives.
46267 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46269 # Whether the compiler copes with passing no objects directly.
46270 compiler_needs_object=$lt_compiler_needs_object
46272 # Create an old-style archive from a shared archive.
46273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46275 # Create a temporary old-style archive to link instead of a shared archive.
46276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46278 # Commands used to build a shared archive.
46279 archive_cmds=$lt_archive_cmds
46280 archive_expsym_cmds=$lt_archive_expsym_cmds
46282 # Commands used to build a loadable module if different from building
46283 # a shared archive.
46284 module_cmds=$lt_module_cmds
46285 module_expsym_cmds=$lt_module_expsym_cmds
46287 # Whether we are building with GNU ld or not.
46288 with_gnu_ld=$lt_with_gnu_ld
46290 # Flag that allows shared libraries with undefined symbols to be built.
46291 allow_undefined_flag=$lt_allow_undefined_flag
46293 # Flag that enforces no undefined symbols.
46294 no_undefined_flag=$lt_no_undefined_flag
46296 # Flag to hardcode \$libdir into a binary during linking.
46297 # This must work even if \$libdir does not exist
46298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46300 # If ld is used when linking, flag to hardcode \$libdir into a binary
46301 # during linking. This must work even if \$libdir does not exist.
46302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46304 # Whether we need a single "-rpath" flag with a separated argument.
46305 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46307 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46308 # DIR into the resulting binary.
46309 hardcode_direct=$hardcode_direct
46311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46312 # DIR into the resulting binary and the resulting library dependency is
46313 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46314 # library is relocated.
46315 hardcode_direct_absolute=$hardcode_direct_absolute
46317 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46318 # into the resulting binary.
46319 hardcode_minus_L=$hardcode_minus_L
46321 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46322 # into the resulting binary.
46323 hardcode_shlibpath_var=$hardcode_shlibpath_var
46325 # Set to "yes" if building a shared library automatically hardcodes DIR
46326 # into the library and all subsequent libraries and executables linked
46328 hardcode_automatic=$hardcode_automatic
46330 # Set to yes if linker adds runtime paths of dependent libraries
46331 # to runtime path list.
46332 inherit_rpath=$inherit_rpath
46334 # Whether libtool must link a program against all its dependency libraries.
46335 link_all_deplibs=$link_all_deplibs
46337 # Fix the shell variable \$srcfile for the compiler.
46338 fix_srcfile_path=$lt_fix_srcfile_path
46340 # Set to "yes" if exported symbols are required.
46341 always_export_symbols=$always_export_symbols
46343 # The commands to list exported symbols.
46344 export_symbols_cmds=$lt_export_symbols_cmds
46346 # Symbols that should not be listed in the preloaded symbols.
46347 exclude_expsyms=$lt_exclude_expsyms
46349 # Symbols that must always be exported.
46350 include_expsyms=$lt_include_expsyms
46352 # Commands necessary for linking programs (against libraries) with templates.
46353 prelink_cmds=$lt_prelink_cmds
46355 # Specify filename containing input files.
46356 file_list_spec=$lt_file_list_spec
46358 # How to hardcode a shared library path into an executable.
46359 hardcode_action=$hardcode_action
46361 # The directories searched by this compiler when creating a shared library.
46362 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46364 # Dependencies to place before and after the objects being linked to
46365 # create a shared library.
46366 predep_objects=$lt_predep_objects
46367 postdep_objects=$lt_postdep_objects
46368 predeps=$lt_predeps
46369 postdeps=$lt_postdeps
46371 # The library search path used internally by the compiler when linking
46372 # a shared library.
46373 compiler_lib_search_path=$lt_compiler_lib_search_path
46375 # ### END LIBTOOL CONFIG
46381 cat <<\_LT_EOF >> "$cfgfile"
46382 # AIX sometimes has problems with the GCC collect2 program. For some
46383 # reason, if we set the COLLECT_NAMES environment variable, the problems
46384 # vanish in a puff of smoke.
46385 if test "X${COLLECT_NAMES+set}" != Xset; then
46387 export COLLECT_NAMES
46394 ltmain="$ac_aux_dir/ltmain.sh"
46397 # We use sed instead of cat because bash on DJGPP gets confused if
46398 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46399 # text mode, it properly converts lines to CR/LF. This bash problem
46400 # is reportedly fixed, but why not run on old versions too?
46401 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46402 || (rm -f "$cfgfile"; exit 1)
46406 cat << \_LT_EOF >> "$cfgfile"
46408 # func_dirname file append nondir_replacement
46409 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46410 # otherwise set result to NONDIR_REPLACEMENT.
46414 */*) func_dirname_result="${1%/*}${2}" ;;
46415 * ) func_dirname_result="${3}" ;;
46419 # func_basename file
46422 func_basename_result="${1##*/}"
46425 # func_dirname_and_basename file append nondir_replacement
46426 # perform func_basename and func_dirname in a single function
46428 # dirname: Compute the dirname of FILE. If nonempty,
46429 # add APPEND to the result, otherwise set result
46430 # to NONDIR_REPLACEMENT.
46431 # value returned in "$func_dirname_result"
46432 # basename: Compute filename of FILE.
46433 # value retuned in "$func_basename_result"
46434 # Implementation must be kept synchronized with func_dirname
46435 # and func_basename. For efficiency, we do not delegate to
46436 # those functions but instead duplicate the functionality here.
46437 func_dirname_and_basename ()
46440 */*) func_dirname_result="${1%/*}${2}" ;;
46441 * ) func_dirname_result="${3}" ;;
46443 func_basename_result="${1##*/}"
46446 # func_stripname prefix suffix name
46447 # strip PREFIX and SUFFIX off of NAME.
46448 # PREFIX and SUFFIX must not contain globbing or regex special
46449 # characters, hashes, percent signs, but SUFFIX may contain a leading
46450 # dot (in which case that matches only a dot).
46453 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46454 # positional parameters, so assign one to ordinary parameter first.
46455 func_stripname_result=${3}
46456 func_stripname_result=${func_stripname_result#"${1}"}
46457 func_stripname_result=${func_stripname_result%"${2}"}
46463 func_opt_split_opt=${1%%=*}
46464 func_opt_split_arg=${1#*=}
46471 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46472 *) func_lo2o_result=${1} ;;
46476 # func_xform libobj-or-source
46479 func_xform_result=${1%.*}.lo
46482 # func_arith arithmetic-term...
46485 func_arith_result=$(( $* ))
46489 # STRING may not start with a hyphen.
46492 func_len_result=${#1}
46497 *) # Bourne compatible functions.
46498 cat << \_LT_EOF >> "$cfgfile"
46500 # func_dirname file append nondir_replacement
46501 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46502 # otherwise set result to NONDIR_REPLACEMENT.
46505 # Extract subdirectory from the argument.
46506 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46507 if test "X$func_dirname_result" = "X${1}"; then
46508 func_dirname_result="${3}"
46510 func_dirname_result="$func_dirname_result${2}"
46514 # func_basename file
46517 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46521 # func_stripname prefix suffix name
46522 # strip PREFIX and SUFFIX off of NAME.
46523 # PREFIX and SUFFIX must not contain globbing or regex special
46524 # characters, hashes, percent signs, but SUFFIX may contain a leading
46525 # dot (in which case that matches only a dot).
46526 # func_strip_suffix prefix name
46530 .*) func_stripname_result=`$ECHO "X${3}" \
46531 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46532 *) func_stripname_result=`$ECHO "X${3}" \
46533 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46538 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46539 my_sed_long_arg='1s/^-[^=]*=//'
46544 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46545 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46551 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46554 # func_xform libobj-or-source
46557 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46560 # func_arith arithmetic-term...
46563 func_arith_result=`expr "$@"`
46567 # STRING may not start with a hyphen.
46570 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46576 case $lt_shell_append in
46578 cat << \_LT_EOF >> "$cfgfile"
46580 # func_append var value
46581 # Append VALUE to the end of shell variable VAR.
46589 cat << \_LT_EOF >> "$cfgfile"
46591 # func_append var value
46592 # Append VALUE to the end of shell variable VAR.
46603 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46604 || (rm -f "$cfgfile"; exit 1)
46606 mv -f "$cfgfile" "$ofile" ||
46607 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46611 cat <<_LT_EOF >> "$ofile"
46613 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46615 # The linker used to build libraries.
46618 # Commands used to build an old-style archive.
46619 old_archive_cmds=$lt_old_archive_cmds_CXX
46621 # A language specific compiler.
46622 CC=$lt_compiler_CXX
46624 # Is the compiler the GNU compiler?
46627 # Compiler flag to turn off builtin functions.
46628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46630 # How to pass a linker flag through the compiler.
46631 wl=$lt_lt_prog_compiler_wl_CXX
46633 # Additional compiler flags for building library objects.
46634 pic_flag=$lt_lt_prog_compiler_pic_CXX
46636 # Compiler flag to prevent dynamic linking.
46637 link_static_flag=$lt_lt_prog_compiler_static_CXX
46639 # Does compiler simultaneously support -c and -o options?
46640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46642 # Whether or not to add -lc for building shared libraries.
46643 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46645 # Whether or not to disallow shared libs when runtime libs are static.
46646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46648 # Compiler flag to allow reflexive dlopens.
46649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46651 # Compiler flag to generate shared objects directly from archives.
46652 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46654 # Whether the compiler copes with passing no objects directly.
46655 compiler_needs_object=$lt_compiler_needs_object_CXX
46657 # Create an old-style archive from a shared archive.
46658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46660 # Create a temporary old-style archive to link instead of a shared archive.
46661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46663 # Commands used to build a shared archive.
46664 archive_cmds=$lt_archive_cmds_CXX
46665 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46667 # Commands used to build a loadable module if different from building
46668 # a shared archive.
46669 module_cmds=$lt_module_cmds_CXX
46670 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46672 # Whether we are building with GNU ld or not.
46673 with_gnu_ld=$lt_with_gnu_ld_CXX
46675 # Flag that allows shared libraries with undefined symbols to be built.
46676 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46678 # Flag that enforces no undefined symbols.
46679 no_undefined_flag=$lt_no_undefined_flag_CXX
46681 # Flag to hardcode \$libdir into a binary during linking.
46682 # This must work even if \$libdir does not exist
46683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46685 # If ld is used when linking, flag to hardcode \$libdir into a binary
46686 # during linking. This must work even if \$libdir does not exist.
46687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46689 # Whether we need a single "-rpath" flag with a separated argument.
46690 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46693 # DIR into the resulting binary.
46694 hardcode_direct=$hardcode_direct_CXX
46696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46697 # DIR into the resulting binary and the resulting library dependency is
46698 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46699 # library is relocated.
46700 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46703 # into the resulting binary.
46704 hardcode_minus_L=$hardcode_minus_L_CXX
46706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46707 # into the resulting binary.
46708 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46710 # Set to "yes" if building a shared library automatically hardcodes DIR
46711 # into the library and all subsequent libraries and executables linked
46713 hardcode_automatic=$hardcode_automatic_CXX
46715 # Set to yes if linker adds runtime paths of dependent libraries
46716 # to runtime path list.
46717 inherit_rpath=$inherit_rpath_CXX
46719 # Whether libtool must link a program against all its dependency libraries.
46720 link_all_deplibs=$link_all_deplibs_CXX
46722 # Fix the shell variable \$srcfile for the compiler.
46723 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46725 # Set to "yes" if exported symbols are required.
46726 always_export_symbols=$always_export_symbols_CXX
46728 # The commands to list exported symbols.
46729 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46731 # Symbols that should not be listed in the preloaded symbols.
46732 exclude_expsyms=$lt_exclude_expsyms_CXX
46734 # Symbols that must always be exported.
46735 include_expsyms=$lt_include_expsyms_CXX
46737 # Commands necessary for linking programs (against libraries) with templates.
46738 prelink_cmds=$lt_prelink_cmds_CXX
46740 # Specify filename containing input files.
46741 file_list_spec=$lt_file_list_spec_CXX
46743 # How to hardcode a shared library path into an executable.
46744 hardcode_action=$hardcode_action_CXX
46746 # The directories searched by this compiler when creating a shared library.
46747 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46749 # Dependencies to place before and after the objects being linked to
46750 # create a shared library.
46751 predep_objects=$lt_predep_objects_CXX
46752 postdep_objects=$lt_postdep_objects_CXX
46753 predeps=$lt_predeps_CXX
46754 postdeps=$lt_postdeps_CXX
46756 # The library search path used internally by the compiler when linking
46757 # a shared library.
46758 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46760 # ### END LIBTOOL TAG CONFIG: CXX
46765 for ac_file in $CONFIG_FILES; do
46766 # Support "outfile[:infile[:infile...]]"
46768 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46770 # PO directories have a Makefile.in generated from Makefile.in.in.
46771 case "$ac_file" in */Makefile.in)
46772 # Adjust a relative srcdir.
46773 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46774 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46775 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46776 # In autoconf-2.13 it is called $ac_given_srcdir.
46777 # In autoconf-2.50 it is called $srcdir.
46778 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46779 case "$ac_given_srcdir" in
46780 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46781 /*) top_srcdir="$ac_given_srcdir" ;;
46782 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46784 # Treat a directory as a PO directory if and only if it has a
46785 # POTFILES.in file. This allows packages to have multiple PO
46786 # directories under different names or in different locations.
46787 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46788 rm -f "$ac_dir/POTFILES"
46789 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46790 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46791 POMAKEFILEDEPS="POTFILES.in"
46792 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46793 # on $ac_dir but don't depend on user-specified configuration
46795 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46796 # The LINGUAS file contains the set of available languages.
46797 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46798 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46800 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46801 # Hide the ALL_LINGUAS assigment from automake.
46802 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46803 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46805 # The set of available languages was given in configure.in.
46806 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46809 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46810 # Compute UPDATEPOFILES
46811 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46812 # Compute DUMMYPOFILES
46813 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46815 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46816 case "$ac_given_srcdir" in
46818 *) srcdirpre='$(srcdir)/' ;;
46824 for lang in $ALL_LINGUAS; do
46825 POFILES="$POFILES $srcdirpre$lang.po"
46826 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46827 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46828 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46830 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46831 # environment variable.
46833 if test -n "$ALL_LINGUAS"; then
46834 for presentlang in $ALL_LINGUAS; do
46836 if test "%UNSET%" != "$LINGUAS"; then
46837 desiredlanguages="$LINGUAS"
46839 desiredlanguages="$ALL_LINGUAS"
46841 for desiredlang in $desiredlanguages; do
46842 # Use the presentlang catalog if desiredlang is
46843 # a. equal to presentlang, or
46844 # b. a variant of presentlang (because in this case,
46845 # presentlang can be used as a fallback for messages
46846 # which are not translated in the desiredlang catalog).
46847 case "$desiredlang" in
46848 "$presentlang"*) useit=yes;;
46851 if test $useit = yes; then
46852 INST_LINGUAS="$INST_LINGUAS $presentlang"
46857 if test -n "$INST_LINGUAS"; then
46858 for lang in $INST_LINGUAS; do
46859 CATALOGS="$CATALOGS $lang.gmo"
46862 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46863 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"
46864 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46865 if test -f "$f"; then
46867 *.orig | *.bak | *~) ;;
46868 *) cat "$f" >> "$ac_dir/Makefile" ;;
46883 { (exit 0); exit 0; }
46885 chmod +x $CONFIG_STATUS
46886 ac_clean_files=$ac_clean_files_save
46889 # configure is writing to config.log, and then calls config.status.
46890 # config.status does its own redirection, appending to config.log.
46891 # Unfortunately, on DOS this fails, as config.log is still kept open
46892 # by configure, so config.status won't be able to write to it; its
46893 # output is simply discarded. So we exec the FD to /dev/null,
46894 # effectively closing config.log, so it can be properly (re)opened and
46895 # appended to by config.status. When coming back to configure, we
46896 # need to make the FD available again.
46897 if test "$no_create" != yes; then
46899 ac_config_status_args=
46900 test "$silent" = yes &&
46901 ac_config_status_args="$ac_config_status_args --quiet"
46903 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46905 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46906 # would make configure fail if this is the last instruction.
46907 $ac_cs_success || { (exit 1); exit 1; }
46911 if test "${support_bat}" = "yes" ; then
46912 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46913 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46914 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46915 { (exit 1); exit 1; }; }
46920 if test "x$QMAKEQT4" != "xnone"; then
46925 echo "Creating bat Makefile"
46929 ${MAKE:-make} clean
46933 if test X"$GCC" = "Xyes" ; then
46934 echo "Doing make of dependencies"
46935 ${MAKE:-make} depend
46939 chmod 755 install_conf_file build-depkgs-qt-console
46943 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46944 chmod 755 dvd-handler dvd-simulator breload make_catalog_backup.pl
46945 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46949 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
46950 chmod 755 $c/update_postgresql_tables_10_to_11
46954 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
46955 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
46957 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
46958 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
46960 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
46961 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
46963 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
46964 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
46966 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
46967 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
46969 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46970 chmod 755 $c/sqlite
46973 chmod 755 src/win32/build-depkgs-mingw32
46975 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46976 largefile_support="yes"
46979 if test X"$GCC" = "Xyes" ; then
46980 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46981 if test "x${CCVERSION}" = "x" ; then
46982 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46984 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46985 if test x"${CXXVERSION}" = x ; then
46986 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46990 # clean up any old junk
46994 ${MAKE:-make} clean
46996 if test "x${db_type}" = "xInternal" ; then
46999 echo "You have not specified either --enable-client-only or one of the"
47000 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
47001 echo " This is not permitted. Please reconfigure."
47003 echo "Aborting the configuration ..."
47010 Configuration on `date`:
47012 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47013 Bacula version: ${BACULA} ${VERSION} (${DATE})
47014 Source code location: ${srcdir}
47015 Install binaries: ${sbindir}
47016 Install libraries: ${libdir}
47017 Install config files: ${sysconfdir}
47018 Scripts directory: ${scriptdir}
47019 Archive directory: ${archivedir}
47020 Working directory: ${working_dir}
47021 PID directory: ${piddir}
47022 Subsys directory: ${subsysdir}
47023 Man directory: ${mandir}
47024 Data directory: ${datarootdir}
47025 Plugin directory: ${plugindir}
47026 C Compiler: ${CC} ${CCVERSION}
47027 C++ Compiler: ${CXX} ${CXXVERSION}
47028 Compiler flags: ${WCFLAGS} ${CFLAGS}
47029 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47031 Statically Linked Tools: ${support_static_tools}
47032 Statically Linked FD: ${support_static_fd}
47033 Statically Linked SD: ${support_static_sd}
47034 Statically Linked DIR: ${support_static_dir}
47035 Statically Linked CONS: ${support_static_cons}
47036 Database type: ${db_type}
47037 Database port: ${db_port}
47038 Database lib: ${DB_LIBS}
47039 Database name: ${db_name}
47040 Database user: ${db_user}
47042 Job Output Email: ${job_email}
47043 Traceback Email: ${dump_email}
47044 SMTP Host Address: ${smtp_host}
47046 Director Port: ${dir_port}
47047 File daemon Port: ${fd_port}
47048 Storage daemon Port: ${sd_port}
47050 Director User: ${dir_user}
47051 Director Group: ${dir_group}
47052 Storage Daemon User: ${sd_user}
47053 Storage DaemonGroup: ${sd_group}
47054 File Daemon User: ${fd_user}
47055 File Daemon Group: ${fd_group}
47057 SQL binaries Directory ${SQL_BINDIR}
47059 Large file support: $largefile_support
47060 Bacula conio support: ${got_conio} ${CONS_LIBS}
47061 readline support: ${got_readline} ${PRTREADLINE_SRC}
47062 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47063 TLS support: ${support_tls}
47064 Encryption support: ${support_crypto}
47065 ZLIB support: ${have_zlib}
47066 enable-smartalloc: ${support_smartalloc}
47067 enable-lockmgr: ${support_lockmgr}
47068 bat support: ${support_bat} ${QWT_LDFLAGS}
47069 enable-gnome: ${support_gnome} ${gnome_version}
47070 enable-bwx-console: ${support_wx_console} ${wx_version}
47071 enable-tray-monitor: ${support_tray_monitor}
47072 client-only: ${build_client_only}
47073 build-dird: ${build_dird}
47074 build-stored: ${build_stored}
47075 Plugin support: ${have_plugins}
47076 ACL support: ${have_acl}
47077 XATTR support: ${have_xattr}
47078 Python support: ${support_python} ${PYTHON_LIBS}
47079 Batch insert enabled: ${support_batch_insert}
47083 # create a small shell script useful for support with
47084 # configure options and config.out info
47085 cat > scripts/bacula_config << EOF
47088 $ $0 $ac_configure_args
47090 cat config.out >> scripts/bacula_config
47091 echo __EOC__ >> scripts/bacula_config
47092 chmod 755 scripts/bacula_config
47096 # Display a warning message if postgresql client lib is <= 8.1
47097 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47098 -a x$support_batch_insert = xyes
47100 echo "WARNING: Your PostgreSQL client library is too old to detect "
47101 echo " if it was compiled with --enable-thread-safety, consider to"
47102 echo " upgrade it in order to avoid problems with Batch insert mode"