2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.1.15.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='bacula'
569 PACKAGE_TARNAME='bacula'
570 PACKAGE_VERSION='5.1.15'
571 PACKAGE_STRING='bacula 5.1.15'
575 ac_unique_file="src/version.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
613 ac_subst_vars='LTLIBOBJS
640 SHARED_CATALOG_TARGETS
710 TRAY_MONITOR_CPPFLAGS
719 INTL_LIBTOOL_SUFFIX_PREFIX
726 BUILD_INCLUDED_LIBINTL
757 HAVE_OPENBSD_OS_FALSE
761 HAVE_FREEBSD_OS_FALSE
773 INCLUDE_UNINSTALL_TARGET
774 INCLUDE_INSTALL_TARGET
778 LIBTOOL_UNINSTALL_TARGET
779 LIBTOOL_INSTALL_TARGET
780 DEFAULT_SHARED_OBJECT_TYPE
856 LIBBACFIND_LT_RELEASE
857 LIBBACCATS_LT_RELEASE
902 program_transform_name
913 ac_subst_files='MCOMMON'
915 enable_option_checking
929 with_included_gettext
968 with_mon_dir_password
992 ac_precious_vars='build_alias
1010 # Initialize some variables set by options.
1012 ac_init_version=false
1013 ac_unrecognized_opts=
1014 ac_unrecognized_sep=
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1024 program_transform_name=s,x,x,
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 includedir='${prefix}/include'
1047 oldincludedir='/usr/include'
1048 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049 infodir='${datarootdir}/info'
1054 libdir='${exec_prefix}/lib'
1055 localedir='${datarootdir}/locale'
1056 mandir='${datarootdir}/man'
1062 # If the previous option needs an argument, assign it.
1063 if test -n "$ac_prev"; then
1064 eval $ac_prev=\$ac_option
1070 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1075 # Accept the important Cygnus configure options, so we can diagnose typos.
1077 case $ac_dashdash$ac_option in
1081 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1083 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1084 bindir=$ac_optarg ;;
1086 -build | --build | --buil | --bui | --bu)
1087 ac_prev=build_alias ;;
1088 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1089 build_alias=$ac_optarg ;;
1091 -cache-file | --cache-file | --cache-fil | --cache-fi \
1092 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1093 ac_prev=cache_file ;;
1094 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1095 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1096 cache_file=$ac_optarg ;;
1098 --config-cache | -C)
1099 cache_file=config.cache ;;
1101 -datadir | --datadir | --datadi | --datad)
1103 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1104 datadir=$ac_optarg ;;
1106 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1107 | --dataroo | --dataro | --datar)
1108 ac_prev=datarootdir ;;
1109 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1110 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1111 datarootdir=$ac_optarg ;;
1113 -disable-* | --disable-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid feature name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_$ac_useropt"
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval enable_$ac_useropt=no ;;
1129 -docdir | --docdir | --docdi | --doc | --do)
1131 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1132 docdir=$ac_optarg ;;
1134 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1136 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1137 dvidir=$ac_optarg ;;
1139 -enable-* | --enable-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid feature name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "enable_$ac_useropt"
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval enable_$ac_useropt=\$ac_optarg ;;
1155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157 | --exec | --exe | --ex)
1158 ac_prev=exec_prefix ;;
1159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161 | --exec=* | --exe=* | --ex=*)
1162 exec_prefix=$ac_optarg ;;
1164 -gas | --gas | --ga | --g)
1165 # Obsolete; use --with-gas.
1168 -help | --help | --hel | --he | -h)
1169 ac_init_help=long ;;
1170 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171 ac_init_help=recursive ;;
1172 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173 ac_init_help=short ;;
1175 -host | --host | --hos | --ho)
1176 ac_prev=host_alias ;;
1177 -host=* | --host=* | --hos=* | --ho=*)
1178 host_alias=$ac_optarg ;;
1180 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1182 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1184 htmldir=$ac_optarg ;;
1186 -includedir | --includedir | --includedi | --included | --include \
1187 | --includ | --inclu | --incl | --inc)
1188 ac_prev=includedir ;;
1189 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190 | --includ=* | --inclu=* | --incl=* | --inc=*)
1191 includedir=$ac_optarg ;;
1193 -infodir | --infodir | --infodi | --infod | --info | --inf)
1195 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196 infodir=$ac_optarg ;;
1198 -libdir | --libdir | --libdi | --libd)
1200 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201 libdir=$ac_optarg ;;
1203 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204 | --libexe | --libex | --libe)
1205 ac_prev=libexecdir ;;
1206 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207 | --libexe=* | --libex=* | --libe=*)
1208 libexecdir=$ac_optarg ;;
1210 -localedir | --localedir | --localedi | --localed | --locale)
1211 ac_prev=localedir ;;
1212 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213 localedir=$ac_optarg ;;
1215 -localstatedir | --localstatedir | --localstatedi | --localstated \
1216 | --localstate | --localstat | --localsta | --localst | --locals)
1217 ac_prev=localstatedir ;;
1218 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220 localstatedir=$ac_optarg ;;
1222 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1224 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225 mandir=$ac_optarg ;;
1227 -nfp | --nfp | --nf)
1228 # Obsolete; use --without-fp.
1231 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232 | --no-cr | --no-c | -n)
1235 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1239 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241 | --oldin | --oldi | --old | --ol | --o)
1242 ac_prev=oldincludedir ;;
1243 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246 oldincludedir=$ac_optarg ;;
1248 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1250 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251 prefix=$ac_optarg ;;
1253 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254 | --program-pre | --program-pr | --program-p)
1255 ac_prev=program_prefix ;;
1256 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258 program_prefix=$ac_optarg ;;
1260 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261 | --program-suf | --program-su | --program-s)
1262 ac_prev=program_suffix ;;
1263 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265 program_suffix=$ac_optarg ;;
1267 -program-transform-name | --program-transform-name \
1268 | --program-transform-nam | --program-transform-na \
1269 | --program-transform-n | --program-transform- \
1270 | --program-transform | --program-transfor \
1271 | --program-transfo | --program-transf \
1272 | --program-trans | --program-tran \
1273 | --progr-tra | --program-tr | --program-t)
1274 ac_prev=program_transform_name ;;
1275 -program-transform-name=* | --program-transform-name=* \
1276 | --program-transform-nam=* | --program-transform-na=* \
1277 | --program-transform-n=* | --program-transform-=* \
1278 | --program-transform=* | --program-transfor=* \
1279 | --program-transfo=* | --program-transf=* \
1280 | --program-trans=* | --program-tran=* \
1281 | --progr-tra=* | --program-tr=* | --program-t=*)
1282 program_transform_name=$ac_optarg ;;
1284 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1286 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287 pdfdir=$ac_optarg ;;
1289 -psdir | --psdir | --psdi | --psd | --ps)
1291 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295 | -silent | --silent | --silen | --sile | --sil)
1298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1302 sbindir=$ac_optarg ;;
1304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306 | --sharedst | --shareds | --shared | --share | --shar \
1308 ac_prev=sharedstatedir ;;
1309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1313 sharedstatedir=$ac_optarg ;;
1315 -site | --site | --sit)
1317 -site=* | --site=* | --sit=*)
1320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323 srcdir=$ac_optarg ;;
1325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326 | --syscon | --sysco | --sysc | --sys | --sy)
1327 ac_prev=sysconfdir ;;
1328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330 sysconfdir=$ac_optarg ;;
1332 -target | --target | --targe | --targ | --tar | --ta | --t)
1333 ac_prev=target_alias ;;
1334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335 target_alias=$ac_optarg ;;
1337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1340 -version | --version | --versio | --versi | --vers | -V)
1341 ac_init_version=: ;;
1344 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid package name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1357 eval with_$ac_useropt=\$ac_optarg ;;
1359 -without-* | --without-*)
1360 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363 as_fn_error $? "invalid package name: $ac_useropt"
1364 ac_useropt_orig=$ac_useropt
1365 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366 case $ac_user_opts in
1370 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1371 ac_unrecognized_sep=', ';;
1373 eval with_$ac_useropt=no ;;
1376 # Obsolete; use --with-x.
1379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1380 | --x-incl | --x-inc | --x-in | --x-i)
1381 ac_prev=x_includes ;;
1382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1384 x_includes=$ac_optarg ;;
1386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1388 ac_prev=x_libraries ;;
1389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1391 x_libraries=$ac_optarg ;;
1393 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1394 Try \`$0 --help' for more information"
1398 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1399 # Reject names that are not valid shell variable names.
1400 case $ac_envvar in #(
1401 '' | [0-9]* | *[!_$as_cr_alnum]* )
1402 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1404 eval $ac_envvar=\$ac_optarg
1405 export $ac_envvar ;;
1408 # FIXME: should be removed in autoconf 3.0.
1409 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1410 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1412 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1418 if test -n "$ac_prev"; then
1419 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1420 as_fn_error $? "missing argument to $ac_option"
1423 if test -n "$ac_unrecognized_opts"; then
1424 case $enable_option_checking in
1426 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1431 # Check all directory arguments for consistency.
1432 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433 datadir sysconfdir sharedstatedir localstatedir includedir \
1434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435 libdir localedir mandir
1437 eval ac_val=\$$ac_var
1438 # Remove trailing slashes.
1441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442 eval $ac_var=\$ac_val;;
1444 # Be sure to have absolute directory names.
1446 [\\/$]* | ?:[\\/]* ) continue;;
1447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1449 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1452 # There might be people who depend on the old broken behavior: `$host'
1453 # used to hold the argument of --host etc.
1454 # FIXME: To remove some day.
1457 target=$target_alias
1459 # FIXME: To remove some day.
1460 if test "x$host_alias" != x; then
1461 if test "x$build_alias" = x; then
1462 cross_compiling=maybe
1463 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1464 If a cross compiler is detected then cross compile mode will be used" >&2
1465 elif test "x$build_alias" != "x$host_alias"; then
1471 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473 test "$silent" = yes && exec 6>/dev/null
1476 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1477 ac_ls_di=`ls -di .` &&
1478 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1479 as_fn_error $? "working directory cannot be determined"
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481 as_fn_error $? "pwd does not report name of working directory"
1484 # Find the source files, if location was not specified.
1485 if test -z "$srcdir"; then
1486 ac_srcdir_defaulted=yes
1487 # Try the directory containing this script, then the parent directory.
1488 ac_confdir=`$as_dirname -- "$as_myself" ||
1489 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1490 X"$as_myself" : 'X\(//\)[^/]' \| \
1491 X"$as_myself" : 'X\(//\)$' \| \
1492 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1493 $as_echo X"$as_myself" |
1494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1516 ac_srcdir_defaulted=no
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1519 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1520 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1522 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1524 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 for ac_var in $ac_precious_vars; do
1537 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538 eval ac_env_${ac_var}_value=\$${ac_var}
1539 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544 # Report the --help message.
1546 if test "$ac_init_help" = "long"; then
1547 # Omit some internal or obsolete options to make the list less imposing.
1548 # This message is too long to be a string in the A/UX 3.1 sh.
1550 \`configure' configures bacula 5.1.15 to adapt to many kinds of systems.
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE. See below for descriptions of some of the useful variables.
1557 Defaults for the options are specified in brackets.
1560 -h, --help display this help and exit
1561 --help=short display options specific to this package
1562 --help=recursive display the short help of all the included packages
1563 -V, --version display version information and exit
1564 -q, --quiet, --silent do not print \`checking ...' messages
1565 --cache-file=FILE cache test results in FILE [disabled]
1566 -C, --config-cache alias for \`--cache-file=config.cache'
1567 -n, --no-create do not create output files
1568 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1570 Installation directories:
1571 --prefix=PREFIX install architecture-independent files in PREFIX
1572 [$ac_default_prefix]
1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1581 For better control, use the options below.
1583 Fine tuning of the installation directories:
1584 --bindir=DIR user executables [EPREFIX/bin]
1585 --sbindir=DIR system admin executables [EPREFIX/sbin]
1586 --libexecdir=DIR program executables [EPREFIX/libexec]
1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1590 --libdir=DIR object code libraries [EPREFIX/lib]
1591 --includedir=DIR C header files [PREFIX/include]
1592 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1595 --infodir=DIR info documentation [DATAROOTDIR/info]
1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1597 --mandir=DIR man documentation [DATAROOTDIR/man]
1598 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1599 --htmldir=DIR html documentation [DOCDIR]
1600 --dvidir=DIR dvi documentation [DOCDIR]
1601 --pdfdir=DIR pdf documentation [DOCDIR]
1602 --psdir=DIR ps documentation [DOCDIR]
1608 --x-includes=DIR X include files are in DIR
1609 --x-libraries=DIR X library files are in DIR
1612 --build=BUILD configure for building on BUILD [guessed]
1613 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1617 if test -n "$ac_init_help"; then
1618 case $ac_init_help in
1619 short | recursive ) echo "Configuration of bacula 5.1.15:";;
1624 --disable-option-checking ignore unrecognized --enable/--with options
1625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1627 --enable-libtool enable building using GNU libtool [default=yes]
1628 --enable-shared[=PKGS] build shared libraries [default=yes]
1629 --enable-static[=PKGS] build static libraries [default=no]
1630 --enable-fast-install[=PKGS]
1631 optimize for fast installation [default=yes]
1632 --disable-libtool-lock avoid locking (might break parallel builds)
1633 --enable-includes enable installing of include files [default=no]
1634 --disable-nls do not use Native Language Support
1635 --disable-rpath do not hardcode runtime library paths
1636 --enable-gnome enable build of bgnome-console GUI [default=no]
1637 --enable-bat enable build of bat Qt4 GUI [default=no]
1638 --enable-bwx-console enable build of wxWidgets console [default=no]
1639 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1641 --enable-smartalloc enable smartalloc debugging support [default=no]
1642 --enable-lockmgr enable lock manager support [default=no]
1643 --enable-static-tools enable static tape tools [default=no]
1644 --enable-static-fd enable static File daemon [default=no]
1645 --enable-static-sd enable static Storage daemon [default=no]
1646 --enable-static-dir enable static Director [default=no]
1647 --enable-static-cons enable static Console [default=no]
1648 --enable-client-only build client (File daemon) only [default=no]
1649 --enable-build-dird enable building of dird (Director) [default=yes]
1650 --enable-build-stored enable building of stored (Storage daemon)
1652 --disable-conio disable conio support [default=no]
1653 --enable-ipv6 enable ipv6 support [default=yes]
1654 --disable-readline disable readline support [default=yes]
1655 --enable-batch-insert enable the DB batch insert code [default=yes]
1656 --disable-largefile omit support for large files
1657 --disable-acl disable acl support [default=auto]
1658 --disable-xattr disable xattr support [default=auto]
1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-sysroot=DIR Search for dependent libraries within DIR
1667 (or the compiler's sysroot if not specified).
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1671 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1672 --without-libintl-prefix don't search for libintl in includedir and libdir
1673 --with-included-gettext use the GNU gettext library included here
1674 --with-readline[=DIR] specify readline library directory
1675 --with-python[=DIR] Include Python support. DIR is the Python base
1676 install directory, default is to search through a
1677 number of common places for the Python files.
1678 --with-tcp-wrappers[=DIR]
1679 enable tcpwrappers support
1680 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1681 --with-working-dir=PATH specify path of Bacula working directory
1682 --with-archivedir=PATH specify path of SD archive directory
1683 --with-basename=RESNAME specify base resource name for daemons
1684 --with-hostname=RESNAME specify host name for daemons
1685 --with-scriptdir=PATH specify path of Bacula scripts directory
1686 --with-bsrdir=PATH specify path of Bacula bsrs directory
1687 --with-logdir=PATH specify path of Bacula logs directory
1688 --with-plugindir=PATH specify path of Bacula plugins directory
1689 --with-dump-email=EMAIL dump email address
1690 --with-job-email=EMAIL job output email address
1691 --with-smtp-host=HOST SMTP mail host address
1692 --with-pid-dir=PATH specify location of Bacula pid files
1693 --with-subsys-dir=PATH specify location of Bacula subsys file
1694 --with-baseport=PORT specify base port address for daemons
1695 --with-dir-password=PASSWORD
1696 specify Director's password
1697 --with-fd-password=PASSWORD
1698 specify Client's password
1699 --with-sd-password=PASSWORD
1700 specify Storage daemon's password
1701 --with-mon-dir-password=PASSWORD
1702 specify Director's password used by the monitor
1703 --with-mon-fd-password=PASSWORD
1704 specify Client's password used by the monitor
1705 --with-mon-sd-password=PASSWORD
1706 specify Storage daemon's password used by the
1708 --with-db-name=DBNAME specify database name [default=bacula]
1709 --with-db-user=UNAME specify database user [default=bacula]
1710 --with-db-password=PWD specify database password [default=*none*]
1711 --with-db-port=DBPORT specify a database port [default=null]
1712 --with-dir-user=USER specify user for Director daemon
1713 --with-dir-group=GROUP specify group for Director daemon
1714 --with-sd-user=USER specify user for Storage daemon
1715 --with-sd-group=GROUP specify group for Storage daemon
1716 --with-fd-user=USER specify user for File daemon
1717 --with-fd-group=GROUP specify group for File daemon
1718 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1719 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1720 base install directory, [default=/usr/local/pgsql]
1721 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1722 directory, default is to search through a number of
1723 common places for the MySQL files.
1724 --with-embedded-mysql[=DIR]
1725 Include MySQL support. DIR is the MySQL base install
1726 directory, default is to search through a number of
1727 common places for the MySQL files.
1728 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1729 install directory, default is to search through a
1730 number of common places for the SQLite3 files.
1731 --with-x use the X Window System
1733 Some influential environment variables:
1734 CC C compiler command
1735 CFLAGS C compiler flags
1736 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1737 nonstandard directory <lib dir>
1738 LIBS libraries to pass to the linker, e.g. -l<library>
1739 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1740 you have headers in a nonstandard directory <include dir>
1741 CXX C++ compiler command
1742 CXXFLAGS C++ compiler flags
1744 WXCONFIG wx-config command. On some systems, you must set it to
1745 wx-config-2.6 to use wxWidgets 2.6.
1746 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1747 CXXCPP C++ preprocessor
1748 XMKMF Path to xmkmf, Makefile generator for X Window System
1750 Use these variables to override the choices made by `configure' or to help
1751 it to find libraries and programs with nonstandard names/locations.
1753 Report bugs to the package provider.
1758 if test "$ac_init_help" = "recursive"; then
1759 # If there are subdirs, report their specific --help.
1760 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1761 test -d "$ac_dir" ||
1762 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1770 # A ".." for each directory in $ac_dir_suffix.
1771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1772 case $ac_top_builddir_sub in
1773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1777 ac_abs_top_builddir=$ac_pwd
1778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1779 # for backward compatibility:
1780 ac_top_builddir=$ac_top_build_prefix
1783 .) # We are building in place.
1785 ac_top_srcdir=$ac_top_builddir_sub
1786 ac_abs_top_srcdir=$ac_pwd ;;
1787 [\\/]* | ?:[\\/]* ) # Absolute name.
1788 ac_srcdir=$srcdir$ac_dir_suffix;
1789 ac_top_srcdir=$srcdir
1790 ac_abs_top_srcdir=$srcdir ;;
1792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1793 ac_top_srcdir=$ac_top_build_prefix$srcdir
1794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1798 cd "$ac_dir" || { ac_status=$?; continue; }
1799 # Check for guested configure.
1800 if test -f "$ac_srcdir/configure.gnu"; then
1802 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1803 elif test -f "$ac_srcdir/configure"; then
1805 $SHELL "$ac_srcdir/configure" --help=recursive
1807 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1809 cd "$ac_pwd" || { ac_status=$?; break; }
1813 test -n "$ac_init_help" && exit $ac_status
1814 if $ac_init_version; then
1816 bacula configure 5.1.15
1817 generated by GNU Autoconf 2.68
1819 Copyright (C) 2010 Free Software Foundation, Inc.
1820 This configure script is free software; the Free Software Foundation
1821 gives unlimited permission to copy, distribute and modify it.
1826 ## ------------------------ ##
1827 ## Autoconf initialization. ##
1828 ## ------------------------ ##
1830 # ac_fn_c_try_compile LINENO
1831 # --------------------------
1832 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext
1837 if { { ac_try="$ac_compile"
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_compile") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_c_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest.$ac_objext; then :
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_c_try_compile
1868 # ac_fn_cxx_try_compile LINENO
1869 # ----------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_cxx_try_compile ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 rm -f conftest.$ac_objext
1875 if { { ac_try="$ac_compile"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_compile") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && {
1891 test -z "$ac_cxx_werror_flag" ||
1892 test ! -s conftest.err
1893 } && test -s conftest.$ac_objext; then :
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_cxx_try_compile
1906 # ac_fn_c_try_cpp LINENO
1907 # ----------------------
1908 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { { ac_try="$ac_cpp conftest.$ac_ext"
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } > conftest.i && {
1928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1943 # ac_fn_c_try_link LINENO
1944 # -----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext conftest$ac_exeext
1950 if { { ac_try="$ac_link"
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>conftest.err
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest$ac_exeext && {
1969 test "$cross_compiling" = yes ||
1970 $as_test_x conftest$ac_exeext
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1979 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1980 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1981 # interfere with the next link command; also delete a directory that is
1982 # left behind by Apple's compiler. We do this before executing the actions.
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1987 } # ac_fn_c_try_link
1989 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1990 # -------------------------------------------------------
1991 # Tests whether HEADER exists and can be compiled using the include files in
1992 # INCLUDES, setting the cache variable VAR accordingly.
1993 ac_fn_c_check_header_compile ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2006 if ac_fn_c_try_compile "$LINENO"; then :
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 } # ac_fn_c_check_header_compile
2020 # ac_fn_c_try_run LINENO
2021 # ----------------------
2022 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2023 # that executables *can* be run.
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if { { ac_try="$ac_link"
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_link") 2>&5
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2038 { { case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044 (eval "$ac_try") 2>&5
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; }; }; then :
2050 $as_echo "$as_me: program exited with status $ac_status" >&5
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2054 ac_retval=$ac_status
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
2062 # ac_fn_c_check_func LINENO FUNC VAR
2063 # ----------------------------------
2064 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2065 ac_fn_c_check_func ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071 $as_echo_n "(cached) " >&6
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2077 #define $2 innocuous_$2
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $2 (); below.
2081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2082 <limits.h> exists even on freestanding compilers. */
2085 # include <limits.h>
2087 # include <assert.h>
2092 /* Override any GCC internal prototype to avoid an error.
2093 Use char because int might match the return type of a GCC
2094 builtin and then its argument prototype would still apply. */
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined __stub_$2 || defined __stub___$2
2114 if ac_fn_c_try_link "$LINENO"; then :
2119 rm -f core conftest.err conftest.$ac_objext \
2120 conftest$ac_exeext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 } # ac_fn_c_check_func
2129 # ac_fn_cxx_try_cpp LINENO
2130 # ------------------------
2131 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2132 ac_fn_cxx_try_cpp ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if { { ac_try="$ac_cpp conftest.$ac_ext"
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } > conftest.i && {
2151 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2152 test ! -s conftest.err
2156 $as_echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 as_fn_set_status $ac_retval
2164 } # ac_fn_cxx_try_cpp
2166 # ac_fn_cxx_try_link LINENO
2167 # -------------------------
2168 # Try to link conftest.$ac_ext, and return whether this succeeded.
2169 ac_fn_cxx_try_link ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 rm -f conftest.$ac_objext conftest$ac_exeext
2173 if { { ac_try="$ac_link"
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179 $as_echo "$ac_try_echo"; } >&5
2180 (eval "$ac_link") 2>conftest.err
2182 if test -s conftest.err; then
2183 grep -v '^ *+' conftest.err >conftest.er1
2184 cat conftest.er1 >&5
2185 mv -f conftest.er1 conftest.err
2187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188 test $ac_status = 0; } && {
2189 test -z "$ac_cxx_werror_flag" ||
2190 test ! -s conftest.err
2191 } && test -s conftest$ac_exeext && {
2192 test "$cross_compiling" = yes ||
2193 $as_test_x conftest$ac_exeext
2197 $as_echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2202 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2203 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2204 # interfere with the next link command; also delete a directory that is
2205 # left behind by Apple's compiler. We do this before executing the actions.
2206 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 as_fn_set_status $ac_retval
2210 } # ac_fn_cxx_try_link
2212 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2213 # -------------------------------------------
2214 # Tests whether TYPE exists after having included INCLUDES, setting cache
2215 # variable VAR accordingly.
2216 ac_fn_c_check_type ()
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if eval \${$3+:} false; then :
2222 $as_echo_n "(cached) " >&6
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2250 if ac_fn_c_try_compile "$LINENO"; then :
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 } # ac_fn_c_check_type
2266 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2267 # -------------------------------------------------------
2268 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2269 # the include files in INCLUDES and setting the cache variable VAR
2271 ac_fn_c_check_header_mongrel ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 if eval \${$3+:} false; then :
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if eval \${$3+:} false; then :
2278 $as_echo_n "(cached) " >&6
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2284 # Is the header compilable?
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2286 $as_echo_n "checking $2 usability... " >&6; }
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 ac_header_compiler=yes
2295 ac_header_compiler=no
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2299 $as_echo "$ac_header_compiler" >&6; }
2301 # Is the header present?
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2303 $as_echo_n "checking $2 presence... " >&6; }
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2308 if ac_fn_c_try_cpp "$LINENO"; then :
2309 ac_header_preproc=yes
2311 ac_header_preproc=no
2313 rm -f conftest.err conftest.i conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2315 $as_echo "$ac_header_preproc" >&6; }
2317 # So? What about this header?
2318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2321 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2323 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2327 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2329 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2331 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2333 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2335 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339 $as_echo_n "checking for $2... " >&6; }
2340 if eval \${$3+:} false; then :
2341 $as_echo_n "(cached) " >&6
2343 eval "$3=\$ac_header_compiler"
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351 } # ac_fn_c_check_header_mongrel
2353 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2354 # --------------------------------------------
2355 # Tries to find the compile-time value of EXPR in a program that includes
2356 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2358 ac_fn_c_compute_int ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 if test "$cross_compiling" = yes; then
2362 # Depending upon the size, compute the lo and hi bounds.
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2369 static int test_array [1 - 2 * !(($2) >= 0)];
2376 if ac_fn_c_try_compile "$LINENO"; then :
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2385 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_hi=$ac_mid; break
2395 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2396 if test $ac_lo -le $ac_mid; then
2400 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2411 static int test_array [1 - 2 * !(($2) < 0)];
2418 if ac_fn_c_try_compile "$LINENO"; then :
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2427 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 ac_lo=$ac_mid; break
2437 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2438 if test $ac_mid -le $ac_hi; then
2442 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 # Binary search between lo and hi bounds.
2453 while test "x$ac_lo" != "x$ac_hi"; do
2454 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2461 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2468 if ac_fn_c_try_compile "$LINENO"; then :
2471 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2483 static long int longval () { return $2; }
2484 static unsigned long int ulongval () { return $2; }
2491 FILE *f = fopen ("conftest.val", "w");
2496 long int i = longval ();
2499 fprintf (f, "%ld", i);
2503 unsigned long int i = ulongval ();
2506 fprintf (f, "%lu", i);
2508 /* Do not output a trailing newline, as this causes \r\n confusion
2509 on some platforms. */
2510 return ferror (f) || fclose (f) != 0;
2516 if ac_fn_c_try_run "$LINENO"; then :
2517 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2522 conftest.$ac_objext conftest.beam conftest.$ac_ext
2526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527 as_fn_set_status $ac_retval
2529 } # ac_fn_c_compute_int
2531 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2532 # ----------------------------------------------------
2533 # Tries to find if the field MEMBER exists in type AGGR, after including
2534 # INCLUDES, setting cache variable VAR accordingly.
2535 ac_fn_c_check_member ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2539 $as_echo_n "checking for $2.$3... " >&6; }
2540 if eval \${$4+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2556 if ac_fn_c_try_compile "$LINENO"; then :
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2566 if (sizeof ac_aggr.$3)
2572 if ac_fn_c_try_compile "$LINENO"; then :
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2583 $as_echo "$ac_res" >&6; }
2584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2586 } # ac_fn_c_check_member
2588 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2589 # ---------------------------------------------
2590 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2592 ac_fn_c_check_decl ()
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 as_decl_name=`echo $2|sed 's/ *(.*//'`
2596 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2598 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2599 if eval \${$3+:} false; then :
2600 $as_echo_n "(cached) " >&6
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h. */
2608 #ifndef $as_decl_name
2610 (void) $as_decl_use;
2612 (void) $as_decl_name;
2620 if ac_fn_c_try_compile "$LINENO"; then :
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629 $as_echo "$ac_res" >&6; }
2630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2632 } # ac_fn_c_check_decl
2634 # ac_fn_cxx_try_run LINENO
2635 # ------------------------
2636 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2637 # that executables *can* be run.
2638 ac_fn_cxx_try_run ()
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 if { { ac_try="$ac_link"
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2647 $as_echo "$ac_try_echo"; } >&5
2648 (eval "$ac_link") 2>&5
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2652 { { case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2657 $as_echo "$ac_try_echo"; } >&5
2658 (eval "$ac_try") 2>&5
2660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2661 test $ac_status = 0; }; }; then :
2664 $as_echo "$as_me: program exited with status $ac_status" >&5
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 ac_retval=$ac_status
2670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2672 as_fn_set_status $ac_retval
2674 } # ac_fn_cxx_try_run
2676 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2677 # ---------------------------------------------------------
2678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2679 # the include files in INCLUDES and setting the cache variable VAR
2681 ac_fn_cxx_check_header_mongrel ()
2683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2684 if eval \${$3+:} false; then :
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2686 $as_echo_n "checking for $2... " >&6; }
2687 if eval \${$3+:} false; then :
2688 $as_echo_n "(cached) " >&6
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2694 # Is the header compilable?
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2696 $as_echo_n "checking $2 usability... " >&6; }
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h. */
2702 if ac_fn_cxx_try_compile "$LINENO"; then :
2703 ac_header_compiler=yes
2705 ac_header_compiler=no
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2709 $as_echo "$ac_header_compiler" >&6; }
2711 # Is the header present?
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2713 $as_echo_n "checking $2 presence... " >&6; }
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h. */
2718 if ac_fn_cxx_try_cpp "$LINENO"; then :
2719 ac_header_preproc=yes
2721 ac_header_preproc=no
2723 rm -f conftest.err conftest.i conftest.$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2725 $as_echo "$ac_header_preproc" >&6; }
2727 # So? What about this header?
2728 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2739 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2743 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if eval \${$3+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 eval "$3=\$ac_header_compiler"
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2761 } # ac_fn_cxx_check_header_mongrel
2762 cat >config.log <<_ACEOF
2763 This file contains any messages produced by compilers while
2764 running configure, to aid debugging if configure makes a mistake.
2766 It was created by bacula $as_me 5.1.15, which was
2767 generated by GNU Autoconf 2.68. Invocation command line was
2779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2791 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 $as_echo "PATH: $as_dir"
2819 # Keep a trace of the command line.
2820 # Strip out --no-create and --no-recursion so they do not pile up.
2821 # Strip out --silent because we don't want to record it for future runs.
2822 # Also quote any args containing shell meta-characters.
2823 # Make two passes to allow for proper duplicate-argument suppression.
2827 ac_must_keep_next=false
2833 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2835 | -silent | --silent | --silen | --sile | --sil)
2838 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2841 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2843 as_fn_append ac_configure_args1 " '$ac_arg'"
2844 if test $ac_must_keep_next = true; then
2845 ac_must_keep_next=false # Got value, back to normal.
2848 *=* | --config-cache | -C | -disable-* | --disable-* \
2849 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2850 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2851 | -with-* | --with-* | -without-* | --without-* | --x)
2852 case "$ac_configure_args0 " in
2853 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2856 -* ) ac_must_keep_next=true ;;
2859 as_fn_append ac_configure_args " '$ac_arg'"
2864 { ac_configure_args0=; unset ac_configure_args0;}
2865 { ac_configure_args1=; unset ac_configure_args1;}
2867 # When interrupted or exit'd, cleanup temporary files, and complete
2868 # config.log. We remove comments because anyway the quotes in there
2869 # would cause problems or look ugly.
2870 # WARNING: Use '\'' to represent an apostrophe within the trap.
2871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2872 trap 'exit_status=$?
2873 # Save into config.log some information that might help in debugging.
2877 $as_echo "## ---------------- ##
2878 ## Cache variables. ##
2879 ## ---------------- ##"
2881 # The following way of writing the cache mishandles newlines in values,
2883 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2884 eval ac_val=\$$ac_var
2888 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2889 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2892 _ | IFS | as_nl) ;; #(
2893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2894 *) { eval $ac_var=; unset $ac_var;} ;;
2899 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2900 *${as_nl}ac_space=\ *)
2902 "s/'\''/'\''\\\\'\'''\''/g;
2903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2913 $as_echo "## ----------------- ##
2914 ## Output variables. ##
2915 ## ----------------- ##"
2917 for ac_var in $ac_subst_vars
2919 eval ac_val=\$$ac_var
2921 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2923 $as_echo "$ac_var='\''$ac_val'\''"
2927 if test -n "$ac_subst_files"; then
2928 $as_echo "## ------------------- ##
2929 ## File substitutions. ##
2930 ## ------------------- ##"
2932 for ac_var in $ac_subst_files
2934 eval ac_val=\$$ac_var
2936 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2938 $as_echo "$ac_var='\''$ac_val'\''"
2943 if test -s confdefs.h; then
2944 $as_echo "## ----------- ##
2951 test "$ac_signal" != 0 &&
2952 $as_echo "$as_me: caught signal $ac_signal"
2953 $as_echo "$as_me: exit $exit_status"
2955 rm -f core *.core core.conftest.* &&
2956 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2959 for ac_signal in 1 2 13 15; do
2960 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2964 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2965 rm -f -r conftest* confdefs.h
2967 $as_echo "/* confdefs.h */" > confdefs.h
2969 # Predefined preprocessor variables.
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_NAME "$PACKAGE_NAME"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_STRING "$PACKAGE_STRING"
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE_URL "$PACKAGE_URL"
2996 # Let the site file select an alternate cache file if it wants to.
2997 # Prefer an explicitly selected file to automatically selected ones.
3000 if test -n "$CONFIG_SITE"; then
3001 # We do not want a PATH search for config.site.
3002 case $CONFIG_SITE in #((
3003 -*) ac_site_file1=./$CONFIG_SITE;;
3004 */*) ac_site_file1=$CONFIG_SITE;;
3005 *) ac_site_file1=./$CONFIG_SITE;;
3007 elif test "x$prefix" != xNONE; then
3008 ac_site_file1=$prefix/share/config.site
3009 ac_site_file2=$prefix/etc/config.site
3011 ac_site_file1=$ac_default_prefix/share/config.site
3012 ac_site_file2=$ac_default_prefix/etc/config.site
3014 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3016 test "x$ac_site_file" = xNONE && continue
3017 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3019 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3020 sed 's/^/| /' "$ac_site_file" >&5
3022 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error $? "failed to load site script $ac_site_file
3025 See \`config.log' for more details" "$LINENO" 5; }
3029 if test -r "$cache_file"; then
3030 # Some versions of bash will fail to source /dev/null (special files
3031 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3032 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3034 $as_echo "$as_me: loading cache $cache_file" >&6;}
3036 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3037 *) . "./$cache_file";;
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3042 $as_echo "$as_me: creating cache $cache_file" >&6;}
3046 as_fn_append ac_header_list " stdlib.h"
3047 as_fn_append ac_header_list " unistd.h"
3048 as_fn_append ac_header_list " sys/param.h"
3049 # Check that the precious variables saved in the cache have kept the same
3051 ac_cache_corrupted=false
3052 for ac_var in $ac_precious_vars; do
3053 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3054 eval ac_new_set=\$ac_env_${ac_var}_set
3055 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3056 eval ac_new_val=\$ac_env_${ac_var}_value
3057 case $ac_old_set,$ac_new_set in
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3060 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3061 ac_cache_corrupted=: ;;
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3064 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3065 ac_cache_corrupted=: ;;
3068 if test "x$ac_old_val" != "x$ac_new_val"; then
3069 # differences in whitespace do not lead to failure.
3070 ac_old_val_w=`echo x $ac_old_val`
3071 ac_new_val_w=`echo x $ac_new_val`
3072 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3074 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3075 ac_cache_corrupted=:
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3078 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3079 eval $ac_var=\$ac_old_val
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3082 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3084 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3087 # Pass precious variables to config.status.
3088 if test "$ac_new_set" = set; then
3090 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3091 *) ac_arg=$ac_var=$ac_new_val ;;
3093 case " $ac_configure_args " in
3094 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3095 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3099 if $ac_cache_corrupted; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3103 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3104 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3106 ## -------------------- ##
3107 ## Main body of script. ##
3108 ## -------------------- ##
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3127 if test -f "$ac_dir/install-sh"; then
3129 ac_install_sh="$ac_aux_dir/install-sh -c"
3131 elif test -f "$ac_dir/install.sh"; then
3133 ac_install_sh="$ac_aux_dir/install.sh -c"
3135 elif test -f "$ac_dir/shtool"; then
3137 ac_install_sh="$ac_aux_dir/shtool install -c"
3141 if test -z "$ac_aux_dir"; then
3142 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3145 # These three variables are undocumented and unsupported,
3146 # and are intended to be withdrawn in a future Autoconf release.
3147 # They can cause serious problems if a builder's source tree is in a directory
3148 # whose full name contains unusual characters.
3149 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3150 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3151 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3154 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3157 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3158 WIN32MAINDIR=${BUILD_DIR}
3159 WIN32TOPDIR=${TOP_DIR}
3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
3167 set dummy $ac_prog; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_path_TRUEPRG+:} false; then :
3171 $as_echo_n "(cached) " >&6
3175 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 TRUEPRG=$ac_cv_path_TRUEPRG
3197 if test -n "$TRUEPRG"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3199 $as_echo "$TRUEPRG" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3206 test -n "$TRUEPRG" && break
3208 test -n "$TRUEPRG" || TRUEPRG=":"
3210 for ac_prog in false
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_path_FALSEPRG+:} false; then :
3217 $as_echo_n "(cached) " >&6
3221 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 FALSEPRG=$ac_cv_path_FALSEPRG
3243 if test -n "$FALSEPRG"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3245 $as_echo "$FALSEPRG" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3252 test -n "$FALSEPRG" && break
3254 test -n "$FALSEPRG" || FALSEPRG=":"
3259 if test "x$BACULA" != x; then
3260 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3262 BACULA=${BACULA:-Bacula}
3263 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3268 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3273 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3274 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3277 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3278 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3280 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3281 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3284 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3286 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3289 echo "configuring for ${BACULA} $VERSION ($DATE)"
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 if test -n "$ac_tool_prefix"; then
3299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3337 if test -z "$ac_cv_prog_CC"; then
3339 # Extract the first word of "gcc", so it can be a program name with args.
3340 set dummy gcc; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_ac_ct_CC="gcc"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3375 if test "x$ac_ct_CC" = x; then
3378 case $cross_compiling:$ac_tool_warned in
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3390 if test -z "$CC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_CC="${ac_tool_prefix}cc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl.exe
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3528 test -n "$CC" && break
3531 if test -z "$CC"; then
3533 for ac_prog in cl.exe
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$ac_ct_CC" && break
3575 if test "x$ac_ct_CC" = x; then
3578 case $cross_compiling:$ac_tool_warned in
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3591 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details" "$LINENO" 5; }
3596 # Provide some information about the compiler.
3597 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3600 for ac_option in --version -v -V -qversion; do
3601 { { ac_try="$ac_compiler $ac_option >&5"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3610 if test -s conftest.err; then
3612 ... rest of stderr output deleted ...
3613 10q' conftest.err >conftest.er1
3614 cat conftest.er1 >&5
3616 rm -f conftest.er1 conftest.err
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3634 # Try to create an executable without -o first, disregard a.out.
3635 # It will help us diagnose broken compilers, and finding out an intuition
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3641 # The possible output files:
3642 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3645 for ac_file in $ac_files
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654 if { { ac_try="$ac_link_default"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link_default") 2>&5
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3670 for ac_file in $ac_files ''
3672 test -f "$ac_file" || continue
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3677 # We found the default executable, but exeext='' is most
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3700 if test -z "$ac_file"; then :
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error 77 "C compiler cannot create executables
3709 See \`config.log' for more details" "$LINENO" 5; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3739 for ac_file in conftest.exe conftest conftest.*; do
3740 test -f "$ac_file" || continue
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details" "$LINENO" 5; }
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780 { { ac_try="$ac_link"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }
3791 if { ac_try='./conftest$ac_cv_exeext'
3792 { { case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_try") 2>&5
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; }; then
3804 if test "$cross_compiling" = maybe; then
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details" "$LINENO" 5; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if ${ac_cv_objext+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try="$ac_compile"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compile") 2>&5
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 for ac_file in conftest.o conftest.obj conftest.*; do
3849 test -f "$ac_file" || continue;
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details" "$LINENO" 5; }
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if ${ac_cv_c_compiler_gnu+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3890 if ac_fn_c_try_compile "$LINENO"; then :
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if ${ac_cv_prog_cc_g+:} false; then :
3911 $as_echo_n "(cached) " >&6
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3928 if ac_fn_c_try_compile "$LINENO"; then :
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3943 if ac_fn_c_try_compile "$LINENO"; then :
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972 CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974 if test "$GCC" = yes; then
3980 if test "$GCC" = yes; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if ${ac_cv_prog_cc_c89+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_cv_prog_cc_c89=no
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4013 s = g (p, va_arg (v,int));
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4019 function prototypes and stuff, but not '\xHH' hex character constants.
4020 These don't provoke an error unfortunately, instead are silently treated
4021 as 'x'. The following induces an error, until -std is added to get
4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4023 array size at least. It's necessary to write '\x00'==0 to get something
4024 that's true only with -std. */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028 inside strings and character constants. */
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4049 CC="$ac_save_CC $ac_arg"
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_c89=$ac_arg
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x$ac_cv_prog_cc_c89" != "xno" && break
4056 rm -f conftest.$ac_ext
4061 case "x$ac_cv_prog_cc_c89" in
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 ac_cpp='$CXXCPP $CPPFLAGS'
4085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4088 if test -z "$CXX"; then
4089 if test -n "$CCC"; then
4092 if test -n "$ac_tool_prefix"; then
4093 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CXX+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$CXX"; then
4103 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test -n "$CXX"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4125 $as_echo "$CXX" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4132 test -n "$CXX" && break
4135 if test -z "$CXX"; then
4137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4139 # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$ac_ct_CXX"; then
4147 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_ac_ct_CXX="$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4167 if test -n "$ac_ct_CXX"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4169 $as_echo "$ac_ct_CXX" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4176 test -n "$ac_ct_CXX" && break
4179 if test "x$ac_ct_CXX" = x; then
4182 case $cross_compiling:$ac_tool_warned in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4198 for ac_option in --version -v -V -qversion; do
4199 { { ac_try="$ac_compiler $ac_option >&5"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4208 if test -s conftest.err; then
4210 ... rest of stderr output deleted ...
4211 10q' conftest.err >conftest.er1
4212 cat conftest.er1 >&5
4214 rm -f conftest.er1 conftest.err
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4221 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4222 $as_echo_n "(cached) " >&6
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4248 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4254 ac_test_CXXFLAGS=${CXXFLAGS+set}
4255 ac_save_CXXFLAGS=$CXXFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4257 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4258 if ${ac_cv_prog_cxx_g+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4262 ac_cxx_werror_flag=yes
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4277 ac_cv_prog_cxx_g=yes
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4291 if ac_fn_cxx_try_compile "$LINENO"; then :
4294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308 ac_cv_prog_cxx_g=yes
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4318 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4319 if test "$ac_test_CXXFLAGS" = set; then
4320 CXXFLAGS=$ac_save_CXXFLAGS
4321 elif test $ac_cv_prog_cxx_g = yes; then
4322 if test "$GXX" = yes; then
4328 if test "$GXX" = yes; then
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 if test "x$CC" != xcc; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4342 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4345 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4347 set dummy $CC; ac_cc=`$as_echo "$2" |
4348 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4349 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4350 $as_echo_n "(cached) " >&6
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4363 # Make sure it works both with $CC and with simple cc.
4364 # We do the test twice because some compilers refuse to overwrite an
4365 # existing .o file with -o, though they will create one.
4366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4368 if { { case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 $as_echo "$ac_try_echo"; } >&5
4374 (eval "$ac_try") 2>&5
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; } &&
4378 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; };
4389 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4390 if test "x$CC" != xcc; then
4391 # Test first that cc exists at all.
4392 if { ac_try='cc -c conftest.$ac_ext >&5'
4393 { { case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399 (eval "$ac_try") 2>&5
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }; }; then
4403 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4405 if { { case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; } &&
4415 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_try") 2>&5
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; };
4429 # cc exists but doesn't like -o.
4430 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4435 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4437 rm -f core conftest*
4440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4447 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4462 if test -z "$CPP"; then
4463 if ${ac_cv_prog_CPP+:} false; then :
4464 $as_echo_n "(cached) " >&6
4466 # Double quotes because CPP needs to be expanded
4467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4470 for ac_c_preproc_warn_flag in '' yes
4472 # Use a header file that comes with gcc, so configuring glibc
4473 # with a fresh cross-compiler works.
4474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 # <limits.h> exists even on freestanding compilers.
4476 # On the NeXT, cc -E runs the code through the compiler's parser,
4477 # not just through cpp. "Syntax error" is here to catch this case.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4481 # include <limits.h>
4483 # include <assert.h>
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4490 # Broken: fails on valid input.
4493 rm -f conftest.err conftest.i conftest.$ac_ext
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #include <ac_nonexistent.h>
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502 # Broken: success on invalid input.
4505 # Passes both tests.
4509 rm -f conftest.err conftest.i conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.i conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4527 $as_echo "$CPP" >&6; }
4529 for ac_c_preproc_warn_flag in '' yes
4531 # Use a header file that comes with gcc, so configuring glibc
4532 # with a fresh cross-compiler works.
4533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534 # <limits.h> exists even on freestanding compilers.
4535 # On the NeXT, cc -E runs the code through the compiler's parser,
4536 # not just through cpp. "Syntax error" is here to catch this case.
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4540 # include <limits.h>
4542 # include <assert.h>
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: fails on valid input.
4552 rm -f conftest.err conftest.i conftest.$ac_ext
4554 # OK, works on sane cases. Now check whether nonexistent headers
4555 # can be detected and how.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <ac_nonexistent.h>
4560 if ac_fn_c_try_cpp "$LINENO"; then :
4561 # Broken: success on invalid input.
4564 # Passes both tests.
4568 rm -f conftest.err conftest.i conftest.$ac_ext
4571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4572 rm -f conftest.i conftest.err conftest.$ac_ext
4573 if $ac_preproc_ok; then :
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4579 See \`config.log' for more details" "$LINENO" 5; }
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4591 if ${ac_cv_path_GREP+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -z "$GREP"; then
4595 ac_path_GREP_found=false
4596 # Loop through the user's path and test for each of PROGNAME-LIST
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 test -z "$as_dir" && as_dir=.
4602 for ac_prog in grep ggrep; do
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4606 # Check for GNU ac_path_GREP and select it if it is found.
4607 # Check for GNU $ac_path_GREP
4608 case `"$ac_path_GREP" --version 2>&1` in
4610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613 $as_echo_n 0123456789 >"conftest.in"
4616 cat "conftest.in" "conftest.in" >"conftest.tmp"
4617 mv "conftest.tmp" "conftest.in"
4618 cp "conftest.in" "conftest.nl"
4619 $as_echo 'GREP' >> "conftest.nl"
4620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622 as_fn_arith $ac_count + 1 && ac_count=$as_val
4623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4624 # Best one so far, save it but keep looking for a better one
4625 ac_cv_path_GREP="$ac_path_GREP"
4626 ac_path_GREP_max=$ac_count
4628 # 10*(2^10) chars as input seems more than enough
4629 test $ac_count -gt 10 && break
4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 $ac_path_GREP_found && break 3
4639 if test -z "$ac_cv_path_GREP"; then
4640 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643 ac_cv_path_GREP=$GREP
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4648 $as_echo "$ac_cv_path_GREP" >&6; }
4649 GREP="$ac_cv_path_GREP"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4653 $as_echo_n "checking for egrep... " >&6; }
4654 if ${ac_cv_path_EGREP+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658 then ac_cv_path_EGREP="$GREP -E"
4660 if test -z "$EGREP"; then
4661 ac_path_EGREP_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in egrep; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4671 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4672 # Check for GNU ac_path_EGREP and select it if it is found.
4673 # Check for GNU $ac_path_EGREP
4674 case `"$ac_path_EGREP" --version 2>&1` in
4676 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4679 $as_echo_n 0123456789 >"conftest.in"
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'EGREP' >> "conftest.nl"
4686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 as_fn_arith $ac_count + 1 && ac_count=$as_val
4689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_EGREP="$ac_path_EGREP"
4692 ac_path_EGREP_max=$ac_count
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700 $ac_path_EGREP_found && break 3
4705 if test -z "$ac_cv_path_EGREP"; then
4706 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 ac_cv_path_EGREP=$EGREP
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716 EGREP="$ac_cv_path_EGREP"
4719 if test $ac_cv_c_compiler_gnu = yes; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4721 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4722 if ${ac_cv_prog_gcc_traditional+:} false; then :
4723 $as_echo_n "(cached) " >&6
4725 ac_pattern="Autoconf.*'x'"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4733 ac_cv_prog_gcc_traditional=yes
4735 ac_cv_prog_gcc_traditional=no
4740 if test $ac_cv_prog_gcc_traditional = no; then
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4748 ac_cv_prog_gcc_traditional=yes
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4755 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4756 if test $ac_cv_prog_gcc_traditional = yes; then
4757 CC="$CC -traditional"
4761 BASECC=`basename $CC`
4763 if test "x$BASECC" = xgcc; then
4764 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4768 # Extract the first word of "$CXX", so it can be a program name with args.
4769 set dummy $CXX; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_path_CXX+:} false; then :
4773 $as_echo_n "(cached) " >&6
4777 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4800 if test -n "$CXX"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4802 $as_echo "$CXX" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4809 if test ! -e $CXX; then
4810 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4813 # Find a good install program. We prefer a C program (faster),
4814 # so one script is as good as another. But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4820 # AmigaOS /C/install, which installs bootblocks on floppy discs
4821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4824 # OS/2's system install, which has a completely different semantic
4825 # ./install, which can be erroneously created by make from ./install.sh.
4826 # Reject install programs that cannot install multiple files.
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4829 if test -z "$INSTALL"; then
4830 if ${ac_cv_path_install+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 # Account for people who put trailing slashes in PATH elements.
4839 case $as_dir/ in #((
4840 ./ | .// | /[cC]/* | \
4841 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4842 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4845 # OSF1 and SCO ODT 3.0 have their own names for install.
4846 # Don't use installbsd from OSF since it installs stuff as root
4848 for ac_prog in ginstall scoinst install; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4851 if test $ac_prog = install &&
4852 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853 # AIX install. It has an incompatible calling convention.
4855 elif test $ac_prog = install &&
4856 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4857 # program-specific install script used by HP pwplus--don't use.
4860 rm -rf conftest.one conftest.two conftest.dir
4861 echo one > conftest.one
4862 echo two > conftest.two
4864 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4865 test -s conftest.one && test -s conftest.two &&
4866 test -s conftest.dir/conftest.one &&
4867 test -s conftest.dir/conftest.two
4869 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4882 rm -rf conftest.one conftest.two conftest.dir
4885 if test "${ac_cv_path_install+set}" = set; then
4886 INSTALL=$ac_cv_path_install
4888 # As a last resort, use the slow shell script. Don't cache a
4889 # value for INSTALL within a source directory, because that will
4890 # break other packages using the cache if that directory is
4891 # removed, or if the value is a relative name.
4892 INSTALL=$ac_install_sh
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4896 $as_echo "$INSTALL" >&6; }
4898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4899 # It thinks the first close brace ends the variable substitution.
4900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4906 # Extract the first word of "mv", so it can be a program name with args.
4907 set dummy mv; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_MV+:} false; then :
4911 $as_echo_n "(cached) " >&6
4915 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4938 if test -n "$MV"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4940 $as_echo "$MV" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 # Extract the first word of "rm", so it can be a program name with args.
4948 set dummy rm; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_path_REMOVE+:} false; then :
4952 $as_echo_n "(cached) " >&6
4956 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4978 REMOVE=$ac_cv_path_REMOVE
4979 if test -n "$REMOVE"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4981 $as_echo "$REMOVE" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 # Extract the first word of "cp", so it can be a program name with args.
4989 set dummy cp; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_CP+:} false; then :
4993 $as_echo_n "(cached) " >&6
4997 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5020 if test -n "$CP"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5022 $as_echo "$CP" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5029 # Extract the first word of "sed", so it can be a program name with args.
5030 set dummy sed; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_SED+:} false; then :
5034 $as_echo_n "(cached) " >&6
5038 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5061 if test -n "$SED"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5063 $as_echo "$SED" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 # Extract the first word of "echo", so it can be a program name with args.
5071 set dummy echo; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_path_ECHO+:} false; then :
5075 $as_echo_n "(cached) " >&6
5079 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5101 ECHO=$ac_cv_path_ECHO
5102 if test -n "$ECHO"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5104 $as_echo "$ECHO" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 # Extract the first word of "cmp", so it can be a program name with args.
5112 set dummy cmp; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_CMP+:} false; then :
5116 $as_echo_n "(cached) " >&6
5120 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5143 if test -n "$CMP"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5145 $as_echo "$CMP" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 # Extract the first word of "tbl", so it can be a program name with args.
5153 set dummy tbl; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_path_TBL+:} false; then :
5157 $as_echo_n "(cached) " >&6
5161 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5184 if test -n "$TBL"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5186 $as_echo "$TBL" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy ar; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_path_AR+:} false; then :
5198 $as_echo_n "(cached) " >&6
5202 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5225 if test -n "$AR"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5227 $as_echo "$AR" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 # Extract the first word of "openssl", so it can be a program name with args.
5235 set dummy openssl; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_OPENSSL+:} false; then :
5239 $as_echo_n "(cached) " >&6
5243 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5265 OPENSSL=$ac_cv_path_OPENSSL
5266 if test -n "$OPENSSL"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5268 $as_echo "$OPENSSL" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 # Extract the first word of "mtx", so it can be a program name with args.
5276 set dummy mtx; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_path_MTX+:} false; then :
5280 $as_echo_n "(cached) " >&6
5284 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5307 if test -n "$MTX"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5309 $as_echo "$MTX" >&6; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5316 # Extract the first word of "dd", so it can be a program name with args.
5317 set dummy dd; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_DD+:} false; then :
5321 $as_echo_n "(cached) " >&6
5325 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5348 if test -n "$DD"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5350 $as_echo "$DD" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 # Extract the first word of "mkisofs", so it can be a program name with args.
5358 set dummy mkisofs; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_path_MKISOFS+:} false; then :
5362 $as_echo_n "(cached) " >&6
5366 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5388 MKISOFS=$ac_cv_path_MKISOFS
5389 if test -n "$MKISOFS"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5391 $as_echo "$MKISOFS" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_path_PYTHON+:} false; then :
5403 $as_echo_n "(cached) " >&6
5407 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5429 PYTHON=$ac_cv_path_PYTHON
5430 if test -n "$PYTHON"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5432 $as_echo "$PYTHON" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5439 # Extract the first word of "growisofs", so it can be a program name with args.
5440 set dummy growisofs; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_path_GROWISOFS+:} false; then :
5444 $as_echo_n "(cached) " >&6
5448 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5470 GROWISOFS=$ac_cv_path_GROWISOFS
5471 if test -n "$GROWISOFS"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5473 $as_echo "$GROWISOFS" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5480 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5481 set dummy dvd+rw-mediainfo; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5485 $as_echo_n "(cached) " >&6
5487 case $DVDRWMEDIAINFO in
5489 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5511 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5512 if test -n "$DVDRWMEDIAINFO"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5514 $as_echo "$DVDRWMEDIAINFO" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5522 set dummy dvd+rw-format; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5526 $as_echo_n "(cached) " >&6
5528 case $DVDRWFORMAT in
5530 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5552 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5553 if test -n "$DVDRWFORMAT"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5555 $as_echo "$DVDRWFORMAT" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_path_PKGCONFIG+:} false; then :
5567 $as_echo_n "(cached) " >&6
5571 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5593 PKGCONFIG=$ac_cv_path_PKGCONFIG
5594 if test -n "$PKGCONFIG"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5596 $as_echo "$PKGCONFIG" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 # Extract the first word of "qmake", so it can be a program name with args.
5604 set dummy qmake; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_path_QMAKE+:} false; then :
5608 $as_echo_n "(cached) " >&6
5612 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5634 QMAKE=$ac_cv_path_QMAKE
5635 if test -n "$QMAKE"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5637 $as_echo "$QMAKE" >&6; }
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5644 # Extract the first word of "gmake", so it can be a program name with args.
5645 set dummy gmake; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_path_GMAKE+:} false; then :
5649 $as_echo_n "(cached) " >&6
5653 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5675 GMAKE=$ac_cv_path_GMAKE
5676 if test -n "$GMAKE"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5678 $as_echo "$GMAKE" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5686 if test "x$WXCONFIG" = x; then
5689 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5690 set dummy ${WXCONFIG}; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_path_WXCONFIG+:} false; then :
5694 $as_echo_n "(cached) " >&6
5698 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5720 WXCONFIG=$ac_cv_path_WXCONFIG
5721 if test -n "$WXCONFIG"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5723 $as_echo "$WXCONFIG" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5731 # Extract the first word of "cdrecord", so it can be a program name with args.
5732 set dummy cdrecord; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_path_CDRECORD+:} false; then :
5736 $as_echo_n "(cached) " >&6
5740 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5762 CDRECORD=$ac_cv_path_CDRECORD
5763 if test -n "$CDRECORD"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5765 $as_echo "$CDRECORD" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5772 # Extract the first word of "pidof", so it can be a program name with args.
5773 set dummy pidof; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_path_PIDOF+:} false; then :
5777 $as_echo_n "(cached) " >&6
5781 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5803 PIDOF=$ac_cv_path_PIDOF
5804 if test -n "$PIDOF"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5806 $as_echo "$PIDOF" >&6; }
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5813 for ac_prog in gawk mawk nawk awk
5815 # Extract the first word of "$ac_prog", so it can be a program name with args.
5816 set dummy $ac_prog; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_AWK+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 if test -n "$AWK"; then
5823 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_AWK="$ac_prog"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 if test -n "$AWK"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5845 $as_echo "$AWK" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5852 test -n "$AWK" && break
5855 # Some AWK programs fail, so test it and warn the user
5856 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5857 { if ((prog == $2) || (("(" prog ")") == $2) ||
5858 (("" prog "") == $2) ||
5859 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5861 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5862 The regex engine of $AWK is too broken to be used you
5863 might want to install GNU AWK.
5864 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5867 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5868 set dummy $THE_AWK; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if ${ac_cv_path_AWK+:} false; then :
5872 $as_echo_n "(cached) " >&6
5876 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5899 if test -n "$AWK"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5901 $as_echo "$AWK" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5910 test -n "$ARFLAG" || ARFLAGS="cr"
5922 # Check whether --enable-libtool was given.
5923 if test "${enable_libtool+set}" = set; then :
5924 enableval=$enable_libtool;
5925 if test x$enableval = xno; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5935 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5941 macro_revision='1.3293'
5955 ltmain="$ac_aux_dir/ltmain.sh"
5957 # Make sure we can run config.sub.
5958 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5959 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5962 $as_echo_n "checking build system type... " >&6; }
5963 if ${ac_cv_build+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 ac_build_alias=$build_alias
5967 test "x$ac_build_alias" = x &&
5968 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5969 test "x$ac_build_alias" = x &&
5970 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5971 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5972 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5976 $as_echo "$ac_cv_build" >&6; }
5977 case $ac_cv_build in
5979 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5982 ac_save_IFS=$IFS; IFS='-'
5988 # Remember, the first character of IFS is used to create $*,
5989 # except with old shells:
5992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5996 $as_echo_n "checking host system type... " >&6; }
5997 if ${ac_cv_host+:} false; then :
5998 $as_echo_n "(cached) " >&6
6000 if test "x$host_alias" = x; then
6001 ac_cv_host=$ac_cv_build
6003 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6004 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6009 $as_echo "$ac_cv_host" >&6; }
6012 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6015 ac_save_IFS=$IFS; IFS='-'
6021 # Remember, the first character of IFS is used to create $*,
6022 # except with old shells:
6025 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6028 # Backslashify metacharacters that are still active within
6029 # double-quoted strings.
6030 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6032 # Same as above, but do not quote variable references.
6033 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6035 # Sed substitution to delay expansion of an escaped shell variable in a
6036 # double_quote_subst'ed string.
6037 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6039 # Sed substitution to delay expansion of an escaped single quote.
6040 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6042 # Sed substitution to avoid accidental globbing in evaled expressions
6043 no_glob_subst='s/\*/\\\*/g'
6045 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6046 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6047 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6050 $as_echo_n "checking how to print strings... " >&6; }
6051 # Test print first, because it will be a builtin if present.
6052 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6053 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6055 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6058 # Use this function as a fallback that always works.
6059 func_fallback_echo ()
6061 eval 'cat <<_LTECHO_EOF
6065 ECHO='func_fallback_echo'
6068 # func_echo_all arg...
6069 # Invoke $ECHO with all args, space-separated.
6076 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6077 $as_echo "printf" >&6; } ;;
6078 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6079 $as_echo "print -r" >&6; } ;;
6080 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6081 $as_echo "cat" >&6; } ;;
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6098 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6099 if ${ac_cv_path_SED+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6103 for ac_i in 1 2 3 4 5 6 7; do
6104 ac_script="$ac_script$as_nl$ac_script"
6106 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6107 { ac_script=; unset ac_script;}
6108 if test -z "$SED"; then
6109 ac_path_SED_found=false
6110 # Loop through the user's path and test for each of PROGNAME-LIST
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir=.
6116 for ac_prog in sed gsed; do
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6119 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6120 # Check for GNU ac_path_SED and select it if it is found.
6121 # Check for GNU $ac_path_SED
6122 case `"$ac_path_SED" --version 2>&1` in
6124 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6127 $as_echo_n 0123456789 >"conftest.in"
6130 cat "conftest.in" "conftest.in" >"conftest.tmp"
6131 mv "conftest.tmp" "conftest.in"
6132 cp "conftest.in" "conftest.nl"
6133 $as_echo '' >> "conftest.nl"
6134 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136 as_fn_arith $ac_count + 1 && ac_count=$as_val
6137 if test $ac_count -gt ${ac_path_SED_max-0}; then
6138 # Best one so far, save it but keep looking for a better one
6139 ac_cv_path_SED="$ac_path_SED"
6140 ac_path_SED_max=$ac_count
6142 # 10*(2^10) chars as input seems more than enough
6143 test $ac_count -gt 10 && break
6145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6148 $ac_path_SED_found && break 3
6153 if test -z "$ac_cv_path_SED"; then
6154 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6162 $as_echo "$ac_cv_path_SED" >&6; }
6163 SED="$ac_cv_path_SED"
6166 test -z "$SED" && SED=sed
6167 Xsed="$SED -e 1s/^X//"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6180 $as_echo_n "checking for fgrep... " >&6; }
6181 if ${ac_cv_path_FGREP+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6185 then ac_cv_path_FGREP="$GREP -F"
6187 if test -z "$FGREP"; then
6188 ac_path_FGREP_found=false
6189 # Loop through the user's path and test for each of PROGNAME-LIST
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6194 test -z "$as_dir" && as_dir=.
6195 for ac_prog in fgrep; do
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6198 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6199 # Check for GNU ac_path_FGREP and select it if it is found.
6200 # Check for GNU $ac_path_FGREP
6201 case `"$ac_path_FGREP" --version 2>&1` in
6203 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6206 $as_echo_n 0123456789 >"conftest.in"
6209 cat "conftest.in" "conftest.in" >"conftest.tmp"
6210 mv "conftest.tmp" "conftest.in"
6211 cp "conftest.in" "conftest.nl"
6212 $as_echo 'FGREP' >> "conftest.nl"
6213 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6215 as_fn_arith $ac_count + 1 && ac_count=$as_val
6216 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6217 # Best one so far, save it but keep looking for a better one
6218 ac_cv_path_FGREP="$ac_path_FGREP"
6219 ac_path_FGREP_max=$ac_count
6221 # 10*(2^10) chars as input seems more than enough
6222 test $ac_count -gt 10 && break
6224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6227 $ac_path_FGREP_found && break 3
6232 if test -z "$ac_cv_path_FGREP"; then
6233 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6236 ac_cv_path_FGREP=$FGREP
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6242 $as_echo "$ac_cv_path_FGREP" >&6; }
6243 FGREP="$ac_cv_path_FGREP"
6246 test -z "$GREP" && GREP=grep
6266 # Check whether --with-gnu-ld was given.
6267 if test "${with_gnu_ld+set}" = set; then :
6268 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6274 if test "$GCC" = yes; then
6275 # Check if gcc -print-prog-name=ld gives a path.
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6277 $as_echo_n "checking for ld used by $CC... " >&6; }
6280 # gcc leaves a trailing carriage return which upsets mingw
6281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6286 # Accept absolute paths.
6288 re_direlt='/[^/][^/]*/\.\./'
6289 # Canonicalize the pathname of ld
6290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6294 test -z "$LD" && LD="$ac_prog"
6297 # If it fails, then pretend we aren't using GCC.
6301 # If it is relative, then search for the first ld in PATH.
6305 elif test "$with_gnu_ld" = yes; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6307 $as_echo_n "checking for GNU ld... " >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6310 $as_echo_n "checking for non-GNU ld... " >&6; }
6312 if ${lt_cv_path_LD+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 if test -z "$LD"; then
6316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317 for ac_dir in $PATH; do
6319 test -z "$ac_dir" && ac_dir=.
6320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6321 lt_cv_path_LD="$ac_dir/$ac_prog"
6322 # Check to see if the program is GNU ld. I'd rather use --version,
6323 # but apparently some variants of GNU ld only accept -v.
6324 # Break only if it was the GNU/non-GNU ld that we prefer.
6325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6326 *GNU* | *'with BFD'*)
6327 test "$with_gnu_ld" != no && break
6330 test "$with_gnu_ld" != yes && break
6337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6342 if test -n "$LD"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6344 $as_echo "$LD" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6349 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6352 if ${lt_cv_prog_gnu_ld+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6356 case `$LD -v 2>&1 </dev/null` in
6357 *GNU* | *'with BFD'*)
6358 lt_cv_prog_gnu_ld=yes
6361 lt_cv_prog_gnu_ld=no
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6366 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6367 with_gnu_ld=$lt_cv_prog_gnu_ld
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6378 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6379 if ${lt_cv_path_NM+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 if test -n "$NM"; then
6383 # Let the user override the test.
6386 lt_nm_to_check="${ac_tool_prefix}nm"
6387 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6388 lt_nm_to_check="$lt_nm_to_check nm"
6390 for lt_tmp_nm in $lt_nm_to_check; do
6391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6392 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6394 test -z "$ac_dir" && ac_dir=.
6395 tmp_nm="$ac_dir/$lt_tmp_nm"
6396 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6397 # Check to see if the nm accepts a BSD-compat flag.
6398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6399 # nm: unknown option "B" ignored
6400 # Tru64's nm complains that /dev/null is an invalid object file
6401 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6402 */dev/null* | *'Invalid file or object type'*)
6403 lt_cv_path_NM="$tmp_nm -B"
6407 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6409 lt_cv_path_NM="$tmp_nm -p"
6413 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6414 continue # so that we can try to find one that supports BSD flags
6423 : ${lt_cv_path_NM=no}
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6427 $as_echo "$lt_cv_path_NM" >&6; }
6428 if test "$lt_cv_path_NM" != "no"; then
6431 # Didn't find any BSD compatible name lister, look for dumpbin.
6432 if test -n "$DUMPBIN"; then :
6433 # Let the user override the test.
6435 if test -n "$ac_tool_prefix"; then
6436 for ac_prog in dumpbin "link -dump"
6438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_DUMPBIN+:} false; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$DUMPBIN"; then
6446 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 DUMPBIN=$ac_cv_prog_DUMPBIN
6466 if test -n "$DUMPBIN"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6468 $as_echo "$DUMPBIN" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6475 test -n "$DUMPBIN" && break
6478 if test -z "$DUMPBIN"; then
6479 ac_ct_DUMPBIN=$DUMPBIN
6480 for ac_prog in dumpbin "link -dump"
6482 # Extract the first word of "$ac_prog", so it can be a program name with args.
6483 set dummy $ac_prog; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6487 $as_echo_n "(cached) " >&6
6489 if test -n "$ac_ct_DUMPBIN"; then
6490 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6510 if test -n "$ac_ct_DUMPBIN"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6512 $as_echo "$ac_ct_DUMPBIN" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6519 test -n "$ac_ct_DUMPBIN" && break
6522 if test "x$ac_ct_DUMPBIN" = x; then
6525 case $cross_compiling:$ac_tool_warned in
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6531 DUMPBIN=$ac_ct_DUMPBIN
6535 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6537 DUMPBIN="$DUMPBIN -symbols"
6545 if test "$DUMPBIN" != ":"; then
6549 test -z "$NM" && NM=nm
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6557 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6558 if ${lt_cv_nm_interface+:} false; then :
6559 $as_echo_n "(cached) " >&6
6561 lt_cv_nm_interface="BSD nm"
6562 echo "int some_variable = 0;" > conftest.$ac_ext
6563 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6564 (eval "$ac_compile" 2>conftest.err)
6565 cat conftest.err >&5
6566 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6567 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6568 cat conftest.err >&5
6569 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6570 cat conftest.out >&5
6571 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6572 lt_cv_nm_interface="MS dumpbin"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6577 $as_echo "$lt_cv_nm_interface" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6580 $as_echo_n "checking whether ln -s works... " >&6; }
6582 if test "$LN_S" = "ln -s"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 $as_echo "yes" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6587 $as_echo "no, using $LN_S" >&6; }
6590 # find the maximum length of command line arguments
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6592 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6593 if ${lt_cv_sys_max_cmd_len+:} false; then :
6594 $as_echo_n "(cached) " >&6
6601 # On DJGPP, this test can blow up pretty badly due to problems in libc
6602 # (any single argument exceeding 2000 bytes causes a buffer overrun
6603 # during glob expansion). Even if it were fixed, the result of this
6604 # check would be larger than it should be.
6605 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6609 # Under GNU Hurd, this test is not required because there is
6610 # no limit to the length of command line arguments.
6611 # Libtool will interpret -1 as no limit whatsoever
6612 lt_cv_sys_max_cmd_len=-1;
6615 cygwin* | mingw* | cegcc*)
6616 # On Win9x/ME, this test blows up -- it succeeds, but takes
6617 # about 5 minutes as the teststring grows exponentially.
6618 # Worse, since 9x/ME are not pre-emptively multitasking,
6619 # you end up with a "frozen" computer, even though with patience
6620 # the test eventually succeeds (with a max line length of 256k).
6621 # Instead, let's just punt: use the minimum linelength reported by
6622 # all of the supported platforms: 8192 (on NT/2K/XP).
6623 lt_cv_sys_max_cmd_len=8192;
6627 # On MiNT this can take a long time and run out of memory.
6628 lt_cv_sys_max_cmd_len=8192;
6632 # On AmigaOS with pdksh, this test takes hours, literally.
6633 # So we just punt and use a minimum line length of 8192.
6634 lt_cv_sys_max_cmd_len=8192;
6637 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6638 # This has been around since 386BSD, at least. Likely further.
6639 if test -x /sbin/sysctl; then
6640 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6641 elif test -x /usr/sbin/sysctl; then
6642 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6644 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6646 # And add a safety zone
6647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6652 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6653 lt_cv_sys_max_cmd_len=196608
6657 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6658 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6659 # nice to cause kernel panics so lets avoid the loop below.
6660 # First set a reasonable default.
6661 lt_cv_sys_max_cmd_len=16384
6663 if test -x /sbin/sysconfig; then
6664 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6665 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6670 lt_cv_sys_max_cmd_len=102400
6672 sysv5* | sco5v6* | sysv4.2uw2*)
6673 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6674 if test -n "$kargmax"; then
6675 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6677 lt_cv_sys_max_cmd_len=32768
6681 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6682 if test -n "$lt_cv_sys_max_cmd_len"; then
6683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6686 # Make teststring a little bigger before we do anything with it.
6687 # a 1K string should be a reasonable start.
6688 for i in 1 2 3 4 5 6 7 8 ; do
6689 teststring=$teststring$teststring
6691 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6692 # If test is not a shell built-in, we'll probably end up computing a
6693 # maximum length that is only half of the actual maximum length, but
6695 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6696 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6697 test $i != 17 # 1/2 MB should be enough
6700 teststring=$teststring$teststring
6702 # Only check the string length outside the loop.
6703 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6705 # Add a significant safety factor because C++ compilers can tack on
6706 # massive amounts of additional arguments before passing them to the
6707 # linker. It appears as though 1/2 is a usable value.
6708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6715 if test -n $lt_cv_sys_max_cmd_len ; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6717 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6720 $as_echo "none" >&6; }
6722 max_cmd_len=$lt_cv_sys_max_cmd_len
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6734 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6735 # Try some XSI features
6738 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6740 && eval 'test $(( 1 + 1 )) -eq 2 \
6741 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6744 $as_echo "$xsi_shell" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6748 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6750 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6752 && lt_shell_append=yes
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6754 $as_echo "$lt_shell_append" >&6; }
6757 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6767 # test EBCDIC or ASCII
6768 case `echo X|tr X '\101'` in
6769 A) # ASCII based system
6770 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6771 lt_SP2NL='tr \040 \012'
6772 lt_NL2SP='tr \015\012 \040\040'
6774 *) # EBCDIC based system
6775 lt_SP2NL='tr \100 \n'
6776 lt_NL2SP='tr \r\n \100\100'
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6789 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6790 if ${lt_cv_to_host_file_cmd+:} false; then :
6791 $as_echo_n "(cached) " >&6
6796 *-*-mingw* ) # actually msys
6797 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6800 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6802 * ) # otherwise, assume *nix
6803 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6809 *-*-mingw* ) # actually msys
6810 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6813 lt_cv_to_host_file_cmd=func_convert_file_noop
6815 * ) # otherwise, assume *nix
6816 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6820 * ) # unhandled hosts (and "normal" native builds)
6821 lt_cv_to_host_file_cmd=func_convert_file_noop
6827 to_host_file_cmd=$lt_cv_to_host_file_cmd
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6829 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6836 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6837 if ${lt_cv_to_tool_file_cmd+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 #assume ordinary cross tools, or native build.
6841 lt_cv_to_tool_file_cmd=func_convert_file_noop
6845 *-*-mingw* ) # actually msys
6846 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6854 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6856 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6863 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6864 if ${lt_cv_ld_reload_flag+:} false; then :
6865 $as_echo_n "(cached) " >&6
6867 lt_cv_ld_reload_flag='-r'
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6871 reload_flag=$lt_cv_ld_reload_flag
6872 case $reload_flag in
6874 *) reload_flag=" $reload_flag" ;;
6876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6878 cygwin* | mingw* | pw32* | cegcc*)
6879 if test "$GCC" != yes; then
6884 if test "$GCC" = yes; then
6885 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6887 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_OBJDUMP+:} false; then :
6906 $as_echo_n "(cached) " >&6
6908 if test -n "$OBJDUMP"; then
6909 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 OBJDUMP=$ac_cv_prog_OBJDUMP
6929 if test -n "$OBJDUMP"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6931 $as_echo "$OBJDUMP" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6939 if test -z "$ac_cv_prog_OBJDUMP"; then
6940 ac_ct_OBJDUMP=$OBJDUMP
6941 # Extract the first word of "objdump", so it can be a program name with args.
6942 set dummy objdump; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6946 $as_echo_n "(cached) " >&6
6948 if test -n "$ac_ct_OBJDUMP"; then
6949 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6969 if test -n "$ac_ct_OBJDUMP"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6971 $as_echo "$ac_ct_OBJDUMP" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6977 if test "x$ac_ct_OBJDUMP" = x; then
6980 case $cross_compiling:$ac_tool_warned in
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6986 OBJDUMP=$ac_ct_OBJDUMP
6989 OBJDUMP="$ac_cv_prog_OBJDUMP"
6992 test -z "$OBJDUMP" && OBJDUMP=objdump
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7004 if ${lt_cv_deplibs_check_method+:} false; then :
7005 $as_echo_n "(cached) " >&6
7007 lt_cv_file_magic_cmd='$MAGIC_CMD'
7008 lt_cv_file_magic_test_file=
7009 lt_cv_deplibs_check_method='unknown'
7010 # Need to set the preceding variable on all platforms that support
7011 # interlibrary dependencies.
7012 # 'none' -- dependencies not supported.
7013 # `unknown' -- same as none, but documents that we really don't know.
7014 # 'pass_all' -- all dependencies passed with no checks.
7015 # 'test_compile' -- check by making test program.
7016 # 'file_magic [[regex]]' -- check by looking for files in library path
7017 # which responds to the $file_magic_cmd with a given extended regex.
7018 # If you have `file' or equivalent on your system and you're not sure
7019 # whether `pass_all' will *always* work, you probably want this one.
7023 lt_cv_deplibs_check_method=pass_all
7027 lt_cv_deplibs_check_method=pass_all
7031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7032 lt_cv_file_magic_cmd='/usr/bin/file -L'
7033 lt_cv_file_magic_test_file=/shlib/libc.so
7037 # func_win32_libid is a shell function defined in ltmain.sh
7038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039 lt_cv_file_magic_cmd='func_win32_libid'
7043 # Base MSYS/MinGW do not provide the 'file' command needed by
7044 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7045 # unless we find 'file', for example because we are cross-compiling.
7046 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7047 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049 lt_cv_file_magic_cmd='func_win32_libid'
7051 # Keep this pattern in sync with the one in func_win32_libid.
7052 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7053 lt_cv_file_magic_cmd='$OBJDUMP -f'
7058 # use the weaker test based on 'objdump'. See mingw*.
7059 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7060 lt_cv_file_magic_cmd='$OBJDUMP -f'
7063 darwin* | rhapsody*)
7064 lt_cv_deplibs_check_method=pass_all
7067 freebsd* | dragonfly*)
7068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7071 # Not sure whether the presence of OpenBSD here was a mistake.
7072 # Let's accept both of them until this is cleared up.
7073 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7074 lt_cv_file_magic_cmd=/usr/bin/file
7075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7079 lt_cv_deplibs_check_method=pass_all
7084 lt_cv_deplibs_check_method=pass_all
7088 lt_cv_deplibs_check_method=pass_all
7091 hpux10.20* | hpux11*)
7092 lt_cv_file_magic_cmd=/usr/bin/file
7095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7096 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7100 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7103 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7110 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7114 irix5* | irix6* | nonstopux*)
7116 *-32|*"-32 ") libmagic=32-bit;;
7117 *-n32|*"-n32 ") libmagic=N32;;
7118 *-64|*"-64 ") libmagic=64-bit;;
7119 *) libmagic=never-match;;
7121 lt_cv_deplibs_check_method=pass_all
7124 # This must be Linux ELF.
7125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7126 lt_cv_deplibs_check_method=pass_all
7130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7139 lt_cv_file_magic_cmd=/usr/bin/file
7140 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7144 lt_cv_deplibs_check_method=pass_all
7148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7155 osf3* | osf4* | osf5*)
7156 lt_cv_deplibs_check_method=pass_all
7160 lt_cv_deplibs_check_method=pass_all
7164 lt_cv_deplibs_check_method=pass_all
7167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7168 lt_cv_deplibs_check_method=pass_all
7172 case $host_vendor in
7174 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]'
7175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7178 lt_cv_deplibs_check_method=pass_all
7181 lt_cv_file_magic_cmd='/bin/file'
7182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7185 lt_cv_file_magic_cmd='/bin/file'
7186 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7187 lt_cv_file_magic_test_file=/lib/libc.so
7190 lt_cv_deplibs_check_method=pass_all
7193 lt_cv_deplibs_check_method=pass_all
7199 lt_cv_deplibs_check_method=pass_all
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7205 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7209 if test "$build" = "$host"; then
7212 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7215 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7221 file_magic_cmd=$lt_cv_file_magic_cmd
7222 deplibs_check_method=$lt_cv_deplibs_check_method
7223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_DLLTOOL+:} false; then :
7252 $as_echo_n "(cached) " >&6
7254 if test -n "$DLLTOOL"; then
7255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 DLLTOOL=$ac_cv_prog_DLLTOOL
7275 if test -n "$DLLTOOL"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7277 $as_echo "$DLLTOOL" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7285 if test -z "$ac_cv_prog_DLLTOOL"; then
7286 ac_ct_DLLTOOL=$DLLTOOL
7287 # Extract the first word of "dlltool", so it can be a program name with args.
7288 set dummy dlltool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$ac_ct_DLLTOOL"; then
7295 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7315 if test -n "$ac_ct_DLLTOOL"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7317 $as_echo "$ac_ct_DLLTOOL" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7323 if test "x$ac_ct_DLLTOOL" = x; then
7326 case $cross_compiling:$ac_tool_warned in
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7332 DLLTOOL=$ac_ct_DLLTOOL
7335 DLLTOOL="$ac_cv_prog_DLLTOOL"
7338 test -z "$DLLTOOL" && DLLTOOL=dlltool
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7350 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7351 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 lt_cv_sharedlib_from_linklib_cmd='unknown'
7357 cygwin* | mingw* | pw32* | cegcc*)
7358 # two different shell functions defined in ltmain.sh
7359 # decide which to use based on capabilities of $DLLTOOL
7360 case `$DLLTOOL --help 2>&1` in
7361 *--identify-strict*)
7362 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7365 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7370 # fallback: assume linklib IS sharedlib
7371 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7377 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7378 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7379 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7387 if test -n "$ac_tool_prefix"; then
7390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_AR+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 if test -n "$AR"; then
7398 ac_cv_prog_AR="$AR" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 if test -n "$AR"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7420 $as_echo "$AR" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7427 test -n "$AR" && break
7430 if test -z "$AR"; then
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 if test -n "$ac_ct_AR"; then
7442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_ac_ct_AR="$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7462 if test -n "$ac_ct_AR"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7464 $as_echo "$ac_ct_AR" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7471 test -n "$ac_ct_AR" && break
7474 if test "x$ac_ct_AR" = x; then
7477 case $cross_compiling:$ac_tool_warned in
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481 ac_tool_warned=yes ;;
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7501 $as_echo_n "checking for archiver @FILE support... " >&6; }
7502 if ${lt_cv_ar_at_file+:} false; then :
7503 $as_echo_n "(cached) " >&6
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518 echo conftest.$ac_objext > conftest.lst
7519 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7521 (eval $lt_ar_try) 2>&5
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }
7525 if test "$ac_status" -eq 0; then
7526 # Ensure the archiver fails upon bogus file names.
7527 rm -f conftest.$ac_objext libconftest.a
7528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7529 (eval $lt_ar_try) 2>&5
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }
7533 if test "$ac_status" -ne 0; then
7537 rm -f conftest.* libconftest.a
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7544 $as_echo "$lt_cv_ar_at_file" >&6; }
7546 if test "x$lt_cv_ar_at_file" = xno; then
7549 archiver_list_spec=$lt_cv_ar_at_file
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}strip; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_STRIP+:} false; then :
7564 $as_echo_n "(cached) " >&6
7566 if test -n "$STRIP"; then
7567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 STRIP=$ac_cv_prog_STRIP
7587 if test -n "$STRIP"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7589 $as_echo "$STRIP" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7597 if test -z "$ac_cv_prog_STRIP"; then
7599 # Extract the first word of "strip", so it can be a program name with args.
7600 set dummy strip; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7604 $as_echo_n "(cached) " >&6
7606 if test -n "$ac_ct_STRIP"; then
7607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_ac_ct_STRIP="strip"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7627 if test -n "$ac_ct_STRIP"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7629 $as_echo "$ac_ct_STRIP" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7635 if test "x$ac_ct_STRIP" = x; then
7638 case $cross_compiling:$ac_tool_warned in
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7647 STRIP="$ac_cv_prog_STRIP"
7650 test -z "$STRIP" && STRIP=:
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_RANLIB+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$RANLIB"; then
7666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 RANLIB=$ac_cv_prog_RANLIB
7686 if test -n "$RANLIB"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7688 $as_echo "$RANLIB" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_RANLIB"; then
7697 ac_ct_RANLIB=$RANLIB
7698 # Extract the first word of "ranlib", so it can be a program name with args.
7699 set dummy ranlib; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 if test -n "$ac_ct_RANLIB"; then
7706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_ac_ct_RANLIB="ranlib"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7726 if test -n "$ac_ct_RANLIB"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7728 $as_echo "$ac_ct_RANLIB" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_RANLIB" = x; then
7737 case $cross_compiling:$ac_tool_warned in
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7743 RANLIB=$ac_ct_RANLIB
7746 RANLIB="$ac_cv_prog_RANLIB"
7749 test -z "$RANLIB" && RANLIB=:
7756 # Determine commands to create old-style static archives.
7757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7758 old_postinstall_cmds='chmod 644 $oldlib'
7759 old_postuninstall_cmds=
7761 if test -n "$RANLIB"; then
7764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7770 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7775 lock_old_archive_extraction=yes ;;
7777 lock_old_archive_extraction=no ;;
7818 # If no C compiler was specified, use CC.
7821 # If no C compiler flags were specified, use CFLAGS.
7822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7824 # Allow CC to be a program name with arguments.
7828 # Check for command to grab the raw symbol name followed by C symbol from nm.
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7830 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7831 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7832 $as_echo_n "(cached) " >&6
7835 # These are sane defaults that work on at least a few old systems.
7836 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7838 # Character class describing NM global symbol codes.
7839 symcode='[BCDEGRST]'
7841 # Regexp to match symbols that can be accessed directly from C.
7842 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7844 # Define system-specific variables.
7849 cygwin* | mingw* | pw32* | cegcc*)
7850 symcode='[ABCDGISTW]'
7853 if test "$host_cpu" = ia64; then
7854 symcode='[ABCDEGRST]'
7858 symcode='[BCDEGRST]'
7861 symcode='[BCDEGQRST]'
7872 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7880 # If we're using GNU nm, then use its standard symbol codes.
7881 case `$NM -V 2>&1` in
7882 *GNU* | *'with BFD'*)
7883 symcode='[ABCDGIRSTW]' ;;
7886 # Transform an extracted symbol line into a proper C declaration.
7887 # Some systems (esp. on ia64) link data and code symbols differently,
7888 # so use this general approach.
7889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7891 # Transform an extracted symbol line into symbol name and symbol address
7892 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7893 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'"
7895 # Handle CRLF in mingw tool chain
7899 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7903 # Try without a prefix underscore, then with it.
7904 for ac_symprfx in "" "_"; do
7906 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7907 symxfrm="\\1 $ac_symprfx\\2 \\2"
7909 # Write the raw and C identifiers.
7910 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7911 # Fake it for dumpbin and say T for any non-static function
7912 # and D for any global variable.
7913 # Also find C++ and __fastcall symbols from MSVC++,
7914 # which start with @ or ?.
7915 lt_cv_sys_global_symbol_pipe="$AWK '"\
7916 " {last_section=section; section=\$ 3};"\
7917 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7918 " \$ 0!~/External *\|/{next};"\
7919 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7920 " {if(hide[section]) next};"\
7921 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7922 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7923 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7924 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7925 " ' prfx=^$ac_symprfx"
7927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7929 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7931 # Check to see that the pipe works correctly.
7935 cat > conftest.$ac_ext <<_LT_EOF
7940 void nm_test_func(void);
7941 void nm_test_func(void){}
7945 int main(){nm_test_var='a';nm_test_func();return(0);}
7948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7949 (eval $ac_compile) 2>&5
7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952 test $ac_status = 0; }; then
7953 # Now try to grab the symbols.
7955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7956 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; } && test -s "$nlist"; then
7960 # Try sorting and uniquifying the output.
7961 if sort "$nlist" | uniq > "$nlist"T; then
7962 mv -f "$nlist"T "$nlist"
7967 # Make sure that we snagged all the symbols we need.
7968 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7969 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7970 cat <<_LT_EOF > conftest.$ac_ext
7971 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7972 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7973 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7974 relocations are performed -- see ld's documentation on pseudo-relocs. */
7975 # define LT_DLSYM_CONST
7976 #elif defined(__osf__)
7977 /* This system does not cope well with relocations in const data. */
7978 # define LT_DLSYM_CONST
7980 # define LT_DLSYM_CONST const
7988 # Now generate the symbol file.
7989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7991 cat <<_LT_EOF >> conftest.$ac_ext
7993 /* The mapping between symbol names and symbols. */
7994 LT_DLSYM_CONST struct {
7998 lt__PROGRAM__LTX_preloaded_symbols[] =
8000 { "@PROGRAM@", (void *) 0 },
8002 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8003 cat <<\_LT_EOF >> conftest.$ac_ext
8007 /* This works around a problem in FreeBSD linker */
8008 #ifdef FREEBSD_WORKAROUND
8009 static const void *lt_preloaded_setup() {
8010 return lt__PROGRAM__LTX_preloaded_symbols;
8018 # Now try linking the two files.
8019 mv conftest.$ac_objext conftstm.$ac_objext
8020 lt_globsym_save_LIBS=$LIBS
8021 lt_globsym_save_CFLAGS=$CFLAGS
8022 LIBS="conftstm.$ac_objext"
8023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8025 (eval $ac_link) 2>&5
8027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8028 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8031 LIBS=$lt_globsym_save_LIBS
8032 CFLAGS=$lt_globsym_save_CFLAGS
8034 echo "cannot find nm_test_func in $nlist" >&5
8037 echo "cannot find nm_test_var in $nlist" >&5
8040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8043 echo "$progname: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8046 rm -rf conftest* conftst*
8048 # Do not use the global_symbol_pipe unless it works.
8049 if test "$pipe_works" = yes; then
8052 lt_cv_sys_global_symbol_pipe=
8058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8059 lt_cv_sys_global_symbol_to_cdecl=
8061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8063 $as_echo "failed" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8066 $as_echo "ok" >&6; }
8069 # Response file support.
8070 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8071 nm_file_list_spec='@'
8072 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8073 nm_file_list_spec='@'
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8103 $as_echo_n "checking for sysroot... " >&6; }
8105 # Check whether --with-sysroot was given.
8106 if test "${with_sysroot+set}" = set; then :
8107 withval=$with_sysroot;
8114 case ${with_sysroot} in #(
8116 if test "$GCC" = yes; then
8117 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8121 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8127 $as_echo "${with_sysroot}" >&6; }
8128 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8133 $as_echo "${lt_sysroot:-no}" >&6; }
8139 # Check whether --enable-libtool-lock was given.
8140 if test "${enable_libtool_lock+set}" = set; then :
8141 enableval=$enable_libtool_lock;
8144 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8146 # Some flags need to be propagated to the compiler or linker for good
8150 # Find out which ABI we are using.
8151 echo 'int i;' > conftest.$ac_ext
8152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8153 (eval $ac_compile) 2>&5
8155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8156 test $ac_status = 0; }; then
8157 case `/usr/bin/file conftest.$ac_objext` in
8169 # Find out which ABI we are using.
8170 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8172 (eval $ac_compile) 2>&5
8174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8175 test $ac_status = 0; }; then
8176 if test "$lt_cv_prog_gnu_ld" = yes; then
8177 case `/usr/bin/file conftest.$ac_objext` in
8179 LD="${LD-ld} -melf32bsmip"
8182 LD="${LD-ld} -melf32bmipn32"
8185 LD="${LD-ld} -melf64bmip"
8189 case `/usr/bin/file conftest.$ac_objext` in
8205 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8206 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8207 # Find out which ABI we are using.
8208 echo 'int i;' > conftest.$ac_ext
8209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8210 (eval $ac_compile) 2>&5
8212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8213 test $ac_status = 0; }; then
8214 case `/usr/bin/file conftest.o` in
8217 x86_64-*kfreebsd*-gnu)
8218 LD="${LD-ld} -m elf_i386_fbsd"
8221 LD="${LD-ld} -m elf_i386"
8223 ppc64-*linux*|powerpc64-*linux*)
8224 LD="${LD-ld} -m elf32ppclinux"
8227 LD="${LD-ld} -m elf_s390"
8230 LD="${LD-ld} -m elf32_sparc"
8236 x86_64-*kfreebsd*-gnu)
8237 LD="${LD-ld} -m elf_x86_64_fbsd"
8240 LD="${LD-ld} -m elf_x86_64"
8242 ppc*-*linux*|powerpc*-*linux*)
8243 LD="${LD-ld} -m elf64ppc"
8245 s390*-*linux*|s390*-*tpf*)
8246 LD="${LD-ld} -m elf64_s390"
8249 LD="${LD-ld} -m elf64_sparc"
8259 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8260 SAVE_CFLAGS="$CFLAGS"
8261 CFLAGS="$CFLAGS -belf"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8263 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8264 if ${lt_cv_cc_needs_belf+:} false; then :
8265 $as_echo_n "(cached) " >&6
8268 ac_cpp='$CPP $CPPFLAGS'
8269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8284 if ac_fn_c_try_link "$LINENO"; then :
8285 lt_cv_cc_needs_belf=yes
8287 lt_cv_cc_needs_belf=no
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8292 ac_cpp='$CPP $CPPFLAGS'
8293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8299 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8300 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8301 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8302 CFLAGS="$SAVE_CFLAGS"
8306 # Find out which ABI we are using.
8307 echo 'int i;' > conftest.$ac_ext
8308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8309 (eval $ac_compile) 2>&5
8311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312 test $ac_status = 0; }; then
8313 case `/usr/bin/file conftest.o` in
8315 case $lt_cv_prog_gnu_ld in
8316 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8318 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8330 need_locks="$enable_libtool_lock"
8332 if test -n "$ac_tool_prefix"; then
8333 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}mt; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -n "$MANIFEST_TOOL"; then
8341 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8361 if test -n "$MANIFEST_TOOL"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8363 $as_echo "$MANIFEST_TOOL" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8372 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8373 # Extract the first word of "mt", so it can be a program name with args.
8374 set dummy mt; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8378 $as_echo_n "(cached) " >&6
8380 if test -n "$ac_ct_MANIFEST_TOOL"; then
8381 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8401 if test -n "$ac_ct_MANIFEST_TOOL"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8403 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8409 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8412 case $cross_compiling:$ac_tool_warned in
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8418 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8421 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8424 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8426 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8427 if ${lt_cv_path_mainfest_tool+:} false; then :
8428 $as_echo_n "(cached) " >&6
8430 lt_cv_path_mainfest_tool=no
8431 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8432 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8433 cat conftest.err >&5
8434 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8435 lt_cv_path_mainfest_tool=yes
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8440 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8441 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8451 rhapsody* | darwin*)
8452 if test -n "$ac_tool_prefix"; then
8453 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8454 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8458 $as_echo_n "(cached) " >&6
8460 if test -n "$DSYMUTIL"; then
8461 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8481 if test -n "$DSYMUTIL"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8483 $as_echo "$DSYMUTIL" >&6; }
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8491 if test -z "$ac_cv_prog_DSYMUTIL"; then
8492 ac_ct_DSYMUTIL=$DSYMUTIL
8493 # Extract the first word of "dsymutil", so it can be a program name with args.
8494 set dummy dsymutil; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8498 $as_echo_n "(cached) " >&6
8500 if test -n "$ac_ct_DSYMUTIL"; then
8501 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8521 if test -n "$ac_ct_DSYMUTIL"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8523 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8529 if test "x$ac_ct_DSYMUTIL" = x; then
8532 case $cross_compiling:$ac_tool_warned in
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8536 ac_tool_warned=yes ;;
8538 DSYMUTIL=$ac_ct_DSYMUTIL
8541 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8544 if test -n "$ac_tool_prefix"; then
8545 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8546 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if ${ac_cv_prog_NMEDIT+:} false; then :
8550 $as_echo_n "(cached) " >&6
8552 if test -n "$NMEDIT"; then
8553 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 NMEDIT=$ac_cv_prog_NMEDIT
8573 if test -n "$NMEDIT"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8575 $as_echo "$NMEDIT" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8583 if test -z "$ac_cv_prog_NMEDIT"; then
8584 ac_ct_NMEDIT=$NMEDIT
8585 # Extract the first word of "nmedit", so it can be a program name with args.
8586 set dummy nmedit; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8590 $as_echo_n "(cached) " >&6
8592 if test -n "$ac_ct_NMEDIT"; then
8593 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8613 if test -n "$ac_ct_NMEDIT"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8615 $as_echo "$ac_ct_NMEDIT" >&6; }
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8621 if test "x$ac_ct_NMEDIT" = x; then
8624 case $cross_compiling:$ac_tool_warned in
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8628 ac_tool_warned=yes ;;
8630 NMEDIT=$ac_ct_NMEDIT
8633 NMEDIT="$ac_cv_prog_NMEDIT"
8636 if test -n "$ac_tool_prefix"; then
8637 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8638 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_prog_LIPO+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 if test -n "$LIPO"; then
8645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 LIPO=$ac_cv_prog_LIPO
8665 if test -n "$LIPO"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8667 $as_echo "$LIPO" >&6; }
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8675 if test -z "$ac_cv_prog_LIPO"; then
8677 # Extract the first word of "lipo", so it can be a program name with args.
8678 set dummy lipo; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8682 $as_echo_n "(cached) " >&6
8684 if test -n "$ac_ct_LIPO"; then
8685 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_ac_ct_LIPO="lipo"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8705 if test -n "$ac_ct_LIPO"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8707 $as_echo "$ac_ct_LIPO" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8713 if test "x$ac_ct_LIPO" = x; then
8716 case $cross_compiling:$ac_tool_warned in
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720 ac_tool_warned=yes ;;
8725 LIPO="$ac_cv_prog_LIPO"
8728 if test -n "$ac_tool_prefix"; then
8729 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}otool; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_OTOOL+:} false; then :
8734 $as_echo_n "(cached) " >&6
8736 if test -n "$OTOOL"; then
8737 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 OTOOL=$ac_cv_prog_OTOOL
8757 if test -n "$OTOOL"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8759 $as_echo "$OTOOL" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8767 if test -z "$ac_cv_prog_OTOOL"; then
8769 # Extract the first word of "otool", so it can be a program name with args.
8770 set dummy otool; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8774 $as_echo_n "(cached) " >&6
8776 if test -n "$ac_ct_OTOOL"; then
8777 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786 ac_cv_prog_ac_ct_OTOOL="otool"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8797 if test -n "$ac_ct_OTOOL"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8799 $as_echo "$ac_ct_OTOOL" >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8805 if test "x$ac_ct_OTOOL" = x; then
8808 case $cross_compiling:$ac_tool_warned in
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8817 OTOOL="$ac_cv_prog_OTOOL"
8820 if test -n "$ac_tool_prefix"; then
8821 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8822 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if ${ac_cv_prog_OTOOL64+:} false; then :
8826 $as_echo_n "(cached) " >&6
8828 if test -n "$OTOOL64"; then
8829 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8838 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 OTOOL64=$ac_cv_prog_OTOOL64
8849 if test -n "$OTOOL64"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8851 $as_echo "$OTOOL64" >&6; }
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8859 if test -z "$ac_cv_prog_OTOOL64"; then
8860 ac_ct_OTOOL64=$OTOOL64
8861 # Extract the first word of "otool64", so it can be a program name with args.
8862 set dummy otool64; ac_word=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8866 $as_echo_n "(cached) " >&6
8868 if test -n "$ac_ct_OTOOL64"; then
8869 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_prog_ac_ct_OTOOL64="otool64"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8889 if test -n "$ac_ct_OTOOL64"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8891 $as_echo "$ac_ct_OTOOL64" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8897 if test "x$ac_ct_OTOOL64" = x; then
8900 case $cross_compiling:$ac_tool_warned in
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8904 ac_tool_warned=yes ;;
8906 OTOOL64=$ac_ct_OTOOL64
8909 OTOOL64="$ac_cv_prog_OTOOL64"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8939 $as_echo_n "checking for -single_module linker flag... " >&6; }
8940 if ${lt_cv_apple_cc_single_mod+:} false; then :
8941 $as_echo_n "(cached) " >&6
8943 lt_cv_apple_cc_single_mod=no
8944 if test -z "${LT_MULTI_MODULE}"; then
8945 # By default we will add the -single_module flag. You can override
8946 # by either setting the environment variable LT_MULTI_MODULE
8947 # non-empty at configure time, or by adding -multi_module to the
8949 rm -rf libconftest.dylib*
8950 echo "int foo(void){return 1;}" > conftest.c
8951 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8952 -dynamiclib -Wl,-single_module conftest.c" >&5
8953 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8954 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8956 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8957 lt_cv_apple_cc_single_mod=yes
8959 cat conftest.err >&5
8961 rm -rf libconftest.dylib*
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8966 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8968 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8969 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8970 $as_echo_n "(cached) " >&6
8972 lt_cv_ld_exported_symbols_list=no
8973 save_LDFLAGS=$LDFLAGS
8974 echo "_main" > conftest.sym
8975 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 lt_cv_ld_exported_symbols_list=yes
8990 lt_cv_ld_exported_symbols_list=no
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LDFLAGS="$save_LDFLAGS"
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8998 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9000 $as_echo_n "checking for -force_load linker flag... " >&6; }
9001 if ${lt_cv_ld_force_load+:} false; then :
9002 $as_echo_n "(cached) " >&6
9004 lt_cv_ld_force_load=no
9005 cat > conftest.c << _LT_EOF
9006 int forced_loaded() { return 2;}
9008 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9009 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9010 echo "$AR cru libconftest.a conftest.o" >&5
9011 $AR cru libconftest.a conftest.o 2>&5
9012 echo "$RANLIB libconftest.a" >&5
9013 $RANLIB libconftest.a 2>&5
9014 cat > conftest.c << _LT_EOF
9015 int main() { return 0;}
9017 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9018 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9020 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9021 lt_cv_ld_force_load=yes
9023 cat conftest.err >&5
9025 rm -f conftest.err libconftest.a conftest conftest.c
9026 rm -rf conftest.dSYM
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9030 $as_echo "$lt_cv_ld_force_load" >&6; }
9032 rhapsody* | darwin1.[012])
9033 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9036 darwin*) # darwin 5.x on
9037 # if running on 10.5 or later, the deployment target defaults
9038 # to the OS version, if on x86, and 10.4, the deployment
9039 # target defaults to 10.4. Don't you love it?
9040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9041 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9044 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9046 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9050 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9051 _lt_dar_single_mod='$single_module'
9053 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9054 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9058 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9059 _lt_dsymutil='~$DSYMUTIL $lib || :'
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9067 $as_echo_n "checking for ANSI C header files... " >&6; }
9068 if ${ac_cv_header_stdc+:} false; then :
9069 $as_echo_n "(cached) " >&6
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9086 if ac_fn_c_try_compile "$LINENO"; then :
9087 ac_cv_header_stdc=yes
9089 ac_cv_header_stdc=no
9091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 if test $ac_cv_header_stdc = yes; then
9094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101 $EGREP "memchr" >/dev/null 2>&1; then :
9104 ac_cv_header_stdc=no
9110 if test $ac_cv_header_stdc = yes; then
9111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9118 $EGREP "free" >/dev/null 2>&1; then :
9121 ac_cv_header_stdc=no
9127 if test $ac_cv_header_stdc = yes; then
9128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9129 if test "$cross_compiling" = yes; then :
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9136 #if ((' ' & 0x0FF) == 0x020)
9137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9140 # define ISLOWER(c) \
9141 (('a' <= (c) && (c) <= 'i') \
9142 || ('j' <= (c) && (c) <= 'r') \
9143 || ('s' <= (c) && (c) <= 'z'))
9144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9152 for (i = 0; i < 256; i++)
9153 if (XOR (islower (i), ISLOWER (i))
9154 || toupper (i) != TOUPPER (i))
9159 if ac_fn_c_try_run "$LINENO"; then :
9162 ac_cv_header_stdc=no
9164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9165 conftest.$ac_objext conftest.beam conftest.$ac_ext
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9171 $as_echo "$ac_cv_header_stdc" >&6; }
9172 if test $ac_cv_header_stdc = yes; then
9174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9179 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9180 inttypes.h stdint.h unistd.h
9182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9183 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9186 cat >>confdefs.h <<_ACEOF
9187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9195 for ac_header in dlfcn.h
9197 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9199 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9200 cat >>confdefs.h <<_ACEOF
9201 #define HAVE_DLFCN_H 1
9211 func_stripname_cnf ()
9214 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9215 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9217 } # func_stripname_cnf
9224 # Check whether --enable-shared was given.
9225 if test "${enable_shared+set}" = set; then :
9226 enableval=$enable_shared; p=${PACKAGE-default}
9228 yes) enable_shared=yes ;;
9229 no) enable_shared=no ;;
9232 # Look at the argument we got. We use all the common list separators.
9233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9234 for pkg in $enableval; do
9236 if test "X$pkg" = "X$p"; then
9253 # Check whether --enable-static was given.
9254 if test "${enable_static+set}" = set; then :
9255 enableval=$enable_static; p=${PACKAGE-default}
9257 yes) enable_static=yes ;;
9258 no) enable_static=no ;;
9261 # Look at the argument we got. We use all the common list separators.
9262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9263 for pkg in $enableval; do
9265 if test "X$pkg" = "X$p"; then
9294 # Check whether --with-pic was given.
9295 if test "${with_pic+set}" = set; then :
9296 withval=$with_pic; pic_mode="$withval"
9302 test -z "$pic_mode" && pic_mode=default
9310 # Check whether --enable-fast-install was given.
9311 if test "${enable_fast_install+set}" = set; then :
9312 enableval=$enable_fast_install; p=${PACKAGE-default}
9314 yes) enable_fast_install=yes ;;
9315 no) enable_fast_install=no ;;
9317 enable_fast_install=no
9318 # Look at the argument we got. We use all the common list separators.
9319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9320 for pkg in $enableval; do
9322 if test "X$pkg" = "X$p"; then
9323 enable_fast_install=yes
9330 enable_fast_install=yes
9343 # This can be used to rebuild libtool when needed
9344 LIBTOOL_DEPS="$ltmain"
9346 # Always use our own libtool.
9347 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9374 test -z "$LN_S" && LN_S="ln -s"
9389 if test -n "${ZSH_VERSION+set}" ; then
9390 setopt NO_GLOB_SUBST
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9394 $as_echo_n "checking for objdir... " >&6; }
9395 if ${lt_cv_objdir+:} false; then :
9396 $as_echo_n "(cached) " >&6
9398 rm -f .libs 2>/dev/null
9399 mkdir .libs 2>/dev/null
9400 if test -d .libs; then
9403 # MS-DOS does not allow filenames that begin with a dot.
9406 rmdir .libs 2>/dev/null
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9409 $as_echo "$lt_cv_objdir" >&6; }
9410 objdir=$lt_cv_objdir
9416 cat >>confdefs.h <<_ACEOF
9417 #define LT_OBJDIR "$lt_cv_objdir/"
9425 # AIX sometimes has problems with the GCC collect2 program. For some
9426 # reason, if we set the COLLECT_NAMES environment variable, the problems
9427 # vanish in a puff of smoke.
9428 if test "X${COLLECT_NAMES+set}" != Xset; then
9430 export COLLECT_NAMES
9437 can_build_shared=yes
9439 # All known linkers require a `.a' archive for static linking (except MSVC,
9440 # which needs '.lib').
9443 with_gnu_ld="$lt_cv_prog_gnu_ld"
9446 old_CFLAGS="$CFLAGS"
9448 # Set sane defaults for various variables
9449 test -z "$CC" && CC=cc
9450 test -z "$LTCC" && LTCC=$CC
9451 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9452 test -z "$LD" && LD=ld
9453 test -z "$ac_objext" && ac_objext=o
9455 for cc_temp in $compiler""; do
9457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9463 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9466 # Only perform the check for file, if the check method requires it
9467 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9468 case $deplibs_check_method in
9470 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9472 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9473 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9474 $as_echo_n "(cached) " >&6
9478 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9481 lt_save_MAGIC_CMD="$MAGIC_CMD"
9482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9484 for ac_dir in $ac_dummy; do
9486 test -z "$ac_dir" && ac_dir=.
9487 if test -f $ac_dir/${ac_tool_prefix}file; then
9488 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9489 if test -n "$file_magic_test_file"; then
9490 case $deplibs_check_method in
9492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9495 $EGREP "$file_magic_regex" > /dev/null; then
9500 *** Warning: the command libtool uses to detect shared libraries,
9501 *** $file_magic_cmd, produces output that libtool cannot recognize.
9502 *** The result is that libtool may fail to recognize shared libraries
9503 *** as such. This will affect the creation of libtool libraries that
9504 *** depend on shared libraries, but programs linked with such libtool
9505 *** libraries will work regardless of this problem. Nevertheless, you
9506 *** may want to report the problem to your system manager and/or to
9507 *** bug-libtool@gnu.org
9517 MAGIC_CMD="$lt_save_MAGIC_CMD"
9522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9523 if test -n "$MAGIC_CMD"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9525 $as_echo "$MAGIC_CMD" >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9535 if test -z "$lt_cv_path_MAGIC_CMD"; then
9536 if test -n "$ac_tool_prefix"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9538 $as_echo_n "checking for file... " >&6; }
9539 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9540 $as_echo_n "(cached) " >&6
9544 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9547 lt_save_MAGIC_CMD="$MAGIC_CMD"
9548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9549 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9550 for ac_dir in $ac_dummy; do
9552 test -z "$ac_dir" && ac_dir=.
9553 if test -f $ac_dir/file; then
9554 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9555 if test -n "$file_magic_test_file"; then
9556 case $deplibs_check_method in
9558 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9560 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9561 $EGREP "$file_magic_regex" > /dev/null; then
9566 *** Warning: the command libtool uses to detect shared libraries,
9567 *** $file_magic_cmd, produces output that libtool cannot recognize.
9568 *** The result is that libtool may fail to recognize shared libraries
9569 *** as such. This will affect the creation of libtool libraries that
9570 *** depend on shared libraries, but programs linked with such libtool
9571 *** libraries will work regardless of this problem. Nevertheless, you
9572 *** may want to report the problem to your system manager and/or to
9573 *** bug-libtool@gnu.org
9583 MAGIC_CMD="$lt_save_MAGIC_CMD"
9588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9589 if test -n "$MAGIC_CMD"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9591 $as_echo "$MAGIC_CMD" >&6; }
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9607 # Use C for the default configuration in the libtool script
9611 ac_cpp='$CPP $CPPFLAGS'
9612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9617 # Source file extension for C test sources.
9620 # Object file extension for compiled C test sources.
9624 # Code to be used in simple compile tests
9625 lt_simple_compile_test_code="int some_variable = 0;"
9627 # Code to be used in simple link tests
9628 lt_simple_link_test_code='int main(){return(0);}'
9636 # If no C compiler was specified, use CC.
9639 # If no C compiler flags were specified, use CFLAGS.
9640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9642 # Allow CC to be a program name with arguments.
9645 # Save the default compiler, since it gets overwritten when the other
9646 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9647 compiler_DEFAULT=$CC
9649 # save warnings/boilerplate of simple test code
9650 ac_outfile=conftest.$ac_objext
9651 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9653 _lt_compiler_boilerplate=`cat conftest.err`
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9659 _lt_linker_boilerplate=`cat conftest.err`
9664 ## There is no encapsulation within the following macros, do not change
9665 ## the running order or otherwise move them around unless you know exactly
9666 ## what you are doing...
9667 if test -n "$compiler"; then
9669 lt_prog_compiler_no_builtin_flag=
9671 if test "$GCC" = yes; then
9672 case $cc_basename in
9674 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9676 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9680 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9681 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9682 $as_echo_n "(cached) " >&6
9684 lt_cv_prog_compiler_rtti_exceptions=no
9685 ac_outfile=conftest.$ac_objext
9686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9687 lt_compiler_flag="-fno-rtti -fno-exceptions"
9688 # Insert the option either (1) after the last *FLAGS variable, or
9689 # (2) before a word containing "conftest.", or (3) at the end.
9690 # Note that $ac_compile itself does not contain backslashes and begins
9691 # with a dollar sign (not a hyphen), so the echo should work correctly.
9692 # The option is referenced via a variable to avoid confusing sed.
9693 lt_compile=`echo "$ac_compile" | $SED \
9694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9696 -e 's:$: $lt_compiler_flag:'`
9697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9698 (eval "$lt_compile" 2>conftest.err)
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 if (exit $ac_status) && test -s "$ac_outfile"; then
9703 # The compiler can only warn and ignore the option if not recognized
9704 # So say no if there are warnings other than the usual output.
9705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9708 lt_cv_prog_compiler_rtti_exceptions=yes
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9715 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9730 lt_prog_compiler_wl=
9731 lt_prog_compiler_pic=
9732 lt_prog_compiler_static=
9735 if test "$GCC" = yes; then
9736 lt_prog_compiler_wl='-Wl,'
9737 lt_prog_compiler_static='-static'
9741 # All AIX code is PIC.
9742 if test "$host_cpu" = ia64; then
9743 # AIX 5 now supports IA64 processor
9744 lt_prog_compiler_static='-Bstatic'
9751 # see comment about AmigaOS4 .so support
9752 lt_prog_compiler_pic='-fPIC'
9755 # FIXME: we need at least 68020 code to build shared libraries, but
9756 # adding the `-m68020' flag to GCC prevents building anything better,
9758 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9764 # PIC is the default for these OSes.
9767 mingw* | cygwin* | pw32* | os2* | cegcc*)
9768 # This hack is so that the source file can tell whether it is being
9769 # built for inclusion in a dll (and should export symbols for example).
9770 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9771 # (--disable-auto-import) libraries
9772 lt_prog_compiler_pic='-DDLL_EXPORT'
9775 darwin* | rhapsody*)
9776 # PIC is the default on this platform
9777 # Common symbols not allowed in MH_DYLIB files
9778 lt_prog_compiler_pic='-fno-common'
9782 # PIC is the default for Haiku.
9783 # The "-static" flag exists, but is broken.
9784 lt_prog_compiler_static=
9788 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9789 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9790 # sets the default TLS model and affects inlining.
9796 lt_prog_compiler_pic='-fPIC'
9802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9803 # Instead, we relocate shared libraries at runtime.
9807 # Just because we use GCC doesn't mean we suddenly get shared libraries
9808 # on systems that don't support them.
9809 lt_prog_compiler_can_build_shared=no
9814 # QNX uses GNU C++, but need to define -shared option too, otherwise
9816 lt_prog_compiler_pic='-fPIC -shared'
9820 if test -d /usr/nec; then
9821 lt_prog_compiler_pic=-Kconform_pic
9826 lt_prog_compiler_pic='-fPIC'
9830 case $cc_basename in
9831 nvcc*) # Cuda Compiler Driver 2.2
9832 lt_prog_compiler_wl='-Xlinker '
9833 lt_prog_compiler_pic='-Xcompiler -fPIC'
9837 # PORTME Check for flag to pass linker flags through the system compiler.
9840 lt_prog_compiler_wl='-Wl,'
9841 if test "$host_cpu" = ia64; then
9842 # AIX 5 now supports IA64 processor
9843 lt_prog_compiler_static='-Bstatic'
9845 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9849 mingw* | cygwin* | pw32* | os2* | cegcc*)
9850 # This hack is so that the source file can tell whether it is being
9851 # built for inclusion in a dll (and should export symbols for example).
9852 lt_prog_compiler_pic='-DDLL_EXPORT'
9855 hpux9* | hpux10* | hpux11*)
9856 lt_prog_compiler_wl='-Wl,'
9857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9864 lt_prog_compiler_pic='+Z'
9867 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9868 lt_prog_compiler_static='${wl}-a ${wl}archive'
9871 irix5* | irix6* | nonstopux*)
9872 lt_prog_compiler_wl='-Wl,'
9873 # PIC (with -KPIC) is the default.
9874 lt_prog_compiler_static='-non_shared'
9877 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9878 case $cc_basename in
9879 # old Intel for x86_64 which still supported -KPIC.
9881 lt_prog_compiler_wl='-Wl,'
9882 lt_prog_compiler_pic='-KPIC'
9883 lt_prog_compiler_static='-static'
9885 # icc used to be incompatible with GCC.
9886 # ICC 10 doesn't accept -KPIC any more.
9888 lt_prog_compiler_wl='-Wl,'
9889 lt_prog_compiler_pic='-fPIC'
9890 lt_prog_compiler_static='-static'
9892 # Lahey Fortran 8.1.
9894 lt_prog_compiler_wl='-Wl,'
9895 lt_prog_compiler_pic='--shared'
9896 lt_prog_compiler_static='--static'
9899 # NAG Fortran compiler
9900 lt_prog_compiler_wl='-Wl,-Wl,,'
9901 lt_prog_compiler_pic='-PIC'
9902 lt_prog_compiler_static='-Bstatic'
9904 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9905 # Portland Group compilers (*not* the Pentium gcc compiler,
9906 # which looks to be a dead project)
9907 lt_prog_compiler_wl='-Wl,'
9908 lt_prog_compiler_pic='-fpic'
9909 lt_prog_compiler_static='-Bstatic'
9912 lt_prog_compiler_wl='-Wl,'
9913 # All Alpha code is PIC.
9914 lt_prog_compiler_static='-non_shared'
9916 xl* | bgxl* | bgf* | mpixl*)
9917 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-qpic'
9920 lt_prog_compiler_static='-qstaticlink'
9923 case `$CC -V 2>&1 | sed 5q` in
9924 *Sun\ F* | *Sun*Fortran*)
9925 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9926 lt_prog_compiler_pic='-KPIC'
9927 lt_prog_compiler_static='-Bstatic'
9928 lt_prog_compiler_wl=''
9932 lt_prog_compiler_pic='-KPIC'
9933 lt_prog_compiler_static='-Bstatic'
9934 lt_prog_compiler_wl='-Wl,'
9942 lt_prog_compiler_pic='-KPIC'
9943 lt_prog_compiler_static='-Bstatic'
9947 # QNX uses GNU C++, but need to define -shared option too, otherwise
9949 lt_prog_compiler_pic='-fPIC -shared'
9952 osf3* | osf4* | osf5*)
9953 lt_prog_compiler_wl='-Wl,'
9954 # All OSF/1 code is PIC.
9955 lt_prog_compiler_static='-non_shared'
9959 lt_prog_compiler_static='-non_shared'
9963 lt_prog_compiler_pic='-KPIC'
9964 lt_prog_compiler_static='-Bstatic'
9965 case $cc_basename in
9966 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9967 lt_prog_compiler_wl='-Qoption ld ';;
9969 lt_prog_compiler_wl='-Wl,';;
9974 lt_prog_compiler_wl='-Qoption ld '
9975 lt_prog_compiler_pic='-PIC'
9976 lt_prog_compiler_static='-Bstatic'
9979 sysv4 | sysv4.2uw2* | sysv4.3*)
9980 lt_prog_compiler_wl='-Wl,'
9981 lt_prog_compiler_pic='-KPIC'
9982 lt_prog_compiler_static='-Bstatic'
9986 if test -d /usr/nec ;then
9987 lt_prog_compiler_pic='-Kconform_pic'
9988 lt_prog_compiler_static='-Bstatic'
9992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9993 lt_prog_compiler_wl='-Wl,'
9994 lt_prog_compiler_pic='-KPIC'
9995 lt_prog_compiler_static='-Bstatic'
9999 lt_prog_compiler_wl='-Wl,'
10000 lt_prog_compiler_can_build_shared=no
10004 lt_prog_compiler_pic='-pic'
10005 lt_prog_compiler_static='-Bstatic'
10009 lt_prog_compiler_can_build_shared=no
10015 # For platforms which do not support PIC, -DPIC is meaningless:
10017 lt_prog_compiler_pic=
10020 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10026 if ${lt_cv_prog_compiler_pic+:} false; then :
10027 $as_echo_n "(cached) " >&6
10029 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10032 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10033 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10036 # Check to make sure the PIC flag actually works.
10038 if test -n "$lt_prog_compiler_pic"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10040 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10041 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10042 $as_echo_n "(cached) " >&6
10044 lt_cv_prog_compiler_pic_works=no
10045 ac_outfile=conftest.$ac_objext
10046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10047 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10048 # Insert the option either (1) after the last *FLAGS variable, or
10049 # (2) before a word containing "conftest.", or (3) at the end.
10050 # Note that $ac_compile itself does not contain backslashes and begins
10051 # with a dollar sign (not a hyphen), so the echo should work correctly.
10052 # The option is referenced via a variable to avoid confusing sed.
10053 lt_compile=`echo "$ac_compile" | $SED \
10054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10056 -e 's:$: $lt_compiler_flag:'`
10057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10058 (eval "$lt_compile" 2>conftest.err)
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 if (exit $ac_status) && test -s "$ac_outfile"; then
10063 # The compiler can only warn and ignore the option if not recognized
10064 # So say no if there are warnings other than the usual output.
10065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10068 lt_cv_prog_compiler_pic_works=yes
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10075 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10077 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10078 case $lt_prog_compiler_pic in
10080 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10083 lt_prog_compiler_pic=
10084 lt_prog_compiler_can_build_shared=no
10100 # Check to make sure the static flag actually works.
10102 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10104 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10105 if ${lt_cv_prog_compiler_static_works+:} false; then :
10106 $as_echo_n "(cached) " >&6
10108 lt_cv_prog_compiler_static_works=no
10109 save_LDFLAGS="$LDFLAGS"
10110 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10111 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10113 # The linker can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 if test -s conftest.err; then
10116 # Append any errors to the config.log.
10117 cat conftest.err 1>&5
10118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10120 if diff conftest.exp conftest.er2 >/dev/null; then
10121 lt_cv_prog_compiler_static_works=yes
10124 lt_cv_prog_compiler_static_works=yes
10128 LDFLAGS="$save_LDFLAGS"
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10132 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10134 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10137 lt_prog_compiler_static=
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10147 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10148 if ${lt_cv_prog_compiler_c_o+:} false; then :
10149 $as_echo_n "(cached) " >&6
10151 lt_cv_prog_compiler_c_o=no
10152 $RM -r conftest 2>/dev/null
10156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10158 lt_compiler_flag="-o out/conftest2.$ac_objext"
10159 # Insert the option either (1) after the last *FLAGS variable, or
10160 # (2) before a word containing "conftest.", or (3) at the end.
10161 # Note that $ac_compile itself does not contain backslashes and begins
10162 # with a dollar sign (not a hyphen), so the echo should work correctly.
10163 lt_compile=`echo "$ac_compile" | $SED \
10164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10166 -e 's:$: $lt_compiler_flag:'`
10167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10168 (eval "$lt_compile" 2>out/conftest.err)
10170 cat out/conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10174 # The compiler can only warn and ignore the option if not recognized
10175 # So say no if there are warnings
10176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10179 lt_cv_prog_compiler_c_o=yes
10184 # SGI C++ compiler will create directory out/ii_files/ for
10185 # template instantiation
10186 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10187 $RM out/* && rmdir out
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10194 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10203 if ${lt_cv_prog_compiler_c_o+:} false; then :
10204 $as_echo_n "(cached) " >&6
10206 lt_cv_prog_compiler_c_o=no
10207 $RM -r conftest 2>/dev/null
10211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10213 lt_compiler_flag="-o out/conftest2.$ac_objext"
10214 # Insert the option either (1) after the last *FLAGS variable, or
10215 # (2) before a word containing "conftest.", or (3) at the end.
10216 # Note that $ac_compile itself does not contain backslashes and begins
10217 # with a dollar sign (not a hyphen), so the echo should work correctly.
10218 lt_compile=`echo "$ac_compile" | $SED \
10219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10221 -e 's:$: $lt_compiler_flag:'`
10222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10223 (eval "$lt_compile" 2>out/conftest.err)
10225 cat out/conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10229 # The compiler can only warn and ignore the option if not recognized
10230 # So say no if there are warnings
10231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10234 lt_cv_prog_compiler_c_o=yes
10239 # SGI C++ compiler will create directory out/ii_files/ for
10240 # template instantiation
10241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10242 $RM out/* && rmdir out
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10249 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10254 hard_links="nottested"
10255 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10256 # do not overwrite the value of need_locks provided by the user
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10258 $as_echo_n "checking if we can lock with hard links... " >&6; }
10261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10263 ln conftest.a conftest.b 2>&5 || hard_links=no
10264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10266 $as_echo "$hard_links" >&6; }
10267 if test "$hard_links" = no; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10269 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10282 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10285 allow_undefined_flag=
10286 always_export_symbols=no
10288 archive_expsym_cmds=
10289 compiler_needs_object=no
10290 enable_shared_with_static_runtimes=no
10291 export_dynamic_flag_spec=
10292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10293 hardcode_automatic=no
10295 hardcode_direct_absolute=no
10296 hardcode_libdir_flag_spec=
10297 hardcode_libdir_flag_spec_ld=
10298 hardcode_libdir_separator=
10299 hardcode_minus_L=no
10300 hardcode_shlibpath_var=unsupported
10302 link_all_deplibs=unknown
10304 module_expsym_cmds=
10305 old_archive_from_new_cmds=
10306 old_archive_from_expsyms_cmds=
10307 thread_safe_flag_spec=
10308 whole_archive_flag_spec=
10309 # include_expsyms should be a list of space-separated symbols to be *always*
10310 # included in the symbol list
10312 # exclude_expsyms can be an extended regexp of symbols to exclude
10313 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10314 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10315 # as well as any symbol that contains `d'.
10316 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10317 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10318 # platforms (ab)use it in PIC code, but their linkers get confused if
10319 # the symbol is explicitly referenced. Since portable code cannot
10320 # rely on this symbol name, it's probably fine to never include it in
10321 # preloaded symbol tables.
10322 # Exclude shared library initialization/finalization symbols.
10323 extract_expsyms_cmds=
10326 cygwin* | mingw* | pw32* | cegcc*)
10327 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10328 # When not using gcc, we currently assume that we are using
10329 # Microsoft Visual C++.
10330 if test "$GCC" != yes; then
10335 # we just hope/assume this is gcc and not c89 (= MSVC++)
10345 # On some targets, GNU ld is compatible enough with the native linker
10346 # that we're better off using the native interface for both.
10347 lt_use_gnu_ld_interface=no
10348 if test "$with_gnu_ld" = yes; then
10351 # The AIX port of GNU ld has always aspired to compatibility
10352 # with the native linker. However, as the warning in the GNU ld
10353 # block says, versions before 2.19.5* couldn't really create working
10354 # shared libraries, regardless of the interface used.
10355 case `$LD -v 2>&1` in
10356 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10357 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10358 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10360 lt_use_gnu_ld_interface=yes
10365 lt_use_gnu_ld_interface=yes
10370 if test "$lt_use_gnu_ld_interface" = yes; then
10371 # If archive_cmds runs LD, not CC, wlarc should be empty
10374 # Set some defaults for GNU ld with shared library support. These
10375 # are reset later if shared libraries are not supported. Putting them
10376 # here allows them to be overridden if necessary.
10377 runpath_var=LD_RUN_PATH
10378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10379 export_dynamic_flag_spec='${wl}--export-dynamic'
10380 # ancient GNU ld didn't support --whole-archive et. al.
10381 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10382 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10384 whole_archive_flag_spec=
10386 supports_anon_versioning=no
10387 case `$LD -v 2>&1` in
10388 *GNU\ gold*) supports_anon_versioning=yes ;;
10389 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10390 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10391 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10392 *\ 2.11.*) ;; # other 2.11 versions
10393 *) supports_anon_versioning=yes ;;
10396 # See if GNU ld supports shared libraries.
10399 # On AIX/PPC, the GNU linker is very broken
10400 if test "$host_cpu" != ia64; then
10404 *** Warning: the GNU linker, at least up to release 2.19, is reported
10405 *** to be unable to reliably create shared libraries on AIX.
10406 *** Therefore, libtool is disabling shared libraries support. If you
10407 *** really care for shared libraries, you may want to install binutils
10408 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10409 *** You will then need to restart the configuration process.
10418 # see comment about AmigaOS4 .so support
10419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10420 archive_expsym_cmds=''
10423 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)'
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 hardcode_minus_L=yes
10431 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10432 allow_undefined_flag=unsupported
10433 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10434 # support --undefined. This deserves some investigation. FIXME
10435 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10441 cygwin* | mingw* | pw32* | cegcc*)
10442 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10443 # as there is no search path for DLLs.
10444 hardcode_libdir_flag_spec='-L$libdir'
10445 export_dynamic_flag_spec='${wl}--export-all-symbols'
10446 allow_undefined_flag=unsupported
10447 always_export_symbols=no
10448 enable_shared_with_static_runtimes=yes
10449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10450 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10452 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10454 # If the export-symbols file already is a .def file (1st line
10455 # is EXPORTS), use it as is; otherwise, prepend...
10456 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10457 cp $export_symbols $output_objdir/$soname.def;
10459 echo EXPORTS > $output_objdir/$soname.def;
10460 cat $export_symbols >> $output_objdir/$soname.def;
10462 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 link_all_deplibs=yes
10475 hardcode_shlibpath_var=no
10476 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10477 export_dynamic_flag_spec='${wl}-E'
10478 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10479 # Instead, shared libraries are loaded at an image base (0x10000000 by
10480 # default) and relocated if they conflict, which is a slow very memory
10481 # consuming and fragmenting process. To avoid this, we pick a random,
10482 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10483 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10485 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'
10488 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10490 if test "$host_os" = linux-dietlibc; then
10491 case $cc_basename in
10492 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10495 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10496 && test "$tmp_diet" = no
10498 tmp_addflag=' $pic_flag'
10499 tmp_sharedflag='-shared'
10500 case $cc_basename,$host_cpu in
10501 pgcc*) # Portland Group C compiler
10502 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10503 tmp_addflag=' $pic_flag'
10505 pgf77* | pgf90* | pgf95* | pgfortran*)
10506 # Portland Group f77 and f90 compilers
10507 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10508 tmp_addflag=' $pic_flag -Mnomain' ;;
10509 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10510 tmp_addflag=' -i_dynamic' ;;
10511 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10512 tmp_addflag=' -i_dynamic -nofor_main' ;;
10513 ifc* | ifort*) # Intel Fortran compiler
10514 tmp_addflag=' -nofor_main' ;;
10515 lf95*) # Lahey Fortran 8.1
10516 whole_archive_flag_spec=
10517 tmp_sharedflag='--shared' ;;
10518 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10519 tmp_sharedflag='-qmkshrobj'
10521 nvcc*) # Cuda Compiler Driver 2.2
10522 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10523 compiler_needs_object=yes
10526 case `$CC -V 2>&1 | sed 5q` in
10527 *Sun\ C*) # Sun C 5.9
10528 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10529 compiler_needs_object=yes
10530 tmp_sharedflag='-G' ;;
10531 *Sun\ F*) # Sun Fortran 8.3
10532 tmp_sharedflag='-G' ;;
10534 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10536 if test "x$supports_anon_versioning" = xyes; then
10537 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10539 echo "local: *; };" >> $output_objdir/$libname.ver~
10540 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10543 case $cc_basename in
10544 xlf* | bgf* | bgxlf* | mpixlf*)
10545 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10546 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10547 hardcode_libdir_flag_spec=
10548 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10549 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10550 if test "x$supports_anon_versioning" = xyes; then
10551 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10553 echo "local: *; };" >> $output_objdir/$libname.ver~
10554 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10565 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10574 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10579 *** create shared libraries on Solaris systems. Therefore, libtool
10580 *** is disabling shared libraries support. We urge you to upgrade GNU
10581 *** binutils to release 2.9.1 or newer. Another option is to modify
10582 *** your PATH or compiler configuration so that the native linker is
10583 *** used, and then restart.
10586 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10595 case `$LD -v 2>&1` in
10596 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10600 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10601 *** reliably create shared libraries on SCO systems. Therefore, libtool
10602 *** is disabling shared libraries support. We urge you to upgrade GNU
10603 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10604 *** your PATH or compiler configuration so that the native linker is
10605 *** used, and then restart.
10610 # For security reasons, it is highly recommended that you always
10611 # use absolute paths for naming shared libraries, and exclude the
10612 # DT_RUNPATH tag from executables and libraries. But doing so
10613 # requires that you compile everything twice, which is a pain.
10614 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10626 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_direct=yes
10629 hardcode_shlibpath_var=no
10633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10642 if test "$ld_shlibs" = no; then
10644 hardcode_libdir_flag_spec=
10645 export_dynamic_flag_spec=
10646 whole_archive_flag_spec=
10649 # PORTME fill in a description of your system's linker (not GNU ld)
10652 allow_undefined_flag=unsupported
10653 always_export_symbols=yes
10654 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'
10655 # Note: this linker hardcodes the directories in LIBPATH if there
10656 # are no directories specified by -L.
10657 hardcode_minus_L=yes
10658 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10659 # Neither direct hardcoding nor static linking is supported with a
10661 hardcode_direct=unsupported
10666 if test "$host_cpu" = ia64; then
10667 # On IA64, the linker does run time linking by default, so we don't
10668 # have to do anything special.
10669 aix_use_runtimelinking=no
10670 exp_sym_flag='-Bexport'
10673 # If we're using GNU nm, then we don't want the "-C" option.
10674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10675 # Also, AIX nm treats weak defined symbols like other global
10676 # defined symbols, whereas GNU nm marks them as "W".
10677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10678 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10680 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'
10682 aix_use_runtimelinking=no
10684 # Test if we are trying to use run time linking or normal
10685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10686 # need to do runtime linking.
10687 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10688 for ld_flag in $LDFLAGS; do
10689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10690 aix_use_runtimelinking=yes
10697 exp_sym_flag='-bexport'
10698 no_entry_flag='-bnoentry'
10701 # When large executables or shared objects are built, AIX ld can
10702 # have problems creating the table of contents. If linking a library
10703 # or program results in "error TOC overflow" add -mminimal-toc to
10704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10708 hardcode_direct=yes
10709 hardcode_direct_absolute=yes
10710 hardcode_libdir_separator=':'
10711 link_all_deplibs=yes
10712 file_list_spec='${wl}-f,'
10714 if test "$GCC" = yes; then
10715 case $host_os in aix4.[012]|aix4.[012].*)
10716 # We only want to do this on AIX 4.2 and lower, the check
10717 # below for broken collect2 doesn't work under 4.3+
10718 collect2name=`${CC} -print-prog-name=collect2`
10719 if test -f "$collect2name" &&
10720 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10722 # We have reworked collect2
10725 # We have old collect2
10726 hardcode_direct=unsupported
10727 # It fails to find uninstalled libraries when the uninstalled
10728 # path is not listed in the libpath. Setting hardcode_minus_L
10729 # to unsupported forces relinking
10730 hardcode_minus_L=yes
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_libdir_separator=
10736 shared_flag='-shared'
10737 if test "$aix_use_runtimelinking" = yes; then
10738 shared_flag="$shared_flag "'${wl}-G'
10742 if test "$host_cpu" = ia64; then
10743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10744 # chokes on -Wl,-G. The following line is correct:
10747 if test "$aix_use_runtimelinking" = yes; then
10748 shared_flag='${wl}-G'
10750 shared_flag='${wl}-bM:SRE'
10755 export_dynamic_flag_spec='${wl}-bexpall'
10756 # It seems that -bexpall does not export symbols beginning with
10757 # underscore (_), so it is better to generate a list of symbols to export.
10758 always_export_symbols=yes
10759 if test "$aix_use_runtimelinking" = yes; then
10760 # Warning - without using the other runtime loading flags (-brtl),
10761 # -berok will link without error, but may produce a broken library.
10762 allow_undefined_flag='-berok'
10763 # Determine the default libpath from the value encoded in an
10764 # empty executable.
10765 if test "${lt_cv_aix_libpath+set}" = set; then
10766 aix_libpath=$lt_cv_aix_libpath
10768 if ${lt_cv_aix_libpath_+:} false; then :
10769 $as_echo_n "(cached) " >&6
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10782 if ac_fn_c_try_link "$LINENO"; then :
10784 lt_aix_libpath_sed='
10785 /Import File Strings/,/^$/ {
10787 s/^0 *\([^ ]*\) *$/\1/
10791 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 # Check for a 64-bit object if we didn't find anything.
10793 if test -z "$lt_cv_aix_libpath_"; then
10794 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 if test -z "$lt_cv_aix_libpath_"; then
10800 lt_cv_aix_libpath_="/usr/lib:/lib"
10805 aix_libpath=$lt_cv_aix_libpath_
10808 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10809 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10811 if test "$host_cpu" = ia64; then
10812 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10813 allow_undefined_flag="-z nodefs"
10814 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"
10816 # Determine the default libpath from the value encoded in an
10817 # empty executable.
10818 if test "${lt_cv_aix_libpath+set}" = set; then
10819 aix_libpath=$lt_cv_aix_libpath
10821 if ${lt_cv_aix_libpath_+:} false; then :
10822 $as_echo_n "(cached) " >&6
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10835 if ac_fn_c_try_link "$LINENO"; then :
10837 lt_aix_libpath_sed='
10838 /Import File Strings/,/^$/ {
10840 s/^0 *\([^ ]*\) *$/\1/
10844 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10845 # Check for a 64-bit object if we didn't find anything.
10846 if test -z "$lt_cv_aix_libpath_"; then
10847 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10850 rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10852 if test -z "$lt_cv_aix_libpath_"; then
10853 lt_cv_aix_libpath_="/usr/lib:/lib"
10858 aix_libpath=$lt_cv_aix_libpath_
10861 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10862 # Warning - without using the other run time loading flags,
10863 # -berok will link without error, but may produce a broken library.
10864 no_undefined_flag=' ${wl}-bernotok'
10865 allow_undefined_flag=' ${wl}-berok'
10866 if test "$with_gnu_ld" = yes; then
10867 # We only use this code for GNU lds that support --whole-archive.
10868 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10870 # Exported symbols can be pulled into shared objects from archives
10871 whole_archive_flag_spec='$convenience'
10873 archive_cmds_need_lc=yes
10874 # This is similar to how AIX traditionally builds its shared libraries.
10875 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'
10883 # see comment about AmigaOS4 .so support
10884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885 archive_expsym_cmds=''
10888 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)'
10889 hardcode_libdir_flag_spec='-L$libdir'
10890 hardcode_minus_L=yes
10896 export_dynamic_flag_spec=-rdynamic
10899 cygwin* | mingw* | pw32* | cegcc*)
10900 # When not using gcc, we currently assume that we are using
10901 # Microsoft Visual C++.
10902 # hardcode_libdir_flag_spec is actually meaningless, as there is
10903 # no search path for DLLs.
10904 case $cc_basename in
10907 hardcode_libdir_flag_spec=' '
10908 allow_undefined_flag=unsupported
10909 always_export_symbols=yes
10911 # Tell ltmain to make .lib files, not .a files.
10913 # Tell ltmain to make .dll files, not .so files.
10915 # FIXME: Setting linknames here is a bad hack.
10916 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10917 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10918 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10920 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10922 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10924 # The linker will not automatically build a static lib if we build a DLL.
10925 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10926 enable_shared_with_static_runtimes=yes
10927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10929 old_postinstall_cmds='chmod 644 $oldlib'
10930 postlink_cmds='lt_outputfile="@OUTPUT@"~
10931 lt_tool_outputfile="@TOOL_OUTPUT@"~
10932 case $lt_outputfile in
10935 lt_outputfile="$lt_outputfile.exe"
10936 lt_tool_outputfile="$lt_tool_outputfile.exe"
10939 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10940 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10941 $RM "$lt_outputfile.manifest";
10945 # Assume MSVC wrapper
10946 hardcode_libdir_flag_spec=' '
10947 allow_undefined_flag=unsupported
10948 # Tell ltmain to make .lib files, not .a files.
10950 # Tell ltmain to make .dll files, not .so files.
10952 # FIXME: Setting linknames here is a bad hack.
10953 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10954 # The linker will automatically build a .lib file if we build a DLL.
10955 old_archive_from_new_cmds='true'
10956 # FIXME: Should let the user specify the lib program.
10957 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10958 enable_shared_with_static_runtimes=yes
10963 darwin* | rhapsody*)
10966 archive_cmds_need_lc=no
10968 hardcode_automatic=yes
10969 hardcode_shlibpath_var=unsupported
10970 if test "$lt_cv_ld_force_load" = "yes"; then
10971 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10973 whole_archive_flag_spec=''
10975 link_all_deplibs=yes
10976 allow_undefined_flag="$_lt_dar_allow_undefined"
10977 case $cc_basename in
10978 ifort*) _lt_dar_can_shared=yes ;;
10979 *) _lt_dar_can_shared=$GCC ;;
10981 if test "$_lt_dar_can_shared" = "yes"; then
10982 output_verbose_link_cmd=func_echo_all
10983 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10984 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10985 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}"
10986 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}"
10995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996 hardcode_libdir_flag_spec='-L$libdir'
10997 hardcode_shlibpath_var=no
11004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11005 # support. Future versions do this automatically, but an explicit c++rt0.o
11006 # does not break anything, and helps significantly (at the cost of a little
11009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11010 hardcode_libdir_flag_spec='-R$libdir'
11011 hardcode_direct=yes
11012 hardcode_shlibpath_var=no
11015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11018 hardcode_direct=yes
11019 hardcode_minus_L=yes
11020 hardcode_shlibpath_var=no
11023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11024 freebsd* | dragonfly*)
11025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11026 hardcode_libdir_flag_spec='-R$libdir'
11027 hardcode_direct=yes
11028 hardcode_shlibpath_var=no
11032 if test "$GCC" = yes; then
11033 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11035 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'
11037 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11038 hardcode_libdir_separator=:
11039 hardcode_direct=yes
11041 # hardcode_minus_L: Not really in the search PATH,
11042 # but as the default location of the library.
11043 hardcode_minus_L=yes
11044 export_dynamic_flag_spec='${wl}-E'
11048 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11049 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11053 if test "$with_gnu_ld" = no; then
11054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11055 hardcode_libdir_flag_spec_ld='+b $libdir'
11056 hardcode_libdir_separator=:
11057 hardcode_direct=yes
11058 hardcode_direct_absolute=yes
11059 export_dynamic_flag_spec='${wl}-E'
11060 # hardcode_minus_L: Not really in the search PATH,
11061 # but as the default location of the library.
11062 hardcode_minus_L=yes
11067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11070 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11073 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11076 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11082 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11089 # Older versions of the 11.00 compiler do not understand -b yet
11090 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11092 $as_echo_n "checking if $CC understands -b... " >&6; }
11093 if ${lt_cv_prog_compiler__b+:} false; then :
11094 $as_echo_n "(cached) " >&6
11096 lt_cv_prog_compiler__b=no
11097 save_LDFLAGS="$LDFLAGS"
11098 LDFLAGS="$LDFLAGS -b"
11099 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11101 # The linker can only warn and ignore the option if not recognized
11102 # So say no if there are warnings
11103 if test -s conftest.err; then
11104 # Append any errors to the config.log.
11105 cat conftest.err 1>&5
11106 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11108 if diff conftest.exp conftest.er2 >/dev/null; then
11109 lt_cv_prog_compiler__b=yes
11112 lt_cv_prog_compiler__b=yes
11116 LDFLAGS="$save_LDFLAGS"
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11120 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11122 if test x"$lt_cv_prog_compiler__b" = xyes; then
11123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11131 if test "$with_gnu_ld" = no; then
11132 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11133 hardcode_libdir_separator=:
11138 hardcode_shlibpath_var=no
11141 hardcode_direct=yes
11142 hardcode_direct_absolute=yes
11143 export_dynamic_flag_spec='${wl}-E'
11145 # hardcode_minus_L: Not really in the search PATH,
11146 # but as the default location of the library.
11147 hardcode_minus_L=yes
11153 irix5* | irix6* | nonstopux*)
11154 if test "$GCC" = yes; then
11155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11156 # Try to use the -exported_symbol ld option, if it does not
11157 # work, assume that -exports_file does not work either and
11158 # implicitly export all symbols.
11159 # This should be the same for all languages, so no per-tag cache variable.
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11161 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11162 if ${lt_cv_irix_exported_symbol+:} false; then :
11163 $as_echo_n "(cached) " >&6
11165 save_LDFLAGS="$LDFLAGS"
11166 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11169 int foo (void) { return 0; }
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 lt_cv_irix_exported_symbol=yes
11174 lt_cv_irix_exported_symbol=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LDFLAGS="$save_LDFLAGS"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11181 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11182 if test "$lt_cv_irix_exported_symbol" = yes; then
11183 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11189 archive_cmds_need_lc='no'
11190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11191 hardcode_libdir_separator=:
11193 link_all_deplibs=yes
11197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11200 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11202 hardcode_libdir_flag_spec='-R$libdir'
11203 hardcode_direct=yes
11204 hardcode_shlibpath_var=no
11208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11209 hardcode_direct=yes
11210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11211 hardcode_libdir_separator=:
11212 hardcode_shlibpath_var=no
11219 if test -f /usr/libexec/ld.so; then
11220 hardcode_direct=yes
11221 hardcode_shlibpath_var=no
11222 hardcode_direct_absolute=yes
11223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11225 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11227 export_dynamic_flag_spec='${wl}-E'
11230 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11232 hardcode_libdir_flag_spec='-R$libdir'
11235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11246 hardcode_libdir_flag_spec='-L$libdir'
11247 hardcode_minus_L=yes
11248 allow_undefined_flag=unsupported
11249 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'
11250 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11254 if test "$GCC" = yes; then
11255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11256 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11258 allow_undefined_flag=' -expect_unresolved \*'
11259 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11261 archive_cmds_need_lc='no'
11262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11263 hardcode_libdir_separator=:
11266 osf4* | osf5*) # as osf3* with the addition of -msym flag
11267 if test "$GCC" = yes; then
11268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11269 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11272 allow_undefined_flag=' -expect_unresolved \*'
11273 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11274 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~
11275 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11277 # Both c and cxx compiler support -rpath directly
11278 hardcode_libdir_flag_spec='-rpath $libdir'
11280 archive_cmds_need_lc='no'
11281 hardcode_libdir_separator=:
11285 no_undefined_flag=' -z defs'
11286 if test "$GCC" = yes; then
11288 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11290 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11292 case `$CC -V 2>&1` in
11295 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11301 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11307 hardcode_libdir_flag_spec='-R$libdir'
11308 hardcode_shlibpath_var=no
11310 solaris2.[0-5] | solaris2.[0-5].*) ;;
11312 # The compiler driver will combine and reorder linker options,
11313 # but understands `-z linker_flag'. GCC discards it without `$wl',
11314 # but is careful enough not to reorder.
11315 # Supported since Solaris 2.6 (maybe 2.5.1?)
11316 if test "$GCC" = yes; then
11317 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11319 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11323 link_all_deplibs=yes
11327 if test "x$host_vendor" = xsequent; then
11328 # Use $CC to link under sequent, because it throws in some extra .o
11329 # files that make .init and .fini sections work.
11330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11334 hardcode_libdir_flag_spec='-L$libdir'
11335 hardcode_direct=yes
11336 hardcode_minus_L=yes
11337 hardcode_shlibpath_var=no
11341 case $host_vendor in
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_direct=yes # is this really true???
11347 ## LD is ld it makes a PLAMLIB
11348 ## CC just makes a GrossModule.
11349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11350 reload_cmds='$CC -r -o $output$reload_objs'
11354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11358 runpath_var='LD_RUN_PATH'
11359 hardcode_shlibpath_var=no
11363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364 hardcode_shlibpath_var=no
11365 export_dynamic_flag_spec='-Bexport'
11369 if test -d /usr/nec; then
11370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11371 hardcode_shlibpath_var=no
11372 runpath_var=LD_RUN_PATH
11373 hardcode_runpath_var=yes
11378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11379 no_undefined_flag='${wl}-z,text'
11380 archive_cmds_need_lc=no
11381 hardcode_shlibpath_var=no
11382 runpath_var='LD_RUN_PATH'
11384 if test "$GCC" = yes; then
11385 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11386 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11388 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11389 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11393 sysv5* | sco3.2v5* | sco5v6*)
11394 # Note: We can NOT use -z defs as we might desire, because we do not
11395 # link with -lc, and that would cause any symbols used from libc to
11396 # always be unresolved, which means just about no library would
11397 # ever link correctly. If we're not using GNU ld we use -z text
11398 # though, which does catch some bad symbols but isn't as heavy-handed
11400 no_undefined_flag='${wl}-z,text'
11401 allow_undefined_flag='${wl}-z,nodefs'
11402 archive_cmds_need_lc=no
11403 hardcode_shlibpath_var=no
11404 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11405 hardcode_libdir_separator=':'
11406 link_all_deplibs=yes
11407 export_dynamic_flag_spec='${wl}-Bexport'
11408 runpath_var='LD_RUN_PATH'
11410 if test "$GCC" = yes; then
11411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11421 hardcode_libdir_flag_spec='-L$libdir'
11422 hardcode_shlibpath_var=no
11430 if test x$host_vendor = xsni; then
11432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11433 export_dynamic_flag_spec='${wl}-Blargedynsym'
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11440 $as_echo "$ld_shlibs" >&6; }
11441 test "$ld_shlibs" = no && can_build_shared=no
11443 with_gnu_ld=$with_gnu_ld
11460 # Do we need to explicitly link libc?
11462 case "x$archive_cmds_need_lc" in
11464 # Assume -lc should be added
11465 archive_cmds_need_lc=yes
11467 if test "$enable_shared" = yes && test "$GCC" = yes; then
11468 case $archive_cmds in
11470 # FIXME: we may have to deal with multi-command sequences.
11473 # Test whether the compiler implicitly links with -lc since on some
11474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11475 # to ld, don't add -lc before -lgcc.
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11477 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11478 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11479 $as_echo_n "(cached) " >&6
11482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11485 (eval $ac_compile) 2>&5
11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488 test $ac_status = 0; } 2>conftest.err; then
11491 libobjs=conftest.$ac_objext
11493 wl=$lt_prog_compiler_wl
11494 pic_flag=$lt_prog_compiler_pic
11500 lt_save_allow_undefined_flag=$allow_undefined_flag
11501 allow_undefined_flag=
11502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11503 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; }
11508 lt_cv_archive_cmds_need_lc=no
11510 lt_cv_archive_cmds_need_lc=yes
11512 allow_undefined_flag=$lt_save_allow_undefined_flag
11514 cat conftest.err 1>&5
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11520 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11521 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11687 if test "$GCC" = yes; then
11689 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11690 *) lt_awk_arg="/^libraries:/" ;;
11693 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11694 *) lt_sed_strip_eq="s,=/,/,g" ;;
11696 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11697 case $lt_search_path_spec in
11699 # if the path contains ";" then we assume it to be the separator
11700 # otherwise default to the standard path separator (i.e. ":") - it is
11701 # assumed that no part of a normal pathname contains ";" but that should
11702 # okay in the real world where ";" in dirpaths is itself problematic.
11703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11709 # Ok, now we have the path, separated by spaces, we can step through it
11710 # and add multilib dir if necessary.
11711 lt_tmp_lt_search_path_spec=
11712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11713 for lt_sys_path in $lt_search_path_spec; do
11714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11717 test -d "$lt_sys_path" && \
11718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11721 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11722 BEGIN {RS=" "; FS="/|\n";} {
11725 for (lt_i = NF; lt_i > 0; lt_i--) {
11726 if ($lt_i != "" && $lt_i != ".") {
11727 if ($lt_i == "..") {
11730 if (lt_count == 0) {
11731 lt_foo="/" $lt_i lt_foo;
11738 if (lt_foo != "") { lt_freq[lt_foo]++; }
11739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11741 # AWK program above erroneously prepends '/' to C:/dos/paths
11744 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11745 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11747 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11751 library_names_spec=
11752 libname_spec='lib$name'
11756 postuninstall_cmds=
11760 shlibpath_overrides_runpath=unknown
11762 dynamic_linker="$host_os ld.so"
11763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11764 need_lib_prefix=unknown
11765 hardcode_into_libs=no
11767 # when you set need_version to no, make sure it does not cause -set_version
11768 # flags to be left without arguments
11769 need_version=unknown
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11775 shlibpath_var=LIBPATH
11777 # AIX 3 has no versioning support, so we append a major version to the name.
11778 soname_spec='${libname}${release}${shared_ext}$major'
11785 hardcode_into_libs=yes
11786 if test "$host_cpu" = ia64; then
11787 # AIX 5 supports IA64
11788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11789 shlibpath_var=LD_LIBRARY_PATH
11791 # With GCC up to 2.95.x, collect2 would create an import file
11792 # for dependence libraries. The import file would start with
11793 # the line `#! .'. This would cause the generated library to
11794 # depend on `.', always an invalid library. This was fixed in
11795 # development snapshots of GCC prior to 3.0.
11797 aix4 | aix4.[01] | aix4.[01].*)
11798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11800 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11803 can_build_shared=no
11807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11808 # soname into executable. Probably we can add versioning support to
11809 # collect2, so additional links can be useful in future.
11810 if test "$aix_use_runtimelinking" = yes; then
11811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11812 # instead of lib<name>.a to let people know that these are not
11813 # typical AIX shared libraries.
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 # We preserve .a as extension for shared libraries through AIX4.2
11817 # and later when we are not doing run time linking.
11818 library_names_spec='${libname}${release}.a $libname.a'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11821 shlibpath_var=LIBPATH
11828 # Since July 2007 AmigaOS4 officially supports .so libraries.
11829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 library_names_spec='$libname.ixlibrary $libname.a'
11834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11835 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11841 library_names_spec='${libname}${shared_ext}'
11842 dynamic_linker="$host_os ld.so"
11843 shlibpath_var=LIBRARY_PATH
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 soname_spec='${libname}${release}${shared_ext}$major'
11851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11855 # the default ld.so.conf also contains /usr/contrib/lib and
11856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11857 # libtool to hard-code these into programs
11860 cygwin* | mingw* | pw32* | cegcc*)
11861 version_type=windows
11866 case $GCC,$cc_basename in
11869 library_names_spec='$libname.dll.a'
11870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11871 postinstall_cmds='base_file=`basename \${file}`~
11872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11873 dldir=$destdir/`dirname \$dlpath`~
11874 test -d \$dldir || mkdir -p \$dldir~
11875 $install_prog $dir/$dlname \$dldir/$dlname~
11876 chmod a+x \$dldir/$dlname~
11877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11881 dlpath=$dir/\$dldll~
11883 shlibpath_overrides_runpath=yes
11887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11893 # MinGW DLLs use traditional 'lib' prefix
11894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11897 # pw32 DLLs use 'pw' prefix rather than 'lib'
11898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11901 dynamic_linker='Win32 ld.exe'
11906 libname_spec='$name'
11907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11908 library_names_spec='${libname}.dll.lib'
11912 sys_lib_search_path_spec=
11915 for lt_path in $LIB
11918 # Let DOS variable expansion print the short 8.3 style file name.
11919 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11920 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11923 # Convert to MSYS style.
11924 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11927 # Convert to unix form, then to dos form, then back to unix form
11928 # but this time dos style (no spaces!) so that the unix form looks
11929 # like /cygdrive/c/PROGRA~1:/cygdr...
11930 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11931 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11932 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11935 sys_lib_search_path_spec="$LIB"
11936 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11937 # It is most probably a Windows format PATH.
11938 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11942 # FIXME: find the short name or the path components, as spaces are
11943 # common. (e.g. "Program Files" -> "PROGRA~1")
11947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11948 postinstall_cmds='base_file=`basename \${file}`~
11949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11950 dldir=$destdir/`dirname \$dlpath`~
11951 test -d \$dldir || mkdir -p \$dldir~
11952 $install_prog $dir/$dlname \$dldir/$dlname'
11953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11954 dlpath=$dir/\$dldll~
11956 shlibpath_overrides_runpath=yes
11957 dynamic_linker='Win32 link.exe'
11961 # Assume MSVC wrapper
11962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11963 dynamic_linker='Win32 ld.exe'
11966 # FIXME: first we should search . and the directory the executable is in
11970 darwin* | rhapsody*)
11971 dynamic_linker="$host_os dyld"
11972 version_type=darwin
11975 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11976 soname_spec='${libname}${release}${major}$shared_ext'
11977 shlibpath_overrides_runpath=yes
11978 shlibpath_var=DYLD_LIBRARY_PATH
11979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11981 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 shlibpath_var=LD_LIBRARY_PATH
11998 freebsd* | dragonfly*)
11999 # DragonFly does not have aout. When/if they implement a new
12000 # versioning mechanism, adjust this.
12001 if test -x /usr/bin/objformat; then
12002 objformat=`/usr/bin/objformat`
12005 freebsd[123]*) objformat=aout ;;
12006 *) objformat=elf ;;
12009 version_type=freebsd-$objformat
12010 case $version_type in
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12021 shlibpath_var=LD_LIBRARY_PATH
12024 shlibpath_overrides_runpath=yes
12026 freebsd3.[01]* | freebsdelf3.[01]*)
12027 shlibpath_overrides_runpath=yes
12028 hardcode_into_libs=yes
12030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12032 shlibpath_overrides_runpath=no
12033 hardcode_into_libs=yes
12035 *) # from 4.6 on, and DragonFly
12036 shlibpath_overrides_runpath=yes
12037 hardcode_into_libs=yes
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 hardcode_into_libs=yes
12056 dynamic_linker="$host_os runtime_loader"
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 shlibpath_var=LIBRARY_PATH
12060 shlibpath_overrides_runpath=yes
12061 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12062 hardcode_into_libs=yes
12065 hpux9* | hpux10* | hpux11*)
12066 # Give a soname corresponding to the major version so that dld.sl refuses to
12067 # link against other versions.
12074 hardcode_into_libs=yes
12075 dynamic_linker="$host_os dld.so"
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12080 if test "X$HPUX_IA64_MODE" = X32; then
12081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12089 hardcode_into_libs=yes
12090 dynamic_linker="$host_os dld.sl"
12091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094 soname_spec='${libname}${release}${shared_ext}$major'
12095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12100 dynamic_linker="$host_os dld.sl"
12101 shlibpath_var=SHLIB_PATH
12102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104 soname_spec='${libname}${release}${shared_ext}$major'
12107 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12108 postinstall_cmds='chmod 555 $lib'
12109 # or fails outright, so override atomically:
12110 install_override_mode=555
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12118 soname_spec='${libname}${release}${shared_ext}$major'
12119 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath=no
12122 hardcode_into_libs=yes
12125 irix5* | irix6* | nonstopux*)
12127 nonstopux*) version_type=nonstopux ;;
12129 if test "$lt_cv_prog_gnu_ld" = yes; then
12137 soname_spec='${libname}${release}${shared_ext}$major'
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12140 irix5* | nonstopux*)
12141 libsuff= shlibsuff=
12144 case $LD in # libtool.m4 will add one of these switches to LD
12145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12146 libsuff= shlibsuff= libmagic=32-bit;;
12147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12148 libsuff=32 shlibsuff=N32 libmagic=N32;;
12149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12151 *) libsuff= shlibsuff= libmagic=never-match;;
12155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12156 shlibpath_overrides_runpath=no
12157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12159 hardcode_into_libs=yes
12162 # No shared lib support for Linux oldld, aout, or coff.
12163 linux*oldld* | linux*aout* | linux*coff*)
12167 # This must be Linux ELF.
12168 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 soname_spec='${libname}${release}${shared_ext}$major'
12174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12175 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=no
12178 # Some binutils ld are patched to set DT_RUNPATH
12179 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12180 $as_echo_n "(cached) " >&6
12182 lt_cv_shlibpath_overrides_runpath=no
12183 save_LDFLAGS=$LDFLAGS
12184 save_libdir=$libdir
12185 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12186 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12198 if ac_fn_c_try_link "$LINENO"; then :
12199 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12200 lt_cv_shlibpath_overrides_runpath=yes
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LDFLAGS=$save_LDFLAGS
12206 libdir=$save_libdir
12210 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12212 # This implies no fast_install, which is unacceptable.
12213 # Some rework will be needed to allow for fast_install
12214 # before this can be enabled.
12215 hardcode_into_libs=yes
12217 # Append ld.so.conf contents to the search path
12218 if test -f /etc/ld.so.conf; then
12219 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;s/"//g;/^$/d' | tr '\n' ' '`
12220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12223 # We used to test for /lib/ld.so.1 and disable shared libraries on
12224 # powerpc, because MkLinux only supported shared libraries with the
12225 # GNU dynamic linker. Since this was broken with cross compilers,
12226 # most powerpc-linux boxes support dynamic linking these days and
12227 # people can always --disable-shared, the test was removed, and we
12228 # assume the GNU/Linux dynamic linker is in use.
12229 dynamic_linker='GNU/Linux ld.so'
12236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12239 dynamic_linker='NetBSD (a.out) ld.so'
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 dynamic_linker='NetBSD ld.elf_so'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=yes
12247 hardcode_into_libs=yes
12252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=yes
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262 soname_spec='${libname}${release}${shared_ext}$major'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=no
12265 hardcode_into_libs=yes
12266 dynamic_linker='ldqnx.so'
12271 sys_lib_dlsearch_path_spec="/usr/lib"
12273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12276 *) need_version=no ;;
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12283 openbsd2.[89] | openbsd2.[89].*)
12284 shlibpath_overrides_runpath=no
12287 shlibpath_overrides_runpath=yes
12291 shlibpath_overrides_runpath=yes
12296 libname_spec='$name'
12299 library_names_spec='$libname${shared_ext} $libname.a'
12300 dynamic_linker='OS/2 ld.exe'
12301 shlibpath_var=LIBPATH
12304 osf3* | osf4* | osf5*)
12308 soname_spec='${libname}${release}${shared_ext}$major'
12309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12324 soname_spec='${libname}${release}${shared_ext}$major'
12325 shlibpath_var=LD_LIBRARY_PATH
12326 shlibpath_overrides_runpath=yes
12327 hardcode_into_libs=yes
12328 # ldd complains unless libraries are executable
12329 postinstall_cmds='chmod +x $lib'
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 shlibpath_overrides_runpath=yes
12338 if test "$with_gnu_ld" = yes; then
12346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12347 soname_spec='${libname}${release}${shared_ext}$major'
12348 shlibpath_var=LD_LIBRARY_PATH
12349 case $host_vendor in
12351 shlibpath_overrides_runpath=no
12353 runpath_var=LD_RUN_PATH
12361 shlibpath_overrides_runpath=no
12362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12368 if test -d /usr/nec ;then
12370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12371 soname_spec='$libname${shared_ext}.$major'
12372 shlibpath_var=LD_LIBRARY_PATH
12376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12377 version_type=freebsd-elf
12380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12381 soname_spec='${libname}${release}${shared_ext}$major'
12382 shlibpath_var=LD_LIBRARY_PATH
12383 shlibpath_overrides_runpath=yes
12384 hardcode_into_libs=yes
12385 if test "$with_gnu_ld" = yes; then
12386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12395 sys_lib_dlsearch_path_spec='/usr/lib'
12399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath=no
12406 hardcode_into_libs=yes
12411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12412 soname_spec='${libname}${release}${shared_ext}$major'
12413 shlibpath_var=LD_LIBRARY_PATH
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12421 $as_echo "$dynamic_linker" >&6; }
12422 test "$dynamic_linker" = no && can_build_shared=no
12424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12425 if test "$GCC" = yes; then
12426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12429 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12430 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12433 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12528 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12530 if test -n "$hardcode_libdir_flag_spec" ||
12531 test -n "$runpath_var" ||
12532 test "X$hardcode_automatic" = "Xyes" ; then
12534 # We can hardcode non-existent directories.
12535 if test "$hardcode_direct" != no &&
12536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12537 # have to relink, otherwise we might link with an installed library
12538 # when we should be linking with a yet-to-be-installed one
12539 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12540 test "$hardcode_minus_L" != no; then
12541 # Linking always hardcodes the temporary library directory.
12542 hardcode_action=relink
12544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12545 hardcode_action=immediate
12548 # We cannot hardcode anything, or else we can only hardcode existing
12550 hardcode_action=unsupported
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12553 $as_echo "$hardcode_action" >&6; }
12555 if test "$hardcode_action" = relink ||
12556 test "$inherit_rpath" = yes; then
12557 # Fast installation is not supported
12558 enable_fast_install=no
12559 elif test "$shlibpath_overrides_runpath" = yes ||
12560 test "$enable_shared" = no; then
12561 # Fast installation is not necessary
12562 enable_fast_install=needless
12570 if test "x$enable_dlopen" != xyes; then
12571 enable_dlopen=unknown
12572 enable_dlopen_self=unknown
12573 enable_dlopen_self_static=unknown
12580 lt_cv_dlopen="load_add_on"
12582 lt_cv_dlopen_self=yes
12585 mingw* | pw32* | cegcc*)
12586 lt_cv_dlopen="LoadLibrary"
12591 lt_cv_dlopen="dlopen"
12596 # if libdl is installed we need to link against it
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12598 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12599 if ${ac_cv_lib_dl_dlopen+:} false; then :
12600 $as_echo_n "(cached) " >&6
12602 ac_check_lib_save_LIBS=$LIBS
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12622 if ac_fn_c_try_link "$LINENO"; then :
12623 ac_cv_lib_dl_dlopen=yes
12625 ac_cv_lib_dl_dlopen=no
12627 rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12633 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12637 lt_cv_dlopen="dyld"
12639 lt_cv_dlopen_self=yes
12646 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12647 if test "x$ac_cv_func_shl_load" = xyes; then :
12648 lt_cv_dlopen="shl_load"
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12651 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12652 if ${ac_cv_lib_dld_shl_load+:} false; then :
12653 $as_echo_n "(cached) " >&6
12655 ac_check_lib_save_LIBS=$LIBS
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12660 /* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply. */
12670 return shl_load ();
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 ac_cv_lib_dld_shl_load=yes
12678 ac_cv_lib_dld_shl_load=no
12680 rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12682 LIBS=$ac_check_lib_save_LIBS
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12685 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12686 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12687 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12689 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12690 if test "x$ac_cv_func_dlopen" = xyes; then :
12691 lt_cv_dlopen="dlopen"
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12695 if ${ac_cv_lib_dl_dlopen+:} false; then :
12696 $as_echo_n "(cached) " >&6
12698 ac_check_lib_save_LIBS=$LIBS
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12718 if ac_fn_c_try_link "$LINENO"; then :
12719 ac_cv_lib_dl_dlopen=yes
12721 ac_cv_lib_dl_dlopen=no
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12733 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12734 if ${ac_cv_lib_svld_dlopen+:} false; then :
12735 $as_echo_n "(cached) " >&6
12737 ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lsvld $LIBS"
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12742 /* Override any GCC internal prototype to avoid an error.
12743 Use char because int might match the return type of a GCC
12744 builtin and then its argument prototype would still apply. */
12757 if ac_fn_c_try_link "$LINENO"; then :
12758 ac_cv_lib_svld_dlopen=yes
12760 ac_cv_lib_svld_dlopen=no
12762 rm -f core conftest.err conftest.$ac_objext \
12763 conftest$ac_exeext conftest.$ac_ext
12764 LIBS=$ac_check_lib_save_LIBS
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12767 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12768 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12772 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12773 if ${ac_cv_lib_dld_dld_link+:} false; then :
12774 $as_echo_n "(cached) " >&6
12776 ac_check_lib_save_LIBS=$LIBS
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12781 /* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12791 return dld_link ();
12796 if ac_fn_c_try_link "$LINENO"; then :
12797 ac_cv_lib_dld_dld_link=yes
12799 ac_cv_lib_dld_dld_link=no
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12806 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12807 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12808 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12829 if test "x$lt_cv_dlopen" != xno; then
12835 case $lt_cv_dlopen in
12837 save_CPPFLAGS="$CPPFLAGS"
12838 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12840 save_LDFLAGS="$LDFLAGS"
12841 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12844 LIBS="$lt_cv_dlopen_libs $LIBS"
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12847 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12848 if ${lt_cv_dlopen_self+:} false; then :
12849 $as_echo_n "(cached) " >&6
12851 if test "$cross_compiling" = yes; then :
12852 lt_cv_dlopen_self=cross
12854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12855 lt_status=$lt_dlunknown
12856 cat > conftest.$ac_ext <<_LT_EOF
12857 #line $LINENO "configure"
12858 #include "confdefs.h"
12867 # define LT_DLGLOBAL RTLD_GLOBAL
12870 # define LT_DLGLOBAL DL_GLOBAL
12872 # define LT_DLGLOBAL 0
12876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12877 find out it does not work in some platform. */
12878 #ifndef LT_DLLAZY_OR_NOW
12880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12883 # define LT_DLLAZY_OR_NOW DL_LAZY
12886 # define LT_DLLAZY_OR_NOW RTLD_NOW
12889 # define LT_DLLAZY_OR_NOW DL_NOW
12891 # define LT_DLLAZY_OR_NOW 0
12898 /* When -fvisbility=hidden is used, assume the code has been annotated
12899 correspondingly for the symbols needed. */
12900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12901 int fnord () __attribute__((visibility("default")));
12904 int fnord () { return 42; }
12907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12908 int status = $lt_dlunknown;
12912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12916 else puts (dlerror ());
12918 /* dlclose (self); */
12926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12927 (eval $ac_link) 2>&5
12929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12931 (./conftest; exit; ) >&5 2>/dev/null
12933 case x$lt_status in
12934 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12935 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12936 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12939 # compilation failed
12940 lt_cv_dlopen_self=no
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12948 $as_echo "$lt_cv_dlopen_self" >&6; }
12950 if test "x$lt_cv_dlopen_self" = xyes; then
12951 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12953 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12954 if ${lt_cv_dlopen_self_static+:} false; then :
12955 $as_echo_n "(cached) " >&6
12957 if test "$cross_compiling" = yes; then :
12958 lt_cv_dlopen_self_static=cross
12960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12961 lt_status=$lt_dlunknown
12962 cat > conftest.$ac_ext <<_LT_EOF
12963 #line $LINENO "configure"
12964 #include "confdefs.h"
12973 # define LT_DLGLOBAL RTLD_GLOBAL
12976 # define LT_DLGLOBAL DL_GLOBAL
12978 # define LT_DLGLOBAL 0
12982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12983 find out it does not work in some platform. */
12984 #ifndef LT_DLLAZY_OR_NOW
12986 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12989 # define LT_DLLAZY_OR_NOW DL_LAZY
12992 # define LT_DLLAZY_OR_NOW RTLD_NOW
12995 # define LT_DLLAZY_OR_NOW DL_NOW
12997 # define LT_DLLAZY_OR_NOW 0
13004 /* When -fvisbility=hidden is used, assume the code has been annotated
13005 correspondingly for the symbols needed. */
13006 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13007 int fnord () __attribute__((visibility("default")));
13010 int fnord () { return 42; }
13013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13014 int status = $lt_dlunknown;
13018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13021 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13022 else puts (dlerror ());
13024 /* dlclose (self); */
13032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13033 (eval $ac_link) 2>&5
13035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13037 (./conftest; exit; ) >&5 2>/dev/null
13039 case x$lt_status in
13040 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13041 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13042 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13045 # compilation failed
13046 lt_cv_dlopen_self_static=no
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13054 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13057 CPPFLAGS="$save_CPPFLAGS"
13058 LDFLAGS="$save_LDFLAGS"
13063 case $lt_cv_dlopen_self in
13064 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13065 *) enable_dlopen_self=unknown ;;
13068 case $lt_cv_dlopen_self_static in
13069 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13070 *) enable_dlopen_self_static=unknown ;;
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13093 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13094 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098 $as_echo "yes" >&6; }
13100 # FIXME - insert some real tests, host_os isn't really good enough
13103 if test -n "$STRIP" ; then
13104 striplib="$STRIP -x"
13105 old_striplib="$STRIP -S"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107 $as_echo "yes" >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13131 # Report which library types will actually be built
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13135 $as_echo "$can_build_shared" >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13138 $as_echo_n "checking whether to build shared libraries... " >&6; }
13139 test "$can_build_shared" = "no" && enable_shared=no
13141 # On AIX, shared libraries and static libraries use the same namespace, and
13142 # are all built from PIC.
13145 test "$enable_shared" = yes && enable_static=no
13146 if test -n "$RANLIB"; then
13147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13148 postinstall_cmds='$RANLIB $lib'
13153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13154 test "$enable_shared" = yes && enable_static=no
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13159 $as_echo "$enable_shared" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13162 $as_echo_n "checking whether to build static libraries... " >&6; }
13163 # Make sure either enable_shared or enable_static is yes.
13164 test "$enable_shared" = yes || enable_static=yes
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13166 $as_echo "$enable_static" >&6; }
13173 ac_cpp='$CPP $CPPFLAGS'
13174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13180 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13181 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13182 (test "X$CXX" != "Xg++"))) ; then
13184 ac_cpp='$CXXCPP $CPPFLAGS'
13185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13189 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13190 if test -z "$CXXCPP"; then
13191 if ${ac_cv_prog_CXXCPP+:} false; then :
13192 $as_echo_n "(cached) " >&6
13194 # Double quotes because CXXCPP needs to be expanded
13195 for CXXCPP in "$CXX -E" "/lib/cpp"
13197 ac_preproc_ok=false
13198 for ac_cxx_preproc_warn_flag in '' yes
13200 # Use a header file that comes with gcc, so configuring glibc
13201 # with a fresh cross-compiler works.
13202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13203 # <limits.h> exists even on freestanding compilers.
13204 # On the NeXT, cc -E runs the code through the compiler's parser,
13205 # not just through cpp. "Syntax error" is here to catch this case.
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 # include <limits.h>
13211 # include <assert.h>
13215 if ac_fn_cxx_try_cpp "$LINENO"; then :
13218 # Broken: fails on valid input.
13221 rm -f conftest.err conftest.i conftest.$ac_ext
13223 # OK, works on sane cases. Now check whether nonexistent headers
13224 # can be detected and how.
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227 #include <ac_nonexistent.h>
13229 if ac_fn_cxx_try_cpp "$LINENO"; then :
13230 # Broken: success on invalid input.
13233 # Passes both tests.
13237 rm -f conftest.err conftest.i conftest.$ac_ext
13240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13241 rm -f conftest.i conftest.err conftest.$ac_ext
13242 if $ac_preproc_ok; then :
13247 ac_cv_prog_CXXCPP=$CXXCPP
13250 CXXCPP=$ac_cv_prog_CXXCPP
13252 ac_cv_prog_CXXCPP=$CXXCPP
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13255 $as_echo "$CXXCPP" >&6; }
13256 ac_preproc_ok=false
13257 for ac_cxx_preproc_warn_flag in '' yes
13259 # Use a header file that comes with gcc, so configuring glibc
13260 # with a fresh cross-compiler works.
13261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13262 # <limits.h> exists even on freestanding compilers.
13263 # On the NeXT, cc -E runs the code through the compiler's parser,
13264 # not just through cpp. "Syntax error" is here to catch this case.
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13268 # include <limits.h>
13270 # include <assert.h>
13274 if ac_fn_cxx_try_cpp "$LINENO"; then :
13277 # Broken: fails on valid input.
13280 rm -f conftest.err conftest.i conftest.$ac_ext
13282 # OK, works on sane cases. Now check whether nonexistent headers
13283 # can be detected and how.
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286 #include <ac_nonexistent.h>
13288 if ac_fn_cxx_try_cpp "$LINENO"; then :
13289 # Broken: success on invalid input.
13292 # Passes both tests.
13296 rm -f conftest.err conftest.i conftest.$ac_ext
13299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13300 rm -f conftest.i conftest.err conftest.$ac_ext
13301 if $ac_preproc_ok; then :
13304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13306 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13307 See \`config.log' for more details" "$LINENO" 5; }
13311 ac_cpp='$CPP $CPPFLAGS'
13312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317 _lt_caught_CXX_error=yes
13321 ac_cpp='$CXXCPP $CPPFLAGS'
13322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13326 archive_cmds_need_lc_CXX=no
13327 allow_undefined_flag_CXX=
13328 always_export_symbols_CXX=no
13329 archive_expsym_cmds_CXX=
13330 compiler_needs_object_CXX=no
13331 export_dynamic_flag_spec_CXX=
13332 hardcode_direct_CXX=no
13333 hardcode_direct_absolute_CXX=no
13334 hardcode_libdir_flag_spec_CXX=
13335 hardcode_libdir_flag_spec_ld_CXX=
13336 hardcode_libdir_separator_CXX=
13337 hardcode_minus_L_CXX=no
13338 hardcode_shlibpath_var_CXX=unsupported
13339 hardcode_automatic_CXX=no
13340 inherit_rpath_CXX=no
13342 module_expsym_cmds_CXX=
13343 link_all_deplibs_CXX=unknown
13344 old_archive_cmds_CXX=$old_archive_cmds
13345 reload_flag_CXX=$reload_flag
13346 reload_cmds_CXX=$reload_cmds
13347 no_undefined_flag_CXX=
13348 whole_archive_flag_spec_CXX=
13349 enable_shared_with_static_runtimes_CXX=no
13351 # Source file extension for C++ test sources.
13354 # Object file extension for compiled C++ test sources.
13358 # No sense in running all these tests if we already determined that
13359 # the CXX compiler isn't working. Some variables (like enable_shared)
13360 # are currently assumed to apply to all compilers on this platform,
13361 # and will be corrupted by setting them based on a non-working compiler.
13362 if test "$_lt_caught_CXX_error" != yes; then
13363 # Code to be used in simple compile tests
13364 lt_simple_compile_test_code="int some_variable = 0;"
13366 # Code to be used in simple link tests
13367 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13369 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13376 # If no C compiler was specified, use CC.
13379 # If no C compiler flags were specified, use CFLAGS.
13380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13382 # Allow CC to be a program name with arguments.
13386 # save warnings/boilerplate of simple test code
13387 ac_outfile=conftest.$ac_objext
13388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13390 _lt_compiler_boilerplate=`cat conftest.err`
13393 ac_outfile=conftest.$ac_objext
13394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13396 _lt_linker_boilerplate=`cat conftest.err`
13400 # Allow CC to be a program name with arguments.
13402 lt_save_CFLAGS=$CFLAGS
13406 lt_save_with_gnu_ld=$with_gnu_ld
13407 lt_save_path_LD=$lt_cv_path_LD
13408 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13409 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13411 $as_unset lt_cv_prog_gnu_ld
13413 if test -n "${lt_cv_path_LDCXX+set}"; then
13414 lt_cv_path_LD=$lt_cv_path_LDCXX
13416 $as_unset lt_cv_path_LD
13418 test -z "${LDCXX+set}" || LD=$LDCXX
13423 for cc_temp in $compiler""; do
13425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13431 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13434 if test -n "$compiler"; then
13435 # We don't want -fno-exception when compiling C++ code, so set the
13436 # no_builtin_flag separately
13437 if test "$GXX" = yes; then
13438 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13440 lt_prog_compiler_no_builtin_flag_CXX=
13443 if test "$GXX" = yes; then
13444 # Set up default GNU C++ configuration
13448 # Check whether --with-gnu-ld was given.
13449 if test "${with_gnu_ld+set}" = set; then :
13450 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13456 if test "$GCC" = yes; then
13457 # Check if gcc -print-prog-name=ld gives a path.
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13459 $as_echo_n "checking for ld used by $CC... " >&6; }
13462 # gcc leaves a trailing carriage return which upsets mingw
13463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13468 # Accept absolute paths.
13470 re_direlt='/[^/][^/]*/\.\./'
13471 # Canonicalize the pathname of ld
13472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13476 test -z "$LD" && LD="$ac_prog"
13479 # If it fails, then pretend we aren't using GCC.
13483 # If it is relative, then search for the first ld in PATH.
13484 with_gnu_ld=unknown
13487 elif test "$with_gnu_ld" = yes; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13489 $as_echo_n "checking for GNU ld... " >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13492 $as_echo_n "checking for non-GNU ld... " >&6; }
13494 if ${lt_cv_path_LD+:} false; then :
13495 $as_echo_n "(cached) " >&6
13497 if test -z "$LD"; then
13498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13499 for ac_dir in $PATH; do
13501 test -z "$ac_dir" && ac_dir=.
13502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13503 lt_cv_path_LD="$ac_dir/$ac_prog"
13504 # Check to see if the program is GNU ld. I'd rather use --version,
13505 # but apparently some variants of GNU ld only accept -v.
13506 # Break only if it was the GNU/non-GNU ld that we prefer.
13507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13508 *GNU* | *'with BFD'*)
13509 test "$with_gnu_ld" != no && break
13512 test "$with_gnu_ld" != yes && break
13519 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13523 LD="$lt_cv_path_LD"
13524 if test -n "$LD"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13526 $as_echo "$LD" >&6; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13531 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13533 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13534 if ${lt_cv_prog_gnu_ld+:} false; then :
13535 $as_echo_n "(cached) " >&6
13537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13538 case `$LD -v 2>&1 </dev/null` in
13539 *GNU* | *'with BFD'*)
13540 lt_cv_prog_gnu_ld=yes
13543 lt_cv_prog_gnu_ld=no
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13548 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13549 with_gnu_ld=$lt_cv_prog_gnu_ld
13557 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13558 # archiving commands below assume that GNU ld is being used.
13559 if test "$with_gnu_ld" = yes; then
13560 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13564 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566 # If archive_cmds runs LD, not CC, wlarc should be empty
13567 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13568 # investigate it a little bit more. (MM)
13571 # ancient GNU ld didn't support --whole-archive et. al.
13572 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13573 $GREP 'no-whole-archive' > /dev/null; then
13574 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13576 whole_archive_flag_spec_CXX=
13582 # A generic and very simple default shared library creation
13583 # command for GNU C++ for the case where it uses the native
13584 # linker, instead of GNU ld. If possible, this setting should
13585 # overridden to take advantage of the native linker features on
13586 # the platform it is being used on.
13587 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13590 # Commands to make compiler produce verbose output that lists
13591 # what "hidden" libraries, object files and flags are used when
13592 # linking a shared library.
13593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13601 # PORTME: fill in a description of your system's C++ link characteristics
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13607 # FIXME: insert proper C++ library support
13611 if test "$host_cpu" = ia64; then
13612 # On IA64, the linker does run time linking by default, so we don't
13613 # have to do anything special.
13614 aix_use_runtimelinking=no
13615 exp_sym_flag='-Bexport'
13618 aix_use_runtimelinking=no
13620 # Test if we are trying to use run time linking or normal
13621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13622 # need to do runtime linking.
13623 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13624 for ld_flag in $LDFLAGS; do
13627 aix_use_runtimelinking=yes
13635 exp_sym_flag='-bexport'
13636 no_entry_flag='-bnoentry'
13639 # When large executables or shared objects are built, AIX ld can
13640 # have problems creating the table of contents. If linking a library
13641 # or program results in "error TOC overflow" add -mminimal-toc to
13642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13645 archive_cmds_CXX=''
13646 hardcode_direct_CXX=yes
13647 hardcode_direct_absolute_CXX=yes
13648 hardcode_libdir_separator_CXX=':'
13649 link_all_deplibs_CXX=yes
13650 file_list_spec_CXX='${wl}-f,'
13652 if test "$GXX" = yes; then
13653 case $host_os in aix4.[012]|aix4.[012].*)
13654 # We only want to do this on AIX 4.2 and lower, the check
13655 # below for broken collect2 doesn't work under 4.3+
13656 collect2name=`${CC} -print-prog-name=collect2`
13657 if test -f "$collect2name" &&
13658 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13660 # We have reworked collect2
13663 # We have old collect2
13664 hardcode_direct_CXX=unsupported
13665 # It fails to find uninstalled libraries when the uninstalled
13666 # path is not listed in the libpath. Setting hardcode_minus_L
13667 # to unsupported forces relinking
13668 hardcode_minus_L_CXX=yes
13669 hardcode_libdir_flag_spec_CXX='-L$libdir'
13670 hardcode_libdir_separator_CXX=
13673 shared_flag='-shared'
13674 if test "$aix_use_runtimelinking" = yes; then
13675 shared_flag="$shared_flag "'${wl}-G'
13679 if test "$host_cpu" = ia64; then
13680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13681 # chokes on -Wl,-G. The following line is correct:
13684 if test "$aix_use_runtimelinking" = yes; then
13685 shared_flag='${wl}-G'
13687 shared_flag='${wl}-bM:SRE'
13692 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13693 # It seems that -bexpall does not export symbols beginning with
13694 # underscore (_), so it is better to generate a list of symbols to
13696 always_export_symbols_CXX=yes
13697 if test "$aix_use_runtimelinking" = yes; then
13698 # Warning - without using the other runtime loading flags (-brtl),
13699 # -berok will link without error, but may produce a broken library.
13700 allow_undefined_flag_CXX='-berok'
13701 # Determine the default libpath from the value encoded in an empty
13703 if test "${lt_cv_aix_libpath+set}" = set; then
13704 aix_libpath=$lt_cv_aix_libpath
13706 if ${lt_cv_aix_libpath__CXX+:} false; then :
13707 $as_echo_n "(cached) " >&6
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13720 if ac_fn_cxx_try_link "$LINENO"; then :
13722 lt_aix_libpath_sed='
13723 /Import File Strings/,/^$/ {
13725 s/^0 *\([^ ]*\) *$/\1/
13729 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13730 # Check for a 64-bit object if we didn't find anything.
13731 if test -z "$lt_cv_aix_libpath__CXX"; then
13732 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13735 rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13737 if test -z "$lt_cv_aix_libpath__CXX"; then
13738 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13743 aix_libpath=$lt_cv_aix_libpath__CXX
13746 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13748 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13750 if test "$host_cpu" = ia64; then
13751 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13752 allow_undefined_flag_CXX="-z nodefs"
13753 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"
13755 # Determine the default libpath from the value encoded in an
13756 # empty executable.
13757 if test "${lt_cv_aix_libpath+set}" = set; then
13758 aix_libpath=$lt_cv_aix_libpath
13760 if ${lt_cv_aix_libpath__CXX+:} false; then :
13761 $as_echo_n "(cached) " >&6
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13774 if ac_fn_cxx_try_link "$LINENO"; then :
13776 lt_aix_libpath_sed='
13777 /Import File Strings/,/^$/ {
13779 s/^0 *\([^ ]*\) *$/\1/
13783 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13784 # Check for a 64-bit object if we didn't find anything.
13785 if test -z "$lt_cv_aix_libpath__CXX"; then
13786 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
13791 if test -z "$lt_cv_aix_libpath__CXX"; then
13792 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13797 aix_libpath=$lt_cv_aix_libpath__CXX
13800 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13801 # Warning - without using the other run time loading flags,
13802 # -berok will link without error, but may produce a broken library.
13803 no_undefined_flag_CXX=' ${wl}-bernotok'
13804 allow_undefined_flag_CXX=' ${wl}-berok'
13805 if test "$with_gnu_ld" = yes; then
13806 # We only use this code for GNU lds that support --whole-archive.
13807 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13809 # Exported symbols can be pulled into shared objects from archives
13810 whole_archive_flag_spec_CXX='$convenience'
13812 archive_cmds_need_lc_CXX=yes
13813 # This is similar to how AIX traditionally builds its shared
13815 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'
13821 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13822 allow_undefined_flag_CXX=unsupported
13823 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13824 # support --undefined. This deserves some investigation. FIXME
13825 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832 case $cc_basename in
13834 # FIXME: insert proper C++ library support
13840 cygwin* | mingw* | pw32* | cegcc*)
13841 case $GXX,$cc_basename in
13844 # hardcode_libdir_flag_spec is actually meaningless, as there is
13845 # no search path for DLLs.
13846 hardcode_libdir_flag_spec_CXX=' '
13847 allow_undefined_flag_CXX=unsupported
13848 always_export_symbols_CXX=yes
13849 file_list_spec_CXX='@'
13850 # Tell ltmain to make .lib files, not .a files.
13852 # Tell ltmain to make .dll files, not .so files.
13854 # FIXME: Setting linknames here is a bad hack.
13855 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13856 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13857 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13859 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13861 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13863 # The linker will not automatically build a static lib if we build a DLL.
13864 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13865 enable_shared_with_static_runtimes_CXX=yes
13867 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13868 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13869 lt_tool_outputfile="@TOOL_OUTPUT@"~
13870 case $lt_outputfile in
13873 lt_outputfile="$lt_outputfile.exe"
13874 lt_tool_outputfile="$lt_tool_outputfile.exe"
13877 func_to_tool_file "$lt_outputfile"~
13878 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13879 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13880 $RM "$lt_outputfile.manifest";
13885 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13886 # as there is no search path for DLLs.
13887 hardcode_libdir_flag_spec_CXX='-L$libdir'
13888 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13889 allow_undefined_flag_CXX=unsupported
13890 always_export_symbols_CXX=no
13891 enable_shared_with_static_runtimes_CXX=yes
13893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13894 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'
13895 # If the export-symbols file already is a .def file (1st line
13896 # is EXPORTS), use it as is; otherwise, prepend...
13897 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13898 cp $export_symbols $output_objdir/$soname.def;
13900 echo EXPORTS > $output_objdir/$soname.def;
13901 cat $export_symbols >> $output_objdir/$soname.def;
13903 $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'
13910 darwin* | rhapsody*)
13913 archive_cmds_need_lc_CXX=no
13914 hardcode_direct_CXX=no
13915 hardcode_automatic_CXX=yes
13916 hardcode_shlibpath_var_CXX=unsupported
13917 if test "$lt_cv_ld_force_load" = "yes"; then
13918 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13920 whole_archive_flag_spec_CXX=''
13922 link_all_deplibs_CXX=yes
13923 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13924 case $cc_basename in
13925 ifort*) _lt_dar_can_shared=yes ;;
13926 *) _lt_dar_can_shared=$GCC ;;
13928 if test "$_lt_dar_can_shared" = "yes"; then
13929 output_verbose_link_cmd=func_echo_all
13930 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}"
13931 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13932 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}"
13933 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}"
13934 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13935 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}"
13936 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}"
13946 case $cc_basename in
13948 # FIXME: insert proper C++ library support
13952 # Green Hills C++ Compiler
13953 # FIXME: insert proper C++ library support
13957 # FIXME: insert proper C++ library support
13964 # C++ shared libraries reported to be fairly broken before
13970 archive_cmds_need_lc_CXX=no
13973 freebsd* | dragonfly*)
13974 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13983 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13984 link_all_deplibs_CXX=yes
13988 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13989 hardcode_libdir_separator_CXX=:
13990 export_dynamic_flag_spec_CXX='${wl}-E'
13991 hardcode_direct_CXX=yes
13992 hardcode_minus_L_CXX=yes # Not in the search PATH,
13993 # but as the default
13994 # location of the library.
13996 case $cc_basename in
13998 # FIXME: insert proper C++ library support
14002 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'
14003 # Commands to make compiler produce verbose output that lists
14004 # what "hidden" libraries, object files and flags are used when
14005 # linking a shared library.
14007 # There doesn't appear to be a way to prevent this compiler from
14008 # explicitly linking system object files so we need to strip them
14009 # from the output so that they don't get included in the library
14011 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; func_echo_all "$list"'
14014 if test "$GXX" = yes; then
14015 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
14017 # FIXME: insert proper C++ library support
14025 if test $with_gnu_ld = no; then
14026 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14027 hardcode_libdir_separator_CXX=:
14033 export_dynamic_flag_spec_CXX='${wl}-E'
14039 hardcode_direct_CXX=no
14040 hardcode_shlibpath_var_CXX=no
14043 hardcode_direct_CXX=yes
14044 hardcode_direct_absolute_CXX=yes
14045 hardcode_minus_L_CXX=yes # Not in the search PATH,
14046 # but as the default
14047 # location of the library.
14051 case $cc_basename in
14053 # FIXME: insert proper C++ library support
14059 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14065 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14068 # Commands to make compiler produce verbose output that lists
14069 # what "hidden" libraries, object files and flags are used when
14070 # linking a shared library.
14072 # There doesn't appear to be a way to prevent this compiler from
14073 # explicitly linking system object files so we need to strip them
14074 # from the output so that they don't get included in the library
14076 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; func_echo_all "$list"'
14079 if test "$GXX" = yes; then
14080 if test $with_gnu_ld = no; then
14083 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14086 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14089 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14094 # FIXME: insert proper C++ library support
14102 hardcode_direct_CXX=no
14103 hardcode_shlibpath_var_CXX=no
14104 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14105 export_dynamic_flag_spec_CXX='${wl}-E'
14106 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14107 # Instead, shared libraries are loaded at an image base (0x10000000 by
14108 # default) and relocated if they conflict, which is a slow very memory
14109 # consuming and fragmenting process. To avoid this, we pick a random,
14110 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14111 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14112 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'
14113 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'
14116 case $cc_basename in
14119 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14121 # Archives containing C++ object files must be created using
14122 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14123 # necessary to make sure instantiated templates are included
14125 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14128 if test "$GXX" = yes; then
14129 if test "$with_gnu_ld" = no; then
14130 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14132 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14135 link_all_deplibs_CXX=yes
14138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14139 hardcode_libdir_separator_CXX=:
14140 inherit_rpath_CXX=yes
14143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14144 case $cc_basename in
14146 # Kuck and Associates, Inc. (KAI) C++ Compiler
14148 # KCC will only create a shared library if the output file
14149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14150 # to its proper name (with version) after linking.
14151 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'
14152 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'
14153 # Commands to make compiler produce verbose output that lists
14154 # what "hidden" libraries, object files and flags are used when
14155 # linking a shared library.
14157 # There doesn't appear to be a way to prevent this compiler from
14158 # explicitly linking system object files so we need to strip them
14159 # from the output so that they don't get included in the library
14161 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; func_echo_all "$list"'
14163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14166 # Archives containing C++ object files must be created using
14167 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14168 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14173 # version 8.0 and above of icpc choke on multiply defined symbols
14174 # if we add $predep_objects and $postdep_objects, however 7.1 and
14175 # earlier do not add the objects themselves.
14176 case `$CC -V 2>&1` in
14178 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14179 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'
14181 *) # Version 8.0 or newer
14184 ia64*) tmp_idyn=' -i_dynamic';;
14186 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14187 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'
14190 archive_cmds_need_lc_CXX=no
14191 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14193 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14196 # Portland Group C++ compiler
14198 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14199 prelink_cmds_CXX='tpldir=Template.dir~
14201 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14202 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14203 old_archive_cmds_CXX='tpldir=Template.dir~
14205 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14206 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14208 archive_cmds_CXX='tpldir=Template.dir~
14210 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14211 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14212 archive_expsym_cmds_CXX='tpldir=Template.dir~
14214 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14215 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14217 *) # Version 6 and above use weak symbols
14218 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14219 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'
14223 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14225 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230 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'
14232 runpath_var=LD_RUN_PATH
14233 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14234 hardcode_libdir_separator_CXX=:
14236 # Commands to make compiler produce verbose output that lists
14237 # what "hidden" libraries, object files and flags are used when
14238 # linking a shared library.
14240 # There doesn't appear to be a way to prevent this compiler from
14241 # explicitly linking system object files so we need to strip them
14242 # from the output so that they don't get included in the library
14244 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14246 xl* | mpixl* | bgxl*)
14247 # IBM XL 8.0 on PPC, with GNU ld
14248 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14249 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14250 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14251 if test "x$supports_anon_versioning" = xyes; then
14252 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14254 echo "local: *; };" >> $output_objdir/$libname.ver~
14255 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14259 case `$CC -V 2>&1 | sed 5q` in
14262 no_undefined_flag_CXX=' -zdefs'
14263 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14264 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'
14265 hardcode_libdir_flag_spec_CXX='-R$libdir'
14266 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14267 compiler_needs_object_CXX=yes
14269 # Not sure whether something based on
14270 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14272 output_verbose_link_cmd='func_echo_all'
14274 # Archives containing C++ object files must be created using
14275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14276 # necessary to make sure instantiated templates are included
14278 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14286 # FIXME: insert proper C++ library support
14291 # FIXME: insert proper C++ library support
14296 case $cc_basename in
14298 # FIXME: insert proper C++ library support
14302 # FIXME: insert proper C++ library support
14309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14310 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14312 hardcode_libdir_flag_spec_CXX='-R$libdir'
14313 hardcode_direct_CXX=yes
14314 hardcode_shlibpath_var_CXX=no
14316 # Workaround some broken pre-1.5 toolchains
14317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14325 # C++ shared libraries are fairly broken
14330 if test -f /usr/libexec/ld.so; then
14331 hardcode_direct_CXX=yes
14332 hardcode_shlibpath_var_CXX=no
14333 hardcode_direct_absolute_CXX=yes
14334 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14337 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14338 export_dynamic_flag_spec_CXX='${wl}-E'
14339 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14341 output_verbose_link_cmd=func_echo_all
14347 osf3* | osf4* | osf5*)
14348 case $cc_basename in
14350 # Kuck and Associates, Inc. (KAI) C++ Compiler
14352 # KCC will only create a shared library if the output file
14353 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14354 # to its proper name (with version) after linking.
14355 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'
14357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14358 hardcode_libdir_separator_CXX=:
14360 # Archives containing C++ object files must be created using
14361 # the KAI C++ compiler.
14363 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14364 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14368 # Rational C++ 2.4.1
14369 # FIXME: insert proper C++ library support
14375 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14376 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14377 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14380 allow_undefined_flag_CXX=' -expect_unresolved \*'
14381 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14382 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14383 echo "-hidden">> $lib.exp~
14384 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14386 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14390 hardcode_libdir_separator_CXX=:
14392 # Commands to make compiler produce verbose output that lists
14393 # what "hidden" libraries, object files and flags are used when
14394 # linking a shared library.
14396 # There doesn't appear to be a way to prevent this compiler from
14397 # explicitly linking system object files so we need to strip them
14398 # from the output so that they don't get included in the library
14400 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14403 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14404 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14407 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14410 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14415 hardcode_libdir_separator_CXX=:
14417 # Commands to make compiler produce verbose output that lists
14418 # what "hidden" libraries, object files and flags are used when
14419 # linking a shared library.
14420 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14423 # FIXME: insert proper C++ library support
14431 # FIXME: insert proper C++ library support
14436 case $cc_basename in
14439 # FIXME: insert proper C++ library support
14444 # FIXME: insert proper C++ library support
14448 # FIXME: insert proper C++ library support
14455 case $cc_basename in
14457 # Sun C++ 4.2, 5.x and Centerline C++
14458 archive_cmds_need_lc_CXX=yes
14459 no_undefined_flag_CXX=' -zdefs'
14460 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14461 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14462 $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'
14464 hardcode_libdir_flag_spec_CXX='-R$libdir'
14465 hardcode_shlibpath_var_CXX=no
14467 solaris2.[0-5] | solaris2.[0-5].*) ;;
14469 # The compiler driver will combine and reorder linker options,
14470 # but understands `-z linker_flag'.
14471 # Supported since Solaris 2.6 (maybe 2.5.1?)
14472 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14475 link_all_deplibs_CXX=yes
14477 output_verbose_link_cmd='func_echo_all'
14479 # Archives containing C++ object files must be created using
14480 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14481 # necessary to make sure instantiated templates are included
14483 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14486 # Green Hills C++ Compiler
14487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14489 # The C++ compiler must be used to create the archive.
14490 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14493 # GNU C++ compiler with Solaris linker
14494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14495 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14496 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14497 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14498 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14499 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14501 # Commands to make compiler produce verbose output that lists
14502 # what "hidden" libraries, object files and flags are used when
14503 # linking a shared library.
14504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14506 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14508 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14509 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14510 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14512 # Commands to make compiler produce verbose output that lists
14513 # what "hidden" libraries, object files and flags are used when
14514 # linking a shared library.
14515 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14518 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14520 solaris2.[0-5] | solaris2.[0-5].*) ;;
14522 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14530 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14531 no_undefined_flag_CXX='${wl}-z,text'
14532 archive_cmds_need_lc_CXX=no
14533 hardcode_shlibpath_var_CXX=no
14534 runpath_var='LD_RUN_PATH'
14536 case $cc_basename in
14538 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14539 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548 sysv5* | sco3.2v5* | sco5v6*)
14549 # Note: We can NOT use -z defs as we might desire, because we do not
14550 # link with -lc, and that would cause any symbols used from libc to
14551 # always be unresolved, which means just about no library would
14552 # ever link correctly. If we're not using GNU ld we use -z text
14553 # though, which does catch some bad symbols but isn't as heavy-handed
14555 no_undefined_flag_CXX='${wl}-z,text'
14556 allow_undefined_flag_CXX='${wl}-z,nodefs'
14557 archive_cmds_need_lc_CXX=no
14558 hardcode_shlibpath_var_CXX=no
14559 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14560 hardcode_libdir_separator_CXX=':'
14561 link_all_deplibs_CXX=yes
14562 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14563 runpath_var='LD_RUN_PATH'
14565 case $cc_basename in
14567 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14569 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14570 '"$old_archive_cmds_CXX"
14571 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14572 '"$reload_cmds_CXX"
14575 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14576 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 case $cc_basename in
14584 # NonStop-UX NCC 3.20
14585 # FIXME: insert proper C++ library support
14589 # FIXME: insert proper C++ library support
14596 # FIXME: insert proper C++ library support
14601 # FIXME: insert proper C++ library support
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14607 $as_echo "$ld_shlibs_CXX" >&6; }
14608 test "$ld_shlibs_CXX" = no && can_build_shared=no
14614 ## There is no encapsulation within the following macros, do not change
14615 ## the running order or otherwise move them around unless you know exactly
14616 ## what you are doing...
14617 # Dependencies to place before and after the object being linked:
14618 predep_objects_CXX=
14619 postdep_objects_CXX=
14622 compiler_lib_search_path_CXX=
14624 cat > conftest.$ac_ext <<_LT_EOF
14628 Foo (void) { a = 0; }
14635 _lt_libdeps_save_CFLAGS=$CFLAGS
14636 case "$CC $CFLAGS " in #(
14637 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14638 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14642 (eval $ac_compile) 2>&5
14644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645 test $ac_status = 0; }; then
14646 # Parse the compiler output and extract the necessary
14647 # objects, libraries and library flags.
14649 # Sentinel used to keep track of whether or not we are before
14650 # the conftest object file.
14651 pre_test_object_deps_done=no
14653 for p in `eval "$output_verbose_link_cmd"`; do
14654 case ${prev}${p} in
14657 # Some compilers place space between "-{L,R}" and the path.
14658 # Remove the space.
14659 if test $p = "-L" ||
14660 test $p = "-R"; then
14665 # Expand the sysroot to ease extracting the directories later.
14666 if test -z "$prev"; then
14668 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14669 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14670 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14674 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14676 if test "$pre_test_object_deps_done" = no; then
14679 # Internal compiler library paths should come after those
14680 # provided the user. The postdeps already come after the
14681 # user supplied libs so there is no need to process them.
14682 if test -z "$compiler_lib_search_path_CXX"; then
14683 compiler_lib_search_path_CXX="${prev}${p}"
14685 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14688 # The "-l" case would never come before the object being
14689 # linked, so don't bother handling this case.
14692 if test -z "$postdeps_CXX"; then
14693 postdeps_CXX="${prev}${p}"
14695 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14701 *.lto.$objext) ;; # Ignore GCC LTO objects
14703 # This assumes that the test object file only shows up
14704 # once in the compiler output.
14705 if test "$p" = "conftest.$objext"; then
14706 pre_test_object_deps_done=yes
14710 if test "$pre_test_object_deps_done" = no; then
14711 if test -z "$predep_objects_CXX"; then
14712 predep_objects_CXX="$p"
14714 predep_objects_CXX="$predep_objects_CXX $p"
14717 if test -z "$postdep_objects_CXX"; then
14718 postdep_objects_CXX="$p"
14720 postdep_objects_CXX="$postdep_objects_CXX $p"
14725 *) ;; # Ignore the rest.
14733 echo "libtool.m4: error: problem compiling CXX test program"
14736 $RM -f confest.$objext
14737 CFLAGS=$_lt_libdeps_save_CFLAGS
14739 # PORTME: override above test on systems where it is broken
14742 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14743 # hack all around it, let's just trust "g++" to DTRT.
14744 predep_objects_CXX=
14745 postdep_objects_CXX=
14750 case `$CC -V 2>&1 | sed 5q` in
14754 # The more standards-conforming stlport4 library is
14755 # incompatible with the Cstd library. Avoid specifying
14756 # it if it's in CXXFLAGS. Ignore libCrun as
14757 # -library=stlport4 depends on it.
14758 case " $CXX $CXXFLAGS " in
14759 *" -library=stlport4 "*)
14760 solaris_use_stlport4=yes
14764 if test "$solaris_use_stlport4" != yes; then
14765 postdeps_CXX='-library=Cstd -library=Crun'
14772 case $cc_basename in
14774 # The more standards-conforming stlport4 library is
14775 # incompatible with the Cstd library. Avoid specifying
14776 # it if it's in CXXFLAGS. Ignore libCrun as
14777 # -library=stlport4 depends on it.
14778 case " $CXX $CXXFLAGS " in
14779 *" -library=stlport4 "*)
14780 solaris_use_stlport4=yes
14784 # Adding this requires a known-good setup of shared libraries for
14785 # Sun compiler versions before 5.6, else PIC objects from an old
14786 # archive will be linked into the output, leading to subtle bugs.
14787 if test "$solaris_use_stlport4" != yes; then
14788 postdeps_CXX='-library=Cstd -library=Crun'
14796 case " $postdeps_CXX " in
14797 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14799 compiler_lib_search_dirs_CXX=
14800 if test -n "${compiler_lib_search_path_CXX}"; then
14801 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14834 lt_prog_compiler_wl_CXX=
14835 lt_prog_compiler_pic_CXX=
14836 lt_prog_compiler_static_CXX=
14839 # C++ specific cases for pic, static, wl, etc.
14840 if test "$GXX" = yes; then
14841 lt_prog_compiler_wl_CXX='-Wl,'
14842 lt_prog_compiler_static_CXX='-static'
14846 # All AIX code is PIC.
14847 if test "$host_cpu" = ia64; then
14848 # AIX 5 now supports IA64 processor
14849 lt_prog_compiler_static_CXX='-Bstatic'
14856 # see comment about AmigaOS4 .so support
14857 lt_prog_compiler_pic_CXX='-fPIC'
14860 # FIXME: we need at least 68020 code to build shared libraries, but
14861 # adding the `-m68020' flag to GCC prevents building anything better,
14863 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14868 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14869 # PIC is the default for these OSes.
14871 mingw* | cygwin* | os2* | pw32* | cegcc*)
14872 # This hack is so that the source file can tell whether it is being
14873 # built for inclusion in a dll (and should export symbols for example).
14874 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14875 # (--disable-auto-import) libraries
14876 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14878 darwin* | rhapsody*)
14879 # PIC is the default on this platform
14880 # Common symbols not allowed in MH_DYLIB files
14881 lt_prog_compiler_pic_CXX='-fno-common'
14884 # DJGPP does not support shared libraries at all
14885 lt_prog_compiler_pic_CXX=
14888 # PIC is the default for Haiku.
14889 # The "-static" flag exists, but is broken.
14890 lt_prog_compiler_static_CXX=
14893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14894 # Instead, we relocate shared libraries at runtime.
14897 if test -d /usr/nec; then
14898 lt_prog_compiler_pic_CXX=-Kconform_pic
14902 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14903 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14904 # sets the default TLS model and affects inlining.
14909 lt_prog_compiler_pic_CXX='-fPIC'
14914 # QNX uses GNU C++, but need to define -shared option too, otherwise
14915 # it will coredump.
14916 lt_prog_compiler_pic_CXX='-fPIC -shared'
14919 lt_prog_compiler_pic_CXX='-fPIC'
14925 # All AIX code is PIC.
14926 if test "$host_cpu" = ia64; then
14927 # AIX 5 now supports IA64 processor
14928 lt_prog_compiler_static_CXX='-Bstatic'
14930 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14934 case $cc_basename in
14936 # Green Hills C++ Compiler
14937 # _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"
14941 mingw* | cygwin* | os2* | pw32* | cegcc*)
14942 # This hack is so that the source file can tell whether it is being
14943 # built for inclusion in a dll (and should export symbols for example).
14944 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14947 case $cc_basename in
14949 lt_prog_compiler_pic_CXX='-KPIC'
14952 # Green Hills C++ Compiler
14953 lt_prog_compiler_pic_CXX='-pic'
14959 freebsd* | dragonfly*)
14960 # FreeBSD uses GNU C++
14962 hpux9* | hpux10* | hpux11*)
14963 case $cc_basename in
14965 lt_prog_compiler_wl_CXX='-Wl,'
14966 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14967 if test "$host_cpu" != ia64; then
14968 lt_prog_compiler_pic_CXX='+Z'
14972 lt_prog_compiler_wl_CXX='-Wl,'
14973 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14979 lt_prog_compiler_pic_CXX='+Z'
14988 # This is c89, which is MS Visual C++ (no shared libs)
14989 # Anyone wants to do a port?
14991 irix5* | irix6* | nonstopux*)
14992 case $cc_basename in
14994 lt_prog_compiler_wl_CXX='-Wl,'
14995 lt_prog_compiler_static_CXX='-non_shared'
14996 # CC pic flag -KPIC is the default.
15002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15003 case $cc_basename in
15006 lt_prog_compiler_wl_CXX='--backend -Wl,'
15007 lt_prog_compiler_pic_CXX='-fPIC'
15010 # old Intel C++ for x86_64 which still supported -KPIC.
15011 lt_prog_compiler_wl_CXX='-Wl,'
15012 lt_prog_compiler_pic_CXX='-KPIC'
15013 lt_prog_compiler_static_CXX='-static'
15016 # Intel C++, used to be incompatible with GCC.
15017 # ICC 10 doesn't accept -KPIC any more.
15018 lt_prog_compiler_wl_CXX='-Wl,'
15019 lt_prog_compiler_pic_CXX='-fPIC'
15020 lt_prog_compiler_static_CXX='-static'
15023 # Portland Group C++ compiler
15024 lt_prog_compiler_wl_CXX='-Wl,'
15025 lt_prog_compiler_pic_CXX='-fpic'
15026 lt_prog_compiler_static_CXX='-Bstatic'
15030 # Make sure the PIC flag is empty. It appears that all Alpha
15031 # Linux and Compaq Tru64 Unix objects are PIC.
15032 lt_prog_compiler_pic_CXX=
15033 lt_prog_compiler_static_CXX='-non_shared'
15035 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15036 # IBM XL 8.0, 9.0 on PPC and BlueGene
15037 lt_prog_compiler_wl_CXX='-Wl,'
15038 lt_prog_compiler_pic_CXX='-qpic'
15039 lt_prog_compiler_static_CXX='-qstaticlink'
15042 case `$CC -V 2>&1 | sed 5q` in
15045 lt_prog_compiler_pic_CXX='-KPIC'
15046 lt_prog_compiler_static_CXX='-Bstatic'
15047 lt_prog_compiler_wl_CXX='-Qoption ld '
15058 case $cc_basename in
15060 lt_prog_compiler_pic_CXX='-W c,exportall'
15069 # QNX uses GNU C++, but need to define -shared option too, otherwise
15070 # it will coredump.
15071 lt_prog_compiler_pic_CXX='-fPIC -shared'
15073 osf3* | osf4* | osf5*)
15074 case $cc_basename in
15076 lt_prog_compiler_wl_CXX='--backend -Wl,'
15079 # Rational C++ 2.4.1
15080 lt_prog_compiler_pic_CXX='-pic'
15083 # Digital/Compaq C++
15084 lt_prog_compiler_wl_CXX='-Wl,'
15085 # Make sure the PIC flag is empty. It appears that all Alpha
15086 # Linux and Compaq Tru64 Unix objects are PIC.
15087 lt_prog_compiler_pic_CXX=
15088 lt_prog_compiler_static_CXX='-non_shared'
15097 case $cc_basename in
15099 # Sun C++ 4.2, 5.x and Centerline C++
15100 lt_prog_compiler_pic_CXX='-KPIC'
15101 lt_prog_compiler_static_CXX='-Bstatic'
15102 lt_prog_compiler_wl_CXX='-Qoption ld '
15105 # Green Hills C++ Compiler
15106 lt_prog_compiler_pic_CXX='-PIC'
15113 case $cc_basename in
15116 lt_prog_compiler_pic_CXX='-pic'
15117 lt_prog_compiler_static_CXX='-Bstatic'
15121 lt_prog_compiler_pic_CXX='-pic'
15127 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15128 case $cc_basename in
15130 lt_prog_compiler_wl_CXX='-Wl,'
15131 lt_prog_compiler_pic_CXX='-KPIC'
15132 lt_prog_compiler_static_CXX='-Bstatic'
15137 case $cc_basename in
15139 # NonStop-UX NCC 3.20
15140 lt_prog_compiler_pic_CXX='-KPIC'
15149 lt_prog_compiler_can_build_shared_CXX=no
15155 # For platforms which do not support PIC, -DPIC is meaningless:
15157 lt_prog_compiler_pic_CXX=
15160 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15165 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15166 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15167 $as_echo_n "(cached) " >&6
15169 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15172 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15173 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15176 # Check to make sure the PIC flag actually works.
15178 if test -n "$lt_prog_compiler_pic_CXX"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15181 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15182 $as_echo_n "(cached) " >&6
15184 lt_cv_prog_compiler_pic_works_CXX=no
15185 ac_outfile=conftest.$ac_objext
15186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15187 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15188 # Insert the option either (1) after the last *FLAGS variable, or
15189 # (2) before a word containing "conftest.", or (3) at the end.
15190 # Note that $ac_compile itself does not contain backslashes and begins
15191 # with a dollar sign (not a hyphen), so the echo should work correctly.
15192 # The option is referenced via a variable to avoid confusing sed.
15193 lt_compile=`echo "$ac_compile" | $SED \
15194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15196 -e 's:$: $lt_compiler_flag:'`
15197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15198 (eval "$lt_compile" 2>conftest.err)
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 if (exit $ac_status) && test -s "$ac_outfile"; then
15203 # The compiler can only warn and ignore the option if not recognized
15204 # So say no if there are warnings other than the usual output.
15205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15208 lt_cv_prog_compiler_pic_works_CXX=yes
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15215 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15217 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15218 case $lt_prog_compiler_pic_CXX in
15220 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15223 lt_prog_compiler_pic_CXX=
15224 lt_prog_compiler_can_build_shared_CXX=no
15234 # Check to make sure the static flag actually works.
15236 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15238 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15239 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15240 $as_echo_n "(cached) " >&6
15242 lt_cv_prog_compiler_static_works_CXX=no
15243 save_LDFLAGS="$LDFLAGS"
15244 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15245 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15246 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15247 # The linker can only warn and ignore the option if not recognized
15248 # So say no if there are warnings
15249 if test -s conftest.err; then
15250 # Append any errors to the config.log.
15251 cat conftest.err 1>&5
15252 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15254 if diff conftest.exp conftest.er2 >/dev/null; then
15255 lt_cv_prog_compiler_static_works_CXX=yes
15258 lt_cv_prog_compiler_static_works_CXX=yes
15262 LDFLAGS="$save_LDFLAGS"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15266 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15268 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15271 lt_prog_compiler_static_CXX=
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15279 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15280 $as_echo_n "(cached) " >&6
15282 lt_cv_prog_compiler_c_o_CXX=no
15283 $RM -r conftest 2>/dev/null
15287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15289 lt_compiler_flag="-o out/conftest2.$ac_objext"
15290 # Insert the option either (1) after the last *FLAGS variable, or
15291 # (2) before a word containing "conftest.", or (3) at the end.
15292 # Note that $ac_compile itself does not contain backslashes and begins
15293 # with a dollar sign (not a hyphen), so the echo should work correctly.
15294 lt_compile=`echo "$ac_compile" | $SED \
15295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15297 -e 's:$: $lt_compiler_flag:'`
15298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15299 (eval "$lt_compile" 2>out/conftest.err)
15301 cat out/conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15305 # The compiler can only warn and ignore the option if not recognized
15306 # So say no if there are warnings
15307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15310 lt_cv_prog_compiler_c_o_CXX=yes
15315 # SGI C++ compiler will create directory out/ii_files/ for
15316 # template instantiation
15317 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15318 $RM out/* && rmdir out
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15325 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15331 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15332 $as_echo_n "(cached) " >&6
15334 lt_cv_prog_compiler_c_o_CXX=no
15335 $RM -r conftest 2>/dev/null
15339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15341 lt_compiler_flag="-o out/conftest2.$ac_objext"
15342 # Insert the option either (1) after the last *FLAGS variable, or
15343 # (2) before a word containing "conftest.", or (3) at the end.
15344 # Note that $ac_compile itself does not contain backslashes and begins
15345 # with a dollar sign (not a hyphen), so the echo should work correctly.
15346 lt_compile=`echo "$ac_compile" | $SED \
15347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15349 -e 's:$: $lt_compiler_flag:'`
15350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15351 (eval "$lt_compile" 2>out/conftest.err)
15353 cat out/conftest.err >&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15357 # The compiler can only warn and ignore the option if not recognized
15358 # So say no if there are warnings
15359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15362 lt_cv_prog_compiler_c_o_CXX=yes
15367 # SGI C++ compiler will create directory out/ii_files/ for
15368 # template instantiation
15369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15370 $RM out/* && rmdir out
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15377 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15382 hard_links="nottested"
15383 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15384 # do not overwrite the value of need_locks provided by the user
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15386 $as_echo_n "checking if we can lock with hard links... " >&6; }
15389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391 ln conftest.a conftest.b 2>&5 || hard_links=no
15392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15394 $as_echo "$hard_links" >&6; }
15395 if test "$hard_links" = no; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15397 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15407 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15409 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15410 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15413 # If we're using GNU nm, then we don't want the "-C" option.
15414 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15415 # Also, AIX nm treats weak defined symbols like other global defined
15416 # symbols, whereas GNU nm marks them as "W".
15417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15418 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15420 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'
15424 export_symbols_cmds_CXX="$ltdll_cmds"
15426 cygwin* | mingw* | cegcc*)
15427 case $cc_basename in
15430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15431 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15441 $as_echo "$ld_shlibs_CXX" >&6; }
15442 test "$ld_shlibs_CXX" = no && can_build_shared=no
15444 with_gnu_ld_CXX=$with_gnu_ld
15452 # Do we need to explicitly link libc?
15454 case "x$archive_cmds_need_lc_CXX" in
15456 # Assume -lc should be added
15457 archive_cmds_need_lc_CXX=yes
15459 if test "$enable_shared" = yes && test "$GCC" = yes; then
15460 case $archive_cmds_CXX in
15462 # FIXME: we may have to deal with multi-command sequences.
15465 # Test whether the compiler implicitly links with -lc since on some
15466 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15467 # to ld, don't add -lc before -lgcc.
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15469 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15470 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15471 $as_echo_n "(cached) " >&6
15474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15477 (eval $ac_compile) 2>&5
15479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15480 test $ac_status = 0; } 2>conftest.err; then
15483 libobjs=conftest.$ac_objext
15485 wl=$lt_prog_compiler_wl_CXX
15486 pic_flag=$lt_prog_compiler_pic_CXX
15492 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15493 allow_undefined_flag_CXX=
15494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15495 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15498 test $ac_status = 0; }
15500 lt_cv_archive_cmds_need_lc_CXX=no
15502 lt_cv_archive_cmds_need_lc_CXX=yes
15504 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15506 cat conftest.err 1>&5
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15512 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15513 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15584 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15586 library_names_spec=
15587 libname_spec='lib$name'
15591 postuninstall_cmds=
15595 shlibpath_overrides_runpath=unknown
15597 dynamic_linker="$host_os ld.so"
15598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15599 need_lib_prefix=unknown
15600 hardcode_into_libs=no
15602 # when you set need_version to no, make sure it does not cause -set_version
15603 # flags to be left without arguments
15604 need_version=unknown
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15610 shlibpath_var=LIBPATH
15612 # AIX 3 has no versioning support, so we append a major version to the name.
15613 soname_spec='${libname}${release}${shared_ext}$major'
15620 hardcode_into_libs=yes
15621 if test "$host_cpu" = ia64; then
15622 # AIX 5 supports IA64
15623 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15624 shlibpath_var=LD_LIBRARY_PATH
15626 # With GCC up to 2.95.x, collect2 would create an import file
15627 # for dependence libraries. The import file would start with
15628 # the line `#! .'. This would cause the generated library to
15629 # depend on `.', always an invalid library. This was fixed in
15630 # development snapshots of GCC prior to 3.0.
15632 aix4 | aix4.[01] | aix4.[01].*)
15633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15635 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15638 can_build_shared=no
15642 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15643 # soname into executable. Probably we can add versioning support to
15644 # collect2, so additional links can be useful in future.
15645 if test "$aix_use_runtimelinking" = yes; then
15646 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15647 # instead of lib<name>.a to let people know that these are not
15648 # typical AIX shared libraries.
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 # We preserve .a as extension for shared libraries through AIX4.2
15652 # and later when we are not doing run time linking.
15653 library_names_spec='${libname}${release}.a $libname.a'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15656 shlibpath_var=LIBPATH
15663 # Since July 2007 AmigaOS4 officially supports .so libraries.
15664 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 library_names_spec='$libname.ixlibrary $libname.a'
15669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15676 library_names_spec='${libname}${shared_ext}'
15677 dynamic_linker="$host_os ld.so"
15678 shlibpath_var=LIBRARY_PATH
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15689 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15690 # the default ld.so.conf also contains /usr/contrib/lib and
15691 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15692 # libtool to hard-code these into programs
15695 cygwin* | mingw* | pw32* | cegcc*)
15696 version_type=windows
15701 case $GCC,$cc_basename in
15704 library_names_spec='$libname.dll.a'
15705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15706 postinstall_cmds='base_file=`basename \${file}`~
15707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15708 dldir=$destdir/`dirname \$dlpath`~
15709 test -d \$dldir || mkdir -p \$dldir~
15710 $install_prog $dir/$dlname \$dldir/$dlname~
15711 chmod a+x \$dldir/$dlname~
15712 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15713 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15716 dlpath=$dir/\$dldll~
15718 shlibpath_overrides_runpath=yes
15722 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15723 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15727 # MinGW DLLs use traditional 'lib' prefix
15728 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731 # pw32 DLLs use 'pw' prefix rather than 'lib'
15732 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15735 dynamic_linker='Win32 ld.exe'
15740 libname_spec='$name'
15741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15742 library_names_spec='${libname}.dll.lib'
15746 sys_lib_search_path_spec=
15749 for lt_path in $LIB
15752 # Let DOS variable expansion print the short 8.3 style file name.
15753 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15754 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15757 # Convert to MSYS style.
15758 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15761 # Convert to unix form, then to dos form, then back to unix form
15762 # but this time dos style (no spaces!) so that the unix form looks
15763 # like /cygdrive/c/PROGRA~1:/cygdr...
15764 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15765 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15766 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15769 sys_lib_search_path_spec="$LIB"
15770 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15771 # It is most probably a Windows format PATH.
15772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15774 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15776 # FIXME: find the short name or the path components, as spaces are
15777 # common. (e.g. "Program Files" -> "PROGRA~1")
15781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15782 postinstall_cmds='base_file=`basename \${file}`~
15783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15784 dldir=$destdir/`dirname \$dlpath`~
15785 test -d \$dldir || mkdir -p \$dldir~
15786 $install_prog $dir/$dlname \$dldir/$dlname'
15787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15788 dlpath=$dir/\$dldll~
15790 shlibpath_overrides_runpath=yes
15791 dynamic_linker='Win32 link.exe'
15795 # Assume MSVC wrapper
15796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15797 dynamic_linker='Win32 ld.exe'
15800 # FIXME: first we should search . and the directory the executable is in
15804 darwin* | rhapsody*)
15805 dynamic_linker="$host_os dyld"
15806 version_type=darwin
15809 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15810 soname_spec='${libname}${release}${major}$shared_ext'
15811 shlibpath_overrides_runpath=yes
15812 shlibpath_var=DYLD_LIBRARY_PATH
15813 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15815 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15831 freebsd* | dragonfly*)
15832 # DragonFly does not have aout. When/if they implement a new
15833 # versioning mechanism, adjust this.
15834 if test -x /usr/bin/objformat; then
15835 objformat=`/usr/bin/objformat`
15838 freebsd[123]*) objformat=aout ;;
15839 *) objformat=elf ;;
15842 version_type=freebsd-$objformat
15843 case $version_type in
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15854 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=yes
15859 freebsd3.[01]* | freebsdelf3.[01]*)
15860 shlibpath_overrides_runpath=yes
15861 hardcode_into_libs=yes
15863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15865 shlibpath_overrides_runpath=no
15866 hardcode_into_libs=yes
15868 *) # from 4.6 on, and DragonFly
15869 shlibpath_overrides_runpath=yes
15870 hardcode_into_libs=yes
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 hardcode_into_libs=yes
15889 dynamic_linker="$host_os runtime_loader"
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 shlibpath_var=LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15894 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15895 hardcode_into_libs=yes
15898 hpux9* | hpux10* | hpux11*)
15899 # Give a soname corresponding to the major version so that dld.sl refuses to
15900 # link against other versions.
15907 hardcode_into_libs=yes
15908 dynamic_linker="$host_os dld.so"
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 if test "X$HPUX_IA64_MODE" = X32; then
15914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15922 hardcode_into_libs=yes
15923 dynamic_linker="$host_os dld.sl"
15924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15933 dynamic_linker="$host_os dld.sl"
15934 shlibpath_var=SHLIB_PATH
15935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15940 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15941 postinstall_cmds='chmod 555 $lib'
15942 # or fails outright, so override atomically:
15943 install_override_mode=555
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=no
15955 hardcode_into_libs=yes
15958 irix5* | irix6* | nonstopux*)
15960 nonstopux*) version_type=nonstopux ;;
15962 if test "$lt_cv_prog_gnu_ld" = yes; then
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15973 irix5* | nonstopux*)
15974 libsuff= shlibsuff=
15977 case $LD in # libtool.m4 will add one of these switches to LD
15978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15979 libsuff= shlibsuff= libmagic=32-bit;;
15980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15981 libsuff=32 shlibsuff=N32 libmagic=N32;;
15982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15984 *) libsuff= shlibsuff= libmagic=never-match;;
15988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15989 shlibpath_overrides_runpath=no
15990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15992 hardcode_into_libs=yes
15995 # No shared lib support for Linux oldld, aout, or coff.
15996 linux*oldld* | linux*aout* | linux*coff*)
16000 # This must be Linux ELF.
16001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16011 # Some binutils ld are patched to set DT_RUNPATH
16012 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16013 $as_echo_n "(cached) " >&6
16015 lt_cv_shlibpath_overrides_runpath=no
16016 save_LDFLAGS=$LDFLAGS
16017 save_libdir=$libdir
16018 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16019 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16031 if ac_fn_cxx_try_link "$LINENO"; then :
16032 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16033 lt_cv_shlibpath_overrides_runpath=yes
16036 rm -f core conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16038 LDFLAGS=$save_LDFLAGS
16039 libdir=$save_libdir
16043 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16045 # This implies no fast_install, which is unacceptable.
16046 # Some rework will be needed to allow for fast_install
16047 # before this can be enabled.
16048 hardcode_into_libs=yes
16050 # Append ld.so.conf contents to the search path
16051 if test -f /etc/ld.so.conf; then
16052 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;s/"//g;/^$/d' | tr '\n' ' '`
16053 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16056 # We used to test for /lib/ld.so.1 and disable shared libraries on
16057 # powerpc, because MkLinux only supported shared libraries with the
16058 # GNU dynamic linker. Since this was broken with cross compilers,
16059 # most powerpc-linux boxes support dynamic linking these days and
16060 # people can always --disable-shared, the test was removed, and we
16061 # assume the GNU/Linux dynamic linker is in use.
16062 dynamic_linker='GNU/Linux ld.so'
16069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072 dynamic_linker='NetBSD (a.out) ld.so'
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 dynamic_linker='NetBSD ld.elf_so'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 shlibpath_overrides_runpath=yes
16080 hardcode_into_libs=yes
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=no
16098 hardcode_into_libs=yes
16099 dynamic_linker='ldqnx.so'
16104 sys_lib_dlsearch_path_spec="/usr/lib"
16106 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16108 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16109 *) need_version=no ;;
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16116 openbsd2.[89] | openbsd2.[89].*)
16117 shlibpath_overrides_runpath=no
16120 shlibpath_overrides_runpath=yes
16124 shlibpath_overrides_runpath=yes
16129 libname_spec='$name'
16132 library_names_spec='$libname${shared_ext} $libname.a'
16133 dynamic_linker='OS/2 ld.exe'
16134 shlibpath_var=LIBPATH
16137 osf3* | osf4* | osf5*)
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16145 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes
16160 hardcode_into_libs=yes
16161 # ldd complains unless libraries are executable
16162 postinstall_cmds='chmod +x $lib'
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16169 shlibpath_var=LD_LIBRARY_PATH
16170 shlibpath_overrides_runpath=yes
16171 if test "$with_gnu_ld" = yes; then
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 case $host_vendor in
16184 shlibpath_overrides_runpath=no
16186 runpath_var=LD_RUN_PATH
16194 shlibpath_overrides_runpath=no
16195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16201 if test -d /usr/nec ;then
16203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16204 soname_spec='$libname${shared_ext}.$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16210 version_type=freebsd-elf
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=yes
16217 hardcode_into_libs=yes
16218 if test "$with_gnu_ld" = yes; then
16219 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16224 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16228 sys_lib_dlsearch_path_spec='/usr/lib'
16232 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 shlibpath_overrides_runpath=no
16239 hardcode_into_libs=yes
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 shlibpath_var=LD_LIBRARY_PATH
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16254 $as_echo "$dynamic_linker" >&6; }
16255 test "$dynamic_linker" = no && can_build_shared=no
16257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16258 if test "$GCC" = yes; then
16259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16262 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16263 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16265 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16266 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16307 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16308 hardcode_action_CXX=
16309 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16310 test -n "$runpath_var_CXX" ||
16311 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16313 # We can hardcode non-existent directories.
16314 if test "$hardcode_direct_CXX" != no &&
16315 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16316 # have to relink, otherwise we might link with an installed library
16317 # when we should be linking with a yet-to-be-installed one
16318 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16319 test "$hardcode_minus_L_CXX" != no; then
16320 # Linking always hardcodes the temporary library directory.
16321 hardcode_action_CXX=relink
16323 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16324 hardcode_action_CXX=immediate
16327 # We cannot hardcode anything, or else we can only hardcode existing
16329 hardcode_action_CXX=unsupported
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16332 $as_echo "$hardcode_action_CXX" >&6; }
16334 if test "$hardcode_action_CXX" = relink ||
16335 test "$inherit_rpath_CXX" = yes; then
16336 # Fast installation is not supported
16337 enable_fast_install=no
16338 elif test "$shlibpath_overrides_runpath" = yes ||
16339 test "$enable_shared" = no; then
16340 # Fast installation is not necessary
16341 enable_fast_install=needless
16350 fi # test -n "$compiler"
16353 CFLAGS=$lt_save_CFLAGS
16357 with_gnu_ld=$lt_save_with_gnu_ld
16358 lt_cv_path_LDCXX=$lt_cv_path_LD
16359 lt_cv_path_LD=$lt_save_path_LD
16360 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16361 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16362 fi # test "$_lt_caught_CXX_error" != yes
16365 ac_cpp='$CPP $CPPFLAGS'
16366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16382 ac_config_commands="$ac_config_commands libtool"
16387 # Only expand once:
16392 if test x$use_libtool != xno; then
16393 DEFAULT_OBJECT_TYPE=".lo"
16394 DEFAULT_ARCHIVE_TYPE=".la"
16395 DEFAULT_SHARED_OBJECT_TYPE=".la"
16396 LIBTOOL="\$(LIBTOOL)"
16397 LIBTOOL_INSTALL_TARGET="libtool-install"
16398 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16399 LIBTOOL_CLEAN_TARGET="libtool-clean"
16400 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16401 FD_PLUGIN_DIR="src/plugins/fd"
16404 DEFAULT_OBJECT_TYPE=".o"
16405 DEFAULT_ARCHIVE_TYPE=".a"
16406 DEFAULT_SHARED_OBJECT_TYPE=".so"
16407 LIBTOOL="# \$(LIBTOOL)"
16408 LIBTOOL_INSTALL_TARGET=""
16409 LIBTOOL_UNINSTALL_TARGET=""
16410 LIBTOOL_CLEAN_TARGET=""
16411 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16426 # Check whether --enable-includes was given.
16427 if test "${enable_includes+set}" = set; then :
16428 enableval=$enable_includes;
16429 if test x$enableval = xyes; then
16430 install_includes=yes
16438 if test x$use_libtool != xno -a x$install_includes = xyes; then
16439 INCLUDE_INSTALL_TARGET="install-includes"
16440 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16442 INCLUDE_INSTALL_TARGET=""
16443 INCLUDE_UNINSTALL_TARGET=""
16451 *cygwin* ) CYGWIN=yes;;
16455 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16461 HAVE_SUN_OS_FALSE='#'
16463 HAVE_SUN_OS_TRUE='#'
16466 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16473 HAVE_SUN_OS_FALSE='#'
16475 HAVE_SUN_OS_TRUE='#'
16480 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16486 HAVE_OSF1_OS_FALSE='#'
16488 HAVE_OSF1_OS_TRUE='#'
16489 HAVE_OSF1_OS_FALSE=
16491 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16498 HAVE_OSF1_OS_FALSE='#'
16500 HAVE_OSF1_OS_TRUE='#'
16501 HAVE_OSF1_OS_FALSE=
16505 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16511 HAVE_AIX_OS_FALSE='#'
16513 HAVE_AIX_OS_TRUE='#'
16516 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16523 HAVE_AIX_OS_FALSE='#'
16525 HAVE_AIX_OS_TRUE='#'
16530 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16536 HAVE_HPUX_OS_FALSE='#'
16538 HAVE_HPUX_OS_TRUE='#'
16539 HAVE_HPUX_OS_FALSE=
16541 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16548 HAVE_HPUX_OS_FALSE='#'
16550 HAVE_HPUX_OS_TRUE='#'
16551 HAVE_HPUX_OS_FALSE=
16555 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16560 HAVE_LINUX_OS_TRUE=
16561 HAVE_LINUX_OS_FALSE='#'
16563 HAVE_LINUX_OS_TRUE='#'
16564 HAVE_LINUX_OS_FALSE=
16566 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16572 HAVE_LINUX_OS_TRUE=
16573 HAVE_LINUX_OS_FALSE='#'
16575 HAVE_LINUX_OS_TRUE='#'
16576 HAVE_LINUX_OS_FALSE=
16580 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16585 HAVE_FREEBSD_OS_TRUE=
16586 HAVE_FREEBSD_OS_FALSE='#'
16588 HAVE_FREEBSD_OS_TRUE='#'
16589 HAVE_FREEBSD_OS_FALSE=
16591 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16597 HAVE_FREEBSD_OS_TRUE=
16598 HAVE_FREEBSD_OS_FALSE='#'
16600 HAVE_FREEBSD_OS_TRUE='#'
16601 HAVE_FREEBSD_OS_FALSE=
16605 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16610 HAVE_NETBSD_OS_TRUE=
16611 HAVE_NETBSD_OS_FALSE='#'
16613 HAVE_NETBSD_OS_TRUE='#'
16614 HAVE_NETBSD_OS_FALSE=
16616 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16622 HAVE_NETBSD_OS_TRUE=
16623 HAVE_NETBSD_OS_FALSE='#'
16625 HAVE_NETBSD_OS_TRUE='#'
16626 HAVE_NETBSD_OS_FALSE=
16630 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16635 HAVE_OPENBSD_OS_TRUE=
16636 HAVE_OPENBSD_OS_FALSE='#'
16638 HAVE_OPENBSD_OS_TRUE='#'
16639 HAVE_OPENBSD_OS_FALSE=
16641 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16647 HAVE_OPENBSD_OS_TRUE=
16648 HAVE_OPENBSD_OS_FALSE='#'
16650 HAVE_OPENBSD_OS_TRUE='#'
16651 HAVE_OPENBSD_OS_FALSE=
16655 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16661 HAVE_BSDI_OS_FALSE='#'
16663 HAVE_BSDI_OS_TRUE='#'
16664 HAVE_BSDI_OS_FALSE=
16666 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16673 HAVE_BSDI_OS_FALSE='#'
16675 HAVE_BSDI_OS_TRUE='#'
16676 HAVE_BSDI_OS_FALSE=
16680 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16686 HAVE_SGI_OS_FALSE='#'
16688 HAVE_SGI_OS_TRUE='#'
16691 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16698 HAVE_SGI_OS_FALSE='#'
16700 HAVE_SGI_OS_TRUE='#'
16705 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16711 HAVE_IRIX_OS_FALSE='#'
16713 HAVE_IRIX_OS_TRUE='#'
16714 HAVE_IRIX_OS_FALSE=
16716 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16723 HAVE_IRIX_OS_FALSE='#'
16725 HAVE_IRIX_OS_TRUE='#'
16726 HAVE_IRIX_OS_FALSE=
16730 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16735 HAVE_DARWIN_OS_TRUE=
16736 HAVE_DARWIN_OS_FALSE='#'
16738 HAVE_DARWIN_OS_TRUE='#'
16739 HAVE_DARWIN_OS_FALSE=
16741 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16747 HAVE_DARWIN_OS_TRUE=
16748 HAVE_DARWIN_OS_FALSE='#'
16750 HAVE_DARWIN_OS_TRUE='#'
16751 HAVE_DARWIN_OS_FALSE=
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16757 $as_echo_n "checking for Operating System Distribution... " >&6; }
16758 if test "x$DISTNAME" != "x"
16760 echo "distname set to $DISTNAME"
16761 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16764 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16767 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16770 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16773 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16776 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16779 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16782 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16785 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16788 elif test -f /etc/SuSE-release
16791 elif test -d /etc/SuSEconfig
16794 elif test -f /etc/mandrake-release
16797 elif test -f /etc/whitebox-release
16800 elif test -f /etc/redhat-release
16803 elif test -f /etc/gentoo-release
16806 elif test -f /etc/debian_version
16809 elif test -f /etc/slackware-version
16812 elif test x$host_vendor = xapple
16815 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16818 elif test -f /etc/engarde-version
16821 elif test -f /etc/arch-release
16824 elif test "$CYGWIN" = yes
16827 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16833 $as_echo "done" >&6; }
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16837 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16839 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16840 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16841 $as_echo_n "(cached) " >&6
16843 cat >conftest.make <<\_ACEOF
16846 @echo '@@@%%%=$(MAKE)=@@@%%%'
16848 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16849 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16850 *@@@%%%=?*=@@@%%%*)
16851 eval ac_cv_prog_make_${ac_make}_set=yes;;
16853 eval ac_cv_prog_make_${ac_make}_set=no;;
16855 rm -f conftest.make
16857 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16859 $as_echo "yes" >&6; }
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16863 $as_echo "no" >&6; }
16864 SET_MAKE="MAKE=${MAKE-make}"
16870 if test -n "$ac_aux_dir"; then
16871 case "$ac_aux_dir" in
16872 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16873 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16876 if test -z "$MKINSTALLDIRS"; then
16877 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16883 $as_echo_n "checking whether NLS is requested... " >&6; }
16884 # Check whether --enable-nls was given.
16885 if test "${enable_nls+set}" = set; then :
16886 enableval=$enable_nls; USE_NLS=$enableval
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16892 $as_echo "$USE_NLS" >&6; }
16899 # Prepare PATH_SEPARATOR.
16900 # The user is always right.
16901 if test "${PATH_SEPARATOR+set}" != set; then
16902 echo "#! /bin/sh" >conf$$.sh
16903 echo "exit 0" >>conf$$.sh
16905 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16913 # Find out how to test for executable files. Don't use a zero-byte file,
16914 # as systems may use methods other than mode bits to determine executability.
16915 cat >conf$$.file <<_ASEOF
16919 chmod +x conf$$.file
16920 if test -x conf$$.file >/dev/null 2>&1; then
16921 ac_executable_p="test -x"
16923 ac_executable_p="test -f"
16927 # Extract the first word of "msgfmt", so it can be a program name with args.
16928 set dummy msgfmt; ac_word=$2
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 $as_echo_n "checking for $ac_word... " >&6; }
16931 if ${ac_cv_path_MSGFMT+:} false; then :
16932 $as_echo_n "(cached) " >&6
16936 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16939 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16940 for ac_dir in $PATH; do
16942 test -z "$ac_dir" && ac_dir=.
16943 for ac_exec_ext in '' $ac_executable_extensions; do
16944 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16945 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16946 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16947 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16948 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16955 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16959 MSGFMT="$ac_cv_path_MSGFMT"
16960 if test "$MSGFMT" != ":"; then
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16962 $as_echo "$MSGFMT" >&6; }
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965 $as_echo "no" >&6; }
16968 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16969 set dummy gmsgfmt; ac_word=$2
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16971 $as_echo_n "checking for $ac_word... " >&6; }
16972 if ${ac_cv_path_GMSGFMT+:} false; then :
16973 $as_echo_n "(cached) " >&6
16977 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16981 for as_dir in $PATH
16984 test -z "$as_dir" && as_dir=.
16985 for ac_exec_ext in '' $ac_executable_extensions; do
16986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16987 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16995 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16999 GMSGFMT=$ac_cv_path_GMSGFMT
17000 if test -n "$GMSGFMT"; then
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17002 $as_echo "$GMSGFMT" >&6; }
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17011 # Prepare PATH_SEPARATOR.
17012 # The user is always right.
17013 if test "${PATH_SEPARATOR+set}" != set; then
17014 echo "#! /bin/sh" >conf$$.sh
17015 echo "exit 0" >>conf$$.sh
17017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17025 # Find out how to test for executable files. Don't use a zero-byte file,
17026 # as systems may use methods other than mode bits to determine executability.
17027 cat >conf$$.file <<_ASEOF
17031 chmod +x conf$$.file
17032 if test -x conf$$.file >/dev/null 2>&1; then
17033 ac_executable_p="test -x"
17035 ac_executable_p="test -f"
17039 # Extract the first word of "xgettext", so it can be a program name with args.
17040 set dummy xgettext; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17042 $as_echo_n "checking for $ac_word... " >&6; }
17043 if ${ac_cv_path_XGETTEXT+:} false; then :
17044 $as_echo_n "(cached) " >&6
17046 case "$XGETTEXT" in
17048 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17051 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17052 for ac_dir in $PATH; do
17054 test -z "$ac_dir" && ac_dir=.
17055 for ac_exec_ext in '' $ac_executable_extensions; do
17056 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17057 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17058 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17059 (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
17060 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17067 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17071 XGETTEXT="$ac_cv_path_XGETTEXT"
17072 if test "$XGETTEXT" != ":"; then
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17074 $as_echo "$XGETTEXT" >&6; }
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 $as_echo "no" >&6; }
17083 # Prepare PATH_SEPARATOR.
17084 # The user is always right.
17085 if test "${PATH_SEPARATOR+set}" != set; then
17086 echo "#! /bin/sh" >conf$$.sh
17087 echo "exit 0" >>conf$$.sh
17089 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17097 # Find out how to test for executable files. Don't use a zero-byte file,
17098 # as systems may use methods other than mode bits to determine executability.
17099 cat >conf$$.file <<_ASEOF
17103 chmod +x conf$$.file
17104 if test -x conf$$.file >/dev/null 2>&1; then
17105 ac_executable_p="test -x"
17107 ac_executable_p="test -f"
17111 # Extract the first word of "msgmerge", so it can be a program name with args.
17112 set dummy msgmerge; ac_word=$2
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17114 $as_echo_n "checking for $ac_word... " >&6; }
17115 if ${ac_cv_path_MSGMERGE+:} false; then :
17116 $as_echo_n "(cached) " >&6
17118 case "$MSGMERGE" in
17120 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17123 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17124 for ac_dir in $PATH; do
17126 test -z "$ac_dir" && ac_dir=.
17127 for ac_exec_ext in '' $ac_executable_extensions; do
17128 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17129 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17130 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17131 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17138 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17142 MSGMERGE="$ac_cv_path_MSGMERGE"
17143 if test "$MSGMERGE" != ":"; then
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17145 $as_echo "$MSGMERGE" >&6; }
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148 $as_echo "no" >&6; }
17152 if test "$GMSGFMT" != ":"; then
17153 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17154 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17157 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17159 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17164 if test "$XGETTEXT" != ":"; then
17165 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17166 (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
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17170 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17176 ac_config_commands="$ac_config_commands default-1"
17180 if test "X$prefix" = "XNONE"; then
17181 acl_final_prefix="$ac_default_prefix"
17183 acl_final_prefix="$prefix"
17185 if test "X$exec_prefix" = "XNONE"; then
17186 acl_final_exec_prefix='${prefix}'
17188 acl_final_exec_prefix="$exec_prefix"
17190 acl_save_prefix="$prefix"
17191 prefix="$acl_final_prefix"
17192 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17193 prefix="$acl_save_prefix"
17196 # Check whether --with-gnu-ld was given.
17197 if test "${with_gnu_ld+set}" = set; then :
17198 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17203 # Prepare PATH_SEPARATOR.
17204 # The user is always right.
17205 if test "${PATH_SEPARATOR+set}" != set; then
17206 echo "#! /bin/sh" >conf$$.sh
17207 echo "exit 0" >>conf$$.sh
17209 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17217 if test "$GCC" = yes; then
17218 # Check if gcc -print-prog-name=ld gives a path.
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17220 $as_echo_n "checking for ld used by GCC... " >&6; }
17223 # gcc leaves a trailing carriage return which upsets mingw
17224 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17226 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17229 # Accept absolute paths.
17230 [\\/]* | [A-Za-z]:[\\/]*)
17231 re_direlt='/[^/][^/]*/\.\./'
17232 # Canonicalize the path of ld
17233 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17234 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17235 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17237 test -z "$LD" && LD="$ac_prog"
17240 # If it fails, then pretend we aren't using GCC.
17244 # If it is relative, then search for the first ld in PATH.
17245 with_gnu_ld=unknown
17248 elif test "$with_gnu_ld" = yes; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17250 $as_echo_n "checking for GNU ld... " >&6; }
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17253 $as_echo_n "checking for non-GNU ld... " >&6; }
17255 if ${acl_cv_path_LD+:} false; then :
17256 $as_echo_n "(cached) " >&6
17258 if test -z "$LD"; then
17259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17260 for ac_dir in $PATH; do
17261 test -z "$ac_dir" && ac_dir=.
17262 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17263 acl_cv_path_LD="$ac_dir/$ac_prog"
17264 # Check to see if the program is GNU ld. I'd rather use --version,
17265 # but apparently some GNU ld's only accept -v.
17266 # Break only if it was the GNU/non-GNU ld that we prefer.
17267 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17268 *GNU* | *'with BFD'*)
17269 test "$with_gnu_ld" != no && break ;;
17271 test "$with_gnu_ld" != yes && break ;;
17277 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17281 LD="$acl_cv_path_LD"
17282 if test -n "$LD"; then
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17284 $as_echo "$LD" >&6; }
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287 $as_echo "no" >&6; }
17289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17292 if ${acl_cv_prog_gnu_ld+:} false; then :
17293 $as_echo_n "(cached) " >&6
17295 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17296 case `$LD -v 2>&1 </dev/null` in
17297 *GNU* | *'with BFD'*)
17298 acl_cv_prog_gnu_ld=yes ;;
17300 acl_cv_prog_gnu_ld=no ;;
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17304 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17305 with_gnu_ld=$acl_cv_prog_gnu_ld
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17311 $as_echo_n "checking for shared library run path origin... " >&6; }
17312 if ${acl_cv_rpath+:} false; then :
17313 $as_echo_n "(cached) " >&6
17316 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17317 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17319 rm -f ./conftest.sh
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17324 $as_echo "$acl_cv_rpath" >&6; }
17326 libext="$acl_cv_libext"
17327 shlibext="$acl_cv_shlibext"
17328 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17329 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17330 hardcode_direct="$acl_cv_hardcode_direct"
17331 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17332 # Check whether --enable-rpath was given.
17333 if test "${enable_rpath+set}" = set; then :
17334 enableval=$enable_rpath; :
17348 acl_save_prefix="$prefix"
17349 prefix="$acl_final_prefix"
17350 acl_save_exec_prefix="$exec_prefix"
17351 exec_prefix="$acl_final_exec_prefix"
17353 eval additional_includedir=\"$includedir\"
17354 eval additional_libdir=\"$libdir\"
17356 exec_prefix="$acl_save_exec_prefix"
17357 prefix="$acl_save_prefix"
17360 # Check whether --with-libiconv-prefix was given.
17361 if test "${with_libiconv_prefix+set}" = set; then :
17362 withval=$with_libiconv_prefix;
17363 if test "X$withval" = "Xno"; then
17366 if test "X$withval" = "X"; then
17368 acl_save_prefix="$prefix"
17369 prefix="$acl_final_prefix"
17370 acl_save_exec_prefix="$exec_prefix"
17371 exec_prefix="$acl_final_exec_prefix"
17373 eval additional_includedir=\"$includedir\"
17374 eval additional_libdir=\"$libdir\"
17376 exec_prefix="$acl_save_exec_prefix"
17377 prefix="$acl_save_prefix"
17380 additional_includedir="$withval/include"
17381 additional_libdir="$withval/lib"
17392 names_already_handled=
17393 names_next_round='iconv '
17394 while test -n "$names_next_round"; do
17395 names_this_round="$names_next_round"
17397 for name in $names_this_round; do
17399 for n in $names_already_handled; do
17400 if test "$n" = "$name"; then
17401 already_handled=yes
17405 if test -z "$already_handled"; then
17406 names_already_handled="$names_already_handled $name"
17407 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17408 eval value=\"\$HAVE_LIB$uppername\"
17409 if test -n "$value"; then
17410 if test "$value" = yes; then
17411 eval value=\"\$LIB$uppername\"
17412 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17413 eval value=\"\$LTLIB$uppername\"
17414 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17423 if test $use_additional = yes; then
17424 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17425 found_dir="$additional_libdir"
17426 found_so="$additional_libdir/lib$name.$shlibext"
17427 if test -f "$additional_libdir/lib$name.la"; then
17428 found_la="$additional_libdir/lib$name.la"
17431 if test -f "$additional_libdir/lib$name.$libext"; then
17432 found_dir="$additional_libdir"
17433 found_a="$additional_libdir/lib$name.$libext"
17434 if test -f "$additional_libdir/lib$name.la"; then
17435 found_la="$additional_libdir/lib$name.la"
17440 if test "X$found_dir" = "X"; then
17441 for x in $LDFLAGS $LTLIBICONV; do
17443 acl_save_prefix="$prefix"
17444 prefix="$acl_final_prefix"
17445 acl_save_exec_prefix="$exec_prefix"
17446 exec_prefix="$acl_final_exec_prefix"
17448 exec_prefix="$acl_save_exec_prefix"
17449 prefix="$acl_save_prefix"
17453 dir=`echo "X$x" | sed -e 's/^X-L//'`
17454 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17456 found_so="$dir/lib$name.$shlibext"
17457 if test -f "$dir/lib$name.la"; then
17458 found_la="$dir/lib$name.la"
17461 if test -f "$dir/lib$name.$libext"; then
17463 found_a="$dir/lib$name.$libext"
17464 if test -f "$dir/lib$name.la"; then
17465 found_la="$dir/lib$name.la"
17471 if test "X$found_dir" != "X"; then
17476 if test "X$found_dir" != "X"; then
17477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17478 if test "X$found_so" != "X"; then
17479 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17483 for x in $ltrpathdirs; do
17484 if test "X$x" = "X$found_dir"; then
17489 if test -z "$haveit"; then
17490 ltrpathdirs="$ltrpathdirs $found_dir"
17492 if test "$hardcode_direct" = yes; then
17493 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17495 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17498 for x in $rpathdirs; do
17499 if test "X$x" = "X$found_dir"; then
17504 if test -z "$haveit"; then
17505 rpathdirs="$rpathdirs $found_dir"
17509 for x in $LDFLAGS $LIBICONV; do
17511 acl_save_prefix="$prefix"
17512 prefix="$acl_final_prefix"
17513 acl_save_exec_prefix="$exec_prefix"
17514 exec_prefix="$acl_final_exec_prefix"
17516 exec_prefix="$acl_save_exec_prefix"
17517 prefix="$acl_save_prefix"
17519 if test "X$x" = "X-L$found_dir"; then
17524 if test -z "$haveit"; then
17525 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17527 if test "$hardcode_minus_L" != no; then
17528 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17530 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17536 if test "X$found_a" != "X"; then
17537 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17539 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17542 additional_includedir=
17543 case "$found_dir" in
17545 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17546 additional_includedir="$basedir/include"
17549 if test "X$additional_includedir" != "X"; then
17550 if test "X$additional_includedir" != "X/usr/include"; then
17552 if test "X$additional_includedir" = "X/usr/local/include"; then
17553 if test -n "$GCC"; then
17555 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17559 if test -z "$haveit"; then
17560 for x in $CPPFLAGS $INCICONV; do
17562 acl_save_prefix="$prefix"
17563 prefix="$acl_final_prefix"
17564 acl_save_exec_prefix="$exec_prefix"
17565 exec_prefix="$acl_final_exec_prefix"
17567 exec_prefix="$acl_save_exec_prefix"
17568 prefix="$acl_save_prefix"
17570 if test "X$x" = "X-I$additional_includedir"; then
17575 if test -z "$haveit"; then
17576 if test -d "$additional_includedir"; then
17577 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17583 if test -n "$found_la"; then
17584 save_libdir="$libdir"
17585 case "$found_la" in
17586 */* | *\\*) . "$found_la" ;;
17587 *) . "./$found_la" ;;
17589 libdir="$save_libdir"
17590 for dep in $dependency_libs; do
17593 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17594 if test "X$additional_libdir" != "X/usr/lib"; then
17596 if test "X$additional_libdir" = "X/usr/local/lib"; then
17597 if test -n "$GCC"; then
17599 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17603 if test -z "$haveit"; then
17605 for x in $LDFLAGS $LIBICONV; do
17607 acl_save_prefix="$prefix"
17608 prefix="$acl_final_prefix"
17609 acl_save_exec_prefix="$exec_prefix"
17610 exec_prefix="$acl_final_exec_prefix"
17612 exec_prefix="$acl_save_exec_prefix"
17613 prefix="$acl_save_prefix"
17615 if test "X$x" = "X-L$additional_libdir"; then
17620 if test -z "$haveit"; then
17621 if test -d "$additional_libdir"; then
17622 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17626 for x in $LDFLAGS $LTLIBICONV; do
17628 acl_save_prefix="$prefix"
17629 prefix="$acl_final_prefix"
17630 acl_save_exec_prefix="$exec_prefix"
17631 exec_prefix="$acl_final_exec_prefix"
17633 exec_prefix="$acl_save_exec_prefix"
17634 prefix="$acl_save_prefix"
17636 if test "X$x" = "X-L$additional_libdir"; then
17641 if test -z "$haveit"; then
17642 if test -d "$additional_libdir"; then
17643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17650 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17651 if test "$enable_rpath" != no; then
17653 for x in $rpathdirs; do
17654 if test "X$x" = "X$dir"; then
17659 if test -z "$haveit"; then
17660 rpathdirs="$rpathdirs $dir"
17663 for x in $ltrpathdirs; do
17664 if test "X$x" = "X$dir"; then
17669 if test -z "$haveit"; then
17670 ltrpathdirs="$ltrpathdirs $dir"
17675 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17678 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17681 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17688 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17689 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17695 if test "X$rpathdirs" != "X"; then
17696 if test -n "$hardcode_libdir_separator"; then
17698 for found_dir in $rpathdirs; do
17699 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17701 acl_save_libdir="$libdir"
17703 eval flag=\"$hardcode_libdir_flag_spec\"
17704 libdir="$acl_save_libdir"
17705 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17707 for found_dir in $rpathdirs; do
17708 acl_save_libdir="$libdir"
17709 libdir="$found_dir"
17710 eval flag=\"$hardcode_libdir_flag_spec\"
17711 libdir="$acl_save_libdir"
17712 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17716 if test "X$ltrpathdirs" != "X"; then
17717 for found_dir in $ltrpathdirs; do
17718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17740 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17741 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17742 $as_echo_n "(cached) " >&6
17744 gt_save_CPPFLAGS="$CPPFLAGS"
17745 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17746 gt_save_LIBS="$LIBS"
17747 LIBS="$LIBS -framework CoreFoundation"
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750 #include <CFPreferences.h>
17754 CFPreferencesCopyAppValue(NULL, NULL)
17759 if ac_fn_c_try_link "$LINENO"; then :
17760 gt_cv_func_CFPreferencesCopyAppValue=yes
17762 gt_cv_func_CFPreferencesCopyAppValue=no
17764 rm -f core conftest.err conftest.$ac_objext \
17765 conftest$ac_exeext conftest.$ac_ext
17766 CPPFLAGS="$gt_save_CPPFLAGS"
17767 LIBS="$gt_save_LIBS"
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17770 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17771 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17773 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17777 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17778 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17779 $as_echo_n "(cached) " >&6
17781 gt_save_CPPFLAGS="$CPPFLAGS"
17782 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17783 gt_save_LIBS="$LIBS"
17784 LIBS="$LIBS -framework CoreFoundation"
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17787 #include <CFLocale.h>
17791 CFLocaleCopyCurrent();
17796 if ac_fn_c_try_link "$LINENO"; then :
17797 gt_cv_func_CFLocaleCopyCurrent=yes
17799 gt_cv_func_CFLocaleCopyCurrent=no
17801 rm -f core conftest.err conftest.$ac_objext \
17802 conftest$ac_exeext conftest.$ac_ext
17803 CPPFLAGS="$gt_save_CPPFLAGS"
17804 LIBS="$gt_save_LIBS"
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17807 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17808 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17810 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17814 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17815 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17822 $as_echo_n "checking whether NLS is requested... " >&6; }
17823 # Check whether --enable-nls was given.
17824 if test "${enable_nls+set}" = set; then :
17825 enableval=$enable_nls; USE_NLS=$enableval
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17831 $as_echo "$USE_NLS" >&6; }
17840 if test "$USE_NLS" = "yes"; then
17841 gt_use_preinstalled_gnugettext=no
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17849 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17850 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17851 $as_echo_n "(cached) " >&6
17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17855 #include <libintl.h>
17856 extern int _nl_msg_cat_cntr;
17857 extern int *_nl_domain_bindings;
17861 bindtextdomain ("", "");
17862 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17867 if ac_fn_c_try_link "$LINENO"; then :
17868 gt_cv_func_gnugettext1_libc=yes
17870 gt_cv_func_gnugettext1_libc=no
17872 rm -f core conftest.err conftest.$ac_objext \
17873 conftest$ac_exeext conftest.$ac_ext
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17876 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17878 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17884 am_save_CPPFLAGS="$CPPFLAGS"
17886 for element in $INCICONV; do
17888 for x in $CPPFLAGS; do
17890 acl_save_prefix="$prefix"
17891 prefix="$acl_final_prefix"
17892 acl_save_exec_prefix="$exec_prefix"
17893 exec_prefix="$acl_final_exec_prefix"
17895 exec_prefix="$acl_save_exec_prefix"
17896 prefix="$acl_save_prefix"
17898 if test "X$x" = "X$element"; then
17903 if test -z "$haveit"; then
17904 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17910 $as_echo_n "checking for iconv... " >&6; }
17911 if ${am_cv_func_iconv+:} false; then :
17912 $as_echo_n "(cached) " >&6
17915 am_cv_func_iconv="no, consider installing GNU libiconv"
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17919 #include <stdlib.h>
17924 iconv_t cd = iconv_open("","");
17925 iconv(cd,NULL,NULL,NULL,NULL);
17931 if ac_fn_c_try_link "$LINENO"; then :
17932 am_cv_func_iconv=yes
17934 rm -f core conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17936 if test "$am_cv_func_iconv" != yes; then
17937 am_save_LIBS="$LIBS"
17938 LIBS="$LIBS $LIBICONV"
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17941 #include <stdlib.h>
17946 iconv_t cd = iconv_open("","");
17947 iconv(cd,NULL,NULL,NULL,NULL);
17953 if ac_fn_c_try_link "$LINENO"; then :
17954 am_cv_lib_iconv=yes
17955 am_cv_func_iconv=yes
17957 rm -f core conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LIBS="$am_save_LIBS"
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17964 $as_echo "$am_cv_func_iconv" >&6; }
17965 if test "$am_cv_func_iconv" = yes; then
17967 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17970 if test "$am_cv_lib_iconv" = yes; then
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17972 $as_echo_n "checking how to link with libiconv... " >&6; }
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17974 $as_echo "$LIBICONV" >&6; }
17976 CPPFLAGS="$am_save_CPPFLAGS"
17988 acl_save_prefix="$prefix"
17989 prefix="$acl_final_prefix"
17990 acl_save_exec_prefix="$exec_prefix"
17991 exec_prefix="$acl_final_exec_prefix"
17993 eval additional_includedir=\"$includedir\"
17994 eval additional_libdir=\"$libdir\"
17996 exec_prefix="$acl_save_exec_prefix"
17997 prefix="$acl_save_prefix"
18000 # Check whether --with-libintl-prefix was given.
18001 if test "${with_libintl_prefix+set}" = set; then :
18002 withval=$with_libintl_prefix;
18003 if test "X$withval" = "Xno"; then
18006 if test "X$withval" = "X"; then
18008 acl_save_prefix="$prefix"
18009 prefix="$acl_final_prefix"
18010 acl_save_exec_prefix="$exec_prefix"
18011 exec_prefix="$acl_final_exec_prefix"
18013 eval additional_includedir=\"$includedir\"
18014 eval additional_libdir=\"$libdir\"
18016 exec_prefix="$acl_save_exec_prefix"
18017 prefix="$acl_save_prefix"
18020 additional_includedir="$withval/include"
18021 additional_libdir="$withval/lib"
18032 names_already_handled=
18033 names_next_round='intl '
18034 while test -n "$names_next_round"; do
18035 names_this_round="$names_next_round"
18037 for name in $names_this_round; do
18039 for n in $names_already_handled; do
18040 if test "$n" = "$name"; then
18041 already_handled=yes
18045 if test -z "$already_handled"; then
18046 names_already_handled="$names_already_handled $name"
18047 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18048 eval value=\"\$HAVE_LIB$uppername\"
18049 if test -n "$value"; then
18050 if test "$value" = yes; then
18051 eval value=\"\$LIB$uppername\"
18052 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18053 eval value=\"\$LTLIB$uppername\"
18054 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18063 if test $use_additional = yes; then
18064 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18065 found_dir="$additional_libdir"
18066 found_so="$additional_libdir/lib$name.$shlibext"
18067 if test -f "$additional_libdir/lib$name.la"; then
18068 found_la="$additional_libdir/lib$name.la"
18071 if test -f "$additional_libdir/lib$name.$libext"; then
18072 found_dir="$additional_libdir"
18073 found_a="$additional_libdir/lib$name.$libext"
18074 if test -f "$additional_libdir/lib$name.la"; then
18075 found_la="$additional_libdir/lib$name.la"
18080 if test "X$found_dir" = "X"; then
18081 for x in $LDFLAGS $LTLIBINTL; do
18083 acl_save_prefix="$prefix"
18084 prefix="$acl_final_prefix"
18085 acl_save_exec_prefix="$exec_prefix"
18086 exec_prefix="$acl_final_exec_prefix"
18088 exec_prefix="$acl_save_exec_prefix"
18089 prefix="$acl_save_prefix"
18093 dir=`echo "X$x" | sed -e 's/^X-L//'`
18094 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18096 found_so="$dir/lib$name.$shlibext"
18097 if test -f "$dir/lib$name.la"; then
18098 found_la="$dir/lib$name.la"
18101 if test -f "$dir/lib$name.$libext"; then
18103 found_a="$dir/lib$name.$libext"
18104 if test -f "$dir/lib$name.la"; then
18105 found_la="$dir/lib$name.la"
18111 if test "X$found_dir" != "X"; then
18116 if test "X$found_dir" != "X"; then
18117 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18118 if test "X$found_so" != "X"; then
18119 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18120 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18123 for x in $ltrpathdirs; do
18124 if test "X$x" = "X$found_dir"; then
18129 if test -z "$haveit"; then
18130 ltrpathdirs="$ltrpathdirs $found_dir"
18132 if test "$hardcode_direct" = yes; then
18133 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18135 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18138 for x in $rpathdirs; do
18139 if test "X$x" = "X$found_dir"; then
18144 if test -z "$haveit"; then
18145 rpathdirs="$rpathdirs $found_dir"
18149 for x in $LDFLAGS $LIBINTL; do
18151 acl_save_prefix="$prefix"
18152 prefix="$acl_final_prefix"
18153 acl_save_exec_prefix="$exec_prefix"
18154 exec_prefix="$acl_final_exec_prefix"
18156 exec_prefix="$acl_save_exec_prefix"
18157 prefix="$acl_save_prefix"
18159 if test "X$x" = "X-L$found_dir"; then
18164 if test -z "$haveit"; then
18165 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18167 if test "$hardcode_minus_L" != no; then
18168 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18170 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18176 if test "X$found_a" != "X"; then
18177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18179 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18182 additional_includedir=
18183 case "$found_dir" in
18185 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18186 additional_includedir="$basedir/include"
18189 if test "X$additional_includedir" != "X"; then
18190 if test "X$additional_includedir" != "X/usr/include"; then
18192 if test "X$additional_includedir" = "X/usr/local/include"; then
18193 if test -n "$GCC"; then
18195 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18199 if test -z "$haveit"; then
18200 for x in $CPPFLAGS $INCINTL; do
18202 acl_save_prefix="$prefix"
18203 prefix="$acl_final_prefix"
18204 acl_save_exec_prefix="$exec_prefix"
18205 exec_prefix="$acl_final_exec_prefix"
18207 exec_prefix="$acl_save_exec_prefix"
18208 prefix="$acl_save_prefix"
18210 if test "X$x" = "X-I$additional_includedir"; then
18215 if test -z "$haveit"; then
18216 if test -d "$additional_includedir"; then
18217 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18223 if test -n "$found_la"; then
18224 save_libdir="$libdir"
18225 case "$found_la" in
18226 */* | *\\*) . "$found_la" ;;
18227 *) . "./$found_la" ;;
18229 libdir="$save_libdir"
18230 for dep in $dependency_libs; do
18233 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18234 if test "X$additional_libdir" != "X/usr/lib"; then
18236 if test "X$additional_libdir" = "X/usr/local/lib"; then
18237 if test -n "$GCC"; then
18239 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18243 if test -z "$haveit"; then
18245 for x in $LDFLAGS $LIBINTL; do
18247 acl_save_prefix="$prefix"
18248 prefix="$acl_final_prefix"
18249 acl_save_exec_prefix="$exec_prefix"
18250 exec_prefix="$acl_final_exec_prefix"
18252 exec_prefix="$acl_save_exec_prefix"
18253 prefix="$acl_save_prefix"
18255 if test "X$x" = "X-L$additional_libdir"; then
18260 if test -z "$haveit"; then
18261 if test -d "$additional_libdir"; then
18262 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18266 for x in $LDFLAGS $LTLIBINTL; do
18268 acl_save_prefix="$prefix"
18269 prefix="$acl_final_prefix"
18270 acl_save_exec_prefix="$exec_prefix"
18271 exec_prefix="$acl_final_exec_prefix"
18273 exec_prefix="$acl_save_exec_prefix"
18274 prefix="$acl_save_prefix"
18276 if test "X$x" = "X-L$additional_libdir"; then
18281 if test -z "$haveit"; then
18282 if test -d "$additional_libdir"; then
18283 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18290 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18291 if test "$enable_rpath" != no; then
18293 for x in $rpathdirs; do
18294 if test "X$x" = "X$dir"; then
18299 if test -z "$haveit"; then
18300 rpathdirs="$rpathdirs $dir"
18303 for x in $ltrpathdirs; do
18304 if test "X$x" = "X$dir"; then
18309 if test -z "$haveit"; then
18310 ltrpathdirs="$ltrpathdirs $dir"
18315 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18318 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18321 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18322 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18328 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18329 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18335 if test "X$rpathdirs" != "X"; then
18336 if test -n "$hardcode_libdir_separator"; then
18338 for found_dir in $rpathdirs; do
18339 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18341 acl_save_libdir="$libdir"
18343 eval flag=\"$hardcode_libdir_flag_spec\"
18344 libdir="$acl_save_libdir"
18345 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18347 for found_dir in $rpathdirs; do
18348 acl_save_libdir="$libdir"
18349 libdir="$found_dir"
18350 eval flag=\"$hardcode_libdir_flag_spec\"
18351 libdir="$acl_save_libdir"
18352 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18356 if test "X$ltrpathdirs" != "X"; then
18357 for found_dir in $ltrpathdirs; do
18358 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18363 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18364 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18365 $as_echo_n "(cached) " >&6
18367 gt_save_CPPFLAGS="$CPPFLAGS"
18368 CPPFLAGS="$CPPFLAGS $INCINTL"
18369 gt_save_LIBS="$LIBS"
18370 LIBS="$LIBS $LIBINTL"
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18373 #include <libintl.h>
18374 extern int _nl_msg_cat_cntr;
18379 const char *_nl_expand_alias (const char *);
18383 bindtextdomain ("", "");
18384 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18389 if ac_fn_c_try_link "$LINENO"; then :
18390 gt_cv_func_gnugettext1_libintl=yes
18392 gt_cv_func_gnugettext1_libintl=no
18394 rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18397 LIBS="$LIBS $LIBICONV"
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h. */
18400 #include <libintl.h>
18401 extern int _nl_msg_cat_cntr;
18406 const char *_nl_expand_alias (const char *);
18410 bindtextdomain ("", "");
18411 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18416 if ac_fn_c_try_link "$LINENO"; then :
18417 LIBINTL="$LIBINTL $LIBICONV"
18418 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18419 gt_cv_func_gnugettext1_libintl=yes
18422 rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18425 CPPFLAGS="$gt_save_CPPFLAGS"
18426 LIBS="$gt_save_LIBS"
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18429 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18432 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18433 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18434 && test "$PACKAGE" != gettext-runtime \
18435 && test "$PACKAGE" != gettext-tools; }; then
18436 gt_use_preinstalled_gnugettext=yes
18445 if test -n "$INTL_MACOSX_LIBS"; then
18446 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18447 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18448 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18449 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18453 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18454 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18456 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18464 $as_echo_n "checking whether to use NLS... " >&6; }
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18466 $as_echo "$USE_NLS" >&6; }
18467 if test "$USE_NLS" = "yes"; then
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18469 $as_echo_n "checking where the gettext function comes from... " >&6; }
18470 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18471 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18472 gt_source="external libintl"
18477 gt_source="included intl directory"
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18480 $as_echo "$gt_source" >&6; }
18483 if test "$USE_NLS" = "yes"; then
18485 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18486 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18488 $as_echo_n "checking how to link with libintl... " >&6; }
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18490 $as_echo "$LIBINTL" >&6; }
18492 for element in $INCINTL; do
18494 for x in $CPPFLAGS; do
18496 acl_save_prefix="$prefix"
18497 prefix="$acl_final_prefix"
18498 acl_save_exec_prefix="$exec_prefix"
18499 exec_prefix="$acl_final_exec_prefix"
18501 exec_prefix="$acl_save_exec_prefix"
18502 prefix="$acl_save_prefix"
18504 if test "X$x" = "X$element"; then
18509 if test -z "$haveit"; then
18510 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18517 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18520 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18529 INTLLIBS="$LIBINTL"
18537 os_name=`uname -s 2>/dev/null`
18538 if test x${prefix} = xNONE ; then
18539 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18540 sysconfdir=/etc/bacula
18543 if test `eval echo ${libdir}` = NONE/lib ; then
18546 os_processor=`uname -p 2>/dev/null`
18547 case ${os_processor} in
18562 if test `eval echo ${includedir}` = NONE/include ; then
18563 includedir=/usr/include
18566 if test `eval echo ${datarootdir}` = NONE/share ; then
18567 datarootdir=/usr/share
18572 if test x${exec_prefix} = xNONE ; then
18573 exec_prefix=${prefix}
18576 sysconfdir=`eval echo ${sysconfdir}`
18577 datarootdir=`eval echo ${datarootdir}`
18578 docdir=`eval echo ${docdir}`
18579 htmldir=`eval echo ${htmldir}`
18580 libdir=`eval echo ${libdir}`
18581 includedir=`eval echo ${includedir}`
18582 localedir=`eval echo ${datarootdir}/locale`
18583 cat >>confdefs.h <<_ACEOF
18584 #define SYSCONFDIR "$sysconfdir"
18587 cat >>confdefs.h <<_ACEOF
18588 #define LOCALEDIR "$localedir"
18592 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18593 sbindir=${exec_prefix}/sbin
18595 sbindir=`eval echo ${sbindir}`
18597 if test x$mandir = x'${prefix}/man' ; then
18598 mandir=/usr/share/man
18601 if test x$htmldir = x${docdir} ; then
18602 htmldir=`eval echo ${docdir}bacula/html`
18605 if test x$docdir = x'/usr/share/doc/' ; then
18606 docdir=`eval echo ${docdir}bacula`
18610 for ac_prog in msgfmt
18612 # Extract the first word of "$ac_prog", so it can be a program name with args.
18613 set dummy $ac_prog; ac_word=$2
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615 $as_echo_n "checking for $ac_word... " >&6; }
18616 if ${ac_cv_path_MSGFMT+:} false; then :
18617 $as_echo_n "(cached) " >&6
18621 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625 for as_dir in $PATH
18628 test -z "$as_dir" && as_dir=.
18629 for ac_exec_ext in '' $ac_executable_extensions; do
18630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18631 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18642 MSGFMT=$ac_cv_path_MSGFMT
18643 if test -n "$MSGFMT"; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18645 $as_echo "$MSGFMT" >&6; }
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648 $as_echo "no" >&6; }
18652 test -n "$MSGFMT" && break
18654 test -n "$MSGFMT" || MSGFMT="no"
18656 if test "$MSGFMT" = "no"
18658 echo 'msgfmt program not found, disabling NLS !'
18660 USE_INCLUDED_LIBINTL=no
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18664 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18665 if ${ac_cv_gnu_library_2+:} false; then :
18666 $as_echo_n "(cached) " >&6
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18671 #include <features.h>
18672 #ifdef __GNU_LIBRARY__
18673 #if (__GLIBC__ >= 2)
18679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18680 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18681 ac_cv_gnu_library_2=yes
18683 ac_cv_gnu_library_2=no
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18691 $as_echo "$ac_cv_gnu_library_2" >&6; }
18693 GLIBC2="$ac_cv_gnu_library_2"
18696 if test -n "$ac_tool_prefix"; then
18697 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18698 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18700 $as_echo_n "checking for $ac_word... " >&6; }
18701 if ${ac_cv_prog_RANLIB+:} false; then :
18702 $as_echo_n "(cached) " >&6
18704 if test -n "$RANLIB"; then
18705 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18708 for as_dir in $PATH
18711 test -z "$as_dir" && as_dir=.
18712 for ac_exec_ext in '' $ac_executable_extensions; do
18713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18714 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18724 RANLIB=$ac_cv_prog_RANLIB
18725 if test -n "$RANLIB"; then
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18727 $as_echo "$RANLIB" >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730 $as_echo "no" >&6; }
18735 if test -z "$ac_cv_prog_RANLIB"; then
18736 ac_ct_RANLIB=$RANLIB
18737 # Extract the first word of "ranlib", so it can be a program name with args.
18738 set dummy ranlib; ac_word=$2
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18740 $as_echo_n "checking for $ac_word... " >&6; }
18741 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18742 $as_echo_n "(cached) " >&6
18744 if test -n "$ac_ct_RANLIB"; then
18745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748 for as_dir in $PATH
18751 test -z "$as_dir" && as_dir=.
18752 for ac_exec_ext in '' $ac_executable_extensions; do
18753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18754 ac_cv_prog_ac_ct_RANLIB="ranlib"
18755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18765 if test -n "$ac_ct_RANLIB"; then
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18767 $as_echo "$ac_ct_RANLIB" >&6; }
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18773 if test "x$ac_ct_RANLIB" = x; then
18776 case $cross_compiling:$ac_tool_warned in
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18780 ac_tool_warned=yes ;;
18782 RANLIB=$ac_ct_RANLIB
18785 RANLIB="$ac_cv_prog_RANLIB"
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18790 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18791 if ${ac_cv_lib_cposix_strerror+:} false; then :
18792 $as_echo_n "(cached) " >&6
18794 ac_check_lib_save_LIBS=$LIBS
18795 LIBS="-lcposix $LIBS"
18796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18797 /* end confdefs.h. */
18799 /* Override any GCC internal prototype to avoid an error.
18800 Use char because int might match the return type of a GCC
18801 builtin and then its argument prototype would still apply. */
18809 return strerror ();
18814 if ac_fn_c_try_link "$LINENO"; then :
18815 ac_cv_lib_cposix_strerror=yes
18817 ac_cv_lib_cposix_strerror=no
18819 rm -f core conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18821 LIBS=$ac_check_lib_save_LIBS
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18824 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18825 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18826 LIBS="$LIBS -lcposix"
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18832 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18833 if ${ac_cv_c_const+:} false; then :
18834 $as_echo_n "(cached) " >&6
18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h. */
18842 /* FIXME: Include the comments suggested by Paul. */
18843 #ifndef __cplusplus
18844 /* Ultrix mips cc rejects this. */
18845 typedef int charset[2];
18847 /* SunOS 4.1.1 cc rejects this. */
18848 char const *const *pcpcc;
18850 /* NEC SVR4.0.2 mips cc rejects this. */
18851 struct point {int x, y;};
18852 static struct point const zero = {0,0};
18853 /* AIX XL C 1.02.0.0 rejects this.
18854 It does not let you subtract one const X* pointer from another in
18855 an arm of an if-expression whose if-part is not a constant
18857 const char *g = "string";
18858 pcpcc = &g + (g ? g-g : 0);
18859 /* HPUX 7.0 cc rejects these. */
18861 ppc = (char**) pcpcc;
18862 pcpcc = (char const *const *) ppc;
18863 { /* SCO 3.2v4 cc rejects this. */
18865 char const *s = 0 ? (char *) 0 : (char const *) 0;
18870 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18871 int x[] = {25, 17};
18872 const int *foo = &x[0];
18875 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18876 typedef const int *iptr;
18880 { /* AIX XL C 1.02.0.0 rejects this saying
18881 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18882 struct s { int j; const int *ap[3]; };
18883 struct s *b; b->j = 5;
18885 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18886 const int foo = 10;
18887 if (!foo) return 0;
18889 return !cs[0] && !zero.x;
18896 if ac_fn_c_try_compile "$LINENO"; then :
18901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18904 $as_echo "$ac_cv_c_const" >&6; }
18905 if test $ac_cv_c_const = no; then
18907 $as_echo "#define const /**/" >>confdefs.h
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18913 $as_echo_n "checking for signed... " >&6; }
18914 if ${bh_cv_c_signed+:} false; then :
18915 $as_echo_n "(cached) " >&6
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h. */
18928 if ac_fn_c_try_compile "$LINENO"; then :
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18936 $as_echo "$bh_cv_c_signed" >&6; }
18937 if test $bh_cv_c_signed = no; then
18939 $as_echo "#define signed /**/" >>confdefs.h
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18944 $as_echo_n "checking for inline... " >&6; }
18945 if ${ac_cv_c_inline+:} false; then :
18946 $as_echo_n "(cached) " >&6
18949 for ac_kw in inline __inline__ __inline; do
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18952 #ifndef __cplusplus
18954 static $ac_kw foo_t static_foo () {return 0; }
18955 $ac_kw foo_t foo () {return 0; }
18959 if ac_fn_c_try_compile "$LINENO"; then :
18960 ac_cv_c_inline=$ac_kw
18962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18963 test "$ac_cv_c_inline" != no && break
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18968 $as_echo "$ac_cv_c_inline" >&6; }
18970 case $ac_cv_c_inline in
18973 case $ac_cv_c_inline in
18975 *) ac_val=$ac_cv_c_inline;;
18977 cat >>confdefs.h <<_ACEOF
18978 #ifndef __cplusplus
18979 #define inline $ac_val
18985 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18986 if test "x$ac_cv_type_off_t" = xyes; then :
18990 cat >>confdefs.h <<_ACEOF
18991 #define off_t long int
18996 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18997 if test "x$ac_cv_type_size_t" = xyes; then :
19001 cat >>confdefs.h <<_ACEOF
19002 #define size_t unsigned int
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19009 $as_echo_n "checking for long long... " >&6; }
19010 if ${ac_cv_type_long_long+:} false; then :
19011 $as_echo_n "(cached) " >&6
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19015 long long ll = 1LL; int i = 63;
19019 long long llmax = (long long) -1;
19020 return ll << i | ll >> i | llmax / ll | llmax % ll;
19025 if ac_fn_c_try_link "$LINENO"; then :
19026 ac_cv_type_long_long=yes
19028 ac_cv_type_long_long=no
19030 rm -f core conftest.err conftest.$ac_objext \
19031 conftest$ac_exeext conftest.$ac_ext
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19034 $as_echo "$ac_cv_type_long_long" >&6; }
19035 if test $ac_cv_type_long_long = yes; then
19037 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19043 $as_echo_n "checking for long double... " >&6; }
19044 if ${gt_cv_c_long_double+:} false; then :
19045 $as_echo_n "(cached) " >&6
19047 if test "$GCC" = yes; then
19048 gt_cv_c_long_double=yes
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051 /* end confdefs.h. */
19053 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19054 long double foo = 0.0;
19055 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19056 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067 gt_cv_c_long_double=yes
19069 gt_cv_c_long_double=no
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19075 $as_echo "$gt_cv_c_long_double" >&6; }
19076 if test $gt_cv_c_long_double = yes; then
19078 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19084 $as_echo_n "checking for wchar_t... " >&6; }
19085 if ${gt_cv_c_wchar_t+:} false; then :
19086 $as_echo_n "(cached) " >&6
19088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089 /* end confdefs.h. */
19090 #include <stddef.h>
19091 wchar_t foo = (wchar_t)'\0';
19100 if ac_fn_c_try_compile "$LINENO"; then :
19101 gt_cv_c_wchar_t=yes
19105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19108 $as_echo "$gt_cv_c_wchar_t" >&6; }
19109 if test $gt_cv_c_wchar_t = yes; then
19111 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19117 $as_echo_n "checking for wint_t... " >&6; }
19118 if ${gt_cv_c_wint_t+:} false; then :
19119 $as_echo_n "(cached) " >&6
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19124 wint_t foo = (wchar_t)'\0';
19133 if ac_fn_c_try_compile "$LINENO"; then :
19138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19141 $as_echo "$gt_cv_c_wint_t" >&6; }
19142 if test $gt_cv_c_wint_t = yes; then
19144 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19150 $as_echo_n "checking for inttypes.h... " >&6; }
19151 if ${gl_cv_header_inttypes_h+:} false; then :
19152 $as_echo_n "(cached) " >&6
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19156 #include <sys/types.h>
19157 #include <inttypes.h>
19161 uintmax_t i = (uintmax_t) -1;
19166 if ac_fn_c_try_compile "$LINENO"; then :
19167 gl_cv_header_inttypes_h=yes
19169 gl_cv_header_inttypes_h=no
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19174 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19175 if test $gl_cv_header_inttypes_h = yes; then
19177 cat >>confdefs.h <<_ACEOF
19178 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19185 $as_echo_n "checking for stdint.h... " >&6; }
19186 if ${gl_cv_header_stdint_h+:} false; then :
19187 $as_echo_n "(cached) " >&6
19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19191 #include <sys/types.h>
19192 #include <stdint.h>
19196 uintmax_t i = (uintmax_t) -1;
19201 if ac_fn_c_try_compile "$LINENO"; then :
19202 gl_cv_header_stdint_h=yes
19204 gl_cv_header_stdint_h=no
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19209 $as_echo "$gl_cv_header_stdint_h" >&6; }
19210 if test $gl_cv_header_stdint_h = yes; then
19212 cat >>confdefs.h <<_ACEOF
19213 #define HAVE_STDINT_H_WITH_UINTMAX 1
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19222 $as_echo_n "checking for intmax_t... " >&6; }
19223 if ${gt_cv_c_intmax_t+:} false; then :
19224 $as_echo_n "(cached) " >&6
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19229 #include <stddef.h>
19230 #include <stdlib.h>
19231 #if HAVE_STDINT_H_WITH_UINTMAX
19232 #include <stdint.h>
19234 #if HAVE_INTTYPES_H_WITH_UINTMAX
19235 #include <inttypes.h>
19246 if ac_fn_c_try_compile "$LINENO"; then :
19247 gt_cv_c_intmax_t=yes
19249 gt_cv_c_intmax_t=no
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19254 $as_echo "$gt_cv_c_intmax_t" >&6; }
19255 if test $gt_cv_c_intmax_t = yes; then
19257 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19264 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19265 if ${gt_cv_func_printf_posix+:} false; then :
19266 $as_echo_n "(cached) " >&6
19269 if test "$cross_compiling" = yes; then :
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19274 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19280 $EGREP "notposix" >/dev/null 2>&1; then :
19281 gt_cv_func_printf_posix="guessing no"
19283 gt_cv_func_printf_posix="guessing yes"
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19293 #include <string.h>
19294 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19295 dollar expansion (possibly an autoconf bug). */
19296 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19297 static char buf[100];
19300 sprintf (buf, format, 33, 55);
19301 return (strcmp (buf, "55 33") != 0);
19304 if ac_fn_c_try_run "$LINENO"; then :
19305 gt_cv_func_printf_posix=yes
19307 gt_cv_func_printf_posix=no
19309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19310 conftest.$ac_objext conftest.beam conftest.$ac_ext
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19316 $as_echo "$gt_cv_func_printf_posix" >&6; }
19317 case $gt_cv_func_printf_posix in
19320 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19325 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19326 # for constant arguments. Useless!
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19328 $as_echo_n "checking for working alloca.h... " >&6; }
19329 if ${ac_cv_working_alloca_h+:} false; then :
19330 $as_echo_n "(cached) " >&6
19332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333 /* end confdefs.h. */
19334 #include <alloca.h>
19338 char *p = (char *) alloca (2 * sizeof (int));
19344 if ac_fn_c_try_link "$LINENO"; then :
19345 ac_cv_working_alloca_h=yes
19347 ac_cv_working_alloca_h=no
19349 rm -f core conftest.err conftest.$ac_objext \
19350 conftest$ac_exeext conftest.$ac_ext
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19353 $as_echo "$ac_cv_working_alloca_h" >&6; }
19354 if test $ac_cv_working_alloca_h = yes; then
19356 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19361 $as_echo_n "checking for alloca... " >&6; }
19362 if ${ac_cv_func_alloca_works+:} false; then :
19363 $as_echo_n "(cached) " >&6
19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19368 # define alloca __builtin_alloca
19371 # include <malloc.h>
19372 # define alloca _alloca
19374 # ifdef HAVE_ALLOCA_H
19375 # include <alloca.h>
19380 # ifndef alloca /* predefined by HP cc +Olibcalls */
19381 void *alloca (size_t);
19391 char *p = (char *) alloca (1);
19397 if ac_fn_c_try_link "$LINENO"; then :
19398 ac_cv_func_alloca_works=yes
19400 ac_cv_func_alloca_works=no
19402 rm -f core conftest.err conftest.$ac_objext \
19403 conftest$ac_exeext conftest.$ac_ext
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19406 $as_echo "$ac_cv_func_alloca_works" >&6; }
19408 if test $ac_cv_func_alloca_works = yes; then
19410 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19413 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19414 # that cause trouble. Some versions do not even contain alloca or
19415 # contain a buggy version. If you still want to use their alloca,
19416 # use ar to extract alloca.o from them instead of compiling alloca.c.
19418 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19420 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19424 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19425 if ${ac_cv_os_cray+:} false; then :
19426 $as_echo_n "(cached) " >&6
19428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430 #if defined CRAY && ! defined CRAY2
19437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19438 $EGREP "webecray" >/dev/null 2>&1; then :
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19447 $as_echo "$ac_cv_os_cray" >&6; }
19448 if test $ac_cv_os_cray = yes; then
19449 for ac_func in _getb67 GETB67 getb67; do
19450 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19454 cat >>confdefs.h <<_ACEOF
19455 #define CRAY_STACKSEG_END $ac_func
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19465 $as_echo_n "checking stack direction for C alloca... " >&6; }
19466 if ${ac_cv_c_stack_direction+:} false; then :
19467 $as_echo_n "(cached) " >&6
19469 if test "$cross_compiling" = yes; then :
19470 ac_cv_c_stack_direction=0
19472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19474 $ac_includes_default
19476 find_stack_direction ()
19478 static char *addr = 0;
19483 return find_stack_direction ();
19486 return (&dummy > addr) ? 1 : -1;
19492 return find_stack_direction () < 0;
19495 if ac_fn_c_try_run "$LINENO"; then :
19496 ac_cv_c_stack_direction=1
19498 ac_cv_c_stack_direction=-1
19500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19501 conftest.$ac_objext conftest.beam conftest.$ac_ext
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19506 $as_echo "$ac_cv_c_stack_direction" >&6; }
19507 cat >>confdefs.h <<_ACEOF
19508 #define STACK_DIRECTION $ac_cv_c_stack_direction
19517 for ac_header in $ac_header_list
19519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19520 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19522 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19523 cat >>confdefs.h <<_ACEOF
19524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19538 for ac_func in getpagesize
19540 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19541 if test "x$ac_cv_func_getpagesize" = xyes; then :
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_GETPAGESIZE 1
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19550 $as_echo_n "checking for working mmap... " >&6; }
19551 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19552 $as_echo_n "(cached) " >&6
19554 if test "$cross_compiling" = yes; then :
19555 ac_cv_func_mmap_fixed_mapped=no
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h. */
19559 $ac_includes_default
19560 /* malloc might have been renamed as rpl_malloc. */
19563 /* Thanks to Mike Haertel and Jim Avera for this test.
19564 Here is a matrix of mmap possibilities:
19565 mmap private not fixed
19566 mmap private fixed at somewhere currently unmapped
19567 mmap private fixed at somewhere already mapped
19568 mmap shared not fixed
19569 mmap shared fixed at somewhere currently unmapped
19570 mmap shared fixed at somewhere already mapped
19571 For private mappings, we should verify that changes cannot be read()
19572 back from the file, nor mmap's back from the file at a different
19573 address. (There have been systems where private was not correctly
19574 implemented like the infamous i386 svr4.0, and systems where the
19575 VM page cache was not coherent with the file system buffer cache
19576 like early versions of FreeBSD and possibly contemporary NetBSD.)
19577 For shared mappings, we should conversely verify that changes get
19578 propagated back to all the places they're supposed to be.
19580 Grep wants private fixed already mapped.
19581 The main things grep needs to know about mmap are:
19582 * does it exist and is it safe to write into the mmap'd area
19583 * how to use it (BSD variants) */
19586 #include <sys/mman.h>
19588 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19592 /* This mess was copied from the GNU getpagesize.h. */
19593 #ifndef HAVE_GETPAGESIZE
19594 # ifdef _SC_PAGESIZE
19595 # define getpagesize() sysconf(_SC_PAGESIZE)
19596 # else /* no _SC_PAGESIZE */
19597 # ifdef HAVE_SYS_PARAM_H
19598 # include <sys/param.h>
19599 # ifdef EXEC_PAGESIZE
19600 # define getpagesize() EXEC_PAGESIZE
19601 # else /* no EXEC_PAGESIZE */
19603 # define getpagesize() NBPG * CLSIZE
19606 # endif /* no CLSIZE */
19607 # else /* no NBPG */
19609 # define getpagesize() NBPC
19610 # else /* no NBPC */
19612 # define getpagesize() PAGESIZE
19613 # endif /* PAGESIZE */
19614 # endif /* no NBPC */
19615 # endif /* no NBPG */
19616 # endif /* no EXEC_PAGESIZE */
19617 # else /* no HAVE_SYS_PARAM_H */
19618 # define getpagesize() 8192 /* punt totally */
19619 # endif /* no HAVE_SYS_PARAM_H */
19620 # endif /* no _SC_PAGESIZE */
19622 #endif /* no HAVE_GETPAGESIZE */
19627 char *data, *data2, *data3;
19628 const char *cdata2;
19632 pagesize = getpagesize ();
19634 /* First, make a file with some known garbage in it. */
19635 data = (char *) malloc (pagesize);
19638 for (i = 0; i < pagesize; ++i)
19639 *(data + i) = rand ();
19641 fd = creat ("conftest.mmap", 0600);
19644 if (write (fd, data, pagesize) != pagesize)
19648 /* Next, check that the tail of a page is zero-filled. File must have
19649 non-zero length, otherwise we risk SIGBUS for entire page. */
19650 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19654 if (write (fd2, cdata2, 1) != 1)
19656 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19657 if (data2 == MAP_FAILED)
19659 for (i = 0; i < pagesize; ++i)
19663 if (munmap (data2, pagesize))
19666 /* Next, try to mmap the file at a fixed address which already has
19667 something else allocated at it. If we can, also make sure that
19668 we see the same garbage. */
19669 fd = open ("conftest.mmap", O_RDWR);
19672 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19673 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19675 for (i = 0; i < pagesize; ++i)
19676 if (*(data + i) != *(data2 + i))
19679 /* Finally, make sure that changes to the mapped area do not
19680 percolate back to the file as seen by read(). (This is a bug on
19681 some variants of i386 svr4.0.) */
19682 for (i = 0; i < pagesize; ++i)
19683 *(data2 + i) = *(data2 + i) + 1;
19684 data3 = (char *) malloc (pagesize);
19687 if (read (fd, data3, pagesize) != pagesize)
19689 for (i = 0; i < pagesize; ++i)
19690 if (*(data + i) != *(data3 + i))
19696 if ac_fn_c_try_run "$LINENO"; then :
19697 ac_cv_func_mmap_fixed_mapped=yes
19699 ac_cv_func_mmap_fixed_mapped=no
19701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19702 conftest.$ac_objext conftest.beam conftest.$ac_ext
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19707 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19708 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19710 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19713 rm -f conftest.mmap conftest.txt
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19717 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19718 if ${ac_cv_gnu_library_2_1+:} false; then :
19719 $as_echo_n "(cached) " >&6
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19724 #include <features.h>
19725 #ifdef __GNU_LIBRARY__
19726 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19733 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19734 ac_cv_gnu_library_2_1=yes
19736 ac_cv_gnu_library_2_1=no
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19744 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19746 GLIBC21="$ac_cv_gnu_library_2_1"
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19752 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19753 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19754 $as_echo_n "(cached) " >&6
19757 if test "$cross_compiling" = yes; then :
19759 # Guess based on the CPU.
19760 case "$host_cpu" in
19761 alpha* | i3456786 | m68k | s390*)
19762 gt_cv_int_divbyzero_sigfpe="guessing yes";;
19764 gt_cv_int_divbyzero_sigfpe="guessing no";;
19768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h. */
19771 #include <stdlib.h>
19772 #include <signal.h>
19776 sigfpe_handler (int sig)
19778 sigfpe_handler (sig) int sig;
19781 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
19782 exit (sig != SIGFPE);
19792 signal (SIGFPE, sigfpe_handler);
19793 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
19794 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19795 signal (SIGTRAP, sigfpe_handler);
19797 /* Linux/SPARC yields signal SIGILL. */
19798 #if defined (__sparc__) && defined (__linux__)
19799 signal (SIGILL, sigfpe_handler);
19808 if ac_fn_c_try_run "$LINENO"; then :
19809 gt_cv_int_divbyzero_sigfpe=yes
19811 gt_cv_int_divbyzero_sigfpe=no
19813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19814 conftest.$ac_objext conftest.beam conftest.$ac_ext
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19820 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19821 case "$gt_cv_int_divbyzero_sigfpe" in
19826 cat >>confdefs.h <<_ACEOF
19827 #define INTDIV0_RAISES_SIGFPE $value
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19833 $as_echo_n "checking for unsigned long long... " >&6; }
19834 if ${ac_cv_type_unsigned_long_long+:} false; then :
19835 $as_echo_n "(cached) " >&6
19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h. */
19839 unsigned long long ull = 1ULL; int i = 63;
19843 unsigned long long ullmax = (unsigned long long) -1;
19844 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19849 if ac_fn_c_try_link "$LINENO"; then :
19850 ac_cv_type_unsigned_long_long=yes
19852 ac_cv_type_unsigned_long_long=no
19854 rm -f core conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19858 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19859 if test $ac_cv_type_unsigned_long_long = yes; then
19861 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19868 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19870 test $ac_cv_type_unsigned_long_long = yes \
19871 && ac_type='unsigned long long' \
19872 || ac_type='unsigned long'
19874 cat >>confdefs.h <<_ACEOF
19875 #define uintmax_t $ac_type
19880 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19886 $as_echo_n "checking for inttypes.h... " >&6; }
19887 if ${gt_cv_header_inttypes_h+:} false; then :
19888 $as_echo_n "(cached) " >&6
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893 #include <sys/types.h>
19894 #include <inttypes.h>
19903 if ac_fn_c_try_compile "$LINENO"; then :
19904 gt_cv_header_inttypes_h=yes
19906 gt_cv_header_inttypes_h=no
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19912 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19913 if test $gt_cv_header_inttypes_h = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916 #define HAVE_INTTYPES_H 1
19923 if test $gt_cv_header_inttypes_h = yes; then
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19925 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19926 if ${gt_cv_inttypes_pri_broken+:} false; then :
19927 $as_echo_n "(cached) " >&6
19930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h. */
19932 #include <inttypes.h>
19945 if ac_fn_c_try_compile "$LINENO"; then :
19946 gt_cv_inttypes_pri_broken=no
19948 gt_cv_inttypes_pri_broken=yes
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19954 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19956 if test "$gt_cv_inttypes_pri_broken" = yes; then
19958 cat >>confdefs.h <<_ACEOF
19959 #define PRI_MACROS_BROKEN 1
19965 for ac_header in stdint.h
19967 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19968 if test "x$ac_cv_header_stdint_h" = xyes; then :
19969 cat >>confdefs.h <<_ACEOF
19970 #define HAVE_STDINT_H 1
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19978 $as_echo_n "checking for SIZE_MAX... " >&6; }
19980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19981 /* end confdefs.h. */
19983 #include <limits.h>
19985 #include <stdint.h>
19992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19993 $EGREP "Found it" >/dev/null 2>&1; then :
19998 if test -z "$result"; then
19999 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20006 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20013 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20020 if test "$fits_in_uint" = 1; then
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20023 #include <stddef.h>
20025 extern unsigned long foo;
20035 if ac_fn_c_try_compile "$LINENO"; then :
20038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20040 if test -z "$result"; then
20041 if test "$fits_in_uint" = 1; then
20042 result="$res_hi$res_lo"U
20044 result="$res_hi$res_lo"UL
20047 result='~(size_t)0'
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20051 $as_echo "$result" >&6; }
20052 if test "$result" != yes; then
20054 cat >>confdefs.h <<_ACEOF
20055 #define SIZE_MAX $result
20063 for ac_header in stdint.h
20065 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20066 if test "x$ac_cv_header_stdint_h" = xyes; then :
20067 cat >>confdefs.h <<_ACEOF
20068 #define HAVE_STDINT_H 1
20082 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20083 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20087 $as_echo "#define ptrdiff_t long" >>confdefs.h
20092 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20093 stdlib.h string.h unistd.h sys/param.h
20095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20096 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20098 cat >>confdefs.h <<_ACEOF
20099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20106 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20107 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20108 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20114 cat >>confdefs.h <<_ACEOF
20115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20124 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20125 if ${ac_cv_have_decl__snprintf+:} false; then :
20126 $as_echo_n "(cached) " >&6
20128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h. */
20136 char *p = (char *) _snprintf;
20143 if ac_fn_c_try_compile "$LINENO"; then :
20144 ac_cv_have_decl__snprintf=yes
20146 ac_cv_have_decl__snprintf=no
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20151 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20152 if test $ac_cv_have_decl__snprintf = yes; then
20158 cat >>confdefs.h <<_ACEOF
20159 #define HAVE_DECL__SNPRINTF $gt_value
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20165 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20166 if ${ac_cv_have_decl__snwprintf+:} false; then :
20167 $as_echo_n "(cached) " >&6
20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h. */
20177 char *p = (char *) _snwprintf;
20184 if ac_fn_c_try_compile "$LINENO"; then :
20185 ac_cv_have_decl__snwprintf=yes
20187 ac_cv_have_decl__snwprintf=no
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20192 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20193 if test $ac_cv_have_decl__snwprintf = yes; then
20199 cat >>confdefs.h <<_ACEOF
20200 #define HAVE_DECL__SNWPRINTF $gt_value
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20207 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20208 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20209 $as_echo_n "(cached) " >&6
20211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20212 /* end confdefs.h. */
20218 #ifndef feof_unlocked
20219 char *p = (char *) feof_unlocked;
20226 if ac_fn_c_try_compile "$LINENO"; then :
20227 ac_cv_have_decl_feof_unlocked=yes
20229 ac_cv_have_decl_feof_unlocked=no
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20234 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20235 if test $ac_cv_have_decl_feof_unlocked = yes; then
20241 cat >>confdefs.h <<_ACEOF
20242 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20248 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20249 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20250 $as_echo_n "(cached) " >&6
20252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h. */
20259 #ifndef fgets_unlocked
20260 char *p = (char *) fgets_unlocked;
20267 if ac_fn_c_try_compile "$LINENO"; then :
20268 ac_cv_have_decl_fgets_unlocked=yes
20270 ac_cv_have_decl_fgets_unlocked=no
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20275 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20276 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20289 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20290 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20291 $as_echo_n "(cached) " >&6
20293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20294 /* end confdefs.h. */
20300 #ifndef getc_unlocked
20301 char *p = (char *) getc_unlocked;
20308 if ac_fn_c_try_compile "$LINENO"; then :
20309 ac_cv_have_decl_getc_unlocked=yes
20311 ac_cv_have_decl_getc_unlocked=no
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20316 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20317 if test $ac_cv_have_decl_getc_unlocked = yes; then
20323 cat >>confdefs.h <<_ACEOF
20324 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20329 case $gt_cv_func_printf_posix in
20330 *yes) HAVE_POSIX_PRINTF=1 ;;
20331 *) HAVE_POSIX_PRINTF=0 ;;
20334 if test "$ac_cv_func_asprintf" = yes; then
20340 if test "$ac_cv_func_snprintf" = yes; then
20346 if test "$ac_cv_func_wprintf" = yes; then
20358 am_save_CPPFLAGS="$CPPFLAGS"
20360 for element in $INCICONV; do
20362 for x in $CPPFLAGS; do
20364 acl_save_prefix="$prefix"
20365 prefix="$acl_final_prefix"
20366 acl_save_exec_prefix="$exec_prefix"
20367 exec_prefix="$acl_final_exec_prefix"
20369 exec_prefix="$acl_save_exec_prefix"
20370 prefix="$acl_save_prefix"
20372 if test "X$x" = "X$element"; then
20377 if test -z "$haveit"; then
20378 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20384 $as_echo_n "checking for iconv... " >&6; }
20385 if ${am_cv_func_iconv+:} false; then :
20386 $as_echo_n "(cached) " >&6
20389 am_cv_func_iconv="no, consider installing GNU libiconv"
20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20393 #include <stdlib.h>
20398 iconv_t cd = iconv_open("","");
20399 iconv(cd,NULL,NULL,NULL,NULL);
20405 if ac_fn_c_try_link "$LINENO"; then :
20406 am_cv_func_iconv=yes
20408 rm -f core conftest.err conftest.$ac_objext \
20409 conftest$ac_exeext conftest.$ac_ext
20410 if test "$am_cv_func_iconv" != yes; then
20411 am_save_LIBS="$LIBS"
20412 LIBS="$LIBS $LIBICONV"
20413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20414 /* end confdefs.h. */
20415 #include <stdlib.h>
20420 iconv_t cd = iconv_open("","");
20421 iconv(cd,NULL,NULL,NULL,NULL);
20427 if ac_fn_c_try_link "$LINENO"; then :
20428 am_cv_lib_iconv=yes
20429 am_cv_func_iconv=yes
20431 rm -f core conftest.err conftest.$ac_objext \
20432 conftest$ac_exeext conftest.$ac_ext
20433 LIBS="$am_save_LIBS"
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20438 $as_echo "$am_cv_func_iconv" >&6; }
20439 if test "$am_cv_func_iconv" = yes; then
20441 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20444 if test "$am_cv_lib_iconv" = yes; then
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20446 $as_echo_n "checking how to link with libiconv... " >&6; }
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20448 $as_echo "$LIBICONV" >&6; }
20450 CPPFLAGS="$am_save_CPPFLAGS"
20457 if test "$am_cv_func_iconv" = yes; then
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20459 $as_echo_n "checking for iconv declaration... " >&6; }
20460 if ${am_cv_proto_iconv+:} false; then :
20461 $as_echo_n "(cached) " >&6
20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h. */
20467 #include <stdlib.h>
20473 #if defined(__STDC__) || defined(__cplusplus)
20474 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20487 if ac_fn_c_try_compile "$LINENO"; then :
20488 am_cv_proto_iconv_arg1=""
20490 am_cv_proto_iconv_arg1="const"
20492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 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);"
20496 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20498 }$am_cv_proto_iconv" >&5
20500 }$am_cv_proto_iconv" >&6; }
20502 cat >>confdefs.h <<_ACEOF
20503 #define ICONV_CONST $am_cv_proto_iconv_arg1
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20510 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20511 if ${am_cv_langinfo_codeset+:} false; then :
20512 $as_echo_n "(cached) " >&6
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20516 #include <langinfo.h>
20520 char* cs = nl_langinfo(CODESET);
20525 if ac_fn_c_try_link "$LINENO"; then :
20526 am_cv_langinfo_codeset=yes
20528 am_cv_langinfo_codeset=no
20530 rm -f core conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20535 $as_echo "$am_cv_langinfo_codeset" >&6; }
20536 if test $am_cv_langinfo_codeset = yes; then
20538 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20542 if test $ac_cv_header_locale_h = yes; then
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20545 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20546 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20547 $as_echo_n "(cached) " >&6
20549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20550 /* end confdefs.h. */
20551 #include <locale.h>
20560 if ac_fn_c_try_link "$LINENO"; then :
20561 gt_cv_val_LC_MESSAGES=yes
20563 gt_cv_val_LC_MESSAGES=no
20565 rm -f core conftest.err conftest.$ac_objext \
20566 conftest$ac_exeext conftest.$ac_ext
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20569 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20570 if test $gt_cv_val_LC_MESSAGES = yes; then
20572 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20578 if test -n "$INTL_MACOSX_LIBS"; then
20579 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20582 for ac_prog in bison
20584 # Extract the first word of "$ac_prog", so it can be a program name with args.
20585 set dummy $ac_prog; ac_word=$2
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20587 $as_echo_n "checking for $ac_word... " >&6; }
20588 if ${ac_cv_prog_INTLBISON+:} false; then :
20589 $as_echo_n "(cached) " >&6
20591 if test -n "$INTLBISON"; then
20592 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20595 for as_dir in $PATH
20598 test -z "$as_dir" && as_dir=.
20599 for ac_exec_ext in '' $ac_executable_extensions; do
20600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20601 ac_cv_prog_INTLBISON="$ac_prog"
20602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20611 INTLBISON=$ac_cv_prog_INTLBISON
20612 if test -n "$INTLBISON"; then
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20614 $as_echo "$INTLBISON" >&6; }
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617 $as_echo "no" >&6; }
20621 test -n "$INTLBISON" && break
20624 if test -z "$INTLBISON"; then
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20628 $as_echo_n "checking version of bison... " >&6; }
20629 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20630 case $ac_prog_version in
20631 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20632 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20633 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20634 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20637 $as_echo "$ac_prog_version" >&6; }
20639 if test $ac_verc_fail = yes; then
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20659 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20660 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20661 $as_echo_n "(cached) " >&6
20663 gt_save_CPPFLAGS="$CPPFLAGS"
20664 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20665 gt_save_LIBS="$LIBS"
20666 LIBS="$LIBS -framework CoreFoundation"
20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h. */
20669 #include <CFPreferences.h>
20673 CFPreferencesCopyAppValue(NULL, NULL)
20678 if ac_fn_c_try_link "$LINENO"; then :
20679 gt_cv_func_CFPreferencesCopyAppValue=yes
20681 gt_cv_func_CFPreferencesCopyAppValue=no
20683 rm -f core conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20685 CPPFLAGS="$gt_save_CPPFLAGS"
20686 LIBS="$gt_save_LIBS"
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20689 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20690 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20692 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20696 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20697 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20698 $as_echo_n "(cached) " >&6
20700 gt_save_CPPFLAGS="$CPPFLAGS"
20701 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20702 gt_save_LIBS="$LIBS"
20703 LIBS="$LIBS -framework CoreFoundation"
20704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20705 /* end confdefs.h. */
20706 #include <CFLocale.h>
20710 CFLocaleCopyCurrent();
20715 if ac_fn_c_try_link "$LINENO"; then :
20716 gt_cv_func_CFLocaleCopyCurrent=yes
20718 gt_cv_func_CFLocaleCopyCurrent=no
20720 rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722 CPPFLAGS="$gt_save_CPPFLAGS"
20723 LIBS="$gt_save_LIBS"
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20726 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20727 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20729 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20733 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20734 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20741 $as_echo_n "checking whether NLS is requested... " >&6; }
20742 # Check whether --enable-nls was given.
20743 if test "${enable_nls+set}" = set; then :
20744 enableval=$enable_nls; USE_NLS=$enableval
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20750 $as_echo "$USE_NLS" >&6; }
20755 BUILD_INCLUDED_LIBINTL=no
20756 USE_INCLUDED_LIBINTL=no
20762 if test "$USE_NLS" = "yes"; then
20763 gt_use_preinstalled_gnugettext=no
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20766 $as_echo_n "checking whether included gettext is requested... " >&6; }
20768 # Check whether --with-included-gettext was given.
20769 if test "${with_included_gettext+set}" = set; then :
20770 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20772 nls_cv_force_use_gnu_gettext=no
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20776 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20778 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20779 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20787 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20788 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20789 $as_echo_n "(cached) " >&6
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20793 #include <libintl.h>
20794 extern int _nl_msg_cat_cntr;
20795 extern int *_nl_domain_bindings;
20799 bindtextdomain ("", "");
20800 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20805 if ac_fn_c_try_link "$LINENO"; then :
20806 gt_cv_func_gnugettext1_libc=yes
20808 gt_cv_func_gnugettext1_libc=no
20810 rm -f core conftest.err conftest.$ac_objext \
20811 conftest$ac_exeext conftest.$ac_ext
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20814 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20816 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20822 acl_save_prefix="$prefix"
20823 prefix="$acl_final_prefix"
20824 acl_save_exec_prefix="$exec_prefix"
20825 exec_prefix="$acl_final_exec_prefix"
20827 eval additional_includedir=\"$includedir\"
20828 eval additional_libdir=\"$libdir\"
20830 exec_prefix="$acl_save_exec_prefix"
20831 prefix="$acl_save_prefix"
20834 # Check whether --with-libintl-prefix was given.
20835 if test "${with_libintl_prefix+set}" = set; then :
20836 withval=$with_libintl_prefix;
20837 if test "X$withval" = "Xno"; then
20840 if test "X$withval" = "X"; then
20842 acl_save_prefix="$prefix"
20843 prefix="$acl_final_prefix"
20844 acl_save_exec_prefix="$exec_prefix"
20845 exec_prefix="$acl_final_exec_prefix"
20847 eval additional_includedir=\"$includedir\"
20848 eval additional_libdir=\"$libdir\"
20850 exec_prefix="$acl_save_exec_prefix"
20851 prefix="$acl_save_prefix"
20854 additional_includedir="$withval/include"
20855 additional_libdir="$withval/lib"
20866 names_already_handled=
20867 names_next_round='intl '
20868 while test -n "$names_next_round"; do
20869 names_this_round="$names_next_round"
20871 for name in $names_this_round; do
20873 for n in $names_already_handled; do
20874 if test "$n" = "$name"; then
20875 already_handled=yes
20879 if test -z "$already_handled"; then
20880 names_already_handled="$names_already_handled $name"
20881 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20882 eval value=\"\$HAVE_LIB$uppername\"
20883 if test -n "$value"; then
20884 if test "$value" = yes; then
20885 eval value=\"\$LIB$uppername\"
20886 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20887 eval value=\"\$LTLIB$uppername\"
20888 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20897 if test $use_additional = yes; then
20898 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20899 found_dir="$additional_libdir"
20900 found_so="$additional_libdir/lib$name.$shlibext"
20901 if test -f "$additional_libdir/lib$name.la"; then
20902 found_la="$additional_libdir/lib$name.la"
20905 if test -f "$additional_libdir/lib$name.$libext"; then
20906 found_dir="$additional_libdir"
20907 found_a="$additional_libdir/lib$name.$libext"
20908 if test -f "$additional_libdir/lib$name.la"; then
20909 found_la="$additional_libdir/lib$name.la"
20914 if test "X$found_dir" = "X"; then
20915 for x in $LDFLAGS $LTLIBINTL; do
20917 acl_save_prefix="$prefix"
20918 prefix="$acl_final_prefix"
20919 acl_save_exec_prefix="$exec_prefix"
20920 exec_prefix="$acl_final_exec_prefix"
20922 exec_prefix="$acl_save_exec_prefix"
20923 prefix="$acl_save_prefix"
20927 dir=`echo "X$x" | sed -e 's/^X-L//'`
20928 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20930 found_so="$dir/lib$name.$shlibext"
20931 if test -f "$dir/lib$name.la"; then
20932 found_la="$dir/lib$name.la"
20935 if test -f "$dir/lib$name.$libext"; then
20937 found_a="$dir/lib$name.$libext"
20938 if test -f "$dir/lib$name.la"; then
20939 found_la="$dir/lib$name.la"
20945 if test "X$found_dir" != "X"; then
20950 if test "X$found_dir" != "X"; then
20951 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20952 if test "X$found_so" != "X"; then
20953 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20954 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20957 for x in $ltrpathdirs; do
20958 if test "X$x" = "X$found_dir"; then
20963 if test -z "$haveit"; then
20964 ltrpathdirs="$ltrpathdirs $found_dir"
20966 if test "$hardcode_direct" = yes; then
20967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20969 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20970 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20972 for x in $rpathdirs; do
20973 if test "X$x" = "X$found_dir"; then
20978 if test -z "$haveit"; then
20979 rpathdirs="$rpathdirs $found_dir"
20983 for x in $LDFLAGS $LIBINTL; do
20985 acl_save_prefix="$prefix"
20986 prefix="$acl_final_prefix"
20987 acl_save_exec_prefix="$exec_prefix"
20988 exec_prefix="$acl_final_exec_prefix"
20990 exec_prefix="$acl_save_exec_prefix"
20991 prefix="$acl_save_prefix"
20993 if test "X$x" = "X-L$found_dir"; then
20998 if test -z "$haveit"; then
20999 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21001 if test "$hardcode_minus_L" != no; then
21002 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21004 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21010 if test "X$found_a" != "X"; then
21011 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21013 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21016 additional_includedir=
21017 case "$found_dir" in
21019 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21020 additional_includedir="$basedir/include"
21023 if test "X$additional_includedir" != "X"; then
21024 if test "X$additional_includedir" != "X/usr/include"; then
21026 if test "X$additional_includedir" = "X/usr/local/include"; then
21027 if test -n "$GCC"; then
21029 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21033 if test -z "$haveit"; then
21034 for x in $CPPFLAGS $INCINTL; do
21036 acl_save_prefix="$prefix"
21037 prefix="$acl_final_prefix"
21038 acl_save_exec_prefix="$exec_prefix"
21039 exec_prefix="$acl_final_exec_prefix"
21041 exec_prefix="$acl_save_exec_prefix"
21042 prefix="$acl_save_prefix"
21044 if test "X$x" = "X-I$additional_includedir"; then
21049 if test -z "$haveit"; then
21050 if test -d "$additional_includedir"; then
21051 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21057 if test -n "$found_la"; then
21058 save_libdir="$libdir"
21059 case "$found_la" in
21060 */* | *\\*) . "$found_la" ;;
21061 *) . "./$found_la" ;;
21063 libdir="$save_libdir"
21064 for dep in $dependency_libs; do
21067 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21068 if test "X$additional_libdir" != "X/usr/lib"; then
21070 if test "X$additional_libdir" = "X/usr/local/lib"; then
21071 if test -n "$GCC"; then
21073 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21077 if test -z "$haveit"; then
21079 for x in $LDFLAGS $LIBINTL; do
21081 acl_save_prefix="$prefix"
21082 prefix="$acl_final_prefix"
21083 acl_save_exec_prefix="$exec_prefix"
21084 exec_prefix="$acl_final_exec_prefix"
21086 exec_prefix="$acl_save_exec_prefix"
21087 prefix="$acl_save_prefix"
21089 if test "X$x" = "X-L$additional_libdir"; then
21094 if test -z "$haveit"; then
21095 if test -d "$additional_libdir"; then
21096 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21100 for x in $LDFLAGS $LTLIBINTL; do
21102 acl_save_prefix="$prefix"
21103 prefix="$acl_final_prefix"
21104 acl_save_exec_prefix="$exec_prefix"
21105 exec_prefix="$acl_final_exec_prefix"
21107 exec_prefix="$acl_save_exec_prefix"
21108 prefix="$acl_save_prefix"
21110 if test "X$x" = "X-L$additional_libdir"; then
21115 if test -z "$haveit"; then
21116 if test -d "$additional_libdir"; then
21117 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21124 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21125 if test "$enable_rpath" != no; then
21127 for x in $rpathdirs; do
21128 if test "X$x" = "X$dir"; then
21133 if test -z "$haveit"; then
21134 rpathdirs="$rpathdirs $dir"
21137 for x in $ltrpathdirs; do
21138 if test "X$x" = "X$dir"; then
21143 if test -z "$haveit"; then
21144 ltrpathdirs="$ltrpathdirs $dir"
21149 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21152 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21155 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21156 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21162 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21163 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21169 if test "X$rpathdirs" != "X"; then
21170 if test -n "$hardcode_libdir_separator"; then
21172 for found_dir in $rpathdirs; do
21173 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21175 acl_save_libdir="$libdir"
21177 eval flag=\"$hardcode_libdir_flag_spec\"
21178 libdir="$acl_save_libdir"
21179 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21181 for found_dir in $rpathdirs; do
21182 acl_save_libdir="$libdir"
21183 libdir="$found_dir"
21184 eval flag=\"$hardcode_libdir_flag_spec\"
21185 libdir="$acl_save_libdir"
21186 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21190 if test "X$ltrpathdirs" != "X"; then
21191 for found_dir in $ltrpathdirs; do
21192 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21197 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21198 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21199 $as_echo_n "(cached) " >&6
21201 gt_save_CPPFLAGS="$CPPFLAGS"
21202 CPPFLAGS="$CPPFLAGS $INCINTL"
21203 gt_save_LIBS="$LIBS"
21204 LIBS="$LIBS $LIBINTL"
21205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21206 /* end confdefs.h. */
21207 #include <libintl.h>
21208 extern int _nl_msg_cat_cntr;
21213 const char *_nl_expand_alias (const char *);
21217 bindtextdomain ("", "");
21218 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21223 if ac_fn_c_try_link "$LINENO"; then :
21224 gt_cv_func_gnugettext1_libintl=yes
21226 gt_cv_func_gnugettext1_libintl=no
21228 rm -f core conftest.err conftest.$ac_objext \
21229 conftest$ac_exeext conftest.$ac_ext
21230 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21231 LIBS="$LIBS $LIBICONV"
21232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21233 /* end confdefs.h. */
21234 #include <libintl.h>
21235 extern int _nl_msg_cat_cntr;
21240 const char *_nl_expand_alias (const char *);
21244 bindtextdomain ("", "");
21245 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21250 if ac_fn_c_try_link "$LINENO"; then :
21251 LIBINTL="$LIBINTL $LIBICONV"
21252 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21253 gt_cv_func_gnugettext1_libintl=yes
21256 rm -f core conftest.err conftest.$ac_objext \
21257 conftest$ac_exeext conftest.$ac_ext
21259 CPPFLAGS="$gt_save_CPPFLAGS"
21260 LIBS="$gt_save_LIBS"
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21263 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21266 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21267 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21268 && test "$PACKAGE" != gettext-runtime \
21269 && test "$PACKAGE" != gettext-tools; }; then
21270 gt_use_preinstalled_gnugettext=yes
21278 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21279 nls_cv_use_gnu_gettext=yes
21283 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21284 BUILD_INCLUDED_LIBINTL=yes
21285 USE_INCLUDED_LIBINTL=yes
21286 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21287 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21288 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21292 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21293 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21298 if test -n "$INTL_MACOSX_LIBS"; then
21299 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21300 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21301 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21302 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21306 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21307 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21309 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21317 $as_echo_n "checking whether to use NLS... " >&6; }
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21319 $as_echo "$USE_NLS" >&6; }
21320 if test "$USE_NLS" = "yes"; then
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21322 $as_echo_n "checking where the gettext function comes from... " >&6; }
21323 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21324 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21325 gt_source="external libintl"
21330 gt_source="included intl directory"
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21333 $as_echo "$gt_source" >&6; }
21336 if test "$USE_NLS" = "yes"; then
21338 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21339 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21341 $as_echo_n "checking how to link with libintl... " >&6; }
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21343 $as_echo "$LIBINTL" >&6; }
21345 for element in $INCINTL; do
21347 for x in $CPPFLAGS; do
21349 acl_save_prefix="$prefix"
21350 prefix="$acl_final_prefix"
21351 acl_save_exec_prefix="$exec_prefix"
21352 exec_prefix="$acl_final_exec_prefix"
21354 exec_prefix="$acl_save_exec_prefix"
21355 prefix="$acl_save_prefix"
21357 if test "X$x" = "X$element"; then
21362 if test -z "$haveit"; then
21363 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21370 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21373 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21381 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21382 BUILD_INCLUDED_LIBINTL=yes
21389 nls_cv_header_intl=
21390 nls_cv_header_libgt=
21402 if test "$USE_INCLUDED_LIBINTL" = yes; then
21403 INTLOBJS="\$(GETTOBJS)"
21407 INTL_LIBTOOL_SUFFIX_PREFIX=
21411 INTLLIBS="$LIBINTL"
21420 support_smartalloc=yes
21421 support_readline=yes
21425 support_wx_console=no
21426 support_tray_monitor=no
21431 support_static_tools=no
21432 support_static_fd=no
21433 support_static_sd=no
21434 support_static_dir=no
21435 support_static_cons=no
21437 build_client_only=no
21444 # Check whether --enable-gnome was given.
21445 if test "${enable_gnome+set}" = set; then :
21446 enableval=$enable_gnome;
21447 if test x$enableval = xyes; then
21456 if test x$support_gnome = xyes; then
21457 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21458 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21460 # AC_SUBST(GNOME_DIR)
21462 # Check whether --enable-bat was given.
21463 if test "${enable_bat+set}" = set; then :
21464 enableval=$enable_bat;
21465 if test x$enableval = xyes; then
21467 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21477 if test x$support_bat = xyes; then
21478 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21480 if test $pkg = 0; then
21481 BAT_DIR=src/qt-console
21483 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21501 # Check whether --enable-bwx-console was given.
21502 if test "${enable_bwx_console+set}" = set; then :
21503 enableval=$enable_bwx_console;
21504 if test x$enableval = xyes; then
21505 support_wx_console=yes
21513 if test x$support_wx_console = xyes; then
21514 abc=`$WXCONFIG $WXFLAGS --cppflags`
21516 if test $pkg = 0; then
21517 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21518 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21519 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21523 WX_DIR="src/wx-console"
21526 echo "wx-config program not found. bwx-console disabled."
21528 support_wx_console=no
21533 # Check whether --enable-tray-monitor was given.
21534 if test "${enable_tray_monitor+set}" = set; then :
21535 enableval=$enable_tray_monitor;
21536 if test x$enableval = xyes; then
21537 support_tray_monitor=yes
21545 if test x$support_tray_monitor = xyes; then
21546 abc=`$PKGCONFIG --exists gtk+-2.0`
21548 if test $pkg = 0; then
21549 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21550 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21553 TRAY_MONITOR_DIR=src/tray-monitor
21554 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21556 if test $pkg = 0; then
21558 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21565 # Check whether --enable-smartalloc was given.
21566 if test "${enable_smartalloc+set}" = set; then :
21567 enableval=$enable_smartalloc;
21568 if test x$enableval = xno; then
21569 support_smartalloc=no
21576 if test x$support_smartalloc = xyes; then
21578 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21582 # Check whether --enable-lockmgr was given.
21583 if test "${enable_lockmgr+set}" = set; then :
21584 enableval=$enable_lockmgr;
21585 if test x$enableval = xyes; then
21586 support_lockmgr=yes
21593 if test x$support_lockmgr = xyes; then
21595 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21600 # Check whether --enable-static-tools was given.
21601 if test "${enable_static_tools+set}" = set; then :
21602 enableval=$enable_static_tools;
21603 if test x$enableval = xyes; then
21604 if test x$use_libtool = xyes; then
21605 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21606 please rerun configure with --disable-libtool" "$LINENO" 5
21608 support_static_tools=yes
21616 if test x$support_static_tools = xyes; then
21617 TTOOL_LDFLAGS="-static"
21621 # Check whether --enable-static-fd was given.
21622 if test "${enable_static_fd+set}" = set; then :
21623 enableval=$enable_static_fd;
21624 if test x$enableval = xyes; then
21625 if test x$use_libtool = xyes; then
21626 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21627 please rerun configure with --disable-libtool" "$LINENO" 5
21629 support_static_fd=yes
21637 if test x$support_static_fd = xyes; then
21638 STATIC_FD="static-bacula-fd"
21642 # Check whether --enable-static-sd was given.
21643 if test "${enable_static_sd+set}" = set; then :
21644 enableval=$enable_static_sd;
21645 if test x$enableval = xyes; then
21646 if test x$use_libtool = xyes; then
21647 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21648 please rerun configure with --disable-libtool" "$LINENO" 5
21650 support_static_sd=yes
21658 if test x$support_static_sd = xyes; then
21659 STATIC_SD="static-bacula-sd"
21663 # Check whether --enable-static-dir was given.
21664 if test "${enable_static_dir+set}" = set; then :
21665 enableval=$enable_static_dir;
21666 if test x$enableval = xyes; then
21667 if test x$use_libtool = xyes; then
21668 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21669 please rerun configure with --disable-libtool" "$LINENO" 5
21671 support_static_dir=yes
21679 if test x$support_static_dir = xyes; then
21680 STATIC_DIR="static-bacula-dir"
21684 # Check whether --enable-static-cons was given.
21685 if test "${enable_static_cons+set}" = set; then :
21686 enableval=$enable_static_cons;
21687 if test x$enableval = xyes; then
21688 if test x$use_libtool = xyes; then
21689 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21690 please rerun configure with --disable-libtool" "$LINENO" 5
21692 support_static_cons=yes
21702 if test x$support_static_cons = xyes; then
21703 STATIC_CONS="static-bconsole"
21704 STATIC_GNOME_CONS="static-bgnome-console"
21705 STATIC_WX_CONS="static-bwx-console"
21711 # Check whether --enable-client-only was given.
21712 if test "${enable_client_only+set}" = set; then :
21713 enableval=$enable_client_only;
21714 if test x$enableval = xyes; then
21715 build_client_only=yes
21723 if test x$build_client_only = xno; then
21730 # Check whether --enable-build-dird was given.
21731 if test "${enable_build_dird+set}" = set; then :
21732 enableval=$enable_build_dird;
21733 if test x$enableval = xno; then
21740 if test x$build_dird = xyes; then
21741 DIRD_DIR="src/dird"
21742 DIR_TOOLS="DIRTOOLS"
21745 DIR_TOOLS="NODIRTOOLS"
21750 # Check whether --enable-build-stored was given.
21751 if test "${enable_build_stored+set}" = set; then :
21752 enableval=$enable_build_stored;
21753 if test x$enableval = xno; then
21760 if test x$build_stored = xyes; then
21761 STORED_DIR="src/stored"
21767 # Check whether --enable-conio was given.
21768 if test "${enable_conio+set}" = set; then :
21769 enableval=$enable_conio;
21770 if test x$enableval = xno; then
21780 # Check whether --enable-ipv6 was given.
21781 if test "${enable_ipv6+set}" = set; then :
21782 enableval=$enable_ipv6;
21783 if test x$enableval = xno; then
21791 if test x$support_ipv6 = xyes; then
21792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h. */
21794 #include <sys/types.h>
21795 #include <sys/socket.h>
21796 #include <netinet/in.h>
21800 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21805 if ac_fn_c_try_link "$LINENO"; then :
21810 rm -f core conftest.err conftest.$ac_objext \
21811 conftest$ac_exeext conftest.$ac_ext
21814 if test x$support_ipv6 = xyes; then
21816 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21821 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21822 if test "x$ac_cv_header_curses_h" = xyes; then :
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21825 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21826 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21827 $as_echo_n "(cached) " >&6
21829 ac_check_lib_save_LIBS=$LIBS
21830 LIBS="-ltinfo $LIBS"
21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h. */
21834 /* Override any GCC internal prototype to avoid an error.
21835 Use char because int might match the return type of a GCC
21836 builtin and then its argument prototype would still apply. */
21849 if ac_fn_c_try_link "$LINENO"; then :
21850 ac_cv_lib_tinfo_tgetent=yes
21852 ac_cv_lib_tinfo_tgetent=no
21854 rm -f core conftest.err conftest.$ac_objext \
21855 conftest$ac_exeext conftest.$ac_ext
21856 LIBS=$ac_check_lib_save_LIBS
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21859 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21860 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21865 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21866 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21867 $as_echo_n "(cached) " >&6
21869 ac_check_lib_save_LIBS=$LIBS
21870 LIBS="-lncurses $LIBS"
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h. */
21874 /* Override any GCC internal prototype to avoid an error.
21875 Use char because int might match the return type of a GCC
21876 builtin and then its argument prototype would still apply. */
21889 if ac_fn_c_try_link "$LINENO"; then :
21890 ac_cv_lib_ncurses_tgetent=yes
21892 ac_cv_lib_ncurses_tgetent=no
21894 rm -f core conftest.err conftest.$ac_objext \
21895 conftest$ac_exeext conftest.$ac_ext
21896 LIBS=$ac_check_lib_save_LIBS
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21899 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21900 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21901 TERM_LIB="-lncurses"
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21905 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21906 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21907 $as_echo_n "(cached) " >&6
21909 ac_check_lib_save_LIBS=$LIBS
21910 LIBS="-ltermcap $LIBS"
21911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21912 /* end confdefs.h. */
21914 /* Override any GCC internal prototype to avoid an error.
21915 Use char because int might match the return type of a GCC
21916 builtin and then its argument prototype would still apply. */
21929 if ac_fn_c_try_link "$LINENO"; then :
21930 ac_cv_lib_termcap_tgetent=yes
21932 ac_cv_lib_termcap_tgetent=no
21934 rm -f core conftest.err conftest.$ac_objext \
21935 conftest$ac_exeext conftest.$ac_ext
21936 LIBS=$ac_check_lib_save_LIBS
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21939 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21940 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21941 TERM_LIB="-ltermcap"
21952 for ac_header in curses.h
21954 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21955 if test "x$ac_cv_header_curses_h" = xyes; then :
21956 cat >>confdefs.h <<_ACEOF
21957 #define HAVE_CURSES_H 1
21964 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21965 if test "x$ac_cv_header_term_h" = xyes; then :
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21967 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21968 if ${ac_cv_lib_curses_tgetent+:} false; then :
21969 $as_echo_n "(cached) " >&6
21971 ac_check_lib_save_LIBS=$LIBS
21972 LIBS="-lcurses $LIBS"
21973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21974 /* end confdefs.h. */
21976 /* Override any GCC internal prototype to avoid an error.
21977 Use char because int might match the return type of a GCC
21978 builtin and then its argument prototype would still apply. */
21991 if ac_fn_c_try_link "$LINENO"; then :
21992 ac_cv_lib_curses_tgetent=yes
21994 ac_cv_lib_curses_tgetent=no
21996 rm -f core conftest.err conftest.$ac_objext \
21997 conftest$ac_exeext conftest.$ac_ext
21998 LIBS=$ac_check_lib_save_LIBS
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22001 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22002 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22003 TERM_LIB="-lcurses"
22017 if test x$support_conio = xyes; then
22018 if test x$TERM_LIB != x; then
22019 CONS_LIBS=$TERM_LIB
22023 support_readline=no
22025 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22028 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
22033 # Check whether --enable-readline was given.
22034 if test "${enable_readline+set}" = set; then :
22035 enableval=$enable_readline;
22036 if test x$enableval = xno; then
22037 support_readline=no
22043 if test x$TERM_LIB = x ; then
22044 support_readline=no
22049 if test x$support_readline = xyes; then
22051 # Check whether --with-readline was given.
22052 if test "${with_readline+set}" = set; then :
22053 withval=$with_readline;
22054 case "$with_readline" in
22059 if test -f ${with_readline}/readline.h; then
22060 CONS_INC="-I${with_readline}"
22061 CONS_LDFLAGS="-L$with_readline"
22062 elif test -f ${with_readline}/include/readline/readline.h; then
22063 CONS_INC="-I${with_readline}/include/readline"
22064 CONS_LDFLAGS="-L${with_readline}/lib"
22065 with_readline="${with_readline}/include/readline"
22067 with_readline="/usr/include/readline"
22070 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22071 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22075 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22077 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22083 echo "readline.h not found. readline turned off ..."
22095 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22096 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22099 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22102 CONS_INC="-I/usr/include/readline"
22103 CONS_LIBS="-lreadline $TERM_LIB"
22107 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22108 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22109 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22112 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22115 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22116 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22117 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22118 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22123 echo "readline.h not found. readline turned off ..."
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22151 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22152 if ${ac_cv_header_stat_broken+:} false; then :
22153 $as_echo_n "(cached) " >&6
22155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156 /* end confdefs.h. */
22157 #include <sys/types.h>
22158 #include <sys/stat.h>
22160 #if defined S_ISBLK && defined S_IFDIR
22161 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22164 #if defined S_ISBLK && defined S_IFCHR
22165 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22168 #if defined S_ISLNK && defined S_IFREG
22169 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22172 #if defined S_ISSOCK && defined S_IFREG
22173 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22177 if ac_fn_c_try_compile "$LINENO"; then :
22178 ac_cv_header_stat_broken=no
22180 ac_cv_header_stat_broken=yes
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22185 $as_echo "$ac_cv_header_stat_broken" >&6; }
22186 if test $ac_cv_header_stat_broken = yes; then
22188 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22192 ac_header_dirent=no
22193 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22194 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22196 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22197 if eval \${$as_ac_Header+:} false; then :
22198 $as_echo_n "(cached) " >&6
22200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22201 /* end confdefs.h. */
22202 #include <sys/types.h>
22214 if ac_fn_c_try_compile "$LINENO"; then :
22215 eval "$as_ac_Header=yes"
22217 eval "$as_ac_Header=no"
22219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 eval ac_res=\$$as_ac_Header
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22223 $as_echo "$ac_res" >&6; }
22224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22225 cat >>confdefs.h <<_ACEOF
22226 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22229 ac_header_dirent=$ac_hdr; break
22233 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22234 if test $ac_header_dirent = dirent.h; then
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22236 $as_echo_n "checking for library containing opendir... " >&6; }
22237 if ${ac_cv_search_opendir+:} false; then :
22238 $as_echo_n "(cached) " >&6
22240 ac_func_search_save_LIBS=$LIBS
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22244 /* Override any GCC internal prototype to avoid an error.
22245 Use char because int might match the return type of a GCC
22246 builtin and then its argument prototype would still apply. */
22259 for ac_lib in '' dir; do
22260 if test -z "$ac_lib"; then
22261 ac_res="none required"
22264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22266 if ac_fn_c_try_link "$LINENO"; then :
22267 ac_cv_search_opendir=$ac_res
22269 rm -f core conftest.err conftest.$ac_objext \
22271 if ${ac_cv_search_opendir+:} false; then :
22275 if ${ac_cv_search_opendir+:} false; then :
22278 ac_cv_search_opendir=no
22280 rm conftest.$ac_ext
22281 LIBS=$ac_func_search_save_LIBS
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22284 $as_echo "$ac_cv_search_opendir" >&6; }
22285 ac_res=$ac_cv_search_opendir
22286 if test "$ac_res" != no; then :
22287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22293 $as_echo_n "checking for library containing opendir... " >&6; }
22294 if ${ac_cv_search_opendir+:} false; then :
22295 $as_echo_n "(cached) " >&6
22297 ac_func_search_save_LIBS=$LIBS
22298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h. */
22301 /* Override any GCC internal prototype to avoid an error.
22302 Use char because int might match the return type of a GCC
22303 builtin and then its argument prototype would still apply. */
22316 for ac_lib in '' x; do
22317 if test -z "$ac_lib"; then
22318 ac_res="none required"
22321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22323 if ac_fn_c_try_link "$LINENO"; then :
22324 ac_cv_search_opendir=$ac_res
22326 rm -f core conftest.err conftest.$ac_objext \
22328 if ${ac_cv_search_opendir+:} false; then :
22332 if ${ac_cv_search_opendir+:} false; then :
22335 ac_cv_search_opendir=no
22337 rm conftest.$ac_ext
22338 LIBS=$ac_func_search_save_LIBS
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22341 $as_echo "$ac_cv_search_opendir" >&6; }
22342 ac_res=$ac_cv_search_opendir
22343 if test "$ac_res" != no; then :
22344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22350 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22353 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22354 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22355 cat >>confdefs.h <<_ACEOF
22356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22362 for ac_func in nanosleep nl_langinfo
22364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22365 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22366 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22367 cat >>confdefs.h <<_ACEOF
22368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22374 for ac_header in varargs.h
22376 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22377 if test "x$ac_cv_header_varargs_h" = xyes; then :
22378 cat >>confdefs.h <<_ACEOF
22379 #define HAVE_VARARGS_H 1
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22389 $as_echo_n "checking for Python support... " >&6; }
22391 # Check whether --with-python was given.
22392 if test "${with_python+set}" = set; then :
22393 withval=$with_python;
22396 if test "$withval" != "no"; then
22397 if test "$withval" = "yes"; then
22398 if test -e /usr/bin/python-config ; then
22399 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22400 PYTHON_LIBS=`/usr/bin/python-config --libs`
22402 for python_root in /usr /usr/local /usr/sfw; do
22403 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22404 if test -f $python_root/include/${ver}/Python.h; then
22405 PYTHON_INCDIR=-I$python_root/include/${ver}
22406 if test -d $python_root/lib64/${ver}/config; then
22407 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22409 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22416 if test x$PYTHON_INCDIR = x; then
22417 if test -f $prefix/include/Python.h; then
22418 PYTHON_INCDIR=-I$prefix/include
22419 if test -d $prefix/lib64/config; then
22420 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22422 PYTHON_LIBS="-L$prefix/lib/config -lpython"
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22427 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22432 if test -e $withval/bin/python-config ; then
22433 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22434 PYTHON_LIBS=`$withval/bin/python-config --libs`
22435 elif test -f $withval/Python.h; then
22436 PYTHON_INCDIR=-I$withval
22437 PYTHON_LIBS="-L$withval/config -lpython"
22438 elif test -f $withval/include/Python.h; then
22439 PYTHON_INCDIR=-I$withval/include
22440 if test -d $withval/lib64/config; then
22441 PYTHON_LIBS="-L$withval/lib64/config -lpython"
22443 PYTHON_LIBS="-L$withval/lib/config -lpython"
22445 elif test -f $withval/include/python/Python.h; then
22446 PYTHON_INCDIR=-I$withval/include/python
22447 if test -d $withval/lib64/python/config; then
22448 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22450 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22454 $as_echo "no" >&6; }
22455 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22459 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22462 $as_echo "yes" >&6; }
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22465 $as_echo "$as_me: checking for more Python libs" >&6;}
22466 saved_LIBS="$LIBS"; LIBS=
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22468 $as_echo_n "checking for library containing shm_open... " >&6; }
22469 if ${ac_cv_search_shm_open+:} false; then :
22470 $as_echo_n "(cached) " >&6
22472 ac_func_search_save_LIBS=$LIBS
22473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h. */
22476 /* Override any GCC internal prototype to avoid an error.
22477 Use char because int might match the return type of a GCC
22478 builtin and then its argument prototype would still apply. */
22486 return shm_open ();
22491 for ac_lib in '' rt; do
22492 if test -z "$ac_lib"; then
22493 ac_res="none required"
22496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22498 if ac_fn_c_try_link "$LINENO"; then :
22499 ac_cv_search_shm_open=$ac_res
22501 rm -f core conftest.err conftest.$ac_objext \
22503 if ${ac_cv_search_shm_open+:} false; then :
22507 if ${ac_cv_search_shm_open+:} false; then :
22510 ac_cv_search_shm_open=no
22512 rm conftest.$ac_ext
22513 LIBS=$ac_func_search_save_LIBS
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22516 $as_echo "$ac_cv_search_shm_open" >&6; }
22517 ac_res=$ac_cv_search_shm_open
22518 if test "$ac_res" != no; then :
22519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22524 $as_echo_n "checking for openpty in -lutil... " >&6; }
22525 if ${ac_cv_lib_util_openpty+:} false; then :
22526 $as_echo_n "(cached) " >&6
22528 ac_check_lib_save_LIBS=$LIBS
22529 LIBS="-lutil $LIBS"
22530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h. */
22533 /* Override any GCC internal prototype to avoid an error.
22534 Use char because int might match the return type of a GCC
22535 builtin and then its argument prototype would still apply. */
22548 if ac_fn_c_try_link "$LINENO"; then :
22549 ac_cv_lib_util_openpty=yes
22551 ac_cv_lib_util_openpty=no
22553 rm -f core conftest.err conftest.$ac_objext \
22554 conftest$ac_exeext conftest.$ac_ext
22555 LIBS=$ac_check_lib_save_LIBS
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22558 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22559 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22560 cat >>confdefs.h <<_ACEOF
22561 #define HAVE_LIBUTIL 1
22564 LIBS="-lutil $LIBS"
22568 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22572 $as_echo "no" >&6; }
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22578 $as_echo "no" >&6; }
22586 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22587 if test "x$ac_cv_func_socket" = xyes; then :
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22589 $as_echo "using libc's socket" >&6; }
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22592 $as_echo_n "checking for socket in -lxnet... " >&6; }
22593 if ${ac_cv_lib_xnet_socket+:} false; then :
22594 $as_echo_n "(cached) " >&6
22596 ac_check_lib_save_LIBS=$LIBS
22597 LIBS="-lxnet $LIBS"
22598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599 /* end confdefs.h. */
22601 /* Override any GCC internal prototype to avoid an error.
22602 Use char because int might match the return type of a GCC
22603 builtin and then its argument prototype would still apply. */
22616 if ac_fn_c_try_link "$LINENO"; then :
22617 ac_cv_lib_xnet_socket=yes
22619 ac_cv_lib_xnet_socket=no
22621 rm -f core conftest.err conftest.$ac_objext \
22622 conftest$ac_exeext conftest.$ac_ext
22623 LIBS=$ac_check_lib_save_LIBS
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22626 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22627 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22628 cat >>confdefs.h <<_ACEOF
22629 #define HAVE_LIBXNET 1
22632 LIBS="-lxnet $LIBS"
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22637 $as_echo_n "checking for socket in -lsocket... " >&6; }
22638 if ${ac_cv_lib_socket_socket+:} false; then :
22639 $as_echo_n "(cached) " >&6
22641 ac_check_lib_save_LIBS=$LIBS
22642 LIBS="-lsocket $LIBS"
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h. */
22646 /* Override any GCC internal prototype to avoid an error.
22647 Use char because int might match the return type of a GCC
22648 builtin and then its argument prototype would still apply. */
22661 if ac_fn_c_try_link "$LINENO"; then :
22662 ac_cv_lib_socket_socket=yes
22664 ac_cv_lib_socket_socket=no
22666 rm -f core conftest.err conftest.$ac_objext \
22667 conftest$ac_exeext conftest.$ac_ext
22668 LIBS=$ac_check_lib_save_LIBS
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22671 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22672 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22673 cat >>confdefs.h <<_ACEOF
22674 #define HAVE_LIBSOCKET 1
22677 LIBS="-lsocket $LIBS"
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22682 $as_echo_n "checking for socket in -linet... " >&6; }
22683 if ${ac_cv_lib_inet_socket+:} false; then :
22684 $as_echo_n "(cached) " >&6
22686 ac_check_lib_save_LIBS=$LIBS
22687 LIBS="-linet $LIBS"
22688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689 /* end confdefs.h. */
22691 /* Override any GCC internal prototype to avoid an error.
22692 Use char because int might match the return type of a GCC
22693 builtin and then its argument prototype would still apply. */
22706 if ac_fn_c_try_link "$LINENO"; then :
22707 ac_cv_lib_inet_socket=yes
22709 ac_cv_lib_inet_socket=no
22711 rm -f core conftest.err conftest.$ac_objext \
22712 conftest$ac_exeext conftest.$ac_ext
22713 LIBS=$ac_check_lib_save_LIBS
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22716 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22717 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22718 cat >>confdefs.h <<_ACEOF
22719 #define HAVE_LIBINET 1
22722 LIBS="-linet $LIBS"
22732 # Check whether --with-tcp-wrappers was given.
22733 if test "${with_tcp_wrappers+set}" = set; then :
22734 withval=$with_tcp_wrappers;
22735 if test "x$withval" != "xno" ; then
22737 LIBS="$saved_LIBS -lwrap"
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22739 $as_echo_n "checking for library containing nanosleep... " >&6; }
22740 if ${ac_cv_search_nanosleep+:} false; then :
22741 $as_echo_n "(cached) " >&6
22743 ac_func_search_save_LIBS=$LIBS
22744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22745 /* end confdefs.h. */
22747 /* Override any GCC internal prototype to avoid an error.
22748 Use char because int might match the return type of a GCC
22749 builtin and then its argument prototype would still apply. */
22757 return nanosleep ();
22762 for ac_lib in '' rt; do
22763 if test -z "$ac_lib"; then
22764 ac_res="none required"
22767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22769 if ac_fn_c_try_link "$LINENO"; then :
22770 ac_cv_search_nanosleep=$ac_res
22772 rm -f core conftest.err conftest.$ac_objext \
22774 if ${ac_cv_search_nanosleep+:} false; then :
22778 if ${ac_cv_search_nanosleep+:} false; then :
22781 ac_cv_search_nanosleep=no
22783 rm conftest.$ac_ext
22784 LIBS=$ac_func_search_save_LIBS
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22787 $as_echo "$ac_cv_search_nanosleep" >&6; }
22788 ac_res=$ac_cv_search_nanosleep
22789 if test "$ac_res" != no; then :
22790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22795 $as_echo_n "checking for libwrap... " >&6; }
22796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797 /* end confdefs.h. */
22799 #include <sys/types.h>
22801 int deny_severity = 0;
22802 int allow_severity = 0;
22803 struct request_info *req;
22815 if ac_fn_c_try_link "$LINENO"; then :
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22818 $as_echo "yes" >&6; }
22820 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22828 LIBS="$saved_LIBS -lwrap -lnsl"
22829 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h. */
22833 #include <sys/types.h>
22835 int deny_severity = 0;
22836 int allow_severity = 0;
22837 struct request_info *req;
22849 if ac_fn_c_try_link "$LINENO"; then :
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22852 $as_echo "yes" >&6; }
22854 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22862 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22866 rm -f core conftest.err conftest.$ac_objext \
22867 conftest$ac_exeext conftest.$ac_ext
22871 rm -f core conftest.err conftest.$ac_objext \
22872 conftest$ac_exeext conftest.$ac_ext
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22880 $as_echo_n "checking for OpenSSL... " >&6; }
22882 # Check whether --with-openssl was given.
22883 if test "${with_openssl+set}" = set; then :
22884 withval=$with_openssl;
22885 with_openssl_directory=${withval}
22891 if test "x$with_openssl_directory" != "xno"; then
22892 OPENSSL_LIBS="-lssl -lcrypto"
22895 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22897 # Make sure the $with_openssl_directory also makes sense
22899 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22900 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22901 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22905 saved_LIBS="${LIBS}"
22906 saved_CFLAGS="${CFLAGS}"
22907 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22908 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h. */
22913 #include <openssl/ssl.h>
22919 CRYPTO_set_id_callback(NULL);
22925 if ac_fn_c_try_link "$LINENO"; then :
22928 support_crypto="yes"
22933 support_crypto="no"
22937 rm -f core conftest.err conftest.$ac_objext \
22938 conftest$ac_exeext conftest.$ac_ext
22940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h. */
22943 #include <openssl/evp.h>
22955 if ac_fn_c_try_link "$LINENO"; then :
22957 ac_cv_openssl_sha2="yes"
22961 ac_cv_openssl_sha2="no"
22965 rm -f core conftest.err conftest.$ac_objext \
22966 conftest$ac_exeext conftest.$ac_ext
22968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22969 /* end confdefs.h. */
22971 #include <openssl/evp.h>
22983 if ac_fn_c_try_link "$LINENO"; then :
22985 ac_cv_openssl_export="no"
22989 ac_cv_openssl_export="yes"
22993 rm -f core conftest.err conftest.$ac_objext \
22994 conftest$ac_exeext conftest.$ac_ext
22996 if test "$support_tls" = "yes"; then
22998 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23001 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23004 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23008 if test "$ac_cv_openssl_sha2" = "yes"; then
23010 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23014 if test "$ac_cv_openssl_export" = "yes"; then
23016 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23020 if test "$support_crypto" = "yes"; then
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23022 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23023 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23024 $as_echo_n "(cached) " >&6
23026 ac_check_lib_save_LIBS=$LIBS
23027 LIBS="-lcrypto $LIBS"
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h. */
23031 /* Override any GCC internal prototype to avoid an error.
23032 Use char because int might match the return type of a GCC
23033 builtin and then its argument prototype would still apply. */
23037 char EVP_PKEY_encrypt_old ();
23041 return EVP_PKEY_encrypt_old ();
23046 if ac_fn_c_try_link "$LINENO"; then :
23047 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23049 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23051 rm -f core conftest.err conftest.$ac_objext \
23052 conftest$ac_exeext conftest.$ac_ext
23053 LIBS=$ac_check_lib_save_LIBS
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23056 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23057 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23059 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23065 LIBS="${saved_LIBS}"
23066 CFLAGS="${saved_CFLAGS}"
23069 support_crypto="no"
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23074 $as_echo "$support_tls" >&6; }
23076 if test "$support_tls" = "no"; then
23080 if test "$support_crypto" = "no"; then
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23089 $as_echo_n "checking for library containing dlopen... " >&6; }
23090 if ${ac_cv_search_dlopen+:} false; then :
23091 $as_echo_n "(cached) " >&6
23093 ac_func_search_save_LIBS=$LIBS
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23097 /* Override any GCC internal prototype to avoid an error.
23098 Use char because int might match the return type of a GCC
23099 builtin and then its argument prototype would still apply. */
23112 for ac_lib in '' dl; do
23113 if test -z "$ac_lib"; then
23114 ac_res="none required"
23117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23119 if ac_fn_c_try_link "$LINENO"; then :
23120 ac_cv_search_dlopen=$ac_res
23122 rm -f core conftest.err conftest.$ac_objext \
23124 if ${ac_cv_search_dlopen+:} false; then :
23128 if ${ac_cv_search_dlopen+:} false; then :
23131 ac_cv_search_dlopen=no
23133 rm conftest.$ac_ext
23134 LIBS=$ac_func_search_save_LIBS
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23137 $as_echo "$ac_cv_search_dlopen" >&6; }
23138 ac_res=$ac_cv_search_dlopen
23139 if test "$ac_res" != no; then :
23140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23145 working_dir=`eval echo ${prefix}/var/bacula/working`
23147 # Check whether --with-working-dir was given.
23148 if test "${with_working_dir+set}" = set; then :
23149 withval=$with_working_dir;
23150 if test "x$withval" != "xno" ; then
23151 working_dir=$withval
23162 # Check whether --with-archivedir was given.
23163 if test "${with_archivedir+set}" = set; then :
23164 withval=$with_archivedir;
23165 if test "x$withval" != "xno" ; then
23166 archivedir=$withval
23175 basename=`hostname`
23177 # Check whether --with-basename was given.
23178 if test "${with_basename+set}" = set; then :
23179 withval=$with_basename;
23180 if test "x$withval" != "xno" ; then
23190 hostname=`uname -n | cut -d '.' -f 1`
23191 if test x${hostname} = x ; then
23192 hostname="localhost"
23195 # Check whether --with-hostname was given.
23196 if test "${with_hostname+set}" = set; then :
23197 withval=$with_hostname;
23198 if test "x$withval" != "xno" ; then
23209 scriptdir=`eval echo ${sysconfdir}`
23211 # Check whether --with-scriptdir was given.
23212 if test "${with_scriptdir+set}" = set; then :
23213 withval=$with_scriptdir;
23214 if test "x$withval" != "xno" ; then
23227 # Check whether --with-bsrdir was given.
23228 if test "${with_bsrdir+set}" = set; then :
23229 withval=$with_bsrdir;
23230 if test "x$withval" != "xno" ; then
23242 # Check whether --with-logdir was given.
23243 if test "${with_logdir+set}" = set; then :
23244 withval=$with_logdir;
23245 if test "x$withval" != "xno" ; then
23256 # ------------------------------------------
23257 # Where to place plugindir (plugin files)
23258 # ------------------------------------------
23259 plugindir=`eval echo ${libdir}`
23261 # Check whether --with-plugindir was given.
23262 if test "${with_plugindir+set}" = set; then :
23263 withval=$with_plugindir;
23264 if test "x$withval" != "xno" ; then
23274 dump_email=root@localhost
23276 # Check whether --with-dump-email was given.
23277 if test "${with_dump_email+set}" = set; then :
23278 withval=$with_dump_email;
23279 if test "x$withval" != "xno" ; then
23280 dump_email=$withval
23289 job_email=root@localhost
23291 # Check whether --with-job-email was given.
23292 if test "${with_job_email+set}" = set; then :
23293 withval=$with_job_email;
23294 if test "x$withval" != "xno" ; then
23304 smtp_host=localhost
23306 # Check whether --with-smtp_host was given.
23307 if test "${with_smtp_host+set}" = set; then :
23308 withval=$with_smtp_host;
23309 if test "x$withval" != "xno" ; then
23321 # Check whether --with-pid-dir was given.
23322 if test "${with_pid_dir+set}" = set; then :
23323 withval=$with_pid_dir;
23324 if test "x$withval" != "xno" ; then
23332 cat >>confdefs.h <<_ACEOF
23333 #define _PATH_BACULA_PIDDIR "$piddir"
23338 subsysdir=/var/run/subsys
23339 if test -d /var/run/subsys; then
23340 subsysdir=/var/run/subsys
23341 elif test -d /var/lock/subsys; then
23342 subsysdir=/var/lock/subsys
23344 subsysdir=/var/run/subsys
23347 # Check whether --with-subsys-dir was given.
23348 if test "${with_subsys_dir+set}" = set; then :
23349 withval=$with_subsys_dir;
23350 if test "x$withval" != "xno" ; then
23362 # Check whether --with-baseport was given.
23363 if test "${with_baseport+set}" = set; then :
23364 withval=$with_baseport;
23365 if test "x$withval" != "xno" ; then
23374 dir_port=`expr $baseport`
23375 fd_port=`expr $baseport + 1`
23376 sd_port=`expr $fd_port + 1`
23384 # Check whether --with-dir-password was given.
23385 if test "${with_dir_password+set}" = set; then :
23386 withval=$with_dir_password;
23387 if test "x$withval" != "xno" ; then
23388 dir_password=$withval
23395 if test "x$dir_password" = "x" ; then
23396 if test "x$OPENSSL" = "xnone" ; then
23397 key=`autoconf/randpass 33`
23399 key=`openssl rand -base64 33`
23406 # Check whether --with-fd-password was given.
23407 if test "${with_fd_password+set}" = set; then :
23408 withval=$with_fd_password;
23409 if test "x$withval" != "xno" ; then
23410 fd_password=$withval
23417 if test "x$fd_password" = "x" ; then
23418 if test "x$OPENSSL" = "xnone" ; then
23419 key=`autoconf/randpass 37`
23421 key=`openssl rand -base64 33`
23428 # Check whether --with-sd-password was given.
23429 if test "${with_sd_password+set}" = set; then :
23430 withval=$with_sd_password;
23431 if test "x$withval" != "xno" ; then
23432 sd_password=$withval
23439 if test "x$sd_password" = "x" ; then
23440 if test "x$OPENSSL" = "xnone" ; then
23441 key=`autoconf/randpass 41`
23443 key=`openssl rand -base64 33`
23450 # Check whether --with-mon-dir-password was given.
23451 if test "${with_mon_dir_password+set}" = set; then :
23452 withval=$with_mon_dir_password;
23453 if test "x$withval" != "xno" ; then
23454 mon_dir_password=$withval
23461 if test "x$mon_dir_password" = "x" ; then
23462 if test "x$OPENSSL" = "xnone" ; then
23463 key=`autoconf/randpass 33`
23465 key=`openssl rand -base64 33`
23467 mon_dir_password=$key
23472 # Check whether --with-mon-fd-password was given.
23473 if test "${with_mon_fd_password+set}" = set; then :
23474 withval=$with_mon_fd_password;
23475 if test "x$withval" != "xno" ; then
23476 mon_fd_password=$withval
23483 if test "x$mon_fd_password" = "x" ; then
23484 if test "x$OPENSSL" = "xnone" ; then
23485 key=`autoconf/randpass 37`
23487 key=`openssl rand -base64 33`
23489 mon_fd_password=$key
23494 # Check whether --with-mon-sd-password was given.
23495 if test "${with_mon_sd_password+set}" = set; then :
23496 withval=$with_mon_sd_password;
23497 if test "x$withval" != "xno" ; then
23498 mon_sd_password=$withval
23505 if test "x$mon_sd_password" = "x" ; then
23506 if test "x$OPENSSL" = "xnone" ; then
23507 key=`autoconf/randpass 41`
23509 key=`openssl rand -base64 33`
23511 mon_sd_password=$key
23523 # Check whether --with-db_name was given.
23524 if test "${with_db_name+set}" = set; then :
23525 withval=$with_db_name;
23526 if test "x$withval" != "x" ; then
23537 # Check whether --with-db_user was given.
23538 if test "${with_db_user+set}" = set; then :
23539 withval=$with_db_user;
23540 if test "x$withval" != "x" ; then
23551 # Check whether --with-db_password was given.
23552 if test "${with_db_password+set}" = set; then :
23553 withval=$with_db_password;
23554 if test "x$withval" != "x" ; then
23555 db_password=$withval
23565 # Check whether --with-db_port was given.
23566 if test "${with_db_port+set}" = set; then :
23567 withval=$with_db_port;
23568 if test "x$withval" != "x" ; then
23578 # Handle users and groups for each daemon
23582 # Check whether --with-dir_user was given.
23583 if test "${with_dir_user+set}" = set; then :
23584 withval=$with_dir_user;
23585 if test "x$withval" != "x" ; then
23595 # Check whether --with-dir_group was given.
23596 if test "${with_dir_group+set}" = set; then :
23597 withval=$with_dir_group;
23598 if test "x$withval" != "x" ; then
23608 # Check whether --with-sd_user was given.
23609 if test "${with_sd_user+set}" = set; then :
23610 withval=$with_sd_user;
23611 if test "x$withval" != "x" ; then
23621 # Check whether --with-sd_group was given.
23622 if test "${with_sd_group+set}" = set; then :
23623 withval=$with_sd_group;
23624 if test "x$withval" != "x" ; then
23634 # Check whether --with-fd_user was given.
23635 if test "${with_fd_user+set}" = set; then :
23636 withval=$with_fd_user;
23637 if test "x$withval" != "x" ; then
23647 # Check whether --with-fd_group was given.
23648 if test "${with_fd_group+set}" = set; then :
23649 withval=$with_fd_group;
23650 if test "x$withval" != "x" ; then
23667 # Check whether --with-sbin-perm was given.
23668 if test "${with_sbin_perm+set}" = set; then :
23669 withval=$with_sbin_perm;
23670 if test "x$withval" != "x" ; then
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23682 $as_echo_n "checking for PostgreSQL support... " >&6; }
23684 # Check whether --with-postgresql was given.
23685 if test "${with_postgresql+set}" = set; then :
23686 withval=$with_postgresql;
23687 if test "$withval" != "no"; then
23688 if test "$withval" = "yes"; then
23689 PG_CONFIG=`which pg_config`
23690 if test -n "$PG_CONFIG"; then
23691 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23692 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23693 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23694 elif test -f /usr/local/include/libpq-fe.h; then
23695 POSTGRESQL_INCDIR=/usr/local/include
23696 if test -d /usr/local/lib64; then
23697 POSTGRESQL_LIBDIR=/usr/local/lib64
23699 POSTGRESQL_LIBDIR=/usr/local/lib
23701 POSTGRESQL_BINDIR=/usr/local/bin
23702 elif test -f /usr/include/libpq-fe.h; then
23703 POSTGRESQL_INCDIR=/usr/include
23704 if test -d /usr/lib64; then
23705 POSTGRESQL_LIBDIR=/usr/lib64
23707 POSTGRESQL_LIBDIR=/usr/lib
23709 POSTGRESQL_BINDIR=/usr/bin
23710 elif test -f /usr/include/pgsql/libpq-fe.h; then
23711 POSTGRESQL_INCDIR=/usr/include/pgsql
23712 if test -d /usr/lib64/pgsql; then
23713 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23715 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23717 POSTGRESQL_BINDIR=/usr/bin
23718 elif test -f /usr/include/postgresql/libpq-fe.h; then
23719 POSTGRESQL_INCDIR=/usr/include/postgresql
23720 if test -d /usr/lib64/postgresql; then
23721 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23723 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23725 POSTGRESQL_BINDIR=/usr/bin
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23728 $as_echo "no" >&6; }
23729 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23731 elif test -f $withval/include/libpq-fe.h; then
23732 POSTGRESQL_INCDIR=$withval/include
23733 POSTGRESQL_LIBDIR=$withval/lib
23734 POSTGRESQL_BINDIR=$withval/bin
23735 elif test -f $withval/include/postgresql/libpq-fe.h; then
23736 POSTGRESQL_INCDIR=$withval/include/postgresql
23737 if test -d $withval/lib64; then
23738 POSTGRESQL_LIBDIR=$withval/lib64
23740 POSTGRESQL_LIBDIR=$withval/lib
23742 POSTGRESQL_BINDIR=$withval/bin
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23745 $as_echo "no" >&6; }
23746 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23749 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23752 $as_echo "yes" >&6; }
23754 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23755 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23756 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23757 if test "x$ac_cv_func_crypt" = xyes; then :
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23761 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23762 if ${ac_cv_lib_crypt_crypt+:} false; then :
23763 $as_echo_n "(cached) " >&6
23765 ac_check_lib_save_LIBS=$LIBS
23766 LIBS="-lcrypt $LIBS"
23767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23768 /* end confdefs.h. */
23770 /* Override any GCC internal prototype to avoid an error.
23771 Use char because int might match the return type of a GCC
23772 builtin and then its argument prototype would still apply. */
23785 if ac_fn_c_try_link "$LINENO"; then :
23786 ac_cv_lib_crypt_crypt=yes
23788 ac_cv_lib_crypt_crypt=no
23790 rm -f core conftest.err conftest.$ac_objext \
23791 conftest$ac_exeext conftest.$ac_ext
23792 LIBS=$ac_check_lib_save_LIBS
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23795 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23796 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23797 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23802 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23803 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23805 if test -z "${db_backends}"; then
23806 db_backends="PostgreSQL"
23808 db_backends="${db_backends} PostgreSQL"
23810 if test -z "${DB_BACKENDS}"; then
23811 DB_BACKENDS="postgresql"
23813 DB_BACKENDS="${DB_BACKENDS} postgresql"
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23823 $as_echo "no" >&6; }
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23835 $as_echo_n "checking for MySQL support... " >&6; }
23837 # Check whether --with-mysql was given.
23838 if test "${with_mysql+set}" = set; then :
23839 withval=$with_mysql;
23840 if test "$withval" != "no"; then
23841 if test "$withval" = "yes"; then
23842 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23843 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23844 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23845 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23846 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23848 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23850 MYSQL_BINDIR=/usr/local/mysql/bin
23851 elif test -f /usr/include/mysql/mysql.h; then
23852 MYSQL_INCDIR=/usr/include/mysql
23853 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23854 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23855 MYSQL_LIBDIR=/usr/lib64/mysql
23856 elif test -f /usr/lib64/libmysqlclient_r.a \
23857 -o -f /usr/lib64/libmysqlclient_r.so; then
23858 MYSQL_LIBDIR=/usr/lib64
23859 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23860 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23861 MYSQL_LIBDIR=/usr/lib/mysql
23863 MYSQL_LIBDIR=/usr/lib
23865 MYSQL_BINDIR=/usr/bin
23866 elif test -f /usr/include/mysql.h; then
23867 MYSQL_INCDIR=/usr/include
23868 if test -f /usr/lib64/libmysqlclient_r.a \
23869 -o -f /usr/lib64/libmysqlclient_r.so; then
23870 MYSQL_LIBDIR=/usr/lib64
23872 MYSQL_LIBDIR=/usr/lib
23874 MYSQL_BINDIR=/usr/bin
23875 elif test -f /usr/local/include/mysql/mysql.h; then
23876 MYSQL_INCDIR=/usr/local/include/mysql
23877 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23878 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23879 MYSQL_LIBDIR=/usr/local/lib64/mysql
23881 MYSQL_LIBDIR=/usr/local/lib/mysql
23883 MYSQL_BINDIR=/usr/local/bin
23884 elif test -f /usr/local/include/mysql.h; then
23885 MYSQL_INCDIR=/usr/local/include
23886 if test -f /usr/local/lib64/libmysqlclient_r.a \
23887 -o -f /usr/local/lib64/libmysqlclient_r.so; then
23888 MYSQL_LIBDIR=/usr/local/lib64
23890 MYSQL_LIBDIR=/usr/local/lib
23892 MYSQL_BINDIR=/usr/local/bin
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23899 if test -f $withval/include/mysql/mysql.h; then
23900 MYSQL_INCDIR=$withval/include/mysql
23901 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23902 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23903 MYSQL_LIBDIR=$withval/lib64/mysql
23904 elif test -f $withval/lib64/libmysqlclient_r.a \
23905 -o -f $withval/lib64/libmysqlclient_r.so; then
23906 MYSQL_LIBDIR=$withval/lib64
23907 elif test -f $withval/lib/libmysqlclient_r.a \
23908 -o -f $withval/lib/libmysqlclient_r.so; then
23909 MYSQL_LIBDIR=$withval/lib
23911 MYSQL_LIBDIR=$withval/lib/mysql
23913 MYSQL_BINDIR=$withval/bin
23914 elif test -f $withval/include/mysql.h; then
23915 MYSQL_INCDIR=$withval/include
23916 if test -f $withval/lib64/libmysqlclient_r.a \
23917 -o -f $withval/lib64/libmysqlclient_r.so; then
23918 MYSQL_LIBDIR=$withval/lib64
23920 MYSQL_LIBDIR=$withval/lib
23922 MYSQL_BINDIR=$withval/bin
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23925 $as_echo "no" >&6; }
23926 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23929 MYSQL_INCLUDE=-I$MYSQL_INCDIR
23930 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23931 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23932 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23934 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23936 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23938 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23941 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23944 $as_echo "yes" >&6; }
23946 if test -z "${db_backends}" ; then
23947 db_backends="MySQL"
23949 db_backends="${db_backends} MySQL"
23951 if test -z "${DB_BACKENDS}" ; then
23952 DB_BACKENDS="mysql"
23954 DB_BACKENDS="${DB_BACKENDS} mysql"
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23958 $as_echo "no" >&6; }
23966 # Check whether --with-embedded-mysql was given.
23967 if test "${with_embedded_mysql+set}" = set; then :
23968 withval=$with_embedded_mysql;
23969 if test "$withval" != "no"; then
23970 if test "$withval" = "yes"; then
23971 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23972 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23973 if test -d /usr/local/mysql/lib64/mysql; then
23974 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23976 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23978 MYSQL_BINDIR=/usr/local/mysql/bin
23979 elif test -f /usr/include/mysql/mysql.h; then
23980 MYSQL_INCDIR=/usr/include/mysql
23981 if test -d /usr/lib64/mysql; then
23982 MYSQL_LIBDIR=/usr/lib64/mysql
23984 MYSQL_LIBDIR=/usr/lib/mysql
23986 MYSQL_BINDIR=/usr/bin
23987 elif test -f /usr/include/mysql.h; then
23988 MYSQL_INCDIR=/usr/include
23989 if test -d /usr/lib64; then
23990 MYSQL_LIBDIR=/usr/lib64
23992 MYSQL_LIBDIR=/usr/lib
23994 MYSQL_BINDIR=/usr/bin
23995 elif test -f /usr/local/include/mysql/mysql.h; then
23996 MYSQL_INCDIR=/usr/local/include/mysql
23997 if test -d /usr/local/lib64/mysql; then
23998 MYSQL_LIBDIR=/usr/local/lib64/mysql
24000 MYSQL_LIBDIR=/usr/local/lib/mysql
24002 MYSQL_BINDIR=/usr/local/bin
24003 elif test -f /usr/local/include/mysql.h; then
24004 MYSQL_INCDIR=/usr/local/include
24005 if test -d /usr/local/lib64; then
24006 MYSQL_LIBDIR=/usr/local/lib64
24008 MYSQL_LIBDIR=/usr/local/lib
24010 MYSQL_BINDIR=/usr/local/bin
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24013 $as_echo "no" >&6; }
24014 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24017 if test -f $withval/include/mysql/mysql.h; then
24018 MYSQL_INCDIR=$withval/include/mysql
24019 if test -d $withval/lib64/mysql; then
24020 MYSQL_LIBDIR=$withval/lib64/mysql
24022 MYSQL_LIBDIR=$withval/lib/mysql
24024 MYSQL_BINDIR=$withval/bin
24025 elif test -f $withval/include/mysql.h; then
24026 MYSQL_INCDIR=$withval/include
24027 if test -d $withval/lib64; then
24028 MYSQL_LIBDIR=$withval/lib64
24030 MYSQL_LIBDIR=$withval/lib
24032 MYSQL_BINDIR=$withval/bin
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24035 $as_echo "no" >&6; }
24036 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24039 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24040 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24041 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24042 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24045 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24048 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24051 $as_echo "yes" >&6; }
24053 if test -z "${db_backends}"; then
24054 db_backends="MySQL"
24056 db_backends="${db_backends} MySQL"
24058 if test -z "${DB_BACKENDS}"; then
24059 DB_BACKENDS="mysql"
24061 DB_BACKENDS="${DB_BACKENDS} mysql"
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24065 $as_echo "no" >&6; }
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24080 $as_echo_n "checking for SQLite3 support... " >&6; }
24082 # Check whether --with-sqlite3 was given.
24083 if test "${with_sqlite3+set}" = set; then :
24084 withval=$with_sqlite3;
24085 if test "$withval" != "no"; then
24086 if test "$withval" = "yes"; then
24087 if test -f /usr/local/include/sqlite3.h; then
24088 SQLITE_INCDIR=/usr/local/include
24089 if test -d /usr/local/lib64; then
24090 SQLITE_LIBDIR=/usr/local/lib64
24092 SQLITE_LIBDIR=/usr/local/lib
24094 SQLITE_BINDIR=/usr/local/bin
24095 elif test -f /usr/include/sqlite3.h; then
24096 SQLITE_INCDIR=/usr/include
24097 if test -d /usr/lib64; then
24098 SQLITE_LIBDIR=/usr/lib64
24100 SQLITE_LIBDIR=/usr/lib
24102 SQLITE_BINDIR=/usr/bin
24103 elif test -f $prefix/include/sqlite3.h; then
24104 SQLITE_INCDIR=$prefix/include
24105 if test -d $prefix/lib64; then
24106 SQLITE_LIBDIR=$prefix/lib64
24108 SQLITE_LIBDIR=$prefix/lib
24110 SQLITE_BINDIR=$prefix/bin
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24113 $as_echo "no" >&6; }
24114 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24117 if test -f $withval/sqlite3.h; then
24118 SQLITE_INCDIR=$withval
24119 SQLITE_LIBDIR=$withval
24120 SQLITE_BINDIR=$withval
24121 elif test -f $withval/include/sqlite3.h; then
24122 SQLITE_INCDIR=$withval/include
24123 if test -d $withval/lib64; then
24124 SQLITE_LIBDIR=$withval/lib64
24126 SQLITE_LIBDIR=$withval/lib
24128 SQLITE_BINDIR=$withval/bin
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24131 $as_echo "no" >&6; }
24132 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24135 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24136 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24137 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24138 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24141 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24144 $as_echo "yes" >&6; }
24146 if test -z "${db_backends}"; then
24147 db_backends="SQLite3"
24149 db_backends="${db_backends} SQLite3"
24151 if test -z "${DB_BACKENDS}"; then
24152 DB_BACKENDS="sqlite3"
24154 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24158 $as_echo "no" >&6; }
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24164 $as_echo "no" >&6; }
24174 #BA_CHECK_INGRES_DB
24178 #BA_CHECK_DBI_DRIVER
24180 if test "x${db_backends}" = "x" ; then
24183 echo "You have not specified either --enable-client-only or one of the"
24184 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24185 echo "This is not permitted. Please reconfigure."
24187 echo "Aborting the configuration ..."
24193 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24195 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24196 if test x$use_libtool = xno; then
24197 SHARED_CATALOG_TARGETS=""
24199 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24203 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24205 if test x$use_libtool = xno; then
24208 echo "You have specified two or more of the"
24209 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24210 echo "This is not permitted when not using libtool Please reconfigure."
24212 echo "Aborting the configuration ..."
24218 SHARED_CATALOG_TARGETS=""
24219 for db_type in ${DB_BACKENDS}
24221 if test -z "${SHARED_CATALOG_TARGETS}"; then
24222 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24224 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24230 if test x$use_libtool = xyes; then
24239 support_batch_insert=yes
24240 # Check whether --enable-batch-insert was given.
24241 if test "${enable_batch_insert+set}" = set; then :
24242 enableval=$enable_batch_insert;
24243 if test x$enableval = xno; then
24244 support_batch_insert=no
24251 if test x$support_batch_insert = xyes; then
24253 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24257 if test ! -z "$MYSQL_LIB"; then
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
24259 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
24260 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
24261 $as_echo_n "(cached) " >&6
24263 ac_check_lib_save_LIBS=$LIBS
24264 LIBS="-lmysql_r $LIBS"
24265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24266 /* end confdefs.h. */
24268 /* Override any GCC internal prototype to avoid an error.
24269 Use char because int might match the return type of a GCC
24270 builtin and then its argument prototype would still apply. */
24274 char mysql_thread_safe ();
24278 return mysql_thread_safe ();
24283 if ac_fn_c_try_link "$LINENO"; then :
24284 ac_cv_lib_mysql_r_mysql_thread_safe=yes
24286 ac_cv_lib_mysql_r_mysql_thread_safe=no
24288 rm -f core conftest.err conftest.$ac_objext \
24289 conftest$ac_exeext conftest.$ac_ext
24290 LIBS=$ac_check_lib_save_LIBS
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
24293 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
24294 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
24296 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24302 if test ! -z "SQLITE_LIB"; then
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24304 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24305 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24306 $as_echo_n "(cached) " >&6
24308 ac_check_lib_save_LIBS=$LIBS
24309 LIBS="-lsqlite3 $LIBS"
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h. */
24313 /* Override any GCC internal prototype to avoid an error.
24314 Use char because int might match the return type of a GCC
24315 builtin and then its argument prototype would still apply. */
24319 char sqlite3_threadsafe ();
24323 return sqlite3_threadsafe ();
24328 if ac_fn_c_try_link "$LINENO"; then :
24329 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24331 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24333 rm -f core conftest.err conftest.$ac_objext \
24334 conftest$ac_exeext conftest.$ac_ext
24335 LIBS=$ac_check_lib_save_LIBS
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24338 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24339 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24341 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24347 if test ! -z "$POSTGRESQL_LIB"; then
24348 saved_LIBS="${LIBS}"
24349 LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24352 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24353 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24354 $as_echo_n "(cached) " >&6
24356 ac_check_lib_save_LIBS=$LIBS
24358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h. */
24361 /* Override any GCC internal prototype to avoid an error.
24362 Use char because int might match the return type of a GCC
24363 builtin and then its argument prototype would still apply. */
24367 char PQisthreadsafe ();
24371 return PQisthreadsafe ();
24376 if ac_fn_c_try_link "$LINENO"; then :
24377 ac_cv_lib_pq_PQisthreadsafe=yes
24379 ac_cv_lib_pq_PQisthreadsafe=no
24381 rm -f core conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
24383 LIBS=$ac_check_lib_save_LIBS
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24386 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24387 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24389 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24394 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24395 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24396 $as_echo_n "(cached) " >&6
24398 ac_check_lib_save_LIBS=$LIBS
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h. */
24403 /* Override any GCC internal prototype to avoid an error.
24404 Use char because int might match the return type of a GCC
24405 builtin and then its argument prototype would still apply. */
24409 char PQputCopyData ();
24413 return PQputCopyData ();
24418 if ac_fn_c_try_link "$LINENO"; then :
24419 ac_cv_lib_pq_PQputCopyData=yes
24421 ac_cv_lib_pq_PQputCopyData=no
24423 rm -f core conftest.err conftest.$ac_objext \
24424 conftest$ac_exeext conftest.$ac_ext
24425 LIBS=$ac_check_lib_save_LIBS
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24428 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24429 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24431 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24435 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24436 if test $support_batch_insert = yes ; then
24438 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24443 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24445 echo "WARNING: Your PostgreSQL client library is too old to detect "
24446 echo "if it was compiled with --enable-thread-safety, consider to "
24447 echo "upgrade it in order to avoid problems with Batch insert mode"
24451 LIBS="${saved_LIBS}"
24454 if test ! -z "$DBI_LIBS"; then
24455 DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24457 if test $DB_PROG = postgresql; then
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24459 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24460 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24461 $as_echo_n "(cached) " >&6
24463 ac_check_lib_save_LIBS=$LIBS
24465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24466 /* end confdefs.h. */
24468 /* Override any GCC internal prototype to avoid an error.
24469 Use char because int might match the return type of a GCC
24470 builtin and then its argument prototype would still apply. */
24474 char PQisthreadsafe ();
24478 return PQisthreadsafe ();
24483 if ac_fn_c_try_link "$LINENO"; then :
24484 ac_cv_lib_pq_PQisthreadsafe=yes
24486 ac_cv_lib_pq_PQisthreadsafe=no
24488 rm -f core conftest.err conftest.$ac_objext \
24489 conftest$ac_exeext conftest.$ac_ext
24490 LIBS=$ac_check_lib_save_LIBS
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24493 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24494 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24495 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24500 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24501 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24502 $as_echo_n "(cached) " >&6
24504 ac_check_lib_save_LIBS=$LIBS
24506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24507 /* end confdefs.h. */
24509 /* Override any GCC internal prototype to avoid an error.
24510 Use char because int might match the return type of a GCC
24511 builtin and then its argument prototype would still apply. */
24515 char PQputCopyData ();
24519 return PQputCopyData ();
24524 if ac_fn_c_try_link "$LINENO"; then :
24525 ac_cv_lib_pq_PQputCopyData=yes
24527 ac_cv_lib_pq_PQputCopyData=no
24529 rm -f core conftest.err conftest.$ac_objext \
24530 conftest$ac_exeext conftest.$ac_ext
24531 LIBS=$ac_check_lib_save_LIBS
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24534 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24535 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24536 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24540 test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24542 if test $pkg = 0; then
24543 if test $support_batch_insert = yes ; then
24545 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24556 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24559 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24560 if test -z "$CCOPTS"; then
24561 CCOPTS='-g -O2 -Wall'
24568 largefile_support="no"
24570 # Check whether --enable-largefile was given.
24571 if test "${enable_largefile+set}" = set; then :
24572 enableval=$enable_largefile;
24575 if test "$enable_largefile" != no; then
24576 if test -n "$ac_tool_prefix"; then
24577 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24578 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24580 $as_echo_n "checking for $ac_word... " >&6; }
24581 if ${ac_cv_prog_GETCONF+:} false; then :
24582 $as_echo_n "(cached) " >&6
24584 if test -n "$GETCONF"; then
24585 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24588 for as_dir in $PATH
24591 test -z "$as_dir" && as_dir=.
24592 for ac_exec_ext in '' $ac_executable_extensions; do
24593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24594 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24604 GETCONF=$ac_cv_prog_GETCONF
24605 if test -n "$GETCONF"; then
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24607 $as_echo "$GETCONF" >&6; }
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24610 $as_echo "no" >&6; }
24615 if test -z "$ac_cv_prog_GETCONF"; then
24616 ac_ct_GETCONF=$GETCONF
24617 # Extract the first word of "getconf", so it can be a program name with args.
24618 set dummy getconf; ac_word=$2
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24620 $as_echo_n "checking for $ac_word... " >&6; }
24621 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24622 $as_echo_n "(cached) " >&6
24624 if test -n "$ac_ct_GETCONF"; then
24625 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24628 for as_dir in $PATH
24631 test -z "$as_dir" && as_dir=.
24632 for ac_exec_ext in '' $ac_executable_extensions; do
24633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24634 ac_cv_prog_ac_ct_GETCONF="getconf"
24635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24644 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24645 if test -n "$ac_ct_GETCONF"; then
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24647 $as_echo "$ac_ct_GETCONF" >&6; }
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24650 $as_echo "no" >&6; }
24653 if test "x$ac_ct_GETCONF" = x; then
24656 case $cross_compiling:$ac_tool_warned in
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24660 ac_tool_warned=yes ;;
24662 GETCONF=$ac_ct_GETCONF
24665 GETCONF="$ac_cv_prog_GETCONF"
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24669 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24670 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24671 $as_echo_n "(cached) " >&6
24673 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24674 ac_cv_sys_largefile_CFLAGS=no
24676 # IRIX 6.2 and later require cc -n32.
24677 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24678 if test "$GCC" != yes; then
24679 ac_cv_sys_largefile_CFLAGS=-n32
24682 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24684 /* end confdefs.h. */
24694 if ac_fn_c_try_link "$LINENO"; then :
24697 ac_cv_sys_largefile_CFLAGS=no
24699 rm -f core conftest.err conftest.$ac_objext \
24700 conftest$ac_exeext conftest.$ac_ext
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24706 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24708 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24709 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24710 $as_echo_n "(cached) " >&6
24712 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24713 ac_cv_sys_largefile_LDFLAGS=no
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24718 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24720 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24721 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24722 $as_echo_n "(cached) " >&6
24724 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24725 ac_cv_sys_largefile_LIBS=no
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24730 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24732 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24735 -D_FILE_OFFSET_BITS=*) ;;
24736 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24737 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24742 case "$CPPFLAGS" in
24743 '') CPPFLAGS="$ac_flag" ;;
24744 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24752 '') CFLAGS="$ac_flag" ;;
24753 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24758 case "$ac_cv_sys_largefile_LDFLAGS" in
24762 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24763 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24766 case "$ac_cv_sys_largefile_LIBS" in
24770 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24771 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24775 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24776 if ${ac_cv_sys_file_offset_bits+:} false; then :
24777 $as_echo_n "(cached) " >&6
24779 ac_cv_sys_file_offset_bits=no
24780 ac_cv_sys_file_offset_bits=64
24781 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24783 -D_FILE_OFFSET_BITS)
24784 ac_cv_sys_file_offset_bits=1 ;;
24785 -D_FILE_OFFSET_BITS=*)
24786 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24792 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24793 if test "$ac_cv_sys_file_offset_bits" != no; then
24795 cat >>confdefs.h <<_ACEOF
24796 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24801 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24802 if ${ac_cv_sys_largefile_source+:} false; then :
24803 $as_echo_n "(cached) " >&6
24805 ac_cv_sys_largefile_source=no
24806 ac_cv_sys_largefile_source=1
24807 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24809 -D_LARGEFILE_SOURCE)
24810 ac_cv_sys_largefile_source=1 ;;
24811 -D_LARGEFILE_SOURCE=*)
24812 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24818 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24819 if test "$ac_cv_sys_largefile_source" != no; then
24821 cat >>confdefs.h <<_ACEOF
24822 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24827 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24828 if ${ac_cv_sys_large_files+:} false; then :
24829 $as_echo_n "(cached) " >&6
24831 ac_cv_sys_large_files=no
24832 ac_cv_sys_large_files=1
24833 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24836 ac_cv_sys_large_files=1 ;;
24838 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24844 $as_echo "$ac_cv_sys_large_files" >&6; }
24845 if test "$ac_cv_sys_large_files" != no; then
24847 cat >>confdefs.h <<_ACEOF
24848 #define _LARGE_FILES $ac_cv_sys_large_files
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24856 $as_echo_n "checking for X... " >&6; }
24859 # Check whether --with-x was given.
24860 if test "${with_x+set}" = set; then :
24864 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24865 if test "x$with_x" = xno; then
24866 # The user explicitly disabled X.
24869 case $x_includes,$x_libraries in #(
24870 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24871 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24872 $as_echo_n "(cached) " >&6
24874 # One or both of the vars are not set, and there is no cached value.
24875 ac_x_includes=no ac_x_libraries=no
24876 rm -f -r conftest.dir
24877 if mkdir conftest.dir; then
24879 cat >Imakefile <<'_ACEOF'
24881 @echo incroot='${INCROOT}'
24883 @echo usrlibdir='${USRLIBDIR}'
24885 @echo libdir='${LIBDIR}'
24887 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24888 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24889 for ac_var in incroot usrlibdir libdir; do
24890 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24892 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24893 for ac_extension in a so sl dylib la dll; do
24894 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24895 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24896 ac_im_usrlibdir=$ac_im_libdir; break
24899 # Screen out bogus values from the imake configuration. They are
24900 # bogus both because they are the default anyway, and because
24901 # using them would break gcc on systems where it needs fixed includes.
24902 case $ac_im_incroot in
24903 /usr/include) ac_x_includes= ;;
24904 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24906 case $ac_im_usrlibdir in
24907 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24908 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24912 rm -f -r conftest.dir
24915 # Standard set of common directories for X headers.
24916 # Check X11 before X11Rn because it is often a symlink to the current release.
24930 /usr/local/X11/include
24931 /usr/local/X11R7/include
24932 /usr/local/X11R6/include
24933 /usr/local/X11R5/include
24934 /usr/local/X11R4/include
24936 /usr/local/include/X11
24937 /usr/local/include/X11R7
24938 /usr/local/include/X11R6
24939 /usr/local/include/X11R5
24940 /usr/local/include/X11R4
24944 /usr/XFree86/include/X11
24948 /usr/unsupported/include
24949 /usr/athena/include
24950 /usr/local/x11r5/include
24951 /usr/lpp/Xamples/include
24953 /usr/openwin/include
24954 /usr/openwin/share/include'
24956 if test "$ac_x_includes" = no; then
24957 # Guess where to find include files, by looking for Xlib.h.
24958 # First, try using that file with no special directory specified.
24959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24960 /* end confdefs.h. */
24961 #include <X11/Xlib.h>
24963 if ac_fn_c_try_cpp "$LINENO"; then :
24964 # We can compile using X headers with no special include directory.
24967 for ac_dir in $ac_x_header_dirs; do
24968 if test -r "$ac_dir/X11/Xlib.h"; then
24969 ac_x_includes=$ac_dir
24974 rm -f conftest.err conftest.i conftest.$ac_ext
24975 fi # $ac_x_includes = no
24977 if test "$ac_x_libraries" = no; then
24978 # Check for the libraries.
24979 # See if we find them without any special options.
24980 # Don't add to $LIBS permanently.
24983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24984 /* end confdefs.h. */
24985 #include <X11/Xlib.h>
24994 if ac_fn_c_try_link "$LINENO"; then :
24996 # We can link X programs with no special library path.
25000 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25002 # Don't even attempt the hair of trying to link an X program!
25003 for ac_extension in a so sl dylib la dll; do
25004 if test -r "$ac_dir/libX11.$ac_extension"; then
25005 ac_x_libraries=$ac_dir
25011 rm -f core conftest.err conftest.$ac_objext \
25012 conftest$ac_exeext conftest.$ac_ext
25013 fi # $ac_x_libraries = no
25015 case $ac_x_includes,$ac_x_libraries in #(
25016 no,* | *,no | *\'*)
25017 # Didn't find X, or a directory has "'" in its name.
25018 ac_cv_have_x="have_x=no";; #(
25020 # Record where we found X for the cache.
25021 ac_cv_have_x="have_x=yes\
25022 ac_x_includes='$ac_x_includes'\
25023 ac_x_libraries='$ac_x_libraries'"
25029 eval "$ac_cv_have_x"
25032 if test "$have_x" != yes; then
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25034 $as_echo "$have_x" >&6; }
25037 # If each of the values was on the command line, it overrides each guess.
25038 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25039 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25040 # Update the cache value to reflect the command line values.
25041 ac_cv_have_x="have_x=yes\
25042 ac_x_includes='$x_includes'\
25043 ac_x_libraries='$x_libraries'"
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25045 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25048 if test "$no_x" = yes; then
25049 # Not all programs may use this symbol, but it does not hurt to define it.
25051 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25053 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25055 if test -n "$x_includes"; then
25056 X_CFLAGS="$X_CFLAGS -I$x_includes"
25059 # It would also be nice to do this for all -L options, not just this one.
25060 if test -n "$x_libraries"; then
25061 X_LIBS="$X_LIBS -L$x_libraries"
25062 # For Solaris; some versions of Sun CC require a space after -R and
25063 # others require no space. Words are not sufficient . . . .
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25065 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25066 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25067 ac_xsave_c_werror_flag=$ac_c_werror_flag
25068 ac_c_werror_flag=yes
25069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25070 /* end confdefs.h. */
25080 if ac_fn_c_try_link "$LINENO"; then :
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25082 $as_echo "no" >&6; }
25083 X_LIBS="$X_LIBS -R$x_libraries"
25085 LIBS="$ac_xsave_LIBS -R $x_libraries"
25086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25087 /* end confdefs.h. */
25097 if ac_fn_c_try_link "$LINENO"; then :
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25099 $as_echo "yes" >&6; }
25100 X_LIBS="$X_LIBS -R $x_libraries"
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25103 $as_echo "neither works" >&6; }
25105 rm -f core conftest.err conftest.$ac_objext \
25106 conftest$ac_exeext conftest.$ac_ext
25108 rm -f core conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
25110 ac_c_werror_flag=$ac_xsave_c_werror_flag
25111 LIBS=$ac_xsave_LIBS
25114 # Check for system-dependent libraries X programs must link with.
25115 # Do this before checking for the system-independent R6 libraries
25116 # (-lICE), since we may need -lsocket or whatever for X linking.
25118 if test "$ISC" = yes; then
25119 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25121 # Martyn Johnson says this is needed for Ultrix, if the X
25122 # libraries were built with DECnet support. And Karl Berry says
25123 # the Alpha needs dnet_stub (dnet does not exist).
25124 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25126 /* end confdefs.h. */
25128 /* Override any GCC internal prototype to avoid an error.
25129 Use char because int might match the return type of a GCC
25130 builtin and then its argument prototype would still apply. */
25134 char XOpenDisplay ();
25138 return XOpenDisplay ();
25143 if ac_fn_c_try_link "$LINENO"; then :
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25147 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25148 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25149 $as_echo_n "(cached) " >&6
25151 ac_check_lib_save_LIBS=$LIBS
25152 LIBS="-ldnet $LIBS"
25153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h. */
25156 /* Override any GCC internal prototype to avoid an error.
25157 Use char because int might match the return type of a GCC
25158 builtin and then its argument prototype would still apply. */
25166 return dnet_ntoa ();
25171 if ac_fn_c_try_link "$LINENO"; then :
25172 ac_cv_lib_dnet_dnet_ntoa=yes
25174 ac_cv_lib_dnet_dnet_ntoa=no
25176 rm -f core conftest.err conftest.$ac_objext \
25177 conftest$ac_exeext conftest.$ac_ext
25178 LIBS=$ac_check_lib_save_LIBS
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25181 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25182 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25183 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25186 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25188 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25189 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25190 $as_echo_n "(cached) " >&6
25192 ac_check_lib_save_LIBS=$LIBS
25193 LIBS="-ldnet_stub $LIBS"
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25197 /* Override any GCC internal prototype to avoid an error.
25198 Use char because int might match the return type of a GCC
25199 builtin and then its argument prototype would still apply. */
25207 return dnet_ntoa ();
25212 if ac_fn_c_try_link "$LINENO"; then :
25213 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25215 ac_cv_lib_dnet_stub_dnet_ntoa=no
25217 rm -f core conftest.err conftest.$ac_objext \
25218 conftest$ac_exeext conftest.$ac_ext
25219 LIBS=$ac_check_lib_save_LIBS
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25222 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25223 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25224 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25229 rm -f core conftest.err conftest.$ac_objext \
25230 conftest$ac_exeext conftest.$ac_ext
25231 LIBS="$ac_xsave_LIBS"
25233 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25234 # to get the SysV transport functions.
25235 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25237 # The nsl library prevents programs from opening the X display
25238 # on Irix 5.2, according to T.E. Dickey.
25239 # The functions gethostbyname, getservbyname, and inet_addr are
25240 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25241 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25242 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25246 if test $ac_cv_func_gethostbyname = no; then
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25248 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25249 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25250 $as_echo_n "(cached) " >&6
25252 ac_check_lib_save_LIBS=$LIBS
25254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25255 /* end confdefs.h. */
25257 /* Override any GCC internal prototype to avoid an error.
25258 Use char because int might match the return type of a GCC
25259 builtin and then its argument prototype would still apply. */
25263 char gethostbyname ();
25267 return gethostbyname ();
25272 if ac_fn_c_try_link "$LINENO"; then :
25273 ac_cv_lib_nsl_gethostbyname=yes
25275 ac_cv_lib_nsl_gethostbyname=no
25277 rm -f core conftest.err conftest.$ac_objext \
25278 conftest$ac_exeext conftest.$ac_ext
25279 LIBS=$ac_check_lib_save_LIBS
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25282 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25283 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25284 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25287 if test $ac_cv_lib_nsl_gethostbyname = no; then
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25289 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25290 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25291 $as_echo_n "(cached) " >&6
25293 ac_check_lib_save_LIBS=$LIBS
25295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25296 /* end confdefs.h. */
25298 /* Override any GCC internal prototype to avoid an error.
25299 Use char because int might match the return type of a GCC
25300 builtin and then its argument prototype would still apply. */
25304 char gethostbyname ();
25308 return gethostbyname ();
25313 if ac_fn_c_try_link "$LINENO"; then :
25314 ac_cv_lib_bsd_gethostbyname=yes
25316 ac_cv_lib_bsd_gethostbyname=no
25318 rm -f core conftest.err conftest.$ac_objext \
25319 conftest$ac_exeext conftest.$ac_ext
25320 LIBS=$ac_check_lib_save_LIBS
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25323 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25324 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25325 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25331 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25332 # socket/setsockopt and other routines are undefined under SCO ODT
25333 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25334 # on later versions), says Simon Leinen: it contains gethostby*
25335 # variants that don't use the name server (or something). -lsocket
25336 # must be given before -lnsl if both are needed. We assume that
25337 # if connect needs -lnsl, so does gethostbyname.
25338 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25339 if test "x$ac_cv_func_connect" = xyes; then :
25343 if test $ac_cv_func_connect = no; then
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25345 $as_echo_n "checking for connect in -lsocket... " >&6; }
25346 if ${ac_cv_lib_socket_connect+:} false; then :
25347 $as_echo_n "(cached) " >&6
25349 ac_check_lib_save_LIBS=$LIBS
25350 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352 /* end confdefs.h. */
25354 /* Override any GCC internal prototype to avoid an error.
25355 Use char because int might match the return type of a GCC
25356 builtin and then its argument prototype would still apply. */
25369 if ac_fn_c_try_link "$LINENO"; then :
25370 ac_cv_lib_socket_connect=yes
25372 ac_cv_lib_socket_connect=no
25374 rm -f core conftest.err conftest.$ac_objext \
25375 conftest$ac_exeext conftest.$ac_ext
25376 LIBS=$ac_check_lib_save_LIBS
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25379 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25380 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25381 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25386 # Guillermo Gomez says -lposix is necessary on A/UX.
25387 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25388 if test "x$ac_cv_func_remove" = xyes; then :
25392 if test $ac_cv_func_remove = no; then
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25394 $as_echo_n "checking for remove in -lposix... " >&6; }
25395 if ${ac_cv_lib_posix_remove+:} false; then :
25396 $as_echo_n "(cached) " >&6
25398 ac_check_lib_save_LIBS=$LIBS
25399 LIBS="-lposix $LIBS"
25400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25401 /* end confdefs.h. */
25403 /* Override any GCC internal prototype to avoid an error.
25404 Use char because int might match the return type of a GCC
25405 builtin and then its argument prototype would still apply. */
25418 if ac_fn_c_try_link "$LINENO"; then :
25419 ac_cv_lib_posix_remove=yes
25421 ac_cv_lib_posix_remove=no
25423 rm -f core conftest.err conftest.$ac_objext \
25424 conftest$ac_exeext conftest.$ac_ext
25425 LIBS=$ac_check_lib_save_LIBS
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25428 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25429 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25435 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25436 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25437 if test "x$ac_cv_func_shmat" = xyes; then :
25441 if test $ac_cv_func_shmat = no; then
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25443 $as_echo_n "checking for shmat in -lipc... " >&6; }
25444 if ${ac_cv_lib_ipc_shmat+:} false; then :
25445 $as_echo_n "(cached) " >&6
25447 ac_check_lib_save_LIBS=$LIBS
25449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25450 /* end confdefs.h. */
25452 /* Override any GCC internal prototype to avoid an error.
25453 Use char because int might match the return type of a GCC
25454 builtin and then its argument prototype would still apply. */
25467 if ac_fn_c_try_link "$LINENO"; then :
25468 ac_cv_lib_ipc_shmat=yes
25470 ac_cv_lib_ipc_shmat=no
25472 rm -f core conftest.err conftest.$ac_objext \
25473 conftest$ac_exeext conftest.$ac_ext
25474 LIBS=$ac_check_lib_save_LIBS
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25477 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25478 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25479 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25485 # Check for libraries that X11R6 Xt/Xaw programs need.
25486 ac_save_LDFLAGS=$LDFLAGS
25487 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25488 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25489 # check for ICE first), but we must link in the order -lSM -lICE or
25490 # we get undefined symbols. So assume we have SM if we have ICE.
25491 # These have to be linked with before -lX11, unlike the other
25492 # libraries we check for below, so use a different variable.
25493 # John Interrante, Karl Berry
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25495 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25496 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25497 $as_echo_n "(cached) " >&6
25499 ac_check_lib_save_LIBS=$LIBS
25500 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25502 /* end confdefs.h. */
25504 /* Override any GCC internal prototype to avoid an error.
25505 Use char because int might match the return type of a GCC
25506 builtin and then its argument prototype would still apply. */
25510 char IceConnectionNumber ();
25514 return IceConnectionNumber ();
25519 if ac_fn_c_try_link "$LINENO"; then :
25520 ac_cv_lib_ICE_IceConnectionNumber=yes
25522 ac_cv_lib_ICE_IceConnectionNumber=no
25524 rm -f core conftest.err conftest.$ac_objext \
25525 conftest$ac_exeext conftest.$ac_ext
25526 LIBS=$ac_check_lib_save_LIBS
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25529 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25530 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25531 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25534 LDFLAGS=$ac_save_LDFLAGS
25571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25572 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25574 cat >>confdefs.h <<_ACEOF
25575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25583 $as_echo_n "checking for ANSI C header files... " >&6; }
25584 if ${ac_cv_header_stdc+:} false; then :
25585 $as_echo_n "(cached) " >&6
25587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588 /* end confdefs.h. */
25589 #include <stdlib.h>
25590 #include <stdarg.h>
25591 #include <string.h>
25602 if ac_fn_c_try_compile "$LINENO"; then :
25603 ac_cv_header_stdc=yes
25605 ac_cv_header_stdc=no
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25609 if test $ac_cv_header_stdc = yes; then
25610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612 /* end confdefs.h. */
25613 #include <string.h>
25616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25617 $EGREP "memchr" >/dev/null 2>&1; then :
25620 ac_cv_header_stdc=no
25626 if test $ac_cv_header_stdc = yes; then
25627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629 /* end confdefs.h. */
25630 #include <stdlib.h>
25633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25634 $EGREP "free" >/dev/null 2>&1; then :
25637 ac_cv_header_stdc=no
25643 if test $ac_cv_header_stdc = yes; then
25644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25645 if test "$cross_compiling" = yes; then :
25648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25649 /* end confdefs.h. */
25651 #include <stdlib.h>
25652 #if ((' ' & 0x0FF) == 0x020)
25653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25656 # define ISLOWER(c) \
25657 (('a' <= (c) && (c) <= 'i') \
25658 || ('j' <= (c) && (c) <= 'r') \
25659 || ('s' <= (c) && (c) <= 'z'))
25660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25668 for (i = 0; i < 256; i++)
25669 if (XOR (islower (i), ISLOWER (i))
25670 || toupper (i) != TOUPPER (i))
25675 if ac_fn_c_try_run "$LINENO"; then :
25678 ac_cv_header_stdc=no
25680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25681 conftest.$ac_objext conftest.beam conftest.$ac_ext
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25687 $as_echo "$ac_cv_header_stdc" >&6; }
25688 if test $ac_cv_header_stdc = yes; then
25690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25695 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25696 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25697 $as_echo_n "(cached) " >&6
25699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25700 /* end confdefs.h. */
25701 #include <sys/types.h>
25705 return makedev(0, 0);
25710 if ac_fn_c_try_link "$LINENO"; then :
25711 ac_cv_header_sys_types_h_makedev=yes
25713 ac_cv_header_sys_types_h_makedev=no
25715 rm -f core conftest.err conftest.$ac_objext \
25716 conftest$ac_exeext conftest.$ac_ext
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25720 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25722 if test $ac_cv_header_sys_types_h_makedev = no; then
25723 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25724 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25726 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25732 if test $ac_cv_header_sys_mkdev_h = no; then
25733 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25734 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25736 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25744 ac_header_dirent=no
25745 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25746 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25748 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25749 if eval \${$as_ac_Header+:} false; then :
25750 $as_echo_n "(cached) " >&6
25752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25753 /* end confdefs.h. */
25754 #include <sys/types.h>
25766 if ac_fn_c_try_compile "$LINENO"; then :
25767 eval "$as_ac_Header=yes"
25769 eval "$as_ac_Header=no"
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25773 eval ac_res=\$$as_ac_Header
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25775 $as_echo "$ac_res" >&6; }
25776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25777 cat >>confdefs.h <<_ACEOF
25778 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25781 ac_header_dirent=$ac_hdr; break
25785 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25786 if test $ac_header_dirent = dirent.h; then
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25788 $as_echo_n "checking for library containing opendir... " >&6; }
25789 if ${ac_cv_search_opendir+:} false; then :
25790 $as_echo_n "(cached) " >&6
25792 ac_func_search_save_LIBS=$LIBS
25793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25794 /* end confdefs.h. */
25796 /* Override any GCC internal prototype to avoid an error.
25797 Use char because int might match the return type of a GCC
25798 builtin and then its argument prototype would still apply. */
25811 for ac_lib in '' dir; do
25812 if test -z "$ac_lib"; then
25813 ac_res="none required"
25816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25818 if ac_fn_c_try_link "$LINENO"; then :
25819 ac_cv_search_opendir=$ac_res
25821 rm -f core conftest.err conftest.$ac_objext \
25823 if ${ac_cv_search_opendir+:} false; then :
25827 if ${ac_cv_search_opendir+:} false; then :
25830 ac_cv_search_opendir=no
25832 rm conftest.$ac_ext
25833 LIBS=$ac_func_search_save_LIBS
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25836 $as_echo "$ac_cv_search_opendir" >&6; }
25837 ac_res=$ac_cv_search_opendir
25838 if test "$ac_res" != no; then :
25839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25845 $as_echo_n "checking for library containing opendir... " >&6; }
25846 if ${ac_cv_search_opendir+:} false; then :
25847 $as_echo_n "(cached) " >&6
25849 ac_func_search_save_LIBS=$LIBS
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h. */
25853 /* Override any GCC internal prototype to avoid an error.
25854 Use char because int might match the return type of a GCC
25855 builtin and then its argument prototype would still apply. */
25868 for ac_lib in '' x; do
25869 if test -z "$ac_lib"; then
25870 ac_res="none required"
25873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25875 if ac_fn_c_try_link "$LINENO"; then :
25876 ac_cv_search_opendir=$ac_res
25878 rm -f core conftest.err conftest.$ac_objext \
25880 if ${ac_cv_search_opendir+:} false; then :
25884 if ${ac_cv_search_opendir+:} false; then :
25887 ac_cv_search_opendir=no
25889 rm conftest.$ac_ext
25890 LIBS=$ac_func_search_save_LIBS
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25893 $as_echo "$ac_cv_search_opendir" >&6; }
25894 ac_res=$ac_cv_search_opendir
25895 if test "$ac_res" != no; then :
25896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25903 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25904 if ${ac_cv_header_stat_broken+:} false; then :
25905 $as_echo_n "(cached) " >&6
25907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908 /* end confdefs.h. */
25909 #include <sys/types.h>
25910 #include <sys/stat.h>
25912 #if defined S_ISBLK && defined S_IFDIR
25913 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25916 #if defined S_ISBLK && defined S_IFCHR
25917 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25920 #if defined S_ISLNK && defined S_IFREG
25921 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25924 #if defined S_ISSOCK && defined S_IFREG
25925 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25929 if ac_fn_c_try_compile "$LINENO"; then :
25930 ac_cv_header_stat_broken=no
25932 ac_cv_header_stat_broken=yes
25934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25937 $as_echo "$ac_cv_header_stat_broken" >&6; }
25938 if test $ac_cv_header_stat_broken = yes; then
25940 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25945 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25946 if ${ac_cv_header_sys_wait_h+:} false; then :
25947 $as_echo_n "(cached) " >&6
25949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h. */
25951 #include <sys/types.h>
25952 #include <sys/wait.h>
25953 #ifndef WEXITSTATUS
25954 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25957 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25965 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25970 if ac_fn_c_try_compile "$LINENO"; then :
25971 ac_cv_header_sys_wait_h=yes
25973 ac_cv_header_sys_wait_h=no
25975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25978 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25979 if test $ac_cv_header_sys_wait_h = yes; then
25981 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25986 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25987 if ${ac_cv_header_time+:} false; then :
25988 $as_echo_n "(cached) " >&6
25990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h. */
25992 #include <sys/types.h>
25993 #include <sys/time.h>
25999 if ((struct tm *) 0)
26005 if ac_fn_c_try_compile "$LINENO"; then :
26006 ac_cv_header_time=yes
26008 ac_cv_header_time=no
26010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26013 $as_echo "$ac_cv_header_time" >&6; }
26014 if test $ac_cv_header_time = yes; then
26016 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26020 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26021 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26023 cat >>confdefs.h <<_ACEOF
26024 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26028 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26033 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26034 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26036 cat >>confdefs.h <<_ACEOF
26037 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26041 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26044 case " $LIBOBJS " in
26045 *" fileblocks.$ac_objext "* ) ;;
26046 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26054 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26055 if ${ac_cv_struct_tm+:} false; then :
26056 $as_echo_n "(cached) " >&6
26058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26059 /* end confdefs.h. */
26060 #include <sys/types.h>
26067 int *p = &tm.tm_sec;
26073 if ac_fn_c_try_compile "$LINENO"; then :
26074 ac_cv_struct_tm=time.h
26076 ac_cv_struct_tm=sys/time.h
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26081 $as_echo "$ac_cv_struct_tm" >&6; }
26082 if test $ac_cv_struct_tm = sys/time.h; then
26084 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26088 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26089 #include <$ac_cv_struct_tm>
26092 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26094 cat >>confdefs.h <<_ACEOF
26095 #define HAVE_STRUCT_TM_TM_ZONE 1
26101 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26103 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26106 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26108 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26114 cat >>confdefs.h <<_ACEOF
26115 #define HAVE_DECL_TZNAME $ac_have_decl
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26119 $as_echo_n "checking for tzname... " >&6; }
26120 if ${ac_cv_var_tzname+:} false; then :
26121 $as_echo_n "(cached) " >&6
26123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124 /* end confdefs.h. */
26126 #if !HAVE_DECL_TZNAME
26127 extern char *tzname[];
26133 return tzname[0][0];
26138 if ac_fn_c_try_link "$LINENO"; then :
26139 ac_cv_var_tzname=yes
26141 ac_cv_var_tzname=no
26143 rm -f core conftest.err conftest.$ac_objext \
26144 conftest$ac_exeext conftest.$ac_ext
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26147 $as_echo "$ac_cv_var_tzname" >&6; }
26148 if test $ac_cv_var_tzname = yes; then
26150 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26157 $as_echo_n "checking for utime.h... " >&6; }
26158 if ${ba_cv_header_utime_h+:} false; then :
26159 $as_echo_n "(cached) " >&6
26162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26163 /* end confdefs.h. */
26165 #include <sys/types.h>
26178 if ac_fn_c_try_compile "$LINENO"; then :
26180 ba_cv_header_utime_h=yes
26184 ba_cv_header_utime_h=no
26188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26193 $as_echo "$ba_cv_header_utime_h" >&6; }
26194 test $ba_cv_header_utime_h = yes &&
26195 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26199 $as_echo_n "checking for socklen_t... " >&6; }
26200 if ${ba_cv_header_socklen_t+:} false; then :
26201 $as_echo_n "(cached) " >&6
26204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26205 /* end confdefs.h. */
26207 #include <sys/types.h>
26208 #include <sys/socket.h>
26220 if ac_fn_c_try_compile "$LINENO"; then :
26222 ba_cv_header_socklen_t=yes
26226 ba_cv_header_socklen_t=no
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26235 $as_echo "$ba_cv_header_socklen_t" >&6; }
26236 test $ba_cv_header_socklen_t = yes &&
26237 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26241 ac_cpp='$CXXCPP $CPPFLAGS'
26242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26247 $as_echo_n "checking for ioctl_req_t... " >&6; }
26248 if ${ba_cv_header_ioctl_req_t+:} false; then :
26249 $as_echo_n "(cached) " >&6
26252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h. */
26255 #include <unistd.h>
26256 #include <sys/types.h>
26257 #include <sys/ioctl.h>
26263 int (*d_ioctl)(int fd, unsigned long int request, ...);
26270 if ac_fn_cxx_try_compile "$LINENO"; then :
26272 ba_cv_header_ioctl_req_t=yes
26276 ba_cv_header_ioctl_req_t=no
26280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26285 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26286 test $ba_cv_header_ioctl_req_t = yes &&
26287 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26291 ac_cpp='$CPP $CPPFLAGS'
26292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26298 ac_cpp='$CXXCPP $CPPFLAGS'
26299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26304 $as_echo_n "checking for typeof... " >&6; }
26305 if ${ba_cv_have_typeof+:} false; then :
26306 $as_echo_n "(cached) " >&6
26309 if test "$cross_compiling" = yes; then :
26311 ba_cv_have_typeof=no
26315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26316 /* end confdefs.h. */
26318 main(){char *a = 0; a = (typeof a)a;}
26321 if ac_fn_cxx_try_run "$LINENO"; then :
26323 ba_cv_have_typeof=yes
26327 ba_cv_have_typeof=no
26330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26331 conftest.$ac_objext conftest.beam conftest.$ac_ext
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26338 $as_echo "$ba_cv_have_typeof" >&6; }
26339 test $ba_cv_have_typeof = yes &&
26340 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26343 ac_cpp='$CPP $CPPFLAGS'
26344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26350 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26351 if ${ac_cv_c_const+:} false; then :
26352 $as_echo_n "(cached) " >&6
26354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26355 /* end confdefs.h. */
26360 /* FIXME: Include the comments suggested by Paul. */
26361 #ifndef __cplusplus
26362 /* Ultrix mips cc rejects this. */
26363 typedef int charset[2];
26365 /* SunOS 4.1.1 cc rejects this. */
26366 char const *const *pcpcc;
26368 /* NEC SVR4.0.2 mips cc rejects this. */
26369 struct point {int x, y;};
26370 static struct point const zero = {0,0};
26371 /* AIX XL C 1.02.0.0 rejects this.
26372 It does not let you subtract one const X* pointer from another in
26373 an arm of an if-expression whose if-part is not a constant
26375 const char *g = "string";
26376 pcpcc = &g + (g ? g-g : 0);
26377 /* HPUX 7.0 cc rejects these. */
26379 ppc = (char**) pcpcc;
26380 pcpcc = (char const *const *) ppc;
26381 { /* SCO 3.2v4 cc rejects this. */
26383 char const *s = 0 ? (char *) 0 : (char const *) 0;
26388 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26389 int x[] = {25, 17};
26390 const int *foo = &x[0];
26393 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26394 typedef const int *iptr;
26398 { /* AIX XL C 1.02.0.0 rejects this saying
26399 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26400 struct s { int j; const int *ap[3]; };
26401 struct s *b; b->j = 5;
26403 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26404 const int foo = 10;
26405 if (!foo) return 0;
26407 return !cs[0] && !zero.x;
26414 if ac_fn_c_try_compile "$LINENO"; then :
26419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26422 $as_echo "$ac_cv_c_const" >&6; }
26423 if test $ac_cv_c_const = no; then
26425 $as_echo "#define const /**/" >>confdefs.h
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26431 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26432 if ${ac_cv_c_bigendian+:} false; then :
26433 $as_echo_n "(cached) " >&6
26435 ac_cv_c_bigendian=unknown
26436 # See if we're dealing with a universal compiler.
26437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438 /* end confdefs.h. */
26439 #ifndef __APPLE_CC__
26440 not a universal capable compiler
26445 if ac_fn_c_try_compile "$LINENO"; then :
26447 # Check for potential -arch flags. It is not universal unless
26448 # there are at least two -arch flags with different values.
26451 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26452 if test -n "$ac_prev"; then
26454 i?86 | x86_64 | ppc | ppc64)
26455 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26458 ac_cv_c_bigendian=universal
26464 elif test "x$ac_word" = "x-arch"; then
26469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26470 if test $ac_cv_c_bigendian = unknown; then
26471 # See if sys/param.h defines the BYTE_ORDER macro.
26472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26473 /* end confdefs.h. */
26474 #include <sys/types.h>
26475 #include <sys/param.h>
26480 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26481 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26483 bogus endian macros
26490 if ac_fn_c_try_compile "$LINENO"; then :
26491 # It does; now see whether it defined to BIG_ENDIAN or not.
26492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493 /* end confdefs.h. */
26494 #include <sys/types.h>
26495 #include <sys/param.h>
26500 #if BYTE_ORDER != BIG_ENDIAN
26508 if ac_fn_c_try_compile "$LINENO"; then :
26509 ac_cv_c_bigendian=yes
26511 ac_cv_c_bigendian=no
26513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26517 if test $ac_cv_c_bigendian = unknown; then
26518 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h. */
26521 #include <limits.h>
26526 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26527 bogus endian macros
26534 if ac_fn_c_try_compile "$LINENO"; then :
26535 # It does; now see whether it defined to _BIG_ENDIAN or not.
26536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26537 /* end confdefs.h. */
26538 #include <limits.h>
26543 #ifndef _BIG_ENDIAN
26551 if ac_fn_c_try_compile "$LINENO"; then :
26552 ac_cv_c_bigendian=yes
26554 ac_cv_c_bigendian=no
26556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26560 if test $ac_cv_c_bigendian = unknown; then
26561 # Compile a test program.
26562 if test "$cross_compiling" = yes; then :
26563 # Try to guess by grepping values from an object file.
26564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26565 /* end confdefs.h. */
26566 short int ascii_mm[] =
26567 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26568 short int ascii_ii[] =
26569 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26570 int use_ascii (int i) {
26571 return ascii_mm[i] + ascii_ii[i];
26573 short int ebcdic_ii[] =
26574 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26575 short int ebcdic_mm[] =
26576 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26577 int use_ebcdic (int i) {
26578 return ebcdic_mm[i] + ebcdic_ii[i];
26585 return use_ascii (foo) == use_ebcdic (foo);
26590 if ac_fn_c_try_compile "$LINENO"; then :
26591 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26592 ac_cv_c_bigendian=yes
26594 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26595 if test "$ac_cv_c_bigendian" = unknown; then
26596 ac_cv_c_bigendian=no
26598 # finding both strings is unlikely to happen, but who knows?
26599 ac_cv_c_bigendian=unknown
26603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26606 /* end confdefs.h. */
26607 $ac_includes_default
26612 /* Are we little or big endian? From Harbison&Steele. */
26616 char c[sizeof (long int)];
26619 return u.c[sizeof (long int) - 1] == 1;
26625 if ac_fn_c_try_run "$LINENO"; then :
26626 ac_cv_c_bigendian=no
26628 ac_cv_c_bigendian=yes
26630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26631 conftest.$ac_objext conftest.beam conftest.$ac_ext
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26637 $as_echo "$ac_cv_c_bigendian" >&6; }
26638 case $ac_cv_c_bigendian in #(
26641 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26645 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26649 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26653 as_fn_error $? "unknown endianness
26654 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26659 $as_echo_n "checking how to get filesystem type... " >&6; }
26661 # The order of these tests is important.
26662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26663 /* end confdefs.h. */
26665 #include <sys/statvfs.h>
26666 #include <sys/fstyp.h>
26669 if ac_fn_c_try_cpp "$LINENO"; then :
26670 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26674 rm -f conftest.err conftest.i conftest.$ac_ext
26675 if test $fstype = no; then
26676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26677 /* end confdefs.h. */
26679 #include <sys/statfs.h>
26680 #include <sys/fstyp.h>
26683 if ac_fn_c_try_cpp "$LINENO"; then :
26684 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26688 rm -f conftest.err conftest.i conftest.$ac_ext
26690 if test $fstype = no; then
26691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26692 /* end confdefs.h. */
26694 #include <sys/statfs.h>
26695 #include <sys/vmount.h>
26698 if ac_fn_c_try_cpp "$LINENO"; then :
26699 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26703 rm -f conftest.err conftest.i conftest.$ac_ext
26705 if test $fstype = no; then
26706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707 /* end confdefs.h. */
26709 #include <mntent.h>
26712 if ac_fn_c_try_cpp "$LINENO"; then :
26713 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26717 rm -f conftest.err conftest.i conftest.$ac_ext
26719 if test $fstype = no; then
26720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26721 /* end confdefs.h. */
26722 #include <sys/mount.h>
26725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26726 $EGREP "f_type;" >/dev/null 2>&1; then :
26727 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26733 if test $fstype = no; then
26734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26735 /* end confdefs.h. */
26737 #include <sys/mount.h>
26738 #include <sys/fs_types.h>
26741 if ac_fn_c_try_cpp "$LINENO"; then :
26742 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26746 rm -f conftest.err conftest.i conftest.$ac_ext
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26749 $as_echo "$fstype" >&6; }
26751 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26752 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26754 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26761 ac_cpp='$CXXCPP $CPPFLAGS'
26762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26767 for ac_header in cxxabi.h execinfo.h
26769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26770 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26772 cat >>confdefs.h <<_ACEOF
26773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26776 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26783 ac_cpp='$CPP $CPPFLAGS'
26784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26790 $as_echo_n "checking return type of signal handlers... " >&6; }
26791 if ${ac_cv_type_signal+:} false; then :
26792 $as_echo_n "(cached) " >&6
26794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26795 /* end confdefs.h. */
26796 #include <sys/types.h>
26797 #include <signal.h>
26802 return *(signal (0, 0)) (0) == 1;
26807 if ac_fn_c_try_compile "$LINENO"; then :
26808 ac_cv_type_signal=int
26810 ac_cv_type_signal=void
26812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26815 $as_echo "$ac_cv_type_signal" >&6; }
26817 cat >>confdefs.h <<_ACEOF
26818 #define RETSIGTYPE $ac_cv_type_signal
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26824 $as_echo_n "checking for type of signal functions... " >&6; }
26825 if ${bash_cv_signal_vintage+:} false; then :
26826 $as_echo_n "(cached) " >&6
26829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h. */
26831 #include <signal.h>
26837 struct sigaction sa;
26838 sigemptyset(&ss); sigsuspend(&ss);
26839 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26840 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26846 if ac_fn_c_try_link "$LINENO"; then :
26847 bash_cv_signal_vintage="posix"
26850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h. */
26852 #include <signal.h>
26857 int mask = sigmask(SIGINT);
26858 sigsetmask(mask); sigblock(mask); sigpause(mask);
26864 if ac_fn_c_try_link "$LINENO"; then :
26865 bash_cv_signal_vintage="4.2bsd"
26868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26869 /* end confdefs.h. */
26871 #include <signal.h>
26872 RETSIGTYPE foo() { }
26877 int mask = sigmask(SIGINT);
26878 sigset(SIGINT, foo); sigrelse(SIGINT);
26879 sighold(SIGINT); sigpause(SIGINT);
26885 if ac_fn_c_try_link "$LINENO"; then :
26886 bash_cv_signal_vintage="svr3"
26888 bash_cv_signal_vintage="v7"
26891 rm -f core conftest.err conftest.$ac_objext \
26892 conftest$ac_exeext conftest.$ac_ext
26895 rm -f core conftest.err conftest.$ac_objext \
26896 conftest$ac_exeext conftest.$ac_ext
26899 rm -f core conftest.err conftest.$ac_objext \
26900 conftest$ac_exeext conftest.$ac_ext
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26905 $as_echo "$bash_cv_signal_vintage" >&6; }
26906 if test "$bash_cv_signal_vintage" = "posix"; then
26907 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26909 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26910 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26912 elif test "$bash_cv_signal_vintage" = "svr3"; then
26913 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26917 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26918 if test "x$ac_cv_type_mode_t" = xyes; then :
26922 cat >>confdefs.h <<_ACEOF
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26929 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26930 if ${ac_cv_type_uid_t+:} false; then :
26931 $as_echo_n "(cached) " >&6
26933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26934 /* end confdefs.h. */
26935 #include <sys/types.h>
26938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26939 $EGREP "uid_t" >/dev/null 2>&1; then :
26940 ac_cv_type_uid_t=yes
26942 ac_cv_type_uid_t=no
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26948 $as_echo "$ac_cv_type_uid_t" >&6; }
26949 if test $ac_cv_type_uid_t = no; then
26951 $as_echo "#define uid_t int" >>confdefs.h
26954 $as_echo "#define gid_t int" >>confdefs.h
26958 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26959 if test "x$ac_cv_type_size_t" = xyes; then :
26963 cat >>confdefs.h <<_ACEOF
26964 #define size_t unsigned int
26969 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26970 if test "x$ac_cv_type_pid_t" = xyes; then :
26974 cat >>confdefs.h <<_ACEOF
26980 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26981 if test "x$ac_cv_type_off_t" = xyes; then :
26985 cat >>confdefs.h <<_ACEOF
26986 #define off_t long int
26992 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26993 if test "x$ac_cv_type_intptr_t" = xyes; then :
26995 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26998 for ac_type in 'int' 'long int' 'long long int'; do
26999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27000 /* end confdefs.h. */
27001 $ac_includes_default
27005 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27012 if ac_fn_c_try_compile "$LINENO"; then :
27014 cat >>confdefs.h <<_ACEOF
27015 #define intptr_t $ac_type
27020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27021 test -z "$ac_type" && break
27027 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27028 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27030 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27033 for ac_type in 'unsigned int' 'unsigned long int' \
27034 'unsigned long long int'; do
27035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h. */
27037 $ac_includes_default
27041 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27048 if ac_fn_c_try_compile "$LINENO"; then :
27050 cat >>confdefs.h <<_ACEOF
27051 #define uintptr_t $ac_type
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057 test -z "$ac_type" && break
27062 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27063 if test "x$ac_cv_type_ino_t" = xyes; then :
27067 cat >>confdefs.h <<_ACEOF
27068 #define ino_t unsigned long
27073 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27074 if test "x$ac_cv_type_dev_t" = xyes; then :
27078 cat >>confdefs.h <<_ACEOF
27079 #define dev_t unsigned long
27084 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27085 if test "x$ac_cv_type_daddr_t" = xyes; then :
27089 cat >>confdefs.h <<_ACEOF
27090 #define daddr_t long
27095 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27096 if test "x$ac_cv_type_major_t" = xyes; then :
27100 cat >>confdefs.h <<_ACEOF
27101 #define major_t int
27106 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27107 if test "x$ac_cv_type_minor_t" = xyes; then :
27111 cat >>confdefs.h <<_ACEOF
27112 #define minor_t int
27117 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27118 if test "x$ac_cv_type_ssize_t" = xyes; then :
27122 cat >>confdefs.h <<_ACEOF
27123 #define ssize_t int
27128 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27129 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27131 cat >>confdefs.h <<_ACEOF
27132 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27136 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27139 case " $LIBOBJS " in
27140 *" fileblocks.$ac_objext "* ) ;;
27141 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27148 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27149 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27151 cat >>confdefs.h <<_ACEOF
27152 #define HAVE_STRUCT_STAT_ST_RDEV 1
27156 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27162 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27163 if ${ac_cv_struct_tm+:} false; then :
27164 $as_echo_n "(cached) " >&6
27166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h. */
27168 #include <sys/types.h>
27175 int *p = &tm.tm_sec;
27181 if ac_fn_c_try_compile "$LINENO"; then :
27182 ac_cv_struct_tm=time.h
27184 ac_cv_struct_tm=sys/time.h
27186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27189 $as_echo "$ac_cv_struct_tm" >&6; }
27190 if test $ac_cv_struct_tm = sys/time.h; then
27192 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27197 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27198 if ${ac_cv_c_const+:} false; then :
27199 $as_echo_n "(cached) " >&6
27201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27202 /* end confdefs.h. */
27207 /* FIXME: Include the comments suggested by Paul. */
27208 #ifndef __cplusplus
27209 /* Ultrix mips cc rejects this. */
27210 typedef int charset[2];
27212 /* SunOS 4.1.1 cc rejects this. */
27213 char const *const *pcpcc;
27215 /* NEC SVR4.0.2 mips cc rejects this. */
27216 struct point {int x, y;};
27217 static struct point const zero = {0,0};
27218 /* AIX XL C 1.02.0.0 rejects this.
27219 It does not let you subtract one const X* pointer from another in
27220 an arm of an if-expression whose if-part is not a constant
27222 const char *g = "string";
27223 pcpcc = &g + (g ? g-g : 0);
27224 /* HPUX 7.0 cc rejects these. */
27226 ppc = (char**) pcpcc;
27227 pcpcc = (char const *const *) ppc;
27228 { /* SCO 3.2v4 cc rejects this. */
27230 char const *s = 0 ? (char *) 0 : (char const *) 0;
27235 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27236 int x[] = {25, 17};
27237 const int *foo = &x[0];
27240 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27241 typedef const int *iptr;
27245 { /* AIX XL C 1.02.0.0 rejects this saying
27246 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27247 struct s { int j; const int *ap[3]; };
27248 struct s *b; b->j = 5;
27250 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27251 const int foo = 10;
27252 if (!foo) return 0;
27254 return !cs[0] && !zero.x;
27261 if ac_fn_c_try_compile "$LINENO"; then :
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27269 $as_echo "$ac_cv_c_const" >&6; }
27270 if test $ac_cv_c_const = no; then
27272 $as_echo "#define const /**/" >>confdefs.h
27277 # The cast to long int works around a bug in the HP C Compiler
27278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27280 # This bug is HP SR number 8606223364.
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27282 $as_echo_n "checking size of char... " >&6; }
27283 if ${ac_cv_sizeof_char+:} false; then :
27284 $as_echo_n "(cached) " >&6
27286 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27289 if test "$ac_cv_type_char" = yes; then
27290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27292 as_fn_error 77 "cannot compute sizeof (char)
27293 See \`config.log' for more details" "$LINENO" 5; }
27295 ac_cv_sizeof_char=0
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27301 $as_echo "$ac_cv_sizeof_char" >&6; }
27305 cat >>confdefs.h <<_ACEOF
27306 #define SIZEOF_CHAR $ac_cv_sizeof_char
27310 # The cast to long int works around a bug in the HP C Compiler
27311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27313 # This bug is HP SR number 8606223364.
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27315 $as_echo_n "checking size of short int... " >&6; }
27316 if ${ac_cv_sizeof_short_int+:} false; then :
27317 $as_echo_n "(cached) " >&6
27319 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27322 if test "$ac_cv_type_short_int" = yes; then
27323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27325 as_fn_error 77 "cannot compute sizeof (short int)
27326 See \`config.log' for more details" "$LINENO" 5; }
27328 ac_cv_sizeof_short_int=0
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27334 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27338 cat >>confdefs.h <<_ACEOF
27339 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27343 # The cast to long int works around a bug in the HP C Compiler
27344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27346 # This bug is HP SR number 8606223364.
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27348 $as_echo_n "checking size of int... " >&6; }
27349 if ${ac_cv_sizeof_int+:} false; then :
27350 $as_echo_n "(cached) " >&6
27352 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27355 if test "$ac_cv_type_int" = yes; then
27356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27358 as_fn_error 77 "cannot compute sizeof (int)
27359 See \`config.log' for more details" "$LINENO" 5; }
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27367 $as_echo "$ac_cv_sizeof_int" >&6; }
27371 cat >>confdefs.h <<_ACEOF
27372 #define SIZEOF_INT $ac_cv_sizeof_int
27376 # The cast to long int works around a bug in the HP C Compiler
27377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27379 # This bug is HP SR number 8606223364.
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27381 $as_echo_n "checking size of long int... " >&6; }
27382 if ${ac_cv_sizeof_long_int+:} false; then :
27383 $as_echo_n "(cached) " >&6
27385 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27388 if test "$ac_cv_type_long_int" = yes; then
27389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27391 as_fn_error 77 "cannot compute sizeof (long int)
27392 See \`config.log' for more details" "$LINENO" 5; }
27394 ac_cv_sizeof_long_int=0
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27400 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27404 cat >>confdefs.h <<_ACEOF
27405 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27409 # The cast to long int works around a bug in the HP C Compiler
27410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27412 # This bug is HP SR number 8606223364.
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27414 $as_echo_n "checking size of long long int... " >&6; }
27415 if ${ac_cv_sizeof_long_long_int+:} false; then :
27416 $as_echo_n "(cached) " >&6
27418 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27421 if test "$ac_cv_type_long_long_int" = yes; then
27422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27424 as_fn_error 77 "cannot compute sizeof (long long int)
27425 See \`config.log' for more details" "$LINENO" 5; }
27427 ac_cv_sizeof_long_long_int=0
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27433 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27437 cat >>confdefs.h <<_ACEOF
27438 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27442 # The cast to long int works around a bug in the HP C Compiler
27443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27445 # This bug is HP SR number 8606223364.
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27447 $as_echo_n "checking size of int *... " >&6; }
27448 if ${ac_cv_sizeof_int_p+:} false; then :
27449 $as_echo_n "(cached) " >&6
27451 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27454 if test "$ac_cv_type_int_p" = yes; then
27455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27457 as_fn_error 77 "cannot compute sizeof (int *)
27458 See \`config.log' for more details" "$LINENO" 5; }
27460 ac_cv_sizeof_int_p=0
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27466 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27470 cat >>confdefs.h <<_ACEOF
27471 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27477 $as_echo_n "checking for u_int type... " >&6; }
27478 if ${ac_cv_have_u_int+:} false; then :
27479 $as_echo_n "(cached) " >&6
27482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483 /* end confdefs.h. */
27485 #include <sys/types.h>
27497 if ac_fn_c_try_compile "$LINENO"; then :
27499 ac_cv_have_u_int="yes"
27503 ac_cv_have_u_int="no"
27507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27512 $as_echo "$ac_cv_have_u_int" >&6; }
27513 if test "x$ac_cv_have_u_int" = "xyes" ; then
27514 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27520 $as_echo_n "checking for intmax_t type... " >&6; }
27521 if ${ac_cv_have_intmax_t+:} false; then :
27522 $as_echo_n "(cached) " >&6
27525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27526 /* end confdefs.h. */
27528 #include <sys/types.h>
27540 if ac_fn_c_try_compile "$LINENO"; then :
27542 ac_cv_have_intmax_t="yes"
27546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27547 /* end confdefs.h. */
27549 #include <stdint.h>
27561 if ac_fn_c_try_compile "$LINENO"; then :
27563 ac_cv_have_intmax_t="yes"
27567 ac_cv_have_intmax_t="no"
27571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27580 $as_echo "$ac_cv_have_intmax_t" >&6; }
27581 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27582 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27588 $as_echo_n "checking for u_intmax_t type... " >&6; }
27589 if ${ac_cv_have_u_intmax_t+:} false; then :
27590 $as_echo_n "(cached) " >&6
27593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27594 /* end confdefs.h. */
27596 #include <sys/types.h>
27602 u_intmax_t a; a = 1;
27608 if ac_fn_c_try_compile "$LINENO"; then :
27610 ac_cv_have_u_intmax_t="yes"
27614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27615 /* end confdefs.h. */
27617 #include <stdint.h>
27623 u_intmax_t a; a = 1;
27629 if ac_fn_c_try_compile "$LINENO"; then :
27631 ac_cv_have_u_intmax_t="yes"
27635 ac_cv_have_u_intmax_t="no"
27639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27648 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27649 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27650 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27656 $as_echo_n "checking for intXX_t types... " >&6; }
27657 if ${ac_cv_have_intxx_t+:} false; then :
27658 $as_echo_n "(cached) " >&6
27661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27662 /* end confdefs.h. */
27664 #include <sys/types.h>
27670 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27676 if ac_fn_c_try_compile "$LINENO"; then :
27678 ac_cv_have_intxx_t="yes"
27682 ac_cv_have_intxx_t="no"
27686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27691 $as_echo "$ac_cv_have_intxx_t" >&6; }
27692 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27693 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27699 $as_echo_n "checking for int64_t type... " >&6; }
27700 if ${ac_cv_have_int64_t+:} false; then :
27701 $as_echo_n "(cached) " >&6
27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h. */
27707 #include <sys/types.h>
27719 if ac_fn_c_try_compile "$LINENO"; then :
27721 ac_cv_have_int64_t="yes"
27725 ac_cv_have_int64_t="no"
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27734 $as_echo "$ac_cv_have_int64_t" >&6; }
27735 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27736 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27742 $as_echo_n "checking for u_intXX_t types... " >&6; }
27743 if ${ac_cv_have_u_intxx_t+:} false; then :
27744 $as_echo_n "(cached) " >&6
27747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h. */
27750 #include <sys/types.h>
27756 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27762 if ac_fn_c_try_compile "$LINENO"; then :
27764 ac_cv_have_u_intxx_t="yes"
27768 ac_cv_have_u_intxx_t="no"
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27777 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27778 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27779 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27785 $as_echo_n "checking for u_int64_t types... " >&6; }
27786 if ${ac_cv_have_u_int64_t+:} false; then :
27787 $as_echo_n "(cached) " >&6
27790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791 /* end confdefs.h. */
27793 #include <sys/types.h>
27799 u_int64_t a; a = 1;
27805 if ac_fn_c_try_compile "$LINENO"; then :
27807 ac_cv_have_u_int64_t="yes"
27811 ac_cv_have_u_int64_t="no"
27815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27820 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27821 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27822 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27827 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27828 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27831 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27833 /* end confdefs.h. */
27835 #include <sys/bitypes.h>
27841 int8_t a; int16_t b; int32_t c;
27842 u_int8_t e; u_int16_t f; u_int32_t g;
27843 a = b = c = e = f = g = 1;
27849 if ac_fn_c_try_compile "$LINENO"; then :
27851 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27853 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27855 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27858 $as_echo "yes" >&6; }
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27863 $as_echo "no" >&6; }
27867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27870 if test -z "$have_u_intxx_t" ; then
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27872 $as_echo_n "checking for uintXX_t types... " >&6; }
27873 if ${ac_cv_have_uintxx_t+:} false; then :
27874 $as_echo_n "(cached) " >&6
27877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27878 /* end confdefs.h. */
27880 #include <sys/types.h>
27886 uint8_t a; uint16_t b;
27887 uint32_t c; a = b = c = 1;
27893 if ac_fn_c_try_compile "$LINENO"; then :
27895 ac_cv_have_uintxx_t="yes"
27899 ac_cv_have_uintxx_t="no"
27903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27908 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27909 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27910 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27915 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27916 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27919 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27921 /* end confdefs.h. */
27923 #include <sys/bitypes.h>
27929 int64_t a; u_int64_t b;
27936 if ac_fn_c_try_compile "$LINENO"; then :
27938 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27940 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27943 $as_echo "yes" >&6; }
27947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27948 $as_echo "no" >&6; }
27952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27955 if (test -z "$have_uintxx_t" && \
27956 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27959 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27961 /* end confdefs.h. */
27963 #include <sys/bitypes.h>
27969 uint8_t a; uint16_t b;
27970 uint32_t c; a = b = c = 1;
27976 if ac_fn_c_try_compile "$LINENO"; then :
27978 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27981 $as_echo "yes" >&6; }
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27986 $as_echo "no" >&6; }
27990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28010 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28011 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28012 cat >>confdefs.h <<_ACEOF
28013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28017 echo 'configure: cannot find needed function.'; exit 1
28023 for ac_func in getpagesize
28025 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28026 if test "x$ac_cv_func_getpagesize" = xyes; then :
28027 cat >>confdefs.h <<_ACEOF
28028 #define HAVE_GETPAGESIZE 1
28031 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28036 for ac_func in malloc_trim
28038 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28039 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28040 cat >>confdefs.h <<_ACEOF
28041 #define HAVE_MALLOC_TRIM 1
28044 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28050 for ac_func in fchdir
28052 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28053 if test "x$ac_cv_func_fchdir" = xyes; then :
28054 cat >>confdefs.h <<_ACEOF
28055 #define HAVE_FCHDIR 1
28057 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28062 for ac_func in strtoll
28064 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28065 if test "x$ac_cv_func_strtoll" = xyes; then :
28066 cat >>confdefs.h <<_ACEOF
28067 #define HAVE_STRTOLL 1
28069 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28074 for ac_func in posix_fadvise
28076 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28077 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28078 cat >>confdefs.h <<_ACEOF
28079 #define HAVE_POSIX_FADVISE 1
28085 for ac_func in fdatasync
28087 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28088 if test "x$ac_cv_func_fdatasync" = xyes; then :
28089 cat >>confdefs.h <<_ACEOF
28090 #define HAVE_FDATASYNC 1
28097 for ac_func in chflags
28099 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28100 if test "x$ac_cv_func_chflags" = xyes; then :
28101 cat >>confdefs.h <<_ACEOF
28102 #define HAVE_CHFLAGS 1
28109 for ac_func in snprintf vsnprintf gethostid fseeko
28111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28114 cat >>confdefs.h <<_ACEOF
28115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28123 $as_echo_n "checking for va_copy... " >&6; }
28124 if ${ba_cv_va_copy+:} false; then :
28125 $as_echo_n "(cached) " >&6
28128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28129 /* end confdefs.h. */
28131 #include <stdarg.h>
28132 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28133 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28139 call_use_va_copy(1,2,3)
28145 if ac_fn_c_try_link "$LINENO"; then :
28155 rm -f core conftest.err conftest.$ac_objext \
28156 conftest$ac_exeext conftest.$ac_ext
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28161 $as_echo "$ba_cv_va_copy" >&6; }
28162 test $ba_cv_va_copy = yes &&
28163 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28166 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28170 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28171 cat >>confdefs.h <<_ACEOF
28172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28179 # If resolver functions are not in libc check for -lnsl or -lresolv.
28180 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28181 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28183 $as_echo "using libc's resolver" >&6; }
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28186 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28187 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28188 $as_echo_n "(cached) " >&6
28190 ac_check_lib_save_LIBS=$LIBS
28192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28193 /* end confdefs.h. */
28195 /* Override any GCC internal prototype to avoid an error.
28196 Use char because int might match the return type of a GCC
28197 builtin and then its argument prototype would still apply. */
28201 char gethostbyname_r ();
28205 return gethostbyname_r ();
28210 if ac_fn_c_try_link "$LINENO"; then :
28211 ac_cv_lib_nsl_gethostbyname_r=yes
28213 ac_cv_lib_nsl_gethostbyname_r=no
28215 rm -f core conftest.err conftest.$ac_objext \
28216 conftest$ac_exeext conftest.$ac_ext
28217 LIBS=$ac_check_lib_save_LIBS
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28220 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28221 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28222 cat >>confdefs.h <<_ACEOF
28223 #define HAVE_LIBNSL 1
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28231 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28232 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28233 $as_echo_n "(cached) " >&6
28235 ac_check_lib_save_LIBS=$LIBS
28236 LIBS="-lresolv $LIBS"
28237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28238 /* end confdefs.h. */
28240 /* Override any GCC internal prototype to avoid an error.
28241 Use char because int might match the return type of a GCC
28242 builtin and then its argument prototype would still apply. */
28246 char gethostbyname_r ();
28250 return gethostbyname_r ();
28255 if ac_fn_c_try_link "$LINENO"; then :
28256 ac_cv_lib_resolv_gethostbyname_r=yes
28258 ac_cv_lib_resolv_gethostbyname_r=no
28260 rm -f core conftest.err conftest.$ac_objext \
28261 conftest$ac_exeext conftest.$ac_ext
28262 LIBS=$ac_check_lib_save_LIBS
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28265 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28266 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28267 cat >>confdefs.h <<_ACEOF
28268 #define HAVE_LIBRESOLV 1
28271 LIBS="-lresolv $LIBS"
28278 for ac_func in inet_pton
28280 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28281 if test "x$ac_cv_func_inet_pton" = xyes; then :
28282 cat >>confdefs.h <<_ACEOF
28283 #define HAVE_INET_PTON 1
28285 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28290 for ac_func in inet_ntop
28292 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28293 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28294 cat >>confdefs.h <<_ACEOF
28295 #define HAVE_INET_NTOP 1
28297 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28302 for ac_func in gethostbyname2
28304 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28305 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28306 cat >>confdefs.h <<_ACEOF
28307 #define HAVE_GETHOSTBYNAME2 1
28309 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28316 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28317 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28318 $as_echo_n "(cached) " >&6
28321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28322 /* end confdefs.h. */
28324 #include <sys/socket.h>
28330 struct sockaddr s; s.sa_len;
28336 if ac_fn_c_try_compile "$LINENO"; then :
28338 ac_cv_struct_sockaddr_sa_len=yes
28341 ac_cv_struct_sockaddr_sa_len=no
28345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28350 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28352 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28354 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28358 for ac_func in strftime
28360 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28361 if test "x$ac_cv_func_strftime" = xyes; then :
28362 cat >>confdefs.h <<_ACEOF
28363 #define HAVE_STRFTIME 1
28367 # strftime is in -lintl on SCO UNIX.
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28369 $as_echo_n "checking for strftime in -lintl... " >&6; }
28370 if ${ac_cv_lib_intl_strftime+:} false; then :
28371 $as_echo_n "(cached) " >&6
28373 ac_check_lib_save_LIBS=$LIBS
28374 LIBS="-lintl $LIBS"
28375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28376 /* end confdefs.h. */
28378 /* Override any GCC internal prototype to avoid an error.
28379 Use char because int might match the return type of a GCC
28380 builtin and then its argument prototype would still apply. */
28388 return strftime ();
28393 if ac_fn_c_try_link "$LINENO"; then :
28394 ac_cv_lib_intl_strftime=yes
28396 ac_cv_lib_intl_strftime=no
28398 rm -f core conftest.err conftest.$ac_objext \
28399 conftest$ac_exeext conftest.$ac_ext
28400 LIBS=$ac_check_lib_save_LIBS
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28403 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28404 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28405 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28407 LIBS="-lintl $LIBS"
28413 for ac_func in vprintf
28415 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28416 if test "x$ac_cv_func_vprintf" = xyes; then :
28417 cat >>confdefs.h <<_ACEOF
28418 #define HAVE_VPRINTF 1
28421 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28422 if test "x$ac_cv_func__doprnt" = xyes; then :
28424 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28432 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28433 # for constant arguments. Useless!
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28435 $as_echo_n "checking for working alloca.h... " >&6; }
28436 if ${ac_cv_working_alloca_h+:} false; then :
28437 $as_echo_n "(cached) " >&6
28439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440 /* end confdefs.h. */
28441 #include <alloca.h>
28445 char *p = (char *) alloca (2 * sizeof (int));
28451 if ac_fn_c_try_link "$LINENO"; then :
28452 ac_cv_working_alloca_h=yes
28454 ac_cv_working_alloca_h=no
28456 rm -f core conftest.err conftest.$ac_objext \
28457 conftest$ac_exeext conftest.$ac_ext
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28460 $as_echo "$ac_cv_working_alloca_h" >&6; }
28461 if test $ac_cv_working_alloca_h = yes; then
28463 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28468 $as_echo_n "checking for alloca... " >&6; }
28469 if ${ac_cv_func_alloca_works+:} false; then :
28470 $as_echo_n "(cached) " >&6
28472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28473 /* end confdefs.h. */
28475 # define alloca __builtin_alloca
28478 # include <malloc.h>
28479 # define alloca _alloca
28481 # ifdef HAVE_ALLOCA_H
28482 # include <alloca.h>
28487 # ifndef alloca /* predefined by HP cc +Olibcalls */
28488 void *alloca (size_t);
28498 char *p = (char *) alloca (1);
28504 if ac_fn_c_try_link "$LINENO"; then :
28505 ac_cv_func_alloca_works=yes
28507 ac_cv_func_alloca_works=no
28509 rm -f core conftest.err conftest.$ac_objext \
28510 conftest$ac_exeext conftest.$ac_ext
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28513 $as_echo "$ac_cv_func_alloca_works" >&6; }
28515 if test $ac_cv_func_alloca_works = yes; then
28517 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28520 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28521 # that cause trouble. Some versions do not even contain alloca or
28522 # contain a buggy version. If you still want to use their alloca,
28523 # use ar to extract alloca.o from them instead of compiling alloca.c.
28525 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28527 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28531 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28532 if ${ac_cv_os_cray+:} false; then :
28533 $as_echo_n "(cached) " >&6
28535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28536 /* end confdefs.h. */
28537 #if defined CRAY && ! defined CRAY2
28544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28545 $EGREP "webecray" >/dev/null 2>&1; then :
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28554 $as_echo "$ac_cv_os_cray" >&6; }
28555 if test $ac_cv_os_cray = yes; then
28556 for ac_func in _getb67 GETB67 getb67; do
28557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28561 cat >>confdefs.h <<_ACEOF
28562 #define CRAY_STACKSEG_END $ac_func
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28572 $as_echo_n "checking stack direction for C alloca... " >&6; }
28573 if ${ac_cv_c_stack_direction+:} false; then :
28574 $as_echo_n "(cached) " >&6
28576 if test "$cross_compiling" = yes; then :
28577 ac_cv_c_stack_direction=0
28579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h. */
28581 $ac_includes_default
28583 find_stack_direction ()
28585 static char *addr = 0;
28590 return find_stack_direction ();
28593 return (&dummy > addr) ? 1 : -1;
28599 return find_stack_direction () < 0;
28602 if ac_fn_c_try_run "$LINENO"; then :
28603 ac_cv_c_stack_direction=1
28605 ac_cv_c_stack_direction=-1
28607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28608 conftest.$ac_objext conftest.beam conftest.$ac_ext
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28613 $as_echo "$ac_cv_c_stack_direction" >&6; }
28614 cat >>confdefs.h <<_ACEOF
28615 #define STACK_DIRECTION $ac_cv_c_stack_direction
28621 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28622 # -lseq on Dynix/PTX, -lgen on Unixware.
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28624 $as_echo_n "checking for library containing getmntent... " >&6; }
28625 if ${ac_cv_search_getmntent+:} false; then :
28626 $as_echo_n "(cached) " >&6
28628 ac_func_search_save_LIBS=$LIBS
28629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28630 /* end confdefs.h. */
28632 /* Override any GCC internal prototype to avoid an error.
28633 Use char because int might match the return type of a GCC
28634 builtin and then its argument prototype would still apply. */
28642 return getmntent ();
28647 for ac_lib in '' sun seq gen; do
28648 if test -z "$ac_lib"; then
28649 ac_res="none required"
28652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28654 if ac_fn_c_try_link "$LINENO"; then :
28655 ac_cv_search_getmntent=$ac_res
28657 rm -f core conftest.err conftest.$ac_objext \
28659 if ${ac_cv_search_getmntent+:} false; then :
28663 if ${ac_cv_search_getmntent+:} false; then :
28666 ac_cv_search_getmntent=no
28668 rm conftest.$ac_ext
28669 LIBS=$ac_func_search_save_LIBS
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28672 $as_echo "$ac_cv_search_getmntent" >&6; }
28673 ac_res=$ac_cv_search_getmntent
28674 if test "$ac_res" != no; then :
28675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28676 ac_cv_func_getmntent=yes
28678 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28681 ac_cv_func_getmntent=no
28685 for ac_func in getmntinfo
28687 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28688 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28689 cat >>confdefs.h <<_ACEOF
28690 #define HAVE_GETMNTINFO 1
28692 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28698 $as_echo_n "checking whether closedir returns void... " >&6; }
28699 if ${ac_cv_func_closedir_void+:} false; then :
28700 $as_echo_n "(cached) " >&6
28702 if test "$cross_compiling" = yes; then :
28703 ac_cv_func_closedir_void=yes
28705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28706 /* end confdefs.h. */
28707 $ac_includes_default
28708 #include <$ac_header_dirent>
28709 #ifndef __cplusplus
28716 return closedir (opendir (".")) != 0;
28721 if ac_fn_c_try_run "$LINENO"; then :
28722 ac_cv_func_closedir_void=no
28724 ac_cv_func_closedir_void=yes
28726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28727 conftest.$ac_objext conftest.beam conftest.$ac_ext
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28732 $as_echo "$ac_cv_func_closedir_void" >&6; }
28733 if test $ac_cv_func_closedir_void = yes; then
28735 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28740 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28741 if ${ac_cv_func_setpgrp_void+:} false; then :
28742 $as_echo_n "(cached) " >&6
28744 if test "$cross_compiling" = yes; then :
28745 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28748 /* end confdefs.h. */
28749 $ac_includes_default
28753 /* If this system has a BSD-style setpgrp which takes arguments,
28754 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28755 exit successfully. */
28756 return setpgrp (1,1) != -1;
28761 if ac_fn_c_try_run "$LINENO"; then :
28762 ac_cv_func_setpgrp_void=no
28764 ac_cv_func_setpgrp_void=yes
28766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28767 conftest.$ac_objext conftest.beam conftest.$ac_ext
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28772 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28773 if test $ac_cv_func_setpgrp_void = yes; then
28775 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28778 # AC_FUNC_FNMATCH dnl use local version
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28781 $as_echo_n "checking for gettext in -lintl... " >&6; }
28782 if ${ac_cv_lib_intl_gettext+:} false; then :
28783 $as_echo_n "(cached) " >&6
28785 ac_check_lib_save_LIBS=$LIBS
28786 LIBS="-lintl $LIBS"
28787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28788 /* end confdefs.h. */
28790 /* Override any GCC internal prototype to avoid an error.
28791 Use char because int might match the return type of a GCC
28792 builtin and then its argument prototype would still apply. */
28805 if ac_fn_c_try_link "$LINENO"; then :
28806 ac_cv_lib_intl_gettext=yes
28808 ac_cv_lib_intl_gettext=no
28810 rm -f core conftest.err conftest.$ac_objext \
28811 conftest$ac_exeext conftest.$ac_ext
28812 LIBS=$ac_check_lib_save_LIBS
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28815 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28816 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28817 LIBS="$LIBS -lintl"
28821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28822 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28823 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28824 $as_echo_n "(cached) " >&6
28826 ac_check_lib_save_LIBS=$LIBS
28828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28829 /* end confdefs.h. */
28831 /* Override any GCC internal prototype to avoid an error.
28832 Use char because int might match the return type of a GCC
28833 builtin and then its argument prototype would still apply. */
28841 return getpwnam ();
28846 if ac_fn_c_try_link "$LINENO"; then :
28847 ac_cv_lib_sun_getpwnam=yes
28849 ac_cv_lib_sun_getpwnam=no
28851 rm -f core conftest.err conftest.$ac_objext \
28852 conftest$ac_exeext conftest.$ac_ext
28853 LIBS=$ac_check_lib_save_LIBS
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28856 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28857 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28858 cat >>confdefs.h <<_ACEOF
28859 #define HAVE_LIBSUN 1
28867 for ac_header in zlib.h
28869 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28870 if test "x$ac_cv_header_zlib_h" = xyes; then :
28871 cat >>confdefs.h <<_ACEOF
28872 #define HAVE_ZLIB_H 1
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28880 $as_echo_n "checking for deflate in -lz... " >&6; }
28881 if ${ac_cv_lib_z_deflate+:} false; then :
28882 $as_echo_n "(cached) " >&6
28884 ac_check_lib_save_LIBS=$LIBS
28886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28887 /* end confdefs.h. */
28889 /* Override any GCC internal prototype to avoid an error.
28890 Use char because int might match the return type of a GCC
28891 builtin and then its argument prototype would still apply. */
28904 if ac_fn_c_try_link "$LINENO"; then :
28905 ac_cv_lib_z_deflate=yes
28907 ac_cv_lib_z_deflate=no
28909 rm -f core conftest.err conftest.$ac_objext \
28910 conftest$ac_exeext conftest.$ac_ext
28911 LIBS=$ac_check_lib_save_LIBS
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28914 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28915 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28920 if test x$ZLIBS = x-lz; then
28921 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28927 for ac_header in lzo/lzoconf.h
28929 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28930 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
28931 cat >>confdefs.h <<_ACEOF
28932 #define HAVE_LZO_LZOCONF_H 1
28939 for ac_header in lzo/lzo1x.h
28941 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28942 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
28943 cat >>confdefs.h <<_ACEOF
28944 #define HAVE_LZO_LZO1X_H 1
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28952 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28953 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
28954 $as_echo_n "(cached) " >&6
28956 ac_check_lib_save_LIBS=$LIBS
28957 LIBS="-llzo2 $LIBS"
28958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959 /* end confdefs.h. */
28961 /* Override any GCC internal prototype to avoid an error.
28962 Use char because int might match the return type of a GCC
28963 builtin and then its argument prototype would still apply. */
28967 char lzo1x_1_compress ();
28971 return lzo1x_1_compress ();
28976 if ac_fn_c_try_link "$LINENO"; then :
28977 ac_cv_lib_lzo2_lzo1x_1_compress=yes
28979 ac_cv_lib_lzo2_lzo1x_1_compress=no
28981 rm -f core conftest.err conftest.$ac_objext \
28982 conftest$ac_exeext conftest.$ac_ext
28983 LIBS=$ac_check_lib_save_LIBS
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28986 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28987 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
28992 if test x$LZOLIBS = x-llzo2; then
28993 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29000 # Check whether --enable-acl was given.
29001 if test "${enable_acl+set}" = set; then :
29002 enableval=$enable_acl;
29003 if test x$enableval = xyes; then
29005 elif test x$enableval = xno; then
29014 have_extended_acl=no
29015 if test x$support_acl = xyes -o x$support_acl = xauto; then
29016 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29017 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29019 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29025 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29026 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29034 if test $have_acl = no; then
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29036 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29037 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29038 $as_echo_n "(cached) " >&6
29040 ac_check_lib_save_LIBS=$LIBS
29042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29043 /* end confdefs.h. */
29045 /* Override any GCC internal prototype to avoid an error.
29046 Use char because int might match the return type of a GCC
29047 builtin and then its argument prototype would still apply. */
29051 char acl_get_file ();
29055 return acl_get_file ();
29060 if ac_fn_c_try_link "$LINENO"; then :
29061 ac_cv_lib_acl_acl_get_file=yes
29063 ac_cv_lib_acl_acl_get_file=no
29065 rm -f core conftest.err conftest.$ac_objext \
29066 conftest$ac_exeext conftest.$ac_ext
29067 LIBS=$ac_check_lib_save_LIBS
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29070 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29071 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29074 FDLIBS="-lacl $FDLIBS"
29081 if test $have_acl = no -a \
29082 x${HAVE_OSF1_OS_TRUE} = x; then
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29084 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29085 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29086 $as_echo_n "(cached) " >&6
29088 ac_check_lib_save_LIBS=$LIBS
29089 LIBS="-lpacl $LIBS"
29090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h. */
29093 /* Override any GCC internal prototype to avoid an error.
29094 Use char because int might match the return type of a GCC
29095 builtin and then its argument prototype would still apply. */
29099 char acl_get_file ();
29103 return acl_get_file ();
29108 if ac_fn_c_try_link "$LINENO"; then :
29109 ac_cv_lib_pacl_acl_get_file=yes
29111 ac_cv_lib_pacl_acl_get_file=no
29113 rm -f core conftest.err conftest.$ac_objext \
29114 conftest$ac_exeext conftest.$ac_ext
29115 LIBS=$ac_check_lib_save_LIBS
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29118 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29119 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29122 FDLIBS="-lpacl $FDLIBS"
29128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29129 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29130 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29131 if test $? = 0; then
29133 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29136 $as_echo "yes" >&6; }
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29139 $as_echo "no" >&6; }
29143 if test $have_acl = yes -a \
29144 x${HAVE_DARWIN_OS_TRUE} = x; then
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29146 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29147 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29148 if test $? = 0; then
29150 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29153 $as_echo "yes" >&6; }
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29156 $as_echo "no" >&6; }
29160 if test $have_acl = yes -a \
29161 x${HAVE_FREEBSD_OS_TRUE} = x; then
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29163 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29164 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29165 if test $? = 0; then
29167 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29170 $as_echo "yes" >&6; }
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29173 $as_echo "no" >&6; }
29177 if test $have_acl = no -a \
29178 x${HAVE_SUN_OS_TRUE} = x; then
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29180 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29181 if ${ac_cv_lib_sec_acltotext+:} false; then :
29182 $as_echo_n "(cached) " >&6
29184 ac_check_lib_save_LIBS=$LIBS
29186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29187 /* end confdefs.h. */
29189 /* Override any GCC internal prototype to avoid an error.
29190 Use char because int might match the return type of a GCC
29191 builtin and then its argument prototype would still apply. */
29199 return acltotext ();
29204 if ac_fn_c_try_link "$LINENO"; then :
29205 ac_cv_lib_sec_acltotext=yes
29207 ac_cv_lib_sec_acltotext=no
29209 rm -f core conftest.err conftest.$ac_objext \
29210 conftest$ac_exeext conftest.$ac_ext
29211 LIBS=$ac_check_lib_save_LIBS
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29214 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29215 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29218 FDLIBS="-lsec $FDLIBS"
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29221 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29222 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29223 $as_echo_n "(cached) " >&6
29225 ac_check_lib_save_LIBS=$LIBS
29227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29228 /* end confdefs.h. */
29230 /* Override any GCC internal prototype to avoid an error.
29231 Use char because int might match the return type of a GCC
29232 builtin and then its argument prototype would still apply. */
29236 char acl_totext ();
29240 return acl_totext ();
29245 if ac_fn_c_try_link "$LINENO"; then :
29246 ac_cv_lib_sec_acl_totext=yes
29248 ac_cv_lib_sec_acl_totext=no
29250 rm -f core conftest.err conftest.$ac_objext \
29251 conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29255 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29256 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29258 have_extended_acl=yes
29269 if test $have_acl = no -a \
29270 x${HAVE_AIX_OS_TRUE} = x; then
29271 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29272 if test "x$ac_cv_func_acl_get" = xyes; then :
29276 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29277 if test "x$ac_cv_func_aclx_get" = xyes; then :
29279 have_extended_acl=yes
29290 if test x$support_acl = xyes -a $have_acl != yes; then
29291 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29292 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29294 if test $have_acl = yes; then
29296 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29300 if test $have_extended_acl = yes; then
29302 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29309 # Check whether --enable-xattr was given.
29310 if test "${enable_xattr+set}" = set; then :
29311 enableval=$enable_xattr;
29312 if test x$enableval = xyes; then
29314 elif test x$enableval = xno; then
29323 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29324 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29325 x${HAVE_NETBSD_OS_TRUE} = x -o \
29326 x${HAVE_OPENBSD_OS_TRUE} = x; then
29327 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29328 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29330 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29335 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29336 if test "x$ac_cv_header_libutil_h" = xyes; then :
29338 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29343 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29347 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29348 cat >>confdefs.h <<_ACEOF
29349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29354 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29357 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29360 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29368 if test $have_xattr = no; then
29369 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29373 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29374 cat >>confdefs.h <<_ACEOF
29375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29380 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29383 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29386 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29395 if test $have_xattr = yes; then
29396 have_extattr_string_in_libc=no
29397 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29402 cat >>confdefs.h <<_ACEOF
29403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29406 have_extattr_string_in_libc=yes
29408 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29411 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29419 if test $have_extattr_string_in_libc = no; then
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29421 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29422 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29423 $as_echo_n "(cached) " >&6
29425 ac_check_lib_save_LIBS=$LIBS
29426 LIBS="-lutil $LIBS"
29427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29428 /* end confdefs.h. */
29430 /* Override any GCC internal prototype to avoid an error.
29431 Use char because int might match the return type of a GCC
29432 builtin and then its argument prototype would still apply. */
29436 char extattr_namespace_to_string extattr_string_to_namespace ();
29440 return extattr_namespace_to_string extattr_string_to_namespace ();
29445 if ac_fn_c_try_link "$LINENO"; then :
29446 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29448 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29450 rm -f core conftest.err conftest.$ac_objext \
29451 conftest$ac_exeext conftest.$ac_ext
29452 LIBS=$ac_check_lib_save_LIBS
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29455 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29456 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29459 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29462 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29464 FDLIBS="-lutil $FDLIBS"
29473 if test $have_xattr = no -a \
29474 x${HAVE_AIX_OS_TRUE} = x; then
29475 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29476 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29478 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29483 for ac_func in llistea lgetea lsetea
29485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29488 cat >>confdefs.h <<_ACEOF
29489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29494 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29497 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29500 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29508 if test $have_xattr = no; then
29509 for ac_func in listea getea setea
29511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29513 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29514 cat >>confdefs.h <<_ACEOF
29515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29520 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29523 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29526 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29536 if test $have_xattr = no -a \
29537 x${HAVE_OSF1_OS_TRUE} = x; then
29538 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29539 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29541 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29546 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29551 cat >>confdefs.h <<_ACEOF
29552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29557 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29560 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29563 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29566 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29569 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29578 if test $have_xattr = no -a \
29579 x${HAVE_SUN_OS_TRUE} = x; then
29580 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29581 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29583 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29588 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29589 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29591 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29596 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29597 if test "x$ac_cv_header_attr_h" = xyes; then :
29599 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29605 for ac_func in openat fstatat unlinkat fchownat futimesat
29607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29610 cat >>confdefs.h <<_ACEOF
29611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29616 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29619 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29622 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29625 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29628 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29636 if test $have_xattr = yes; then
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29638 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29639 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29640 $as_echo_n "(cached) " >&6
29642 ac_check_lib_save_LIBS=$LIBS
29643 LIBS="-lnvpair $LIBS"
29644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29645 /* end confdefs.h. */
29647 /* Override any GCC internal prototype to avoid an error.
29648 Use char because int might match the return type of a GCC
29649 builtin and then its argument prototype would still apply. */
29653 char nvlist_next_nvpair ();
29657 return nvlist_next_nvpair ();
29662 if ac_fn_c_try_link "$LINENO"; then :
29663 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29665 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29667 rm -f core conftest.err conftest.$ac_objext \
29668 conftest$ac_exeext conftest.$ac_ext
29669 LIBS=$ac_check_lib_save_LIBS
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29672 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29673 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29676 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29678 FDLIBS="-lnvpair $FDLIBS"
29686 if test $have_xattr = no; then
29687 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29688 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
29690 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29695 for ac_func in llistxattr lgetxattr lsetxattr
29697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29700 cat >>confdefs.h <<_ACEOF
29701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29706 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29709 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29712 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29720 if test $have_xattr = no; then
29721 for ac_func in listxattr getxattr setxattr
29723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29725 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29726 cat >>confdefs.h <<_ACEOF
29727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29732 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29735 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29738 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29748 if test x$support_xattr = xyes -a $have_xattr != yes; then
29749 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29750 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29752 if test $have_xattr = yes; then
29754 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29762 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29763 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29764 $as_echo_n "(cached) " >&6
29766 ac_check_lib_save_LIBS=$LIBS
29767 LIBS="-lpthread $LIBS"
29768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29769 /* end confdefs.h. */
29771 /* Override any GCC internal prototype to avoid an error.
29772 Use char because int might match the return type of a GCC
29773 builtin and then its argument prototype would still apply. */
29777 char pthread_create ();
29781 return pthread_create ();
29786 if ac_fn_c_try_link "$LINENO"; then :
29787 ac_cv_lib_pthread_pthread_create=yes
29789 ac_cv_lib_pthread_pthread_create=no
29791 rm -f core conftest.err conftest.$ac_objext \
29792 conftest$ac_exeext conftest.$ac_ext
29793 LIBS=$ac_check_lib_save_LIBS
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29796 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29797 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29798 PTHREAD_LIB="-lpthread"
29801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29802 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29803 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29804 $as_echo_n "(cached) " >&6
29806 ac_check_lib_save_LIBS=$LIBS
29807 LIBS="-lpthreads $LIBS"
29808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29809 /* end confdefs.h. */
29811 /* Override any GCC internal prototype to avoid an error.
29812 Use char because int might match the return type of a GCC
29813 builtin and then its argument prototype would still apply. */
29817 char pthread_create ();
29821 return pthread_create ();
29826 if ac_fn_c_try_link "$LINENO"; then :
29827 ac_cv_lib_pthreads_pthread_create=yes
29829 ac_cv_lib_pthreads_pthread_create=no
29831 rm -f core conftest.err conftest.$ac_objext \
29832 conftest$ac_exeext conftest.$ac_ext
29833 LIBS=$ac_check_lib_save_LIBS
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29836 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29837 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29838 PTHREAD_LIB="-lpthreads"
29841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29842 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29843 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29844 $as_echo_n "(cached) " >&6
29846 ac_check_lib_save_LIBS=$LIBS
29848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h. */
29851 /* Override any GCC internal prototype to avoid an error.
29852 Use char because int might match the return type of a GCC
29853 builtin and then its argument prototype would still apply. */
29857 char pthread_create ();
29861 return pthread_create ();
29866 if ac_fn_c_try_link "$LINENO"; then :
29867 ac_cv_lib_c_r_pthread_create=yes
29869 ac_cv_lib_c_r_pthread_create=no
29871 rm -f core conftest.err conftest.$ac_objext \
29872 conftest$ac_exeext conftest.$ac_ext
29873 LIBS=$ac_check_lib_save_LIBS
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29876 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29877 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29878 PTHREAD_LIB="-lc_r"
29881 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29882 if test "x$ac_cv_func_pthread_create" = xyes; then :
29899 for ac_header in sys/prctl.h sys/capability.h
29901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29902 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29903 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29904 cat >>confdefs.h <<_ACEOF
29905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29912 for ac_func in prctl setreuid
29914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29915 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29916 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29917 cat >>confdefs.h <<_ACEOF
29918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29925 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29926 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29927 $as_echo_n "(cached) " >&6
29929 ac_check_lib_save_LIBS=$LIBS
29931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29932 /* end confdefs.h. */
29934 /* Override any GCC internal prototype to avoid an error.
29935 Use char because int might match the return type of a GCC
29936 builtin and then its argument prototype would still apply. */
29940 char cap_set_proc ();
29944 return cap_set_proc ();
29949 if ac_fn_c_try_link "$LINENO"; then :
29950 ac_cv_lib_cap_cap_set_proc=yes
29952 ac_cv_lib_cap_cap_set_proc=no
29954 rm -f core conftest.err conftest.$ac_objext \
29955 conftest$ac_exeext conftest.$ac_ext
29956 LIBS=$ac_check_lib_save_LIBS
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29959 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29960 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29966 if test x$CAP_LIBS = x-lcap; then
29968 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29974 $as_echo "#define FDLIBS 1" >>confdefs.h
29977 CFLAGS=${CFLAGS--O}
29979 if test x$have_gcc = xyes ; then
29980 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29981 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29983 LDFLAGS=${LDFLAGS--O}
29984 CPPFLAGS="$CPPFLAGS"
30010 PFILES="platforms/Makefile"
30014 COMPRESS_MANPAGES=yes
30016 hostname=`uname -n | cut -d '.' -f 1`
30017 if test x${hostname} = x ; then
30018 hostname="localhost"
30020 ping -c 1 $hostname 2>/dev/null 1>/dev/null
30021 if test ! $? = 0; then
30022 hostname="localhost"
30025 case "$DISTNAME" in
30028 PSCMD="ps -e -o pid,comm"
30029 PFILES="${PFILES} \
30030 platforms/aix/Makefile"
30031 TAPEDRIVE="/dev/rmt0.1"
30035 PTHREAD_LIB="-lpthread -lexc"
30036 if test "${CC}" = "gcc" ; then
30043 TAPEDRIVE="/dev/nrmt0"
30046 DISTVER=`uname -a |awk '{print $3}'`
30047 TAPEDRIVE="/dev/nrmt0"
30048 PTHREAD_LIB="-pthread"
30049 CFLAGS="${CFLAGS} -pthread"
30050 PSCMD="ps -ax -o pid,command"
30053 PFILES="${PFILES} \
30054 platforms/bsdi/Makefile \
30055 platforms/bsdi/bacula-fd \
30056 platforms/bsdi/bacula-sd \
30057 platforms/bsdi/bacula-dir"
30058 largefile_support="yes"
30061 DISTVER=`uname -a |awk '{print $3}'`
30062 TAPEDRIVE="/dev/nrst0"
30064 WCFLAGS="-mwindows"
30065 WLDFLAGS="-mwindows"
30069 TAPEDRIVE="/dev/nst0"
30070 PSCMD="ps -e -o pid,command"
30072 PFILES="${PFILES} \
30073 platforms/darwin/Makefile"
30077 TAPEDRIVE="/dev/nst0"
30078 PSCMD="ps -e -o pid,command"
30080 PFILES="${PFILES} \
30081 platforms/osx/Makefile"
30084 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30087 DISTVER=`cat /etc/debian_version`
30088 if test -f /etc/lsb-release ; then
30090 if test "x$DISTRIB_ID" != "x" ; then
30091 DISTNAME=$DISTRIB_ID
30093 if test "x$DISTRIB_RELEASE" != "x" ; then
30094 DISTVER=$DISTRIB_RELEASE
30097 if test "$DISTNAME" = "Ubuntu" ; then
30100 TAPEDRIVE="/dev/nst0"
30101 PSCMD="ps -e -o pid,command"
30102 if test "$DISTNAME" = "ubuntu" ; then
30103 PFILES="${PFILES} \
30104 platforms/ubuntu/Makefile \
30105 platforms/ubuntu/bacula-fd \
30106 platforms/ubuntu/bacula-sd \
30107 platforms/ubuntu/bacula-dir"
30109 PFILES="${PFILES} \
30110 platforms/debian/Makefile \
30111 platforms/debian/bacula-fd \
30112 platforms/debian/bacula-sd \
30113 platforms/debian/bacula-dir"
30117 DISTVER=`uname -a |awk '{print $3}'`
30118 VER=`echo $DISTVER | cut -c 1`
30119 if test x$VER = x4 ; then
30120 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30121 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30125 TAPEDRIVE="/dev/nrsa0"
30126 PSCMD="ps -ax -o pid,command"
30127 PFILES="${PFILES} \
30128 platforms/freebsd/Makefile \
30129 platforms/freebsd/bacula-fd \
30130 platforms/freebsd/bacula-sd \
30131 platforms/freebsd/bacula-dir"
30132 largefile_support="yes"
30135 PSCMD="UNIX95=1; ps -e -o pid,comm"
30136 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30138 TAPEDRIVE="/dev/rmt/0hnb"
30139 PTHREAD_LIB="-lpthread"
30140 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30145 TAPEDRIVE="/dev/rmt/0cbn"
30146 PSCMD="ps -e -o pid,comm"
30147 PFILES="${PFILES} \
30148 platforms/irix/Makefile \
30149 platforms/irix/bacula-fd \
30150 platforms/irix/bacula-sd \
30151 platforms/irix/bacula-dir"
30154 DISTVER=`uname -a |awk '{print $3}'`
30157 TAPEDRIVE="/dev/nrst0"
30158 PSCMD="ps -ax -o pid,command"
30159 PTHREAD_LIB="-pthread"
30160 CFLAGS="${CFLAGS} -pthread"
30163 DISTVER=`uname -a |awk '{print $3}'`
30166 TAPEDRIVE="/dev/nrst0"
30167 PSCMD="ps -ax -o pid,command"
30168 PTHREAD_LIB="-pthread"
30169 CFLAGS="${CFLAGS} -pthread"
30170 PFILES="${PFILES} \
30171 platforms/openbsd/Makefile \
30172 platforms/openbsd/bacula-fd \
30173 platforms/openbsd/bacula-sd \
30174 platforms/openbsd/bacula-dir"
30177 if test -f /etc/whitebox-release ; then
30178 f=/etc/whitebox-release
30180 f=/etc/redhat-release
30182 if test `cat $f | grep release |\
30183 cut -f 3 -d ' '`x = "Enterprise"x ; then
30184 DISTVER="Enterprise "`cat $f | grep release |\
30187 DISTVER=`cat /etc/redhat-release | grep release |\
30190 TAPEDRIVE="/dev/nst0"
30191 PSCMD="ps -e -o pid,command"
30192 PFILES="${PFILES} \
30193 platforms/redhat/Makefile \
30194 platforms/redhat/bacula-fd \
30195 platforms/redhat/bacula-sd \
30196 platforms/redhat/bacula-dir
30200 DISTVER=`cat /etc/mandrake-release | grep release |\
30202 TAPEDRIVE="/dev/nst0"
30203 PSCMD="ps -e -o pid,command"
30204 PFILES="${PFILES} \
30205 platforms/mandrake/Makefile \
30206 platforms/mandrake/bacula-fd \
30207 platforms/mandrake/bacula-sd \
30208 platforms/mandrake/bacula-dir \
30212 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30213 TAPEDRIVE="/dev/nst0"
30214 PSCMD="ps -e -o pid,command"
30215 PFILES="${PFILES} \
30216 platforms/gentoo/Makefile \
30217 platforms/gentoo/bacula-init \
30218 platforms/gentoo/bacula-fd \
30219 platforms/gentoo/bacula-sd \
30220 platforms/gentoo/bacula-dir"
30223 DISTVER=`cat /etc/slackware-version`
30224 TAPEDRIVE="/dev/nst0"
30225 PSCMD="ps -e -o pid,command"
30226 PFILES="${PFILES} \
30227 platforms/slackware/Makefile \
30228 platforms/slackware/rc.bacula-fd \
30229 platforms/slackware/rc.bacula-sd \
30230 platforms/slackware/rc.bacula-dir\
30231 platforms/slackware/functions.bacula"
30235 TAPEDRIVE="/dev/rmt/0cbn"
30236 PSCMD="ps -e -o pid,comm"
30237 PFILES="${PFILES} \
30238 platforms/solaris/Makefile \
30239 platforms/solaris/bacula-fd \
30240 platforms/solaris/bacula-sd \
30241 platforms/solaris/bacula-dir"
30245 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30247 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30251 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30257 LIBS="$LIBS -lresolv -lrt"
30260 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30262 TAPEDRIVE="/dev/nst0"
30263 PSCMD="ps -e -o pid,command"
30264 PFILES="${PFILES} \
30265 platforms/suse/Makefile \
30266 platforms/suse/bacula-fd \
30267 platforms/suse/bacula-sd \
30268 platforms/suse/bacula-dir \
30269 platforms/suse/bacula"
30274 TAPEDRIVE="/dev/nst0"
30275 PSCMD="ps -e -o pid,command"
30276 PFILES="${PFILES} \
30277 platforms/suse/Makefile \
30278 platforms/suse/bacula-fd \
30279 platforms/suse/bacula-sd \
30280 platforms/suse/bacula-dir"
30284 TAPEDRIVE="/dev/nst0"
30287 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30293 LIBS="$PTHREAD_LIB $LIBS"
30295 cat >>confdefs.h <<_ACEOF
30299 cat >>confdefs.h <<_ACEOF
30311 MCOMMON=./autoconf/Make.common
30314 if test "x${subsysdir}" = "x${sbindir}" ; then
30317 echo "You have set both --sbindir and --with-subsys-dir"
30318 echo " equal to: ${subsysdir} "
30319 echo "This is not permitted. Please reconfigure."
30321 echo "Aborting configuration ..."
30327 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole 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/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.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.pl 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_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/cats/install-default-backend 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 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
30329 ac_config_commands="$ac_config_commands default"
30331 cat >confcache <<\_ACEOF
30332 # This file is a shell script that caches the results of configure
30333 # tests run on this system so they can be shared between configure
30334 # scripts and configure runs, see configure's option --config-cache.
30335 # It is not useful on other systems. If it contains results you don't
30336 # want to keep, you may remove or edit it.
30338 # config.status only pays attention to the cache file if you give it
30339 # the --recheck option to rerun configure.
30341 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30342 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30343 # following values.
30347 # The following way of writing the cache mishandles newlines in values,
30348 # but we know of no workaround that is simple, portable, and efficient.
30349 # So, we kill variables containing newlines.
30350 # Ultrix sh set writes to stderr and can't be redirected directly,
30351 # and sets the high bit in the cache file unless we assign to the vars.
30353 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30354 eval ac_val=\$$ac_var
30358 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30359 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30362 _ | IFS | as_nl) ;; #(
30363 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30364 *) { eval $ac_var=; unset $ac_var;} ;;
30370 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30371 *${as_nl}ac_space=\ *)
30372 # `set' does not quote correctly, so add quotes: double-quote
30373 # substitution turns \\\\ into \\, and sed turns \\ into \.
30376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30379 # `set' quotes correctly as required by POSIX, so do not add quotes.
30380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30391 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30394 if test -w "$cache_file"; then
30395 if test "x$cache_file" != "x/dev/null"; then
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30397 $as_echo "$as_me: updating cache $cache_file" >&6;}
30398 if test ! -f "$cache_file" || test -h "$cache_file"; then
30399 cat confcache >"$cache_file"
30401 case $cache_file in #(
30403 mv -f confcache "$cache_file"$$ &&
30404 mv -f "$cache_file"$$ "$cache_file" ;; #(
30406 mv -f confcache "$cache_file" ;;
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30412 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30418 # Let make expand exec_prefix.
30419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30421 DEFS=-DHAVE_CONFIG_H
30426 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30427 # 1. Remove the extension, and $U if already installed.
30428 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30429 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30431 # will be set to the directory where LIBOBJS objects are built.
30432 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30433 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30435 LIBOBJS=$ac_libobjs
30437 LTLIBOBJS=$ac_ltlibobjs
30442 : "${CONFIG_STATUS=./config.status}"
30444 ac_clean_files_save=$ac_clean_files
30445 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30447 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30449 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30451 # Generated by $as_me.
30452 # Run this file to recreate the current configuration.
30453 # Compiler output produced by configure, useful for debugging
30454 # configure, is in config.log if it exists.
30457 ac_cs_recheck=false
30460 SHELL=\${CONFIG_SHELL-$SHELL}
30463 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30464 ## -------------------- ##
30465 ## M4sh Initialization. ##
30466 ## -------------------- ##
30468 # Be more Bourne compatible
30469 DUALCASE=1; export DUALCASE # for MKS sh
30470 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30473 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30474 # is contrary to our usage. Disable this feature.
30475 alias -g '${1+"$@"}'='"$@"'
30476 setopt NO_GLOB_SUBST
30478 case `(set -o) 2>/dev/null` in #(
30490 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30491 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30492 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30494 # Prefer a ksh shell builtin over an external printf program on Solaris,
30495 # but without wasting forks for bash or zsh.
30496 if test -z "$BASH_VERSION$ZSH_VERSION" \
30497 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30498 as_echo='print -r --'
30499 as_echo_n='print -rn --'
30500 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30501 as_echo='printf %s\n'
30502 as_echo_n='printf %s'
30504 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30505 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30506 as_echo_n='/usr/ucb/echo -n'
30508 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30509 as_echo_n_body='eval
30513 expr "X$arg" : "X\\(.*\\)$as_nl";
30514 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30516 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30518 export as_echo_n_body
30519 as_echo_n='sh -c $as_echo_n_body as_echo'
30521 export as_echo_body
30522 as_echo='sh -c $as_echo_body as_echo'
30525 # The user is always right.
30526 if test "${PATH_SEPARATOR+set}" != set; then
30528 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30529 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30536 # We need space, tab and new line, in precisely that order. Quoting is
30537 # there to prevent editors from complaining about space-tab.
30538 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30539 # splitting by setting IFS to empty value.)
30542 # Find who we are. Look in the path if we contain no directory separator.
30545 *[\\/]* ) as_myself=$0 ;;
30546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30547 for as_dir in $PATH
30550 test -z "$as_dir" && as_dir=.
30551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30557 # We did not find ourselves, most probably we were run as `sh COMMAND'
30558 # in which case we are not to be found in the path.
30559 if test "x$as_myself" = x; then
30562 if test ! -f "$as_myself"; then
30563 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30567 # Unset variables that we do not need and which cause bugs (e.g. in
30568 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30569 # suppresses any "Segmentation fault" message there. '((' could
30570 # trigger a bug in pdksh 5.2.14.
30571 for as_var in BASH_ENV ENV MAIL MAILPATH
30572 do eval test x\${$as_var+set} = xset \
30573 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30589 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30590 # ----------------------------------------
30591 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30592 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30593 # script with STATUS, using 1 if that was 0.
30596 as_status=$1; test $as_status -eq 0 && as_status=1
30598 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30599 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30601 $as_echo "$as_me: error: $2" >&2
30602 as_fn_exit $as_status
30606 # as_fn_set_status STATUS
30607 # -----------------------
30608 # Set $? to STATUS, without forking.
30609 as_fn_set_status ()
30612 } # as_fn_set_status
30614 # as_fn_exit STATUS
30615 # -----------------
30616 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30620 as_fn_set_status $1
30626 # Portably unset VAR.
30629 { eval $1=; unset $1;}
30631 as_unset=as_fn_unset
30632 # as_fn_append VAR VALUE
30633 # ----------------------
30634 # Append the text in VALUE to the end of the definition contained in VAR. Take
30635 # advantage of any shell optimizations that allow amortized linear growth over
30636 # repeated appends, instead of the typical quadratic growth present in naive
30638 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30639 eval 'as_fn_append ()
30650 # as_fn_arith ARG...
30651 # ------------------
30652 # Perform arithmetic evaluation on the ARGs, and store the result in the
30653 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30654 # must be portable across $(()) and expr.
30655 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30656 eval 'as_fn_arith ()
30663 as_val=`expr "$@" || test $? -eq 1`
30668 if expr a : '\(a\)' >/dev/null 2>&1 &&
30669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30676 as_basename=basename
30681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30687 as_me=`$as_basename -- "$0" ||
30688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30689 X"$0" : 'X\(//\)$' \| \
30690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30692 sed '/^.*\/\([^/][^/]*\)\/*$/{
30706 # Avoid depending upon Character Ranges.
30707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30710 as_cr_digits='0123456789'
30711 as_cr_alnum=$as_cr_Letters$as_cr_digits
30713 ECHO_C= ECHO_N= ECHO_T=
30714 case `echo -n x` in #(((((
30716 case `echo 'xy\c'` in
30717 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30719 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30726 rm -f conf$$ conf$$.exe conf$$.file
30727 if test -d conf$$.dir; then
30728 rm -f conf$$.dir/conf$$.file
30731 mkdir conf$$.dir 2>/dev/null
30733 if (echo >conf$$.file) 2>/dev/null; then
30734 if ln -s conf$$.file conf$$ 2>/dev/null; then
30736 # ... but there are two gotchas:
30737 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30738 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30739 # In both cases, we have to default to `cp -p'.
30740 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30742 elif ln conf$$.file conf$$ 2>/dev/null; then
30750 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30751 rmdir conf$$.dir 2>/dev/null
30756 # Create "$as_dir" as a directory, including parents if necessary.
30761 -*) as_dir=./$as_dir;;
30763 test -d "$as_dir" || eval $as_mkdir_p || {
30767 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30768 *) as_qdir=$as_dir;;
30770 as_dirs="'$as_qdir' $as_dirs"
30771 as_dir=`$as_dirname -- "$as_dir" ||
30772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30773 X"$as_dir" : 'X\(//\)[^/]' \| \
30774 X"$as_dir" : 'X\(//\)$' \| \
30775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30776 $as_echo X"$as_dir" |
30777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30781 /^X\(\/\/\)[^/].*/{
30794 test -d "$as_dir" && break
30796 test -z "$as_dirs" || eval "mkdir $as_dirs"
30797 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30801 if mkdir -p . 2>/dev/null; then
30802 as_mkdir_p='mkdir -p "$as_dir"'
30804 test -d ./-p && rmdir ./-p
30808 if test -x / >/dev/null 2>&1; then
30809 as_test_x='test -x'
30811 if ls -dL / >/dev/null 2>&1; then
30818 if test -d "$1"; then
30824 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30825 ???[sx]*):;;*)false;;esac;fi
30829 as_executable_p=$as_test_x
30831 # Sed expression to map a string onto a valid CPP name.
30832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30834 # Sed expression to map a string onto a valid variable name.
30835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30839 ## ----------------------------------- ##
30840 ## Main body of $CONFIG_STATUS script. ##
30841 ## ----------------------------------- ##
30843 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30846 # Save the log message, to keep $0 and so on meaningful, and to
30847 # report actual input values of CONFIG_FILES etc. instead of their
30848 # values after options handling.
30850 This file was extended by bacula $as_me 5.1.15, which was
30851 generated by GNU Autoconf 2.68. Invocation command line was
30853 CONFIG_FILES = $CONFIG_FILES
30854 CONFIG_HEADERS = $CONFIG_HEADERS
30855 CONFIG_LINKS = $CONFIG_LINKS
30856 CONFIG_COMMANDS = $CONFIG_COMMANDS
30859 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30864 case $ac_config_files in *"
30865 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30868 case $ac_config_headers in *"
30869 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30874 # Files that config.status was made for.
30875 config_files="$ac_config_files"
30876 config_headers="$ac_config_headers"
30877 config_commands="$ac_config_commands"
30881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30883 \`$as_me' instantiates files and other configuration actions
30884 from templates according to the current configuration. Unless the files
30885 and actions are specified as TAGs, all are instantiated by default.
30887 Usage: $0 [OPTION]... [TAG]...
30889 -h, --help print this help, then exit
30890 -V, --version print version number and configuration settings, then exit
30891 --config print configuration, then exit
30892 -q, --quiet, --silent
30893 do not print progress messages
30894 -d, --debug don't remove temporary files
30895 --recheck update $as_me by reconfiguring in the same conditions
30896 --file=FILE[:TEMPLATE]
30897 instantiate the configuration file FILE
30898 --header=FILE[:TEMPLATE]
30899 instantiate the configuration header FILE
30901 Configuration files:
30904 Configuration headers:
30907 Configuration commands:
30910 Report bugs to the package provider."
30913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30914 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30916 bacula config.status 5.1.15
30917 configured by $0, generated by GNU Autoconf 2.68,
30918 with options \\"\$ac_cs_config\\"
30920 Copyright (C) 2010 Free Software Foundation, Inc.
30921 This config.status script is free software; the Free Software Foundation
30922 gives unlimited permission to copy, distribute and modify it."
30928 test -n "\$AWK" || AWK=awk
30931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30932 # The default lists apply if the user does not specify any file.
30938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30939 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30955 # Handling of the options.
30956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30959 $as_echo "$ac_cs_version"; exit ;;
30960 --config | --confi | --conf | --con | --co | --c )
30961 $as_echo "$ac_cs_config"; exit ;;
30962 --debug | --debu | --deb | --de | --d | -d )
30964 --file | --fil | --fi | --f )
30967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30968 '') as_fn_error $? "missing file argument" ;;
30970 as_fn_append CONFIG_FILES " '$ac_optarg'"
30971 ac_need_defaults=false;;
30972 --header | --heade | --head | --hea )
30975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30977 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30978 ac_need_defaults=false;;
30980 # Conflict between --help and --header
30981 as_fn_error $? "ambiguous option: \`$1'
30982 Try \`$0 --help' for more information.";;
30983 --help | --hel | -h )
30984 $as_echo "$ac_cs_usage"; exit ;;
30985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30989 # This is an error.
30990 -*) as_fn_error $? "unrecognized option: \`$1'
30991 Try \`$0 --help' for more information." ;;
30993 *) as_fn_append ac_config_targets " $1"
30994 ac_need_defaults=false ;;
31000 ac_configure_extra_args=
31002 if $ac_cs_silent; then
31004 ac_configure_extra_args="$ac_configure_extra_args --silent"
31008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31009 if \$ac_cs_recheck; then
31010 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31012 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31013 CONFIG_SHELL='$SHELL'
31014 export CONFIG_SHELL
31019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31023 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31024 ## Running $as_me. ##
31030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31036 # The HP-UX ksh and POSIX shell print the target directory to stdout
31037 # if CDPATH is set.
31038 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31040 sed_quote_subst='$sed_quote_subst'
31041 double_quote_subst='$double_quote_subst'
31042 delay_variable_subst='$delay_variable_subst'
31043 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31044 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31045 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31046 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31047 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31048 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31049 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31050 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31051 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31052 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31053 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31054 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31055 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31056 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31057 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31058 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31059 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31060 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31061 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31062 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31063 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31064 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31065 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31066 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31067 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31068 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31069 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31070 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31071 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31072 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31073 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31074 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31075 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31076 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31077 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31078 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31079 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31080 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31081 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31082 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31083 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31084 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31085 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31086 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31087 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31088 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31089 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31090 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31091 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31092 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31093 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31094 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31095 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31096 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31097 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
31099 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31100 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31101 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31102 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31103 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31104 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31105 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31106 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31107 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31108 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31109 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31110 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31111 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31112 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31113 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31114 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31115 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31116 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31117 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31118 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31119 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31120 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31121 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31122 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31123 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31124 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31125 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31126 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31127 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31128 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31129 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31130 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31131 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31132 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31133 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31134 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31135 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31136 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31137 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31138 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31139 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31140 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31141 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31142 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31143 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31144 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31145 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31146 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31147 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31148 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31149 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31150 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31151 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31152 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31153 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31154 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31155 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31156 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31157 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31158 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31159 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31160 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31161 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31162 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31163 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31164 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31165 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31166 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31167 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31168 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31169 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31170 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31171 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31172 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31173 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31174 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31175 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31176 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31177 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31178 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31179 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31180 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31181 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31182 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31183 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31184 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31185 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31186 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31187 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31188 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31189 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31190 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31191 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31192 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31193 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31194 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31195 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31196 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31197 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31198 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31199 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31200 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31201 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31202 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31203 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31204 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31205 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31206 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31207 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31208 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31209 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31210 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31211 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31212 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31213 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31214 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31215 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31216 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31217 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31218 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31219 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31220 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31221 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31222 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31223 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31224 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31225 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31226 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31227 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31230 LTCFLAGS='$LTCFLAGS'
31231 compiler='$compiler_DEFAULT'
31233 # A function that is used when there is no print builtin or printf.
31234 func_fallback_echo ()
31236 eval 'cat <<_LTECHO_EOF
31241 # Quote evaled strings.
31255 deplibs_check_method \
31260 sharedlib_from_linklib_cmd \
31263 archiver_list_spec \
31269 lt_cv_sys_global_symbol_pipe \
31270 lt_cv_sys_global_symbol_to_cdecl \
31271 lt_cv_sys_global_symbol_to_c_name_address \
31272 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31273 nm_file_list_spec \
31274 lt_prog_compiler_no_builtin_flag \
31275 lt_prog_compiler_pic \
31276 lt_prog_compiler_wl \
31277 lt_prog_compiler_static \
31278 lt_cv_prog_compiler_c_o \
31287 export_dynamic_flag_spec \
31288 whole_archive_flag_spec \
31289 compiler_needs_object \
31291 allow_undefined_flag \
31292 no_undefined_flag \
31293 hardcode_libdir_flag_spec \
31294 hardcode_libdir_flag_spec_ld \
31295 hardcode_libdir_separator \
31299 variables_saved_for_relink \
31301 library_names_spec \
31303 install_override_mode \
31307 compiler_lib_search_dirs \
31312 compiler_lib_search_path \
31316 lt_prog_compiler_no_builtin_flag_CXX \
31317 lt_prog_compiler_pic_CXX \
31318 lt_prog_compiler_wl_CXX \
31319 lt_prog_compiler_static_CXX \
31320 lt_cv_prog_compiler_c_o_CXX \
31321 export_dynamic_flag_spec_CXX \
31322 whole_archive_flag_spec_CXX \
31323 compiler_needs_object_CXX \
31325 allow_undefined_flag_CXX \
31326 no_undefined_flag_CXX \
31327 hardcode_libdir_flag_spec_CXX \
31328 hardcode_libdir_flag_spec_ld_CXX \
31329 hardcode_libdir_separator_CXX \
31330 exclude_expsyms_CXX \
31331 include_expsyms_CXX \
31332 file_list_spec_CXX \
31333 compiler_lib_search_dirs_CXX \
31334 predep_objects_CXX \
31335 postdep_objects_CXX \
31338 compiler_lib_search_path_CXX; do
31339 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31340 *[\\\\\\\`\\"\\\$]*)
31341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31349 # Double-quote double-evaled strings.
31350 for var in reload_cmds \
31351 old_postinstall_cmds \
31352 old_postuninstall_cmds \
31354 extract_expsyms_cmds \
31355 old_archive_from_new_cmds \
31356 old_archive_from_expsyms_cmds \
31358 archive_expsym_cmds \
31360 module_expsym_cmds \
31361 export_symbols_cmds \
31365 postuninstall_cmds \
31367 sys_lib_search_path_spec \
31368 sys_lib_dlsearch_path_spec \
31370 old_archive_cmds_CXX \
31371 old_archive_from_new_cmds_CXX \
31372 old_archive_from_expsyms_cmds_CXX \
31374 archive_expsym_cmds_CXX \
31376 module_expsym_cmds_CXX \
31377 export_symbols_cmds_CXX \
31379 postlink_cmds_CXX; do
31380 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31381 *[\\\\\\\`\\"\\\$]*)
31382 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31385 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31390 ac_aux_dir='$ac_aux_dir'
31391 xsi_shell='$xsi_shell'
31392 lt_shell_append='$lt_shell_append'
31394 # See if we are running on zsh, and set the options which allow our
31395 # commands through without removal of \ escapes INIT.
31396 if test -n "\${ZSH_VERSION+set}" ; then
31397 setopt NO_GLOB_SUBST
31403 TIMESTAMP='$TIMESTAMP'
31411 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31412 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31414 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31415 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31416 LINGUAS="${LINGUAS-%UNSET%}"
31421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31423 # Handling of arguments.
31424 for ac_config_target in $ac_config_targets
31426 case $ac_config_target in
31427 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31428 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31429 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31430 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31432 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31433 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31434 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31435 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31436 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31437 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31438 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31439 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31440 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31441 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31442 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31443 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31444 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31445 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31446 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31447 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31448 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31449 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31450 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31451 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31452 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31453 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31454 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31455 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31456 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31457 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31458 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31459 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31460 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31461 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31462 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31463 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31464 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31465 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31466 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31467 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31468 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31469 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31470 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31471 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31472 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31473 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31474 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31475 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31476 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31477 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31478 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31479 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31480 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31481 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31482 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31483 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31484 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31485 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31486 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31487 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31488 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31489 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31490 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31491 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31492 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31493 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31494 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31495 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31496 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31497 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31498 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31499 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31500 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31501 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31502 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31503 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31504 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31505 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31506 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31507 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31508 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31509 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31510 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31511 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31512 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31513 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31514 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31515 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31516 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31517 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31518 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31519 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31520 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31521 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31522 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31523 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31524 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31525 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31526 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31527 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31528 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31529 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31530 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31531 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31532 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31533 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31535 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31540 # If the user did not use the arguments to specify the items to instantiate,
31541 # then the envvar interface is used. Set only those that are not.
31542 # We use the long form for the default assignment because of an extremely
31543 # bizarre bug on SunOS 4.1.3.
31544 if $ac_need_defaults; then
31545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31550 # Have a temporary directory for convenience. Make it in the build tree
31551 # simply because there is no reason against having it here, and in addition,
31552 # creating and moving files from /tmp can sometimes cause problems.
31553 # Hook for its removal unless debugging.
31554 # Note that there is a small window in which the directory will not be cleaned:
31555 # after its creation but before its name has been assigned to `$tmp'.
31559 trap 'exit_status=$?
31560 : "${ac_tmp:=$tmp}"
31561 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31563 trap 'as_fn_exit 1' 1 2 13 15
31565 # Create a (secure) tmp directory for tmp files.
31568 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31572 tmp=./conf$$-$RANDOM
31573 (umask 077 && mkdir "$tmp")
31574 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31577 # Set up the scripts for CONFIG_FILES section.
31578 # No need to generate them if there are no CONFIG_FILES.
31579 # This happens for instance with `./config.status config.h'.
31580 if test -n "$CONFIG_FILES"; then
31582 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31583 ac_cs_awk_getline=:
31584 ac_cs_awk_pipe_init=
31585 ac_cs_awk_read_file='
31586 while ((getline aline < (F[key])) > 0)
31589 ac_cs_awk_pipe_fini=
31591 ac_cs_awk_getline=false
31592 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31593 ac_cs_awk_read_file='
31595 print "cat " F[key] " &&"
31596 '$ac_cs_awk_pipe_init
31597 # The final `:' finishes the AND list.
31598 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31600 ac_cr=`echo X | tr X '\015'`
31601 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31602 # But we know of no other shell where ac_cr would be empty at this
31603 # point, so we can use a bashism as a fallback.
31604 if test "x$ac_cr" = x; then
31605 eval ac_cr=\$\'\\r\'
31607 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31608 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31611 ac_cs_awk_cr=$ac_cr
31614 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31617 # Create commands to substitute file output variables.
31619 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31620 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31621 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31624 } >conf$$files.sh &&
31625 . ./conf$$files.sh ||
31626 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31627 rm -f conf$$files.sh
31630 echo "cat >conf$$subs.awk <<_ACEOF" &&
31631 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31633 } >conf$$subs.sh ||
31634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31635 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31637 for ac_last_try in false false false false false :; do
31638 . ./conf$$subs.sh ||
31639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31641 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31642 if test $ac_delim_n = $ac_delim_num; then
31644 elif $ac_last_try; then
31645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31650 rm -f conf$$subs.sh
31652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31653 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31657 s/^/S["/; s/!.*/"]=/
31667 s/\(.\{148\}\)..*/\1/
31669 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31681 s/\(.\{148\}\)..*/\1/
31683 s/["\\]/\\&/g; s/^/"/; s/$/"/
31687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31692 ' <conf$$subs.awk | sed '
31697 ' >>$CONFIG_STATUS || ac_write_fail=1
31698 rm -f conf$$subs.awk
31699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31701 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31702 for (key in S) S_is_set[key] = 1
31704 \$ac_cs_awk_pipe_init
31708 nfields = split(line, field, "@")
31710 len = length(field[1])
31711 for (i = 2; i < nfields; i++) {
31713 keylen = length(key)
31714 if (S_is_set[key]) {
31716 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31717 len += length(value) + length(field[++i])
31722 if (nfields == 3 && !substed) {
31724 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31725 \$ac_cs_awk_read_file
31731 \$ac_cs_awk_pipe_fini
31734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31735 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31736 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31739 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31740 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31743 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31744 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31745 # trailing colons and then remove the whole line if VPATH becomes empty
31746 # (actually we leave an empty line to preserve line numbers).
31747 if test "x$srcdir" = x.; then
31748 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31767 fi # test -n "$CONFIG_FILES"
31769 # Set up the scripts for CONFIG_HEADERS section.
31770 # No need to generate them if there are no CONFIG_HEADERS.
31771 # This happens for instance with `./config.status Makefile'.
31772 if test -n "$CONFIG_HEADERS"; then
31773 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31777 # Transform confdefs.h into an awk script `defines.awk', embedded as
31778 # here-document in config.status, that substitutes the proper values into
31779 # config.h.in to produce config.h.
31781 # Create a delimiter string that does not exist in confdefs.h, to ease
31782 # handling of long lines.
31784 for ac_last_try in false false :; do
31785 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31786 if test -z "$ac_tt"; then
31788 elif $ac_last_try; then
31789 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31795 # For the awk script, D is an array of macro values keyed by name,
31796 # likewise P contains macro parameters if any. Preserve backslash
31797 # newline sequences.
31799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31801 s/.\{148\}/&'"$ac_delim"'/g
31804 s/^[ ]*#[ ]*define[ ][ ]*/ /
31811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31813 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31818 D["\1"]=" \3\\\\\\n"\\/p
31820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31825 s/.\{148\}/&'"$ac_delim"'/g
31830 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31833 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31835 ' <confdefs.h | sed '
31836 s/'"$ac_delim"'/"\\\
31837 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31840 for (key in D) D_is_set[key] = 1
31843 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31845 split(line, arg, " ")
31846 if (arg[1] == "#") {
31850 defundef = substr(arg[1], 2)
31853 split(mac1, mac2, "(") #)
31855 prefix = substr(line, 1, index(line, defundef) - 1)
31856 if (D_is_set[macro]) {
31857 # Preserve the white space surrounding the "#".
31858 print prefix "define", macro P[macro] D[macro]
31861 # Replace #undef with comments. This is necessary, for example,
31862 # in the case of _POSIX_SOURCE, which is predefined and required
31863 # on some systems where configure will not decide to define it.
31864 if (defundef == "undef") {
31865 print "/*", prefix defundef, macro, "*/"
31873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31874 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31875 fi # test -n "$CONFIG_HEADERS"
31878 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31883 :[FHLC]) ac_mode=$ac_tag; continue;;
31885 case $ac_mode$ac_tag in
31887 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31888 :[FH]-) ac_tag=-:-;;
31889 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31906 -) ac_f="$ac_tmp/stdin";;
31907 *) # Look for the file first in the build tree, then in the source tree
31908 # (if the path is not absolute). The absolute path cannot be DOS-style,
31909 # because $ac_f cannot contain `:'.
31913 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31915 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31917 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31918 as_fn_append ac_file_inputs " '$ac_f'"
31921 # Let's still pretend it is `configure' which instantiates (i.e., don't
31922 # use $as_me), people would be surprised to read:
31923 # /* config.h. Generated by config.status. */
31924 configure_input='Generated from '`
31925 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31927 if test x"$ac_file" != x-; then
31928 configure_input="$ac_file. $configure_input"
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31930 $as_echo "$as_me: creating $ac_file" >&6;}
31932 # Neutralize special characters interpreted by sed in replacement strings.
31933 case $configure_input in #(
31934 *\&* | *\|* | *\\* )
31935 ac_sed_conf_input=`$as_echo "$configure_input" |
31936 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31937 *) ac_sed_conf_input=$configure_input;;
31941 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31947 ac_dir=`$as_dirname -- "$ac_file" ||
31948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31949 X"$ac_file" : 'X\(//\)[^/]' \| \
31950 X"$ac_file" : 'X\(//\)$' \| \
31951 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31952 $as_echo X"$ac_file" |
31953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31957 /^X\(\/\/\)[^/].*/{
31970 as_dir="$ac_dir"; as_fn_mkdir_p
31974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31976 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31977 # A ".." for each directory in $ac_dir_suffix.
31978 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31979 case $ac_top_builddir_sub in
31980 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31981 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31984 ac_abs_top_builddir=$ac_pwd
31985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31986 # for backward compatibility:
31987 ac_top_builddir=$ac_top_build_prefix
31990 .) # We are building in place.
31992 ac_top_srcdir=$ac_top_builddir_sub
31993 ac_abs_top_srcdir=$ac_pwd ;;
31994 [\\/]* | ?:[\\/]* ) # Absolute name.
31995 ac_srcdir=$srcdir$ac_dir_suffix;
31996 ac_top_srcdir=$srcdir
31997 ac_abs_top_srcdir=$srcdir ;;
31998 *) # Relative name.
31999 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32000 ac_top_srcdir=$ac_top_build_prefix$srcdir
32001 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32014 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32019 # If the template does not know about datarootdir, expand it.
32020 # FIXME: This hack should be removed a few years after 2.60.
32021 ac_datarootdir_hack=; ac_datarootdir_seen=
32032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32033 *datarootdir*) ac_datarootdir_seen=yes;;
32034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32039 ac_datarootdir_hack='
32040 s&@datadir@&$datadir&g
32041 s&@docdir@&$docdir&g
32042 s&@infodir@&$infodir&g
32043 s&@localedir@&$localedir&g
32044 s&@mandir@&$mandir&g
32045 s&\\\${datarootdir}&$datarootdir&g' ;;
32049 # Neutralize VPATH when `$srcdir' = `.'.
32050 # Shell code in configure.ac might set extrasub.
32051 # FIXME: do we really want to maintain this feature?
32052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32053 ac_sed_extra="$ac_vpsub
32056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32059 s|@configure_input@|$ac_sed_conf_input|;t t
32060 s&@top_builddir@&$ac_top_builddir_sub&;t t
32061 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32062 s&@srcdir@&$ac_srcdir&;t t
32063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32064 s&@top_srcdir@&$ac_top_srcdir&;t t
32065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32066 s&@builddir@&$ac_builddir&;t t
32067 s&@abs_builddir@&$ac_abs_builddir&;t t
32068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32069 s&@INSTALL@&$ac_INSTALL&;t t
32070 $ac_datarootdir_hack
32072 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32073 if $ac_cs_awk_getline; then
32074 $AWK -f "$ac_tmp/subs.awk"
32076 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32078 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32081 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32083 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32085 which seems to be undefined. Please make sure it is defined" >&5
32086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32087 which seems to be undefined. Please make sure it is defined" >&2;}
32089 rm -f "$ac_tmp/stdin"
32091 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32092 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32100 if test x"$ac_file" != x-; then
32102 $as_echo "/* $configure_input */" \
32103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32104 } >"$ac_tmp/config.h" \
32105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32106 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32108 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32111 mv "$ac_tmp/config.h" "$ac_file" \
32112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32115 $as_echo "/* $configure_input */" \
32116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32117 || as_fn_error $? "could not create -" "$LINENO" 5
32121 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32122 $as_echo "$as_me: executing $ac_file commands" >&6;}
32127 case $ac_file$ac_mode in
32130 # See if we are running on zsh, and set the options which allow our
32131 # commands through without removal of \ escapes.
32132 if test -n "${ZSH_VERSION+set}" ; then
32133 setopt NO_GLOB_SUBST
32136 cfgfile="${ofile}T"
32137 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32140 cat <<_LT_EOF >> "$cfgfile"
32143 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32144 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32148 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32149 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32151 # Written by Gordon Matzigkeit, 1996
32153 # This file is part of GNU Libtool.
32155 # GNU Libtool is free software; you can redistribute it and/or
32156 # modify it under the terms of the GNU General Public License as
32157 # published by the Free Software Foundation; either version 2 of
32158 # the License, or (at your option) any later version.
32160 # As a special exception to the GNU General Public License,
32161 # if you distribute this file as part of a program or library that
32162 # is built using GNU Libtool, you may include this file under the
32163 # same distribution terms that you use for the rest of that program.
32165 # GNU Libtool is distributed in the hope that it will be useful,
32166 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32168 # GNU General Public License for more details.
32170 # You should have received a copy of the GNU General Public License
32171 # along with GNU Libtool; see the file COPYING. If not, a copy
32172 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32173 # obtained by writing to the Free Software Foundation, Inc.,
32174 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32177 # The names of the tagged configurations supported by this script.
32178 available_tags="CXX "
32180 # ### BEGIN LIBTOOL CONFIG
32182 # Which release of libtool.m4 was used?
32183 macro_version=$macro_version
32184 macro_revision=$macro_revision
32186 # Whether or not to build shared libraries.
32187 build_libtool_libs=$enable_shared
32189 # Whether or not to build static libraries.
32190 build_old_libs=$enable_static
32192 # What type of objects to build.
32195 # Whether or not to optimize for fast installation.
32196 fast_install=$enable_fast_install
32198 # Shell to use when invoking shell scripts.
32201 # An echo program that protects backslashes.
32205 host_alias=$host_alias
32209 # The build system.
32210 build_alias=$build_alias
32214 # A sed program that does not truncate output.
32217 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32218 Xsed="\$SED -e 1s/^X//"
32220 # A grep program that handles long lines.
32226 # A literal string matcher.
32229 # A BSD- or MS-compatible name lister.
32232 # Whether we need soft or hard links.
32235 # What is the maximum length of a command?
32236 max_cmd_len=$max_cmd_len
32238 # Object file suffix (normally "o").
32241 # Executable file suffix (normally "").
32244 # whether the shell understands "unset".
32247 # turn spaces into newlines.
32250 # turn newlines into spaces.
32253 # convert \$build file names to \$host format.
32254 to_host_file_cmd=$lt_cv_to_host_file_cmd
32256 # convert \$build files to toolchain format.
32257 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32259 # An object symbol dumper.
32260 OBJDUMP=$lt_OBJDUMP
32262 # Method to check whether dependent libraries are shared objects.
32263 deplibs_check_method=$lt_deplibs_check_method
32265 # Command to use when deplibs_check_method = "file_magic".
32266 file_magic_cmd=$lt_file_magic_cmd
32268 # How to find potential files when deplibs_check_method = "file_magic".
32269 file_magic_glob=$lt_file_magic_glob
32271 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32272 want_nocaseglob=$lt_want_nocaseglob
32274 # DLL creation program.
32275 DLLTOOL=$lt_DLLTOOL
32277 # Command to associate shared and link libraries.
32278 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32283 # Flags to create an archive.
32284 AR_FLAGS=$lt_AR_FLAGS
32286 # How to feed a file listing to the archiver.
32287 archiver_list_spec=$lt_archiver_list_spec
32289 # A symbol stripping program.
32292 # Commands used to install an old-style archive.
32294 old_postinstall_cmds=$lt_old_postinstall_cmds
32295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32297 # Whether to use a lock for old archive extraction.
32298 lock_old_archive_extraction=$lock_old_archive_extraction
32303 # LTCC compiler flags.
32304 LTCFLAGS=$lt_CFLAGS
32306 # Take the output of nm and produce a listing of raw symbols and C names.
32307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32309 # Transform the output of nm in a proper C declaration.
32310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32312 # Transform the output of nm in a C name address pair.
32313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32315 # Transform the output of nm in a C name address pair when lib prefix is needed.
32316 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32318 # Specify filename containing input files for \$NM.
32319 nm_file_list_spec=$lt_nm_file_list_spec
32321 # The root where to search for dependent libraries,and in which our libraries should be installed.
32322 lt_sysroot=$lt_sysroot
32324 # The name of the directory that contains temporary libtool files.
32327 # Used to examine libraries when file_magic_cmd begins with "file".
32328 MAGIC_CMD=$MAGIC_CMD
32330 # Must we lock files when doing compilation?
32331 need_locks=$lt_need_locks
32334 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32336 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32337 DSYMUTIL=$lt_DSYMUTIL
32339 # Tool to change global to local symbols on Mac OS X.
32342 # Tool to manipulate fat objects and archives on Mac OS X.
32345 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32348 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32349 OTOOL64=$lt_OTOOL64
32351 # Old archive suffix (normally "a").
32354 # Shared library suffix (normally ".so").
32355 shrext_cmds=$lt_shrext_cmds
32357 # The commands to extract the exported symbol list from a shared archive.
32358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32360 # Variables whose values should be saved in libtool wrapper scripts and
32361 # restored at link time.
32362 variables_saved_for_relink=$lt_variables_saved_for_relink
32364 # Do we need the "lib" prefix for modules?
32365 need_lib_prefix=$need_lib_prefix
32367 # Do we need a version for libraries?
32368 need_version=$need_version
32370 # Library versioning type.
32371 version_type=$version_type
32373 # Shared library runtime path variable.
32374 runpath_var=$runpath_var
32376 # Shared library path variable.
32377 shlibpath_var=$shlibpath_var
32379 # Is shlibpath searched before the hard-coded library search path?
32380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32382 # Format of library name prefix.
32383 libname_spec=$lt_libname_spec
32385 # List of archive names. First name is the real one, the rest are links.
32386 # The last name is the one that the linker finds with -lNAME
32387 library_names_spec=$lt_library_names_spec
32389 # The coded name of the library, if different from the real name.
32390 soname_spec=$lt_soname_spec
32392 # Permission mode override for installation of shared libraries.
32393 install_override_mode=$lt_install_override_mode
32395 # Command to use after installation of a shared archive.
32396 postinstall_cmds=$lt_postinstall_cmds
32398 # Command to use after uninstallation of a shared archive.
32399 postuninstall_cmds=$lt_postuninstall_cmds
32401 # Commands used to finish a libtool library installation in a directory.
32402 finish_cmds=$lt_finish_cmds
32404 # As "finish_cmds", except a single script fragment to be evaled but
32406 finish_eval=$lt_finish_eval
32408 # Whether we should hardcode library paths into libraries.
32409 hardcode_into_libs=$hardcode_into_libs
32411 # Compile-time system search path for libraries.
32412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32414 # Run-time system search path for libraries.
32415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32417 # Whether dlopen is supported.
32418 dlopen_support=$enable_dlopen
32420 # Whether dlopen of programs is supported.
32421 dlopen_self=$enable_dlopen_self
32423 # Whether dlopen of statically linked programs is supported.
32424 dlopen_self_static=$enable_dlopen_self_static
32426 # Commands to strip libraries.
32427 old_striplib=$lt_old_striplib
32428 striplib=$lt_striplib
32431 # The linker used to build libraries.
32434 # How to create reloadable object files.
32435 reload_flag=$lt_reload_flag
32436 reload_cmds=$lt_reload_cmds
32438 # Commands used to build an old-style archive.
32439 old_archive_cmds=$lt_old_archive_cmds
32441 # A language specific compiler.
32444 # Is the compiler the GNU compiler?
32447 # Compiler flag to turn off builtin functions.
32448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32450 # Additional compiler flags for building library objects.
32451 pic_flag=$lt_lt_prog_compiler_pic
32453 # How to pass a linker flag through the compiler.
32454 wl=$lt_lt_prog_compiler_wl
32456 # Compiler flag to prevent dynamic linking.
32457 link_static_flag=$lt_lt_prog_compiler_static
32459 # Does compiler simultaneously support -c and -o options?
32460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32462 # Whether or not to add -lc for building shared libraries.
32463 build_libtool_need_lc=$archive_cmds_need_lc
32465 # Whether or not to disallow shared libs when runtime libs are static.
32466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32468 # Compiler flag to allow reflexive dlopens.
32469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32471 # Compiler flag to generate shared objects directly from archives.
32472 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32474 # Whether the compiler copes with passing no objects directly.
32475 compiler_needs_object=$lt_compiler_needs_object
32477 # Create an old-style archive from a shared archive.
32478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32480 # Create a temporary old-style archive to link instead of a shared archive.
32481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32483 # Commands used to build a shared archive.
32484 archive_cmds=$lt_archive_cmds
32485 archive_expsym_cmds=$lt_archive_expsym_cmds
32487 # Commands used to build a loadable module if different from building
32488 # a shared archive.
32489 module_cmds=$lt_module_cmds
32490 module_expsym_cmds=$lt_module_expsym_cmds
32492 # Whether we are building with GNU ld or not.
32493 with_gnu_ld=$lt_with_gnu_ld
32495 # Flag that allows shared libraries with undefined symbols to be built.
32496 allow_undefined_flag=$lt_allow_undefined_flag
32498 # Flag that enforces no undefined symbols.
32499 no_undefined_flag=$lt_no_undefined_flag
32501 # Flag to hardcode \$libdir into a binary during linking.
32502 # This must work even if \$libdir does not exist
32503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32505 # If ld is used when linking, flag to hardcode \$libdir into a binary
32506 # during linking. This must work even if \$libdir does not exist.
32507 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32509 # Whether we need a single "-rpath" flag with a separated argument.
32510 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32513 # DIR into the resulting binary.
32514 hardcode_direct=$hardcode_direct
32516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32517 # DIR into the resulting binary and the resulting library dependency is
32518 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32519 # library is relocated.
32520 hardcode_direct_absolute=$hardcode_direct_absolute
32522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32523 # into the resulting binary.
32524 hardcode_minus_L=$hardcode_minus_L
32526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32527 # into the resulting binary.
32528 hardcode_shlibpath_var=$hardcode_shlibpath_var
32530 # Set to "yes" if building a shared library automatically hardcodes DIR
32531 # into the library and all subsequent libraries and executables linked
32533 hardcode_automatic=$hardcode_automatic
32535 # Set to yes if linker adds runtime paths of dependent libraries
32536 # to runtime path list.
32537 inherit_rpath=$inherit_rpath
32539 # Whether libtool must link a program against all its dependency libraries.
32540 link_all_deplibs=$link_all_deplibs
32542 # Set to "yes" if exported symbols are required.
32543 always_export_symbols=$always_export_symbols
32545 # The commands to list exported symbols.
32546 export_symbols_cmds=$lt_export_symbols_cmds
32548 # Symbols that should not be listed in the preloaded symbols.
32549 exclude_expsyms=$lt_exclude_expsyms
32551 # Symbols that must always be exported.
32552 include_expsyms=$lt_include_expsyms
32554 # Commands necessary for linking programs (against libraries) with templates.
32555 prelink_cmds=$lt_prelink_cmds
32557 # Commands necessary for finishing linking programs.
32558 postlink_cmds=$lt_postlink_cmds
32560 # Specify filename containing input files.
32561 file_list_spec=$lt_file_list_spec
32563 # How to hardcode a shared library path into an executable.
32564 hardcode_action=$hardcode_action
32566 # The directories searched by this compiler when creating a shared library.
32567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32569 # Dependencies to place before and after the objects being linked to
32570 # create a shared library.
32571 predep_objects=$lt_predep_objects
32572 postdep_objects=$lt_postdep_objects
32573 predeps=$lt_predeps
32574 postdeps=$lt_postdeps
32576 # The library search path used internally by the compiler when linking
32577 # a shared library.
32578 compiler_lib_search_path=$lt_compiler_lib_search_path
32580 # ### END LIBTOOL CONFIG
32586 cat <<\_LT_EOF >> "$cfgfile"
32587 # AIX sometimes has problems with the GCC collect2 program. For some
32588 # reason, if we set the COLLECT_NAMES environment variable, the problems
32589 # vanish in a puff of smoke.
32590 if test "X${COLLECT_NAMES+set}" != Xset; then
32592 export COLLECT_NAMES
32599 ltmain="$ac_aux_dir/ltmain.sh"
32602 # We use sed instead of cat because bash on DJGPP gets confused if
32603 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32604 # text mode, it properly converts lines to CR/LF. This bash problem
32605 # is reportedly fixed, but why not run on old versions too?
32606 sed '$q' "$ltmain" >> "$cfgfile" \
32607 || (rm -f "$cfgfile"; exit 1)
32609 if test x"$xsi_shell" = xyes; then
32610 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32614 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32615 \ * ) func_dirname_result="${3}" ;;\
32617 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32618 && mv -f "$cfgfile.tmp" "$cfgfile" \
32619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32620 test 0 -eq $? || _lt_function_replace_fail=:
32623 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32626 \ func_basename_result="${1##*/}"\
32627 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32628 && mv -f "$cfgfile.tmp" "$cfgfile" \
32629 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32630 test 0 -eq $? || _lt_function_replace_fail=:
32633 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32634 func_dirname_and_basename ()\
32637 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32638 \ * ) func_dirname_result="${3}" ;;\
32640 \ func_basename_result="${1##*/}"\
32641 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32642 && mv -f "$cfgfile.tmp" "$cfgfile" \
32643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32644 test 0 -eq $? || _lt_function_replace_fail=:
32647 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32650 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32651 \ # positional parameters, so assign one to ordinary parameter first.\
32652 \ func_stripname_result=${3}\
32653 \ func_stripname_result=${func_stripname_result#"${1}"}\
32654 \ func_stripname_result=${func_stripname_result%"${2}"}\
32655 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32656 && mv -f "$cfgfile.tmp" "$cfgfile" \
32657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32658 test 0 -eq $? || _lt_function_replace_fail=:
32661 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32662 func_split_long_opt ()\
32664 \ func_split_long_opt_name=${1%%=*}\
32665 \ func_split_long_opt_arg=${1#*=}\
32666 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32667 && mv -f "$cfgfile.tmp" "$cfgfile" \
32668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32669 test 0 -eq $? || _lt_function_replace_fail=:
32672 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32673 func_split_short_opt ()\
32675 \ func_split_short_opt_arg=${1#??}\
32676 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32677 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32678 && mv -f "$cfgfile.tmp" "$cfgfile" \
32679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32680 test 0 -eq $? || _lt_function_replace_fail=:
32683 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32687 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32688 \ *) func_lo2o_result=${1} ;;\
32690 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32691 && mv -f "$cfgfile.tmp" "$cfgfile" \
32692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32693 test 0 -eq $? || _lt_function_replace_fail=:
32696 sed -e '/^func_xform ()$/,/^} # func_xform /c\
32699 func_xform_result=${1%.*}.lo\
32700 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32701 && mv -f "$cfgfile.tmp" "$cfgfile" \
32702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32703 test 0 -eq $? || _lt_function_replace_fail=:
32706 sed -e '/^func_arith ()$/,/^} # func_arith /c\
32709 func_arith_result=$(( $* ))\
32710 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32711 && mv -f "$cfgfile.tmp" "$cfgfile" \
32712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32713 test 0 -eq $? || _lt_function_replace_fail=:
32716 sed -e '/^func_len ()$/,/^} # func_len /c\
32719 func_len_result=${#1}\
32720 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32721 && mv -f "$cfgfile.tmp" "$cfgfile" \
32722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32723 test 0 -eq $? || _lt_function_replace_fail=:
32727 if test x"$lt_shell_append" = xyes; then
32728 sed -e '/^func_append ()$/,/^} # func_append /c\
32731 eval "${1}+=\\${2}"\
32732 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32733 && mv -f "$cfgfile.tmp" "$cfgfile" \
32734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32735 test 0 -eq $? || _lt_function_replace_fail=:
32738 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32739 func_append_quoted ()\
32741 \ func_quote_for_eval "${2}"\
32742 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32743 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32744 && mv -f "$cfgfile.tmp" "$cfgfile" \
32745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32746 test 0 -eq $? || _lt_function_replace_fail=:
32749 # Save a `func_append' function call where possible by direct use of '+='
32750 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32751 && mv -f "$cfgfile.tmp" "$cfgfile" \
32752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32753 test 0 -eq $? || _lt_function_replace_fail=:
32755 # Save a `func_append' function call even when '+=' is not available
32756 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32757 && mv -f "$cfgfile.tmp" "$cfgfile" \
32758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32759 test 0 -eq $? || _lt_function_replace_fail=:
32762 if test x"$_lt_function_replace_fail" = x":"; then
32763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32764 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32768 mv -f "$cfgfile" "$ofile" ||
32769 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32773 cat <<_LT_EOF >> "$ofile"
32775 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32777 # The linker used to build libraries.
32780 # How to create reloadable object files.
32781 reload_flag=$lt_reload_flag_CXX
32782 reload_cmds=$lt_reload_cmds_CXX
32784 # Commands used to build an old-style archive.
32785 old_archive_cmds=$lt_old_archive_cmds_CXX
32787 # A language specific compiler.
32788 CC=$lt_compiler_CXX
32790 # Is the compiler the GNU compiler?
32793 # Compiler flag to turn off builtin functions.
32794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32796 # Additional compiler flags for building library objects.
32797 pic_flag=$lt_lt_prog_compiler_pic_CXX
32799 # How to pass a linker flag through the compiler.
32800 wl=$lt_lt_prog_compiler_wl_CXX
32802 # Compiler flag to prevent dynamic linking.
32803 link_static_flag=$lt_lt_prog_compiler_static_CXX
32805 # Does compiler simultaneously support -c and -o options?
32806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32808 # Whether or not to add -lc for building shared libraries.
32809 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32811 # Whether or not to disallow shared libs when runtime libs are static.
32812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32814 # Compiler flag to allow reflexive dlopens.
32815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32817 # Compiler flag to generate shared objects directly from archives.
32818 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32820 # Whether the compiler copes with passing no objects directly.
32821 compiler_needs_object=$lt_compiler_needs_object_CXX
32823 # Create an old-style archive from a shared archive.
32824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32826 # Create a temporary old-style archive to link instead of a shared archive.
32827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32829 # Commands used to build a shared archive.
32830 archive_cmds=$lt_archive_cmds_CXX
32831 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32833 # Commands used to build a loadable module if different from building
32834 # a shared archive.
32835 module_cmds=$lt_module_cmds_CXX
32836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32838 # Whether we are building with GNU ld or not.
32839 with_gnu_ld=$lt_with_gnu_ld_CXX
32841 # Flag that allows shared libraries with undefined symbols to be built.
32842 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32844 # Flag that enforces no undefined symbols.
32845 no_undefined_flag=$lt_no_undefined_flag_CXX
32847 # Flag to hardcode \$libdir into a binary during linking.
32848 # This must work even if \$libdir does not exist
32849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32851 # If ld is used when linking, flag to hardcode \$libdir into a binary
32852 # during linking. This must work even if \$libdir does not exist.
32853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32855 # Whether we need a single "-rpath" flag with a separated argument.
32856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32859 # DIR into the resulting binary.
32860 hardcode_direct=$hardcode_direct_CXX
32862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32863 # DIR into the resulting binary and the resulting library dependency is
32864 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32865 # library is relocated.
32866 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32868 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32869 # into the resulting binary.
32870 hardcode_minus_L=$hardcode_minus_L_CXX
32872 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32873 # into the resulting binary.
32874 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32876 # Set to "yes" if building a shared library automatically hardcodes DIR
32877 # into the library and all subsequent libraries and executables linked
32879 hardcode_automatic=$hardcode_automatic_CXX
32881 # Set to yes if linker adds runtime paths of dependent libraries
32882 # to runtime path list.
32883 inherit_rpath=$inherit_rpath_CXX
32885 # Whether libtool must link a program against all its dependency libraries.
32886 link_all_deplibs=$link_all_deplibs_CXX
32888 # Set to "yes" if exported symbols are required.
32889 always_export_symbols=$always_export_symbols_CXX
32891 # The commands to list exported symbols.
32892 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32894 # Symbols that should not be listed in the preloaded symbols.
32895 exclude_expsyms=$lt_exclude_expsyms_CXX
32897 # Symbols that must always be exported.
32898 include_expsyms=$lt_include_expsyms_CXX
32900 # Commands necessary for linking programs (against libraries) with templates.
32901 prelink_cmds=$lt_prelink_cmds_CXX
32903 # Commands necessary for finishing linking programs.
32904 postlink_cmds=$lt_postlink_cmds_CXX
32906 # Specify filename containing input files.
32907 file_list_spec=$lt_file_list_spec_CXX
32909 # How to hardcode a shared library path into an executable.
32910 hardcode_action=$hardcode_action_CXX
32912 # The directories searched by this compiler when creating a shared library.
32913 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32915 # Dependencies to place before and after the objects being linked to
32916 # create a shared library.
32917 predep_objects=$lt_predep_objects_CXX
32918 postdep_objects=$lt_postdep_objects_CXX
32919 predeps=$lt_predeps_CXX
32920 postdeps=$lt_postdeps_CXX
32922 # The library search path used internally by the compiler when linking
32923 # a shared library.
32924 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32926 # ### END LIBTOOL TAG CONFIG: CXX
32931 for ac_file in $CONFIG_FILES; do
32932 # Support "outfile[:infile[:infile...]]"
32934 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32936 # PO directories have a Makefile.in generated from Makefile.in.in.
32937 case "$ac_file" in */Makefile.in)
32938 # Adjust a relative srcdir.
32939 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32940 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32941 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32942 # In autoconf-2.13 it is called $ac_given_srcdir.
32943 # In autoconf-2.50 it is called $srcdir.
32944 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32945 case "$ac_given_srcdir" in
32946 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32947 /*) top_srcdir="$ac_given_srcdir" ;;
32948 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
32950 # Treat a directory as a PO directory if and only if it has a
32951 # POTFILES.in file. This allows packages to have multiple PO
32952 # directories under different names or in different locations.
32953 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32954 rm -f "$ac_dir/POTFILES"
32955 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32956 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32957 POMAKEFILEDEPS="POTFILES.in"
32958 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32959 # on $ac_dir but don't depend on user-specified configuration
32961 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32962 # The LINGUAS file contains the set of available languages.
32963 if test -n "$OBSOLETE_ALL_LINGUAS"; then
32964 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32966 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32967 # Hide the ALL_LINGUAS assigment from automake.
32968 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32969 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32971 # The set of available languages was given in configure.in.
32972 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32975 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32976 # Compute UPDATEPOFILES
32977 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32978 # Compute DUMMYPOFILES
32979 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32981 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32982 case "$ac_given_srcdir" in
32984 *) srcdirpre='$(srcdir)/' ;;
32990 for lang in $ALL_LINGUAS; do
32991 POFILES="$POFILES $srcdirpre$lang.po"
32992 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32993 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32994 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32996 # CATALOGS depends on both $ac_dir and the user's LINGUAS
32997 # environment variable.
32999 if test -n "$ALL_LINGUAS"; then
33000 for presentlang in $ALL_LINGUAS; do
33002 if test "%UNSET%" != "$LINGUAS"; then
33003 desiredlanguages="$LINGUAS"
33005 desiredlanguages="$ALL_LINGUAS"
33007 for desiredlang in $desiredlanguages; do
33008 # Use the presentlang catalog if desiredlang is
33009 # a. equal to presentlang, or
33010 # b. a variant of presentlang (because in this case,
33011 # presentlang can be used as a fallback for messages
33012 # which are not translated in the desiredlang catalog).
33013 case "$desiredlang" in
33014 "$presentlang"*) useit=yes;;
33017 if test $useit = yes; then
33018 INST_LINGUAS="$INST_LINGUAS $presentlang"
33023 if test -n "$INST_LINGUAS"; then
33024 for lang in $INST_LINGUAS; do
33025 CATALOGS="$CATALOGS $lang.gmo"
33028 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33029 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"
33030 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33031 if test -f "$f"; then
33033 *.orig | *.bak | *~) ;;
33034 *) cat "$f" >> "$ac_dir/Makefile" ;;
33051 ac_clean_files=$ac_clean_files_save
33053 test $ac_write_fail = 0 ||
33054 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33057 # configure is writing to config.log, and then calls config.status.
33058 # config.status does its own redirection, appending to config.log.
33059 # Unfortunately, on DOS this fails, as config.log is still kept open
33060 # by configure, so config.status won't be able to write to it; its
33061 # output is simply discarded. So we exec the FD to /dev/null,
33062 # effectively closing config.log, so it can be properly (re)opened and
33063 # appended to by config.status. When coming back to configure, we
33064 # need to make the FD available again.
33065 if test "$no_create" != yes; then
33067 ac_config_status_args=
33068 test "$silent" = yes &&
33069 ac_config_status_args="$ac_config_status_args --quiet"
33071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33074 # would make configure fail if this is the last instruction.
33075 $ac_cs_success || as_fn_exit 1
33077 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33079 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33083 if test "${support_bat}" = "yes" ; then
33084 if test "x$QMAKE" = "xnone"; then
33085 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33089 echo "Creating bat Makefile"
33094 ${MAKE:-make} clean
33098 if test X"$GCC" = "Xyes" ; then
33099 echo "Doing make of dependencies"
33100 ${MAKE:-make} depend
33104 chmod 755 install_conf_file build-depkgs-qt-console
33108 chmod 755 bacula btraceback mtx-changer
33109 chmod 755 dvd-handler dvd-simulator
33110 chmod 755 bconsole mtx-changer devel_bacula logrotate
33114 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33115 chmod 755 $c/update_postgresql_tables_10_to_11
33116 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33117 chmod 755 $c/update_postgresql_tables_11_to_12
33122 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33123 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33125 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33126 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33128 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33129 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33131 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33132 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33134 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33135 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33138 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33139 chmod 755 $c/sqlite
33142 chmod 755 $c/install-default-backend
33144 chmod 755 src/win32/build-depkgs-mingw32
33146 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33147 largefile_support="yes"
33150 if test X"$GCC" = "Xyes" ; then
33151 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33152 if test "x${CCVERSION}" = "x" ; then
33153 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33155 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33156 if test x"${CXXVERSION}" = x ; then
33157 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33161 # clean up any old junk
33165 ${MAKE:-make} clean
33168 Configuration on `date`:
33170 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33171 Bacula version: ${BACULA} ${VERSION} (${DATE})
33172 Source code location: ${srcdir}
33173 Install binaries: ${sbindir}
33174 Install libraries: ${libdir}
33175 Install config files: ${sysconfdir}
33176 Scripts directory: ${scriptdir}
33177 Archive directory: ${archivedir}
33178 Working directory: ${working_dir}
33179 PID directory: ${piddir}
33180 Subsys directory: ${subsysdir}
33181 Man directory: ${mandir}
33182 Data directory: ${datarootdir}
33183 Plugin directory: ${plugindir}
33184 C Compiler: ${CC} ${CCVERSION}
33185 C++ Compiler: ${CXX} ${CXXVERSION}
33186 Compiler flags: ${WCFLAGS} ${CFLAGS}
33187 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33189 Statically Linked Tools: ${support_static_tools}
33190 Statically Linked FD: ${support_static_fd}
33191 Statically Linked SD: ${support_static_sd}
33192 Statically Linked DIR: ${support_static_dir}
33193 Statically Linked CONS: ${support_static_cons}
33194 Database backends: ${db_backends}
33195 Database port: ${db_port}
33196 Database name: ${db_name}
33197 Database user: ${db_user}
33199 Job Output Email: ${job_email}
33200 Traceback Email: ${dump_email}
33201 SMTP Host Address: ${smtp_host}
33203 Director Port: ${dir_port}
33204 File daemon Port: ${fd_port}
33205 Storage daemon Port: ${sd_port}
33207 Director User: ${dir_user}
33208 Director Group: ${dir_group}
33209 Storage Daemon User: ${sd_user}
33210 Storage DaemonGroup: ${sd_group}
33211 File Daemon User: ${fd_user}
33212 File Daemon Group: ${fd_group}
33214 Large file support: $largefile_support
33215 Bacula conio support: ${got_conio} ${CONS_LIBS}
33216 readline support: ${got_readline} ${PRTREADLINE_SRC}
33217 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33218 TLS support: ${support_tls}
33219 Encryption support: ${support_crypto}
33220 ZLIB support: ${have_zlib}
33221 LZO support: ${have_lzo}
33222 enable-smartalloc: ${support_smartalloc}
33223 enable-lockmgr: ${support_lockmgr}
33224 bat support: ${support_bat}
33225 enable-gnome: ${support_gnome} ${gnome_version}
33226 enable-bwx-console: ${support_wx_console} ${wx_version}
33227 enable-tray-monitor: ${support_tray_monitor}
33228 client-only: ${build_client_only}
33229 build-dird: ${build_dird}
33230 build-stored: ${build_stored}
33231 Plugin support: ${have_plugins}
33232 ACL support: ${have_acl}
33233 XATTR support: ${have_xattr}
33234 Python support: ${support_python} ${PYTHON_LIBS}
33235 Batch insert enabled: ${support_batch_insert}
33239 # create a small shell script useful for support with
33240 # configure options and config.out info
33241 cat > scripts/bacula_config << EOF
33244 $ $0 $ac_configure_args
33246 cat config.out >> scripts/bacula_config
33247 echo __EOC__ >> scripts/bacula_config
33248 chmod 755 scripts/bacula_config