2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 7.0.2.
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='7.0.2'
571 PACKAGE_STRING='bacula 7.0.2'
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
642 SHARED_CATALOG_TARGETS
712 INTL_LIBTOOL_SUFFIX_PREFIX
719 BUILD_INCLUDED_LIBINTL
750 HAVE_OPENBSD_OS_FALSE
754 HAVE_FREEBSD_OS_FALSE
768 INCLUDE_UNINSTALL_TARGET
769 INCLUDE_INSTALL_TARGET
773 LIBTOOL_UNINSTALL_TARGET
774 LIBTOOL_INSTALL_TARGET
775 DEFAULT_SHARED_OBJECT_TYPE
855 LIBBACFIND_LT_RELEASE
856 LIBBACCATS_LT_RELEASE
900 program_transform_name
911 ac_subst_files='MCOMMON'
913 enable_option_checking
927 with_included_gettext
962 with_mon_dir_password
991 ac_precious_vars='build_alias
1007 # Initialize some variables set by options.
1009 ac_init_version=false
1010 ac_unrecognized_opts=
1011 ac_unrecognized_sep=
1012 # The variables have the same names as the options, with
1013 # dashes changed to underlines.
1014 cache_file=/dev/null
1021 program_transform_name=s,x,x,
1029 # Installation directory options.
1030 # These are left unexpanded so users can "make install exec_prefix=/foo"
1031 # and all the variables that are supposed to be based on exec_prefix
1032 # by default will actually change.
1033 # Use braces instead of parens because sh, perl, etc. also accept them.
1034 # (The list follows the same order as the GNU Coding Standards.)
1035 bindir='${exec_prefix}/bin'
1036 sbindir='${exec_prefix}/sbin'
1037 libexecdir='${exec_prefix}/libexec'
1038 datarootdir='${prefix}/share'
1039 datadir='${datarootdir}'
1040 sysconfdir='${prefix}/etc'
1041 sharedstatedir='${prefix}/com'
1042 localstatedir='${prefix}/var'
1043 includedir='${prefix}/include'
1044 oldincludedir='/usr/include'
1045 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1046 infodir='${datarootdir}/info'
1051 libdir='${exec_prefix}/lib'
1052 localedir='${datarootdir}/locale'
1053 mandir='${datarootdir}/man'
1059 # If the previous option needs an argument, assign it.
1060 if test -n "$ac_prev"; then
1061 eval $ac_prev=\$ac_option
1067 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072 # Accept the important Cygnus configure options, so we can diagnose typos.
1074 case $ac_dashdash$ac_option in
1078 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081 bindir=$ac_optarg ;;
1083 -build | --build | --buil | --bui | --bu)
1084 ac_prev=build_alias ;;
1085 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086 build_alias=$ac_optarg ;;
1088 -cache-file | --cache-file | --cache-fil | --cache-fi \
1089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090 ac_prev=cache_file ;;
1091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093 cache_file=$ac_optarg ;;
1095 --config-cache | -C)
1096 cache_file=config.cache ;;
1098 -datadir | --datadir | --datadi | --datad)
1100 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101 datadir=$ac_optarg ;;
1103 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104 | --dataroo | --dataro | --datar)
1105 ac_prev=datarootdir ;;
1106 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108 datarootdir=$ac_optarg ;;
1110 -disable-* | --disable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid feature name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "enable_$ac_useropt"
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval enable_$ac_useropt=no ;;
1126 -docdir | --docdir | --docdi | --doc | --do)
1128 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1129 docdir=$ac_optarg ;;
1131 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1134 dvidir=$ac_optarg ;;
1136 -enable-* | --enable-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid feature name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "enable_$ac_useropt"
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1150 eval enable_$ac_useropt=\$ac_optarg ;;
1152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1154 | --exec | --exe | --ex)
1155 ac_prev=exec_prefix ;;
1156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1158 | --exec=* | --exe=* | --ex=*)
1159 exec_prefix=$ac_optarg ;;
1161 -gas | --gas | --ga | --g)
1162 # Obsolete; use --with-gas.
1165 -help | --help | --hel | --he | -h)
1166 ac_init_help=long ;;
1167 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1168 ac_init_help=recursive ;;
1169 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1170 ac_init_help=short ;;
1172 -host | --host | --hos | --ho)
1173 ac_prev=host_alias ;;
1174 -host=* | --host=* | --hos=* | --ho=*)
1175 host_alias=$ac_optarg ;;
1177 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181 htmldir=$ac_optarg ;;
1183 -includedir | --includedir | --includedi | --included | --include \
1184 | --includ | --inclu | --incl | --inc)
1185 ac_prev=includedir ;;
1186 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1187 | --includ=* | --inclu=* | --incl=* | --inc=*)
1188 includedir=$ac_optarg ;;
1190 -infodir | --infodir | --infodi | --infod | --info | --inf)
1192 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1193 infodir=$ac_optarg ;;
1195 -libdir | --libdir | --libdi | --libd)
1197 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1198 libdir=$ac_optarg ;;
1200 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1201 | --libexe | --libex | --libe)
1202 ac_prev=libexecdir ;;
1203 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1204 | --libexe=* | --libex=* | --libe=*)
1205 libexecdir=$ac_optarg ;;
1207 -localedir | --localedir | --localedi | --localed | --locale)
1208 ac_prev=localedir ;;
1209 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1210 localedir=$ac_optarg ;;
1212 -localstatedir | --localstatedir | --localstatedi | --localstated \
1213 | --localstate | --localstat | --localsta | --localst | --locals)
1214 ac_prev=localstatedir ;;
1215 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1216 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1217 localstatedir=$ac_optarg ;;
1219 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1222 mandir=$ac_optarg ;;
1224 -nfp | --nfp | --nf)
1225 # Obsolete; use --without-fp.
1228 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1229 | --no-cr | --no-c | -n)
1232 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1233 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1237 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1238 | --oldin | --oldi | --old | --ol | --o)
1239 ac_prev=oldincludedir ;;
1240 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1241 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1242 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1243 oldincludedir=$ac_optarg ;;
1245 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1248 prefix=$ac_optarg ;;
1250 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1251 | --program-pre | --program-pr | --program-p)
1252 ac_prev=program_prefix ;;
1253 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1254 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1255 program_prefix=$ac_optarg ;;
1257 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1258 | --program-suf | --program-su | --program-s)
1259 ac_prev=program_suffix ;;
1260 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1261 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1262 program_suffix=$ac_optarg ;;
1264 -program-transform-name | --program-transform-name \
1265 | --program-transform-nam | --program-transform-na \
1266 | --program-transform-n | --program-transform- \
1267 | --program-transform | --program-transfor \
1268 | --program-transfo | --program-transf \
1269 | --program-trans | --program-tran \
1270 | --progr-tra | --program-tr | --program-t)
1271 ac_prev=program_transform_name ;;
1272 -program-transform-name=* | --program-transform-name=* \
1273 | --program-transform-nam=* | --program-transform-na=* \
1274 | --program-transform-n=* | --program-transform-=* \
1275 | --program-transform=* | --program-transfor=* \
1276 | --program-transfo=* | --program-transf=* \
1277 | --program-trans=* | --program-tran=* \
1278 | --progr-tra=* | --program-tr=* | --program-t=*)
1279 program_transform_name=$ac_optarg ;;
1281 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1284 pdfdir=$ac_optarg ;;
1286 -psdir | --psdir | --psdi | --psd | --ps)
1288 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1299 sbindir=$ac_optarg ;;
1301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1303 | --sharedst | --shareds | --shared | --share | --shar \
1305 ac_prev=sharedstatedir ;;
1306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1310 sharedstatedir=$ac_optarg ;;
1312 -site | --site | --sit)
1314 -site=* | --site=* | --sit=*)
1317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1320 srcdir=$ac_optarg ;;
1322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1323 | --syscon | --sysco | --sysc | --sys | --sy)
1324 ac_prev=sysconfdir ;;
1325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1327 sysconfdir=$ac_optarg ;;
1329 -target | --target | --targe | --targ | --tar | --ta | --t)
1330 ac_prev=target_alias ;;
1331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1332 target_alias=$ac_optarg ;;
1334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337 -version | --version | --versio | --versi | --vers | -V)
1338 ac_init_version=: ;;
1341 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344 as_fn_error $? "invalid package name: $ac_useropt"
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1354 eval with_$ac_useropt=\$ac_optarg ;;
1356 -without-* | --without-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 as_fn_error $? "invalid package name: $ac_useropt"
1361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1370 eval with_$ac_useropt=no ;;
1373 # Obsolete; use --with-x.
1376 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1377 | --x-incl | --x-inc | --x-in | --x-i)
1378 ac_prev=x_includes ;;
1379 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1380 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1381 x_includes=$ac_optarg ;;
1383 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1384 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1385 ac_prev=x_libraries ;;
1386 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1387 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1388 x_libraries=$ac_optarg ;;
1390 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1391 Try \`$0 --help' for more information"
1395 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396 # Reject names that are not valid shell variable names.
1397 case $ac_envvar in #(
1398 '' | [0-9]* | *[!_$as_cr_alnum]* )
1399 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1401 eval $ac_envvar=\$ac_optarg
1402 export $ac_envvar ;;
1405 # FIXME: should be removed in autoconf 3.0.
1406 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1407 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1408 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1409 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1415 if test -n "$ac_prev"; then
1416 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1417 as_fn_error $? "missing argument to $ac_option"
1420 if test -n "$ac_unrecognized_opts"; then
1421 case $enable_option_checking in
1423 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1424 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428 # Check all directory arguments for consistency.
1429 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1430 datadir sysconfdir sharedstatedir localstatedir includedir \
1431 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1432 libdir localedir mandir
1434 eval ac_val=\$$ac_var
1435 # Remove trailing slashes.
1438 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1439 eval $ac_var=\$ac_val;;
1441 # Be sure to have absolute directory names.
1443 [\\/$]* | ?:[\\/]* ) continue;;
1444 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1449 # There might be people who depend on the old broken behavior: `$host'
1450 # used to hold the argument of --host etc.
1451 # FIXME: To remove some day.
1454 target=$target_alias
1456 # FIXME: To remove some day.
1457 if test "x$host_alias" != x; then
1458 if test "x$build_alias" = x; then
1459 cross_compiling=maybe
1460 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1461 If a cross compiler is detected then cross compile mode will be used" >&2
1462 elif test "x$build_alias" != "x$host_alias"; then
1468 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1470 test "$silent" = yes && exec 6>/dev/null
1473 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1474 ac_ls_di=`ls -di .` &&
1475 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1476 as_fn_error $? "working directory cannot be determined"
1477 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478 as_fn_error $? "pwd does not report name of working directory"
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483 ac_srcdir_defaulted=yes
1484 # Try the directory containing this script, then the parent directory.
1485 ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487 X"$as_myself" : 'X\(//\)[^/]' \| \
1488 X"$as_myself" : 'X\(//\)$' \| \
1489 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1513 ac_srcdir_defaulted=no
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1519 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1523 # When building in place, set srcdir=.
1524 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527 # Remove unnecessary trailing slashes from srcdir.
1528 # Double slashes in file names in object file debugging info
1529 # mess up M-x gdb in Emacs.
1531 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1533 for ac_var in $ac_precious_vars; do
1534 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1535 eval ac_env_${ac_var}_value=\$${ac_var}
1536 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1541 # Report the --help message.
1543 if test "$ac_init_help" = "long"; then
1544 # Omit some internal or obsolete options to make the list less imposing.
1545 # This message is too long to be a string in the A/UX 3.1 sh.
1547 \`configure' configures bacula 7.0.2 to adapt to many kinds of systems.
1549 Usage: $0 [OPTION]... [VAR=VALUE]...
1551 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1552 VAR=VALUE. See below for descriptions of some of the useful variables.
1554 Defaults for the options are specified in brackets.
1557 -h, --help display this help and exit
1558 --help=short display options specific to this package
1559 --help=recursive display the short help of all the included packages
1560 -V, --version display version information and exit
1561 -q, --quiet, --silent do not print \`checking ...' messages
1562 --cache-file=FILE cache test results in FILE [disabled]
1563 -C, --config-cache alias for \`--cache-file=config.cache'
1564 -n, --no-create do not create output files
1565 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1567 Installation directories:
1568 --prefix=PREFIX install architecture-independent files in PREFIX
1569 [$ac_default_prefix]
1570 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1573 By default, \`make install' will install all the files in
1574 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1575 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1576 for instance \`--prefix=\$HOME'.
1578 For better control, use the options below.
1580 Fine tuning of the installation directories:
1581 --bindir=DIR user executables [EPREFIX/bin]
1582 --sbindir=DIR system admin executables [EPREFIX/sbin]
1583 --libexecdir=DIR program executables [EPREFIX/libexec]
1584 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1585 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1586 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1587 --libdir=DIR object code libraries [EPREFIX/lib]
1588 --includedir=DIR C header files [PREFIX/include]
1589 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1590 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1591 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1592 --infodir=DIR info documentation [DATAROOTDIR/info]
1593 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1594 --mandir=DIR man documentation [DATAROOTDIR/man]
1595 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1596 --htmldir=DIR html documentation [DOCDIR]
1597 --dvidir=DIR dvi documentation [DOCDIR]
1598 --pdfdir=DIR pdf documentation [DOCDIR]
1599 --psdir=DIR ps documentation [DOCDIR]
1605 --x-includes=DIR X include files are in DIR
1606 --x-libraries=DIR X library files are in DIR
1609 --build=BUILD configure for building on BUILD [guessed]
1610 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1614 if test -n "$ac_init_help"; then
1615 case $ac_init_help in
1616 short | recursive ) echo "Configuration of bacula 7.0.2:";;
1621 --disable-option-checking ignore unrecognized --enable/--with options
1622 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1623 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1624 --enable-libtool enable building using GNU libtool [default=yes]
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-static[=PKGS] build static libraries [default=no]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --enable-includes enable installing of include files [default=no]
1631 --disable-nls do not use Native Language Support
1632 --disable-rpath do not hardcode runtime library paths
1633 --enable-bat enable build of bat Qt4 GUI [default=no]
1634 --enable-smartalloc enable smartalloc debugging support [default=no]
1635 --enable-lockmgr enable lock manager support [default=no]
1636 --enable-static-tools enable static tape tools [default=no]
1637 --enable-static-fd enable static File daemon [default=no]
1638 --enable-static-sd enable static Storage daemon [default=no]
1639 --enable-static-dir enable static Director [default=no]
1640 --enable-static-cons enable static Console [default=no]
1641 --enable-client-only build client (File daemon) only [default=no]
1642 --enable-build-dird enable building of dird (Director) [default=yes]
1643 --enable-build-stored enable building of stored (Storage daemon)
1645 --disable-conio disable conio support [default=no]
1646 --enable-ipv6 enable ipv6 support [default=yes]
1647 --disable-readline disable readline support [default=yes]
1648 --enable-batch-insert enable the DB batch insert code [default=yes]
1649 --disable-largefile omit support for large files
1650 --disable-afs disable afs support [default=auto]
1651 --disable-lzo disable lzo support [default=yes]
1652 --disable-acl disable acl support [default=auto]
1653 --disable-xattr disable xattr support [default=auto]
1656 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1657 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1658 --with-pic try to use only PIC/non-PIC objects [default=use
1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1661 --with-sysroot=DIR Search for dependent libraries within DIR
1662 (or the compiler's sysroot if not specified).
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1666 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1667 --without-libintl-prefix don't search for libintl in includedir and libdir
1668 --with-included-gettext use the GNU gettext library included here
1669 --with-readline[=DIR] specify readline library directory
1670 --with-tcp-wrappers[=DIR]
1671 enable tcpwrappers support
1672 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1673 --with-working-dir=PATH specify path of Bacula working directory
1674 --with-archivedir=PATH specify path of SD archive directory
1675 --with-basename=RESNAME specify base resource name for daemons
1676 --with-hostname=RESNAME specify host name for daemons
1677 --with-scriptdir=PATH specify path of Bacula scripts directory
1678 --with-bsrdir=PATH specify path of Bacula bsrs directory
1679 --with-logdir=PATH specify path of Bacula logs directory
1680 --with-plugindir=PATH specify path of Bacula plugins directory
1681 --with-dump-email=EMAIL dump email address
1682 --with-job-email=EMAIL job output email address
1683 --with-smtp-host=HOST SMTP mail host address
1684 --with-pid-dir=PATH specify location of Bacula pid files
1685 --with-subsys-dir=PATH specify location of Bacula subsys file
1686 --with-baseport=PORT specify base port address for daemons
1687 --with-dir-password=PASSWORD
1688 specify Director's password
1689 --with-fd-password=PASSWORD
1690 specify Client's password
1691 --with-sd-password=PASSWORD
1692 specify Storage daemon's password
1693 --with-mon-dir-password=PASSWORD
1694 specify Director's password used by the monitor
1695 --with-mon-fd-password=PASSWORD
1696 specify Client's password used by the monitor
1697 --with-mon-sd-password=PASSWORD
1698 specify Storage daemon's password used by the
1700 --with-db-name=DBNAME specify database name [default=bacula]
1701 --with-db-user=UNAME specify database user [default=bacula]
1702 --with-db-password=PWD specify database password [default=*none*]
1703 --with-db-port=DBPORT specify a database port [default=null]
1704 --with-dir-user=USER specify user for Director daemon
1705 --with-dir-group=GROUP specify group for Director daemon
1706 --with-sd-user=USER specify user for Storage daemon
1707 --with-sd-group=GROUP specify group for Storage daemon
1708 --with-fd-user=USER specify user for File daemon
1709 --with-fd-group=GROUP specify group for File daemon
1710 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1711 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1712 base install directory, [default=/usr/local/pgsql]
1713 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1714 directory, default is to search through a number of
1715 common places for the MySQL files.
1716 --with-embedded-mysql[=DIR]
1717 Include MySQL support. DIR is the MySQL base install
1718 directory, default is to search through a number of
1719 common places for the MySQL files.
1720 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1721 install directory, default is to search through a
1722 number of common places for the SQLite3 files.
1723 --with-x use the X Window System
1724 --with-afsdir[=DIR] Directory holding AFS includes/libs
1725 --with-lzo[=DIR] specify lzo library directory
1726 --with-systemd[=UNITDIR]
1727 Include systemd support. UNITDIR is where systemd
1728 system .service files are located, default is to ask
1731 Some influential environment variables:
1732 CC C compiler command
1733 CFLAGS C compiler flags
1734 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1735 nonstandard directory <lib dir>
1736 LIBS libraries to pass to the linker, e.g. -l<library>
1737 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1738 you have headers in a nonstandard directory <include dir>
1739 CXX C++ compiler command
1740 CXXFLAGS C++ compiler flags
1742 CXXCPP C++ preprocessor
1743 XMKMF Path to xmkmf, Makefile generator for X Window System
1745 Use these variables to override the choices made by `configure' or to help
1746 it to find libraries and programs with nonstandard names/locations.
1748 Report bugs to the package provider.
1753 if test "$ac_init_help" = "recursive"; then
1754 # If there are subdirs, report their specific --help.
1755 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1756 test -d "$ac_dir" ||
1757 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1765 # A ".." for each directory in $ac_dir_suffix.
1766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1767 case $ac_top_builddir_sub in
1768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1772 ac_abs_top_builddir=$ac_pwd
1773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1774 # for backward compatibility:
1775 ac_top_builddir=$ac_top_build_prefix
1778 .) # We are building in place.
1780 ac_top_srcdir=$ac_top_builddir_sub
1781 ac_abs_top_srcdir=$ac_pwd ;;
1782 [\\/]* | ?:[\\/]* ) # Absolute name.
1783 ac_srcdir=$srcdir$ac_dir_suffix;
1784 ac_top_srcdir=$srcdir
1785 ac_abs_top_srcdir=$srcdir ;;
1787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1788 ac_top_srcdir=$ac_top_build_prefix$srcdir
1789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1793 cd "$ac_dir" || { ac_status=$?; continue; }
1794 # Check for guested configure.
1795 if test -f "$ac_srcdir/configure.gnu"; then
1797 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1798 elif test -f "$ac_srcdir/configure"; then
1800 $SHELL "$ac_srcdir/configure" --help=recursive
1802 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1804 cd "$ac_pwd" || { ac_status=$?; break; }
1808 test -n "$ac_init_help" && exit $ac_status
1809 if $ac_init_version; then
1811 bacula configure 7.0.2
1812 generated by GNU Autoconf 2.68
1814 Copyright (C) 2010 Free Software Foundation, Inc.
1815 This configure script is free software; the Free Software Foundation
1816 gives unlimited permission to copy, distribute and modify it.
1821 ## ------------------------ ##
1822 ## Autoconf initialization. ##
1823 ## ------------------------ ##
1825 # ac_fn_c_try_compile LINENO
1826 # --------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_c_try_compile
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_cxx_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_cxx_try_compile
1901 # ac_fn_c_try_cpp LINENO
1902 # ----------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_cpp conftest.$ac_ext"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } > conftest.i && {
1923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1938 # ac_fn_c_try_link LINENO
1939 # -----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext conftest$ac_exeext
1945 if { { ac_try="$ac_link"
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>conftest.err
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_c_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest$ac_exeext && {
1964 test "$cross_compiling" = yes ||
1965 $as_test_x conftest$ac_exeext
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1974 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976 # interfere with the next link command; also delete a directory that is
1977 # left behind by Apple's compiler. We do this before executing the actions.
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
1982 } # ac_fn_c_try_link
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2001 if ac_fn_c_try_compile "$LINENO"; then :
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_header_compile
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2057 # ac_fn_c_check_func LINENO FUNC VAR
2058 # ----------------------------------
2059 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2060 ac_fn_c_check_func ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2072 #define $2 innocuous_$2
2074 /* System header to define __stub macros and hopefully few prototypes,
2075 which can conflict with char $2 (); below.
2076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2077 <limits.h> exists even on freestanding compilers. */
2080 # include <limits.h>
2082 # include <assert.h>
2087 /* Override any GCC internal prototype to avoid an error.
2088 Use char because int might match the return type of a GCC
2089 builtin and then its argument prototype would still apply. */
2094 /* The GNU C library defines this for functions which it implements
2095 to always fail with ENOSYS. Some functions are actually named
2096 something starting with __ and the normal name is an alias. */
2097 #if defined __stub_$2 || defined __stub___$2
2109 if ac_fn_c_try_link "$LINENO"; then :
2114 rm -f core conftest.err conftest.$ac_objext \
2115 conftest$ac_exeext conftest.$ac_ext
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 } # ac_fn_c_check_func
2124 # ac_fn_cxx_try_cpp LINENO
2125 # ------------------------
2126 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_cxx_try_cpp ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 if { { ac_try="$ac_cpp conftest.$ac_ext"
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } > conftest.i && {
2146 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2147 test ! -s conftest.err
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 as_fn_set_status $ac_retval
2159 } # ac_fn_cxx_try_cpp
2161 # ac_fn_cxx_try_link LINENO
2162 # -------------------------
2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_cxx_try_link ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 rm -f conftest.$ac_objext conftest$ac_exeext
2168 if { { ac_try="$ac_link"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_link") 2>conftest.err
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_cxx_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest$ac_exeext && {
2187 test "$cross_compiling" = yes ||
2188 $as_test_x conftest$ac_exeext
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2197 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2198 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2199 # interfere with the next link command; also delete a directory that is
2200 # left behind by Apple's compiler. We do this before executing the actions.
2201 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 as_fn_set_status $ac_retval
2205 } # ac_fn_cxx_try_link
2207 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2208 # ---------------------------------------------
2209 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2211 ac_fn_c_check_decl ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 as_decl_name=`echo $2|sed 's/ *(.*//'`
2215 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2217 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2218 if eval \${$3+:} false; then :
2219 $as_echo_n "(cached) " >&6
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 #ifndef $as_decl_name
2229 (void) $as_decl_use;
2231 (void) $as_decl_name;
2239 if ac_fn_c_try_compile "$LINENO"; then :
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 } # ac_fn_c_check_decl
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 } # ac_fn_c_check_type
2307 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2308 # -------------------------------------------------------
2309 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2310 # the include files in INCLUDES and setting the cache variable VAR
2312 ac_fn_c_check_header_mongrel ()
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 if eval \${$3+:} false; then :
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if eval \${$3+:} false; then :
2319 $as_echo_n "(cached) " >&6
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2325 # Is the header compilable?
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2327 $as_echo_n "checking $2 usability... " >&6; }
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 ac_header_compiler=yes
2336 ac_header_compiler=no
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2340 $as_echo "$ac_header_compiler" >&6; }
2342 # Is the header present?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2344 $as_echo_n "checking $2 presence... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2349 if ac_fn_c_try_cpp "$LINENO"; then :
2350 ac_header_preproc=yes
2352 ac_header_preproc=no
2354 rm -f conftest.err conftest.i conftest.$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2356 $as_echo "$ac_header_preproc" >&6; }
2358 # So? What about this header?
2359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2362 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2368 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2370 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2372 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2374 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2376 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382 $as_echo_n "(cached) " >&6
2384 eval "$3=\$ac_header_compiler"
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 } # ac_fn_c_check_header_mongrel
2394 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2395 # --------------------------------------------
2396 # Tries to find the compile-time value of EXPR in a program that includes
2397 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2399 ac_fn_c_compute_int ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 if test "$cross_compiling" = yes; then
2403 # Depending upon the size, compute the lo and hi bounds.
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2410 static int test_array [1 - 2 * !(($2) >= 0)];
2417 if ac_fn_c_try_compile "$LINENO"; then :
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2426 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 ac_hi=$ac_mid; break
2436 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2437 if test $ac_lo -le $ac_mid; then
2441 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2452 static int test_array [1 - 2 * !(($2) < 0)];
2459 if ac_fn_c_try_compile "$LINENO"; then :
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2468 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2475 if ac_fn_c_try_compile "$LINENO"; then :
2476 ac_lo=$ac_mid; break
2478 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2479 if test $ac_mid -le $ac_hi; then
2483 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 # Binary search between lo and hi bounds.
2494 while test "x$ac_lo" != "x$ac_hi"; do
2495 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2502 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2509 if ac_fn_c_try_compile "$LINENO"; then :
2512 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2524 static long int longval () { return $2; }
2525 static unsigned long int ulongval () { return $2; }
2532 FILE *f = fopen ("conftest.val", "w");
2537 long int i = longval ();
2540 fprintf (f, "%ld", i);
2544 unsigned long int i = ulongval ();
2547 fprintf (f, "%lu", i);
2549 /* Do not output a trailing newline, as this causes \r\n confusion
2550 on some platforms. */
2551 return ferror (f) || fclose (f) != 0;
2557 if ac_fn_c_try_run "$LINENO"; then :
2558 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2563 conftest.$ac_objext conftest.beam conftest.$ac_ext
2567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2568 as_fn_set_status $ac_retval
2570 } # ac_fn_c_compute_int
2572 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2573 # ----------------------------------------------------
2574 # Tries to find if the field MEMBER exists in type AGGR, after including
2575 # INCLUDES, setting cache variable VAR accordingly.
2576 ac_fn_c_check_member ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2580 $as_echo_n "checking for $2.$3... " >&6; }
2581 if eval \${$4+:} false; then :
2582 $as_echo_n "(cached) " >&6
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2597 if ac_fn_c_try_compile "$LINENO"; then :
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2607 if (sizeof ac_aggr.$3)
2613 if ac_fn_c_try_compile "$LINENO"; then :
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2627 } # ac_fn_c_check_member
2629 # ac_fn_cxx_try_run LINENO
2630 # ------------------------
2631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2632 # that executables *can* be run.
2633 ac_fn_cxx_try_run ()
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 if { { ac_try="$ac_link"
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_link") 2>&5
2645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2647 { { case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652 $as_echo "$ac_try_echo"; } >&5
2653 (eval "$ac_try") 2>&5
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; }; }; then :
2659 $as_echo "$as_me: program exited with status $ac_status" >&5
2660 $as_echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2663 ac_retval=$ac_status
2665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667 as_fn_set_status $ac_retval
2669 } # ac_fn_cxx_try_run
2671 # ac_fn_cxx_check_func LINENO FUNC VAR
2672 # ------------------------------------
2673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2674 ac_fn_cxx_check_func ()
2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680 $as_echo_n "(cached) " >&6
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2686 #define $2 innocuous_$2
2688 /* System header to define __stub macros and hopefully few prototypes,
2689 which can conflict with char $2 (); below.
2690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2691 <limits.h> exists even on freestanding compilers. */
2694 # include <limits.h>
2696 # include <assert.h>
2701 /* Override any GCC internal prototype to avoid an error.
2702 Use char because int might match the return type of a GCC
2703 builtin and then its argument prototype would still apply. */
2708 /* The GNU C library defines this for functions which it implements
2709 to always fail with ENOSYS. Some functions are actually named
2710 something starting with __ and the normal name is an alias. */
2711 #if defined __stub_$2 || defined __stub___$2
2723 if ac_fn_cxx_try_link "$LINENO"; then :
2728 rm -f core conftest.err conftest.$ac_objext \
2729 conftest$ac_exeext conftest.$ac_ext
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736 } # ac_fn_cxx_check_func
2737 cat >config.log <<_ACEOF
2738 This file contains any messages produced by compilers while
2739 running configure, to aid debugging if configure makes a mistake.
2741 It was created by bacula $as_me 7.0.2, which was
2742 generated by GNU Autoconf 2.68. Invocation command line was
2754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir=.
2778 $as_echo "PATH: $as_dir"
2794 # Keep a trace of the command line.
2795 # Strip out --no-create and --no-recursion so they do not pile up.
2796 # Strip out --silent because we don't want to record it for future runs.
2797 # Also quote any args containing shell meta-characters.
2798 # Make two passes to allow for proper duplicate-argument suppression.
2802 ac_must_keep_next=false
2808 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2810 | -silent | --silent | --silen | --sile | --sil)
2813 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2816 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2818 as_fn_append ac_configure_args1 " '$ac_arg'"
2819 if test $ac_must_keep_next = true; then
2820 ac_must_keep_next=false # Got value, back to normal.
2823 *=* | --config-cache | -C | -disable-* | --disable-* \
2824 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2825 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2826 | -with-* | --with-* | -without-* | --without-* | --x)
2827 case "$ac_configure_args0 " in
2828 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2831 -* ) ac_must_keep_next=true ;;
2834 as_fn_append ac_configure_args " '$ac_arg'"
2839 { ac_configure_args0=; unset ac_configure_args0;}
2840 { ac_configure_args1=; unset ac_configure_args1;}
2842 # When interrupted or exit'd, cleanup temporary files, and complete
2843 # config.log. We remove comments because anyway the quotes in there
2844 # would cause problems or look ugly.
2845 # WARNING: Use '\'' to represent an apostrophe within the trap.
2846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2847 trap 'exit_status=$?
2848 # Save into config.log some information that might help in debugging.
2852 $as_echo "## ---------------- ##
2853 ## Cache variables. ##
2854 ## ---------------- ##"
2856 # The following way of writing the cache mishandles newlines in values,
2858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859 eval ac_val=\$$ac_var
2863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2867 _ | IFS | as_nl) ;; #(
2868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869 *) { eval $ac_var=; unset $ac_var;} ;;
2874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875 *${as_nl}ac_space=\ *)
2877 "s/'\''/'\''\\\\'\'''\''/g;
2878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2888 $as_echo "## ----------------- ##
2889 ## Output variables. ##
2890 ## ----------------- ##"
2892 for ac_var in $ac_subst_vars
2894 eval ac_val=\$$ac_var
2896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898 $as_echo "$ac_var='\''$ac_val'\''"
2902 if test -n "$ac_subst_files"; then
2903 $as_echo "## ------------------- ##
2904 ## File substitutions. ##
2905 ## ------------------- ##"
2907 for ac_var in $ac_subst_files
2909 eval ac_val=\$$ac_var
2911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2913 $as_echo "$ac_var='\''$ac_val'\''"
2918 if test -s confdefs.h; then
2919 $as_echo "## ----------- ##
2926 test "$ac_signal" != 0 &&
2927 $as_echo "$as_me: caught signal $ac_signal"
2928 $as_echo "$as_me: exit $exit_status"
2930 rm -f core *.core core.conftest.* &&
2931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2934 for ac_signal in 1 2 13 15; do
2935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2940 rm -f -r conftest* confdefs.h
2942 $as_echo "/* confdefs.h */" > confdefs.h
2944 # Predefined preprocessor variables.
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_NAME "$PACKAGE_NAME"
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_STRING "$PACKAGE_STRING"
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_URL "$PACKAGE_URL"
2971 # Let the site file select an alternate cache file if it wants to.
2972 # Prefer an explicitly selected file to automatically selected ones.
2975 if test -n "$CONFIG_SITE"; then
2976 # We do not want a PATH search for config.site.
2977 case $CONFIG_SITE in #((
2978 -*) ac_site_file1=./$CONFIG_SITE;;
2979 */*) ac_site_file1=$CONFIG_SITE;;
2980 *) ac_site_file1=./$CONFIG_SITE;;
2982 elif test "x$prefix" != xNONE; then
2983 ac_site_file1=$prefix/share/config.site
2984 ac_site_file2=$prefix/etc/config.site
2986 ac_site_file1=$ac_default_prefix/share/config.site
2987 ac_site_file2=$ac_default_prefix/etc/config.site
2989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2991 test "x$ac_site_file" = xNONE && continue
2992 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2995 sed 's/^/| /' "$ac_site_file" >&5
2997 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 as_fn_error $? "failed to load site script $ac_site_file
3000 See \`config.log' for more details" "$LINENO" 5; }
3004 if test -r "$cache_file"; then
3005 # Some versions of bash will fail to source /dev/null (special files
3006 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3007 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3009 $as_echo "$as_me: loading cache $cache_file" >&6;}
3011 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3012 *) . "./$cache_file";;
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3017 $as_echo "$as_me: creating cache $cache_file" >&6;}
3021 as_fn_append ac_header_list " stdlib.h"
3022 as_fn_append ac_header_list " unistd.h"
3023 as_fn_append ac_header_list " sys/param.h"
3024 # Check that the precious variables saved in the cache have kept the same
3026 ac_cache_corrupted=false
3027 for ac_var in $ac_precious_vars; do
3028 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3029 eval ac_new_set=\$ac_env_${ac_var}_set
3030 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3031 eval ac_new_val=\$ac_env_${ac_var}_value
3032 case $ac_old_set,$ac_new_set in
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3036 ac_cache_corrupted=: ;;
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3040 ac_cache_corrupted=: ;;
3043 if test "x$ac_old_val" != "x$ac_new_val"; then
3044 # differences in whitespace do not lead to failure.
3045 ac_old_val_w=`echo x $ac_old_val`
3046 ac_new_val_w=`echo x $ac_new_val`
3047 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3050 ac_cache_corrupted=:
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3054 eval $ac_var=\$ac_old_val
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3057 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3059 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3062 # Pass precious variables to config.status.
3063 if test "$ac_new_set" = set; then
3065 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3066 *) ac_arg=$ac_var=$ac_new_val ;;
3068 case " $ac_configure_args " in
3069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3070 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3074 if $ac_cache_corrupted; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3079 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3081 ## -------------------- ##
3082 ## Main body of script. ##
3083 ## -------------------- ##
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3102 if test -f "$ac_dir/install-sh"; then
3104 ac_install_sh="$ac_aux_dir/install-sh -c"
3106 elif test -f "$ac_dir/install.sh"; then
3108 ac_install_sh="$ac_aux_dir/install.sh -c"
3110 elif test -f "$ac_dir/shtool"; then
3112 ac_install_sh="$ac_aux_dir/shtool install -c"
3116 if test -z "$ac_aux_dir"; then
3117 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3120 # These three variables are undocumented and unsupported,
3121 # and are intended to be withdrawn in a future Autoconf release.
3122 # They can cause serious problems if a builder's source tree is in a directory
3123 # whose full name contains unusual characters.
3124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3129 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3134 # Extract the first word of "$ac_prog", so it can be a program name with args.
3135 set dummy $ac_prog; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_path_TRUEPRG+:} false; then :
3139 $as_echo_n "(cached) " >&6
3143 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 TRUEPRG=$ac_cv_path_TRUEPRG
3165 if test -n "$TRUEPRG"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3167 $as_echo "$TRUEPRG" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$TRUEPRG" && break
3176 test -n "$TRUEPRG" || TRUEPRG=":"
3178 for ac_prog in false
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_path_FALSEPRG+:} false; then :
3185 $as_echo_n "(cached) " >&6
3189 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 FALSEPRG=$ac_cv_path_FALSEPRG
3211 if test -n "$FALSEPRG"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3213 $as_echo "$FALSEPRG" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3220 test -n "$FALSEPRG" && break
3222 test -n "$FALSEPRG" || FALSEPRG=":"
3227 if test "x$BACULA" != x; then
3228 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3230 BACULA=${BACULA:-Bacula}
3231 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3232 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3233 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3234 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3236 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3237 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3238 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3240 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3241 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3243 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3244 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3247 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3248 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3250 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3251 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3254 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3259 echo "configuring for ${BACULA} $VERSION ($DATE)"
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3307 if test -z "$ac_cv_prog_CC"; then
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3345 if test "x$ac_ct_CC" = x; then
3348 case $cross_compiling:$ac_tool_warned in
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352 ac_tool_warned=yes ;;
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}cc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_CC="${ac_tool_prefix}cc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3401 if test -z "$CC"; then
3402 # Extract the first word of "cc", so it can be a program name with args.
3403 set dummy cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421 ac_prog_rejected=yes
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 if test $ac_prog_rejected = yes; then
3433 # We found a bogon in the path, so make sure we never use it.
3434 set dummy $ac_cv_prog_CC
3436 if test $# != 0; then
3437 # We chose a different compiler from the bogus one.
3438 # However, it has the same basename, so the bogon will be chosen
3439 # first if we set CC to just the basename; use the full file name.
3441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3457 if test -z "$CC"; then
3458 if test -n "$ac_tool_prefix"; then
3459 for ac_prog in cl.exe
3461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3498 test -n "$CC" && break
3501 if test -z "$CC"; then
3503 for ac_prog in cl.exe
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3512 if test -n "$ac_ct_CC"; then
3513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_ac_ct_CC="$ac_prog"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535 $as_echo "$ac_ct_CC" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3542 test -n "$ac_ct_CC" && break
3545 if test "x$ac_ct_CC" = x; then
3548 case $cross_compiling:$ac_tool_warned in
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details" "$LINENO" 5; }
3566 # Provide some information about the compiler.
3567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3570 for ac_option in --version -v -V -qversion; do
3571 { { ac_try="$ac_compiler $ac_option >&5"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3580 if test -s conftest.err; then
3582 ... rest of stderr output deleted ...
3583 10q' conftest.err >conftest.er1
3584 cat conftest.er1 >&5
3586 rm -f conftest.er1 conftest.err
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3602 ac_clean_files_save=$ac_clean_files
3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604 # Try to create an executable without -o first, disregard a.out.
3605 # It will help us diagnose broken compilers, and finding out an intuition
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608 $as_echo_n "checking whether the C compiler works... " >&6; }
3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3611 # The possible output files:
3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3615 for ac_file in $ac_files
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3624 if { { ac_try="$ac_link_default"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link_default") 2>&5
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3640 for ac_file in $ac_files ''
3642 test -f "$ac_file" || continue
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3647 # We found the default executable, but exeext='' is most
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3670 if test -z "$ac_file"; then :
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error 77 "C compiler cannot create executables
3679 See \`config.log' for more details" "$LINENO" 5; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685 $as_echo_n "checking for C compiler default output file name... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 ac_exeext=$ac_cv_exeext
3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693 $as_echo_n "checking for suffix of executables... " >&6; }
3694 if { { ac_try="$ac_link"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3707 # work properly (i.e., refer to `conftest.exe'), while it won't with
3709 for ac_file in conftest.exe conftest conftest.*; do
3710 test -f "$ac_file" || continue
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3722 See \`config.log' for more details" "$LINENO" 5; }
3724 rm -f conftest conftest$ac_cv_exeext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726 $as_echo "$ac_cv_exeext" >&6; }
3728 rm -f conftest.$ac_ext
3729 EXEEXT=$ac_cv_exeext
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3737 FILE *f = fopen ("conftest.out", "w");
3738 return ferror (f) || fclose (f) != 0;
3744 ac_clean_files="$ac_clean_files conftest.out"
3745 # Check that the compiler produces executables we can run. If not, either
3746 # the compiler is broken, or we cross compile.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748 $as_echo_n "checking whether we are cross compiling... " >&6; }
3749 if test "$cross_compiling" != yes; then
3750 { { ac_try="$ac_link"
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3761 if { ac_try='./conftest$ac_cv_exeext'
3762 { { case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_try") 2>&5
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; }; then
3774 if test "$cross_compiling" = maybe; then
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot run C compiled programs.
3780 If you meant to cross compile, use \`--host'.
3781 See \`config.log' for more details" "$LINENO" 5; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789 ac_clean_files=$ac_clean_files_save
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3791 $as_echo_n "checking for suffix of object files... " >&6; }
3792 if ${ac_cv_objext+:} false; then :
3793 $as_echo_n "(cached) " >&6
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3806 rm -f conftest.o conftest.obj
3807 if { { ac_try="$ac_compile"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_compile") 2>&5
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 for ac_file in conftest.o conftest.obj conftest.*; do
3819 test -f "$ac_file" || continue;
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of object files: cannot compile
3833 See \`config.log' for more details" "$LINENO" 5; }
3835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3838 $as_echo "$ac_cv_objext" >&6; }
3839 OBJEXT=$ac_cv_objext
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3842 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3843 if ${ac_cv_c_compiler_gnu+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3860 if ac_fn_c_try_compile "$LINENO"; then :
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3870 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3871 if test $ac_compiler_gnu = yes; then
3876 ac_test_CFLAGS=${CFLAGS+set}
3877 ac_save_CFLAGS=$CFLAGS
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3880 if ${ac_cv_prog_cc_g+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 ac_save_c_werror_flag=$ac_c_werror_flag
3884 ac_c_werror_flag=yes
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3898 if ac_fn_c_try_compile "$LINENO"; then :
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3913 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3929 if ac_fn_c_try_compile "$LINENO"; then :
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3940 $as_echo "$ac_cv_prog_cc_g" >&6; }
3941 if test "$ac_test_CFLAGS" = set; then
3942 CFLAGS=$ac_save_CFLAGS
3943 elif test $ac_cv_prog_cc_g = yes; then
3944 if test "$GCC" = yes; then
3950 if test "$GCC" = yes; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3958 if ${ac_cv_prog_cc_c89+:} false; then :
3959 $as_echo_n "(cached) " >&6
3961 ac_cv_prog_cc_c89=no
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3967 #include <sys/types.h>
3968 #include <sys/stat.h>
3969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3970 struct buf { int x; };
3971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3972 static char *e (p, i)
3978 static char *f (char * (*g) (char **, int), char **p, ...)
3983 s = g (p, va_arg (v,int));
3988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3989 function prototypes and stuff, but not '\xHH' hex character constants.
3990 These don't provoke an error unfortunately, instead are silently treated
3991 as 'x'. The following induces an error, until -std is added to get
3992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3993 array size at least. It's necessary to write '\x00'==0 to get something
3994 that's true only with -std. */
3995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3998 inside strings and character constants. */
4000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4002 int test (int i, double x);
4003 struct s1 {int (*f) (int a);};
4004 struct s2 {int (*f) (double a);};
4005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019 CC="$ac_save_CC $ac_arg"
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_c89=$ac_arg
4023 rm -f core conftest.err conftest.$ac_objext
4024 test "x$ac_cv_prog_cc_c89" != "xno" && break
4026 rm -f conftest.$ac_ext
4031 case "x$ac_cv_prog_cc_c89" in
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4034 $as_echo "none needed" >&6; } ;;
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;;
4039 CC="$CC $ac_cv_prog_cc_c89"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4043 if test "x$ac_cv_prog_cc_c89" != xno; then :
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 ac_cpp='$CXXCPP $CPPFLAGS'
4055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4058 if test -z "$CXX"; then
4059 if test -n "$CCC"; then
4062 if test -n "$ac_tool_prefix"; then
4063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_CXX+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 if test -n "$CXX"; then
4073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 if test -n "$CXX"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4095 $as_echo "$CXX" >&6; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4102 test -n "$CXX" && break
4105 if test -z "$CXX"; then
4107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4114 $as_echo_n "(cached) " >&6
4116 if test -n "$ac_ct_CXX"; then
4117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_ac_ct_CXX="$ac_prog"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4137 if test -n "$ac_ct_CXX"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4139 $as_echo "$ac_ct_CXX" >&6; }
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4146 test -n "$ac_ct_CXX" && break
4149 if test "x$ac_ct_CXX" = x; then
4152 case $cross_compiling:$ac_tool_warned in
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4156 ac_tool_warned=yes ;;
4164 # Provide some information about the compiler.
4165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4168 for ac_option in --version -v -V -qversion; do
4169 { { ac_try="$ac_compiler $ac_option >&5"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4178 if test -s conftest.err; then
4180 ... rest of stderr output deleted ...
4181 10q' conftest.err >conftest.er1
4182 cat conftest.er1 >&5
4184 rm -f conftest.er1 conftest.err
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4190 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4191 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4208 if ac_fn_cxx_try_compile "$LINENO"; then :
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4218 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4219 if test $ac_compiler_gnu = yes; then
4224 ac_test_CXXFLAGS=${CXXFLAGS+set}
4225 ac_save_CXXFLAGS=$CXXFLAGS
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4227 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4228 if ${ac_cv_prog_cxx_g+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4232 ac_cxx_werror_flag=yes
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4246 if ac_fn_cxx_try_compile "$LINENO"; then :
4247 ac_cv_prog_cxx_g=yes
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4261 if ac_fn_cxx_try_compile "$LINENO"; then :
4264 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278 ac_cv_prog_cxx_g=yes
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4288 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4289 if test "$ac_test_CXXFLAGS" = set; then
4290 CXXFLAGS=$ac_save_CXXFLAGS
4291 elif test $ac_cv_prog_cxx_g = yes; then
4292 if test "$GXX" = yes; then
4298 if test "$GXX" = yes; then
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 if test "x$CC" != xcc; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4312 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4315 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4317 set dummy $CC; ac_cc=`$as_echo "$2" |
4318 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4319 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4333 # Make sure it works both with $CC and with simple cc.
4334 # We do the test twice because some compilers refuse to overwrite an
4335 # existing .o file with -o, though they will create one.
4336 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4338 if { { case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; } &&
4348 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; };
4359 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4360 if test "x$CC" != xcc; then
4361 # Test first that cc exists at all.
4362 if { ac_try='cc -c conftest.$ac_ext >&5'
4363 { { case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_try") 2>&5
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; }; then
4373 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4375 if { { case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_try") 2>&5
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; } &&
4385 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; };
4399 # cc exists but doesn't like -o.
4400 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4405 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4407 rm -f core conftest*
4410 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4412 $as_echo "yes" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4417 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4427 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4428 # On Suns, sometimes $CPP names a directory.
4429 if test -n "$CPP" && test -d "$CPP"; then
4432 if test -z "$CPP"; then
4433 if ${ac_cv_prog_CPP+:} false; then :
4434 $as_echo_n "(cached) " >&6
4436 # Double quotes because CPP needs to be expanded
4437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4440 for ac_c_preproc_warn_flag in '' yes
4442 # Use a header file that comes with gcc, so configuring glibc
4443 # with a fresh cross-compiler works.
4444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4445 # <limits.h> exists even on freestanding compilers.
4446 # On the NeXT, cc -E runs the code through the compiler's parser,
4447 # not just through cpp. "Syntax error" is here to catch this case.
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4451 # include <limits.h>
4453 # include <assert.h>
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4460 # Broken: fails on valid input.
4463 rm -f conftest.err conftest.i conftest.$ac_ext
4465 # OK, works on sane cases. Now check whether nonexistent headers
4466 # can be detected and how.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469 #include <ac_nonexistent.h>
4471 if ac_fn_c_try_cpp "$LINENO"; then :
4472 # Broken: success on invalid input.
4475 # Passes both tests.
4479 rm -f conftest.err conftest.i conftest.$ac_ext
4482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483 rm -f conftest.i conftest.err conftest.$ac_ext
4484 if $ac_preproc_ok; then :
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4497 $as_echo "$CPP" >&6; }
4499 for ac_c_preproc_warn_flag in '' yes
4501 # Use a header file that comes with gcc, so configuring glibc
4502 # with a fresh cross-compiler works.
4503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504 # <limits.h> exists even on freestanding compilers.
4505 # On the NeXT, cc -E runs the code through the compiler's parser,
4506 # not just through cpp. "Syntax error" is here to catch this case.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 # include <limits.h>
4512 # include <assert.h>
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: fails on valid input.
4522 rm -f conftest.err conftest.i conftest.$ac_ext
4524 # OK, works on sane cases. Now check whether nonexistent headers
4525 # can be detected and how.
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #include <ac_nonexistent.h>
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4531 # Broken: success on invalid input.
4534 # Passes both tests.
4538 rm -f conftest.err conftest.i conftest.$ac_ext
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.i conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then :
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4549 See \`config.log' for more details" "$LINENO" 5; }
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4560 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4561 if ${ac_cv_path_GREP+:} false; then :
4562 $as_echo_n "(cached) " >&6
4564 if test -z "$GREP"; then
4565 ac_path_GREP_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 test -z "$as_dir" && as_dir=.
4572 for ac_prog in grep ggrep; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4575 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4576 # Check for GNU ac_path_GREP and select it if it is found.
4577 # Check for GNU $ac_path_GREP
4578 case `"$ac_path_GREP" --version 2>&1` in
4580 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4583 $as_echo_n 0123456789 >"conftest.in"
4586 cat "conftest.in" "conftest.in" >"conftest.tmp"
4587 mv "conftest.tmp" "conftest.in"
4588 cp "conftest.in" "conftest.nl"
4589 $as_echo 'GREP' >> "conftest.nl"
4590 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592 as_fn_arith $ac_count + 1 && ac_count=$as_val
4593 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4594 # Best one so far, save it but keep looking for a better one
4595 ac_cv_path_GREP="$ac_path_GREP"
4596 ac_path_GREP_max=$ac_count
4598 # 10*(2^10) chars as input seems more than enough
4599 test $ac_count -gt 10 && break
4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 $ac_path_GREP_found && break 3
4609 if test -z "$ac_cv_path_GREP"; then
4610 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613 ac_cv_path_GREP=$GREP
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4618 $as_echo "$ac_cv_path_GREP" >&6; }
4619 GREP="$ac_cv_path_GREP"
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4623 $as_echo_n "checking for egrep... " >&6; }
4624 if ${ac_cv_path_EGREP+:} false; then :
4625 $as_echo_n "(cached) " >&6
4627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4628 then ac_cv_path_EGREP="$GREP -E"
4630 if test -z "$EGREP"; then
4631 ac_path_EGREP_found=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4637 test -z "$as_dir" && as_dir=.
4638 for ac_prog in egrep; do
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4641 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4642 # Check for GNU ac_path_EGREP and select it if it is found.
4643 # Check for GNU $ac_path_EGREP
4644 case `"$ac_path_EGREP" --version 2>&1` in
4646 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4649 $as_echo_n 0123456789 >"conftest.in"
4652 cat "conftest.in" "conftest.in" >"conftest.tmp"
4653 mv "conftest.tmp" "conftest.in"
4654 cp "conftest.in" "conftest.nl"
4655 $as_echo 'EGREP' >> "conftest.nl"
4656 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658 as_fn_arith $ac_count + 1 && ac_count=$as_val
4659 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4660 # Best one so far, save it but keep looking for a better one
4661 ac_cv_path_EGREP="$ac_path_EGREP"
4662 ac_path_EGREP_max=$ac_count
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 $ac_path_EGREP_found && break 3
4675 if test -z "$ac_cv_path_EGREP"; then
4676 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4679 ac_cv_path_EGREP=$EGREP
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4685 $as_echo "$ac_cv_path_EGREP" >&6; }
4686 EGREP="$ac_cv_path_EGREP"
4689 if test $ac_cv_c_compiler_gnu = yes; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4691 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4692 if ${ac_cv_prog_gcc_traditional+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 ac_pattern="Autoconf.*'x'"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4703 ac_cv_prog_gcc_traditional=yes
4705 ac_cv_prog_gcc_traditional=no
4710 if test $ac_cv_prog_gcc_traditional = no; then
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4717 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4718 ac_cv_prog_gcc_traditional=yes
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4725 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4726 if test $ac_cv_prog_gcc_traditional = yes; then
4727 CC="$CC -traditional"
4731 BASECC=`basename $CC`
4733 if test "x$BASECC" = xgcc; then
4734 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4738 # Extract the first word of "$CXX", so it can be a program name with args.
4739 set dummy $CXX; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_path_CXX+:} false; then :
4743 $as_echo_n "(cached) " >&6
4747 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4770 if test -n "$CXX"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4772 $as_echo "$CXX" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4779 if test ! -e $CXX; then
4780 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4783 # Find a good install program. We prefer a C program (faster),
4784 # so one script is as good as another. But avoid the broken or
4785 # incompatible versions:
4786 # SysV /etc/install, /usr/sbin/install
4787 # SunOS /usr/etc/install
4788 # IRIX /sbin/install
4790 # AmigaOS /C/install, which installs bootblocks on floppy discs
4791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4794 # OS/2's system install, which has a completely different semantic
4795 # ./install, which can be erroneously created by make from ./install.sh.
4796 # Reject install programs that cannot install multiple files.
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4798 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4799 if test -z "$INSTALL"; then
4800 if ${ac_cv_path_install+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir=.
4808 # Account for people who put trailing slashes in PATH elements.
4809 case $as_dir/ in #((
4810 ./ | .// | /[cC]/* | \
4811 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4812 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4815 # OSF1 and SCO ODT 3.0 have their own names for install.
4816 # Don't use installbsd from OSF since it installs stuff as root
4818 for ac_prog in ginstall scoinst install; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4821 if test $ac_prog = install &&
4822 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4823 # AIX install. It has an incompatible calling convention.
4825 elif test $ac_prog = install &&
4826 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4827 # program-specific install script used by HP pwplus--don't use.
4830 rm -rf conftest.one conftest.two conftest.dir
4831 echo one > conftest.one
4832 echo two > conftest.two
4834 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4835 test -s conftest.one && test -s conftest.two &&
4836 test -s conftest.dir/conftest.one &&
4837 test -s conftest.dir/conftest.two
4839 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4852 rm -rf conftest.one conftest.two conftest.dir
4855 if test "${ac_cv_path_install+set}" = set; then
4856 INSTALL=$ac_cv_path_install
4858 # As a last resort, use the slow shell script. Don't cache a
4859 # value for INSTALL within a source directory, because that will
4860 # break other packages using the cache if that directory is
4861 # removed, or if the value is a relative name.
4862 INSTALL=$ac_install_sh
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4866 $as_echo "$INSTALL" >&6; }
4868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4869 # It thinks the first close brace ends the variable substitution.
4870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4872 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4874 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4876 # Extract the first word of "mv", so it can be a program name with args.
4877 set dummy mv; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_path_MV+:} false; then :
4881 $as_echo_n "(cached) " >&6
4885 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4908 if test -n "$MV"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4910 $as_echo "$MV" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4917 # Extract the first word of "rm", so it can be a program name with args.
4918 set dummy rm; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_path_REMOVE+:} false; then :
4922 $as_echo_n "(cached) " >&6
4926 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4948 REMOVE=$ac_cv_path_REMOVE
4949 if test -n "$REMOVE"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4951 $as_echo "$REMOVE" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 # Extract the first word of "cp", so it can be a program name with args.
4959 set dummy cp; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_path_CP+:} false; then :
4963 $as_echo_n "(cached) " >&6
4967 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4990 if test -n "$CP"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4992 $as_echo "$CP" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 # Extract the first word of "sed", so it can be a program name with args.
5000 set dummy sed; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_path_SED+:} false; then :
5004 $as_echo_n "(cached) " >&6
5008 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5031 if test -n "$SED"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5033 $as_echo "$SED" >&6; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5040 # Extract the first word of "echo", so it can be a program name with args.
5041 set dummy echo; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_path_ECHO+:} false; then :
5045 $as_echo_n "(cached) " >&6
5049 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5071 ECHO=$ac_cv_path_ECHO
5072 if test -n "$ECHO"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5074 $as_echo "$ECHO" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 # Extract the first word of "cmp", so it can be a program name with args.
5082 set dummy cmp; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_path_CMP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5090 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5113 if test -n "$CMP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5115 $as_echo "$CMP" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 # Extract the first word of "tbl", so it can be a program name with args.
5123 set dummy tbl; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_TBL+:} false; then :
5127 $as_echo_n "(cached) " >&6
5131 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5154 if test -n "$TBL"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5156 $as_echo "$TBL" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 # Extract the first word of "ar", so it can be a program name with args.
5164 set dummy ar; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_path_AR+:} false; then :
5168 $as_echo_n "(cached) " >&6
5172 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5195 if test -n "$AR"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5197 $as_echo "$AR" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 # Extract the first word of "openssl", so it can be a program name with args.
5205 set dummy openssl; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_OPENSSL+:} false; then :
5209 $as_echo_n "(cached) " >&6
5213 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5235 OPENSSL=$ac_cv_path_OPENSSL
5236 if test -n "$OPENSSL"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5238 $as_echo "$OPENSSL" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5245 # Extract the first word of "mtx", so it can be a program name with args.
5246 set dummy mtx; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_MTX+:} false; then :
5250 $as_echo_n "(cached) " >&6
5254 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5277 if test -n "$MTX"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5279 $as_echo "$MTX" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5286 # Extract the first word of "dd", so it can be a program name with args.
5287 set dummy dd; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_path_DD+:} false; then :
5291 $as_echo_n "(cached) " >&6
5295 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5318 if test -n "$DD"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5320 $as_echo "$DD" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 # Extract the first word of "mkisofs", so it can be a program name with args.
5328 set dummy mkisofs; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_path_MKISOFS+:} false; then :
5332 $as_echo_n "(cached) " >&6
5336 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5358 MKISOFS=$ac_cv_path_MKISOFS
5359 if test -n "$MKISOFS"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5361 $as_echo "$MKISOFS" >&6; }
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 # Extract the first word of "python", so it can be a program name with args.
5369 set dummy python; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_path_PYTHON+:} false; then :
5373 $as_echo_n "(cached) " >&6
5377 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5399 PYTHON=$ac_cv_path_PYTHON
5400 if test -n "$PYTHON"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5402 $as_echo "$PYTHON" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5409 # Extract the first word of "growisofs", so it can be a program name with args.
5410 set dummy growisofs; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_GROWISOFS+:} false; then :
5414 $as_echo_n "(cached) " >&6
5418 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5440 GROWISOFS=$ac_cv_path_GROWISOFS
5441 if test -n "$GROWISOFS"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5443 $as_echo "$GROWISOFS" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5450 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5451 set dummy dvd+rw-mediainfo; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5455 $as_echo_n "(cached) " >&6
5457 case $DVDRWMEDIAINFO in
5459 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5481 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5482 if test -n "$DVDRWMEDIAINFO"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5484 $as_echo "$DVDRWMEDIAINFO" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5491 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5492 set dummy dvd+rw-format; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5496 $as_echo_n "(cached) " >&6
5498 case $DVDRWFORMAT in
5500 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5522 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5523 if test -n "$DVDRWFORMAT"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5525 $as_echo "$DVDRWFORMAT" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5532 # Extract the first word of "pkg-config", so it can be a program name with args.
5533 set dummy pkg-config; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_path_PKGCONFIG+:} false; then :
5537 $as_echo_n "(cached) " >&6
5541 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5563 PKGCONFIG=$ac_cv_path_PKGCONFIG
5564 if test -n "$PKGCONFIG"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5566 $as_echo "$PKGCONFIG" >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 # Extract the first word of "qmake", so it can be a program name with args.
5574 set dummy qmake; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_QMAKE+:} false; then :
5578 $as_echo_n "(cached) " >&6
5582 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5604 QMAKE=$ac_cv_path_QMAKE
5605 if test -n "$QMAKE"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5607 $as_echo "$QMAKE" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5614 # Extract the first word of "gmake", so it can be a program name with args.
5615 set dummy gmake; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_path_GMAKE+:} false; then :
5619 $as_echo_n "(cached) " >&6
5623 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5645 GMAKE=$ac_cv_path_GMAKE
5646 if test -n "$GMAKE"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5648 $as_echo "$GMAKE" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 # Extract the first word of "cdrecord", so it can be a program name with args.
5656 set dummy cdrecord; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if ${ac_cv_path_CDRECORD+:} false; then :
5660 $as_echo_n "(cached) " >&6
5664 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5686 CDRECORD=$ac_cv_path_CDRECORD
5687 if test -n "$CDRECORD"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5689 $as_echo "$CDRECORD" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5696 # Extract the first word of "pidof", so it can be a program name with args.
5697 set dummy pidof; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_path_PIDOF+:} false; then :
5701 $as_echo_n "(cached) " >&6
5705 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5727 PIDOF=$ac_cv_path_PIDOF
5728 if test -n "$PIDOF"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5730 $as_echo "$PIDOF" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5737 for ac_prog in gawk mawk nawk awk
5739 # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_AWK+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$AWK"; then
5747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 ac_cv_prog_AWK="$ac_prog"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 if test -n "$AWK"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5769 $as_echo "$AWK" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5776 test -n "$AWK" && break
5779 # Some AWK programs fail, so test it and warn the user
5780 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5781 { if ((prog == $2) || (("(" prog ")") == $2) ||
5782 (("" prog "") == $2) ||
5783 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5785 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5786 The regex engine of $AWK is too broken to be used you
5787 might want to install GNU AWK.
5788 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5791 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5792 set dummy $THE_AWK; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_AWK+:} false; then :
5796 $as_echo_n "(cached) " >&6
5800 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5823 if test -n "$AWK"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5825 $as_echo "$AWK" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5834 test -n "$ARFLAG" || ARFLAGS="cr"
5846 # Check whether --enable-libtool was given.
5847 if test "${enable_libtool+set}" = set; then :
5848 enableval=$enable_libtool;
5849 if test x$enableval = xno; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5859 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5865 macro_revision='1.3293'
5879 ltmain="$ac_aux_dir/ltmain.sh"
5881 # Make sure we can run config.sub.
5882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5883 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5886 $as_echo_n "checking build system type... " >&6; }
5887 if ${ac_cv_build+:} false; then :
5888 $as_echo_n "(cached) " >&6
5890 ac_build_alias=$build_alias
5891 test "x$ac_build_alias" = x &&
5892 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5893 test "x$ac_build_alias" = x &&
5894 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5900 $as_echo "$ac_cv_build" >&6; }
5901 case $ac_cv_build in
5903 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5906 ac_save_IFS=$IFS; IFS='-'
5912 # Remember, the first character of IFS is used to create $*,
5913 # except with old shells:
5916 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5920 $as_echo_n "checking host system type... " >&6; }
5921 if ${ac_cv_host+:} false; then :
5922 $as_echo_n "(cached) " >&6
5924 if test "x$host_alias" = x; then
5925 ac_cv_host=$ac_cv_build
5927 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5928 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5933 $as_echo "$ac_cv_host" >&6; }
5936 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5939 ac_save_IFS=$IFS; IFS='-'
5945 # Remember, the first character of IFS is used to create $*,
5946 # except with old shells:
5949 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5952 # Backslashify metacharacters that are still active within
5953 # double-quoted strings.
5954 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5956 # Same as above, but do not quote variable references.
5957 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5959 # Sed substitution to delay expansion of an escaped shell variable in a
5960 # double_quote_subst'ed string.
5961 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5963 # Sed substitution to delay expansion of an escaped single quote.
5964 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5966 # Sed substitution to avoid accidental globbing in evaled expressions
5967 no_glob_subst='s/\*/\\\*/g'
5969 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5970 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5971 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5974 $as_echo_n "checking how to print strings... " >&6; }
5975 # Test print first, because it will be a builtin if present.
5976 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5977 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5979 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5982 # Use this function as a fallback that always works.
5983 func_fallback_echo ()
5985 eval 'cat <<_LTECHO_EOF
5989 ECHO='func_fallback_echo'
5992 # func_echo_all arg...
5993 # Invoke $ECHO with all args, space-separated.
6000 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6001 $as_echo "printf" >&6; } ;;
6002 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6003 $as_echo "print -r" >&6; } ;;
6004 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6005 $as_echo "cat" >&6; } ;;
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6022 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6023 if ${ac_cv_path_SED+:} false; then :
6024 $as_echo_n "(cached) " >&6
6026 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6027 for ac_i in 1 2 3 4 5 6 7; do
6028 ac_script="$ac_script$as_nl$ac_script"
6030 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6031 { ac_script=; unset ac_script;}
6032 if test -z "$SED"; then
6033 ac_path_SED_found=false
6034 # Loop through the user's path and test for each of PROGNAME-LIST
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 test -z "$as_dir" && as_dir=.
6040 for ac_prog in sed gsed; do
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6043 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6044 # Check for GNU ac_path_SED and select it if it is found.
6045 # Check for GNU $ac_path_SED
6046 case `"$ac_path_SED" --version 2>&1` in
6048 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6051 $as_echo_n 0123456789 >"conftest.in"
6054 cat "conftest.in" "conftest.in" >"conftest.tmp"
6055 mv "conftest.tmp" "conftest.in"
6056 cp "conftest.in" "conftest.nl"
6057 $as_echo '' >> "conftest.nl"
6058 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6060 as_fn_arith $ac_count + 1 && ac_count=$as_val
6061 if test $ac_count -gt ${ac_path_SED_max-0}; then
6062 # Best one so far, save it but keep looking for a better one
6063 ac_cv_path_SED="$ac_path_SED"
6064 ac_path_SED_max=$ac_count
6066 # 10*(2^10) chars as input seems more than enough
6067 test $ac_count -gt 10 && break
6069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6072 $ac_path_SED_found && break 3
6077 if test -z "$ac_cv_path_SED"; then
6078 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6086 $as_echo "$ac_cv_path_SED" >&6; }
6087 SED="$ac_cv_path_SED"
6090 test -z "$SED" && SED=sed
6091 Xsed="$SED -e 1s/^X//"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6104 $as_echo_n "checking for fgrep... " >&6; }
6105 if ${ac_cv_path_FGREP+:} false; then :
6106 $as_echo_n "(cached) " >&6
6108 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6109 then ac_cv_path_FGREP="$GREP -F"
6111 if test -z "$FGREP"; then
6112 ac_path_FGREP_found=false
6113 # Loop through the user's path and test for each of PROGNAME-LIST
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6118 test -z "$as_dir" && as_dir=.
6119 for ac_prog in fgrep; do
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6122 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6123 # Check for GNU ac_path_FGREP and select it if it is found.
6124 # Check for GNU $ac_path_FGREP
6125 case `"$ac_path_FGREP" --version 2>&1` in
6127 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6130 $as_echo_n 0123456789 >"conftest.in"
6133 cat "conftest.in" "conftest.in" >"conftest.tmp"
6134 mv "conftest.tmp" "conftest.in"
6135 cp "conftest.in" "conftest.nl"
6136 $as_echo 'FGREP' >> "conftest.nl"
6137 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6139 as_fn_arith $ac_count + 1 && ac_count=$as_val
6140 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6141 # Best one so far, save it but keep looking for a better one
6142 ac_cv_path_FGREP="$ac_path_FGREP"
6143 ac_path_FGREP_max=$ac_count
6145 # 10*(2^10) chars as input seems more than enough
6146 test $ac_count -gt 10 && break
6148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6151 $ac_path_FGREP_found && break 3
6156 if test -z "$ac_cv_path_FGREP"; then
6157 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6160 ac_cv_path_FGREP=$FGREP
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6166 $as_echo "$ac_cv_path_FGREP" >&6; }
6167 FGREP="$ac_cv_path_FGREP"
6170 test -z "$GREP" && GREP=grep
6190 # Check whether --with-gnu-ld was given.
6191 if test "${with_gnu_ld+set}" = set; then :
6192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6198 if test "$GCC" = yes; then
6199 # Check if gcc -print-prog-name=ld gives a path.
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6201 $as_echo_n "checking for ld used by $CC... " >&6; }
6204 # gcc leaves a trailing carriage return which upsets mingw
6205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6210 # Accept absolute paths.
6212 re_direlt='/[^/][^/]*/\.\./'
6213 # Canonicalize the pathname of ld
6214 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6215 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6216 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6218 test -z "$LD" && LD="$ac_prog"
6221 # If it fails, then pretend we aren't using GCC.
6225 # If it is relative, then search for the first ld in PATH.
6229 elif test "$with_gnu_ld" = yes; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6231 $as_echo_n "checking for GNU ld... " >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6234 $as_echo_n "checking for non-GNU ld... " >&6; }
6236 if ${lt_cv_path_LD+:} false; then :
6237 $as_echo_n "(cached) " >&6
6239 if test -z "$LD"; then
6240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6241 for ac_dir in $PATH; do
6243 test -z "$ac_dir" && ac_dir=.
6244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6245 lt_cv_path_LD="$ac_dir/$ac_prog"
6246 # Check to see if the program is GNU ld. I'd rather use --version,
6247 # but apparently some variants of GNU ld only accept -v.
6248 # Break only if it was the GNU/non-GNU ld that we prefer.
6249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6250 *GNU* | *'with BFD'*)
6251 test "$with_gnu_ld" != no && break
6254 test "$with_gnu_ld" != yes && break
6261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6266 if test -n "$LD"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6268 $as_echo "$LD" >&6; }
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6273 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6275 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6276 if ${lt_cv_prog_gnu_ld+:} false; then :
6277 $as_echo_n "(cached) " >&6
6279 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6280 case `$LD -v 2>&1 </dev/null` in
6281 *GNU* | *'with BFD'*)
6282 lt_cv_prog_gnu_ld=yes
6285 lt_cv_prog_gnu_ld=no
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6290 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6291 with_gnu_ld=$lt_cv_prog_gnu_ld
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6302 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6303 if ${lt_cv_path_NM+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$NM"; then
6307 # Let the user override the test.
6310 lt_nm_to_check="${ac_tool_prefix}nm"
6311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6312 lt_nm_to_check="$lt_nm_to_check nm"
6314 for lt_tmp_nm in $lt_nm_to_check; do
6315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6318 test -z "$ac_dir" && ac_dir=.
6319 tmp_nm="$ac_dir/$lt_tmp_nm"
6320 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6321 # Check to see if the nm accepts a BSD-compat flag.
6322 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6323 # nm: unknown option "B" ignored
6324 # Tru64's nm complains that /dev/null is an invalid object file
6325 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6326 */dev/null* | *'Invalid file or object type'*)
6327 lt_cv_path_NM="$tmp_nm -B"
6331 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6333 lt_cv_path_NM="$tmp_nm -p"
6337 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6338 continue # so that we can try to find one that supports BSD flags
6347 : ${lt_cv_path_NM=no}
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6351 $as_echo "$lt_cv_path_NM" >&6; }
6352 if test "$lt_cv_path_NM" != "no"; then
6355 # Didn't find any BSD compatible name lister, look for dumpbin.
6356 if test -n "$DUMPBIN"; then :
6357 # Let the user override the test.
6359 if test -n "$ac_tool_prefix"; then
6360 for ac_prog in dumpbin "link -dump"
6362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_DUMPBIN+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 if test -n "$DUMPBIN"; then
6370 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 DUMPBIN=$ac_cv_prog_DUMPBIN
6390 if test -n "$DUMPBIN"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6392 $as_echo "$DUMPBIN" >&6; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6399 test -n "$DUMPBIN" && break
6402 if test -z "$DUMPBIN"; then
6403 ac_ct_DUMPBIN=$DUMPBIN
6404 for ac_prog in dumpbin "link -dump"
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_DUMPBIN"; then
6414 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6434 if test -n "$ac_ct_DUMPBIN"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6436 $as_echo "$ac_ct_DUMPBIN" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6443 test -n "$ac_ct_DUMPBIN" && break
6446 if test "x$ac_ct_DUMPBIN" = x; then
6449 case $cross_compiling:$ac_tool_warned in
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6455 DUMPBIN=$ac_ct_DUMPBIN
6459 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6461 DUMPBIN="$DUMPBIN -symbols"
6469 if test "$DUMPBIN" != ":"; then
6473 test -z "$NM" && NM=nm
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6481 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6482 if ${lt_cv_nm_interface+:} false; then :
6483 $as_echo_n "(cached) " >&6
6485 lt_cv_nm_interface="BSD nm"
6486 echo "int some_variable = 0;" > conftest.$ac_ext
6487 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6488 (eval "$ac_compile" 2>conftest.err)
6489 cat conftest.err >&5
6490 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6491 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6492 cat conftest.err >&5
6493 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6494 cat conftest.out >&5
6495 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6496 lt_cv_nm_interface="MS dumpbin"
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6501 $as_echo "$lt_cv_nm_interface" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6504 $as_echo_n "checking whether ln -s works... " >&6; }
6506 if test "$LN_S" = "ln -s"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6508 $as_echo "yes" >&6; }
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6511 $as_echo "no, using $LN_S" >&6; }
6514 # find the maximum length of command line arguments
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6516 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6517 if ${lt_cv_sys_max_cmd_len+:} false; then :
6518 $as_echo_n "(cached) " >&6
6525 # On DJGPP, this test can blow up pretty badly due to problems in libc
6526 # (any single argument exceeding 2000 bytes causes a buffer overrun
6527 # during glob expansion). Even if it were fixed, the result of this
6528 # check would be larger than it should be.
6529 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6533 # Under GNU Hurd, this test is not required because there is
6534 # no limit to the length of command line arguments.
6535 # Libtool will interpret -1 as no limit whatsoever
6536 lt_cv_sys_max_cmd_len=-1;
6539 cygwin* | mingw* | cegcc*)
6540 # On Win9x/ME, this test blows up -- it succeeds, but takes
6541 # about 5 minutes as the teststring grows exponentially.
6542 # Worse, since 9x/ME are not pre-emptively multitasking,
6543 # you end up with a "frozen" computer, even though with patience
6544 # the test eventually succeeds (with a max line length of 256k).
6545 # Instead, let's just punt: use the minimum linelength reported by
6546 # all of the supported platforms: 8192 (on NT/2K/XP).
6547 lt_cv_sys_max_cmd_len=8192;
6551 # On MiNT this can take a long time and run out of memory.
6552 lt_cv_sys_max_cmd_len=8192;
6556 # On AmigaOS with pdksh, this test takes hours, literally.
6557 # So we just punt and use a minimum line length of 8192.
6558 lt_cv_sys_max_cmd_len=8192;
6561 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6562 # This has been around since 386BSD, at least. Likely further.
6563 if test -x /sbin/sysctl; then
6564 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6565 elif test -x /usr/sbin/sysctl; then
6566 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6568 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6570 # And add a safety zone
6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6576 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6577 lt_cv_sys_max_cmd_len=196608
6581 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6582 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6583 # nice to cause kernel panics so lets avoid the loop below.
6584 # First set a reasonable default.
6585 lt_cv_sys_max_cmd_len=16384
6587 if test -x /sbin/sysconfig; then
6588 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6589 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6594 lt_cv_sys_max_cmd_len=102400
6596 sysv5* | sco5v6* | sysv4.2uw2*)
6597 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6598 if test -n "$kargmax"; then
6599 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6601 lt_cv_sys_max_cmd_len=32768
6605 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6606 if test -n "$lt_cv_sys_max_cmd_len"; then
6607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6610 # Make teststring a little bigger before we do anything with it.
6611 # a 1K string should be a reasonable start.
6612 for i in 1 2 3 4 5 6 7 8 ; do
6613 teststring=$teststring$teststring
6615 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6616 # If test is not a shell built-in, we'll probably end up computing a
6617 # maximum length that is only half of the actual maximum length, but
6619 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6620 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6621 test $i != 17 # 1/2 MB should be enough
6624 teststring=$teststring$teststring
6626 # Only check the string length outside the loop.
6627 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6629 # Add a significant safety factor because C++ compilers can tack on
6630 # massive amounts of additional arguments before passing them to the
6631 # linker. It appears as though 1/2 is a usable value.
6632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6639 if test -n $lt_cv_sys_max_cmd_len ; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6641 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6644 $as_echo "none" >&6; }
6646 max_cmd_len=$lt_cv_sys_max_cmd_len
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6658 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6659 # Try some XSI features
6662 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6664 && eval 'test $(( 1 + 1 )) -eq 2 \
6665 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6668 $as_echo "$xsi_shell" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6672 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6674 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6676 && lt_shell_append=yes
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6678 $as_echo "$lt_shell_append" >&6; }
6681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6691 # test EBCDIC or ASCII
6692 case `echo X|tr X '\101'` in
6693 A) # ASCII based system
6694 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6695 lt_SP2NL='tr \040 \012'
6696 lt_NL2SP='tr \015\012 \040\040'
6698 *) # EBCDIC based system
6699 lt_SP2NL='tr \100 \n'
6700 lt_NL2SP='tr \r\n \100\100'
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6713 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6714 if ${lt_cv_to_host_file_cmd+:} false; then :
6715 $as_echo_n "(cached) " >&6
6720 *-*-mingw* ) # actually msys
6721 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6724 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6726 * ) # otherwise, assume *nix
6727 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6733 *-*-mingw* ) # actually msys
6734 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6737 lt_cv_to_host_file_cmd=func_convert_file_noop
6739 * ) # otherwise, assume *nix
6740 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6744 * ) # unhandled hosts (and "normal" native builds)
6745 lt_cv_to_host_file_cmd=func_convert_file_noop
6751 to_host_file_cmd=$lt_cv_to_host_file_cmd
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6753 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6760 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6761 if ${lt_cv_to_tool_file_cmd+:} false; then :
6762 $as_echo_n "(cached) " >&6
6764 #assume ordinary cross tools, or native build.
6765 lt_cv_to_tool_file_cmd=func_convert_file_noop
6769 *-*-mingw* ) # actually msys
6770 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6778 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6780 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6787 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6788 if ${lt_cv_ld_reload_flag+:} false; then :
6789 $as_echo_n "(cached) " >&6
6791 lt_cv_ld_reload_flag='-r'
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6794 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6795 reload_flag=$lt_cv_ld_reload_flag
6796 case $reload_flag in
6798 *) reload_flag=" $reload_flag" ;;
6800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6802 cygwin* | mingw* | pw32* | cegcc*)
6803 if test "$GCC" != yes; then
6808 if test "$GCC" = yes; then
6809 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6811 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_OBJDUMP+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 if test -n "$OBJDUMP"; then
6833 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 OBJDUMP=$ac_cv_prog_OBJDUMP
6853 if test -n "$OBJDUMP"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6855 $as_echo "$OBJDUMP" >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6863 if test -z "$ac_cv_prog_OBJDUMP"; then
6864 ac_ct_OBJDUMP=$OBJDUMP
6865 # Extract the first word of "objdump", so it can be a program name with args.
6866 set dummy objdump; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6870 $as_echo_n "(cached) " >&6
6872 if test -n "$ac_ct_OBJDUMP"; then
6873 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6893 if test -n "$ac_ct_OBJDUMP"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6895 $as_echo "$ac_ct_OBJDUMP" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6901 if test "x$ac_ct_OBJDUMP" = x; then
6904 case $cross_compiling:$ac_tool_warned in
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6910 OBJDUMP=$ac_ct_OBJDUMP
6913 OBJDUMP="$ac_cv_prog_OBJDUMP"
6916 test -z "$OBJDUMP" && OBJDUMP=objdump
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6927 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6928 if ${lt_cv_deplibs_check_method+:} false; then :
6929 $as_echo_n "(cached) " >&6
6931 lt_cv_file_magic_cmd='$MAGIC_CMD'
6932 lt_cv_file_magic_test_file=
6933 lt_cv_deplibs_check_method='unknown'
6934 # Need to set the preceding variable on all platforms that support
6935 # interlibrary dependencies.
6936 # 'none' -- dependencies not supported.
6937 # `unknown' -- same as none, but documents that we really don't know.
6938 # 'pass_all' -- all dependencies passed with no checks.
6939 # 'test_compile' -- check by making test program.
6940 # 'file_magic [[regex]]' -- check by looking for files in library path
6941 # which responds to the $file_magic_cmd with a given extended regex.
6942 # If you have `file' or equivalent on your system and you're not sure
6943 # whether `pass_all' will *always* work, you probably want this one.
6947 lt_cv_deplibs_check_method=pass_all
6951 lt_cv_deplibs_check_method=pass_all
6955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6956 lt_cv_file_magic_cmd='/usr/bin/file -L'
6957 lt_cv_file_magic_test_file=/shlib/libc.so
6961 # func_win32_libid is a shell function defined in ltmain.sh
6962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6963 lt_cv_file_magic_cmd='func_win32_libid'
6967 # Base MSYS/MinGW do not provide the 'file' command needed by
6968 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6969 # unless we find 'file', for example because we are cross-compiling.
6970 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6971 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6973 lt_cv_file_magic_cmd='func_win32_libid'
6975 # Keep this pattern in sync with the one in func_win32_libid.
6976 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6977 lt_cv_file_magic_cmd='$OBJDUMP -f'
6982 # use the weaker test based on 'objdump'. See mingw*.
6983 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6984 lt_cv_file_magic_cmd='$OBJDUMP -f'
6987 darwin* | rhapsody*)
6988 lt_cv_deplibs_check_method=pass_all
6991 freebsd* | dragonfly*)
6992 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6995 # Not sure whether the presence of OpenBSD here was a mistake.
6996 # Let's accept both of them until this is cleared up.
6997 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6998 lt_cv_file_magic_cmd=/usr/bin/file
6999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7003 lt_cv_deplibs_check_method=pass_all
7008 lt_cv_deplibs_check_method=pass_all
7012 lt_cv_deplibs_check_method=pass_all
7015 hpux10.20* | hpux11*)
7016 lt_cv_file_magic_cmd=/usr/bin/file
7019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7020 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7023 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]'
7024 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7028 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7034 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7038 irix5* | irix6* | nonstopux*)
7040 *-32|*"-32 ") libmagic=32-bit;;
7041 *-n32|*"-n32 ") libmagic=N32;;
7042 *-64|*"-64 ") libmagic=64-bit;;
7043 *) libmagic=never-match;;
7045 lt_cv_deplibs_check_method=pass_all
7048 # This must be Linux ELF.
7049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7050 lt_cv_deplibs_check_method=pass_all
7054 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7063 lt_cv_file_magic_cmd=/usr/bin/file
7064 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7068 lt_cv_deplibs_check_method=pass_all
7072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7079 osf3* | osf4* | osf5*)
7080 lt_cv_deplibs_check_method=pass_all
7084 lt_cv_deplibs_check_method=pass_all
7088 lt_cv_deplibs_check_method=pass_all
7091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7092 lt_cv_deplibs_check_method=pass_all
7096 case $host_vendor in
7098 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]'
7099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7102 lt_cv_deplibs_check_method=pass_all
7105 lt_cv_file_magic_cmd='/bin/file'
7106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7109 lt_cv_file_magic_cmd='/bin/file'
7110 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7111 lt_cv_file_magic_test_file=/lib/libc.so
7114 lt_cv_deplibs_check_method=pass_all
7117 lt_cv_deplibs_check_method=pass_all
7123 lt_cv_deplibs_check_method=pass_all
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7129 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7133 if test "$build" = "$host"; then
7136 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7139 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7145 file_magic_cmd=$lt_cv_file_magic_cmd
7146 deplibs_check_method=$lt_cv_deplibs_check_method
7147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_DLLTOOL+:} false; then :
7176 $as_echo_n "(cached) " >&6
7178 if test -n "$DLLTOOL"; then
7179 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 DLLTOOL=$ac_cv_prog_DLLTOOL
7199 if test -n "$DLLTOOL"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7201 $as_echo "$DLLTOOL" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7209 if test -z "$ac_cv_prog_DLLTOOL"; then
7210 ac_ct_DLLTOOL=$DLLTOOL
7211 # Extract the first word of "dlltool", so it can be a program name with args.
7212 set dummy dlltool; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7216 $as_echo_n "(cached) " >&6
7218 if test -n "$ac_ct_DLLTOOL"; then
7219 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7239 if test -n "$ac_ct_DLLTOOL"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7241 $as_echo "$ac_ct_DLLTOOL" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7247 if test "x$ac_ct_DLLTOOL" = x; then
7250 case $cross_compiling:$ac_tool_warned in
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254 ac_tool_warned=yes ;;
7256 DLLTOOL=$ac_ct_DLLTOOL
7259 DLLTOOL="$ac_cv_prog_DLLTOOL"
7262 test -z "$DLLTOOL" && DLLTOOL=dlltool
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7274 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7275 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7276 $as_echo_n "(cached) " >&6
7278 lt_cv_sharedlib_from_linklib_cmd='unknown'
7281 cygwin* | mingw* | pw32* | cegcc*)
7282 # two different shell functions defined in ltmain.sh
7283 # decide which to use based on capabilities of $DLLTOOL
7284 case `$DLLTOOL --help 2>&1` in
7285 *--identify-strict*)
7286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7289 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7294 # fallback: assume linklib IS sharedlib
7295 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7301 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7302 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7303 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7311 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_AR+:} false; then :
7319 $as_echo_n "(cached) " >&6
7321 if test -n "$AR"; then
7322 ac_cv_prog_AR="$AR" # Let the user override the test.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 if test -n "$AR"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7344 $as_echo "$AR" >&6; }
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7351 test -n "$AR" && break
7354 if test -z "$AR"; then
7358 # Extract the first word of "$ac_prog", so it can be a program name with args.
7359 set dummy $ac_prog; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 if test -n "$ac_ct_AR"; then
7366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_prog_ac_ct_AR="$ac_prog"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7386 if test -n "$ac_ct_AR"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7388 $as_echo "$ac_ct_AR" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7395 test -n "$ac_ct_AR" && break
7398 if test "x$ac_ct_AR" = x; then
7401 case $cross_compiling:$ac_tool_warned in
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7405 ac_tool_warned=yes ;;
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7425 $as_echo_n "checking for archiver @FILE support... " >&6; }
7426 if ${lt_cv_ar_at_file+:} false; then :
7427 $as_echo_n "(cached) " >&6
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 echo conftest.$ac_objext > conftest.lst
7443 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7445 (eval $lt_ar_try) 2>&5
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }
7449 if test "$ac_status" -eq 0; then
7450 # Ensure the archiver fails upon bogus file names.
7451 rm -f conftest.$ac_objext libconftest.a
7452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7453 (eval $lt_ar_try) 2>&5
7455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7456 test $ac_status = 0; }
7457 if test "$ac_status" -ne 0; then
7461 rm -f conftest.* libconftest.a
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7468 $as_echo "$lt_cv_ar_at_file" >&6; }
7470 if test "x$lt_cv_ar_at_file" = xno; then
7473 archiver_list_spec=$lt_cv_ar_at_file
7482 if test -n "$ac_tool_prefix"; then
7483 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7484 set dummy ${ac_tool_prefix}strip; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_STRIP+:} false; then :
7488 $as_echo_n "(cached) " >&6
7490 if test -n "$STRIP"; then
7491 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 STRIP=$ac_cv_prog_STRIP
7511 if test -n "$STRIP"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7513 $as_echo "$STRIP" >&6; }
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7521 if test -z "$ac_cv_prog_STRIP"; then
7523 # Extract the first word of "strip", so it can be a program name with args.
7524 set dummy strip; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7528 $as_echo_n "(cached) " >&6
7530 if test -n "$ac_ct_STRIP"; then
7531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7540 ac_cv_prog_ac_ct_STRIP="strip"
7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7551 if test -n "$ac_ct_STRIP"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7553 $as_echo "$ac_ct_STRIP" >&6; }
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7559 if test "x$ac_ct_STRIP" = x; then
7562 case $cross_compiling:$ac_tool_warned in
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566 ac_tool_warned=yes ;;
7571 STRIP="$ac_cv_prog_STRIP"
7574 test -z "$STRIP" && STRIP=:
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_RANLIB+:} false; then :
7587 $as_echo_n "(cached) " >&6
7589 if test -n "$RANLIB"; then
7590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 RANLIB=$ac_cv_prog_RANLIB
7610 if test -n "$RANLIB"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7612 $as_echo "$RANLIB" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7620 if test -z "$ac_cv_prog_RANLIB"; then
7621 ac_ct_RANLIB=$RANLIB
7622 # Extract the first word of "ranlib", so it can be a program name with args.
7623 set dummy ranlib; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7627 $as_echo_n "(cached) " >&6
7629 if test -n "$ac_ct_RANLIB"; then
7630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_prog_ac_ct_RANLIB="ranlib"
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7650 if test -n "$ac_ct_RANLIB"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7652 $as_echo "$ac_ct_RANLIB" >&6; }
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7658 if test "x$ac_ct_RANLIB" = x; then
7661 case $cross_compiling:$ac_tool_warned in
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7665 ac_tool_warned=yes ;;
7667 RANLIB=$ac_ct_RANLIB
7670 RANLIB="$ac_cv_prog_RANLIB"
7673 test -z "$RANLIB" && RANLIB=:
7680 # Determine commands to create old-style static archives.
7681 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7682 old_postinstall_cmds='chmod 644 $oldlib'
7683 old_postuninstall_cmds=
7685 if test -n "$RANLIB"; then
7688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7691 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7694 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7699 lock_old_archive_extraction=yes ;;
7701 lock_old_archive_extraction=no ;;
7742 # If no C compiler was specified, use CC.
7745 # If no C compiler flags were specified, use CFLAGS.
7746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7748 # Allow CC to be a program name with arguments.
7752 # Check for command to grab the raw symbol name followed by C symbol from nm.
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7754 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7755 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7756 $as_echo_n "(cached) " >&6
7759 # These are sane defaults that work on at least a few old systems.
7760 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7762 # Character class describing NM global symbol codes.
7763 symcode='[BCDEGRST]'
7765 # Regexp to match symbols that can be accessed directly from C.
7766 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7768 # Define system-specific variables.
7773 cygwin* | mingw* | pw32* | cegcc*)
7774 symcode='[ABCDGISTW]'
7777 if test "$host_cpu" = ia64; then
7778 symcode='[ABCDEGRST]'
7782 symcode='[BCDEGRST]'
7785 symcode='[BCDEGQRST]'
7796 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7804 # If we're using GNU nm, then use its standard symbol codes.
7805 case `$NM -V 2>&1` in
7806 *GNU* | *'with BFD'*)
7807 symcode='[ABCDGIRSTW]' ;;
7810 # Transform an extracted symbol line into a proper C declaration.
7811 # Some systems (esp. on ia64) link data and code symbols differently,
7812 # so use this general approach.
7813 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7815 # Transform an extracted symbol line into symbol name and symbol address
7816 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7817 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'"
7819 # Handle CRLF in mingw tool chain
7823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7827 # Try without a prefix underscore, then with it.
7828 for ac_symprfx in "" "_"; do
7830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7831 symxfrm="\\1 $ac_symprfx\\2 \\2"
7833 # Write the raw and C identifiers.
7834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7835 # Fake it for dumpbin and say T for any non-static function
7836 # and D for any global variable.
7837 # Also find C++ and __fastcall symbols from MSVC++,
7838 # which start with @ or ?.
7839 lt_cv_sys_global_symbol_pipe="$AWK '"\
7840 " {last_section=section; section=\$ 3};"\
7841 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7842 " \$ 0!~/External *\|/{next};"\
7843 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7844 " {if(hide[section]) next};"\
7845 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7846 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7847 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7848 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7849 " ' prfx=^$ac_symprfx"
7851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7853 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7855 # Check to see that the pipe works correctly.
7859 cat > conftest.$ac_ext <<_LT_EOF
7864 void nm_test_func(void);
7865 void nm_test_func(void){}
7869 int main(){nm_test_var='a';nm_test_func();return(0);}
7872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7873 (eval $ac_compile) 2>&5
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; }; then
7877 # Now try to grab the symbols.
7879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7880 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; } && test -s "$nlist"; then
7884 # Try sorting and uniquifying the output.
7885 if sort "$nlist" | uniq > "$nlist"T; then
7886 mv -f "$nlist"T "$nlist"
7891 # Make sure that we snagged all the symbols we need.
7892 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7893 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7894 cat <<_LT_EOF > conftest.$ac_ext
7895 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7896 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7897 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7898 relocations are performed -- see ld's documentation on pseudo-relocs. */
7899 # define LT_DLSYM_CONST
7900 #elif defined(__osf__)
7901 /* This system does not cope well with relocations in const data. */
7902 # define LT_DLSYM_CONST
7904 # define LT_DLSYM_CONST const
7912 # Now generate the symbol file.
7913 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7915 cat <<_LT_EOF >> conftest.$ac_ext
7917 /* The mapping between symbol names and symbols. */
7918 LT_DLSYM_CONST struct {
7922 lt__PROGRAM__LTX_preloaded_symbols[] =
7924 { "@PROGRAM@", (void *) 0 },
7926 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7927 cat <<\_LT_EOF >> conftest.$ac_ext
7931 /* This works around a problem in FreeBSD linker */
7932 #ifdef FREEBSD_WORKAROUND
7933 static const void *lt_preloaded_setup() {
7934 return lt__PROGRAM__LTX_preloaded_symbols;
7942 # Now try linking the two files.
7943 mv conftest.$ac_objext conftstm.$ac_objext
7944 lt_globsym_save_LIBS=$LIBS
7945 lt_globsym_save_CFLAGS=$CFLAGS
7946 LIBS="conftstm.$ac_objext"
7947 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7949 (eval $ac_link) 2>&5
7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7955 LIBS=$lt_globsym_save_LIBS
7956 CFLAGS=$lt_globsym_save_CFLAGS
7958 echo "cannot find nm_test_func in $nlist" >&5
7961 echo "cannot find nm_test_var in $nlist" >&5
7964 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7967 echo "$progname: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7970 rm -rf conftest* conftst*
7972 # Do not use the global_symbol_pipe unless it works.
7973 if test "$pipe_works" = yes; then
7976 lt_cv_sys_global_symbol_pipe=
7982 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7983 lt_cv_sys_global_symbol_to_cdecl=
7985 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7987 $as_echo "failed" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7990 $as_echo "ok" >&6; }
7993 # Response file support.
7994 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7995 nm_file_list_spec='@'
7996 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7997 nm_file_list_spec='@'
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8027 $as_echo_n "checking for sysroot... " >&6; }
8029 # Check whether --with-sysroot was given.
8030 if test "${with_sysroot+set}" = set; then :
8031 withval=$with_sysroot;
8038 case ${with_sysroot} in #(
8040 if test "$GCC" = yes; then
8041 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8045 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8051 $as_echo "${with_sysroot}" >&6; }
8052 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8057 $as_echo "${lt_sysroot:-no}" >&6; }
8063 # Check whether --enable-libtool-lock was given.
8064 if test "${enable_libtool_lock+set}" = set; then :
8065 enableval=$enable_libtool_lock;
8068 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8070 # Some flags need to be propagated to the compiler or linker for good
8074 # Find out which ABI we are using.
8075 echo 'int i;' > conftest.$ac_ext
8076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8077 (eval $ac_compile) 2>&5
8079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8080 test $ac_status = 0; }; then
8081 case `/usr/bin/file conftest.$ac_objext` in
8093 # Find out which ABI we are using.
8094 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8096 (eval $ac_compile) 2>&5
8098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8099 test $ac_status = 0; }; then
8100 if test "$lt_cv_prog_gnu_ld" = yes; then
8101 case `/usr/bin/file conftest.$ac_objext` in
8103 LD="${LD-ld} -melf32bsmip"
8106 LD="${LD-ld} -melf32bmipn32"
8109 LD="${LD-ld} -melf64bmip"
8113 case `/usr/bin/file conftest.$ac_objext` in
8129 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8130 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8131 # Find out which ABI we are using.
8132 echo 'int i;' > conftest.$ac_ext
8133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8134 (eval $ac_compile) 2>&5
8136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8137 test $ac_status = 0; }; then
8138 case `/usr/bin/file conftest.o` in
8141 x86_64-*kfreebsd*-gnu)
8142 LD="${LD-ld} -m elf_i386_fbsd"
8145 LD="${LD-ld} -m elf_i386"
8147 ppc64-*linux*|powerpc64-*linux*)
8148 LD="${LD-ld} -m elf32ppclinux"
8151 LD="${LD-ld} -m elf_s390"
8154 LD="${LD-ld} -m elf32_sparc"
8160 x86_64-*kfreebsd*-gnu)
8161 LD="${LD-ld} -m elf_x86_64_fbsd"
8164 LD="${LD-ld} -m elf_x86_64"
8166 ppc*-*linux*|powerpc*-*linux*)
8167 LD="${LD-ld} -m elf64ppc"
8169 s390*-*linux*|s390*-*tpf*)
8170 LD="${LD-ld} -m elf64_s390"
8173 LD="${LD-ld} -m elf64_sparc"
8183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8184 SAVE_CFLAGS="$CFLAGS"
8185 CFLAGS="$CFLAGS -belf"
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8187 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8188 if ${lt_cv_cc_needs_belf+:} false; then :
8189 $as_echo_n "(cached) " >&6
8192 ac_cpp='$CPP $CPPFLAGS'
8193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8208 if ac_fn_c_try_link "$LINENO"; then :
8209 lt_cv_cc_needs_belf=yes
8211 lt_cv_cc_needs_belf=no
8213 rm -f core conftest.err conftest.$ac_objext \
8214 conftest$ac_exeext conftest.$ac_ext
8216 ac_cpp='$CPP $CPPFLAGS'
8217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8223 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8224 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8225 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8226 CFLAGS="$SAVE_CFLAGS"
8230 # Find out which ABI we are using.
8231 echo 'int i;' > conftest.$ac_ext
8232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8233 (eval $ac_compile) 2>&5
8235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8236 test $ac_status = 0; }; then
8237 case `/usr/bin/file conftest.o` in
8239 case $lt_cv_prog_gnu_ld in
8240 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8242 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8254 need_locks="$enable_libtool_lock"
8256 if test -n "$ac_tool_prefix"; then
8257 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8258 set dummy ${ac_tool_prefix}mt; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8262 $as_echo_n "(cached) " >&6
8264 if test -n "$MANIFEST_TOOL"; then
8265 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8285 if test -n "$MANIFEST_TOOL"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8287 $as_echo "$MANIFEST_TOOL" >&6; }
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8295 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8296 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8297 # Extract the first word of "mt", so it can be a program name with args.
8298 set dummy mt; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8302 $as_echo_n "(cached) " >&6
8304 if test -n "$ac_ct_MANIFEST_TOOL"; then
8305 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8325 if test -n "$ac_ct_MANIFEST_TOOL"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8327 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8333 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8336 case $cross_compiling:$ac_tool_warned in
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8342 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8345 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8348 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8350 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8351 if ${lt_cv_path_mainfest_tool+:} false; then :
8352 $as_echo_n "(cached) " >&6
8354 lt_cv_path_mainfest_tool=no
8355 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8356 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8357 cat conftest.err >&5
8358 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8359 lt_cv_path_mainfest_tool=yes
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8364 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8365 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8375 rhapsody* | darwin*)
8376 if test -n "$ac_tool_prefix"; then
8377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8378 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$DSYMUTIL"; then
8385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8405 if test -n "$DSYMUTIL"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8407 $as_echo "$DSYMUTIL" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8415 if test -z "$ac_cv_prog_DSYMUTIL"; then
8416 ac_ct_DSYMUTIL=$DSYMUTIL
8417 # Extract the first word of "dsymutil", so it can be a program name with args.
8418 set dummy dsymutil; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 if test -n "$ac_ct_DSYMUTIL"; then
8425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8445 if test -n "$ac_ct_DSYMUTIL"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8447 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8453 if test "x$ac_ct_DSYMUTIL" = x; then
8456 case $cross_compiling:$ac_tool_warned in
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460 ac_tool_warned=yes ;;
8462 DSYMUTIL=$ac_ct_DSYMUTIL
8465 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8468 if test -n "$ac_tool_prefix"; then
8469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8470 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_NMEDIT+:} false; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -n "$NMEDIT"; then
8477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 NMEDIT=$ac_cv_prog_NMEDIT
8497 if test -n "$NMEDIT"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8499 $as_echo "$NMEDIT" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 if test -z "$ac_cv_prog_NMEDIT"; then
8508 ac_ct_NMEDIT=$NMEDIT
8509 # Extract the first word of "nmedit", so it can be a program name with args.
8510 set dummy nmedit; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8514 $as_echo_n "(cached) " >&6
8516 if test -n "$ac_ct_NMEDIT"; then
8517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8537 if test -n "$ac_ct_NMEDIT"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8539 $as_echo "$ac_ct_NMEDIT" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8545 if test "x$ac_ct_NMEDIT" = x; then
8548 case $cross_compiling:$ac_tool_warned in
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8554 NMEDIT=$ac_ct_NMEDIT
8557 NMEDIT="$ac_cv_prog_NMEDIT"
8560 if test -n "$ac_tool_prefix"; then
8561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_LIPO+:} false; then :
8566 $as_echo_n "(cached) " >&6
8568 if test -n "$LIPO"; then
8569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 LIPO=$ac_cv_prog_LIPO
8589 if test -n "$LIPO"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8591 $as_echo "$LIPO" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8599 if test -z "$ac_cv_prog_LIPO"; then
8601 # Extract the first word of "lipo", so it can be a program name with args.
8602 set dummy lipo; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8606 $as_echo_n "(cached) " >&6
8608 if test -n "$ac_ct_LIPO"; then
8609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618 ac_cv_prog_ac_ct_LIPO="lipo"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8629 if test -n "$ac_ct_LIPO"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8631 $as_echo "$ac_ct_LIPO" >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8637 if test "x$ac_ct_LIPO" = x; then
8640 case $cross_compiling:$ac_tool_warned in
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8649 LIPO="$ac_cv_prog_LIPO"
8652 if test -n "$ac_tool_prefix"; then
8653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8654 set dummy ${ac_tool_prefix}otool; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_prog_OTOOL+:} false; then :
8658 $as_echo_n "(cached) " >&6
8660 if test -n "$OTOOL"; then
8661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 OTOOL=$ac_cv_prog_OTOOL
8681 if test -n "$OTOOL"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8683 $as_echo "$OTOOL" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8691 if test -z "$ac_cv_prog_OTOOL"; then
8693 # Extract the first word of "otool", so it can be a program name with args.
8694 set dummy otool; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8698 $as_echo_n "(cached) " >&6
8700 if test -n "$ac_ct_OTOOL"; then
8701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_prog_ac_ct_OTOOL="otool"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8721 if test -n "$ac_ct_OTOOL"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8723 $as_echo "$ac_ct_OTOOL" >&6; }
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8729 if test "x$ac_ct_OTOOL" = x; then
8732 case $cross_compiling:$ac_tool_warned in
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8736 ac_tool_warned=yes ;;
8741 OTOOL="$ac_cv_prog_OTOOL"
8744 if test -n "$ac_tool_prefix"; then
8745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8746 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8748 $as_echo_n "checking for $ac_word... " >&6; }
8749 if ${ac_cv_prog_OTOOL64+:} false; then :
8750 $as_echo_n "(cached) " >&6
8752 if test -n "$OTOOL64"; then
8753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
8761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8772 OTOOL64=$ac_cv_prog_OTOOL64
8773 if test -n "$OTOOL64"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8775 $as_echo "$OTOOL64" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8783 if test -z "$ac_cv_prog_OTOOL64"; then
8784 ac_ct_OTOOL64=$OTOOL64
8785 # Extract the first word of "otool64", so it can be a program name with args.
8786 set dummy otool64; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8790 $as_echo_n "(cached) " >&6
8792 if test -n "$ac_ct_OTOOL64"; then
8793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_prog_ac_ct_OTOOL64="otool64"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8813 if test -n "$ac_ct_OTOOL64"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8815 $as_echo "$ac_ct_OTOOL64" >&6; }
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8821 if test "x$ac_ct_OTOOL64" = x; then
8824 case $cross_compiling:$ac_tool_warned in
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8828 ac_tool_warned=yes ;;
8830 OTOOL64=$ac_ct_OTOOL64
8833 OTOOL64="$ac_cv_prog_OTOOL64"
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8863 $as_echo_n "checking for -single_module linker flag... " >&6; }
8864 if ${lt_cv_apple_cc_single_mod+:} false; then :
8865 $as_echo_n "(cached) " >&6
8867 lt_cv_apple_cc_single_mod=no
8868 if test -z "${LT_MULTI_MODULE}"; then
8869 # By default we will add the -single_module flag. You can override
8870 # by either setting the environment variable LT_MULTI_MODULE
8871 # non-empty at configure time, or by adding -multi_module to the
8873 rm -rf libconftest.dylib*
8874 echo "int foo(void){return 1;}" > conftest.c
8875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8876 -dynamiclib -Wl,-single_module conftest.c" >&5
8877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8881 lt_cv_apple_cc_single_mod=yes
8883 cat conftest.err >&5
8885 rm -rf libconftest.dylib*
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8890 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8892 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8893 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8894 $as_echo_n "(cached) " >&6
8896 lt_cv_ld_exported_symbols_list=no
8897 save_LDFLAGS=$LDFLAGS
8898 echo "_main" > conftest.sym
8899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 lt_cv_ld_exported_symbols_list=yes
8914 lt_cv_ld_exported_symbols_list=no
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 LDFLAGS="$save_LDFLAGS"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8922 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8924 $as_echo_n "checking for -force_load linker flag... " >&6; }
8925 if ${lt_cv_ld_force_load+:} false; then :
8926 $as_echo_n "(cached) " >&6
8928 lt_cv_ld_force_load=no
8929 cat > conftest.c << _LT_EOF
8930 int forced_loaded() { return 2;}
8932 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8933 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8934 echo "$AR cru libconftest.a conftest.o" >&5
8935 $AR cru libconftest.a conftest.o 2>&5
8936 echo "$RANLIB libconftest.a" >&5
8937 $RANLIB libconftest.a 2>&5
8938 cat > conftest.c << _LT_EOF
8939 int main() { return 0;}
8941 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8942 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8944 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8945 lt_cv_ld_force_load=yes
8947 cat conftest.err >&5
8949 rm -f conftest.err libconftest.a conftest conftest.c
8950 rm -rf conftest.dSYM
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8954 $as_echo "$lt_cv_ld_force_load" >&6; }
8956 rhapsody* | darwin1.[012])
8957 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8959 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8960 darwin*) # darwin 5.x on
8961 # if running on 10.5 or later, the deployment target defaults
8962 # to the OS version, if on x86, and 10.4, the deployment
8963 # target defaults to 10.4. Don't you love it?
8964 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8965 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8966 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8968 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8970 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8974 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8975 _lt_dar_single_mod='$single_module'
8977 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8978 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8980 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8982 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8983 _lt_dsymutil='~$DSYMUTIL $lib || :'
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8991 $as_echo_n "checking for ANSI C header files... " >&6; }
8992 if ${ac_cv_header_stdc+:} false; then :
8993 $as_echo_n "(cached) " >&6
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
9010 if ac_fn_c_try_compile "$LINENO"; then :
9011 ac_cv_header_stdc=yes
9013 ac_cv_header_stdc=no
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 if test $ac_cv_header_stdc = yes; then
9018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9025 $EGREP "memchr" >/dev/null 2>&1; then :
9028 ac_cv_header_stdc=no
9034 if test $ac_cv_header_stdc = yes; then
9035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 $EGREP "free" >/dev/null 2>&1; then :
9045 ac_cv_header_stdc=no
9051 if test $ac_cv_header_stdc = yes; then
9052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9053 if test "$cross_compiling" = yes; then :
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9060 #if ((' ' & 0x0FF) == 0x020)
9061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9064 # define ISLOWER(c) \
9065 (('a' <= (c) && (c) <= 'i') \
9066 || ('j' <= (c) && (c) <= 'r') \
9067 || ('s' <= (c) && (c) <= 'z'))
9068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9076 for (i = 0; i < 256; i++)
9077 if (XOR (islower (i), ISLOWER (i))
9078 || toupper (i) != TOUPPER (i))
9083 if ac_fn_c_try_run "$LINENO"; then :
9086 ac_cv_header_stdc=no
9088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9089 conftest.$ac_objext conftest.beam conftest.$ac_ext
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9095 $as_echo "$ac_cv_header_stdc" >&6; }
9096 if test $ac_cv_header_stdc = yes; then
9098 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9102 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9103 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9104 inttypes.h stdint.h unistd.h
9106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9107 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9109 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9110 cat >>confdefs.h <<_ACEOF
9111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9119 for ac_header in dlfcn.h
9121 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9123 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9124 cat >>confdefs.h <<_ACEOF
9125 #define HAVE_DLFCN_H 1
9135 func_stripname_cnf ()
9138 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9139 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9141 } # func_stripname_cnf
9148 # Check whether --enable-shared was given.
9149 if test "${enable_shared+set}" = set; then :
9150 enableval=$enable_shared; p=${PACKAGE-default}
9152 yes) enable_shared=yes ;;
9153 no) enable_shared=no ;;
9156 # Look at the argument we got. We use all the common list separators.
9157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9158 for pkg in $enableval; do
9160 if test "X$pkg" = "X$p"; then
9177 # Check whether --enable-static was given.
9178 if test "${enable_static+set}" = set; then :
9179 enableval=$enable_static; p=${PACKAGE-default}
9181 yes) enable_static=yes ;;
9182 no) enable_static=no ;;
9185 # Look at the argument we got. We use all the common list separators.
9186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9187 for pkg in $enableval; do
9189 if test "X$pkg" = "X$p"; then
9218 # Check whether --with-pic was given.
9219 if test "${with_pic+set}" = set; then :
9220 withval=$with_pic; pic_mode="$withval"
9226 test -z "$pic_mode" && pic_mode=default
9234 # Check whether --enable-fast-install was given.
9235 if test "${enable_fast_install+set}" = set; then :
9236 enableval=$enable_fast_install; p=${PACKAGE-default}
9238 yes) enable_fast_install=yes ;;
9239 no) enable_fast_install=no ;;
9241 enable_fast_install=no
9242 # Look at the argument we got. We use all the common list separators.
9243 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9244 for pkg in $enableval; do
9246 if test "X$pkg" = "X$p"; then
9247 enable_fast_install=yes
9254 enable_fast_install=yes
9267 # This can be used to rebuild libtool when needed
9268 LIBTOOL_DEPS="$ltmain"
9270 # Always use our own libtool.
9271 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9298 test -z "$LN_S" && LN_S="ln -s"
9313 if test -n "${ZSH_VERSION+set}" ; then
9314 setopt NO_GLOB_SUBST
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9318 $as_echo_n "checking for objdir... " >&6; }
9319 if ${lt_cv_objdir+:} false; then :
9320 $as_echo_n "(cached) " >&6
9322 rm -f .libs 2>/dev/null
9323 mkdir .libs 2>/dev/null
9324 if test -d .libs; then
9327 # MS-DOS does not allow filenames that begin with a dot.
9330 rmdir .libs 2>/dev/null
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9333 $as_echo "$lt_cv_objdir" >&6; }
9334 objdir=$lt_cv_objdir
9340 cat >>confdefs.h <<_ACEOF
9341 #define LT_OBJDIR "$lt_cv_objdir/"
9349 # AIX sometimes has problems with the GCC collect2 program. For some
9350 # reason, if we set the COLLECT_NAMES environment variable, the problems
9351 # vanish in a puff of smoke.
9352 if test "X${COLLECT_NAMES+set}" != Xset; then
9354 export COLLECT_NAMES
9361 can_build_shared=yes
9363 # All known linkers require a `.a' archive for static linking (except MSVC,
9364 # which needs '.lib').
9367 with_gnu_ld="$lt_cv_prog_gnu_ld"
9370 old_CFLAGS="$CFLAGS"
9372 # Set sane defaults for various variables
9373 test -z "$CC" && CC=cc
9374 test -z "$LTCC" && LTCC=$CC
9375 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9376 test -z "$LD" && LD=ld
9377 test -z "$ac_objext" && ac_objext=o
9379 for cc_temp in $compiler""; do
9381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9387 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9390 # Only perform the check for file, if the check method requires it
9391 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9392 case $deplibs_check_method in
9394 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9396 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9397 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9398 $as_echo_n "(cached) " >&6
9402 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9405 lt_save_MAGIC_CMD="$MAGIC_CMD"
9406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9407 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9408 for ac_dir in $ac_dummy; do
9410 test -z "$ac_dir" && ac_dir=.
9411 if test -f $ac_dir/${ac_tool_prefix}file; then
9412 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9413 if test -n "$file_magic_test_file"; then
9414 case $deplibs_check_method in
9416 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9419 $EGREP "$file_magic_regex" > /dev/null; then
9424 *** Warning: the command libtool uses to detect shared libraries,
9425 *** $file_magic_cmd, produces output that libtool cannot recognize.
9426 *** The result is that libtool may fail to recognize shared libraries
9427 *** as such. This will affect the creation of libtool libraries that
9428 *** depend on shared libraries, but programs linked with such libtool
9429 *** libraries will work regardless of this problem. Nevertheless, you
9430 *** may want to report the problem to your system manager and/or to
9431 *** bug-libtool@gnu.org
9441 MAGIC_CMD="$lt_save_MAGIC_CMD"
9446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9447 if test -n "$MAGIC_CMD"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9449 $as_echo "$MAGIC_CMD" >&6; }
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 $as_echo "no" >&6; }
9459 if test -z "$lt_cv_path_MAGIC_CMD"; then
9460 if test -n "$ac_tool_prefix"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9462 $as_echo_n "checking for file... " >&6; }
9463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9464 $as_echo_n "(cached) " >&6
9468 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9471 lt_save_MAGIC_CMD="$MAGIC_CMD"
9472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9473 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9474 for ac_dir in $ac_dummy; do
9476 test -z "$ac_dir" && ac_dir=.
9477 if test -f $ac_dir/file; then
9478 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9479 if test -n "$file_magic_test_file"; then
9480 case $deplibs_check_method in
9482 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9484 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9485 $EGREP "$file_magic_regex" > /dev/null; then
9490 *** Warning: the command libtool uses to detect shared libraries,
9491 *** $file_magic_cmd, produces output that libtool cannot recognize.
9492 *** The result is that libtool may fail to recognize shared libraries
9493 *** as such. This will affect the creation of libtool libraries that
9494 *** depend on shared libraries, but programs linked with such libtool
9495 *** libraries will work regardless of this problem. Nevertheless, you
9496 *** may want to report the problem to your system manager and/or to
9497 *** bug-libtool@gnu.org
9507 MAGIC_CMD="$lt_save_MAGIC_CMD"
9512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9513 if test -n "$MAGIC_CMD"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9515 $as_echo "$MAGIC_CMD" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9531 # Use C for the default configuration in the libtool script
9535 ac_cpp='$CPP $CPPFLAGS'
9536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9541 # Source file extension for C test sources.
9544 # Object file extension for compiled C test sources.
9548 # Code to be used in simple compile tests
9549 lt_simple_compile_test_code="int some_variable = 0;"
9551 # Code to be used in simple link tests
9552 lt_simple_link_test_code='int main(){return(0);}'
9560 # If no C compiler was specified, use CC.
9563 # If no C compiler flags were specified, use CFLAGS.
9564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9566 # Allow CC to be a program name with arguments.
9569 # Save the default compiler, since it gets overwritten when the other
9570 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9571 compiler_DEFAULT=$CC
9573 # save warnings/boilerplate of simple test code
9574 ac_outfile=conftest.$ac_objext
9575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9577 _lt_compiler_boilerplate=`cat conftest.err`
9580 ac_outfile=conftest.$ac_objext
9581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9583 _lt_linker_boilerplate=`cat conftest.err`
9588 ## There is no encapsulation within the following macros, do not change
9589 ## the running order or otherwise move them around unless you know exactly
9590 ## what you are doing...
9591 if test -n "$compiler"; then
9593 lt_prog_compiler_no_builtin_flag=
9595 if test "$GCC" = yes; then
9596 case $cc_basename in
9598 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9600 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9604 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9605 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9606 $as_echo_n "(cached) " >&6
9608 lt_cv_prog_compiler_rtti_exceptions=no
9609 ac_outfile=conftest.$ac_objext
9610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9611 lt_compiler_flag="-fno-rtti -fno-exceptions"
9612 # Insert the option either (1) after the last *FLAGS variable, or
9613 # (2) before a word containing "conftest.", or (3) at the end.
9614 # Note that $ac_compile itself does not contain backslashes and begins
9615 # with a dollar sign (not a hyphen), so the echo should work correctly.
9616 # The option is referenced via a variable to avoid confusing sed.
9617 lt_compile=`echo "$ac_compile" | $SED \
9618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9620 -e 's:$: $lt_compiler_flag:'`
9621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9622 (eval "$lt_compile" 2>conftest.err)
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 if (exit $ac_status) && test -s "$ac_outfile"; then
9627 # The compiler can only warn and ignore the option if not recognized
9628 # So say no if there are warnings other than the usual output.
9629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9632 lt_cv_prog_compiler_rtti_exceptions=yes
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9639 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9641 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9642 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9654 lt_prog_compiler_wl=
9655 lt_prog_compiler_pic=
9656 lt_prog_compiler_static=
9659 if test "$GCC" = yes; then
9660 lt_prog_compiler_wl='-Wl,'
9661 lt_prog_compiler_static='-static'
9665 # All AIX code is PIC.
9666 if test "$host_cpu" = ia64; then
9667 # AIX 5 now supports IA64 processor
9668 lt_prog_compiler_static='-Bstatic'
9675 # see comment about AmigaOS4 .so support
9676 lt_prog_compiler_pic='-fPIC'
9679 # FIXME: we need at least 68020 code to build shared libraries, but
9680 # adding the `-m68020' flag to GCC prevents building anything better,
9682 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9687 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9688 # PIC is the default for these OSes.
9691 mingw* | cygwin* | pw32* | os2* | cegcc*)
9692 # This hack is so that the source file can tell whether it is being
9693 # built for inclusion in a dll (and should export symbols for example).
9694 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9695 # (--disable-auto-import) libraries
9696 lt_prog_compiler_pic='-DDLL_EXPORT'
9699 darwin* | rhapsody*)
9700 # PIC is the default on this platform
9701 # Common symbols not allowed in MH_DYLIB files
9702 lt_prog_compiler_pic='-fno-common'
9706 # PIC is the default for Haiku.
9707 # The "-static" flag exists, but is broken.
9708 lt_prog_compiler_static=
9712 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9713 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9714 # sets the default TLS model and affects inlining.
9720 lt_prog_compiler_pic='-fPIC'
9726 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9727 # Instead, we relocate shared libraries at runtime.
9731 # Just because we use GCC doesn't mean we suddenly get shared libraries
9732 # on systems that don't support them.
9733 lt_prog_compiler_can_build_shared=no
9738 # QNX uses GNU C++, but need to define -shared option too, otherwise
9740 lt_prog_compiler_pic='-fPIC -shared'
9744 if test -d /usr/nec; then
9745 lt_prog_compiler_pic=-Kconform_pic
9750 lt_prog_compiler_pic='-fPIC'
9754 case $cc_basename in
9755 nvcc*) # Cuda Compiler Driver 2.2
9756 lt_prog_compiler_wl='-Xlinker '
9757 lt_prog_compiler_pic='-Xcompiler -fPIC'
9761 # PORTME Check for flag to pass linker flags through the system compiler.
9764 lt_prog_compiler_wl='-Wl,'
9765 if test "$host_cpu" = ia64; then
9766 # AIX 5 now supports IA64 processor
9767 lt_prog_compiler_static='-Bstatic'
9769 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9773 mingw* | cygwin* | pw32* | os2* | cegcc*)
9774 # This hack is so that the source file can tell whether it is being
9775 # built for inclusion in a dll (and should export symbols for example).
9776 lt_prog_compiler_pic='-DDLL_EXPORT'
9779 hpux9* | hpux10* | hpux11*)
9780 lt_prog_compiler_wl='-Wl,'
9781 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9788 lt_prog_compiler_pic='+Z'
9791 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9792 lt_prog_compiler_static='${wl}-a ${wl}archive'
9795 irix5* | irix6* | nonstopux*)
9796 lt_prog_compiler_wl='-Wl,'
9797 # PIC (with -KPIC) is the default.
9798 lt_prog_compiler_static='-non_shared'
9801 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9802 case $cc_basename in
9803 # old Intel for x86_64 which still supported -KPIC.
9805 lt_prog_compiler_wl='-Wl,'
9806 lt_prog_compiler_pic='-KPIC'
9807 lt_prog_compiler_static='-static'
9809 # icc used to be incompatible with GCC.
9810 # ICC 10 doesn't accept -KPIC any more.
9812 lt_prog_compiler_wl='-Wl,'
9813 lt_prog_compiler_pic='-fPIC'
9814 lt_prog_compiler_static='-static'
9816 # Lahey Fortran 8.1.
9818 lt_prog_compiler_wl='-Wl,'
9819 lt_prog_compiler_pic='--shared'
9820 lt_prog_compiler_static='--static'
9823 # NAG Fortran compiler
9824 lt_prog_compiler_wl='-Wl,-Wl,,'
9825 lt_prog_compiler_pic='-PIC'
9826 lt_prog_compiler_static='-Bstatic'
9828 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9829 # Portland Group compilers (*not* the Pentium gcc compiler,
9830 # which looks to be a dead project)
9831 lt_prog_compiler_wl='-Wl,'
9832 lt_prog_compiler_pic='-fpic'
9833 lt_prog_compiler_static='-Bstatic'
9836 lt_prog_compiler_wl='-Wl,'
9837 # All Alpha code is PIC.
9838 lt_prog_compiler_static='-non_shared'
9840 xl* | bgxl* | bgf* | mpixl*)
9841 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9842 lt_prog_compiler_wl='-Wl,'
9843 lt_prog_compiler_pic='-qpic'
9844 lt_prog_compiler_static='-qstaticlink'
9847 case `$CC -V 2>&1 | sed 5q` in
9848 *Sun\ F* | *Sun*Fortran*)
9849 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9850 lt_prog_compiler_pic='-KPIC'
9851 lt_prog_compiler_static='-Bstatic'
9852 lt_prog_compiler_wl=''
9856 lt_prog_compiler_pic='-KPIC'
9857 lt_prog_compiler_static='-Bstatic'
9858 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='-KPIC'
9867 lt_prog_compiler_static='-Bstatic'
9871 # QNX uses GNU C++, but need to define -shared option too, otherwise
9873 lt_prog_compiler_pic='-fPIC -shared'
9876 osf3* | osf4* | osf5*)
9877 lt_prog_compiler_wl='-Wl,'
9878 # All OSF/1 code is PIC.
9879 lt_prog_compiler_static='-non_shared'
9883 lt_prog_compiler_static='-non_shared'
9887 lt_prog_compiler_pic='-KPIC'
9888 lt_prog_compiler_static='-Bstatic'
9889 case $cc_basename in
9890 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9891 lt_prog_compiler_wl='-Qoption ld ';;
9893 lt_prog_compiler_wl='-Wl,';;
9898 lt_prog_compiler_wl='-Qoption ld '
9899 lt_prog_compiler_pic='-PIC'
9900 lt_prog_compiler_static='-Bstatic'
9903 sysv4 | sysv4.2uw2* | sysv4.3*)
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='-KPIC'
9906 lt_prog_compiler_static='-Bstatic'
9910 if test -d /usr/nec ;then
9911 lt_prog_compiler_pic='-Kconform_pic'
9912 lt_prog_compiler_static='-Bstatic'
9916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='-KPIC'
9919 lt_prog_compiler_static='-Bstatic'
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_can_build_shared=no
9928 lt_prog_compiler_pic='-pic'
9929 lt_prog_compiler_static='-Bstatic'
9933 lt_prog_compiler_can_build_shared=no
9939 # For platforms which do not support PIC, -DPIC is meaningless:
9941 lt_prog_compiler_pic=
9944 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9949 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9950 if ${lt_cv_prog_compiler_pic+:} false; then :
9951 $as_echo_n "(cached) " >&6
9953 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9956 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9957 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9960 # Check to make sure the PIC flag actually works.
9962 if test -n "$lt_prog_compiler_pic"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9966 $as_echo_n "(cached) " >&6
9968 lt_cv_prog_compiler_pic_works=no
9969 ac_outfile=conftest.$ac_objext
9970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9972 # Insert the option either (1) after the last *FLAGS variable, or
9973 # (2) before a word containing "conftest.", or (3) at the end.
9974 # Note that $ac_compile itself does not contain backslashes and begins
9975 # with a dollar sign (not a hyphen), so the echo should work correctly.
9976 # The option is referenced via a variable to avoid confusing sed.
9977 lt_compile=`echo "$ac_compile" | $SED \
9978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9980 -e 's:$: $lt_compiler_flag:'`
9981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9982 (eval "$lt_compile" 2>conftest.err)
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 if (exit $ac_status) && test -s "$ac_outfile"; then
9987 # The compiler can only warn and ignore the option if not recognized
9988 # So say no if there are warnings other than the usual output.
9989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9992 lt_cv_prog_compiler_pic_works=yes
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10002 case $lt_prog_compiler_pic in
10004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10007 lt_prog_compiler_pic=
10008 lt_prog_compiler_can_build_shared=no
10024 # Check to make sure the static flag actually works.
10026 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10028 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10029 if ${lt_cv_prog_compiler_static_works+:} false; then :
10030 $as_echo_n "(cached) " >&6
10032 lt_cv_prog_compiler_static_works=no
10033 save_LDFLAGS="$LDFLAGS"
10034 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10035 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10037 # The linker can only warn and ignore the option if not recognized
10038 # So say no if there are warnings
10039 if test -s conftest.err; then
10040 # Append any errors to the config.log.
10041 cat conftest.err 1>&5
10042 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10044 if diff conftest.exp conftest.er2 >/dev/null; then
10045 lt_cv_prog_compiler_static_works=yes
10048 lt_cv_prog_compiler_static_works=yes
10052 LDFLAGS="$save_LDFLAGS"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10056 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10058 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10061 lt_prog_compiler_static=
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10072 if ${lt_cv_prog_compiler_c_o+:} false; then :
10073 $as_echo_n "(cached) " >&6
10075 lt_cv_prog_compiler_c_o=no
10076 $RM -r conftest 2>/dev/null
10080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10082 lt_compiler_flag="-o out/conftest2.$ac_objext"
10083 # Insert the option either (1) after the last *FLAGS variable, or
10084 # (2) before a word containing "conftest.", or (3) at the end.
10085 # Note that $ac_compile itself does not contain backslashes and begins
10086 # with a dollar sign (not a hyphen), so the echo should work correctly.
10087 lt_compile=`echo "$ac_compile" | $SED \
10088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10090 -e 's:$: $lt_compiler_flag:'`
10091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10092 (eval "$lt_compile" 2>out/conftest.err)
10094 cat out/conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10098 # The compiler can only warn and ignore the option if not recognized
10099 # So say no if there are warnings
10100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10103 lt_cv_prog_compiler_c_o=yes
10108 # SGI C++ compiler will create directory out/ii_files/ for
10109 # template instantiation
10110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10111 $RM out/* && rmdir out
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10118 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10127 if ${lt_cv_prog_compiler_c_o+:} false; then :
10128 $as_echo_n "(cached) " >&6
10130 lt_cv_prog_compiler_c_o=no
10131 $RM -r conftest 2>/dev/null
10135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10137 lt_compiler_flag="-o out/conftest2.$ac_objext"
10138 # Insert the option either (1) after the last *FLAGS variable, or
10139 # (2) before a word containing "conftest.", or (3) at the end.
10140 # Note that $ac_compile itself does not contain backslashes and begins
10141 # with a dollar sign (not a hyphen), so the echo should work correctly.
10142 lt_compile=`echo "$ac_compile" | $SED \
10143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10145 -e 's:$: $lt_compiler_flag:'`
10146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10147 (eval "$lt_compile" 2>out/conftest.err)
10149 cat out/conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10153 # The compiler can only warn and ignore the option if not recognized
10154 # So say no if there are warnings
10155 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10156 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10157 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10158 lt_cv_prog_compiler_c_o=yes
10163 # SGI C++ compiler will create directory out/ii_files/ for
10164 # template instantiation
10165 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10166 $RM out/* && rmdir out
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10173 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10178 hard_links="nottested"
10179 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10180 # do not overwrite the value of need_locks provided by the user
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10182 $as_echo_n "checking if we can lock with hard links... " >&6; }
10185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10187 ln conftest.a conftest.b 2>&5 || hard_links=no
10188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10190 $as_echo "$hard_links" >&6; }
10191 if test "$hard_links" = no; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10193 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10206 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10209 allow_undefined_flag=
10210 always_export_symbols=no
10212 archive_expsym_cmds=
10213 compiler_needs_object=no
10214 enable_shared_with_static_runtimes=no
10215 export_dynamic_flag_spec=
10216 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10217 hardcode_automatic=no
10219 hardcode_direct_absolute=no
10220 hardcode_libdir_flag_spec=
10221 hardcode_libdir_flag_spec_ld=
10222 hardcode_libdir_separator=
10223 hardcode_minus_L=no
10224 hardcode_shlibpath_var=unsupported
10226 link_all_deplibs=unknown
10228 module_expsym_cmds=
10229 old_archive_from_new_cmds=
10230 old_archive_from_expsyms_cmds=
10231 thread_safe_flag_spec=
10232 whole_archive_flag_spec=
10233 # include_expsyms should be a list of space-separated symbols to be *always*
10234 # included in the symbol list
10236 # exclude_expsyms can be an extended regexp of symbols to exclude
10237 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10238 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10239 # as well as any symbol that contains `d'.
10240 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10241 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10242 # platforms (ab)use it in PIC code, but their linkers get confused if
10243 # the symbol is explicitly referenced. Since portable code cannot
10244 # rely on this symbol name, it's probably fine to never include it in
10245 # preloaded symbol tables.
10246 # Exclude shared library initialization/finalization symbols.
10247 extract_expsyms_cmds=
10250 cygwin* | mingw* | pw32* | cegcc*)
10251 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10252 # When not using gcc, we currently assume that we are using
10253 # Microsoft Visual C++.
10254 if test "$GCC" != yes; then
10259 # we just hope/assume this is gcc and not c89 (= MSVC++)
10269 # On some targets, GNU ld is compatible enough with the native linker
10270 # that we're better off using the native interface for both.
10271 lt_use_gnu_ld_interface=no
10272 if test "$with_gnu_ld" = yes; then
10275 # The AIX port of GNU ld has always aspired to compatibility
10276 # with the native linker. However, as the warning in the GNU ld
10277 # block says, versions before 2.19.5* couldn't really create working
10278 # shared libraries, regardless of the interface used.
10279 case `$LD -v 2>&1` in
10280 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10281 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10282 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10284 lt_use_gnu_ld_interface=yes
10289 lt_use_gnu_ld_interface=yes
10294 if test "$lt_use_gnu_ld_interface" = yes; then
10295 # If archive_cmds runs LD, not CC, wlarc should be empty
10298 # Set some defaults for GNU ld with shared library support. These
10299 # are reset later if shared libraries are not supported. Putting them
10300 # here allows them to be overridden if necessary.
10301 runpath_var=LD_RUN_PATH
10302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10303 export_dynamic_flag_spec='${wl}--export-dynamic'
10304 # ancient GNU ld didn't support --whole-archive et. al.
10305 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10306 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10308 whole_archive_flag_spec=
10310 supports_anon_versioning=no
10311 case `$LD -v 2>&1` in
10312 *GNU\ gold*) supports_anon_versioning=yes ;;
10313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10316 *\ 2.11.*) ;; # other 2.11 versions
10317 *) supports_anon_versioning=yes ;;
10320 # See if GNU ld supports shared libraries.
10323 # On AIX/PPC, the GNU linker is very broken
10324 if test "$host_cpu" != ia64; then
10328 *** Warning: the GNU linker, at least up to release 2.19, is reported
10329 *** to be unable to reliably create shared libraries on AIX.
10330 *** Therefore, libtool is disabling shared libraries support. If you
10331 *** really care for shared libraries, you may want to install binutils
10332 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10333 *** You will then need to restart the configuration process.
10342 # see comment about AmigaOS4 .so support
10343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10344 archive_expsym_cmds=''
10347 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)'
10348 hardcode_libdir_flag_spec='-L$libdir'
10349 hardcode_minus_L=yes
10355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10356 allow_undefined_flag=unsupported
10357 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10358 # support --undefined. This deserves some investigation. FIXME
10359 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10365 cygwin* | mingw* | pw32* | cegcc*)
10366 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10367 # as there is no search path for DLLs.
10368 hardcode_libdir_flag_spec='-L$libdir'
10369 export_dynamic_flag_spec='${wl}--export-all-symbols'
10370 allow_undefined_flag=unsupported
10371 always_export_symbols=no
10372 enable_shared_with_static_runtimes=yes
10373 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'
10374 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10378 # If the export-symbols file already is a .def file (1st line
10379 # is EXPORTS), use it as is; otherwise, prepend...
10380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10381 cp $export_symbols $output_objdir/$soname.def;
10383 echo EXPORTS > $output_objdir/$soname.def;
10384 cat $export_symbols >> $output_objdir/$soname.def;
10386 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10394 link_all_deplibs=yes
10399 hardcode_shlibpath_var=no
10400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10401 export_dynamic_flag_spec='${wl}-E'
10402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10403 # Instead, shared libraries are loaded at an image base (0x10000000 by
10404 # default) and relocated if they conflict, which is a slow very memory
10405 # consuming and fragmenting process. To avoid this, we pick a random,
10406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10409 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'
10412 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10414 if test "$host_os" = linux-dietlibc; then
10415 case $cc_basename in
10416 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10419 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10420 && test "$tmp_diet" = no
10422 tmp_addflag=' $pic_flag'
10423 tmp_sharedflag='-shared'
10424 case $cc_basename,$host_cpu in
10425 pgcc*) # Portland Group C compiler
10426 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'
10427 tmp_addflag=' $pic_flag'
10429 pgf77* | pgf90* | pgf95* | pgfortran*)
10430 # Portland Group f77 and f90 compilers
10431 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'
10432 tmp_addflag=' $pic_flag -Mnomain' ;;
10433 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10434 tmp_addflag=' -i_dynamic' ;;
10435 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10436 tmp_addflag=' -i_dynamic -nofor_main' ;;
10437 ifc* | ifort*) # Intel Fortran compiler
10438 tmp_addflag=' -nofor_main' ;;
10439 lf95*) # Lahey Fortran 8.1
10440 whole_archive_flag_spec=
10441 tmp_sharedflag='--shared' ;;
10442 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10443 tmp_sharedflag='-qmkshrobj'
10445 nvcc*) # Cuda Compiler Driver 2.2
10446 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'
10447 compiler_needs_object=yes
10450 case `$CC -V 2>&1 | sed 5q` in
10451 *Sun\ C*) # Sun C 5.9
10452 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'
10453 compiler_needs_object=yes
10454 tmp_sharedflag='-G' ;;
10455 *Sun\ F*) # Sun Fortran 8.3
10456 tmp_sharedflag='-G' ;;
10458 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10460 if test "x$supports_anon_versioning" = xyes; then
10461 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10462 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10463 echo "local: *; };" >> $output_objdir/$libname.ver~
10464 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10467 case $cc_basename in
10468 xlf* | bgf* | bgxlf* | mpixlf*)
10469 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10470 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10471 hardcode_libdir_flag_spec=
10472 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10473 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10474 if test "x$supports_anon_versioning" = xyes; then
10475 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10477 echo "local: *; };" >> $output_objdir/$libname.ver~
10478 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10489 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10493 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10498 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10502 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10503 *** create shared libraries on Solaris systems. Therefore, libtool
10504 *** is disabling shared libraries support. We urge you to upgrade GNU
10505 *** binutils to release 2.9.1 or newer. Another option is to modify
10506 *** your PATH or compiler configuration so that the native linker is
10507 *** used, and then restart.
10510 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10512 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10519 case `$LD -v 2>&1` in
10520 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10524 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10525 *** reliably create shared libraries on SCO systems. Therefore, libtool
10526 *** is disabling shared libraries support. We urge you to upgrade GNU
10527 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10528 *** your PATH or compiler configuration so that the native linker is
10529 *** used, and then restart.
10534 # For security reasons, it is highly recommended that you always
10535 # use absolute paths for naming shared libraries, and exclude the
10536 # DT_RUNPATH tag from executables and libraries. But doing so
10537 # requires that you compile everything twice, which is a pain.
10538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10550 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_direct=yes
10553 hardcode_shlibpath_var=no
10557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10566 if test "$ld_shlibs" = no; then
10568 hardcode_libdir_flag_spec=
10569 export_dynamic_flag_spec=
10570 whole_archive_flag_spec=
10573 # PORTME fill in a description of your system's linker (not GNU ld)
10576 allow_undefined_flag=unsupported
10577 always_export_symbols=yes
10578 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'
10579 # Note: this linker hardcodes the directories in LIBPATH if there
10580 # are no directories specified by -L.
10581 hardcode_minus_L=yes
10582 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10583 # Neither direct hardcoding nor static linking is supported with a
10585 hardcode_direct=unsupported
10590 if test "$host_cpu" = ia64; then
10591 # On IA64, the linker does run time linking by default, so we don't
10592 # have to do anything special.
10593 aix_use_runtimelinking=no
10594 exp_sym_flag='-Bexport'
10597 # If we're using GNU nm, then we don't want the "-C" option.
10598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10599 # Also, AIX nm treats weak defined symbols like other global
10600 # defined symbols, whereas GNU nm marks them as "W".
10601 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10602 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'
10604 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'
10606 aix_use_runtimelinking=no
10608 # Test if we are trying to use run time linking or normal
10609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10610 # need to do runtime linking.
10611 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10612 for ld_flag in $LDFLAGS; do
10613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10614 aix_use_runtimelinking=yes
10621 exp_sym_flag='-bexport'
10622 no_entry_flag='-bnoentry'
10625 # When large executables or shared objects are built, AIX ld can
10626 # have problems creating the table of contents. If linking a library
10627 # or program results in "error TOC overflow" add -mminimal-toc to
10628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10632 hardcode_direct=yes
10633 hardcode_direct_absolute=yes
10634 hardcode_libdir_separator=':'
10635 link_all_deplibs=yes
10636 file_list_spec='${wl}-f,'
10638 if test "$GCC" = yes; then
10639 case $host_os in aix4.[012]|aix4.[012].*)
10640 # We only want to do this on AIX 4.2 and lower, the check
10641 # below for broken collect2 doesn't work under 4.3+
10642 collect2name=`${CC} -print-prog-name=collect2`
10643 if test -f "$collect2name" &&
10644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10646 # We have reworked collect2
10649 # We have old collect2
10650 hardcode_direct=unsupported
10651 # It fails to find uninstalled libraries when the uninstalled
10652 # path is not listed in the libpath. Setting hardcode_minus_L
10653 # to unsupported forces relinking
10654 hardcode_minus_L=yes
10655 hardcode_libdir_flag_spec='-L$libdir'
10656 hardcode_libdir_separator=
10660 shared_flag='-shared'
10661 if test "$aix_use_runtimelinking" = yes; then
10662 shared_flag="$shared_flag "'${wl}-G'
10666 if test "$host_cpu" = ia64; then
10667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10668 # chokes on -Wl,-G. The following line is correct:
10671 if test "$aix_use_runtimelinking" = yes; then
10672 shared_flag='${wl}-G'
10674 shared_flag='${wl}-bM:SRE'
10679 export_dynamic_flag_spec='${wl}-bexpall'
10680 # It seems that -bexpall does not export symbols beginning with
10681 # underscore (_), so it is better to generate a list of symbols to export.
10682 always_export_symbols=yes
10683 if test "$aix_use_runtimelinking" = yes; then
10684 # Warning - without using the other runtime loading flags (-brtl),
10685 # -berok will link without error, but may produce a broken library.
10686 allow_undefined_flag='-berok'
10687 # Determine the default libpath from the value encoded in an
10688 # empty executable.
10689 if test "${lt_cv_aix_libpath+set}" = set; then
10690 aix_libpath=$lt_cv_aix_libpath
10692 if ${lt_cv_aix_libpath_+:} false; then :
10693 $as_echo_n "(cached) " >&6
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10706 if ac_fn_c_try_link "$LINENO"; then :
10708 lt_aix_libpath_sed='
10709 /Import File Strings/,/^$/ {
10711 s/^0 *\([^ ]*\) *$/\1/
10715 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10716 # Check for a 64-bit object if we didn't find anything.
10717 if test -z "$lt_cv_aix_libpath_"; then
10718 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 if test -z "$lt_cv_aix_libpath_"; then
10724 lt_cv_aix_libpath_="/usr/lib:/lib"
10729 aix_libpath=$lt_cv_aix_libpath_
10732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10733 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"
10735 if test "$host_cpu" = ia64; then
10736 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10737 allow_undefined_flag="-z nodefs"
10738 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"
10740 # Determine the default libpath from the value encoded in an
10741 # empty executable.
10742 if test "${lt_cv_aix_libpath+set}" = set; then
10743 aix_libpath=$lt_cv_aix_libpath
10745 if ${lt_cv_aix_libpath_+:} false; then :
10746 $as_echo_n "(cached) " >&6
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10759 if ac_fn_c_try_link "$LINENO"; then :
10761 lt_aix_libpath_sed='
10762 /Import File Strings/,/^$/ {
10764 s/^0 *\([^ ]*\) *$/\1/
10768 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10769 # Check for a 64-bit object if we didn't find anything.
10770 if test -z "$lt_cv_aix_libpath_"; then
10771 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10774 rm -f core conftest.err conftest.$ac_objext \
10775 conftest$ac_exeext conftest.$ac_ext
10776 if test -z "$lt_cv_aix_libpath_"; then
10777 lt_cv_aix_libpath_="/usr/lib:/lib"
10782 aix_libpath=$lt_cv_aix_libpath_
10785 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10786 # Warning - without using the other run time loading flags,
10787 # -berok will link without error, but may produce a broken library.
10788 no_undefined_flag=' ${wl}-bernotok'
10789 allow_undefined_flag=' ${wl}-berok'
10790 if test "$with_gnu_ld" = yes; then
10791 # We only use this code for GNU lds that support --whole-archive.
10792 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10794 # Exported symbols can be pulled into shared objects from archives
10795 whole_archive_flag_spec='$convenience'
10797 archive_cmds_need_lc=yes
10798 # This is similar to how AIX traditionally builds its shared libraries.
10799 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'
10807 # see comment about AmigaOS4 .so support
10808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10809 archive_expsym_cmds=''
10812 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)'
10813 hardcode_libdir_flag_spec='-L$libdir'
10814 hardcode_minus_L=yes
10820 export_dynamic_flag_spec=-rdynamic
10823 cygwin* | mingw* | pw32* | cegcc*)
10824 # When not using gcc, we currently assume that we are using
10825 # Microsoft Visual C++.
10826 # hardcode_libdir_flag_spec is actually meaningless, as there is
10827 # no search path for DLLs.
10828 case $cc_basename in
10831 hardcode_libdir_flag_spec=' '
10832 allow_undefined_flag=unsupported
10833 always_export_symbols=yes
10835 # Tell ltmain to make .lib files, not .a files.
10837 # Tell ltmain to make .dll files, not .so files.
10839 # FIXME: Setting linknames here is a bad hack.
10840 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10841 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10842 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10844 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10846 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10848 # The linker will not automatically build a static lib if we build a DLL.
10849 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10850 enable_shared_with_static_runtimes=yes
10851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10853 old_postinstall_cmds='chmod 644 $oldlib'
10854 postlink_cmds='lt_outputfile="@OUTPUT@"~
10855 lt_tool_outputfile="@TOOL_OUTPUT@"~
10856 case $lt_outputfile in
10859 lt_outputfile="$lt_outputfile.exe"
10860 lt_tool_outputfile="$lt_tool_outputfile.exe"
10863 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10864 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10865 $RM "$lt_outputfile.manifest";
10869 # Assume MSVC wrapper
10870 hardcode_libdir_flag_spec=' '
10871 allow_undefined_flag=unsupported
10872 # Tell ltmain to make .lib files, not .a files.
10874 # Tell ltmain to make .dll files, not .so files.
10876 # FIXME: Setting linknames here is a bad hack.
10877 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10878 # The linker will automatically build a .lib file if we build a DLL.
10879 old_archive_from_new_cmds='true'
10880 # FIXME: Should let the user specify the lib program.
10881 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10882 enable_shared_with_static_runtimes=yes
10887 darwin* | rhapsody*)
10890 archive_cmds_need_lc=no
10892 hardcode_automatic=yes
10893 hardcode_shlibpath_var=unsupported
10894 if test "$lt_cv_ld_force_load" = "yes"; then
10895 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\"`'
10897 whole_archive_flag_spec=''
10899 link_all_deplibs=yes
10900 allow_undefined_flag="$_lt_dar_allow_undefined"
10901 case $cc_basename in
10902 ifort*) _lt_dar_can_shared=yes ;;
10903 *) _lt_dar_can_shared=$GCC ;;
10905 if test "$_lt_dar_can_shared" = "yes"; then
10906 output_verbose_link_cmd=func_echo_all
10907 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10908 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10909 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}"
10910 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}"
10919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10920 hardcode_libdir_flag_spec='-L$libdir'
10921 hardcode_shlibpath_var=no
10928 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10929 # support. Future versions do this automatically, but an explicit c++rt0.o
10930 # does not break anything, and helps significantly (at the cost of a little
10933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10934 hardcode_libdir_flag_spec='-R$libdir'
10935 hardcode_direct=yes
10936 hardcode_shlibpath_var=no
10939 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10942 hardcode_direct=yes
10943 hardcode_minus_L=yes
10944 hardcode_shlibpath_var=no
10947 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10948 freebsd* | dragonfly*)
10949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10950 hardcode_libdir_flag_spec='-R$libdir'
10951 hardcode_direct=yes
10952 hardcode_shlibpath_var=no
10956 if test "$GCC" = yes; then
10957 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'
10959 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'
10961 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10962 hardcode_libdir_separator=:
10963 hardcode_direct=yes
10965 # hardcode_minus_L: Not really in the search PATH,
10966 # but as the default location of the library.
10967 hardcode_minus_L=yes
10968 export_dynamic_flag_spec='${wl}-E'
10972 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10973 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10975 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10977 if test "$with_gnu_ld" = no; then
10978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10979 hardcode_libdir_flag_spec_ld='+b $libdir'
10980 hardcode_libdir_separator=:
10981 hardcode_direct=yes
10982 hardcode_direct_absolute=yes
10983 export_dynamic_flag_spec='${wl}-E'
10984 # hardcode_minus_L: Not really in the search PATH,
10985 # but as the default location of the library.
10986 hardcode_minus_L=yes
10991 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10994 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10997 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11013 # Older versions of the 11.00 compiler do not understand -b yet
11014 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11016 $as_echo_n "checking if $CC understands -b... " >&6; }
11017 if ${lt_cv_prog_compiler__b+:} false; then :
11018 $as_echo_n "(cached) " >&6
11020 lt_cv_prog_compiler__b=no
11021 save_LDFLAGS="$LDFLAGS"
11022 LDFLAGS="$LDFLAGS -b"
11023 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11024 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11025 # The linker can only warn and ignore the option if not recognized
11026 # So say no if there are warnings
11027 if test -s conftest.err; then
11028 # Append any errors to the config.log.
11029 cat conftest.err 1>&5
11030 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11032 if diff conftest.exp conftest.er2 >/dev/null; then
11033 lt_cv_prog_compiler__b=yes
11036 lt_cv_prog_compiler__b=yes
11040 LDFLAGS="$save_LDFLAGS"
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11044 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11046 if test x"$lt_cv_prog_compiler__b" = xyes; then
11047 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11055 if test "$with_gnu_ld" = no; then
11056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11057 hardcode_libdir_separator=:
11062 hardcode_shlibpath_var=no
11065 hardcode_direct=yes
11066 hardcode_direct_absolute=yes
11067 export_dynamic_flag_spec='${wl}-E'
11069 # hardcode_minus_L: Not really in the search PATH,
11070 # but as the default location of the library.
11071 hardcode_minus_L=yes
11077 irix5* | irix6* | nonstopux*)
11078 if test "$GCC" = yes; then
11079 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'
11080 # Try to use the -exported_symbol ld option, if it does not
11081 # work, assume that -exports_file does not work either and
11082 # implicitly export all symbols.
11083 # This should be the same for all languages, so no per-tag cache variable.
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11085 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11086 if ${lt_cv_irix_exported_symbol+:} false; then :
11087 $as_echo_n "(cached) " >&6
11089 save_LDFLAGS="$LDFLAGS"
11090 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093 int foo (void) { return 0; }
11095 if ac_fn_c_try_link "$LINENO"; then :
11096 lt_cv_irix_exported_symbol=yes
11098 lt_cv_irix_exported_symbol=no
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LDFLAGS="$save_LDFLAGS"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11105 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11106 if test "$lt_cv_irix_exported_symbol" = yes; then
11107 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'
11110 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'
11111 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'
11113 archive_cmds_need_lc='no'
11114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11115 hardcode_libdir_separator=:
11117 link_all_deplibs=yes
11121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11124 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11126 hardcode_libdir_flag_spec='-R$libdir'
11127 hardcode_direct=yes
11128 hardcode_shlibpath_var=no
11132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11133 hardcode_direct=yes
11134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11135 hardcode_libdir_separator=:
11136 hardcode_shlibpath_var=no
11143 if test -f /usr/libexec/ld.so; then
11144 hardcode_direct=yes
11145 hardcode_shlibpath_var=no
11146 hardcode_direct_absolute=yes
11147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11149 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11150 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11151 export_dynamic_flag_spec='${wl}-E'
11154 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11156 hardcode_libdir_flag_spec='-R$libdir'
11159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11170 hardcode_libdir_flag_spec='-L$libdir'
11171 hardcode_minus_L=yes
11172 allow_undefined_flag=unsupported
11173 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'
11174 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11178 if test "$GCC" = yes; then
11179 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11180 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'
11182 allow_undefined_flag=' -expect_unresolved \*'
11183 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'
11185 archive_cmds_need_lc='no'
11186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11187 hardcode_libdir_separator=:
11190 osf4* | osf5*) # as osf3* with the addition of -msym flag
11191 if test "$GCC" = yes; then
11192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11193 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'
11194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11196 allow_undefined_flag=' -expect_unresolved \*'
11197 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'
11198 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~
11199 $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'
11201 # Both c and cxx compiler support -rpath directly
11202 hardcode_libdir_flag_spec='-rpath $libdir'
11204 archive_cmds_need_lc='no'
11205 hardcode_libdir_separator=:
11209 no_undefined_flag=' -z defs'
11210 if test "$GCC" = yes; then
11212 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11214 $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'
11216 case `$CC -V 2>&1` in
11219 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11221 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11225 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11226 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11227 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11231 hardcode_libdir_flag_spec='-R$libdir'
11232 hardcode_shlibpath_var=no
11234 solaris2.[0-5] | solaris2.[0-5].*) ;;
11236 # The compiler driver will combine and reorder linker options,
11237 # but understands `-z linker_flag'. GCC discards it without `$wl',
11238 # but is careful enough not to reorder.
11239 # Supported since Solaris 2.6 (maybe 2.5.1?)
11240 if test "$GCC" = yes; then
11241 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11243 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11247 link_all_deplibs=yes
11251 if test "x$host_vendor" = xsequent; then
11252 # Use $CC to link under sequent, because it throws in some extra .o
11253 # files that make .init and .fini sections work.
11254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11258 hardcode_libdir_flag_spec='-L$libdir'
11259 hardcode_direct=yes
11260 hardcode_minus_L=yes
11261 hardcode_shlibpath_var=no
11265 case $host_vendor in
11267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11268 hardcode_direct=yes # is this really true???
11271 ## LD is ld it makes a PLAMLIB
11272 ## CC just makes a GrossModule.
11273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11274 reload_cmds='$CC -r -o $output$reload_objs'
11278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11282 runpath_var='LD_RUN_PATH'
11283 hardcode_shlibpath_var=no
11287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 hardcode_shlibpath_var=no
11289 export_dynamic_flag_spec='-Bexport'
11293 if test -d /usr/nec; then
11294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11295 hardcode_shlibpath_var=no
11296 runpath_var=LD_RUN_PATH
11297 hardcode_runpath_var=yes
11302 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11303 no_undefined_flag='${wl}-z,text'
11304 archive_cmds_need_lc=no
11305 hardcode_shlibpath_var=no
11306 runpath_var='LD_RUN_PATH'
11308 if test "$GCC" = yes; then
11309 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11312 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11313 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11317 sysv5* | sco3.2v5* | sco5v6*)
11318 # Note: We can NOT use -z defs as we might desire, because we do not
11319 # link with -lc, and that would cause any symbols used from libc to
11320 # always be unresolved, which means just about no library would
11321 # ever link correctly. If we're not using GNU ld we use -z text
11322 # though, which does catch some bad symbols but isn't as heavy-handed
11324 no_undefined_flag='${wl}-z,text'
11325 allow_undefined_flag='${wl}-z,nodefs'
11326 archive_cmds_need_lc=no
11327 hardcode_shlibpath_var=no
11328 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11329 hardcode_libdir_separator=':'
11330 link_all_deplibs=yes
11331 export_dynamic_flag_spec='${wl}-Bexport'
11332 runpath_var='LD_RUN_PATH'
11334 if test "$GCC" = yes; then
11335 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11338 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345 hardcode_libdir_flag_spec='-L$libdir'
11346 hardcode_shlibpath_var=no
11354 if test x$host_vendor = xsni; then
11356 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11357 export_dynamic_flag_spec='${wl}-Blargedynsym'
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11364 $as_echo "$ld_shlibs" >&6; }
11365 test "$ld_shlibs" = no && can_build_shared=no
11367 with_gnu_ld=$with_gnu_ld
11384 # Do we need to explicitly link libc?
11386 case "x$archive_cmds_need_lc" in
11388 # Assume -lc should be added
11389 archive_cmds_need_lc=yes
11391 if test "$enable_shared" = yes && test "$GCC" = yes; then
11392 case $archive_cmds in
11394 # FIXME: we may have to deal with multi-command sequences.
11397 # Test whether the compiler implicitly links with -lc since on some
11398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11399 # to ld, don't add -lc before -lgcc.
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11401 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11402 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11403 $as_echo_n "(cached) " >&6
11406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11409 (eval $ac_compile) 2>&5
11411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412 test $ac_status = 0; } 2>conftest.err; then
11415 libobjs=conftest.$ac_objext
11417 wl=$lt_prog_compiler_wl
11418 pic_flag=$lt_prog_compiler_pic
11424 lt_save_allow_undefined_flag=$allow_undefined_flag
11425 allow_undefined_flag=
11426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11427 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430 test $ac_status = 0; }
11432 lt_cv_archive_cmds_need_lc=no
11434 lt_cv_archive_cmds_need_lc=yes
11436 allow_undefined_flag=$lt_save_allow_undefined_flag
11438 cat conftest.err 1>&5
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11444 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11445 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11609 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11611 if test "$GCC" = yes; then
11613 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11614 *) lt_awk_arg="/^libraries:/" ;;
11617 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11618 *) lt_sed_strip_eq="s,=/,/,g" ;;
11620 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11621 case $lt_search_path_spec in
11623 # if the path contains ";" then we assume it to be the separator
11624 # otherwise default to the standard path separator (i.e. ":") - it is
11625 # assumed that no part of a normal pathname contains ";" but that should
11626 # okay in the real world where ";" in dirpaths is itself problematic.
11627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11633 # Ok, now we have the path, separated by spaces, we can step through it
11634 # and add multilib dir if necessary.
11635 lt_tmp_lt_search_path_spec=
11636 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11637 for lt_sys_path in $lt_search_path_spec; do
11638 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11641 test -d "$lt_sys_path" && \
11642 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11645 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11646 BEGIN {RS=" "; FS="/|\n";} {
11649 for (lt_i = NF; lt_i > 0; lt_i--) {
11650 if ($lt_i != "" && $lt_i != ".") {
11651 if ($lt_i == "..") {
11654 if (lt_count == 0) {
11655 lt_foo="/" $lt_i lt_foo;
11662 if (lt_foo != "") { lt_freq[lt_foo]++; }
11663 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11665 # AWK program above erroneously prepends '/' to C:/dos/paths
11668 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11669 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11671 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11675 library_names_spec=
11676 libname_spec='lib$name'
11680 postuninstall_cmds=
11684 shlibpath_overrides_runpath=unknown
11686 dynamic_linker="$host_os ld.so"
11687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11688 need_lib_prefix=unknown
11689 hardcode_into_libs=no
11691 # when you set need_version to no, make sure it does not cause -set_version
11692 # flags to be left without arguments
11693 need_version=unknown
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11699 shlibpath_var=LIBPATH
11701 # AIX 3 has no versioning support, so we append a major version to the name.
11702 soname_spec='${libname}${release}${shared_ext}$major'
11709 hardcode_into_libs=yes
11710 if test "$host_cpu" = ia64; then
11711 # AIX 5 supports IA64
11712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11713 shlibpath_var=LD_LIBRARY_PATH
11715 # With GCC up to 2.95.x, collect2 would create an import file
11716 # for dependence libraries. The import file would start with
11717 # the line `#! .'. This would cause the generated library to
11718 # depend on `.', always an invalid library. This was fixed in
11719 # development snapshots of GCC prior to 3.0.
11721 aix4 | aix4.[01] | aix4.[01].*)
11722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11724 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11727 can_build_shared=no
11731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11732 # soname into executable. Probably we can add versioning support to
11733 # collect2, so additional links can be useful in future.
11734 if test "$aix_use_runtimelinking" = yes; then
11735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11736 # instead of lib<name>.a to let people know that these are not
11737 # typical AIX shared libraries.
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 # We preserve .a as extension for shared libraries through AIX4.2
11741 # and later when we are not doing run time linking.
11742 library_names_spec='${libname}${release}.a $libname.a'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11745 shlibpath_var=LIBPATH
11752 # Since July 2007 AmigaOS4 officially supports .so libraries.
11753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757 library_names_spec='$libname.ixlibrary $libname.a'
11758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11759 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'
11765 library_names_spec='${libname}${shared_ext}'
11766 dynamic_linker="$host_os ld.so"
11767 shlibpath_var=LIBRARY_PATH
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11779 # the default ld.so.conf also contains /usr/contrib/lib and
11780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11781 # libtool to hard-code these into programs
11784 cygwin* | mingw* | pw32* | cegcc*)
11785 version_type=windows
11790 case $GCC,$cc_basename in
11793 library_names_spec='$libname.dll.a'
11794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11795 postinstall_cmds='base_file=`basename \${file}`~
11796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11797 dldir=$destdir/`dirname \$dlpath`~
11798 test -d \$dldir || mkdir -p \$dldir~
11799 $install_prog $dir/$dlname \$dldir/$dlname~
11800 chmod a+x \$dldir/$dlname~
11801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11805 dlpath=$dir/\$dldll~
11807 shlibpath_overrides_runpath=yes
11811 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11812 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11817 # MinGW DLLs use traditional 'lib' prefix
11818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11821 # pw32 DLLs use 'pw' prefix rather than 'lib'
11822 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11825 dynamic_linker='Win32 ld.exe'
11830 libname_spec='$name'
11831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11832 library_names_spec='${libname}.dll.lib'
11836 sys_lib_search_path_spec=
11839 for lt_path in $LIB
11842 # Let DOS variable expansion print the short 8.3 style file name.
11843 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11844 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11847 # Convert to MSYS style.
11848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11851 # Convert to unix form, then to dos form, then back to unix form
11852 # but this time dos style (no spaces!) so that the unix form looks
11853 # like /cygdrive/c/PROGRA~1:/cygdr...
11854 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11855 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11856 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11859 sys_lib_search_path_spec="$LIB"
11860 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11861 # It is most probably a Windows format PATH.
11862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11866 # FIXME: find the short name or the path components, as spaces are
11867 # common. (e.g. "Program Files" -> "PROGRA~1")
11871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11872 postinstall_cmds='base_file=`basename \${file}`~
11873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11874 dldir=$destdir/`dirname \$dlpath`~
11875 test -d \$dldir || mkdir -p \$dldir~
11876 $install_prog $dir/$dlname \$dldir/$dlname'
11877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11878 dlpath=$dir/\$dldll~
11880 shlibpath_overrides_runpath=yes
11881 dynamic_linker='Win32 link.exe'
11885 # Assume MSVC wrapper
11886 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11887 dynamic_linker='Win32 ld.exe'
11890 # FIXME: first we should search . and the directory the executable is in
11894 darwin* | rhapsody*)
11895 dynamic_linker="$host_os dyld"
11896 version_type=darwin
11899 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11900 soname_spec='${libname}${release}${major}$shared_ext'
11901 shlibpath_overrides_runpath=yes
11902 shlibpath_var=DYLD_LIBRARY_PATH
11903 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11905 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11914 soname_spec='${libname}${release}${shared_ext}$major'
11915 shlibpath_var=LD_LIBRARY_PATH
11922 freebsd* | dragonfly*)
11923 # DragonFly does not have aout. When/if they implement a new
11924 # versioning mechanism, adjust this.
11925 if test -x /usr/bin/objformat; then
11926 objformat=`/usr/bin/objformat`
11929 freebsd[123]*) objformat=aout ;;
11930 *) objformat=elf ;;
11933 version_type=freebsd-$objformat
11934 case $version_type in
11936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11945 shlibpath_var=LD_LIBRARY_PATH
11948 shlibpath_overrides_runpath=yes
11950 freebsd3.[01]* | freebsdelf3.[01]*)
11951 shlibpath_overrides_runpath=yes
11952 hardcode_into_libs=yes
11954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11956 shlibpath_overrides_runpath=no
11957 hardcode_into_libs=yes
11959 *) # from 4.6 on, and DragonFly
11960 shlibpath_overrides_runpath=yes
11961 hardcode_into_libs=yes
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 hardcode_into_libs=yes
11980 dynamic_linker="$host_os runtime_loader"
11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11982 soname_spec='${libname}${release}${shared_ext}$major'
11983 shlibpath_var=LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11986 hardcode_into_libs=yes
11989 hpux9* | hpux10* | hpux11*)
11990 # Give a soname corresponding to the major version so that dld.sl refuses to
11991 # link against other versions.
11998 hardcode_into_libs=yes
11999 dynamic_linker="$host_os dld.so"
12000 shlibpath_var=LD_LIBRARY_PATH
12001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003 soname_spec='${libname}${release}${shared_ext}$major'
12004 if test "X$HPUX_IA64_MODE" = X32; then
12005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12013 hardcode_into_libs=yes
12014 dynamic_linker="$host_os dld.sl"
12015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12018 soname_spec='${libname}${release}${shared_ext}$major'
12019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12024 dynamic_linker="$host_os dld.sl"
12025 shlibpath_var=SHLIB_PATH
12026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12031 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12032 postinstall_cmds='chmod 555 $lib'
12033 # or fails outright, so override atomically:
12034 install_override_mode=555
12041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12042 soname_spec='${libname}${release}${shared_ext}$major'
12043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12044 shlibpath_var=LD_LIBRARY_PATH
12045 shlibpath_overrides_runpath=no
12046 hardcode_into_libs=yes
12049 irix5* | irix6* | nonstopux*)
12051 nonstopux*) version_type=nonstopux ;;
12053 if test "$lt_cv_prog_gnu_ld" = yes; then
12061 soname_spec='${libname}${release}${shared_ext}$major'
12062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12064 irix5* | nonstopux*)
12065 libsuff= shlibsuff=
12068 case $LD in # libtool.m4 will add one of these switches to LD
12069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12070 libsuff= shlibsuff= libmagic=32-bit;;
12071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12072 libsuff=32 shlibsuff=N32 libmagic=N32;;
12073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12075 *) libsuff= shlibsuff= libmagic=never-match;;
12079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12080 shlibpath_overrides_runpath=no
12081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12083 hardcode_into_libs=yes
12086 # No shared lib support for Linux oldld, aout, or coff.
12087 linux*oldld* | linux*aout* | linux*coff*)
12091 # This must be Linux ELF.
12092 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097 soname_spec='${libname}${release}${shared_ext}$major'
12098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12099 shlibpath_var=LD_LIBRARY_PATH
12100 shlibpath_overrides_runpath=no
12102 # Some binutils ld are patched to set DT_RUNPATH
12103 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12104 $as_echo_n "(cached) " >&6
12106 lt_cv_shlibpath_overrides_runpath=no
12107 save_LDFLAGS=$LDFLAGS
12108 save_libdir=$libdir
12109 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12110 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12122 if ac_fn_c_try_link "$LINENO"; then :
12123 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12124 lt_cv_shlibpath_overrides_runpath=yes
12127 rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 LDFLAGS=$save_LDFLAGS
12130 libdir=$save_libdir
12134 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12136 # This implies no fast_install, which is unacceptable.
12137 # Some rework will be needed to allow for fast_install
12138 # before this can be enabled.
12139 hardcode_into_libs=yes
12141 # Append ld.so.conf contents to the search path
12142 if test -f /etc/ld.so.conf; then
12143 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' ' '`
12144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12147 # We used to test for /lib/ld.so.1 and disable shared libraries on
12148 # powerpc, because MkLinux only supported shared libraries with the
12149 # GNU dynamic linker. Since this was broken with cross compilers,
12150 # most powerpc-linux boxes support dynamic linking these days and
12151 # people can always --disable-shared, the test was removed, and we
12152 # assume the GNU/Linux dynamic linker is in use.
12153 dynamic_linker='GNU/Linux ld.so'
12160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12163 dynamic_linker='NetBSD (a.out) ld.so'
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12166 soname_spec='${libname}${release}${shared_ext}$major'
12167 dynamic_linker='NetBSD ld.elf_so'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=yes
12171 hardcode_into_libs=yes
12176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 shlibpath_overrides_runpath=yes
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 soname_spec='${libname}${release}${shared_ext}$major'
12187 shlibpath_var=LD_LIBRARY_PATH
12188 shlibpath_overrides_runpath=no
12189 hardcode_into_libs=yes
12190 dynamic_linker='ldqnx.so'
12195 sys_lib_dlsearch_path_spec="/usr/lib"
12197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12200 *) need_version=no ;;
12202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12207 openbsd2.[89] | openbsd2.[89].*)
12208 shlibpath_overrides_runpath=no
12211 shlibpath_overrides_runpath=yes
12215 shlibpath_overrides_runpath=yes
12220 libname_spec='$name'
12223 library_names_spec='$libname${shared_ext} $libname.a'
12224 dynamic_linker='OS/2 ld.exe'
12225 shlibpath_var=LIBPATH
12228 osf3* | osf4* | osf5*)
12232 soname_spec='${libname}${release}${shared_ext}$major'
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12248 soname_spec='${libname}${release}${shared_ext}$major'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 shlibpath_overrides_runpath=yes
12251 hardcode_into_libs=yes
12252 # ldd complains unless libraries are executable
12253 postinstall_cmds='chmod +x $lib'
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12260 shlibpath_var=LD_LIBRARY_PATH
12261 shlibpath_overrides_runpath=yes
12262 if test "$with_gnu_ld" = yes; then
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12271 soname_spec='${libname}${release}${shared_ext}$major'
12272 shlibpath_var=LD_LIBRARY_PATH
12273 case $host_vendor in
12275 shlibpath_overrides_runpath=no
12277 runpath_var=LD_RUN_PATH
12285 shlibpath_overrides_runpath=no
12286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12292 if test -d /usr/nec ;then
12294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12295 soname_spec='$libname${shared_ext}.$major'
12296 shlibpath_var=LD_LIBRARY_PATH
12300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12301 version_type=freebsd-elf
12304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12305 soname_spec='${libname}${release}${shared_ext}$major'
12306 shlibpath_var=LD_LIBRARY_PATH
12307 shlibpath_overrides_runpath=yes
12308 hardcode_into_libs=yes
12309 if test "$with_gnu_ld" = yes; then
12310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12319 sys_lib_dlsearch_path_spec='/usr/lib'
12323 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 shlibpath_overrides_runpath=no
12330 hardcode_into_libs=yes
12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12336 soname_spec='${libname}${release}${shared_ext}$major'
12337 shlibpath_var=LD_LIBRARY_PATH
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12345 $as_echo "$dynamic_linker" >&6; }
12346 test "$dynamic_linker" = no && can_build_shared=no
12348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12349 if test "$GCC" = yes; then
12350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12353 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12354 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12356 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12452 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12454 if test -n "$hardcode_libdir_flag_spec" ||
12455 test -n "$runpath_var" ||
12456 test "X$hardcode_automatic" = "Xyes" ; then
12458 # We can hardcode non-existent directories.
12459 if test "$hardcode_direct" != no &&
12460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12461 # have to relink, otherwise we might link with an installed library
12462 # when we should be linking with a yet-to-be-installed one
12463 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12464 test "$hardcode_minus_L" != no; then
12465 # Linking always hardcodes the temporary library directory.
12466 hardcode_action=relink
12468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12469 hardcode_action=immediate
12472 # We cannot hardcode anything, or else we can only hardcode existing
12474 hardcode_action=unsupported
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12477 $as_echo "$hardcode_action" >&6; }
12479 if test "$hardcode_action" = relink ||
12480 test "$inherit_rpath" = yes; then
12481 # Fast installation is not supported
12482 enable_fast_install=no
12483 elif test "$shlibpath_overrides_runpath" = yes ||
12484 test "$enable_shared" = no; then
12485 # Fast installation is not necessary
12486 enable_fast_install=needless
12494 if test "x$enable_dlopen" != xyes; then
12495 enable_dlopen=unknown
12496 enable_dlopen_self=unknown
12497 enable_dlopen_self_static=unknown
12504 lt_cv_dlopen="load_add_on"
12506 lt_cv_dlopen_self=yes
12509 mingw* | pw32* | cegcc*)
12510 lt_cv_dlopen="LoadLibrary"
12515 lt_cv_dlopen="dlopen"
12520 # if libdl is installed we need to link against it
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12522 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12523 if ${ac_cv_lib_dl_dlopen+:} false; then :
12524 $as_echo_n "(cached) " >&6
12526 ac_check_lib_save_LIBS=$LIBS
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12546 if ac_fn_c_try_link "$LINENO"; then :
12547 ac_cv_lib_dl_dlopen=yes
12549 ac_cv_lib_dl_dlopen=no
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12556 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12557 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12558 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12561 lt_cv_dlopen="dyld"
12563 lt_cv_dlopen_self=yes
12570 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12571 if test "x$ac_cv_func_shl_load" = xyes; then :
12572 lt_cv_dlopen="shl_load"
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12575 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12576 if ${ac_cv_lib_dld_shl_load+:} false; then :
12577 $as_echo_n "(cached) " >&6
12579 ac_check_lib_save_LIBS=$LIBS
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12594 return shl_load ();
12599 if ac_fn_c_try_link "$LINENO"; then :
12600 ac_cv_lib_dld_shl_load=yes
12602 ac_cv_lib_dld_shl_load=no
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 LIBS=$ac_check_lib_save_LIBS
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12609 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12610 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12611 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12613 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12614 if test "x$ac_cv_func_dlopen" = xyes; then :
12615 lt_cv_dlopen="dlopen"
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12619 if ${ac_cv_lib_dl_dlopen+:} false; then :
12620 $as_echo_n "(cached) " >&6
12622 ac_check_lib_save_LIBS=$LIBS
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 ac_cv_lib_dl_dlopen=yes
12645 ac_cv_lib_dl_dlopen=no
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12652 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12653 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12657 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12658 if ${ac_cv_lib_svld_dlopen+:} false; then :
12659 $as_echo_n "(cached) " >&6
12661 ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lsvld $LIBS"
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12666 /* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12681 if ac_fn_c_try_link "$LINENO"; then :
12682 ac_cv_lib_svld_dlopen=yes
12684 ac_cv_lib_svld_dlopen=no
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12691 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12692 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12696 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12697 if ${ac_cv_lib_dld_dld_link+:} false; then :
12698 $as_echo_n "(cached) " >&6
12700 ac_check_lib_save_LIBS=$LIBS
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12705 /* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12715 return dld_link ();
12720 if ac_fn_c_try_link "$LINENO"; then :
12721 ac_cv_lib_dld_dld_link=yes
12723 ac_cv_lib_dld_dld_link=no
12725 rm -f core conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
12727 LIBS=$ac_check_lib_save_LIBS
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12730 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12731 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12732 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12753 if test "x$lt_cv_dlopen" != xno; then
12759 case $lt_cv_dlopen in
12761 save_CPPFLAGS="$CPPFLAGS"
12762 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12764 save_LDFLAGS="$LDFLAGS"
12765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12768 LIBS="$lt_cv_dlopen_libs $LIBS"
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12771 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12772 if ${lt_cv_dlopen_self+:} false; then :
12773 $as_echo_n "(cached) " >&6
12775 if test "$cross_compiling" = yes; then :
12776 lt_cv_dlopen_self=cross
12778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12779 lt_status=$lt_dlunknown
12780 cat > conftest.$ac_ext <<_LT_EOF
12781 #line $LINENO "configure"
12782 #include "confdefs.h"
12791 # define LT_DLGLOBAL RTLD_GLOBAL
12794 # define LT_DLGLOBAL DL_GLOBAL
12796 # define LT_DLGLOBAL 0
12800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12801 find out it does not work in some platform. */
12802 #ifndef LT_DLLAZY_OR_NOW
12804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12807 # define LT_DLLAZY_OR_NOW DL_LAZY
12810 # define LT_DLLAZY_OR_NOW RTLD_NOW
12813 # define LT_DLLAZY_OR_NOW DL_NOW
12815 # define LT_DLLAZY_OR_NOW 0
12822 /* When -fvisbility=hidden is used, assume the code has been annotated
12823 correspondingly for the symbols needed. */
12824 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12825 int fnord () __attribute__((visibility("default")));
12828 int fnord () { return 42; }
12831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12832 int status = $lt_dlunknown;
12836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12839 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12840 else puts (dlerror ());
12842 /* dlclose (self); */
12850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12851 (eval $ac_link) 2>&5
12853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12854 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12855 (./conftest; exit; ) >&5 2>/dev/null
12857 case x$lt_status in
12858 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12859 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12860 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12863 # compilation failed
12864 lt_cv_dlopen_self=no
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12872 $as_echo "$lt_cv_dlopen_self" >&6; }
12874 if test "x$lt_cv_dlopen_self" = xyes; then
12875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12877 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12878 if ${lt_cv_dlopen_self_static+:} false; then :
12879 $as_echo_n "(cached) " >&6
12881 if test "$cross_compiling" = yes; then :
12882 lt_cv_dlopen_self_static=cross
12884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12885 lt_status=$lt_dlunknown
12886 cat > conftest.$ac_ext <<_LT_EOF
12887 #line $LINENO "configure"
12888 #include "confdefs.h"
12897 # define LT_DLGLOBAL RTLD_GLOBAL
12900 # define LT_DLGLOBAL DL_GLOBAL
12902 # define LT_DLGLOBAL 0
12906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12907 find out it does not work in some platform. */
12908 #ifndef LT_DLLAZY_OR_NOW
12910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12913 # define LT_DLLAZY_OR_NOW DL_LAZY
12916 # define LT_DLLAZY_OR_NOW RTLD_NOW
12919 # define LT_DLLAZY_OR_NOW DL_NOW
12921 # define LT_DLLAZY_OR_NOW 0
12928 /* When -fvisbility=hidden is used, assume the code has been annotated
12929 correspondingly for the symbols needed. */
12930 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12931 int fnord () __attribute__((visibility("default")));
12934 int fnord () { return 42; }
12937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938 int status = $lt_dlunknown;
12942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12945 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12946 else puts (dlerror ());
12948 /* dlclose (self); */
12956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12957 (eval $ac_link) 2>&5
12959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12960 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12961 (./conftest; exit; ) >&5 2>/dev/null
12963 case x$lt_status in
12964 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12965 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12966 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12969 # compilation failed
12970 lt_cv_dlopen_self_static=no
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12978 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12981 CPPFLAGS="$save_CPPFLAGS"
12982 LDFLAGS="$save_LDFLAGS"
12987 case $lt_cv_dlopen_self in
12988 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12989 *) enable_dlopen_self=unknown ;;
12992 case $lt_cv_dlopen_self_static in
12993 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12994 *) enable_dlopen_self_static=unknown ;;
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13017 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13018 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13019 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13020 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13022 $as_echo "yes" >&6; }
13024 # FIXME - insert some real tests, host_os isn't really good enough
13027 if test -n "$STRIP" ; then
13028 striplib="$STRIP -x"
13029 old_striplib="$STRIP -S"
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13055 # Report which library types will actually be built
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13057 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13059 $as_echo "$can_build_shared" >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13062 $as_echo_n "checking whether to build shared libraries... " >&6; }
13063 test "$can_build_shared" = "no" && enable_shared=no
13065 # On AIX, shared libraries and static libraries use the same namespace, and
13066 # are all built from PIC.
13069 test "$enable_shared" = yes && enable_static=no
13070 if test -n "$RANLIB"; then
13071 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13072 postinstall_cmds='$RANLIB $lib'
13077 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13078 test "$enable_shared" = yes && enable_static=no
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13083 $as_echo "$enable_shared" >&6; }
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13086 $as_echo_n "checking whether to build static libraries... " >&6; }
13087 # Make sure either enable_shared or enable_static is yes.
13088 test "$enable_shared" = yes || enable_static=yes
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13090 $as_echo "$enable_static" >&6; }
13097 ac_cpp='$CPP $CPPFLAGS'
13098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13105 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13106 (test "X$CXX" != "Xg++"))) ; then
13108 ac_cpp='$CXXCPP $CPPFLAGS'
13109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13113 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13114 if test -z "$CXXCPP"; then
13115 if ${ac_cv_prog_CXXCPP+:} false; then :
13116 $as_echo_n "(cached) " >&6
13118 # Double quotes because CXXCPP needs to be expanded
13119 for CXXCPP in "$CXX -E" "/lib/cpp"
13121 ac_preproc_ok=false
13122 for ac_cxx_preproc_warn_flag in '' yes
13124 # Use a header file that comes with gcc, so configuring glibc
13125 # with a fresh cross-compiler works.
13126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13127 # <limits.h> exists even on freestanding compilers.
13128 # On the NeXT, cc -E runs the code through the compiler's parser,
13129 # not just through cpp. "Syntax error" is here to catch this case.
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13133 # include <limits.h>
13135 # include <assert.h>
13139 if ac_fn_cxx_try_cpp "$LINENO"; then :
13142 # Broken: fails on valid input.
13145 rm -f conftest.err conftest.i conftest.$ac_ext
13147 # OK, works on sane cases. Now check whether nonexistent headers
13148 # can be detected and how.
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13151 #include <ac_nonexistent.h>
13153 if ac_fn_cxx_try_cpp "$LINENO"; then :
13154 # Broken: success on invalid input.
13157 # Passes both tests.
13161 rm -f conftest.err conftest.i conftest.$ac_ext
13164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13165 rm -f conftest.i conftest.err conftest.$ac_ext
13166 if $ac_preproc_ok; then :
13171 ac_cv_prog_CXXCPP=$CXXCPP
13174 CXXCPP=$ac_cv_prog_CXXCPP
13176 ac_cv_prog_CXXCPP=$CXXCPP
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13179 $as_echo "$CXXCPP" >&6; }
13180 ac_preproc_ok=false
13181 for ac_cxx_preproc_warn_flag in '' yes
13183 # Use a header file that comes with gcc, so configuring glibc
13184 # with a fresh cross-compiler works.
13185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13186 # <limits.h> exists even on freestanding compilers.
13187 # On the NeXT, cc -E runs the code through the compiler's parser,
13188 # not just through cpp. "Syntax error" is here to catch this case.
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13192 # include <limits.h>
13194 # include <assert.h>
13198 if ac_fn_cxx_try_cpp "$LINENO"; then :
13201 # Broken: fails on valid input.
13204 rm -f conftest.err conftest.i conftest.$ac_ext
13206 # OK, works on sane cases. Now check whether nonexistent headers
13207 # can be detected and how.
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 #include <ac_nonexistent.h>
13212 if ac_fn_cxx_try_cpp "$LINENO"; then :
13213 # Broken: success on invalid input.
13216 # Passes both tests.
13220 rm -f conftest.err conftest.i conftest.$ac_ext
13223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13224 rm -f conftest.i conftest.err conftest.$ac_ext
13225 if $ac_preproc_ok; then :
13228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13230 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13231 See \`config.log' for more details" "$LINENO" 5; }
13235 ac_cpp='$CPP $CPPFLAGS'
13236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13241 _lt_caught_CXX_error=yes
13245 ac_cpp='$CXXCPP $CPPFLAGS'
13246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13250 archive_cmds_need_lc_CXX=no
13251 allow_undefined_flag_CXX=
13252 always_export_symbols_CXX=no
13253 archive_expsym_cmds_CXX=
13254 compiler_needs_object_CXX=no
13255 export_dynamic_flag_spec_CXX=
13256 hardcode_direct_CXX=no
13257 hardcode_direct_absolute_CXX=no
13258 hardcode_libdir_flag_spec_CXX=
13259 hardcode_libdir_flag_spec_ld_CXX=
13260 hardcode_libdir_separator_CXX=
13261 hardcode_minus_L_CXX=no
13262 hardcode_shlibpath_var_CXX=unsupported
13263 hardcode_automatic_CXX=no
13264 inherit_rpath_CXX=no
13266 module_expsym_cmds_CXX=
13267 link_all_deplibs_CXX=unknown
13268 old_archive_cmds_CXX=$old_archive_cmds
13269 reload_flag_CXX=$reload_flag
13270 reload_cmds_CXX=$reload_cmds
13271 no_undefined_flag_CXX=
13272 whole_archive_flag_spec_CXX=
13273 enable_shared_with_static_runtimes_CXX=no
13275 # Source file extension for C++ test sources.
13278 # Object file extension for compiled C++ test sources.
13282 # No sense in running all these tests if we already determined that
13283 # the CXX compiler isn't working. Some variables (like enable_shared)
13284 # are currently assumed to apply to all compilers on this platform,
13285 # and will be corrupted by setting them based on a non-working compiler.
13286 if test "$_lt_caught_CXX_error" != yes; then
13287 # Code to be used in simple compile tests
13288 lt_simple_compile_test_code="int some_variable = 0;"
13290 # Code to be used in simple link tests
13291 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13293 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13300 # If no C compiler was specified, use CC.
13303 # If no C compiler flags were specified, use CFLAGS.
13304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13306 # Allow CC to be a program name with arguments.
13310 # save warnings/boilerplate of simple test code
13311 ac_outfile=conftest.$ac_objext
13312 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13314 _lt_compiler_boilerplate=`cat conftest.err`
13317 ac_outfile=conftest.$ac_objext
13318 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13320 _lt_linker_boilerplate=`cat conftest.err`
13324 # Allow CC to be a program name with arguments.
13326 lt_save_CFLAGS=$CFLAGS
13330 lt_save_with_gnu_ld=$with_gnu_ld
13331 lt_save_path_LD=$lt_cv_path_LD
13332 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13333 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13335 $as_unset lt_cv_prog_gnu_ld
13337 if test -n "${lt_cv_path_LDCXX+set}"; then
13338 lt_cv_path_LD=$lt_cv_path_LDCXX
13340 $as_unset lt_cv_path_LD
13342 test -z "${LDCXX+set}" || LD=$LDCXX
13347 for cc_temp in $compiler""; do
13349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13355 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13358 if test -n "$compiler"; then
13359 # We don't want -fno-exception when compiling C++ code, so set the
13360 # no_builtin_flag separately
13361 if test "$GXX" = yes; then
13362 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13364 lt_prog_compiler_no_builtin_flag_CXX=
13367 if test "$GXX" = yes; then
13368 # Set up default GNU C++ configuration
13372 # Check whether --with-gnu-ld was given.
13373 if test "${with_gnu_ld+set}" = set; then :
13374 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13380 if test "$GCC" = yes; then
13381 # Check if gcc -print-prog-name=ld gives a path.
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13383 $as_echo_n "checking for ld used by $CC... " >&6; }
13386 # gcc leaves a trailing carriage return which upsets mingw
13387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13392 # Accept absolute paths.
13394 re_direlt='/[^/][^/]*/\.\./'
13395 # Canonicalize the pathname of ld
13396 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13397 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13398 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13400 test -z "$LD" && LD="$ac_prog"
13403 # If it fails, then pretend we aren't using GCC.
13407 # If it is relative, then search for the first ld in PATH.
13408 with_gnu_ld=unknown
13411 elif test "$with_gnu_ld" = yes; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13413 $as_echo_n "checking for GNU ld... " >&6; }
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13416 $as_echo_n "checking for non-GNU ld... " >&6; }
13418 if ${lt_cv_path_LD+:} false; then :
13419 $as_echo_n "(cached) " >&6
13421 if test -z "$LD"; then
13422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13423 for ac_dir in $PATH; do
13425 test -z "$ac_dir" && ac_dir=.
13426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13427 lt_cv_path_LD="$ac_dir/$ac_prog"
13428 # Check to see if the program is GNU ld. I'd rather use --version,
13429 # but apparently some variants of GNU ld only accept -v.
13430 # Break only if it was the GNU/non-GNU ld that we prefer.
13431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13432 *GNU* | *'with BFD'*)
13433 test "$with_gnu_ld" != no && break
13436 test "$with_gnu_ld" != yes && break
13443 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13447 LD="$lt_cv_path_LD"
13448 if test -n "$LD"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13450 $as_echo "$LD" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13455 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13458 if ${lt_cv_prog_gnu_ld+:} false; then :
13459 $as_echo_n "(cached) " >&6
13461 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13462 case `$LD -v 2>&1 </dev/null` in
13463 *GNU* | *'with BFD'*)
13464 lt_cv_prog_gnu_ld=yes
13467 lt_cv_prog_gnu_ld=no
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13473 with_gnu_ld=$lt_cv_prog_gnu_ld
13481 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13482 # archiving commands below assume that GNU ld is being used.
13483 if test "$with_gnu_ld" = yes; then
13484 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13485 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'
13487 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13490 # If archive_cmds runs LD, not CC, wlarc should be empty
13491 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13492 # investigate it a little bit more. (MM)
13495 # ancient GNU ld didn't support --whole-archive et. al.
13496 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13497 $GREP 'no-whole-archive' > /dev/null; then
13498 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13500 whole_archive_flag_spec_CXX=
13506 # A generic and very simple default shared library creation
13507 # command for GNU C++ for the case where it uses the native
13508 # linker, instead of GNU ld. If possible, this setting should
13509 # overridden to take advantage of the native linker features on
13510 # the platform it is being used on.
13511 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13514 # Commands to make compiler produce verbose output that lists
13515 # what "hidden" libraries, object files and flags are used when
13516 # linking a shared library.
13517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13525 # PORTME: fill in a description of your system's C++ link characteristics
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13527 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13531 # FIXME: insert proper C++ library support
13535 if test "$host_cpu" = ia64; then
13536 # On IA64, the linker does run time linking by default, so we don't
13537 # have to do anything special.
13538 aix_use_runtimelinking=no
13539 exp_sym_flag='-Bexport'
13542 aix_use_runtimelinking=no
13544 # Test if we are trying to use run time linking or normal
13545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13546 # need to do runtime linking.
13547 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13548 for ld_flag in $LDFLAGS; do
13551 aix_use_runtimelinking=yes
13559 exp_sym_flag='-bexport'
13560 no_entry_flag='-bnoentry'
13563 # When large executables or shared objects are built, AIX ld can
13564 # have problems creating the table of contents. If linking a library
13565 # or program results in "error TOC overflow" add -mminimal-toc to
13566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13569 archive_cmds_CXX=''
13570 hardcode_direct_CXX=yes
13571 hardcode_direct_absolute_CXX=yes
13572 hardcode_libdir_separator_CXX=':'
13573 link_all_deplibs_CXX=yes
13574 file_list_spec_CXX='${wl}-f,'
13576 if test "$GXX" = yes; then
13577 case $host_os in aix4.[012]|aix4.[012].*)
13578 # We only want to do this on AIX 4.2 and lower, the check
13579 # below for broken collect2 doesn't work under 4.3+
13580 collect2name=`${CC} -print-prog-name=collect2`
13581 if test -f "$collect2name" &&
13582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13584 # We have reworked collect2
13587 # We have old collect2
13588 hardcode_direct_CXX=unsupported
13589 # It fails to find uninstalled libraries when the uninstalled
13590 # path is not listed in the libpath. Setting hardcode_minus_L
13591 # to unsupported forces relinking
13592 hardcode_minus_L_CXX=yes
13593 hardcode_libdir_flag_spec_CXX='-L$libdir'
13594 hardcode_libdir_separator_CXX=
13597 shared_flag='-shared'
13598 if test "$aix_use_runtimelinking" = yes; then
13599 shared_flag="$shared_flag "'${wl}-G'
13603 if test "$host_cpu" = ia64; then
13604 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13605 # chokes on -Wl,-G. The following line is correct:
13608 if test "$aix_use_runtimelinking" = yes; then
13609 shared_flag='${wl}-G'
13611 shared_flag='${wl}-bM:SRE'
13616 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13617 # It seems that -bexpall does not export symbols beginning with
13618 # underscore (_), so it is better to generate a list of symbols to
13620 always_export_symbols_CXX=yes
13621 if test "$aix_use_runtimelinking" = yes; then
13622 # Warning - without using the other runtime loading flags (-brtl),
13623 # -berok will link without error, but may produce a broken library.
13624 allow_undefined_flag_CXX='-berok'
13625 # Determine the default libpath from the value encoded in an empty
13627 if test "${lt_cv_aix_libpath+set}" = set; then
13628 aix_libpath=$lt_cv_aix_libpath
13630 if ${lt_cv_aix_libpath__CXX+:} false; then :
13631 $as_echo_n "(cached) " >&6
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13644 if ac_fn_cxx_try_link "$LINENO"; then :
13646 lt_aix_libpath_sed='
13647 /Import File Strings/,/^$/ {
13649 s/^0 *\([^ ]*\) *$/\1/
13653 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13654 # Check for a 64-bit object if we didn't find anything.
13655 if test -z "$lt_cv_aix_libpath__CXX"; then
13656 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13659 rm -f core conftest.err conftest.$ac_objext \
13660 conftest$ac_exeext conftest.$ac_ext
13661 if test -z "$lt_cv_aix_libpath__CXX"; then
13662 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13667 aix_libpath=$lt_cv_aix_libpath__CXX
13670 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13672 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"
13674 if test "$host_cpu" = ia64; then
13675 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13676 allow_undefined_flag_CXX="-z nodefs"
13677 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"
13679 # Determine the default libpath from the value encoded in an
13680 # empty executable.
13681 if test "${lt_cv_aix_libpath+set}" = set; then
13682 aix_libpath=$lt_cv_aix_libpath
13684 if ${lt_cv_aix_libpath__CXX+:} false; then :
13685 $as_echo_n "(cached) " >&6
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13698 if ac_fn_cxx_try_link "$LINENO"; then :
13700 lt_aix_libpath_sed='
13701 /Import File Strings/,/^$/ {
13703 s/^0 *\([^ ]*\) *$/\1/
13707 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13708 # Check for a 64-bit object if we didn't find anything.
13709 if test -z "$lt_cv_aix_libpath__CXX"; then
13710 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13713 rm -f core conftest.err conftest.$ac_objext \
13714 conftest$ac_exeext conftest.$ac_ext
13715 if test -z "$lt_cv_aix_libpath__CXX"; then
13716 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13721 aix_libpath=$lt_cv_aix_libpath__CXX
13724 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13725 # Warning - without using the other run time loading flags,
13726 # -berok will link without error, but may produce a broken library.
13727 no_undefined_flag_CXX=' ${wl}-bernotok'
13728 allow_undefined_flag_CXX=' ${wl}-berok'
13729 if test "$with_gnu_ld" = yes; then
13730 # We only use this code for GNU lds that support --whole-archive.
13731 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13733 # Exported symbols can be pulled into shared objects from archives
13734 whole_archive_flag_spec_CXX='$convenience'
13736 archive_cmds_need_lc_CXX=yes
13737 # This is similar to how AIX traditionally builds its shared
13739 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'
13745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13746 allow_undefined_flag_CXX=unsupported
13747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13748 # support --undefined. This deserves some investigation. FIXME
13749 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13756 case $cc_basename in
13758 # FIXME: insert proper C++ library support
13764 cygwin* | mingw* | pw32* | cegcc*)
13765 case $GXX,$cc_basename in
13768 # hardcode_libdir_flag_spec is actually meaningless, as there is
13769 # no search path for DLLs.
13770 hardcode_libdir_flag_spec_CXX=' '
13771 allow_undefined_flag_CXX=unsupported
13772 always_export_symbols_CXX=yes
13773 file_list_spec_CXX='@'
13774 # Tell ltmain to make .lib files, not .a files.
13776 # Tell ltmain to make .dll files, not .so files.
13778 # FIXME: Setting linknames here is a bad hack.
13779 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13780 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13781 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13783 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13785 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13787 # The linker will not automatically build a static lib if we build a DLL.
13788 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13789 enable_shared_with_static_runtimes_CXX=yes
13791 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13792 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13793 lt_tool_outputfile="@TOOL_OUTPUT@"~
13794 case $lt_outputfile in
13797 lt_outputfile="$lt_outputfile.exe"
13798 lt_tool_outputfile="$lt_tool_outputfile.exe"
13801 func_to_tool_file "$lt_outputfile"~
13802 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13803 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13804 $RM "$lt_outputfile.manifest";
13809 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13810 # as there is no search path for DLLs.
13811 hardcode_libdir_flag_spec_CXX='-L$libdir'
13812 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13813 allow_undefined_flag_CXX=unsupported
13814 always_export_symbols_CXX=no
13815 enable_shared_with_static_runtimes_CXX=yes
13817 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13818 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'
13819 # If the export-symbols file already is a .def file (1st line
13820 # is EXPORTS), use it as is; otherwise, prepend...
13821 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13822 cp $export_symbols $output_objdir/$soname.def;
13824 echo EXPORTS > $output_objdir/$soname.def;
13825 cat $export_symbols >> $output_objdir/$soname.def;
13827 $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'
13834 darwin* | rhapsody*)
13837 archive_cmds_need_lc_CXX=no
13838 hardcode_direct_CXX=no
13839 hardcode_automatic_CXX=yes
13840 hardcode_shlibpath_var_CXX=unsupported
13841 if test "$lt_cv_ld_force_load" = "yes"; then
13842 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\"`'
13844 whole_archive_flag_spec_CXX=''
13846 link_all_deplibs_CXX=yes
13847 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13848 case $cc_basename in
13849 ifort*) _lt_dar_can_shared=yes ;;
13850 *) _lt_dar_can_shared=$GCC ;;
13852 if test "$_lt_dar_can_shared" = "yes"; then
13853 output_verbose_link_cmd=func_echo_all
13854 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}"
13855 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13856 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}"
13857 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}"
13858 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13859 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}"
13860 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}"
13870 case $cc_basename in
13872 # FIXME: insert proper C++ library support
13876 # Green Hills C++ Compiler
13877 # FIXME: insert proper C++ library support
13881 # FIXME: insert proper C++ library support
13888 # C++ shared libraries reported to be fairly broken before
13894 archive_cmds_need_lc_CXX=no
13897 freebsd* | dragonfly*)
13898 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13907 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13908 link_all_deplibs_CXX=yes
13912 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13913 hardcode_libdir_separator_CXX=:
13914 export_dynamic_flag_spec_CXX='${wl}-E'
13915 hardcode_direct_CXX=yes
13916 hardcode_minus_L_CXX=yes # Not in the search PATH,
13917 # but as the default
13918 # location of the library.
13920 case $cc_basename in
13922 # FIXME: insert proper C++ library support
13926 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'
13927 # Commands to make compiler produce verbose output that lists
13928 # what "hidden" libraries, object files and flags are used when
13929 # linking a shared library.
13931 # There doesn't appear to be a way to prevent this compiler from
13932 # explicitly linking system object files so we need to strip them
13933 # from the output so that they don't get included in the library
13935 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"'
13938 if test "$GXX" = yes; then
13939 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'
13941 # FIXME: insert proper C++ library support
13949 if test $with_gnu_ld = no; then
13950 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13951 hardcode_libdir_separator_CXX=:
13957 export_dynamic_flag_spec_CXX='${wl}-E'
13963 hardcode_direct_CXX=no
13964 hardcode_shlibpath_var_CXX=no
13967 hardcode_direct_CXX=yes
13968 hardcode_direct_absolute_CXX=yes
13969 hardcode_minus_L_CXX=yes # Not in the search PATH,
13970 # but as the default
13971 # location of the library.
13975 case $cc_basename in
13977 # FIXME: insert proper C++ library support
13983 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13986 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13989 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13992 # Commands to make compiler produce verbose output that lists
13993 # what "hidden" libraries, object files and flags are used when
13994 # linking a shared library.
13996 # There doesn't appear to be a way to prevent this compiler from
13997 # explicitly linking system object files so we need to strip them
13998 # from the output so that they don't get included in the library
14000 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"'
14003 if test "$GXX" = yes; then
14004 if test $with_gnu_ld = no; then
14007 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14010 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14013 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'
14018 # FIXME: insert proper C++ library support
14026 hardcode_direct_CXX=no
14027 hardcode_shlibpath_var_CXX=no
14028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14029 export_dynamic_flag_spec_CXX='${wl}-E'
14030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14031 # Instead, shared libraries are loaded at an image base (0x10000000 by
14032 # default) and relocated if they conflict, which is a slow very memory
14033 # consuming and fragmenting process. To avoid this, we pick a random,
14034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14036 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'
14037 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'
14040 case $cc_basename in
14043 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'
14045 # Archives containing C++ object files must be created using
14046 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14047 # necessary to make sure instantiated templates are included
14049 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14052 if test "$GXX" = yes; then
14053 if test "$with_gnu_ld" = no; then
14054 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'
14056 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'
14059 link_all_deplibs_CXX=yes
14062 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14063 hardcode_libdir_separator_CXX=:
14064 inherit_rpath_CXX=yes
14067 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14068 case $cc_basename in
14070 # Kuck and Associates, Inc. (KAI) C++ Compiler
14072 # KCC will only create a shared library if the output file
14073 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14074 # to its proper name (with version) after linking.
14075 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'
14076 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'
14077 # Commands to make compiler produce verbose output that lists
14078 # what "hidden" libraries, object files and flags are used when
14079 # linking a shared library.
14081 # There doesn't appear to be a way to prevent this compiler from
14082 # explicitly linking system object files so we need to strip them
14083 # from the output so that they don't get included in the library
14085 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"'
14087 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14090 # Archives containing C++ object files must be created using
14091 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14092 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14097 # version 8.0 and above of icpc choke on multiply defined symbols
14098 # if we add $predep_objects and $postdep_objects, however 7.1 and
14099 # earlier do not add the objects themselves.
14100 case `$CC -V 2>&1` in
14102 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14103 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'
14105 *) # Version 8.0 or newer
14108 ia64*) tmp_idyn=' -i_dynamic';;
14110 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14111 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'
14114 archive_cmds_need_lc_CXX=no
14115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14116 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14117 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14120 # Portland Group C++ compiler
14122 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14123 prelink_cmds_CXX='tpldir=Template.dir~
14125 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14126 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14127 old_archive_cmds_CXX='tpldir=Template.dir~
14129 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14130 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14132 archive_cmds_CXX='tpldir=Template.dir~
14134 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14135 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14136 archive_expsym_cmds_CXX='tpldir=Template.dir~
14138 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14139 $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'
14141 *) # Version 6 and above use weak symbols
14142 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14143 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'
14147 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14148 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14149 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'
14153 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154 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'
14156 runpath_var=LD_RUN_PATH
14157 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14158 hardcode_libdir_separator_CXX=:
14160 # Commands to make compiler produce verbose output that lists
14161 # what "hidden" libraries, object files and flags are used when
14162 # linking a shared library.
14164 # There doesn't appear to be a way to prevent this compiler from
14165 # explicitly linking system object files so we need to strip them
14166 # from the output so that they don't get included in the library
14168 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'
14170 xl* | mpixl* | bgxl*)
14171 # IBM XL 8.0 on PPC, with GNU ld
14172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14173 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14174 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175 if test "x$supports_anon_versioning" = xyes; then
14176 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14178 echo "local: *; };" >> $output_objdir/$libname.ver~
14179 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14183 case `$CC -V 2>&1 | sed 5q` in
14186 no_undefined_flag_CXX=' -zdefs'
14187 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14188 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'
14189 hardcode_libdir_flag_spec_CXX='-R$libdir'
14190 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'
14191 compiler_needs_object_CXX=yes
14193 # Not sure whether something based on
14194 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14196 output_verbose_link_cmd='func_echo_all'
14198 # Archives containing C++ object files must be created using
14199 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14200 # necessary to make sure instantiated templates are included
14202 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14210 # FIXME: insert proper C++ library support
14215 # FIXME: insert proper C++ library support
14220 case $cc_basename in
14222 # FIXME: insert proper C++ library support
14226 # FIXME: insert proper C++ library support
14233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14234 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14236 hardcode_libdir_flag_spec_CXX='-R$libdir'
14237 hardcode_direct_CXX=yes
14238 hardcode_shlibpath_var_CXX=no
14240 # Workaround some broken pre-1.5 toolchains
14241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14249 # C++ shared libraries are fairly broken
14254 if test -f /usr/libexec/ld.so; then
14255 hardcode_direct_CXX=yes
14256 hardcode_shlibpath_var_CXX=no
14257 hardcode_direct_absolute_CXX=yes
14258 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14259 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14260 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14261 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14262 export_dynamic_flag_spec_CXX='${wl}-E'
14263 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14265 output_verbose_link_cmd=func_echo_all
14271 osf3* | osf4* | osf5*)
14272 case $cc_basename in
14274 # Kuck and Associates, Inc. (KAI) C++ Compiler
14276 # KCC will only create a shared library if the output file
14277 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14278 # to its proper name (with version) after linking.
14279 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'
14281 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14282 hardcode_libdir_separator_CXX=:
14284 # Archives containing C++ object files must be created using
14285 # the KAI C++ compiler.
14287 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14288 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14292 # Rational C++ 2.4.1
14293 # FIXME: insert proper C++ library support
14299 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14300 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'
14301 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14304 allow_undefined_flag_CXX=' -expect_unresolved \*'
14305 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'
14306 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14307 echo "-hidden">> $lib.exp~
14308 $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~
14310 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14314 hardcode_libdir_separator_CXX=:
14316 # Commands to make compiler produce verbose output that lists
14317 # what "hidden" libraries, object files and flags are used when
14318 # linking a shared library.
14320 # There doesn't appear to be a way to prevent this compiler from
14321 # explicitly linking system object files so we need to strip them
14322 # from the output so that they don't get included in the library
14324 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"'
14327 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14328 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14331 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'
14334 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'
14338 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14339 hardcode_libdir_separator_CXX=:
14341 # Commands to make compiler produce verbose output that lists
14342 # what "hidden" libraries, object files and flags are used when
14343 # linking a shared library.
14344 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14347 # FIXME: insert proper C++ library support
14355 # FIXME: insert proper C++ library support
14360 case $cc_basename in
14363 # FIXME: insert proper C++ library support
14368 # FIXME: insert proper C++ library support
14372 # FIXME: insert proper C++ library support
14379 case $cc_basename in
14381 # Sun C++ 4.2, 5.x and Centerline C++
14382 archive_cmds_need_lc_CXX=yes
14383 no_undefined_flag_CXX=' -zdefs'
14384 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14385 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14386 $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'
14388 hardcode_libdir_flag_spec_CXX='-R$libdir'
14389 hardcode_shlibpath_var_CXX=no
14391 solaris2.[0-5] | solaris2.[0-5].*) ;;
14393 # The compiler driver will combine and reorder linker options,
14394 # but understands `-z linker_flag'.
14395 # Supported since Solaris 2.6 (maybe 2.5.1?)
14396 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14399 link_all_deplibs_CXX=yes
14401 output_verbose_link_cmd='func_echo_all'
14403 # Archives containing C++ object files must be created using
14404 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14405 # necessary to make sure instantiated templates are included
14407 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14410 # Green Hills C++ Compiler
14411 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14413 # The C++ compiler must be used to create the archive.
14414 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14417 # GNU C++ compiler with Solaris linker
14418 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14419 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14420 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14421 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14422 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14423 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14425 # Commands to make compiler produce verbose output that lists
14426 # what "hidden" libraries, object files and flags are used when
14427 # linking a shared library.
14428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14430 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14432 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14433 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14434 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14436 # Commands to make compiler produce verbose output that lists
14437 # what "hidden" libraries, object files and flags are used when
14438 # linking a shared library.
14439 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14442 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14444 solaris2.[0-5] | solaris2.[0-5].*) ;;
14446 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14454 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14455 no_undefined_flag_CXX='${wl}-z,text'
14456 archive_cmds_need_lc_CXX=no
14457 hardcode_shlibpath_var_CXX=no
14458 runpath_var='LD_RUN_PATH'
14460 case $cc_basename in
14462 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14463 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14466 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14467 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14472 sysv5* | sco3.2v5* | sco5v6*)
14473 # Note: We can NOT use -z defs as we might desire, because we do not
14474 # link with -lc, and that would cause any symbols used from libc to
14475 # always be unresolved, which means just about no library would
14476 # ever link correctly. If we're not using GNU ld we use -z text
14477 # though, which does catch some bad symbols but isn't as heavy-handed
14479 no_undefined_flag_CXX='${wl}-z,text'
14480 allow_undefined_flag_CXX='${wl}-z,nodefs'
14481 archive_cmds_need_lc_CXX=no
14482 hardcode_shlibpath_var_CXX=no
14483 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14484 hardcode_libdir_separator_CXX=':'
14485 link_all_deplibs_CXX=yes
14486 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14487 runpath_var='LD_RUN_PATH'
14489 case $cc_basename in
14491 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14494 '"$old_archive_cmds_CXX"
14495 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14496 '"$reload_cmds_CXX"
14499 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14500 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14506 case $cc_basename in
14508 # NonStop-UX NCC 3.20
14509 # FIXME: insert proper C++ library support
14513 # FIXME: insert proper C++ library support
14520 # FIXME: insert proper C++ library support
14525 # FIXME: insert proper C++ library support
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14531 $as_echo "$ld_shlibs_CXX" >&6; }
14532 test "$ld_shlibs_CXX" = no && can_build_shared=no
14538 ## There is no encapsulation within the following macros, do not change
14539 ## the running order or otherwise move them around unless you know exactly
14540 ## what you are doing...
14541 # Dependencies to place before and after the object being linked:
14542 predep_objects_CXX=
14543 postdep_objects_CXX=
14546 compiler_lib_search_path_CXX=
14548 cat > conftest.$ac_ext <<_LT_EOF
14552 Foo (void) { a = 0; }
14559 _lt_libdeps_save_CFLAGS=$CFLAGS
14560 case "$CC $CFLAGS " in #(
14561 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14562 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14566 (eval $ac_compile) 2>&5
14568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569 test $ac_status = 0; }; then
14570 # Parse the compiler output and extract the necessary
14571 # objects, libraries and library flags.
14573 # Sentinel used to keep track of whether or not we are before
14574 # the conftest object file.
14575 pre_test_object_deps_done=no
14577 for p in `eval "$output_verbose_link_cmd"`; do
14578 case ${prev}${p} in
14581 # Some compilers place space between "-{L,R}" and the path.
14582 # Remove the space.
14583 if test $p = "-L" ||
14584 test $p = "-R"; then
14589 # Expand the sysroot to ease extracting the directories later.
14590 if test -z "$prev"; then
14592 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14593 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14594 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14598 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14600 if test "$pre_test_object_deps_done" = no; then
14603 # Internal compiler library paths should come after those
14604 # provided the user. The postdeps already come after the
14605 # user supplied libs so there is no need to process them.
14606 if test -z "$compiler_lib_search_path_CXX"; then
14607 compiler_lib_search_path_CXX="${prev}${p}"
14609 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14612 # The "-l" case would never come before the object being
14613 # linked, so don't bother handling this case.
14616 if test -z "$postdeps_CXX"; then
14617 postdeps_CXX="${prev}${p}"
14619 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14625 *.lto.$objext) ;; # Ignore GCC LTO objects
14627 # This assumes that the test object file only shows up
14628 # once in the compiler output.
14629 if test "$p" = "conftest.$objext"; then
14630 pre_test_object_deps_done=yes
14634 if test "$pre_test_object_deps_done" = no; then
14635 if test -z "$predep_objects_CXX"; then
14636 predep_objects_CXX="$p"
14638 predep_objects_CXX="$predep_objects_CXX $p"
14641 if test -z "$postdep_objects_CXX"; then
14642 postdep_objects_CXX="$p"
14644 postdep_objects_CXX="$postdep_objects_CXX $p"
14649 *) ;; # Ignore the rest.
14657 echo "libtool.m4: error: problem compiling CXX test program"
14660 $RM -f confest.$objext
14661 CFLAGS=$_lt_libdeps_save_CFLAGS
14663 # PORTME: override above test on systems where it is broken
14666 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14667 # hack all around it, let's just trust "g++" to DTRT.
14668 predep_objects_CXX=
14669 postdep_objects_CXX=
14674 case `$CC -V 2>&1 | sed 5q` in
14678 # The more standards-conforming stlport4 library is
14679 # incompatible with the Cstd library. Avoid specifying
14680 # it if it's in CXXFLAGS. Ignore libCrun as
14681 # -library=stlport4 depends on it.
14682 case " $CXX $CXXFLAGS " in
14683 *" -library=stlport4 "*)
14684 solaris_use_stlport4=yes
14688 if test "$solaris_use_stlport4" != yes; then
14689 postdeps_CXX='-library=Cstd -library=Crun'
14696 case $cc_basename in
14698 # The more standards-conforming stlport4 library is
14699 # incompatible with the Cstd library. Avoid specifying
14700 # it if it's in CXXFLAGS. Ignore libCrun as
14701 # -library=stlport4 depends on it.
14702 case " $CXX $CXXFLAGS " in
14703 *" -library=stlport4 "*)
14704 solaris_use_stlport4=yes
14708 # Adding this requires a known-good setup of shared libraries for
14709 # Sun compiler versions before 5.6, else PIC objects from an old
14710 # archive will be linked into the output, leading to subtle bugs.
14711 if test "$solaris_use_stlport4" != yes; then
14712 postdeps_CXX='-library=Cstd -library=Crun'
14720 case " $postdeps_CXX " in
14721 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14723 compiler_lib_search_dirs_CXX=
14724 if test -n "${compiler_lib_search_path_CXX}"; then
14725 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14758 lt_prog_compiler_wl_CXX=
14759 lt_prog_compiler_pic_CXX=
14760 lt_prog_compiler_static_CXX=
14763 # C++ specific cases for pic, static, wl, etc.
14764 if test "$GXX" = yes; then
14765 lt_prog_compiler_wl_CXX='-Wl,'
14766 lt_prog_compiler_static_CXX='-static'
14770 # All AIX code is PIC.
14771 if test "$host_cpu" = ia64; then
14772 # AIX 5 now supports IA64 processor
14773 lt_prog_compiler_static_CXX='-Bstatic'
14780 # see comment about AmigaOS4 .so support
14781 lt_prog_compiler_pic_CXX='-fPIC'
14784 # FIXME: we need at least 68020 code to build shared libraries, but
14785 # adding the `-m68020' flag to GCC prevents building anything better,
14787 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14792 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14793 # PIC is the default for these OSes.
14795 mingw* | cygwin* | os2* | pw32* | cegcc*)
14796 # This hack is so that the source file can tell whether it is being
14797 # built for inclusion in a dll (and should export symbols for example).
14798 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14799 # (--disable-auto-import) libraries
14800 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14802 darwin* | rhapsody*)
14803 # PIC is the default on this platform
14804 # Common symbols not allowed in MH_DYLIB files
14805 lt_prog_compiler_pic_CXX='-fno-common'
14808 # DJGPP does not support shared libraries at all
14809 lt_prog_compiler_pic_CXX=
14812 # PIC is the default for Haiku.
14813 # The "-static" flag exists, but is broken.
14814 lt_prog_compiler_static_CXX=
14817 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14818 # Instead, we relocate shared libraries at runtime.
14821 if test -d /usr/nec; then
14822 lt_prog_compiler_pic_CXX=-Kconform_pic
14826 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14827 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14828 # sets the default TLS model and affects inlining.
14833 lt_prog_compiler_pic_CXX='-fPIC'
14838 # QNX uses GNU C++, but need to define -shared option too, otherwise
14839 # it will coredump.
14840 lt_prog_compiler_pic_CXX='-fPIC -shared'
14843 lt_prog_compiler_pic_CXX='-fPIC'
14849 # All AIX code is PIC.
14850 if test "$host_cpu" = ia64; then
14851 # AIX 5 now supports IA64 processor
14852 lt_prog_compiler_static_CXX='-Bstatic'
14854 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14858 case $cc_basename in
14860 # Green Hills C++ Compiler
14861 # _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"
14865 mingw* | cygwin* | os2* | pw32* | cegcc*)
14866 # This hack is so that the source file can tell whether it is being
14867 # built for inclusion in a dll (and should export symbols for example).
14868 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14871 case $cc_basename in
14873 lt_prog_compiler_pic_CXX='-KPIC'
14876 # Green Hills C++ Compiler
14877 lt_prog_compiler_pic_CXX='-pic'
14883 freebsd* | dragonfly*)
14884 # FreeBSD uses GNU C++
14886 hpux9* | hpux10* | hpux11*)
14887 case $cc_basename in
14889 lt_prog_compiler_wl_CXX='-Wl,'
14890 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14891 if test "$host_cpu" != ia64; then
14892 lt_prog_compiler_pic_CXX='+Z'
14896 lt_prog_compiler_wl_CXX='-Wl,'
14897 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14903 lt_prog_compiler_pic_CXX='+Z'
14912 # This is c89, which is MS Visual C++ (no shared libs)
14913 # Anyone wants to do a port?
14915 irix5* | irix6* | nonstopux*)
14916 case $cc_basename in
14918 lt_prog_compiler_wl_CXX='-Wl,'
14919 lt_prog_compiler_static_CXX='-non_shared'
14920 # CC pic flag -KPIC is the default.
14926 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14927 case $cc_basename in
14930 lt_prog_compiler_wl_CXX='--backend -Wl,'
14931 lt_prog_compiler_pic_CXX='-fPIC'
14934 # old Intel C++ for x86_64 which still supported -KPIC.
14935 lt_prog_compiler_wl_CXX='-Wl,'
14936 lt_prog_compiler_pic_CXX='-KPIC'
14937 lt_prog_compiler_static_CXX='-static'
14940 # Intel C++, used to be incompatible with GCC.
14941 # ICC 10 doesn't accept -KPIC any more.
14942 lt_prog_compiler_wl_CXX='-Wl,'
14943 lt_prog_compiler_pic_CXX='-fPIC'
14944 lt_prog_compiler_static_CXX='-static'
14947 # Portland Group C++ compiler
14948 lt_prog_compiler_wl_CXX='-Wl,'
14949 lt_prog_compiler_pic_CXX='-fpic'
14950 lt_prog_compiler_static_CXX='-Bstatic'
14954 # Make sure the PIC flag is empty. It appears that all Alpha
14955 # Linux and Compaq Tru64 Unix objects are PIC.
14956 lt_prog_compiler_pic_CXX=
14957 lt_prog_compiler_static_CXX='-non_shared'
14959 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14960 # IBM XL 8.0, 9.0 on PPC and BlueGene
14961 lt_prog_compiler_wl_CXX='-Wl,'
14962 lt_prog_compiler_pic_CXX='-qpic'
14963 lt_prog_compiler_static_CXX='-qstaticlink'
14966 case `$CC -V 2>&1 | sed 5q` in
14969 lt_prog_compiler_pic_CXX='-KPIC'
14970 lt_prog_compiler_static_CXX='-Bstatic'
14971 lt_prog_compiler_wl_CXX='-Qoption ld '
14982 case $cc_basename in
14984 lt_prog_compiler_pic_CXX='-W c,exportall'
14993 # QNX uses GNU C++, but need to define -shared option too, otherwise
14994 # it will coredump.
14995 lt_prog_compiler_pic_CXX='-fPIC -shared'
14997 osf3* | osf4* | osf5*)
14998 case $cc_basename in
15000 lt_prog_compiler_wl_CXX='--backend -Wl,'
15003 # Rational C++ 2.4.1
15004 lt_prog_compiler_pic_CXX='-pic'
15007 # Digital/Compaq C++
15008 lt_prog_compiler_wl_CXX='-Wl,'
15009 # Make sure the PIC flag is empty. It appears that all Alpha
15010 # Linux and Compaq Tru64 Unix objects are PIC.
15011 lt_prog_compiler_pic_CXX=
15012 lt_prog_compiler_static_CXX='-non_shared'
15021 case $cc_basename in
15023 # Sun C++ 4.2, 5.x and Centerline C++
15024 lt_prog_compiler_pic_CXX='-KPIC'
15025 lt_prog_compiler_static_CXX='-Bstatic'
15026 lt_prog_compiler_wl_CXX='-Qoption ld '
15029 # Green Hills C++ Compiler
15030 lt_prog_compiler_pic_CXX='-PIC'
15037 case $cc_basename in
15040 lt_prog_compiler_pic_CXX='-pic'
15041 lt_prog_compiler_static_CXX='-Bstatic'
15045 lt_prog_compiler_pic_CXX='-pic'
15051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15052 case $cc_basename in
15054 lt_prog_compiler_wl_CXX='-Wl,'
15055 lt_prog_compiler_pic_CXX='-KPIC'
15056 lt_prog_compiler_static_CXX='-Bstatic'
15061 case $cc_basename in
15063 # NonStop-UX NCC 3.20
15064 lt_prog_compiler_pic_CXX='-KPIC'
15073 lt_prog_compiler_can_build_shared_CXX=no
15079 # For platforms which do not support PIC, -DPIC is meaningless:
15081 lt_prog_compiler_pic_CXX=
15084 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15090 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15091 $as_echo_n "(cached) " >&6
15093 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15096 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15097 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15100 # Check to make sure the PIC flag actually works.
15102 if test -n "$lt_prog_compiler_pic_CXX"; then
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15104 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15105 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15106 $as_echo_n "(cached) " >&6
15108 lt_cv_prog_compiler_pic_works_CXX=no
15109 ac_outfile=conftest.$ac_objext
15110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15111 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15112 # Insert the option either (1) after the last *FLAGS variable, or
15113 # (2) before a word containing "conftest.", or (3) at the end.
15114 # Note that $ac_compile itself does not contain backslashes and begins
15115 # with a dollar sign (not a hyphen), so the echo should work correctly.
15116 # The option is referenced via a variable to avoid confusing sed.
15117 lt_compile=`echo "$ac_compile" | $SED \
15118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120 -e 's:$: $lt_compiler_flag:'`
15121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15122 (eval "$lt_compile" 2>conftest.err)
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 if (exit $ac_status) && test -s "$ac_outfile"; then
15127 # The compiler can only warn and ignore the option if not recognized
15128 # So say no if there are warnings other than the usual output.
15129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15132 lt_cv_prog_compiler_pic_works_CXX=yes
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15139 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15141 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15142 case $lt_prog_compiler_pic_CXX in
15144 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15147 lt_prog_compiler_pic_CXX=
15148 lt_prog_compiler_can_build_shared_CXX=no
15158 # Check to make sure the static flag actually works.
15160 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15162 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15163 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15164 $as_echo_n "(cached) " >&6
15166 lt_cv_prog_compiler_static_works_CXX=no
15167 save_LDFLAGS="$LDFLAGS"
15168 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15169 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15171 # The linker can only warn and ignore the option if not recognized
15172 # So say no if there are warnings
15173 if test -s conftest.err; then
15174 # Append any errors to the config.log.
15175 cat conftest.err 1>&5
15176 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15178 if diff conftest.exp conftest.er2 >/dev/null; then
15179 lt_cv_prog_compiler_static_works_CXX=yes
15182 lt_cv_prog_compiler_static_works_CXX=yes
15186 LDFLAGS="$save_LDFLAGS"
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15190 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15192 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15195 lt_prog_compiler_static_CXX=
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15203 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15204 $as_echo_n "(cached) " >&6
15206 lt_cv_prog_compiler_c_o_CXX=no
15207 $RM -r conftest 2>/dev/null
15211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15213 lt_compiler_flag="-o out/conftest2.$ac_objext"
15214 # Insert the option either (1) after the last *FLAGS variable, or
15215 # (2) before a word containing "conftest.", or (3) at the end.
15216 # Note that $ac_compile itself does not contain backslashes and begins
15217 # with a dollar sign (not a hyphen), so the echo should work correctly.
15218 lt_compile=`echo "$ac_compile" | $SED \
15219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15221 -e 's:$: $lt_compiler_flag:'`
15222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15223 (eval "$lt_compile" 2>out/conftest.err)
15225 cat out/conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15229 # The compiler can only warn and ignore the option if not recognized
15230 # So say no if there are warnings
15231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15234 lt_cv_prog_compiler_c_o_CXX=yes
15239 # SGI C++ compiler will create directory out/ii_files/ for
15240 # template instantiation
15241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15242 $RM out/* && rmdir out
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15249 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15255 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15256 $as_echo_n "(cached) " >&6
15258 lt_cv_prog_compiler_c_o_CXX=no
15259 $RM -r conftest 2>/dev/null
15263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15265 lt_compiler_flag="-o out/conftest2.$ac_objext"
15266 # Insert the option either (1) after the last *FLAGS variable, or
15267 # (2) before a word containing "conftest.", or (3) at the end.
15268 # Note that $ac_compile itself does not contain backslashes and begins
15269 # with a dollar sign (not a hyphen), so the echo should work correctly.
15270 lt_compile=`echo "$ac_compile" | $SED \
15271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15273 -e 's:$: $lt_compiler_flag:'`
15274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15275 (eval "$lt_compile" 2>out/conftest.err)
15277 cat out/conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15281 # The compiler can only warn and ignore the option if not recognized
15282 # So say no if there are warnings
15283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15286 lt_cv_prog_compiler_c_o_CXX=yes
15291 # SGI C++ compiler will create directory out/ii_files/ for
15292 # template instantiation
15293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15294 $RM out/* && rmdir out
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15301 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15306 hard_links="nottested"
15307 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15308 # do not overwrite the value of need_locks provided by the user
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15310 $as_echo_n "checking if we can lock with hard links... " >&6; }
15313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15315 ln conftest.a conftest.b 2>&5 || hard_links=no
15316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15318 $as_echo "$hard_links" >&6; }
15319 if test "$hard_links" = no; then
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15321 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15331 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15333 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15334 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15337 # If we're using GNU nm, then we don't want the "-C" option.
15338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15339 # Also, AIX nm treats weak defined symbols like other global defined
15340 # symbols, whereas GNU nm marks them as "W".
15341 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15342 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'
15344 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'
15348 export_symbols_cmds_CXX="$ltdll_cmds"
15350 cygwin* | mingw* | cegcc*)
15351 case $cc_basename in
15354 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'
15355 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15360 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15365 $as_echo "$ld_shlibs_CXX" >&6; }
15366 test "$ld_shlibs_CXX" = no && can_build_shared=no
15368 with_gnu_ld_CXX=$with_gnu_ld
15376 # Do we need to explicitly link libc?
15378 case "x$archive_cmds_need_lc_CXX" in
15380 # Assume -lc should be added
15381 archive_cmds_need_lc_CXX=yes
15383 if test "$enable_shared" = yes && test "$GCC" = yes; then
15384 case $archive_cmds_CXX in
15386 # FIXME: we may have to deal with multi-command sequences.
15389 # Test whether the compiler implicitly links with -lc since on some
15390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15391 # to ld, don't add -lc before -lgcc.
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15393 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15394 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15395 $as_echo_n "(cached) " >&6
15398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15401 (eval $ac_compile) 2>&5
15403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15404 test $ac_status = 0; } 2>conftest.err; then
15407 libobjs=conftest.$ac_objext
15409 wl=$lt_prog_compiler_wl_CXX
15410 pic_flag=$lt_prog_compiler_pic_CXX
15416 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15417 allow_undefined_flag_CXX=
15418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15419 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15422 test $ac_status = 0; }
15424 lt_cv_archive_cmds_need_lc_CXX=no
15426 lt_cv_archive_cmds_need_lc_CXX=yes
15428 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15430 cat conftest.err 1>&5
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15436 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15437 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15508 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15510 library_names_spec=
15511 libname_spec='lib$name'
15515 postuninstall_cmds=
15519 shlibpath_overrides_runpath=unknown
15521 dynamic_linker="$host_os ld.so"
15522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15523 need_lib_prefix=unknown
15524 hardcode_into_libs=no
15526 # when you set need_version to no, make sure it does not cause -set_version
15527 # flags to be left without arguments
15528 need_version=unknown
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15534 shlibpath_var=LIBPATH
15536 # AIX 3 has no versioning support, so we append a major version to the name.
15537 soname_spec='${libname}${release}${shared_ext}$major'
15544 hardcode_into_libs=yes
15545 if test "$host_cpu" = ia64; then
15546 # AIX 5 supports IA64
15547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15548 shlibpath_var=LD_LIBRARY_PATH
15550 # With GCC up to 2.95.x, collect2 would create an import file
15551 # for dependence libraries. The import file would start with
15552 # the line `#! .'. This would cause the generated library to
15553 # depend on `.', always an invalid library. This was fixed in
15554 # development snapshots of GCC prior to 3.0.
15556 aix4 | aix4.[01] | aix4.[01].*)
15557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15559 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15562 can_build_shared=no
15566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15567 # soname into executable. Probably we can add versioning support to
15568 # collect2, so additional links can be useful in future.
15569 if test "$aix_use_runtimelinking" = yes; then
15570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15571 # instead of lib<name>.a to let people know that these are not
15572 # typical AIX shared libraries.
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 # We preserve .a as extension for shared libraries through AIX4.2
15576 # and later when we are not doing run time linking.
15577 library_names_spec='${libname}${release}.a $libname.a'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15580 shlibpath_var=LIBPATH
15587 # Since July 2007 AmigaOS4 officially supports .so libraries.
15588 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 library_names_spec='$libname.ixlibrary $libname.a'
15593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15594 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'
15600 library_names_spec='${libname}${shared_ext}'
15601 dynamic_linker="$host_os ld.so"
15602 shlibpath_var=LIBRARY_PATH
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15610 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15611 shlibpath_var=LD_LIBRARY_PATH
15612 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15613 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15614 # the default ld.so.conf also contains /usr/contrib/lib and
15615 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15616 # libtool to hard-code these into programs
15619 cygwin* | mingw* | pw32* | cegcc*)
15620 version_type=windows
15625 case $GCC,$cc_basename in
15628 library_names_spec='$libname.dll.a'
15629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15630 postinstall_cmds='base_file=`basename \${file}`~
15631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15632 dldir=$destdir/`dirname \$dlpath`~
15633 test -d \$dldir || mkdir -p \$dldir~
15634 $install_prog $dir/$dlname \$dldir/$dlname~
15635 chmod a+x \$dldir/$dlname~
15636 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15637 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15640 dlpath=$dir/\$dldll~
15642 shlibpath_overrides_runpath=yes
15646 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15647 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15651 # MinGW DLLs use traditional 'lib' prefix
15652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15655 # pw32 DLLs use 'pw' prefix rather than 'lib'
15656 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15659 dynamic_linker='Win32 ld.exe'
15664 libname_spec='$name'
15665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15666 library_names_spec='${libname}.dll.lib'
15670 sys_lib_search_path_spec=
15673 for lt_path in $LIB
15676 # Let DOS variable expansion print the short 8.3 style file name.
15677 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15678 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15681 # Convert to MSYS style.
15682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15685 # Convert to unix form, then to dos form, then back to unix form
15686 # but this time dos style (no spaces!) so that the unix form looks
15687 # like /cygdrive/c/PROGRA~1:/cygdr...
15688 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15689 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15690 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15693 sys_lib_search_path_spec="$LIB"
15694 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15695 # It is most probably a Windows format PATH.
15696 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15698 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15700 # FIXME: find the short name or the path components, as spaces are
15701 # common. (e.g. "Program Files" -> "PROGRA~1")
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 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15712 dlpath=$dir/\$dldll~
15714 shlibpath_overrides_runpath=yes
15715 dynamic_linker='Win32 link.exe'
15719 # Assume MSVC wrapper
15720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15721 dynamic_linker='Win32 ld.exe'
15724 # FIXME: first we should search . and the directory the executable is in
15728 darwin* | rhapsody*)
15729 dynamic_linker="$host_os dyld"
15730 version_type=darwin
15733 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15734 soname_spec='${libname}${release}${major}$shared_ext'
15735 shlibpath_overrides_runpath=yes
15736 shlibpath_var=DYLD_LIBRARY_PATH
15737 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15747 soname_spec='${libname}${release}${shared_ext}$major'
15748 shlibpath_var=LD_LIBRARY_PATH
15755 freebsd* | dragonfly*)
15756 # DragonFly does not have aout. When/if they implement a new
15757 # versioning mechanism, adjust this.
15758 if test -x /usr/bin/objformat; then
15759 objformat=`/usr/bin/objformat`
15762 freebsd[123]*) objformat=aout ;;
15763 *) objformat=elf ;;
15766 version_type=freebsd-$objformat
15767 case $version_type in
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15778 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=yes
15783 freebsd3.[01]* | freebsdelf3.[01]*)
15784 shlibpath_overrides_runpath=yes
15785 hardcode_into_libs=yes
15787 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15788 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15789 shlibpath_overrides_runpath=no
15790 hardcode_into_libs=yes
15792 *) # from 4.6 on, and DragonFly
15793 shlibpath_overrides_runpath=yes
15794 hardcode_into_libs=yes
15803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15804 soname_spec='${libname}${release}${shared_ext}$major'
15805 shlibpath_var=LD_LIBRARY_PATH
15806 hardcode_into_libs=yes
15813 dynamic_linker="$host_os runtime_loader"
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15815 soname_spec='${libname}${release}${shared_ext}$major'
15816 shlibpath_var=LIBRARY_PATH
15817 shlibpath_overrides_runpath=yes
15818 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15819 hardcode_into_libs=yes
15822 hpux9* | hpux10* | hpux11*)
15823 # Give a soname corresponding to the major version so that dld.sl refuses to
15824 # link against other versions.
15831 hardcode_into_libs=yes
15832 dynamic_linker="$host_os dld.so"
15833 shlibpath_var=LD_LIBRARY_PATH
15834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 if test "X$HPUX_IA64_MODE" = X32; then
15838 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15842 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15846 hardcode_into_libs=yes
15847 dynamic_linker="$host_os dld.sl"
15848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15857 dynamic_linker="$host_os dld.sl"
15858 shlibpath_var=SHLIB_PATH
15859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861 soname_spec='${libname}${release}${shared_ext}$major'
15864 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15865 postinstall_cmds='chmod 555 $lib'
15866 # or fails outright, so override atomically:
15867 install_override_mode=555
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15877 shlibpath_var=LD_LIBRARY_PATH
15878 shlibpath_overrides_runpath=no
15879 hardcode_into_libs=yes
15882 irix5* | irix6* | nonstopux*)
15884 nonstopux*) version_type=nonstopux ;;
15886 if test "$lt_cv_prog_gnu_ld" = yes; then
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15897 irix5* | nonstopux*)
15898 libsuff= shlibsuff=
15901 case $LD in # libtool.m4 will add one of these switches to LD
15902 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15903 libsuff= shlibsuff= libmagic=32-bit;;
15904 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15905 libsuff=32 shlibsuff=N32 libmagic=N32;;
15906 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15907 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15908 *) libsuff= shlibsuff= libmagic=never-match;;
15912 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15913 shlibpath_overrides_runpath=no
15914 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15915 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15916 hardcode_into_libs=yes
15919 # No shared lib support for Linux oldld, aout, or coff.
15920 linux*oldld* | linux*aout* | linux*coff*)
15924 # This must be Linux ELF.
15925 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 shlibpath_overrides_runpath=no
15935 # Some binutils ld are patched to set DT_RUNPATH
15936 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15937 $as_echo_n "(cached) " >&6
15939 lt_cv_shlibpath_overrides_runpath=no
15940 save_LDFLAGS=$LDFLAGS
15941 save_libdir=$libdir
15942 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15943 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15955 if ac_fn_cxx_try_link "$LINENO"; then :
15956 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15957 lt_cv_shlibpath_overrides_runpath=yes
15960 rm -f core conftest.err conftest.$ac_objext \
15961 conftest$ac_exeext conftest.$ac_ext
15962 LDFLAGS=$save_LDFLAGS
15963 libdir=$save_libdir
15967 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15969 # This implies no fast_install, which is unacceptable.
15970 # Some rework will be needed to allow for fast_install
15971 # before this can be enabled.
15972 hardcode_into_libs=yes
15974 # Append ld.so.conf contents to the search path
15975 if test -f /etc/ld.so.conf; then
15976 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' ' '`
15977 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15980 # We used to test for /lib/ld.so.1 and disable shared libraries on
15981 # powerpc, because MkLinux only supported shared libraries with the
15982 # GNU dynamic linker. Since this was broken with cross compilers,
15983 # most powerpc-linux boxes support dynamic linking these days and
15984 # people can always --disable-shared, the test was removed, and we
15985 # assume the GNU/Linux dynamic linker is in use.
15986 dynamic_linker='GNU/Linux ld.so'
15993 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15996 dynamic_linker='NetBSD (a.out) ld.so'
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 dynamic_linker='NetBSD ld.elf_so'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=yes
16004 hardcode_into_libs=yes
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 shlibpath_overrides_runpath=yes
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=no
16022 hardcode_into_libs=yes
16023 dynamic_linker='ldqnx.so'
16028 sys_lib_dlsearch_path_spec="/usr/lib"
16030 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16032 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16033 *) need_version=no ;;
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16040 openbsd2.[89] | openbsd2.[89].*)
16041 shlibpath_overrides_runpath=no
16044 shlibpath_overrides_runpath=yes
16048 shlibpath_overrides_runpath=yes
16053 libname_spec='$name'
16056 library_names_spec='$libname${shared_ext} $libname.a'
16057 dynamic_linker='OS/2 ld.exe'
16058 shlibpath_var=LIBPATH
16061 osf3* | osf4* | osf5*)
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16069 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 soname_spec='${libname}${release}${shared_ext}$major'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 shlibpath_overrides_runpath=yes
16084 hardcode_into_libs=yes
16085 # ldd complains unless libraries are executable
16086 postinstall_cmds='chmod +x $lib'
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16092 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16093 shlibpath_var=LD_LIBRARY_PATH
16094 shlibpath_overrides_runpath=yes
16095 if test "$with_gnu_ld" = yes; then
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 case $host_vendor in
16108 shlibpath_overrides_runpath=no
16110 runpath_var=LD_RUN_PATH
16118 shlibpath_overrides_runpath=no
16119 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16125 if test -d /usr/nec ;then
16127 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16128 soname_spec='$libname${shared_ext}.$major'
16129 shlibpath_var=LD_LIBRARY_PATH
16133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16134 version_type=freebsd-elf
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=yes
16141 hardcode_into_libs=yes
16142 if test "$with_gnu_ld" = yes; then
16143 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16145 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16148 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16152 sys_lib_dlsearch_path_spec='/usr/lib'
16156 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 shlibpath_var=LD_LIBRARY_PATH
16162 shlibpath_overrides_runpath=no
16163 hardcode_into_libs=yes
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16178 $as_echo "$dynamic_linker" >&6; }
16179 test "$dynamic_linker" = no && can_build_shared=no
16181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16182 if test "$GCC" = yes; then
16183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16187 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16189 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16190 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16232 hardcode_action_CXX=
16233 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16234 test -n "$runpath_var_CXX" ||
16235 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16237 # We can hardcode non-existent directories.
16238 if test "$hardcode_direct_CXX" != no &&
16239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16240 # have to relink, otherwise we might link with an installed library
16241 # when we should be linking with a yet-to-be-installed one
16242 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16243 test "$hardcode_minus_L_CXX" != no; then
16244 # Linking always hardcodes the temporary library directory.
16245 hardcode_action_CXX=relink
16247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16248 hardcode_action_CXX=immediate
16251 # We cannot hardcode anything, or else we can only hardcode existing
16253 hardcode_action_CXX=unsupported
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16256 $as_echo "$hardcode_action_CXX" >&6; }
16258 if test "$hardcode_action_CXX" = relink ||
16259 test "$inherit_rpath_CXX" = yes; then
16260 # Fast installation is not supported
16261 enable_fast_install=no
16262 elif test "$shlibpath_overrides_runpath" = yes ||
16263 test "$enable_shared" = no; then
16264 # Fast installation is not necessary
16265 enable_fast_install=needless
16274 fi # test -n "$compiler"
16277 CFLAGS=$lt_save_CFLAGS
16281 with_gnu_ld=$lt_save_with_gnu_ld
16282 lt_cv_path_LDCXX=$lt_cv_path_LD
16283 lt_cv_path_LD=$lt_save_path_LD
16284 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16285 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16286 fi # test "$_lt_caught_CXX_error" != yes
16289 ac_cpp='$CPP $CPPFLAGS'
16290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16306 ac_config_commands="$ac_config_commands libtool"
16311 # Only expand once:
16319 ac_cpp='$CPP $CPPFLAGS'
16320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16327 $as_echo_n "checking for library containing dlopen... " >&6; }
16328 if ${ac_cv_search_dlopen+:} false; then :
16329 $as_echo_n "(cached) " >&6
16331 ac_func_search_save_LIBS=$LIBS
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16335 /* Override any GCC internal prototype to avoid an error.
16336 Use char because int might match the return type of a GCC
16337 builtin and then its argument prototype would still apply. */
16350 for ac_lib in '' dl; do
16351 if test -z "$ac_lib"; then
16352 ac_res="none required"
16355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16357 if ac_fn_c_try_link "$LINENO"; then :
16358 ac_cv_search_dlopen=$ac_res
16360 rm -f core conftest.err conftest.$ac_objext \
16362 if ${ac_cv_search_dlopen+:} false; then :
16366 if ${ac_cv_search_dlopen+:} false; then :
16369 ac_cv_search_dlopen=no
16371 rm conftest.$ac_ext
16372 LIBS=$ac_func_search_save_LIBS
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16375 $as_echo "$ac_cv_search_dlopen" >&6; }
16376 ac_res=$ac_cv_search_dlopen
16377 if test "$ac_res" != no; then :
16378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16380 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16382 if test "$ac_cv_search_dlopen" != "none required" ; then
16383 LIBADD_DLOPEN="-ldl"
16385 libltdl_cv_lib_dl_dlopen="yes"
16386 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16391 # include <dlfcn.h>
16402 if ac_fn_c_try_link "$LINENO"; then :
16404 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16406 libltdl_cv_func_dlopen="yes"
16407 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16410 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16411 if ${ac_cv_lib_svld_dlopen+:} false; then :
16412 $as_echo_n "(cached) " >&6
16414 ac_check_lib_save_LIBS=$LIBS
16415 LIBS="-lsvld $LIBS"
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16419 /* Override any GCC internal prototype to avoid an error.
16420 Use char because int might match the return type of a GCC
16421 builtin and then its argument prototype would still apply. */
16434 if ac_fn_c_try_link "$LINENO"; then :
16435 ac_cv_lib_svld_dlopen=yes
16437 ac_cv_lib_svld_dlopen=no
16439 rm -f core conftest.err conftest.$ac_objext \
16440 conftest$ac_exeext conftest.$ac_ext
16441 LIBS=$ac_check_lib_save_LIBS
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16444 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16445 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16447 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16449 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16450 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16454 rm -f core conftest.err conftest.$ac_objext \
16455 conftest$ac_exeext conftest.$ac_ext
16458 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16460 lt_save_LIBS="$LIBS"
16461 LIBS="$LIBS $LIBADD_DLOPEN"
16462 for ac_func in dlerror
16464 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16465 if test "x$ac_cv_func_dlerror" = xyes; then :
16466 cat >>confdefs.h <<_ACEOF
16467 #define HAVE_DLERROR 1
16473 LIBS="$lt_save_LIBS"
16478 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16479 if test "x$ac_cv_func_shl_load" = xyes; then :
16481 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16483 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16486 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16487 if ${ac_cv_lib_dld_shl_load+:} false; then :
16488 $as_echo_n "(cached) " >&6
16490 ac_check_lib_save_LIBS=$LIBS
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16495 /* Override any GCC internal prototype to avoid an error.
16496 Use char because int might match the return type of a GCC
16497 builtin and then its argument prototype would still apply. */
16505 return shl_load ();
16510 if ac_fn_c_try_link "$LINENO"; then :
16511 ac_cv_lib_dld_shl_load=yes
16513 ac_cv_lib_dld_shl_load=no
16515 rm -f core conftest.err conftest.$ac_objext \
16516 conftest$ac_exeext conftest.$ac_ext
16517 LIBS=$ac_check_lib_save_LIBS
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16520 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16521 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16523 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16525 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16526 LIBADD_SHL_LOAD="-ldld"
16535 # We only want this for pre-Mac OS X 10.4.
16536 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16537 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16539 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16541 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16546 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16548 cygwin* | mingw* | os2* | pw32*)
16549 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16551 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16557 cat >>confdefs.h <<_ACEOF
16558 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16561 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16566 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16567 if ${ac_cv_lib_dld_dld_link+:} false; then :
16568 $as_echo_n "(cached) " >&6
16570 ac_check_lib_save_LIBS=$LIBS
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h. */
16575 /* Override any GCC internal prototype to avoid an error.
16576 Use char because int might match the return type of a GCC
16577 builtin and then its argument prototype would still apply. */
16585 return dld_link ();
16590 if ac_fn_c_try_link "$LINENO"; then :
16591 ac_cv_lib_dld_dld_link=yes
16593 ac_cv_lib_dld_dld_link=no
16595 rm -f core conftest.err conftest.$ac_objext \
16596 conftest$ac_exeext conftest.$ac_ext
16597 LIBS=$ac_check_lib_save_LIBS
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16600 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16601 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16603 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16605 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16612 if test -n "$LT_DLLOADERS"
16614 for lt_loader in $LT_DLLOADERS; do
16615 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16618 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16623 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16635 if test x$use_libtool != xno; then
16636 DEFAULT_OBJECT_TYPE=".lo"
16637 DEFAULT_ARCHIVE_TYPE=".la"
16638 DEFAULT_SHARED_OBJECT_TYPE=".la"
16639 LIBTOOL="\$(LIBTOOL)"
16640 LIBTOOL_INSTALL_TARGET="libtool-install"
16641 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16642 LIBTOOL_CLEAN_TARGET="libtool-clean"
16643 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16644 FD_PLUGIN_DIR="src/plugins/fd"
16647 DEFAULT_OBJECT_TYPE=".o"
16648 DEFAULT_ARCHIVE_TYPE=".a"
16649 DEFAULT_SHARED_OBJECT_TYPE=".so"
16650 LIBTOOL="# \$(LIBTOOL)"
16651 LIBTOOL_INSTALL_TARGET=""
16652 LIBTOOL_UNINSTALL_TARGET=""
16653 LIBTOOL_CLEAN_TARGET=""
16654 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16669 # Check whether --enable-includes was given.
16670 if test "${enable_includes+set}" = set; then :
16671 enableval=$enable_includes;
16672 if test x$enableval = xyes; then
16673 install_includes=yes
16681 if test x$use_libtool != xno -a x$install_includes = xyes; then
16682 INCLUDE_INSTALL_TARGET="install-includes"
16683 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16685 INCLUDE_INSTALL_TARGET=""
16686 INCLUDE_UNINSTALL_TARGET=""
16694 *cygwin* ) CYGWIN=yes;;
16698 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16704 HAVE_SUN_OS_FALSE='#'
16706 HAVE_SUN_OS_TRUE='#'
16709 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16716 HAVE_SUN_OS_FALSE='#'
16718 HAVE_SUN_OS_TRUE='#'
16723 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16729 HAVE_HURD_OS_FALSE='#'
16731 HAVE_HURD_OS_TRUE='#'
16732 HAVE_HURD_OS_FALSE=
16734 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16741 HAVE_HURD_OS_FALSE='#'
16743 HAVE_HURD_OS_TRUE='#'
16744 HAVE_HURD_OS_FALSE=
16748 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16754 HAVE_OSF1_OS_FALSE='#'
16756 HAVE_OSF1_OS_TRUE='#'
16757 HAVE_OSF1_OS_FALSE=
16759 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16766 HAVE_OSF1_OS_FALSE='#'
16768 HAVE_OSF1_OS_TRUE='#'
16769 HAVE_OSF1_OS_FALSE=
16773 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16779 HAVE_AIX_OS_FALSE='#'
16781 HAVE_AIX_OS_TRUE='#'
16784 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16791 HAVE_AIX_OS_FALSE='#'
16793 HAVE_AIX_OS_TRUE='#'
16798 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16804 HAVE_HPUX_OS_FALSE='#'
16806 HAVE_HPUX_OS_TRUE='#'
16807 HAVE_HPUX_OS_FALSE=
16809 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16816 HAVE_HPUX_OS_FALSE='#'
16818 HAVE_HPUX_OS_TRUE='#'
16819 HAVE_HPUX_OS_FALSE=
16823 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16828 HAVE_LINUX_OS_TRUE=
16829 HAVE_LINUX_OS_FALSE='#'
16831 HAVE_LINUX_OS_TRUE='#'
16832 HAVE_LINUX_OS_FALSE=
16834 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16840 HAVE_LINUX_OS_TRUE=
16841 HAVE_LINUX_OS_FALSE='#'
16843 HAVE_LINUX_OS_TRUE='#'
16844 HAVE_LINUX_OS_FALSE=
16848 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16853 HAVE_FREEBSD_OS_TRUE=
16854 HAVE_FREEBSD_OS_FALSE='#'
16856 HAVE_FREEBSD_OS_TRUE='#'
16857 HAVE_FREEBSD_OS_FALSE=
16859 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16865 HAVE_FREEBSD_OS_TRUE=
16866 HAVE_FREEBSD_OS_FALSE='#'
16868 HAVE_FREEBSD_OS_TRUE='#'
16869 HAVE_FREEBSD_OS_FALSE=
16873 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16878 HAVE_NETBSD_OS_TRUE=
16879 HAVE_NETBSD_OS_FALSE='#'
16881 HAVE_NETBSD_OS_TRUE='#'
16882 HAVE_NETBSD_OS_FALSE=
16884 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16890 HAVE_NETBSD_OS_TRUE=
16891 HAVE_NETBSD_OS_FALSE='#'
16893 HAVE_NETBSD_OS_TRUE='#'
16894 HAVE_NETBSD_OS_FALSE=
16898 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16903 HAVE_OPENBSD_OS_TRUE=
16904 HAVE_OPENBSD_OS_FALSE='#'
16906 HAVE_OPENBSD_OS_TRUE='#'
16907 HAVE_OPENBSD_OS_FALSE=
16909 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16915 HAVE_OPENBSD_OS_TRUE=
16916 HAVE_OPENBSD_OS_FALSE='#'
16918 HAVE_OPENBSD_OS_TRUE='#'
16919 HAVE_OPENBSD_OS_FALSE=
16923 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16929 HAVE_BSDI_OS_FALSE='#'
16931 HAVE_BSDI_OS_TRUE='#'
16932 HAVE_BSDI_OS_FALSE=
16934 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16941 HAVE_BSDI_OS_FALSE='#'
16943 HAVE_BSDI_OS_TRUE='#'
16944 HAVE_BSDI_OS_FALSE=
16948 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16954 HAVE_SGI_OS_FALSE='#'
16956 HAVE_SGI_OS_TRUE='#'
16959 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16966 HAVE_SGI_OS_FALSE='#'
16968 HAVE_SGI_OS_TRUE='#'
16973 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16979 HAVE_IRIX_OS_FALSE='#'
16981 HAVE_IRIX_OS_TRUE='#'
16982 HAVE_IRIX_OS_FALSE=
16984 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16991 HAVE_IRIX_OS_FALSE='#'
16993 HAVE_IRIX_OS_TRUE='#'
16994 HAVE_IRIX_OS_FALSE=
16998 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17003 HAVE_DARWIN_OS_TRUE=
17004 HAVE_DARWIN_OS_FALSE='#'
17006 HAVE_DARWIN_OS_TRUE='#'
17007 HAVE_DARWIN_OS_FALSE=
17009 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17015 HAVE_DARWIN_OS_TRUE=
17016 HAVE_DARWIN_OS_FALSE='#'
17018 HAVE_DARWIN_OS_TRUE='#'
17019 HAVE_DARWIN_OS_FALSE=
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17025 $as_echo_n "checking for Operating System Distribution... " >&6; }
17026 if test "x$DISTNAME" != "x"
17028 echo "distname set to $DISTNAME"
17029 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17032 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17035 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17038 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17041 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17044 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17047 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17050 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17053 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17056 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17059 elif test -f /etc/SuSE-release
17062 elif test -d /etc/SuSEconfig
17065 elif test -f /etc/mandrake-release
17068 elif test -f /etc/whitebox-release
17071 elif test -f /etc/redhat-release
17074 elif test -f /etc/gentoo-release
17077 elif test -f /etc/debian_version
17080 elif test -f /etc/slackware-version
17083 elif test x$host_vendor = xapple
17086 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17089 elif test -f /etc/engarde-version
17092 elif test -f /etc/arch-release
17095 elif test "$CYGWIN" = yes
17098 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17104 $as_echo "done" >&6; }
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17108 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17110 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17111 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17112 $as_echo_n "(cached) " >&6
17114 cat >conftest.make <<\_ACEOF
17117 @echo '@@@%%%=$(MAKE)=@@@%%%'
17119 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17120 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17121 *@@@%%%=?*=@@@%%%*)
17122 eval ac_cv_prog_make_${ac_make}_set=yes;;
17124 eval ac_cv_prog_make_${ac_make}_set=no;;
17126 rm -f conftest.make
17128 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17130 $as_echo "yes" >&6; }
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17134 $as_echo "no" >&6; }
17135 SET_MAKE="MAKE=${MAKE-make}"
17141 if test -n "$ac_aux_dir"; then
17142 case "$ac_aux_dir" in
17143 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17144 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17147 if test -z "$MKINSTALLDIRS"; then
17148 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17154 $as_echo_n "checking whether NLS is requested... " >&6; }
17155 # Check whether --enable-nls was given.
17156 if test "${enable_nls+set}" = set; then :
17157 enableval=$enable_nls; USE_NLS=$enableval
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17163 $as_echo "$USE_NLS" >&6; }
17170 # Prepare PATH_SEPARATOR.
17171 # The user is always right.
17172 if test "${PATH_SEPARATOR+set}" != set; then
17173 echo "#! /bin/sh" >conf$$.sh
17174 echo "exit 0" >>conf$$.sh
17176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17184 # Find out how to test for executable files. Don't use a zero-byte file,
17185 # as systems may use methods other than mode bits to determine executability.
17186 cat >conf$$.file <<_ASEOF
17190 chmod +x conf$$.file
17191 if test -x conf$$.file >/dev/null 2>&1; then
17192 ac_executable_p="test -x"
17194 ac_executable_p="test -f"
17198 # Extract the first word of "msgfmt", so it can be a program name with args.
17199 set dummy msgfmt; ac_word=$2
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17201 $as_echo_n "checking for $ac_word... " >&6; }
17202 if ${ac_cv_path_MSGFMT+:} false; then :
17203 $as_echo_n "(cached) " >&6
17207 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17210 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17211 for ac_dir in $PATH; do
17213 test -z "$ac_dir" && ac_dir=.
17214 for ac_exec_ext in '' $ac_executable_extensions; do
17215 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17216 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17217 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17218 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17219 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17226 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17230 MSGFMT="$ac_cv_path_MSGFMT"
17231 if test "$MSGFMT" != ":"; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17233 $as_echo "$MSGFMT" >&6; }
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236 $as_echo "no" >&6; }
17239 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17240 set dummy gmsgfmt; ac_word=$2
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17242 $as_echo_n "checking for $ac_word... " >&6; }
17243 if ${ac_cv_path_GMSGFMT+:} false; then :
17244 $as_echo_n "(cached) " >&6
17248 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17252 for as_dir in $PATH
17255 test -z "$as_dir" && as_dir=.
17256 for ac_exec_ext in '' $ac_executable_extensions; do
17257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17258 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17266 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17270 GMSGFMT=$ac_cv_path_GMSGFMT
17271 if test -n "$GMSGFMT"; then
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17273 $as_echo "$GMSGFMT" >&6; }
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17276 $as_echo "no" >&6; }
17282 # Prepare PATH_SEPARATOR.
17283 # The user is always right.
17284 if test "${PATH_SEPARATOR+set}" != set; then
17285 echo "#! /bin/sh" >conf$$.sh
17286 echo "exit 0" >>conf$$.sh
17288 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17296 # Find out how to test for executable files. Don't use a zero-byte file,
17297 # as systems may use methods other than mode bits to determine executability.
17298 cat >conf$$.file <<_ASEOF
17302 chmod +x conf$$.file
17303 if test -x conf$$.file >/dev/null 2>&1; then
17304 ac_executable_p="test -x"
17306 ac_executable_p="test -f"
17310 # Extract the first word of "xgettext", so it can be a program name with args.
17311 set dummy xgettext; ac_word=$2
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17313 $as_echo_n "checking for $ac_word... " >&6; }
17314 if ${ac_cv_path_XGETTEXT+:} false; then :
17315 $as_echo_n "(cached) " >&6
17317 case "$XGETTEXT" in
17319 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17322 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17323 for ac_dir in $PATH; do
17325 test -z "$ac_dir" && ac_dir=.
17326 for ac_exec_ext in '' $ac_executable_extensions; do
17327 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17328 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17329 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17330 (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
17331 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17338 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17342 XGETTEXT="$ac_cv_path_XGETTEXT"
17343 if test "$XGETTEXT" != ":"; then
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17345 $as_echo "$XGETTEXT" >&6; }
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17354 # Prepare PATH_SEPARATOR.
17355 # The user is always right.
17356 if test "${PATH_SEPARATOR+set}" != set; then
17357 echo "#! /bin/sh" >conf$$.sh
17358 echo "exit 0" >>conf$$.sh
17360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17368 # Find out how to test for executable files. Don't use a zero-byte file,
17369 # as systems may use methods other than mode bits to determine executability.
17370 cat >conf$$.file <<_ASEOF
17374 chmod +x conf$$.file
17375 if test -x conf$$.file >/dev/null 2>&1; then
17376 ac_executable_p="test -x"
17378 ac_executable_p="test -f"
17382 # Extract the first word of "msgmerge", so it can be a program name with args.
17383 set dummy msgmerge; ac_word=$2
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17385 $as_echo_n "checking for $ac_word... " >&6; }
17386 if ${ac_cv_path_MSGMERGE+:} false; then :
17387 $as_echo_n "(cached) " >&6
17389 case "$MSGMERGE" in
17391 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17394 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17395 for ac_dir in $PATH; do
17397 test -z "$ac_dir" && ac_dir=.
17398 for ac_exec_ext in '' $ac_executable_extensions; do
17399 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17400 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17401 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17402 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17409 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17413 MSGMERGE="$ac_cv_path_MSGMERGE"
17414 if test "$MSGMERGE" != ":"; then
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17416 $as_echo "$MSGMERGE" >&6; }
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17423 if test "$GMSGFMT" != ":"; then
17424 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17425 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17428 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17430 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17435 if test "$XGETTEXT" != ":"; then
17436 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17437 (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
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17441 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17447 ac_config_commands="$ac_config_commands default-1"
17451 if test "X$prefix" = "XNONE"; then
17452 acl_final_prefix="$ac_default_prefix"
17454 acl_final_prefix="$prefix"
17456 if test "X$exec_prefix" = "XNONE"; then
17457 acl_final_exec_prefix='${prefix}'
17459 acl_final_exec_prefix="$exec_prefix"
17461 acl_save_prefix="$prefix"
17462 prefix="$acl_final_prefix"
17463 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17464 prefix="$acl_save_prefix"
17467 # Check whether --with-gnu-ld was given.
17468 if test "${with_gnu_ld+set}" = set; then :
17469 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17474 # Prepare PATH_SEPARATOR.
17475 # The user is always right.
17476 if test "${PATH_SEPARATOR+set}" != set; then
17477 echo "#! /bin/sh" >conf$$.sh
17478 echo "exit 0" >>conf$$.sh
17480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17488 if test "$GCC" = yes; then
17489 # Check if gcc -print-prog-name=ld gives a path.
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17491 $as_echo_n "checking for ld used by GCC... " >&6; }
17494 # gcc leaves a trailing carriage return which upsets mingw
17495 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17497 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17500 # Accept absolute paths.
17501 [\\/]* | [A-Za-z]:[\\/]*)
17502 re_direlt='/[^/][^/]*/\.\./'
17503 # Canonicalize the path of ld
17504 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17505 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17506 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17508 test -z "$LD" && LD="$ac_prog"
17511 # If it fails, then pretend we aren't using GCC.
17515 # If it is relative, then search for the first ld in PATH.
17516 with_gnu_ld=unknown
17519 elif test "$with_gnu_ld" = yes; then
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17521 $as_echo_n "checking for GNU ld... " >&6; }
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17524 $as_echo_n "checking for non-GNU ld... " >&6; }
17526 if ${acl_cv_path_LD+:} false; then :
17527 $as_echo_n "(cached) " >&6
17529 if test -z "$LD"; then
17530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17531 for ac_dir in $PATH; do
17532 test -z "$ac_dir" && ac_dir=.
17533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17534 acl_cv_path_LD="$ac_dir/$ac_prog"
17535 # Check to see if the program is GNU ld. I'd rather use --version,
17536 # but apparently some GNU ld's only accept -v.
17537 # Break only if it was the GNU/non-GNU ld that we prefer.
17538 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17539 *GNU* | *'with BFD'*)
17540 test "$with_gnu_ld" != no && break ;;
17542 test "$with_gnu_ld" != yes && break ;;
17548 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17552 LD="$acl_cv_path_LD"
17553 if test -n "$LD"; then
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17555 $as_echo "$LD" >&6; }
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 $as_echo "no" >&6; }
17560 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17562 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17563 if ${acl_cv_prog_gnu_ld+:} false; then :
17564 $as_echo_n "(cached) " >&6
17566 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17567 case `$LD -v 2>&1 </dev/null` in
17568 *GNU* | *'with BFD'*)
17569 acl_cv_prog_gnu_ld=yes ;;
17571 acl_cv_prog_gnu_ld=no ;;
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17575 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17576 with_gnu_ld=$acl_cv_prog_gnu_ld
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17582 $as_echo_n "checking for shared library run path origin... " >&6; }
17583 if ${acl_cv_rpath+:} false; then :
17584 $as_echo_n "(cached) " >&6
17587 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17588 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17590 rm -f ./conftest.sh
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17595 $as_echo "$acl_cv_rpath" >&6; }
17597 libext="$acl_cv_libext"
17598 shlibext="$acl_cv_shlibext"
17599 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17600 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17601 hardcode_direct="$acl_cv_hardcode_direct"
17602 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17603 # Check whether --enable-rpath was given.
17604 if test "${enable_rpath+set}" = set; then :
17605 enableval=$enable_rpath; :
17619 acl_save_prefix="$prefix"
17620 prefix="$acl_final_prefix"
17621 acl_save_exec_prefix="$exec_prefix"
17622 exec_prefix="$acl_final_exec_prefix"
17624 eval additional_includedir=\"$includedir\"
17625 eval additional_libdir=\"$libdir\"
17627 exec_prefix="$acl_save_exec_prefix"
17628 prefix="$acl_save_prefix"
17631 # Check whether --with-libiconv-prefix was given.
17632 if test "${with_libiconv_prefix+set}" = set; then :
17633 withval=$with_libiconv_prefix;
17634 if test "X$withval" = "Xno"; then
17637 if test "X$withval" = "X"; then
17639 acl_save_prefix="$prefix"
17640 prefix="$acl_final_prefix"
17641 acl_save_exec_prefix="$exec_prefix"
17642 exec_prefix="$acl_final_exec_prefix"
17644 eval additional_includedir=\"$includedir\"
17645 eval additional_libdir=\"$libdir\"
17647 exec_prefix="$acl_save_exec_prefix"
17648 prefix="$acl_save_prefix"
17651 additional_includedir="$withval/include"
17652 additional_libdir="$withval/lib"
17663 names_already_handled=
17664 names_next_round='iconv '
17665 while test -n "$names_next_round"; do
17666 names_this_round="$names_next_round"
17668 for name in $names_this_round; do
17670 for n in $names_already_handled; do
17671 if test "$n" = "$name"; then
17672 already_handled=yes
17676 if test -z "$already_handled"; then
17677 names_already_handled="$names_already_handled $name"
17678 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17679 eval value=\"\$HAVE_LIB$uppername\"
17680 if test -n "$value"; then
17681 if test "$value" = yes; then
17682 eval value=\"\$LIB$uppername\"
17683 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17684 eval value=\"\$LTLIB$uppername\"
17685 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17694 if test $use_additional = yes; then
17695 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17696 found_dir="$additional_libdir"
17697 found_so="$additional_libdir/lib$name.$shlibext"
17698 if test -f "$additional_libdir/lib$name.la"; then
17699 found_la="$additional_libdir/lib$name.la"
17702 if test -f "$additional_libdir/lib$name.$libext"; then
17703 found_dir="$additional_libdir"
17704 found_a="$additional_libdir/lib$name.$libext"
17705 if test -f "$additional_libdir/lib$name.la"; then
17706 found_la="$additional_libdir/lib$name.la"
17711 if test "X$found_dir" = "X"; then
17712 for x in $LDFLAGS $LTLIBICONV; do
17714 acl_save_prefix="$prefix"
17715 prefix="$acl_final_prefix"
17716 acl_save_exec_prefix="$exec_prefix"
17717 exec_prefix="$acl_final_exec_prefix"
17719 exec_prefix="$acl_save_exec_prefix"
17720 prefix="$acl_save_prefix"
17724 dir=`echo "X$x" | sed -e 's/^X-L//'`
17725 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17727 found_so="$dir/lib$name.$shlibext"
17728 if test -f "$dir/lib$name.la"; then
17729 found_la="$dir/lib$name.la"
17732 if test -f "$dir/lib$name.$libext"; then
17734 found_a="$dir/lib$name.$libext"
17735 if test -f "$dir/lib$name.la"; then
17736 found_la="$dir/lib$name.la"
17742 if test "X$found_dir" != "X"; then
17747 if test "X$found_dir" != "X"; then
17748 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17749 if test "X$found_so" != "X"; then
17750 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17751 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17754 for x in $ltrpathdirs; do
17755 if test "X$x" = "X$found_dir"; then
17760 if test -z "$haveit"; then
17761 ltrpathdirs="$ltrpathdirs $found_dir"
17763 if test "$hardcode_direct" = yes; then
17764 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17766 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17767 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17769 for x in $rpathdirs; do
17770 if test "X$x" = "X$found_dir"; then
17775 if test -z "$haveit"; then
17776 rpathdirs="$rpathdirs $found_dir"
17780 for x in $LDFLAGS $LIBICONV; do
17782 acl_save_prefix="$prefix"
17783 prefix="$acl_final_prefix"
17784 acl_save_exec_prefix="$exec_prefix"
17785 exec_prefix="$acl_final_exec_prefix"
17787 exec_prefix="$acl_save_exec_prefix"
17788 prefix="$acl_save_prefix"
17790 if test "X$x" = "X-L$found_dir"; then
17795 if test -z "$haveit"; then
17796 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17798 if test "$hardcode_minus_L" != no; then
17799 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17801 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17807 if test "X$found_a" != "X"; then
17808 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17813 additional_includedir=
17814 case "$found_dir" in
17816 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17817 additional_includedir="$basedir/include"
17820 if test "X$additional_includedir" != "X"; then
17821 if test "X$additional_includedir" != "X/usr/include"; then
17823 if test "X$additional_includedir" = "X/usr/local/include"; then
17824 if test -n "$GCC"; then
17826 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17830 if test -z "$haveit"; then
17831 for x in $CPPFLAGS $INCICONV; do
17833 acl_save_prefix="$prefix"
17834 prefix="$acl_final_prefix"
17835 acl_save_exec_prefix="$exec_prefix"
17836 exec_prefix="$acl_final_exec_prefix"
17838 exec_prefix="$acl_save_exec_prefix"
17839 prefix="$acl_save_prefix"
17841 if test "X$x" = "X-I$additional_includedir"; then
17846 if test -z "$haveit"; then
17847 if test -d "$additional_includedir"; then
17848 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17854 if test -n "$found_la"; then
17855 save_libdir="$libdir"
17856 case "$found_la" in
17857 */* | *\\*) . "$found_la" ;;
17858 *) . "./$found_la" ;;
17860 libdir="$save_libdir"
17861 for dep in $dependency_libs; do
17864 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17865 if test "X$additional_libdir" != "X/usr/lib"; then
17867 if test "X$additional_libdir" = "X/usr/local/lib"; then
17868 if test -n "$GCC"; then
17870 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17874 if test -z "$haveit"; then
17876 for x in $LDFLAGS $LIBICONV; do
17878 acl_save_prefix="$prefix"
17879 prefix="$acl_final_prefix"
17880 acl_save_exec_prefix="$exec_prefix"
17881 exec_prefix="$acl_final_exec_prefix"
17883 exec_prefix="$acl_save_exec_prefix"
17884 prefix="$acl_save_prefix"
17886 if test "X$x" = "X-L$additional_libdir"; then
17891 if test -z "$haveit"; then
17892 if test -d "$additional_libdir"; then
17893 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17897 for x in $LDFLAGS $LTLIBICONV; do
17899 acl_save_prefix="$prefix"
17900 prefix="$acl_final_prefix"
17901 acl_save_exec_prefix="$exec_prefix"
17902 exec_prefix="$acl_final_exec_prefix"
17904 exec_prefix="$acl_save_exec_prefix"
17905 prefix="$acl_save_prefix"
17907 if test "X$x" = "X-L$additional_libdir"; then
17912 if test -z "$haveit"; then
17913 if test -d "$additional_libdir"; then
17914 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17921 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17922 if test "$enable_rpath" != no; then
17924 for x in $rpathdirs; do
17925 if test "X$x" = "X$dir"; then
17930 if test -z "$haveit"; then
17931 rpathdirs="$rpathdirs $dir"
17934 for x in $ltrpathdirs; do
17935 if test "X$x" = "X$dir"; then
17940 if test -z "$haveit"; then
17941 ltrpathdirs="$ltrpathdirs $dir"
17946 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17949 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17952 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17953 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17959 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17960 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17966 if test "X$rpathdirs" != "X"; then
17967 if test -n "$hardcode_libdir_separator"; then
17969 for found_dir in $rpathdirs; do
17970 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17972 acl_save_libdir="$libdir"
17974 eval flag=\"$hardcode_libdir_flag_spec\"
17975 libdir="$acl_save_libdir"
17976 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17978 for found_dir in $rpathdirs; do
17979 acl_save_libdir="$libdir"
17980 libdir="$found_dir"
17981 eval flag=\"$hardcode_libdir_flag_spec\"
17982 libdir="$acl_save_libdir"
17983 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17987 if test "X$ltrpathdirs" != "X"; then
17988 for found_dir in $ltrpathdirs; do
17989 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18011 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18012 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18013 $as_echo_n "(cached) " >&6
18015 gt_save_CPPFLAGS="$CPPFLAGS"
18016 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18017 gt_save_LIBS="$LIBS"
18018 LIBS="$LIBS -framework CoreFoundation"
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h. */
18021 #include <CFPreferences.h>
18025 CFPreferencesCopyAppValue(NULL, NULL)
18030 if ac_fn_c_try_link "$LINENO"; then :
18031 gt_cv_func_CFPreferencesCopyAppValue=yes
18033 gt_cv_func_CFPreferencesCopyAppValue=no
18035 rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18037 CPPFLAGS="$gt_save_CPPFLAGS"
18038 LIBS="$gt_save_LIBS"
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18041 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18042 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18044 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18048 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18049 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18050 $as_echo_n "(cached) " >&6
18052 gt_save_CPPFLAGS="$CPPFLAGS"
18053 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18054 gt_save_LIBS="$LIBS"
18055 LIBS="$LIBS -framework CoreFoundation"
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058 #include <CFLocale.h>
18062 CFLocaleCopyCurrent();
18067 if ac_fn_c_try_link "$LINENO"; then :
18068 gt_cv_func_CFLocaleCopyCurrent=yes
18070 gt_cv_func_CFLocaleCopyCurrent=no
18072 rm -f core conftest.err conftest.$ac_objext \
18073 conftest$ac_exeext conftest.$ac_ext
18074 CPPFLAGS="$gt_save_CPPFLAGS"
18075 LIBS="$gt_save_LIBS"
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18078 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18079 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18081 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18085 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18086 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18093 $as_echo_n "checking whether NLS is requested... " >&6; }
18094 # Check whether --enable-nls was given.
18095 if test "${enable_nls+set}" = set; then :
18096 enableval=$enable_nls; USE_NLS=$enableval
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18102 $as_echo "$USE_NLS" >&6; }
18111 if test "$USE_NLS" = "yes"; then
18112 gt_use_preinstalled_gnugettext=no
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18120 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18121 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18122 $as_echo_n "(cached) " >&6
18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h. */
18126 #include <libintl.h>
18127 extern int _nl_msg_cat_cntr;
18128 extern int *_nl_domain_bindings;
18132 bindtextdomain ("", "");
18133 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18138 if ac_fn_c_try_link "$LINENO"; then :
18139 gt_cv_func_gnugettext1_libc=yes
18141 gt_cv_func_gnugettext1_libc=no
18143 rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18147 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18149 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18155 am_save_CPPFLAGS="$CPPFLAGS"
18157 for element in $INCICONV; do
18159 for x in $CPPFLAGS; do
18161 acl_save_prefix="$prefix"
18162 prefix="$acl_final_prefix"
18163 acl_save_exec_prefix="$exec_prefix"
18164 exec_prefix="$acl_final_exec_prefix"
18166 exec_prefix="$acl_save_exec_prefix"
18167 prefix="$acl_save_prefix"
18169 if test "X$x" = "X$element"; then
18174 if test -z "$haveit"; then
18175 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18181 $as_echo_n "checking for iconv... " >&6; }
18182 if ${am_cv_func_iconv+:} false; then :
18183 $as_echo_n "(cached) " >&6
18186 am_cv_func_iconv="no, consider installing GNU libiconv"
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18190 #include <stdlib.h>
18195 iconv_t cd = iconv_open("","");
18196 iconv(cd,NULL,NULL,NULL,NULL);
18202 if ac_fn_c_try_link "$LINENO"; then :
18203 am_cv_func_iconv=yes
18205 rm -f core conftest.err conftest.$ac_objext \
18206 conftest$ac_exeext conftest.$ac_ext
18207 if test "$am_cv_func_iconv" != yes; then
18208 am_save_LIBS="$LIBS"
18209 LIBS="$LIBS $LIBICONV"
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18212 #include <stdlib.h>
18217 iconv_t cd = iconv_open("","");
18218 iconv(cd,NULL,NULL,NULL,NULL);
18224 if ac_fn_c_try_link "$LINENO"; then :
18225 am_cv_lib_iconv=yes
18226 am_cv_func_iconv=yes
18228 rm -f core conftest.err conftest.$ac_objext \
18229 conftest$ac_exeext conftest.$ac_ext
18230 LIBS="$am_save_LIBS"
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18235 $as_echo "$am_cv_func_iconv" >&6; }
18236 if test "$am_cv_func_iconv" = yes; then
18238 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18241 if test "$am_cv_lib_iconv" = yes; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18243 $as_echo_n "checking how to link with libiconv... " >&6; }
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18245 $as_echo "$LIBICONV" >&6; }
18247 CPPFLAGS="$am_save_CPPFLAGS"
18259 acl_save_prefix="$prefix"
18260 prefix="$acl_final_prefix"
18261 acl_save_exec_prefix="$exec_prefix"
18262 exec_prefix="$acl_final_exec_prefix"
18264 eval additional_includedir=\"$includedir\"
18265 eval additional_libdir=\"$libdir\"
18267 exec_prefix="$acl_save_exec_prefix"
18268 prefix="$acl_save_prefix"
18271 # Check whether --with-libintl-prefix was given.
18272 if test "${with_libintl_prefix+set}" = set; then :
18273 withval=$with_libintl_prefix;
18274 if test "X$withval" = "Xno"; then
18277 if test "X$withval" = "X"; then
18279 acl_save_prefix="$prefix"
18280 prefix="$acl_final_prefix"
18281 acl_save_exec_prefix="$exec_prefix"
18282 exec_prefix="$acl_final_exec_prefix"
18284 eval additional_includedir=\"$includedir\"
18285 eval additional_libdir=\"$libdir\"
18287 exec_prefix="$acl_save_exec_prefix"
18288 prefix="$acl_save_prefix"
18291 additional_includedir="$withval/include"
18292 additional_libdir="$withval/lib"
18303 names_already_handled=
18304 names_next_round='intl '
18305 while test -n "$names_next_round"; do
18306 names_this_round="$names_next_round"
18308 for name in $names_this_round; do
18310 for n in $names_already_handled; do
18311 if test "$n" = "$name"; then
18312 already_handled=yes
18316 if test -z "$already_handled"; then
18317 names_already_handled="$names_already_handled $name"
18318 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18319 eval value=\"\$HAVE_LIB$uppername\"
18320 if test -n "$value"; then
18321 if test "$value" = yes; then
18322 eval value=\"\$LIB$uppername\"
18323 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18324 eval value=\"\$LTLIB$uppername\"
18325 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18334 if test $use_additional = yes; then
18335 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18336 found_dir="$additional_libdir"
18337 found_so="$additional_libdir/lib$name.$shlibext"
18338 if test -f "$additional_libdir/lib$name.la"; then
18339 found_la="$additional_libdir/lib$name.la"
18342 if test -f "$additional_libdir/lib$name.$libext"; then
18343 found_dir="$additional_libdir"
18344 found_a="$additional_libdir/lib$name.$libext"
18345 if test -f "$additional_libdir/lib$name.la"; then
18346 found_la="$additional_libdir/lib$name.la"
18351 if test "X$found_dir" = "X"; then
18352 for x in $LDFLAGS $LTLIBINTL; do
18354 acl_save_prefix="$prefix"
18355 prefix="$acl_final_prefix"
18356 acl_save_exec_prefix="$exec_prefix"
18357 exec_prefix="$acl_final_exec_prefix"
18359 exec_prefix="$acl_save_exec_prefix"
18360 prefix="$acl_save_prefix"
18364 dir=`echo "X$x" | sed -e 's/^X-L//'`
18365 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18367 found_so="$dir/lib$name.$shlibext"
18368 if test -f "$dir/lib$name.la"; then
18369 found_la="$dir/lib$name.la"
18372 if test -f "$dir/lib$name.$libext"; then
18374 found_a="$dir/lib$name.$libext"
18375 if test -f "$dir/lib$name.la"; then
18376 found_la="$dir/lib$name.la"
18382 if test "X$found_dir" != "X"; then
18387 if test "X$found_dir" != "X"; then
18388 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18389 if test "X$found_so" != "X"; then
18390 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18391 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18394 for x in $ltrpathdirs; do
18395 if test "X$x" = "X$found_dir"; then
18400 if test -z "$haveit"; then
18401 ltrpathdirs="$ltrpathdirs $found_dir"
18403 if test "$hardcode_direct" = yes; then
18404 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18406 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18409 for x in $rpathdirs; do
18410 if test "X$x" = "X$found_dir"; then
18415 if test -z "$haveit"; then
18416 rpathdirs="$rpathdirs $found_dir"
18420 for x in $LDFLAGS $LIBINTL; do
18422 acl_save_prefix="$prefix"
18423 prefix="$acl_final_prefix"
18424 acl_save_exec_prefix="$exec_prefix"
18425 exec_prefix="$acl_final_exec_prefix"
18427 exec_prefix="$acl_save_exec_prefix"
18428 prefix="$acl_save_prefix"
18430 if test "X$x" = "X-L$found_dir"; then
18435 if test -z "$haveit"; then
18436 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18438 if test "$hardcode_minus_L" != no; then
18439 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18441 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18447 if test "X$found_a" != "X"; then
18448 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18450 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18453 additional_includedir=
18454 case "$found_dir" in
18456 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18457 additional_includedir="$basedir/include"
18460 if test "X$additional_includedir" != "X"; then
18461 if test "X$additional_includedir" != "X/usr/include"; then
18463 if test "X$additional_includedir" = "X/usr/local/include"; then
18464 if test -n "$GCC"; then
18466 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18470 if test -z "$haveit"; then
18471 for x in $CPPFLAGS $INCINTL; do
18473 acl_save_prefix="$prefix"
18474 prefix="$acl_final_prefix"
18475 acl_save_exec_prefix="$exec_prefix"
18476 exec_prefix="$acl_final_exec_prefix"
18478 exec_prefix="$acl_save_exec_prefix"
18479 prefix="$acl_save_prefix"
18481 if test "X$x" = "X-I$additional_includedir"; then
18486 if test -z "$haveit"; then
18487 if test -d "$additional_includedir"; then
18488 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18494 if test -n "$found_la"; then
18495 save_libdir="$libdir"
18496 case "$found_la" in
18497 */* | *\\*) . "$found_la" ;;
18498 *) . "./$found_la" ;;
18500 libdir="$save_libdir"
18501 for dep in $dependency_libs; do
18504 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18505 if test "X$additional_libdir" != "X/usr/lib"; then
18507 if test "X$additional_libdir" = "X/usr/local/lib"; then
18508 if test -n "$GCC"; then
18510 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18514 if test -z "$haveit"; then
18516 for x in $LDFLAGS $LIBINTL; do
18518 acl_save_prefix="$prefix"
18519 prefix="$acl_final_prefix"
18520 acl_save_exec_prefix="$exec_prefix"
18521 exec_prefix="$acl_final_exec_prefix"
18523 exec_prefix="$acl_save_exec_prefix"
18524 prefix="$acl_save_prefix"
18526 if test "X$x" = "X-L$additional_libdir"; then
18531 if test -z "$haveit"; then
18532 if test -d "$additional_libdir"; then
18533 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18537 for x in $LDFLAGS $LTLIBINTL; do
18539 acl_save_prefix="$prefix"
18540 prefix="$acl_final_prefix"
18541 acl_save_exec_prefix="$exec_prefix"
18542 exec_prefix="$acl_final_exec_prefix"
18544 exec_prefix="$acl_save_exec_prefix"
18545 prefix="$acl_save_prefix"
18547 if test "X$x" = "X-L$additional_libdir"; then
18552 if test -z "$haveit"; then
18553 if test -d "$additional_libdir"; then
18554 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18561 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18562 if test "$enable_rpath" != no; then
18564 for x in $rpathdirs; do
18565 if test "X$x" = "X$dir"; then
18570 if test -z "$haveit"; then
18571 rpathdirs="$rpathdirs $dir"
18574 for x in $ltrpathdirs; do
18575 if test "X$x" = "X$dir"; then
18580 if test -z "$haveit"; then
18581 ltrpathdirs="$ltrpathdirs $dir"
18586 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18589 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18592 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18593 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18599 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18600 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18606 if test "X$rpathdirs" != "X"; then
18607 if test -n "$hardcode_libdir_separator"; then
18609 for found_dir in $rpathdirs; do
18610 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18612 acl_save_libdir="$libdir"
18614 eval flag=\"$hardcode_libdir_flag_spec\"
18615 libdir="$acl_save_libdir"
18616 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18618 for found_dir in $rpathdirs; do
18619 acl_save_libdir="$libdir"
18620 libdir="$found_dir"
18621 eval flag=\"$hardcode_libdir_flag_spec\"
18622 libdir="$acl_save_libdir"
18623 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18627 if test "X$ltrpathdirs" != "X"; then
18628 for found_dir in $ltrpathdirs; do
18629 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18634 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18635 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18636 $as_echo_n "(cached) " >&6
18638 gt_save_CPPFLAGS="$CPPFLAGS"
18639 CPPFLAGS="$CPPFLAGS $INCINTL"
18640 gt_save_LIBS="$LIBS"
18641 LIBS="$LIBS $LIBINTL"
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18644 #include <libintl.h>
18645 extern int _nl_msg_cat_cntr;
18650 const char *_nl_expand_alias (const char *);
18654 bindtextdomain ("", "");
18655 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18660 if ac_fn_c_try_link "$LINENO"; then :
18661 gt_cv_func_gnugettext1_libintl=yes
18663 gt_cv_func_gnugettext1_libintl=no
18665 rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18667 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18668 LIBS="$LIBS $LIBICONV"
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18671 #include <libintl.h>
18672 extern int _nl_msg_cat_cntr;
18677 const char *_nl_expand_alias (const char *);
18681 bindtextdomain ("", "");
18682 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18687 if ac_fn_c_try_link "$LINENO"; then :
18688 LIBINTL="$LIBINTL $LIBICONV"
18689 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18690 gt_cv_func_gnugettext1_libintl=yes
18693 rm -f core conftest.err conftest.$ac_objext \
18694 conftest$ac_exeext conftest.$ac_ext
18696 CPPFLAGS="$gt_save_CPPFLAGS"
18697 LIBS="$gt_save_LIBS"
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18700 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18703 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18704 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18705 && test "$PACKAGE" != gettext-runtime \
18706 && test "$PACKAGE" != gettext-tools; }; then
18707 gt_use_preinstalled_gnugettext=yes
18716 if test -n "$INTL_MACOSX_LIBS"; then
18717 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18718 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18719 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18720 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18724 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18725 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18727 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18735 $as_echo_n "checking whether to use NLS... " >&6; }
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18737 $as_echo "$USE_NLS" >&6; }
18738 if test "$USE_NLS" = "yes"; then
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18740 $as_echo_n "checking where the gettext function comes from... " >&6; }
18741 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18742 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18743 gt_source="external libintl"
18748 gt_source="included intl directory"
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18751 $as_echo "$gt_source" >&6; }
18754 if test "$USE_NLS" = "yes"; then
18756 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18757 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18759 $as_echo_n "checking how to link with libintl... " >&6; }
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18761 $as_echo "$LIBINTL" >&6; }
18763 for element in $INCINTL; do
18765 for x in $CPPFLAGS; do
18767 acl_save_prefix="$prefix"
18768 prefix="$acl_final_prefix"
18769 acl_save_exec_prefix="$exec_prefix"
18770 exec_prefix="$acl_final_exec_prefix"
18772 exec_prefix="$acl_save_exec_prefix"
18773 prefix="$acl_save_prefix"
18775 if test "X$x" = "X$element"; then
18780 if test -z "$haveit"; then
18781 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18788 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18791 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18800 INTLLIBS="$LIBINTL"
18808 os_name=`uname -s 2>/dev/null`
18809 if test x${prefix} = xNONE ; then
18810 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18811 sysconfdir=/etc/bacula
18814 if test `eval echo ${libdir}` = NONE/lib ; then
18817 os_processor=`uname -p 2>/dev/null`
18818 case ${os_processor} in
18833 if test `eval echo ${includedir}` = NONE/include ; then
18834 includedir=/usr/include
18837 if test `eval echo ${datarootdir}` = NONE/share ; then
18838 datarootdir=/usr/share
18843 if test x${exec_prefix} = xNONE ; then
18844 exec_prefix=${prefix}
18847 sysconfdir=`eval echo ${sysconfdir}`
18848 datarootdir=`eval echo ${datarootdir}`
18849 docdir=`eval echo ${docdir}`
18850 htmldir=`eval echo ${htmldir}`
18851 libdir=`eval echo ${libdir}`
18852 includedir=`eval echo ${includedir}`
18853 localedir=`eval echo ${datarootdir}/locale`
18854 cat >>confdefs.h <<_ACEOF
18855 #define SYSCONFDIR "$sysconfdir"
18858 cat >>confdefs.h <<_ACEOF
18859 #define LOCALEDIR "$localedir"
18863 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18864 sbindir=${exec_prefix}/sbin
18866 sbindir=`eval echo ${sbindir}`
18868 if test x$mandir = x'${prefix}/man' ; then
18869 mandir=/usr/share/man
18872 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18873 htmldir=`eval echo ${docdir}html`
18876 if test x$docdir = x'/usr/share/doc/' ; then
18877 docdir=`eval echo ${docdir}bacula`
18881 for ac_prog in msgfmt
18883 # Extract the first word of "$ac_prog", so it can be a program name with args.
18884 set dummy $ac_prog; ac_word=$2
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18886 $as_echo_n "checking for $ac_word... " >&6; }
18887 if ${ac_cv_path_MSGFMT+:} false; then :
18888 $as_echo_n "(cached) " >&6
18892 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896 for as_dir in $PATH
18899 test -z "$as_dir" && as_dir=.
18900 for ac_exec_ext in '' $ac_executable_extensions; do
18901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18902 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18913 MSGFMT=$ac_cv_path_MSGFMT
18914 if test -n "$MSGFMT"; then
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18916 $as_echo "$MSGFMT" >&6; }
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18919 $as_echo "no" >&6; }
18923 test -n "$MSGFMT" && break
18925 test -n "$MSGFMT" || MSGFMT="no"
18927 if test "$MSGFMT" = "no"
18929 echo 'msgfmt program not found, disabling NLS !'
18931 USE_INCLUDED_LIBINTL=no
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18935 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18936 if ${ac_cv_gnu_library_2+:} false; then :
18937 $as_echo_n "(cached) " >&6
18939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h. */
18942 #include <features.h>
18943 #ifdef __GNU_LIBRARY__
18944 #if (__GLIBC__ >= 2)
18950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18951 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18952 ac_cv_gnu_library_2=yes
18954 ac_cv_gnu_library_2=no
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18962 $as_echo "$ac_cv_gnu_library_2" >&6; }
18964 GLIBC2="$ac_cv_gnu_library_2"
18967 if test -n "$ac_tool_prefix"; then
18968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18971 $as_echo_n "checking for $ac_word... " >&6; }
18972 if ${ac_cv_prog_RANLIB+:} false; then :
18973 $as_echo_n "(cached) " >&6
18975 if test -n "$RANLIB"; then
18976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18979 for as_dir in $PATH
18982 test -z "$as_dir" && as_dir=.
18983 for ac_exec_ext in '' $ac_executable_extensions; do
18984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18995 RANLIB=$ac_cv_prog_RANLIB
18996 if test -n "$RANLIB"; then
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18998 $as_echo "$RANLIB" >&6; }
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19001 $as_echo "no" >&6; }
19006 if test -z "$ac_cv_prog_RANLIB"; then
19007 ac_ct_RANLIB=$RANLIB
19008 # Extract the first word of "ranlib", so it can be a program name with args.
19009 set dummy ranlib; ac_word=$2
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19011 $as_echo_n "checking for $ac_word... " >&6; }
19012 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19013 $as_echo_n "(cached) " >&6
19015 if test -n "$ac_ct_RANLIB"; then
19016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19019 for as_dir in $PATH
19022 test -z "$as_dir" && as_dir=.
19023 for ac_exec_ext in '' $ac_executable_extensions; do
19024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19025 ac_cv_prog_ac_ct_RANLIB="ranlib"
19026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19036 if test -n "$ac_ct_RANLIB"; then
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19038 $as_echo "$ac_ct_RANLIB" >&6; }
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19041 $as_echo "no" >&6; }
19044 if test "x$ac_ct_RANLIB" = x; then
19047 case $cross_compiling:$ac_tool_warned in
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19051 ac_tool_warned=yes ;;
19053 RANLIB=$ac_ct_RANLIB
19056 RANLIB="$ac_cv_prog_RANLIB"
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19061 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19062 if ${ac_cv_lib_cposix_strerror+:} false; then :
19063 $as_echo_n "(cached) " >&6
19065 ac_check_lib_save_LIBS=$LIBS
19066 LIBS="-lcposix $LIBS"
19067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h. */
19070 /* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19080 return strerror ();
19085 if ac_fn_c_try_link "$LINENO"; then :
19086 ac_cv_lib_cposix_strerror=yes
19088 ac_cv_lib_cposix_strerror=no
19090 rm -f core conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19095 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19096 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19097 LIBS="$LIBS -lcposix"
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19103 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19104 if ${ac_cv_c_const+:} false; then :
19105 $as_echo_n "(cached) " >&6
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19113 /* FIXME: Include the comments suggested by Paul. */
19114 #ifndef __cplusplus
19115 /* Ultrix mips cc rejects this. */
19116 typedef int charset[2];
19118 /* SunOS 4.1.1 cc rejects this. */
19119 char const *const *pcpcc;
19121 /* NEC SVR4.0.2 mips cc rejects this. */
19122 struct point {int x, y;};
19123 static struct point const zero = {0,0};
19124 /* AIX XL C 1.02.0.0 rejects this.
19125 It does not let you subtract one const X* pointer from another in
19126 an arm of an if-expression whose if-part is not a constant
19128 const char *g = "string";
19129 pcpcc = &g + (g ? g-g : 0);
19130 /* HPUX 7.0 cc rejects these. */
19132 ppc = (char**) pcpcc;
19133 pcpcc = (char const *const *) ppc;
19134 { /* SCO 3.2v4 cc rejects this. */
19136 char const *s = 0 ? (char *) 0 : (char const *) 0;
19141 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19142 int x[] = {25, 17};
19143 const int *foo = &x[0];
19146 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19147 typedef const int *iptr;
19151 { /* AIX XL C 1.02.0.0 rejects this saying
19152 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19153 struct s { int j; const int *ap[3]; };
19154 struct s *b; b->j = 5;
19156 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19157 const int foo = 10;
19158 if (!foo) return 0;
19160 return !cs[0] && !zero.x;
19167 if ac_fn_c_try_compile "$LINENO"; then :
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19175 $as_echo "$ac_cv_c_const" >&6; }
19176 if test $ac_cv_c_const = no; then
19178 $as_echo "#define const /**/" >>confdefs.h
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19184 $as_echo_n "checking for signed... " >&6; }
19185 if ${bh_cv_c_signed+:} false; then :
19186 $as_echo_n "(cached) " >&6
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19199 if ac_fn_c_try_compile "$LINENO"; then :
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19207 $as_echo "$bh_cv_c_signed" >&6; }
19208 if test $bh_cv_c_signed = no; then
19210 $as_echo "#define signed /**/" >>confdefs.h
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19215 $as_echo_n "checking for inline... " >&6; }
19216 if ${ac_cv_c_inline+:} false; then :
19217 $as_echo_n "(cached) " >&6
19220 for ac_kw in inline __inline__ __inline; do
19221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222 /* end confdefs.h. */
19223 #ifndef __cplusplus
19225 static $ac_kw foo_t static_foo () {return 0; }
19226 $ac_kw foo_t foo () {return 0; }
19230 if ac_fn_c_try_compile "$LINENO"; then :
19231 ac_cv_c_inline=$ac_kw
19233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19234 test "$ac_cv_c_inline" != no && break
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19239 $as_echo "$ac_cv_c_inline" >&6; }
19241 case $ac_cv_c_inline in
19244 case $ac_cv_c_inline in
19246 *) ac_val=$ac_cv_c_inline;;
19248 cat >>confdefs.h <<_ACEOF
19249 #ifndef __cplusplus
19250 #define inline $ac_val
19256 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19257 if test "x$ac_cv_type_off_t" = xyes; then :
19261 cat >>confdefs.h <<_ACEOF
19262 #define off_t long int
19267 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19268 if test "x$ac_cv_type_size_t" = xyes; then :
19272 cat >>confdefs.h <<_ACEOF
19273 #define size_t unsigned int
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19280 $as_echo_n "checking for long long... " >&6; }
19281 if ${ac_cv_type_long_long+:} false; then :
19282 $as_echo_n "(cached) " >&6
19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h. */
19286 long long ll = 1LL; int i = 63;
19290 long long llmax = (long long) -1;
19291 return ll << i | ll >> i | llmax / ll | llmax % ll;
19296 if ac_fn_c_try_link "$LINENO"; then :
19297 ac_cv_type_long_long=yes
19299 ac_cv_type_long_long=no
19301 rm -f core conftest.err conftest.$ac_objext \
19302 conftest$ac_exeext conftest.$ac_ext
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19305 $as_echo "$ac_cv_type_long_long" >&6; }
19306 if test $ac_cv_type_long_long = yes; then
19308 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19314 $as_echo_n "checking for long double... " >&6; }
19315 if ${gt_cv_c_long_double+:} false; then :
19316 $as_echo_n "(cached) " >&6
19318 if test "$GCC" = yes; then
19319 gt_cv_c_long_double=yes
19321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h. */
19324 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19325 long double foo = 0.0;
19326 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19327 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19337 if ac_fn_c_try_compile "$LINENO"; then :
19338 gt_cv_c_long_double=yes
19340 gt_cv_c_long_double=no
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19346 $as_echo "$gt_cv_c_long_double" >&6; }
19347 if test $gt_cv_c_long_double = yes; then
19349 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19355 $as_echo_n "checking for wchar_t... " >&6; }
19356 if ${gt_cv_c_wchar_t+:} false; then :
19357 $as_echo_n "(cached) " >&6
19359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19361 #include <stddef.h>
19362 wchar_t foo = (wchar_t)'\0';
19371 if ac_fn_c_try_compile "$LINENO"; then :
19372 gt_cv_c_wchar_t=yes
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19379 $as_echo "$gt_cv_c_wchar_t" >&6; }
19380 if test $gt_cv_c_wchar_t = yes; then
19382 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19388 $as_echo_n "checking for wint_t... " >&6; }
19389 if ${gt_cv_c_wint_t+:} false; then :
19390 $as_echo_n "(cached) " >&6
19392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h. */
19395 wint_t foo = (wchar_t)'\0';
19404 if ac_fn_c_try_compile "$LINENO"; then :
19409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19412 $as_echo "$gt_cv_c_wint_t" >&6; }
19413 if test $gt_cv_c_wint_t = yes; then
19415 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19421 $as_echo_n "checking for inttypes.h... " >&6; }
19422 if ${gl_cv_header_inttypes_h+:} false; then :
19423 $as_echo_n "(cached) " >&6
19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19427 #include <sys/types.h>
19428 #include <inttypes.h>
19432 uintmax_t i = (uintmax_t) -1;
19437 if ac_fn_c_try_compile "$LINENO"; then :
19438 gl_cv_header_inttypes_h=yes
19440 gl_cv_header_inttypes_h=no
19442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19445 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19446 if test $gl_cv_header_inttypes_h = yes; then
19448 cat >>confdefs.h <<_ACEOF
19449 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19456 $as_echo_n "checking for stdint.h... " >&6; }
19457 if ${gl_cv_header_stdint_h+:} false; then :
19458 $as_echo_n "(cached) " >&6
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462 #include <sys/types.h>
19463 #include <stdint.h>
19467 uintmax_t i = (uintmax_t) -1;
19472 if ac_fn_c_try_compile "$LINENO"; then :
19473 gl_cv_header_stdint_h=yes
19475 gl_cv_header_stdint_h=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19480 $as_echo "$gl_cv_header_stdint_h" >&6; }
19481 if test $gl_cv_header_stdint_h = yes; then
19483 cat >>confdefs.h <<_ACEOF
19484 #define HAVE_STDINT_H_WITH_UINTMAX 1
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19493 $as_echo_n "checking for intmax_t... " >&6; }
19494 if ${gt_cv_c_intmax_t+:} false; then :
19495 $as_echo_n "(cached) " >&6
19497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h. */
19500 #include <stddef.h>
19501 #include <stdlib.h>
19502 #if HAVE_STDINT_H_WITH_UINTMAX
19503 #include <stdint.h>
19505 #if HAVE_INTTYPES_H_WITH_UINTMAX
19506 #include <inttypes.h>
19517 if ac_fn_c_try_compile "$LINENO"; then :
19518 gt_cv_c_intmax_t=yes
19520 gt_cv_c_intmax_t=no
19522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19525 $as_echo "$gt_cv_c_intmax_t" >&6; }
19526 if test $gt_cv_c_intmax_t = yes; then
19528 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19535 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19536 if ${gt_cv_func_printf_posix+:} false; then :
19537 $as_echo_n "(cached) " >&6
19540 if test "$cross_compiling" = yes; then :
19542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543 /* end confdefs.h. */
19545 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19551 $EGREP "notposix" >/dev/null 2>&1; then :
19552 gt_cv_func_printf_posix="guessing no"
19554 gt_cv_func_printf_posix="guessing yes"
19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561 /* end confdefs.h. */
19564 #include <string.h>
19565 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19566 dollar expansion (possibly an autoconf bug). */
19567 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19568 static char buf[100];
19571 sprintf (buf, format, 33, 55);
19572 return (strcmp (buf, "55 33") != 0);
19575 if ac_fn_c_try_run "$LINENO"; then :
19576 gt_cv_func_printf_posix=yes
19578 gt_cv_func_printf_posix=no
19580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19581 conftest.$ac_objext conftest.beam conftest.$ac_ext
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19587 $as_echo "$gt_cv_func_printf_posix" >&6; }
19588 case $gt_cv_func_printf_posix in
19591 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19596 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19597 # for constant arguments. Useless!
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19599 $as_echo_n "checking for working alloca.h... " >&6; }
19600 if ${ac_cv_working_alloca_h+:} false; then :
19601 $as_echo_n "(cached) " >&6
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19605 #include <alloca.h>
19609 char *p = (char *) alloca (2 * sizeof (int));
19615 if ac_fn_c_try_link "$LINENO"; then :
19616 ac_cv_working_alloca_h=yes
19618 ac_cv_working_alloca_h=no
19620 rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19624 $as_echo "$ac_cv_working_alloca_h" >&6; }
19625 if test $ac_cv_working_alloca_h = yes; then
19627 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19632 $as_echo_n "checking for alloca... " >&6; }
19633 if ${ac_cv_func_alloca_works+:} false; then :
19634 $as_echo_n "(cached) " >&6
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19639 # define alloca __builtin_alloca
19642 # include <malloc.h>
19643 # define alloca _alloca
19645 # ifdef HAVE_ALLOCA_H
19646 # include <alloca.h>
19651 # ifndef alloca /* predefined by HP cc +Olibcalls */
19652 void *alloca (size_t);
19662 char *p = (char *) alloca (1);
19668 if ac_fn_c_try_link "$LINENO"; then :
19669 ac_cv_func_alloca_works=yes
19671 ac_cv_func_alloca_works=no
19673 rm -f core conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19677 $as_echo "$ac_cv_func_alloca_works" >&6; }
19679 if test $ac_cv_func_alloca_works = yes; then
19681 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19684 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19685 # that cause trouble. Some versions do not even contain alloca or
19686 # contain a buggy version. If you still want to use their alloca,
19687 # use ar to extract alloca.o from them instead of compiling alloca.c.
19689 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19691 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19695 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19696 if ${ac_cv_os_cray+:} false; then :
19697 $as_echo_n "(cached) " >&6
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701 #if defined CRAY && ! defined CRAY2
19708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19709 $EGREP "webecray" >/dev/null 2>&1; then :
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19718 $as_echo "$ac_cv_os_cray" >&6; }
19719 if test $ac_cv_os_cray = yes; then
19720 for ac_func in _getb67 GETB67 getb67; do
19721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19723 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19725 cat >>confdefs.h <<_ACEOF
19726 #define CRAY_STACKSEG_END $ac_func
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19736 $as_echo_n "checking stack direction for C alloca... " >&6; }
19737 if ${ac_cv_c_stack_direction+:} false; then :
19738 $as_echo_n "(cached) " >&6
19740 if test "$cross_compiling" = yes; then :
19741 ac_cv_c_stack_direction=0
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19745 $ac_includes_default
19747 find_stack_direction ()
19749 static char *addr = 0;
19754 return find_stack_direction ();
19757 return (&dummy > addr) ? 1 : -1;
19763 return find_stack_direction () < 0;
19766 if ac_fn_c_try_run "$LINENO"; then :
19767 ac_cv_c_stack_direction=1
19769 ac_cv_c_stack_direction=-1
19771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19772 conftest.$ac_objext conftest.beam conftest.$ac_ext
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19777 $as_echo "$ac_cv_c_stack_direction" >&6; }
19778 cat >>confdefs.h <<_ACEOF
19779 #define STACK_DIRECTION $ac_cv_c_stack_direction
19788 for ac_header in $ac_header_list
19790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19791 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19794 cat >>confdefs.h <<_ACEOF
19795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19809 for ac_func in getpagesize
19811 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19812 if test "x$ac_cv_func_getpagesize" = xyes; then :
19813 cat >>confdefs.h <<_ACEOF
19814 #define HAVE_GETPAGESIZE 1
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19821 $as_echo_n "checking for working mmap... " >&6; }
19822 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19823 $as_echo_n "(cached) " >&6
19825 if test "$cross_compiling" = yes; then :
19826 ac_cv_func_mmap_fixed_mapped=no
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 $ac_includes_default
19831 /* malloc might have been renamed as rpl_malloc. */
19834 /* Thanks to Mike Haertel and Jim Avera for this test.
19835 Here is a matrix of mmap possibilities:
19836 mmap private not fixed
19837 mmap private fixed at somewhere currently unmapped
19838 mmap private fixed at somewhere already mapped
19839 mmap shared not fixed
19840 mmap shared fixed at somewhere currently unmapped
19841 mmap shared fixed at somewhere already mapped
19842 For private mappings, we should verify that changes cannot be read()
19843 back from the file, nor mmap's back from the file at a different
19844 address. (There have been systems where private was not correctly
19845 implemented like the infamous i386 svr4.0, and systems where the
19846 VM page cache was not coherent with the file system buffer cache
19847 like early versions of FreeBSD and possibly contemporary NetBSD.)
19848 For shared mappings, we should conversely verify that changes get
19849 propagated back to all the places they're supposed to be.
19851 Grep wants private fixed already mapped.
19852 The main things grep needs to know about mmap are:
19853 * does it exist and is it safe to write into the mmap'd area
19854 * how to use it (BSD variants) */
19857 #include <sys/mman.h>
19859 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19863 /* This mess was copied from the GNU getpagesize.h. */
19864 #ifndef HAVE_GETPAGESIZE
19865 # ifdef _SC_PAGESIZE
19866 # define getpagesize() sysconf(_SC_PAGESIZE)
19867 # else /* no _SC_PAGESIZE */
19868 # ifdef HAVE_SYS_PARAM_H
19869 # include <sys/param.h>
19870 # ifdef EXEC_PAGESIZE
19871 # define getpagesize() EXEC_PAGESIZE
19872 # else /* no EXEC_PAGESIZE */
19874 # define getpagesize() NBPG * CLSIZE
19877 # endif /* no CLSIZE */
19878 # else /* no NBPG */
19880 # define getpagesize() NBPC
19881 # else /* no NBPC */
19883 # define getpagesize() PAGESIZE
19884 # endif /* PAGESIZE */
19885 # endif /* no NBPC */
19886 # endif /* no NBPG */
19887 # endif /* no EXEC_PAGESIZE */
19888 # else /* no HAVE_SYS_PARAM_H */
19889 # define getpagesize() 8192 /* punt totally */
19890 # endif /* no HAVE_SYS_PARAM_H */
19891 # endif /* no _SC_PAGESIZE */
19893 #endif /* no HAVE_GETPAGESIZE */
19898 char *data, *data2, *data3;
19899 const char *cdata2;
19903 pagesize = getpagesize ();
19905 /* First, make a file with some known garbage in it. */
19906 data = (char *) malloc (pagesize);
19909 for (i = 0; i < pagesize; ++i)
19910 *(data + i) = rand ();
19912 fd = creat ("conftest.mmap", 0600);
19915 if (write (fd, data, pagesize) != pagesize)
19919 /* Next, check that the tail of a page is zero-filled. File must have
19920 non-zero length, otherwise we risk SIGBUS for entire page. */
19921 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19925 if (write (fd2, cdata2, 1) != 1)
19927 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19928 if (data2 == MAP_FAILED)
19930 for (i = 0; i < pagesize; ++i)
19934 if (munmap (data2, pagesize))
19937 /* Next, try to mmap the file at a fixed address which already has
19938 something else allocated at it. If we can, also make sure that
19939 we see the same garbage. */
19940 fd = open ("conftest.mmap", O_RDWR);
19943 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19944 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19946 for (i = 0; i < pagesize; ++i)
19947 if (*(data + i) != *(data2 + i))
19950 /* Finally, make sure that changes to the mapped area do not
19951 percolate back to the file as seen by read(). (This is a bug on
19952 some variants of i386 svr4.0.) */
19953 for (i = 0; i < pagesize; ++i)
19954 *(data2 + i) = *(data2 + i) + 1;
19955 data3 = (char *) malloc (pagesize);
19958 if (read (fd, data3, pagesize) != pagesize)
19960 for (i = 0; i < pagesize; ++i)
19961 if (*(data + i) != *(data3 + i))
19967 if ac_fn_c_try_run "$LINENO"; then :
19968 ac_cv_func_mmap_fixed_mapped=yes
19970 ac_cv_func_mmap_fixed_mapped=no
19972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19973 conftest.$ac_objext conftest.beam conftest.$ac_ext
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19978 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19979 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19981 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19984 rm -f conftest.mmap conftest.txt
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19988 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19989 if ${ac_cv_gnu_library_2_1+:} false; then :
19990 $as_echo_n "(cached) " >&6
19992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19993 /* end confdefs.h. */
19995 #include <features.h>
19996 #ifdef __GNU_LIBRARY__
19997 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20004 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20005 ac_cv_gnu_library_2_1=yes
20007 ac_cv_gnu_library_2_1=no
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20015 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20017 GLIBC21="$ac_cv_gnu_library_2_1"
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20023 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20024 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20025 $as_echo_n "(cached) " >&6
20028 if test "$cross_compiling" = yes; then :
20030 # Guess based on the CPU.
20031 case "$host_cpu" in
20032 alpha* | i3456786 | m68k | s390*)
20033 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20035 gt_cv_int_divbyzero_sigfpe="guessing no";;
20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20042 #include <stdlib.h>
20043 #include <signal.h>
20047 sigfpe_handler (int sig)
20049 sigfpe_handler (sig) int sig;
20052 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20053 exit (sig != SIGFPE);
20063 signal (SIGFPE, sigfpe_handler);
20064 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20065 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20066 signal (SIGTRAP, sigfpe_handler);
20068 /* Linux/SPARC yields signal SIGILL. */
20069 #if defined (__sparc__) && defined (__linux__)
20070 signal (SIGILL, sigfpe_handler);
20079 if ac_fn_c_try_run "$LINENO"; then :
20080 gt_cv_int_divbyzero_sigfpe=yes
20082 gt_cv_int_divbyzero_sigfpe=no
20084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20085 conftest.$ac_objext conftest.beam conftest.$ac_ext
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20091 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20092 case "$gt_cv_int_divbyzero_sigfpe" in
20097 cat >>confdefs.h <<_ACEOF
20098 #define INTDIV0_RAISES_SIGFPE $value
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20104 $as_echo_n "checking for unsigned long long... " >&6; }
20105 if ${ac_cv_type_unsigned_long_long+:} false; then :
20106 $as_echo_n "(cached) " >&6
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20110 unsigned long long ull = 1ULL; int i = 63;
20114 unsigned long long ullmax = (unsigned long long) -1;
20115 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20120 if ac_fn_c_try_link "$LINENO"; then :
20121 ac_cv_type_unsigned_long_long=yes
20123 ac_cv_type_unsigned_long_long=no
20125 rm -f core conftest.err conftest.$ac_objext \
20126 conftest$ac_exeext conftest.$ac_ext
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20129 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20130 if test $ac_cv_type_unsigned_long_long = yes; then
20132 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20139 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20141 test $ac_cv_type_unsigned_long_long = yes \
20142 && ac_type='unsigned long long' \
20143 || ac_type='unsigned long'
20145 cat >>confdefs.h <<_ACEOF
20146 #define uintmax_t $ac_type
20151 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20157 $as_echo_n "checking for inttypes.h... " >&6; }
20158 if ${gt_cv_header_inttypes_h+:} false; then :
20159 $as_echo_n "(cached) " >&6
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h. */
20164 #include <sys/types.h>
20165 #include <inttypes.h>
20174 if ac_fn_c_try_compile "$LINENO"; then :
20175 gt_cv_header_inttypes_h=yes
20177 gt_cv_header_inttypes_h=no
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20183 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20184 if test $gt_cv_header_inttypes_h = yes; then
20186 cat >>confdefs.h <<_ACEOF
20187 #define HAVE_INTTYPES_H 1
20194 if test $gt_cv_header_inttypes_h = yes; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20196 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20197 if ${gt_cv_inttypes_pri_broken+:} false; then :
20198 $as_echo_n "(cached) " >&6
20201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h. */
20203 #include <inttypes.h>
20216 if ac_fn_c_try_compile "$LINENO"; then :
20217 gt_cv_inttypes_pri_broken=no
20219 gt_cv_inttypes_pri_broken=yes
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20225 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20227 if test "$gt_cv_inttypes_pri_broken" = yes; then
20229 cat >>confdefs.h <<_ACEOF
20230 #define PRI_MACROS_BROKEN 1
20236 for ac_header in stdint.h
20238 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20239 if test "x$ac_cv_header_stdint_h" = xyes; then :
20240 cat >>confdefs.h <<_ACEOF
20241 #define HAVE_STDINT_H 1
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20249 $as_echo_n "checking for SIZE_MAX... " >&6; }
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h. */
20254 #include <limits.h>
20256 #include <stdint.h>
20263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20264 $EGREP "Found it" >/dev/null 2>&1; then :
20269 if test -z "$result"; then
20270 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20277 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20284 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20291 if test "$fits_in_uint" = 1; then
20292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20293 /* end confdefs.h. */
20294 #include <stddef.h>
20296 extern unsigned long foo;
20306 if ac_fn_c_try_compile "$LINENO"; then :
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20311 if test -z "$result"; then
20312 if test "$fits_in_uint" = 1; then
20313 result="$res_hi$res_lo"U
20315 result="$res_hi$res_lo"UL
20318 result='~(size_t)0'
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20322 $as_echo "$result" >&6; }
20323 if test "$result" != yes; then
20325 cat >>confdefs.h <<_ACEOF
20326 #define SIZE_MAX $result
20334 for ac_header in stdint.h
20336 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20337 if test "x$ac_cv_header_stdint_h" = xyes; then :
20338 cat >>confdefs.h <<_ACEOF
20339 #define HAVE_STDINT_H 1
20353 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20354 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20358 $as_echo "#define ptrdiff_t long" >>confdefs.h
20363 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20364 stdlib.h string.h unistd.h sys/param.h
20366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20367 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20369 cat >>confdefs.h <<_ACEOF
20370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20377 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20378 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20379 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20384 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20385 cat >>confdefs.h <<_ACEOF
20386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20395 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20396 if ${ac_cv_have_decl__snprintf+:} false; then :
20397 $as_echo_n "(cached) " >&6
20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h. */
20407 char *p = (char *) _snprintf;
20414 if ac_fn_c_try_compile "$LINENO"; then :
20415 ac_cv_have_decl__snprintf=yes
20417 ac_cv_have_decl__snprintf=no
20419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20422 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20423 if test $ac_cv_have_decl__snprintf = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define HAVE_DECL__SNPRINTF $gt_value
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20436 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20437 if ${ac_cv_have_decl__snwprintf+:} false; then :
20438 $as_echo_n "(cached) " >&6
20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h. */
20448 char *p = (char *) _snwprintf;
20455 if ac_fn_c_try_compile "$LINENO"; then :
20456 ac_cv_have_decl__snwprintf=yes
20458 ac_cv_have_decl__snwprintf=no
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20463 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20464 if test $ac_cv_have_decl__snwprintf = yes; then
20470 cat >>confdefs.h <<_ACEOF
20471 #define HAVE_DECL__SNWPRINTF $gt_value
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20478 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20479 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20480 $as_echo_n "(cached) " >&6
20482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20489 #ifndef feof_unlocked
20490 char *p = (char *) feof_unlocked;
20497 if ac_fn_c_try_compile "$LINENO"; then :
20498 ac_cv_have_decl_feof_unlocked=yes
20500 ac_cv_have_decl_feof_unlocked=no
20502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20505 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20506 if test $ac_cv_have_decl_feof_unlocked = yes; then
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20519 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20520 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20521 $as_echo_n "(cached) " >&6
20523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20524 /* end confdefs.h. */
20530 #ifndef fgets_unlocked
20531 char *p = (char *) fgets_unlocked;
20538 if ac_fn_c_try_compile "$LINENO"; then :
20539 ac_cv_have_decl_fgets_unlocked=yes
20541 ac_cv_have_decl_fgets_unlocked=no
20543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20546 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20547 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20553 cat >>confdefs.h <<_ACEOF
20554 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20560 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20561 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20562 $as_echo_n "(cached) " >&6
20564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h. */
20571 #ifndef getc_unlocked
20572 char *p = (char *) getc_unlocked;
20579 if ac_fn_c_try_compile "$LINENO"; then :
20580 ac_cv_have_decl_getc_unlocked=yes
20582 ac_cv_have_decl_getc_unlocked=no
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20587 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20588 if test $ac_cv_have_decl_getc_unlocked = yes; then
20594 cat >>confdefs.h <<_ACEOF
20595 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20600 case $gt_cv_func_printf_posix in
20601 *yes) HAVE_POSIX_PRINTF=1 ;;
20602 *) HAVE_POSIX_PRINTF=0 ;;
20605 if test "$ac_cv_func_asprintf" = yes; then
20611 if test "$ac_cv_func_snprintf" = yes; then
20617 if test "$ac_cv_func_wprintf" = yes; then
20629 am_save_CPPFLAGS="$CPPFLAGS"
20631 for element in $INCICONV; do
20633 for x in $CPPFLAGS; do
20635 acl_save_prefix="$prefix"
20636 prefix="$acl_final_prefix"
20637 acl_save_exec_prefix="$exec_prefix"
20638 exec_prefix="$acl_final_exec_prefix"
20640 exec_prefix="$acl_save_exec_prefix"
20641 prefix="$acl_save_prefix"
20643 if test "X$x" = "X$element"; then
20648 if test -z "$haveit"; then
20649 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20655 $as_echo_n "checking for iconv... " >&6; }
20656 if ${am_cv_func_iconv+:} false; then :
20657 $as_echo_n "(cached) " >&6
20660 am_cv_func_iconv="no, consider installing GNU libiconv"
20662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663 /* end confdefs.h. */
20664 #include <stdlib.h>
20669 iconv_t cd = iconv_open("","");
20670 iconv(cd,NULL,NULL,NULL,NULL);
20676 if ac_fn_c_try_link "$LINENO"; then :
20677 am_cv_func_iconv=yes
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 if test "$am_cv_func_iconv" != yes; then
20682 am_save_LIBS="$LIBS"
20683 LIBS="$LIBS $LIBICONV"
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20686 #include <stdlib.h>
20691 iconv_t cd = iconv_open("","");
20692 iconv(cd,NULL,NULL,NULL,NULL);
20698 if ac_fn_c_try_link "$LINENO"; then :
20699 am_cv_lib_iconv=yes
20700 am_cv_func_iconv=yes
20702 rm -f core conftest.err conftest.$ac_objext \
20703 conftest$ac_exeext conftest.$ac_ext
20704 LIBS="$am_save_LIBS"
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20709 $as_echo "$am_cv_func_iconv" >&6; }
20710 if test "$am_cv_func_iconv" = yes; then
20712 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20715 if test "$am_cv_lib_iconv" = yes; then
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20717 $as_echo_n "checking how to link with libiconv... " >&6; }
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20719 $as_echo "$LIBICONV" >&6; }
20721 CPPFLAGS="$am_save_CPPFLAGS"
20728 if test "$am_cv_func_iconv" = yes; then
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20730 $as_echo_n "checking for iconv declaration... " >&6; }
20731 if ${am_cv_proto_iconv+:} false; then :
20732 $as_echo_n "(cached) " >&6
20735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h. */
20738 #include <stdlib.h>
20744 #if defined(__STDC__) || defined(__cplusplus)
20745 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20758 if ac_fn_c_try_compile "$LINENO"; then :
20759 am_cv_proto_iconv_arg1=""
20761 am_cv_proto_iconv_arg1="const"
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20764 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);"
20767 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20769 }$am_cv_proto_iconv" >&5
20771 }$am_cv_proto_iconv" >&6; }
20773 cat >>confdefs.h <<_ACEOF
20774 #define ICONV_CONST $am_cv_proto_iconv_arg1
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20781 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20782 if ${am_cv_langinfo_codeset+:} false; then :
20783 $as_echo_n "(cached) " >&6
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20787 #include <langinfo.h>
20791 char* cs = nl_langinfo(CODESET);
20796 if ac_fn_c_try_link "$LINENO"; then :
20797 am_cv_langinfo_codeset=yes
20799 am_cv_langinfo_codeset=no
20801 rm -f core conftest.err conftest.$ac_objext \
20802 conftest$ac_exeext conftest.$ac_ext
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20806 $as_echo "$am_cv_langinfo_codeset" >&6; }
20807 if test $am_cv_langinfo_codeset = yes; then
20809 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20813 if test $ac_cv_header_locale_h = yes; then
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20816 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20817 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20818 $as_echo_n "(cached) " >&6
20820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h. */
20822 #include <locale.h>
20831 if ac_fn_c_try_link "$LINENO"; then :
20832 gt_cv_val_LC_MESSAGES=yes
20834 gt_cv_val_LC_MESSAGES=no
20836 rm -f core conftest.err conftest.$ac_objext \
20837 conftest$ac_exeext conftest.$ac_ext
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20840 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20841 if test $gt_cv_val_LC_MESSAGES = yes; then
20843 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20849 if test -n "$INTL_MACOSX_LIBS"; then
20850 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20853 for ac_prog in bison
20855 # Extract the first word of "$ac_prog", so it can be a program name with args.
20856 set dummy $ac_prog; ac_word=$2
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20858 $as_echo_n "checking for $ac_word... " >&6; }
20859 if ${ac_cv_prog_INTLBISON+:} false; then :
20860 $as_echo_n "(cached) " >&6
20862 if test -n "$INTLBISON"; then
20863 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20866 for as_dir in $PATH
20869 test -z "$as_dir" && as_dir=.
20870 for ac_exec_ext in '' $ac_executable_extensions; do
20871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20872 ac_cv_prog_INTLBISON="$ac_prog"
20873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20882 INTLBISON=$ac_cv_prog_INTLBISON
20883 if test -n "$INTLBISON"; then
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20885 $as_echo "$INTLBISON" >&6; }
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20888 $as_echo "no" >&6; }
20892 test -n "$INTLBISON" && break
20895 if test -z "$INTLBISON"; then
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20899 $as_echo_n "checking version of bison... " >&6; }
20900 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20901 case $ac_prog_version in
20902 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20903 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20904 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20905 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20908 $as_echo "$ac_prog_version" >&6; }
20910 if test $ac_verc_fail = yes; then
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20930 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20931 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20932 $as_echo_n "(cached) " >&6
20934 gt_save_CPPFLAGS="$CPPFLAGS"
20935 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20936 gt_save_LIBS="$LIBS"
20937 LIBS="$LIBS -framework CoreFoundation"
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h. */
20940 #include <CFPreferences.h>
20944 CFPreferencesCopyAppValue(NULL, NULL)
20949 if ac_fn_c_try_link "$LINENO"; then :
20950 gt_cv_func_CFPreferencesCopyAppValue=yes
20952 gt_cv_func_CFPreferencesCopyAppValue=no
20954 rm -f core conftest.err conftest.$ac_objext \
20955 conftest$ac_exeext conftest.$ac_ext
20956 CPPFLAGS="$gt_save_CPPFLAGS"
20957 LIBS="$gt_save_LIBS"
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20960 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20961 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20963 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20967 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20968 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20969 $as_echo_n "(cached) " >&6
20971 gt_save_CPPFLAGS="$CPPFLAGS"
20972 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20973 gt_save_LIBS="$LIBS"
20974 LIBS="$LIBS -framework CoreFoundation"
20975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h. */
20977 #include <CFLocale.h>
20981 CFLocaleCopyCurrent();
20986 if ac_fn_c_try_link "$LINENO"; then :
20987 gt_cv_func_CFLocaleCopyCurrent=yes
20989 gt_cv_func_CFLocaleCopyCurrent=no
20991 rm -f core conftest.err conftest.$ac_objext \
20992 conftest$ac_exeext conftest.$ac_ext
20993 CPPFLAGS="$gt_save_CPPFLAGS"
20994 LIBS="$gt_save_LIBS"
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20997 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20998 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21000 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21004 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21005 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21012 $as_echo_n "checking whether NLS is requested... " >&6; }
21013 # Check whether --enable-nls was given.
21014 if test "${enable_nls+set}" = set; then :
21015 enableval=$enable_nls; USE_NLS=$enableval
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21021 $as_echo "$USE_NLS" >&6; }
21026 BUILD_INCLUDED_LIBINTL=no
21027 USE_INCLUDED_LIBINTL=no
21033 if test "$USE_NLS" = "yes"; then
21034 gt_use_preinstalled_gnugettext=no
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21037 $as_echo_n "checking whether included gettext is requested... " >&6; }
21039 # Check whether --with-included-gettext was given.
21040 if test "${with_included_gettext+set}" = set; then :
21041 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21043 nls_cv_force_use_gnu_gettext=no
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21047 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21049 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21050 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21058 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21059 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21060 $as_echo_n "(cached) " >&6
21062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h. */
21064 #include <libintl.h>
21065 extern int _nl_msg_cat_cntr;
21066 extern int *_nl_domain_bindings;
21070 bindtextdomain ("", "");
21071 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21076 if ac_fn_c_try_link "$LINENO"; then :
21077 gt_cv_func_gnugettext1_libc=yes
21079 gt_cv_func_gnugettext1_libc=no
21081 rm -f core conftest.err conftest.$ac_objext \
21082 conftest$ac_exeext conftest.$ac_ext
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21085 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21087 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21093 acl_save_prefix="$prefix"
21094 prefix="$acl_final_prefix"
21095 acl_save_exec_prefix="$exec_prefix"
21096 exec_prefix="$acl_final_exec_prefix"
21098 eval additional_includedir=\"$includedir\"
21099 eval additional_libdir=\"$libdir\"
21101 exec_prefix="$acl_save_exec_prefix"
21102 prefix="$acl_save_prefix"
21105 # Check whether --with-libintl-prefix was given.
21106 if test "${with_libintl_prefix+set}" = set; then :
21107 withval=$with_libintl_prefix;
21108 if test "X$withval" = "Xno"; then
21111 if test "X$withval" = "X"; then
21113 acl_save_prefix="$prefix"
21114 prefix="$acl_final_prefix"
21115 acl_save_exec_prefix="$exec_prefix"
21116 exec_prefix="$acl_final_exec_prefix"
21118 eval additional_includedir=\"$includedir\"
21119 eval additional_libdir=\"$libdir\"
21121 exec_prefix="$acl_save_exec_prefix"
21122 prefix="$acl_save_prefix"
21125 additional_includedir="$withval/include"
21126 additional_libdir="$withval/lib"
21137 names_already_handled=
21138 names_next_round='intl '
21139 while test -n "$names_next_round"; do
21140 names_this_round="$names_next_round"
21142 for name in $names_this_round; do
21144 for n in $names_already_handled; do
21145 if test "$n" = "$name"; then
21146 already_handled=yes
21150 if test -z "$already_handled"; then
21151 names_already_handled="$names_already_handled $name"
21152 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21153 eval value=\"\$HAVE_LIB$uppername\"
21154 if test -n "$value"; then
21155 if test "$value" = yes; then
21156 eval value=\"\$LIB$uppername\"
21157 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21158 eval value=\"\$LTLIB$uppername\"
21159 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21168 if test $use_additional = yes; then
21169 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21170 found_dir="$additional_libdir"
21171 found_so="$additional_libdir/lib$name.$shlibext"
21172 if test -f "$additional_libdir/lib$name.la"; then
21173 found_la="$additional_libdir/lib$name.la"
21176 if test -f "$additional_libdir/lib$name.$libext"; then
21177 found_dir="$additional_libdir"
21178 found_a="$additional_libdir/lib$name.$libext"
21179 if test -f "$additional_libdir/lib$name.la"; then
21180 found_la="$additional_libdir/lib$name.la"
21185 if test "X$found_dir" = "X"; then
21186 for x in $LDFLAGS $LTLIBINTL; do
21188 acl_save_prefix="$prefix"
21189 prefix="$acl_final_prefix"
21190 acl_save_exec_prefix="$exec_prefix"
21191 exec_prefix="$acl_final_exec_prefix"
21193 exec_prefix="$acl_save_exec_prefix"
21194 prefix="$acl_save_prefix"
21198 dir=`echo "X$x" | sed -e 's/^X-L//'`
21199 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21201 found_so="$dir/lib$name.$shlibext"
21202 if test -f "$dir/lib$name.la"; then
21203 found_la="$dir/lib$name.la"
21206 if test -f "$dir/lib$name.$libext"; then
21208 found_a="$dir/lib$name.$libext"
21209 if test -f "$dir/lib$name.la"; then
21210 found_la="$dir/lib$name.la"
21216 if test "X$found_dir" != "X"; then
21221 if test "X$found_dir" != "X"; then
21222 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21223 if test "X$found_so" != "X"; then
21224 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21225 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21228 for x in $ltrpathdirs; do
21229 if test "X$x" = "X$found_dir"; then
21234 if test -z "$haveit"; then
21235 ltrpathdirs="$ltrpathdirs $found_dir"
21237 if test "$hardcode_direct" = yes; then
21238 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21240 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21241 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21243 for x in $rpathdirs; do
21244 if test "X$x" = "X$found_dir"; then
21249 if test -z "$haveit"; then
21250 rpathdirs="$rpathdirs $found_dir"
21254 for x in $LDFLAGS $LIBINTL; do
21256 acl_save_prefix="$prefix"
21257 prefix="$acl_final_prefix"
21258 acl_save_exec_prefix="$exec_prefix"
21259 exec_prefix="$acl_final_exec_prefix"
21261 exec_prefix="$acl_save_exec_prefix"
21262 prefix="$acl_save_prefix"
21264 if test "X$x" = "X-L$found_dir"; then
21269 if test -z "$haveit"; then
21270 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21272 if test "$hardcode_minus_L" != no; then
21273 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21275 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21281 if test "X$found_a" != "X"; then
21282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21284 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21287 additional_includedir=
21288 case "$found_dir" in
21290 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21291 additional_includedir="$basedir/include"
21294 if test "X$additional_includedir" != "X"; then
21295 if test "X$additional_includedir" != "X/usr/include"; then
21297 if test "X$additional_includedir" = "X/usr/local/include"; then
21298 if test -n "$GCC"; then
21300 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21304 if test -z "$haveit"; then
21305 for x in $CPPFLAGS $INCINTL; do
21307 acl_save_prefix="$prefix"
21308 prefix="$acl_final_prefix"
21309 acl_save_exec_prefix="$exec_prefix"
21310 exec_prefix="$acl_final_exec_prefix"
21312 exec_prefix="$acl_save_exec_prefix"
21313 prefix="$acl_save_prefix"
21315 if test "X$x" = "X-I$additional_includedir"; then
21320 if test -z "$haveit"; then
21321 if test -d "$additional_includedir"; then
21322 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21328 if test -n "$found_la"; then
21329 save_libdir="$libdir"
21330 case "$found_la" in
21331 */* | *\\*) . "$found_la" ;;
21332 *) . "./$found_la" ;;
21334 libdir="$save_libdir"
21335 for dep in $dependency_libs; do
21338 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21339 if test "X$additional_libdir" != "X/usr/lib"; then
21341 if test "X$additional_libdir" = "X/usr/local/lib"; then
21342 if test -n "$GCC"; then
21344 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21348 if test -z "$haveit"; then
21350 for x in $LDFLAGS $LIBINTL; do
21352 acl_save_prefix="$prefix"
21353 prefix="$acl_final_prefix"
21354 acl_save_exec_prefix="$exec_prefix"
21355 exec_prefix="$acl_final_exec_prefix"
21357 exec_prefix="$acl_save_exec_prefix"
21358 prefix="$acl_save_prefix"
21360 if test "X$x" = "X-L$additional_libdir"; then
21365 if test -z "$haveit"; then
21366 if test -d "$additional_libdir"; then
21367 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21371 for x in $LDFLAGS $LTLIBINTL; do
21373 acl_save_prefix="$prefix"
21374 prefix="$acl_final_prefix"
21375 acl_save_exec_prefix="$exec_prefix"
21376 exec_prefix="$acl_final_exec_prefix"
21378 exec_prefix="$acl_save_exec_prefix"
21379 prefix="$acl_save_prefix"
21381 if test "X$x" = "X-L$additional_libdir"; then
21386 if test -z "$haveit"; then
21387 if test -d "$additional_libdir"; then
21388 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21395 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21396 if test "$enable_rpath" != no; then
21398 for x in $rpathdirs; do
21399 if test "X$x" = "X$dir"; then
21404 if test -z "$haveit"; then
21405 rpathdirs="$rpathdirs $dir"
21408 for x in $ltrpathdirs; do
21409 if test "X$x" = "X$dir"; then
21414 if test -z "$haveit"; then
21415 ltrpathdirs="$ltrpathdirs $dir"
21420 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21423 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21426 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21427 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21433 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21440 if test "X$rpathdirs" != "X"; then
21441 if test -n "$hardcode_libdir_separator"; then
21443 for found_dir in $rpathdirs; do
21444 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21446 acl_save_libdir="$libdir"
21448 eval flag=\"$hardcode_libdir_flag_spec\"
21449 libdir="$acl_save_libdir"
21450 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21452 for found_dir in $rpathdirs; do
21453 acl_save_libdir="$libdir"
21454 libdir="$found_dir"
21455 eval flag=\"$hardcode_libdir_flag_spec\"
21456 libdir="$acl_save_libdir"
21457 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21461 if test "X$ltrpathdirs" != "X"; then
21462 for found_dir in $ltrpathdirs; do
21463 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21468 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21469 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21470 $as_echo_n "(cached) " >&6
21472 gt_save_CPPFLAGS="$CPPFLAGS"
21473 CPPFLAGS="$CPPFLAGS $INCINTL"
21474 gt_save_LIBS="$LIBS"
21475 LIBS="$LIBS $LIBINTL"
21476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21477 /* end confdefs.h. */
21478 #include <libintl.h>
21479 extern int _nl_msg_cat_cntr;
21484 const char *_nl_expand_alias (const char *);
21488 bindtextdomain ("", "");
21489 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21494 if ac_fn_c_try_link "$LINENO"; then :
21495 gt_cv_func_gnugettext1_libintl=yes
21497 gt_cv_func_gnugettext1_libintl=no
21499 rm -f core conftest.err conftest.$ac_objext \
21500 conftest$ac_exeext conftest.$ac_ext
21501 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21502 LIBS="$LIBS $LIBICONV"
21503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21505 #include <libintl.h>
21506 extern int _nl_msg_cat_cntr;
21511 const char *_nl_expand_alias (const char *);
21515 bindtextdomain ("", "");
21516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21521 if ac_fn_c_try_link "$LINENO"; then :
21522 LIBINTL="$LIBINTL $LIBICONV"
21523 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21524 gt_cv_func_gnugettext1_libintl=yes
21527 rm -f core conftest.err conftest.$ac_objext \
21528 conftest$ac_exeext conftest.$ac_ext
21530 CPPFLAGS="$gt_save_CPPFLAGS"
21531 LIBS="$gt_save_LIBS"
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21534 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21537 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21538 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21539 && test "$PACKAGE" != gettext-runtime \
21540 && test "$PACKAGE" != gettext-tools; }; then
21541 gt_use_preinstalled_gnugettext=yes
21549 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21550 nls_cv_use_gnu_gettext=yes
21554 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21555 BUILD_INCLUDED_LIBINTL=yes
21556 USE_INCLUDED_LIBINTL=yes
21557 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21558 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21559 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21563 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21564 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21569 if test -n "$INTL_MACOSX_LIBS"; then
21570 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21571 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21572 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21573 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21577 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21578 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21580 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21588 $as_echo_n "checking whether to use NLS... " >&6; }
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21590 $as_echo "$USE_NLS" >&6; }
21591 if test "$USE_NLS" = "yes"; then
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21593 $as_echo_n "checking where the gettext function comes from... " >&6; }
21594 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21595 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21596 gt_source="external libintl"
21601 gt_source="included intl directory"
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21604 $as_echo "$gt_source" >&6; }
21607 if test "$USE_NLS" = "yes"; then
21609 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21610 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21612 $as_echo_n "checking how to link with libintl... " >&6; }
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21614 $as_echo "$LIBINTL" >&6; }
21616 for element in $INCINTL; do
21618 for x in $CPPFLAGS; do
21620 acl_save_prefix="$prefix"
21621 prefix="$acl_final_prefix"
21622 acl_save_exec_prefix="$exec_prefix"
21623 exec_prefix="$acl_final_exec_prefix"
21625 exec_prefix="$acl_save_exec_prefix"
21626 prefix="$acl_save_prefix"
21628 if test "X$x" = "X$element"; then
21633 if test -z "$haveit"; then
21634 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21641 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21644 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21652 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21653 BUILD_INCLUDED_LIBINTL=yes
21660 nls_cv_header_intl=
21661 nls_cv_header_libgt=
21673 if test "$USE_INCLUDED_LIBINTL" = yes; then
21674 INTLOBJS="\$(GETTOBJS)"
21678 INTL_LIBTOOL_SUFFIX_PREFIX=
21682 INTLLIBS="$LIBINTL"
21691 support_smartalloc=yes
21692 support_readline=yes
21698 support_static_tools=no
21699 support_static_fd=no
21700 support_static_sd=no
21701 support_static_dir=no
21702 support_static_cons=no
21703 build_client_only=no
21707 batch_insert_db_backends=""
21711 # Check whether --enable-bat was given.
21712 if test "${enable_bat+set}" = set; then :
21713 enableval=$enable_bat;
21714 if test x$enableval = xyes; then
21716 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21726 if test x$support_bat = xyes; then
21727 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21729 if test $pkg = 0; then
21730 BAT_DIR=src/qt-console
21732 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21751 # Check whether --enable-smartalloc was given.
21752 if test "${enable_smartalloc+set}" = set; then :
21753 enableval=$enable_smartalloc;
21754 if test x$enableval = xno; then
21755 support_smartalloc=no
21762 if test x$support_smartalloc = xyes; then
21764 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21768 # Check whether --enable-lockmgr was given.
21769 if test "${enable_lockmgr+set}" = set; then :
21770 enableval=$enable_lockmgr;
21771 if test x$enableval = xyes; then
21772 support_lockmgr=yes
21779 if test x$support_lockmgr = xyes; then
21781 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21786 # Check whether --enable-static-tools was given.
21787 if test "${enable_static_tools+set}" = set; then :
21788 enableval=$enable_static_tools;
21789 if test x$enableval = xyes; then
21790 if test x$use_libtool = xyes; then
21791 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21792 please rerun configure with --disable-libtool" "$LINENO" 5
21794 support_static_tools=yes
21802 if test x$support_static_tools = xyes; then
21803 TTOOL_LDFLAGS="-static"
21807 # Check whether --enable-static-fd was given.
21808 if test "${enable_static_fd+set}" = set; then :
21809 enableval=$enable_static_fd;
21810 if test x$enableval = xyes; then
21811 if test x$use_libtool = xyes; then
21812 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21813 please rerun configure with --disable-libtool" "$LINENO" 5
21815 support_static_fd=yes
21823 if test x$support_static_fd = xyes; then
21824 STATIC_FD="static-bacula-fd"
21828 # Check whether --enable-static-sd was given.
21829 if test "${enable_static_sd+set}" = set; then :
21830 enableval=$enable_static_sd;
21831 if test x$enableval = xyes; then
21832 if test x$use_libtool = xyes; then
21833 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21834 please rerun configure with --disable-libtool" "$LINENO" 5
21836 support_static_sd=yes
21844 if test x$support_static_sd = xyes; then
21845 STATIC_SD="static-bacula-sd"
21849 # Check whether --enable-static-dir was given.
21850 if test "${enable_static_dir+set}" = set; then :
21851 enableval=$enable_static_dir;
21852 if test x$enableval = xyes; then
21853 if test x$use_libtool = xyes; then
21854 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21855 please rerun configure with --disable-libtool" "$LINENO" 5
21857 support_static_dir=yes
21865 if test x$support_static_dir = xyes; then
21866 STATIC_DIR="static-bacula-dir"
21870 # Check whether --enable-static-cons was given.
21871 if test "${enable_static_cons+set}" = set; then :
21872 enableval=$enable_static_cons;
21873 if test x$enableval = xyes; then
21874 if test x$use_libtool = xyes; then
21875 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21876 please rerun configure with --disable-libtool" "$LINENO" 5
21878 support_static_cons=yes
21886 if test x$support_static_cons = xyes; then
21887 STATIC_CONS="static-bconsole"
21891 # Check whether --enable-client-only was given.
21892 if test "${enable_client_only+set}" = set; then :
21893 enableval=$enable_client_only;
21894 if test x$enableval = xyes; then
21895 build_client_only=yes
21903 if test x$build_client_only = xno; then
21910 # Check whether --enable-build-dird was given.
21911 if test "${enable_build_dird+set}" = set; then :
21912 enableval=$enable_build_dird;
21913 if test x$enableval = xno; then
21920 if test x$build_dird = xyes; then
21921 DIRD_DIR="src/dird"
21922 DIR_TOOLS="DIRTOOLS"
21925 DIR_TOOLS="NODIRTOOLS"
21930 # Check whether --enable-build-stored was given.
21931 if test "${enable_build_stored+set}" = set; then :
21932 enableval=$enable_build_stored;
21933 if test x$enableval = xno; then
21940 if test x$build_stored = xyes; then
21941 STORED_DIR="src/stored"
21947 # Check whether --enable-conio was given.
21948 if test "${enable_conio+set}" = set; then :
21949 enableval=$enable_conio;
21950 if test x$enableval = xno; then
21960 # Check whether --enable-ipv6 was given.
21961 if test "${enable_ipv6+set}" = set; then :
21962 enableval=$enable_ipv6;
21963 if test x$enableval = xno; then
21971 if test x$support_ipv6 = xyes; then
21972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h. */
21974 #include <sys/types.h>
21975 #include <sys/socket.h>
21976 #include <netinet/in.h>
21980 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21985 if ac_fn_c_try_link "$LINENO"; then :
21990 rm -f core conftest.err conftest.$ac_objext \
21991 conftest$ac_exeext conftest.$ac_ext
21994 if test x$support_ipv6 = xyes; then
21996 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22001 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22002 if test "x$ac_cv_header_curses_h" = xyes; then :
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22005 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22006 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22007 $as_echo_n "(cached) " >&6
22009 ac_check_lib_save_LIBS=$LIBS
22010 LIBS="-ltinfo $LIBS"
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h. */
22014 /* Override any GCC internal prototype to avoid an error.
22015 Use char because int might match the return type of a GCC
22016 builtin and then its argument prototype would still apply. */
22029 if ac_fn_c_try_link "$LINENO"; then :
22030 ac_cv_lib_tinfo_tgetent=yes
22032 ac_cv_lib_tinfo_tgetent=no
22034 rm -f core conftest.err conftest.$ac_objext \
22035 conftest$ac_exeext conftest.$ac_ext
22036 LIBS=$ac_check_lib_save_LIBS
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22039 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22040 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22045 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22046 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22047 $as_echo_n "(cached) " >&6
22049 ac_check_lib_save_LIBS=$LIBS
22050 LIBS="-lncurses $LIBS"
22051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h. */
22054 /* Override any GCC internal prototype to avoid an error.
22055 Use char because int might match the return type of a GCC
22056 builtin and then its argument prototype would still apply. */
22069 if ac_fn_c_try_link "$LINENO"; then :
22070 ac_cv_lib_ncurses_tgetent=yes
22072 ac_cv_lib_ncurses_tgetent=no
22074 rm -f core conftest.err conftest.$ac_objext \
22075 conftest$ac_exeext conftest.$ac_ext
22076 LIBS=$ac_check_lib_save_LIBS
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22079 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22080 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22081 TERM_LIB="-lncurses"
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22085 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22086 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22087 $as_echo_n "(cached) " >&6
22089 ac_check_lib_save_LIBS=$LIBS
22090 LIBS="-ltermcap $LIBS"
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22094 /* Override any GCC internal prototype to avoid an error.
22095 Use char because int might match the return type of a GCC
22096 builtin and then its argument prototype would still apply. */
22109 if ac_fn_c_try_link "$LINENO"; then :
22110 ac_cv_lib_termcap_tgetent=yes
22112 ac_cv_lib_termcap_tgetent=no
22114 rm -f core conftest.err conftest.$ac_objext \
22115 conftest$ac_exeext conftest.$ac_ext
22116 LIBS=$ac_check_lib_save_LIBS
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22119 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22120 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22121 TERM_LIB="-ltermcap"
22132 for ac_header in curses.h
22134 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22135 if test "x$ac_cv_header_curses_h" = xyes; then :
22136 cat >>confdefs.h <<_ACEOF
22137 #define HAVE_CURSES_H 1
22144 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22145 if test "x$ac_cv_header_term_h" = xyes; then :
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22147 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22148 if ${ac_cv_lib_curses_tgetent+:} false; then :
22149 $as_echo_n "(cached) " >&6
22151 ac_check_lib_save_LIBS=$LIBS
22152 LIBS="-lcurses $LIBS"
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h. */
22156 /* Override any GCC internal prototype to avoid an error.
22157 Use char because int might match the return type of a GCC
22158 builtin and then its argument prototype would still apply. */
22171 if ac_fn_c_try_link "$LINENO"; then :
22172 ac_cv_lib_curses_tgetent=yes
22174 ac_cv_lib_curses_tgetent=no
22176 rm -f core conftest.err conftest.$ac_objext \
22177 conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22181 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22182 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22183 TERM_LIB="-lcurses"
22197 if test x$support_conio = xyes; then
22198 if test x$TERM_LIB != x; then
22199 CONS_LIBS=$TERM_LIB
22203 support_readline=no
22205 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22208 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22213 # Check whether --enable-readline was given.
22214 if test "${enable_readline+set}" = set; then :
22215 enableval=$enable_readline;
22216 if test x$enableval = xno; then
22217 support_readline=no
22226 if test x$support_readline = xyes; then
22228 # Check whether --with-readline was given.
22229 if test "${with_readline+set}" = set; then :
22230 withval=$with_readline;
22231 case "$with_readline" in
22236 if test -f ${with_readline}/readline.h; then
22237 CONS_INC="-I${with_readline}"
22238 CONS_LDFLAGS="-L$with_readline"
22239 elif test -f ${with_readline}/include/readline/readline.h; then
22240 CONS_INC="-I${with_readline}/include/readline"
22241 CONS_LDFLAGS="-L${with_readline}/lib"
22242 with_readline="${with_readline}/include/readline"
22244 with_readline="/usr/include/readline"
22247 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22248 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22249 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22252 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22254 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22260 echo "readline.h not found. readline turned off ..."
22272 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22273 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22276 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22279 CONS_INC="-I/usr/include/readline"
22280 CONS_LIBS="-lreadline ${TERM_LIB}"
22284 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22285 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22286 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22289 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22292 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22293 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22294 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22295 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22300 echo "readline.h not found. readline turned off ..."
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22328 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22329 if ${ac_cv_header_stat_broken+:} false; then :
22330 $as_echo_n "(cached) " >&6
22332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22333 /* end confdefs.h. */
22334 #include <sys/types.h>
22335 #include <sys/stat.h>
22337 #if defined S_ISBLK && defined S_IFDIR
22338 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22341 #if defined S_ISBLK && defined S_IFCHR
22342 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22345 #if defined S_ISLNK && defined S_IFREG
22346 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22349 #if defined S_ISSOCK && defined S_IFREG
22350 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22354 if ac_fn_c_try_compile "$LINENO"; then :
22355 ac_cv_header_stat_broken=no
22357 ac_cv_header_stat_broken=yes
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22362 $as_echo "$ac_cv_header_stat_broken" >&6; }
22363 if test $ac_cv_header_stat_broken = yes; then
22365 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22369 ac_header_dirent=no
22370 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22371 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22373 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22374 if eval \${$as_ac_Header+:} false; then :
22375 $as_echo_n "(cached) " >&6
22377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22378 /* end confdefs.h. */
22379 #include <sys/types.h>
22391 if ac_fn_c_try_compile "$LINENO"; then :
22392 eval "$as_ac_Header=yes"
22394 eval "$as_ac_Header=no"
22396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398 eval ac_res=\$$as_ac_Header
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22400 $as_echo "$ac_res" >&6; }
22401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22402 cat >>confdefs.h <<_ACEOF
22403 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22406 ac_header_dirent=$ac_hdr; break
22410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22411 if test $ac_header_dirent = dirent.h; then
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22413 $as_echo_n "checking for library containing opendir... " >&6; }
22414 if ${ac_cv_search_opendir+:} false; then :
22415 $as_echo_n "(cached) " >&6
22417 ac_func_search_save_LIBS=$LIBS
22418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22419 /* end confdefs.h. */
22421 /* Override any GCC internal prototype to avoid an error.
22422 Use char because int might match the return type of a GCC
22423 builtin and then its argument prototype would still apply. */
22436 for ac_lib in '' dir; do
22437 if test -z "$ac_lib"; then
22438 ac_res="none required"
22441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22443 if ac_fn_c_try_link "$LINENO"; then :
22444 ac_cv_search_opendir=$ac_res
22446 rm -f core conftest.err conftest.$ac_objext \
22448 if ${ac_cv_search_opendir+:} false; then :
22452 if ${ac_cv_search_opendir+:} false; then :
22455 ac_cv_search_opendir=no
22457 rm conftest.$ac_ext
22458 LIBS=$ac_func_search_save_LIBS
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22461 $as_echo "$ac_cv_search_opendir" >&6; }
22462 ac_res=$ac_cv_search_opendir
22463 if test "$ac_res" != no; then :
22464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22470 $as_echo_n "checking for library containing opendir... " >&6; }
22471 if ${ac_cv_search_opendir+:} false; then :
22472 $as_echo_n "(cached) " >&6
22474 ac_func_search_save_LIBS=$LIBS
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22478 /* Override any GCC internal prototype to avoid an error.
22479 Use char because int might match the return type of a GCC
22480 builtin and then its argument prototype would still apply. */
22493 for ac_lib in '' x; do
22494 if test -z "$ac_lib"; then
22495 ac_res="none required"
22498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22500 if ac_fn_c_try_link "$LINENO"; then :
22501 ac_cv_search_opendir=$ac_res
22503 rm -f core conftest.err conftest.$ac_objext \
22505 if ${ac_cv_search_opendir+:} false; then :
22509 if ${ac_cv_search_opendir+:} false; then :
22512 ac_cv_search_opendir=no
22514 rm conftest.$ac_ext
22515 LIBS=$ac_func_search_save_LIBS
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22518 $as_echo "$ac_cv_search_opendir" >&6; }
22519 ac_res=$ac_cv_search_opendir
22520 if test "$ac_res" != no; then :
22521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22527 for ac_func in strcasecmp select setenv putenv tcgetattr
22529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22530 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22531 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22532 cat >>confdefs.h <<_ACEOF
22533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22539 for ac_func in lstat lchown lchmod futimes fchmod fchown
22541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22544 cat >>confdefs.h <<_ACEOF
22545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22551 for ac_func in nanosleep nl_langinfo
22553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22555 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22556 cat >>confdefs.h <<_ACEOF
22557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22563 for ac_header in varargs.h
22565 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22566 if test "x$ac_cv_header_varargs_h" = xyes; then :
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_VARARGS_H 1
22577 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22578 if test "x$ac_cv_func_socket" = xyes; then :
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22580 $as_echo "using libc's socket" >&6; }
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22583 $as_echo_n "checking for socket in -lxnet... " >&6; }
22584 if ${ac_cv_lib_xnet_socket+:} false; then :
22585 $as_echo_n "(cached) " >&6
22587 ac_check_lib_save_LIBS=$LIBS
22588 LIBS="-lxnet $LIBS"
22589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h. */
22592 /* Override any GCC internal prototype to avoid an error.
22593 Use char because int might match the return type of a GCC
22594 builtin and then its argument prototype would still apply. */
22607 if ac_fn_c_try_link "$LINENO"; then :
22608 ac_cv_lib_xnet_socket=yes
22610 ac_cv_lib_xnet_socket=no
22612 rm -f core conftest.err conftest.$ac_objext \
22613 conftest$ac_exeext conftest.$ac_ext
22614 LIBS=$ac_check_lib_save_LIBS
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22617 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22618 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22619 cat >>confdefs.h <<_ACEOF
22620 #define HAVE_LIBXNET 1
22623 LIBS="-lxnet $LIBS"
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22628 $as_echo_n "checking for socket in -lsocket... " >&6; }
22629 if ${ac_cv_lib_socket_socket+:} false; then :
22630 $as_echo_n "(cached) " >&6
22632 ac_check_lib_save_LIBS=$LIBS
22633 LIBS="-lsocket $LIBS"
22634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22635 /* end confdefs.h. */
22637 /* Override any GCC internal prototype to avoid an error.
22638 Use char because int might match the return type of a GCC
22639 builtin and then its argument prototype would still apply. */
22652 if ac_fn_c_try_link "$LINENO"; then :
22653 ac_cv_lib_socket_socket=yes
22655 ac_cv_lib_socket_socket=no
22657 rm -f core conftest.err conftest.$ac_objext \
22658 conftest$ac_exeext conftest.$ac_ext
22659 LIBS=$ac_check_lib_save_LIBS
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22662 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22663 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22664 cat >>confdefs.h <<_ACEOF
22665 #define HAVE_LIBSOCKET 1
22668 LIBS="-lsocket $LIBS"
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22673 $as_echo_n "checking for socket in -linet... " >&6; }
22674 if ${ac_cv_lib_inet_socket+:} false; then :
22675 $as_echo_n "(cached) " >&6
22677 ac_check_lib_save_LIBS=$LIBS
22678 LIBS="-linet $LIBS"
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22682 /* Override any GCC internal prototype to avoid an error.
22683 Use char because int might match the return type of a GCC
22684 builtin and then its argument prototype would still apply. */
22697 if ac_fn_c_try_link "$LINENO"; then :
22698 ac_cv_lib_inet_socket=yes
22700 ac_cv_lib_inet_socket=no
22702 rm -f core conftest.err conftest.$ac_objext \
22703 conftest$ac_exeext conftest.$ac_ext
22704 LIBS=$ac_check_lib_save_LIBS
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22707 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22708 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22709 cat >>confdefs.h <<_ACEOF
22710 #define HAVE_LIBINET 1
22713 LIBS="-linet $LIBS"
22723 # Check whether --with-tcp-wrappers was given.
22724 if test "${with_tcp_wrappers+set}" = set; then :
22725 withval=$with_tcp_wrappers;
22726 if test "x$withval" != "xno" ; then
22728 LIBS="$saved_LIBS -lwrap"
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22730 $as_echo_n "checking for library containing nanosleep... " >&6; }
22731 if ${ac_cv_search_nanosleep+:} false; then :
22732 $as_echo_n "(cached) " >&6
22734 ac_func_search_save_LIBS=$LIBS
22735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22736 /* end confdefs.h. */
22738 /* Override any GCC internal prototype to avoid an error.
22739 Use char because int might match the return type of a GCC
22740 builtin and then its argument prototype would still apply. */
22748 return nanosleep ();
22753 for ac_lib in '' rt; do
22754 if test -z "$ac_lib"; then
22755 ac_res="none required"
22758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22760 if ac_fn_c_try_link "$LINENO"; then :
22761 ac_cv_search_nanosleep=$ac_res
22763 rm -f core conftest.err conftest.$ac_objext \
22765 if ${ac_cv_search_nanosleep+:} false; then :
22769 if ${ac_cv_search_nanosleep+:} false; then :
22772 ac_cv_search_nanosleep=no
22774 rm conftest.$ac_ext
22775 LIBS=$ac_func_search_save_LIBS
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22778 $as_echo "$ac_cv_search_nanosleep" >&6; }
22779 ac_res=$ac_cv_search_nanosleep
22780 if test "$ac_res" != no; then :
22781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22786 $as_echo_n "checking for libwrap... " >&6; }
22787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788 /* end confdefs.h. */
22790 #include <sys/types.h>
22792 int deny_severity = 0;
22793 int allow_severity = 0;
22794 struct request_info *req;
22806 if ac_fn_c_try_link "$LINENO"; then :
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22809 $as_echo "yes" >&6; }
22811 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22819 LIBS="$saved_LIBS -lwrap -lnsl"
22820 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22822 /* end confdefs.h. */
22824 #include <sys/types.h>
22826 int deny_severity = 0;
22827 int allow_severity = 0;
22828 struct request_info *req;
22840 if ac_fn_c_try_link "$LINENO"; then :
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22843 $as_echo "yes" >&6; }
22845 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22853 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22857 rm -f core conftest.err conftest.$ac_objext \
22858 conftest$ac_exeext conftest.$ac_ext
22862 rm -f core conftest.err conftest.$ac_objext \
22863 conftest$ac_exeext conftest.$ac_ext
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22872 $as_echo_n "checking for OpenSSL... " >&6; }
22874 # Check whether --with-openssl was given.
22875 if test "${with_openssl+set}" = set; then :
22876 withval=$with_openssl;
22877 with_openssl_directory=${withval}
22883 if test "x$with_openssl_directory" != "xno"; then
22884 OPENSSL_LIBS="-lssl -lcrypto"
22887 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22889 # Make sure the $with_openssl_directory also makes sense
22891 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22892 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22893 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22897 saved_LIBS="${LIBS}"
22898 saved_CFLAGS="${CFLAGS}"
22899 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22900 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22903 /* end confdefs.h. */
22905 #include <openssl/ssl.h>
22911 CRYPTO_set_id_callback(NULL);
22917 if ac_fn_c_try_link "$LINENO"; then :
22920 support_crypto="yes"
22925 support_crypto="no"
22929 rm -f core conftest.err conftest.$ac_objext \
22930 conftest$ac_exeext conftest.$ac_ext
22932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22933 /* end confdefs.h. */
22935 #include <openssl/evp.h>
22947 if ac_fn_c_try_link "$LINENO"; then :
22949 ac_cv_openssl_sha2="yes"
22953 ac_cv_openssl_sha2="no"
22957 rm -f core conftest.err conftest.$ac_objext \
22958 conftest$ac_exeext conftest.$ac_ext
22960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h. */
22963 #include <openssl/evp.h>
22975 if ac_fn_c_try_link "$LINENO"; then :
22977 ac_cv_openssl_export="no"
22981 ac_cv_openssl_export="yes"
22985 rm -f core conftest.err conftest.$ac_objext \
22986 conftest$ac_exeext conftest.$ac_ext
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22989 $as_echo "$support_tls" >&6; }
22990 if test "$support_tls" = "yes"; then
22992 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22995 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22998 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23002 if test "$ac_cv_openssl_sha2" = "yes"; then
23004 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23008 if test "$ac_cv_openssl_export" = "yes"; then
23010 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23014 if test "$support_crypto" = "yes"; then
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23016 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23017 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23018 $as_echo_n "(cached) " >&6
23020 ac_check_lib_save_LIBS=$LIBS
23021 LIBS="-lcrypto $LIBS"
23022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23023 /* end confdefs.h. */
23025 /* Override any GCC internal prototype to avoid an error.
23026 Use char because int might match the return type of a GCC
23027 builtin and then its argument prototype would still apply. */
23031 char EVP_PKEY_encrypt_old ();
23035 return EVP_PKEY_encrypt_old ();
23040 if ac_fn_c_try_link "$LINENO"; then :
23041 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23043 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23045 rm -f core conftest.err conftest.$ac_objext \
23046 conftest$ac_exeext conftest.$ac_ext
23047 LIBS=$ac_check_lib_save_LIBS
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23050 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23051 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23053 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23059 LIBS="${saved_LIBS}"
23060 CFLAGS="${saved_CFLAGS}"
23063 support_crypto="no"
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23065 $as_echo "$support_tls" >&6; }
23068 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23077 $as_echo_n "checking for library containing dlopen... " >&6; }
23078 if ${ac_cv_search_dlopen+:} false; then :
23079 $as_echo_n "(cached) " >&6
23081 ac_func_search_save_LIBS=$LIBS
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23085 /* Override any GCC internal prototype to avoid an error.
23086 Use char because int might match the return type of a GCC
23087 builtin and then its argument prototype would still apply. */
23100 for ac_lib in '' dl; do
23101 if test -z "$ac_lib"; then
23102 ac_res="none required"
23105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23107 if ac_fn_c_try_link "$LINENO"; then :
23108 ac_cv_search_dlopen=$ac_res
23110 rm -f core conftest.err conftest.$ac_objext \
23112 if ${ac_cv_search_dlopen+:} false; then :
23116 if ${ac_cv_search_dlopen+:} false; then :
23119 ac_cv_search_dlopen=no
23121 rm conftest.$ac_ext
23122 LIBS=$ac_func_search_save_LIBS
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23125 $as_echo "$ac_cv_search_dlopen" >&6; }
23126 ac_res=$ac_cv_search_dlopen
23127 if test "$ac_res" != no; then :
23128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23133 working_dir=`eval echo /opt/bacula/working`
23135 # Check whether --with-working-dir was given.
23136 if test "${with_working_dir+set}" = set; then :
23137 withval=$with_working_dir;
23138 if test "x$withval" != "xno" ; then
23139 working_dir=$withval
23150 # Check whether --with-archivedir was given.
23151 if test "${with_archivedir+set}" = set; then :
23152 withval=$with_archivedir;
23153 if test "x$withval" != "xno" ; then
23154 archivedir=$withval
23163 basename=`hostname`
23165 # Check whether --with-basename was given.
23166 if test "${with_basename+set}" = set; then :
23167 withval=$with_basename;
23168 if test "x$withval" != "xno" ; then
23178 hostname=`uname -n | cut -d '.' -f 1`
23179 if test x${hostname} = x ; then
23180 hostname="localhost"
23182 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23183 if test ! $? = 0; then
23184 hostname="localhost"
23187 # Check whether --with-hostname was given.
23188 if test "${with_hostname+set}" = set; then :
23189 withval=$with_hostname;
23190 if test "x$withval" != "xno" ; then
23201 scriptdir=`eval echo ${sysconfdir}`
23203 # Check whether --with-scriptdir was given.
23204 if test "${with_scriptdir+set}" = set; then :
23205 withval=$with_scriptdir;
23206 if test "x$withval" != "xno" ; then
23217 bsrdir=`eval echo /opt/bacula/bsr`
23219 # Check whether --with-bsrdir was given.
23220 if test "${with_bsrdir+set}" = set; then :
23221 withval=$with_bsrdir;
23222 if test "x$withval" != "xno" ; then
23232 logdir=`eval echo /opt/bacula/log`
23234 # Check whether --with-logdir was given.
23235 if test "${with_logdir+set}" = set; then :
23236 withval=$with_logdir;
23237 if test "x$withval" != "xno" ; then
23248 # ------------------------------------------
23249 # Where to place plugindir (plugin files)
23250 # ------------------------------------------
23251 plugindir=`eval echo ${libdir}`
23253 # Check whether --with-plugindir was given.
23254 if test "${with_plugindir+set}" = set; then :
23255 withval=$with_plugindir;
23256 if test "x$withval" != "xno" ; then
23266 dump_email=root@localhost
23268 # Check whether --with-dump-email was given.
23269 if test "${with_dump_email+set}" = set; then :
23270 withval=$with_dump_email;
23271 if test "x$withval" != "xno" ; then
23272 dump_email=$withval
23281 job_email=root@localhost
23283 # Check whether --with-job-email was given.
23284 if test "${with_job_email+set}" = set; then :
23285 withval=$with_job_email;
23286 if test "x$withval" != "xno" ; then
23296 smtp_host=localhost
23298 # Check whether --with-smtp_host was given.
23299 if test "${with_smtp_host+set}" = set; then :
23300 withval=$with_smtp_host;
23301 if test "x$withval" != "xno" ; then
23313 # Check whether --with-pid-dir was given.
23314 if test "${with_pid_dir+set}" = set; then :
23315 withval=$with_pid_dir;
23316 if test "x$withval" != "xno" ; then
23324 cat >>confdefs.h <<_ACEOF
23325 #define _PATH_BACULA_PIDDIR "$piddir"
23330 subsysdir=/var/run/subsys
23331 if test -d /var/run/subsys; then
23332 subsysdir=/var/run/subsys
23333 elif test -d /var/lock/subsys; then
23334 subsysdir=/var/lock/subsys
23336 subsysdir=/var/run/subsys
23339 # Check whether --with-subsys-dir was given.
23340 if test "${with_subsys_dir+set}" = set; then :
23341 withval=$with_subsys_dir;
23342 if test "x$withval" != "xno" ; then
23354 # Check whether --with-baseport was given.
23355 if test "${with_baseport+set}" = set; then :
23356 withval=$with_baseport;
23357 if test "x$withval" != "xno" ; then
23366 dir_port=`expr $baseport`
23367 fd_port=`expr $baseport + 1`
23368 sd_port=`expr $fd_port + 1`
23376 # Check whether --with-dir-password was given.
23377 if test "${with_dir_password+set}" = set; then :
23378 withval=$with_dir_password;
23379 if test "x$withval" != "xno" ; then
23380 dir_password=$withval
23387 if test "x$dir_password" = "x" ; then
23388 if test "x$OPENSSL" = "xnone" ; then
23389 key=`autoconf/randpass 33`
23391 key=`openssl rand -base64 33`
23398 # Check whether --with-fd-password was given.
23399 if test "${with_fd_password+set}" = set; then :
23400 withval=$with_fd_password;
23401 if test "x$withval" != "xno" ; then
23402 fd_password=$withval
23409 if test "x$fd_password" = "x" ; then
23410 if test "x$OPENSSL" = "xnone" ; then
23411 key=`autoconf/randpass 37`
23413 key=`openssl rand -base64 33`
23420 # Check whether --with-sd-password was given.
23421 if test "${with_sd_password+set}" = set; then :
23422 withval=$with_sd_password;
23423 if test "x$withval" != "xno" ; then
23424 sd_password=$withval
23431 if test "x$sd_password" = "x" ; then
23432 if test "x$OPENSSL" = "xnone" ; then
23433 key=`autoconf/randpass 41`
23435 key=`openssl rand -base64 33`
23442 # Check whether --with-mon-dir-password was given.
23443 if test "${with_mon_dir_password+set}" = set; then :
23444 withval=$with_mon_dir_password;
23445 if test "x$withval" != "xno" ; then
23446 mon_dir_password=$withval
23453 if test "x$mon_dir_password" = "x" ; then
23454 if test "x$OPENSSL" = "xnone" ; then
23455 key=`autoconf/randpass 33`
23457 key=`openssl rand -base64 33`
23459 mon_dir_password=$key
23464 # Check whether --with-mon-fd-password was given.
23465 if test "${with_mon_fd_password+set}" = set; then :
23466 withval=$with_mon_fd_password;
23467 if test "x$withval" != "xno" ; then
23468 mon_fd_password=$withval
23475 if test "x$mon_fd_password" = "x" ; then
23476 if test "x$OPENSSL" = "xnone" ; then
23477 key=`autoconf/randpass 37`
23479 key=`openssl rand -base64 33`
23481 mon_fd_password=$key
23486 # Check whether --with-mon-sd-password was given.
23487 if test "${with_mon_sd_password+set}" = set; then :
23488 withval=$with_mon_sd_password;
23489 if test "x$withval" != "xno" ; then
23490 mon_sd_password=$withval
23497 if test "x$mon_sd_password" = "x" ; then
23498 if test "x$OPENSSL" = "xnone" ; then
23499 key=`autoconf/randpass 41`
23501 key=`openssl rand -base64 33`
23503 mon_sd_password=$key
23515 # Check whether --with-db_name was given.
23516 if test "${with_db_name+set}" = set; then :
23517 withval=$with_db_name;
23518 if test "x$withval" != "x" ; then
23529 # Check whether --with-db_user was given.
23530 if test "${with_db_user+set}" = set; then :
23531 withval=$with_db_user;
23532 if test "x$withval" != "x" ; then
23543 # Check whether --with-db_password was given.
23544 if test "${with_db_password+set}" = set; then :
23545 withval=$with_db_password;
23546 if test "x$withval" != "x" ; then
23547 db_password=$withval
23557 # Check whether --with-db_port was given.
23558 if test "${with_db_port+set}" = set; then :
23559 withval=$with_db_port;
23560 if test "x$withval" != "x" ; then
23570 # Handle users and groups for each daemon
23574 # Check whether --with-dir_user was given.
23575 if test "${with_dir_user+set}" = set; then :
23576 withval=$with_dir_user;
23577 if test "x$withval" != "x" ; then
23587 # Check whether --with-dir_group was given.
23588 if test "${with_dir_group+set}" = set; then :
23589 withval=$with_dir_group;
23590 if test "x$withval" != "x" ; then
23600 # Check whether --with-sd_user was given.
23601 if test "${with_sd_user+set}" = set; then :
23602 withval=$with_sd_user;
23603 if test "x$withval" != "x" ; then
23613 # Check whether --with-sd_group was given.
23614 if test "${with_sd_group+set}" = set; then :
23615 withval=$with_sd_group;
23616 if test "x$withval" != "x" ; then
23626 # Check whether --with-fd_user was given.
23627 if test "${with_fd_user+set}" = set; then :
23628 withval=$with_fd_user;
23629 if test "x$withval" != "x" ; then
23639 # Check whether --with-fd_group was given.
23640 if test "${with_fd_group+set}" = set; then :
23641 withval=$with_fd_group;
23642 if test "x$withval" != "x" ; then
23659 # Check whether --with-sbin-perm was given.
23660 if test "${with_sbin_perm+set}" = set; then :
23661 withval=$with_sbin_perm;
23662 if test "x$withval" != "x" ; then
23672 support_batch_insert=yes
23673 # Check whether --enable-batch-insert was given.
23674 if test "${enable_batch_insert+set}" = set; then :
23675 enableval=$enable_batch_insert;
23676 if test x$enableval = xno; then
23677 support_batch_insert=no
23684 if test x$support_batch_insert = xyes; then
23686 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23695 $as_echo_n "checking for PostgreSQL support... " >&6; }
23697 # Check whether --with-postgresql was given.
23698 if test "${with_postgresql+set}" = set; then :
23699 withval=$with_postgresql;
23700 if test "$withval" != "no"; then
23701 if test "$withval" = "yes"; then
23702 PG_CONFIG=`which pg_config 2>/dev/null`
23703 if test -n "$PG_CONFIG"; then
23704 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23705 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23706 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23707 elif test -f /usr/local/include/libpq-fe.h; then
23708 POSTGRESQL_INCDIR=/usr/local/include
23709 if test -d /usr/local/lib64; then
23710 POSTGRESQL_LIBDIR=/usr/local/lib64
23712 POSTGRESQL_LIBDIR=/usr/local/lib
23714 POSTGRESQL_BINDIR=/usr/local/bin
23715 elif test -f /usr/include/libpq-fe.h; then
23716 POSTGRESQL_INCDIR=/usr/include
23717 if test -d /usr/lib64; then
23718 POSTGRESQL_LIBDIR=/usr/lib64
23720 POSTGRESQL_LIBDIR=/usr/lib
23722 POSTGRESQL_BINDIR=/usr/bin
23723 elif test -f /usr/include/pgsql/libpq-fe.h; then
23724 POSTGRESQL_INCDIR=/usr/include/pgsql
23725 if test -d /usr/lib64/pgsql; then
23726 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23728 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23730 POSTGRESQL_BINDIR=/usr/bin
23731 elif test -f /usr/include/postgresql/libpq-fe.h; then
23732 POSTGRESQL_INCDIR=/usr/include/postgresql
23733 if test -d /usr/lib64/postgresql; then
23734 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23736 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23738 POSTGRESQL_BINDIR=/usr/bin
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23741 $as_echo "no" >&6; }
23742 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23744 elif test -f $withval/include/libpq-fe.h; then
23745 POSTGRESQL_INCDIR=$withval/include
23746 POSTGRESQL_LIBDIR=$withval/lib
23747 POSTGRESQL_BINDIR=$withval/bin
23748 elif test -f $withval/include/postgresql/libpq-fe.h; then
23749 POSTGRESQL_INCDIR=$withval/include/postgresql
23750 if test -d $withval/lib64; then
23751 POSTGRESQL_LIBDIR=$withval/lib64
23753 POSTGRESQL_LIBDIR=$withval/lib
23755 POSTGRESQL_BINDIR=$withval/bin
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23758 $as_echo "no" >&6; }
23759 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23762 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23765 $as_echo "yes" >&6; }
23767 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23768 if test x$use_libtool != xno; then
23769 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23771 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23773 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23774 if test "x$ac_cv_func_crypt" = xyes; then :
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23778 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23779 if ${ac_cv_lib_crypt_crypt+:} false; then :
23780 $as_echo_n "(cached) " >&6
23782 ac_check_lib_save_LIBS=$LIBS
23783 LIBS="-lcrypt $LIBS"
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h. */
23787 /* Override any GCC internal prototype to avoid an error.
23788 Use char because int might match the return type of a GCC
23789 builtin and then its argument prototype would still apply. */
23802 if ac_fn_c_try_link "$LINENO"; then :
23803 ac_cv_lib_crypt_crypt=yes
23805 ac_cv_lib_crypt_crypt=no
23807 rm -f core conftest.err conftest.$ac_objext \
23808 conftest$ac_exeext conftest.$ac_ext
23809 LIBS=$ac_check_lib_save_LIBS
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23812 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23813 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23814 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23819 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23820 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23822 if test -z "${db_backends}"; then
23823 db_backends="PostgreSQL"
23825 db_backends="${db_backends} PostgreSQL"
23827 if test -z "${DB_BACKENDS}"; then
23828 DB_BACKENDS="postgresql"
23830 DB_BACKENDS="${DB_BACKENDS} postgresql"
23833 if test "x$support_batch_insert" = "xyes"; then
23834 saved_LDFLAGS="${LDFLAGS}"
23835 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23836 saved_LIBS="${LIBS}"
23837 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23838 LIBS="${saved_LIBS} -lcrypt"
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23842 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23843 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23844 $as_echo_n "(cached) " >&6
23846 ac_check_lib_save_LIBS=$LIBS
23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23849 /* end confdefs.h. */
23851 /* Override any GCC internal prototype to avoid an error.
23852 Use char because int might match the return type of a GCC
23853 builtin and then its argument prototype would still apply. */
23857 char PQisthreadsafe ();
23861 return PQisthreadsafe ();
23866 if ac_fn_c_try_link "$LINENO"; then :
23867 ac_cv_lib_pq_PQisthreadsafe=yes
23869 ac_cv_lib_pq_PQisthreadsafe=no
23871 rm -f core conftest.err conftest.$ac_objext \
23872 conftest$ac_exeext conftest.$ac_ext
23873 LIBS=$ac_check_lib_save_LIBS
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23876 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23877 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23879 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23884 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23885 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23886 $as_echo_n "(cached) " >&6
23888 ac_check_lib_save_LIBS=$LIBS
23890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h. */
23893 /* Override any GCC internal prototype to avoid an error.
23894 Use char because int might match the return type of a GCC
23895 builtin and then its argument prototype would still apply. */
23899 char PQputCopyData ();
23903 return PQputCopyData ();
23908 if ac_fn_c_try_link "$LINENO"; then :
23909 ac_cv_lib_pq_PQputCopyData=yes
23911 ac_cv_lib_pq_PQputCopyData=no
23913 rm -f core conftest.err conftest.$ac_objext \
23914 conftest$ac_exeext conftest.$ac_ext
23915 LIBS=$ac_check_lib_save_LIBS
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23918 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23919 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23921 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23925 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23926 if test $support_batch_insert = yes ; then
23928 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23930 if test -z "${batch_insert_db_backends}"; then
23931 batch_insert_db_backends="PostgreSQL"
23933 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
23938 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23940 echo "WARNING: Your PostgreSQL client library is too old to detect "
23941 echo "if it was compiled with --enable-thread-safety, consider to "
23942 echo "upgrade it in order to avoid problems with Batch insert mode"
23945 LDFLAGS="${saved_LDFLAGS}"
23946 LIBS="${saved_LIBS}"
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23950 $as_echo "no" >&6; }
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23968 $as_echo_n "checking for MySQL support... " >&6; }
23970 # Check whether --with-mysql was given.
23971 if test "${with_mysql+set}" = set; then :
23972 withval=$with_mysql;
23973 if test "$withval" != "no"; then
23974 if test "$withval" = "yes"; then
23976 # This code is very broken on older systems
23978 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
23979 # if test "x${MYSQL_CONFIG}" != x; then
23980 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
23981 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
23982 # if test $? = 0 ; then
23983 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
23984 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
23986 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
23987 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
23989 # elif test -f /usr/local/mysql/include/mysql/mysql.h; then
23990 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23991 MYSQL_INCDIR=/usr/local/mysql/include/mysql
23992 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23993 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23994 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23996 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23998 MYSQL_BINDIR=/usr/local/mysql/bin
23999 elif test -f /usr/include/mysql/mysql.h; then
24000 MYSQL_INCDIR=/usr/include/mysql
24001 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24002 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24003 MYSQL_LIBDIR=/usr/lib64/mysql
24004 elif test -f /usr/lib64/libmysqlclient_r.a \
24005 -o -f /usr/lib64/libmysqlclient_r.so; then
24006 MYSQL_LIBDIR=/usr/lib64
24007 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24008 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24009 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24010 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24011 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24012 MYSQL_LIBDIR=/usr/lib/mysql
24014 MYSQL_LIBDIR=/usr/lib
24016 MYSQL_BINDIR=/usr/bin
24017 elif test -f /usr/include/mysql.h; then
24018 MYSQL_INCDIR=/usr/include
24019 if test -f /usr/lib64/libmysqlclient_r.a \
24020 -o -f /usr/lib64/libmysqlclient_r.so; then
24021 MYSQL_LIBDIR=/usr/lib64
24023 MYSQL_LIBDIR=/usr/lib
24025 MYSQL_BINDIR=/usr/bin
24026 elif test -f /usr/local/include/mysql/mysql.h; then
24027 MYSQL_INCDIR=/usr/local/include/mysql
24028 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24029 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24030 MYSQL_LIBDIR=/usr/local/lib64/mysql
24032 MYSQL_LIBDIR=/usr/local/lib/mysql
24034 MYSQL_BINDIR=/usr/local/bin
24035 elif test -f /usr/local/include/mysql.h; then
24036 MYSQL_INCDIR=/usr/local/include
24037 if test -f /usr/local/lib64/libmysqlclient_r.a \
24038 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24039 MYSQL_LIBDIR=/usr/local/lib64
24041 MYSQL_LIBDIR=/usr/local/lib
24043 MYSQL_BINDIR=/usr/local/bin
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24046 $as_echo "no" >&6; }
24047 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24050 if test -f $withval/include/mysql/mysql.h; then
24051 MYSQL_INCDIR=$withval/include/mysql
24052 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24053 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24054 MYSQL_LIBDIR=$withval/lib64/mysql
24055 elif test -f $withval/lib64/libmysqlclient_r.a \
24056 -o -f $withval/lib64/libmysqlclient_r.so; then
24057 MYSQL_LIBDIR=$withval/lib64
24058 elif test -f $withval/lib/libmysqlclient_r.a \
24059 -o -f $withval/lib/libmysqlclient_r.so; then
24060 MYSQL_LIBDIR=$withval/lib
24062 MYSQL_LIBDIR=$withval/lib/mysql
24064 MYSQL_BINDIR=$withval/bin
24065 elif test -f $withval/include/mysql.h; then
24066 MYSQL_INCDIR=$withval/include
24067 if test -f $withval/lib64/libmysqlclient_r.a \
24068 -o -f $withval/lib64/libmysqlclient_r.so; then
24069 MYSQL_LIBDIR=$withval/lib64
24071 MYSQL_LIBDIR=$withval/lib
24073 MYSQL_BINDIR=$withval/bin
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24076 $as_echo "no" >&6; }
24077 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24080 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24081 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24082 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24083 if test x$use_libtool != xno; then
24084 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24086 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24088 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24090 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24093 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24096 $as_echo "yes" >&6; }
24098 if test -z "${db_backends}" ; then
24099 db_backends="MySQL"
24101 db_backends="${db_backends} MySQL"
24103 if test -z "${DB_BACKENDS}" ; then
24104 DB_BACKENDS="mysql"
24106 DB_BACKENDS="${DB_BACKENDS} mysql"
24109 if test "x$support_batch_insert" = "xyes"; then
24110 saved_LDFLAGS="${LDFLAGS}"
24111 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24112 saved_LIBS="${LIBS}"
24113 LIBS="${saved_LIBS} -lz"
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24116 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24117 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24118 $as_echo_n "(cached) " >&6
24120 ac_check_lib_save_LIBS=$LIBS
24121 LIBS="-lmysqlclient_r $LIBS"
24122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24123 /* end confdefs.h. */
24125 /* Override any GCC internal prototype to avoid an error.
24126 Use char because int might match the return type of a GCC
24127 builtin and then its argument prototype would still apply. */
24131 char mysql_thread_safe ();
24135 return mysql_thread_safe ();
24140 if ac_fn_c_try_link "$LINENO"; then :
24141 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24143 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24145 rm -f core conftest.err conftest.$ac_objext \
24146 conftest$ac_exeext conftest.$ac_ext
24147 LIBS=$ac_check_lib_save_LIBS
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24150 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24151 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24153 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24157 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24158 if test -z "${batch_insert_db_backends}"; then
24159 batch_insert_db_backends="MySQL"
24161 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24165 LDFLAGS="${saved_LDFLAGS}"
24166 LIBS="${saved_LIBS}"
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24170 $as_echo "no" >&6; }
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24176 $as_echo "no" >&6; }
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24182 $as_echo_n "checking for MySQL embedded support... " >&6; }
24184 # Check whether --with-embedded-mysql was given.
24185 if test "${with_embedded_mysql+set}" = set; then :
24186 withval=$with_embedded_mysql;
24187 if test "$withval" != "no"; then
24188 if test "$withval" = "yes"; then
24189 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24190 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24191 if test -d /usr/local/mysql/lib64/mysql; then
24192 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24194 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24196 MYSQL_BINDIR=/usr/local/mysql/bin
24197 elif test -f /usr/include/mysql/mysql.h; then
24198 MYSQL_INCDIR=/usr/include/mysql
24199 if test -d /usr/lib64/mysql; then
24200 MYSQL_LIBDIR=/usr/lib64/mysql
24202 MYSQL_LIBDIR=/usr/lib/mysql
24204 MYSQL_BINDIR=/usr/bin
24205 elif test -f /usr/include/mysql.h; then
24206 MYSQL_INCDIR=/usr/include
24207 if test -d /usr/lib64; then
24208 MYSQL_LIBDIR=/usr/lib64
24210 MYSQL_LIBDIR=/usr/lib
24212 MYSQL_BINDIR=/usr/bin
24213 elif test -f /usr/local/include/mysql/mysql.h; then
24214 MYSQL_INCDIR=/usr/local/include/mysql
24215 if test -d /usr/local/lib64/mysql; then
24216 MYSQL_LIBDIR=/usr/local/lib64/mysql
24218 MYSQL_LIBDIR=/usr/local/lib/mysql
24220 MYSQL_BINDIR=/usr/local/bin
24221 elif test -f /usr/local/include/mysql.h; then
24222 MYSQL_INCDIR=/usr/local/include
24223 if test -d /usr/local/lib64; then
24224 MYSQL_LIBDIR=/usr/local/lib64
24226 MYSQL_LIBDIR=/usr/local/lib
24228 MYSQL_BINDIR=/usr/local/bin
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231 $as_echo "no" >&6; }
24232 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24235 if test -f $withval/include/mysql/mysql.h; then
24236 MYSQL_INCDIR=$withval/include/mysql
24237 if test -d $withval/lib64/mysql; then
24238 MYSQL_LIBDIR=$withval/lib64/mysql
24240 MYSQL_LIBDIR=$withval/lib/mysql
24242 MYSQL_BINDIR=$withval/bin
24243 elif test -f $withval/include/mysql.h; then
24244 MYSQL_INCDIR=$withval/include
24245 if test -d $withval/lib64; then
24246 MYSQL_LIBDIR=$withval/lib64
24248 MYSQL_LIBDIR=$withval/lib
24250 MYSQL_BINDIR=$withval/bin
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24253 $as_echo "no" >&6; }
24254 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24257 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24258 if test x$use_libtool != xno; then
24259 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24261 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24263 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24264 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24267 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24270 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24273 $as_echo "yes" >&6; }
24275 if test -z "${db_backends}"; then
24276 db_backends="MySQL"
24278 db_backends="${db_backends} MySQL"
24280 if test -z "${DB_BACKENDS}"; then
24281 DB_BACKENDS="mysql"
24283 DB_BACKENDS="${DB_BACKENDS} mysql"
24286 if test "x$support_batch_insert" = "xyes"; then
24287 saved_LDFLAGS="${LDFLAGS}"
24288 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24289 saved_LIBS="${LIBS}"
24290 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24293 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24294 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24295 $as_echo_n "(cached) " >&6
24297 ac_check_lib_save_LIBS=$LIBS
24298 LIBS="-lmysqlclient_r $LIBS"
24299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24300 /* end confdefs.h. */
24302 /* Override any GCC internal prototype to avoid an error.
24303 Use char because int might match the return type of a GCC
24304 builtin and then its argument prototype would still apply. */
24308 char mysql_thread_safe ();
24312 return mysql_thread_safe ();
24317 if ac_fn_c_try_link "$LINENO"; then :
24318 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24320 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24322 rm -f core conftest.err conftest.$ac_objext \
24323 conftest$ac_exeext conftest.$ac_ext
24324 LIBS=$ac_check_lib_save_LIBS
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24327 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24328 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24330 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24334 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24335 if test -z "${batch_insert_db_backends}"; then
24336 batch_insert_db_backends="MySQL"
24338 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24342 LDFLAGS="${saved_LDFLAGS}"
24343 LIBS="${saved_LIBS}"
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24347 $as_echo "no" >&6; }
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24353 $as_echo "no" >&6; }
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24366 $as_echo_n "checking for SQLite3 support... " >&6; }
24368 # Check whether --with-sqlite3 was given.
24369 if test "${with_sqlite3+set}" = set; then :
24370 withval=$with_sqlite3;
24371 if test "$withval" != "no"; then
24372 if test "$withval" = "yes"; then
24373 if test -f /usr/local/include/sqlite3.h; then
24374 SQLITE_INCDIR=/usr/local/include
24375 if test -d /usr/local/lib64; then
24376 SQLITE_LIBDIR=/usr/local/lib64
24378 SQLITE_LIBDIR=/usr/local/lib
24380 SQLITE_BINDIR=/usr/local/bin
24381 elif test -f /usr/include/sqlite3.h; then
24382 SQLITE_INCDIR=/usr/include
24383 if test -d /usr/lib64; then
24384 SQLITE_LIBDIR=/usr/lib64
24386 SQLITE_LIBDIR=/usr/lib
24388 SQLITE_BINDIR=/usr/bin
24389 elif test -f $prefix/include/sqlite3.h; then
24390 SQLITE_INCDIR=$prefix/include
24391 if test -d $prefix/lib64; then
24392 SQLITE_LIBDIR=$prefix/lib64
24394 SQLITE_LIBDIR=$prefix/lib
24396 SQLITE_BINDIR=$prefix/bin
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24399 $as_echo "no" >&6; }
24400 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24403 if test -f $withval/sqlite3.h; then
24404 SQLITE_INCDIR=$withval
24405 SQLITE_LIBDIR=$withval
24406 SQLITE_BINDIR=$withval
24407 elif test -f $withval/include/sqlite3.h; then
24408 SQLITE_INCDIR=$withval/include
24409 if test -d $withval/lib64; then
24410 SQLITE_LIBDIR=$withval/lib64
24412 SQLITE_LIBDIR=$withval/lib
24414 SQLITE_BINDIR=$withval/bin
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24417 $as_echo "no" >&6; }
24418 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24421 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24422 if test x$use_libtool != xno; then
24423 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24425 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24427 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24428 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24431 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24434 $as_echo "yes" >&6; }
24436 if test -z "${db_backends}"; then
24437 db_backends="SQLite3"
24439 db_backends="${db_backends} SQLite3"
24441 if test -z "${DB_BACKENDS}"; then
24442 DB_BACKENDS="sqlite3"
24444 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24447 if test "x$support_batch_insert" = "xyes"; then
24448 saved_LDFLAGS="${LDFLAGS}"
24449 LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24452 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24453 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24454 $as_echo_n "(cached) " >&6
24456 ac_check_lib_save_LIBS=$LIBS
24457 LIBS="-lsqlite3 $LIBS"
24458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459 /* end confdefs.h. */
24461 /* Override any GCC internal prototype to avoid an error.
24462 Use char because int might match the return type of a GCC
24463 builtin and then its argument prototype would still apply. */
24467 char sqlite3_threadsafe ();
24471 return sqlite3_threadsafe ();
24476 if ac_fn_c_try_link "$LINENO"; then :
24477 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24479 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24481 rm -f core conftest.err conftest.$ac_objext \
24482 conftest$ac_exeext conftest.$ac_ext
24483 LIBS=$ac_check_lib_save_LIBS
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24486 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24487 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24489 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24493 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24494 if test -z "${batch_insert_db_backends}"; then
24495 batch_insert_db_backends="SQLite3"
24497 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24501 LDFLAGS="${saved_LDFLAGS}"
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24505 $as_echo "no" >&6; }
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24511 $as_echo "no" >&6; }
24521 if test -z "${batch_insert_db_backends}"; then
24522 batch_insert_db_backends="None"
24525 if test "x${db_backends}" = "x" ; then
24528 echo "You have not specified either --enable-client-only or one of the"
24529 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24530 echo "This is not permitted. Please reconfigure."
24532 echo "Aborting the configuration ..."
24538 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24540 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24541 if test x$use_libtool = xno; then
24542 SHARED_CATALOG_TARGETS=""
24544 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24548 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24550 if test x$use_libtool = xno; then
24553 echo "You have specified two or more of the"
24554 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24555 echo "This is not permitted when not using libtool Please reconfigure."
24557 echo "Aborting the configuration ..."
24563 SHARED_CATALOG_TARGETS=""
24564 for db_type in ${DB_BACKENDS}
24566 if test -z "${SHARED_CATALOG_TARGETS}"; then
24567 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24569 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24575 if test x$use_libtool = xyes; then
24585 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24588 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24589 if test -z "$CCOPTS"; then
24590 CCOPTS='-g -O2 -Wall'
24597 largefile_support="no"
24599 # Check whether --enable-largefile was given.
24600 if test "${enable_largefile+set}" = set; then :
24601 enableval=$enable_largefile;
24604 if test "$enable_largefile" != no; then
24605 if test -n "$ac_tool_prefix"; then
24606 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24607 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24609 $as_echo_n "checking for $ac_word... " >&6; }
24610 if ${ac_cv_prog_GETCONF+:} false; then :
24611 $as_echo_n "(cached) " >&6
24613 if test -n "$GETCONF"; then
24614 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24617 for as_dir in $PATH
24620 test -z "$as_dir" && as_dir=.
24621 for ac_exec_ext in '' $ac_executable_extensions; do
24622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24623 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24633 GETCONF=$ac_cv_prog_GETCONF
24634 if test -n "$GETCONF"; then
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24636 $as_echo "$GETCONF" >&6; }
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24639 $as_echo "no" >&6; }
24644 if test -z "$ac_cv_prog_GETCONF"; then
24645 ac_ct_GETCONF=$GETCONF
24646 # Extract the first word of "getconf", so it can be a program name with args.
24647 set dummy getconf; ac_word=$2
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24649 $as_echo_n "checking for $ac_word... " >&6; }
24650 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24651 $as_echo_n "(cached) " >&6
24653 if test -n "$ac_ct_GETCONF"; then
24654 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24657 for as_dir in $PATH
24660 test -z "$as_dir" && as_dir=.
24661 for ac_exec_ext in '' $ac_executable_extensions; do
24662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24663 ac_cv_prog_ac_ct_GETCONF="getconf"
24664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24673 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24674 if test -n "$ac_ct_GETCONF"; then
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24676 $as_echo "$ac_ct_GETCONF" >&6; }
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24679 $as_echo "no" >&6; }
24682 if test "x$ac_ct_GETCONF" = x; then
24685 case $cross_compiling:$ac_tool_warned in
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24689 ac_tool_warned=yes ;;
24691 GETCONF=$ac_ct_GETCONF
24694 GETCONF="$ac_cv_prog_GETCONF"
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24698 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24699 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24700 $as_echo_n "(cached) " >&6
24702 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24703 ac_cv_sys_largefile_CFLAGS=no
24705 # IRIX 6.2 and later require cc -n32.
24706 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24707 if test "$GCC" != yes; then
24708 ac_cv_sys_largefile_CFLAGS=-n32
24711 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24713 /* end confdefs.h. */
24723 if ac_fn_c_try_link "$LINENO"; then :
24726 ac_cv_sys_largefile_CFLAGS=no
24728 rm -f core conftest.err conftest.$ac_objext \
24729 conftest$ac_exeext conftest.$ac_ext
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24735 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24737 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24738 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24739 $as_echo_n "(cached) " >&6
24741 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24742 ac_cv_sys_largefile_LDFLAGS=no
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24747 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24749 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24750 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24751 $as_echo_n "(cached) " >&6
24753 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24754 ac_cv_sys_largefile_LIBS=no
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24759 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24761 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24764 -D_FILE_OFFSET_BITS=*) ;;
24765 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24766 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24771 case "$CPPFLAGS" in
24772 '') CPPFLAGS="$ac_flag" ;;
24773 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24781 '') CFLAGS="$ac_flag" ;;
24782 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24787 case "$ac_cv_sys_largefile_LDFLAGS" in
24791 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24792 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24795 case "$ac_cv_sys_largefile_LIBS" in
24799 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24800 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24804 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24805 if ${ac_cv_sys_file_offset_bits+:} false; then :
24806 $as_echo_n "(cached) " >&6
24808 ac_cv_sys_file_offset_bits=no
24809 ac_cv_sys_file_offset_bits=64
24810 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24812 -D_FILE_OFFSET_BITS)
24813 ac_cv_sys_file_offset_bits=1 ;;
24814 -D_FILE_OFFSET_BITS=*)
24815 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24821 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24822 if test "$ac_cv_sys_file_offset_bits" != no; then
24824 cat >>confdefs.h <<_ACEOF
24825 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24830 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24831 if ${ac_cv_sys_largefile_source+:} false; then :
24832 $as_echo_n "(cached) " >&6
24834 ac_cv_sys_largefile_source=no
24835 ac_cv_sys_largefile_source=1
24836 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24838 -D_LARGEFILE_SOURCE)
24839 ac_cv_sys_largefile_source=1 ;;
24840 -D_LARGEFILE_SOURCE=*)
24841 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24847 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24848 if test "$ac_cv_sys_largefile_source" != no; then
24850 cat >>confdefs.h <<_ACEOF
24851 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24856 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24857 if ${ac_cv_sys_large_files+:} false; then :
24858 $as_echo_n "(cached) " >&6
24860 ac_cv_sys_large_files=no
24861 ac_cv_sys_large_files=1
24862 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24865 ac_cv_sys_large_files=1 ;;
24867 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24873 $as_echo "$ac_cv_sys_large_files" >&6; }
24874 if test "$ac_cv_sys_large_files" != no; then
24876 cat >>confdefs.h <<_ACEOF
24877 #define _LARGE_FILES $ac_cv_sys_large_files
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24885 $as_echo_n "checking for X... " >&6; }
24888 # Check whether --with-x was given.
24889 if test "${with_x+set}" = set; then :
24893 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24894 if test "x$with_x" = xno; then
24895 # The user explicitly disabled X.
24898 case $x_includes,$x_libraries in #(
24899 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24900 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24901 $as_echo_n "(cached) " >&6
24903 # One or both of the vars are not set, and there is no cached value.
24904 ac_x_includes=no ac_x_libraries=no
24905 rm -f -r conftest.dir
24906 if mkdir conftest.dir; then
24908 cat >Imakefile <<'_ACEOF'
24910 @echo incroot='${INCROOT}'
24912 @echo usrlibdir='${USRLIBDIR}'
24914 @echo libdir='${LIBDIR}'
24916 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24917 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24918 for ac_var in incroot usrlibdir libdir; do
24919 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24921 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24922 for ac_extension in a so sl dylib la dll; do
24923 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24924 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24925 ac_im_usrlibdir=$ac_im_libdir; break
24928 # Screen out bogus values from the imake configuration. They are
24929 # bogus both because they are the default anyway, and because
24930 # using them would break gcc on systems where it needs fixed includes.
24931 case $ac_im_incroot in
24932 /usr/include) ac_x_includes= ;;
24933 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24935 case $ac_im_usrlibdir in
24936 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24937 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24941 rm -f -r conftest.dir
24944 # Standard set of common directories for X headers.
24945 # Check X11 before X11Rn because it is often a symlink to the current release.
24959 /usr/local/X11/include
24960 /usr/local/X11R7/include
24961 /usr/local/X11R6/include
24962 /usr/local/X11R5/include
24963 /usr/local/X11R4/include
24965 /usr/local/include/X11
24966 /usr/local/include/X11R7
24967 /usr/local/include/X11R6
24968 /usr/local/include/X11R5
24969 /usr/local/include/X11R4
24973 /usr/XFree86/include/X11
24977 /usr/unsupported/include
24978 /usr/athena/include
24979 /usr/local/x11r5/include
24980 /usr/lpp/Xamples/include
24982 /usr/openwin/include
24983 /usr/openwin/share/include'
24985 if test "$ac_x_includes" = no; then
24986 # Guess where to find include files, by looking for Xlib.h.
24987 # First, try using that file with no special directory specified.
24988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24989 /* end confdefs.h. */
24990 #include <X11/Xlib.h>
24992 if ac_fn_c_try_cpp "$LINENO"; then :
24993 # We can compile using X headers with no special include directory.
24996 for ac_dir in $ac_x_header_dirs; do
24997 if test -r "$ac_dir/X11/Xlib.h"; then
24998 ac_x_includes=$ac_dir
25003 rm -f conftest.err conftest.i conftest.$ac_ext
25004 fi # $ac_x_includes = no
25006 if test "$ac_x_libraries" = no; then
25007 # Check for the libraries.
25008 # See if we find them without any special options.
25009 # Don't add to $LIBS permanently.
25012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h. */
25014 #include <X11/Xlib.h>
25023 if ac_fn_c_try_link "$LINENO"; then :
25025 # We can link X programs with no special library path.
25029 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25031 # Don't even attempt the hair of trying to link an X program!
25032 for ac_extension in a so sl dylib la dll; do
25033 if test -r "$ac_dir/libX11.$ac_extension"; then
25034 ac_x_libraries=$ac_dir
25040 rm -f core conftest.err conftest.$ac_objext \
25041 conftest$ac_exeext conftest.$ac_ext
25042 fi # $ac_x_libraries = no
25044 case $ac_x_includes,$ac_x_libraries in #(
25045 no,* | *,no | *\'*)
25046 # Didn't find X, or a directory has "'" in its name.
25047 ac_cv_have_x="have_x=no";; #(
25049 # Record where we found X for the cache.
25050 ac_cv_have_x="have_x=yes\
25051 ac_x_includes='$ac_x_includes'\
25052 ac_x_libraries='$ac_x_libraries'"
25058 eval "$ac_cv_have_x"
25061 if test "$have_x" != yes; then
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25063 $as_echo "$have_x" >&6; }
25066 # If each of the values was on the command line, it overrides each guess.
25067 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25068 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25069 # Update the cache value to reflect the command line values.
25070 ac_cv_have_x="have_x=yes\
25071 ac_x_includes='$x_includes'\
25072 ac_x_libraries='$x_libraries'"
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25074 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25077 if test "$no_x" = yes; then
25078 # Not all programs may use this symbol, but it does not hurt to define it.
25080 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25082 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25084 if test -n "$x_includes"; then
25085 X_CFLAGS="$X_CFLAGS -I$x_includes"
25088 # It would also be nice to do this for all -L options, not just this one.
25089 if test -n "$x_libraries"; then
25090 X_LIBS="$X_LIBS -L$x_libraries"
25091 # For Solaris; some versions of Sun CC require a space after -R and
25092 # others require no space. Words are not sufficient . . . .
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25094 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25095 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25096 ac_xsave_c_werror_flag=$ac_c_werror_flag
25097 ac_c_werror_flag=yes
25098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25099 /* end confdefs.h. */
25109 if ac_fn_c_try_link "$LINENO"; then :
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25111 $as_echo "no" >&6; }
25112 X_LIBS="$X_LIBS -R$x_libraries"
25114 LIBS="$ac_xsave_LIBS -R $x_libraries"
25115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25116 /* end confdefs.h. */
25126 if ac_fn_c_try_link "$LINENO"; then :
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25128 $as_echo "yes" >&6; }
25129 X_LIBS="$X_LIBS -R $x_libraries"
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25132 $as_echo "neither works" >&6; }
25134 rm -f core conftest.err conftest.$ac_objext \
25135 conftest$ac_exeext conftest.$ac_ext
25137 rm -f core conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext conftest.$ac_ext
25139 ac_c_werror_flag=$ac_xsave_c_werror_flag
25140 LIBS=$ac_xsave_LIBS
25143 # Check for system-dependent libraries X programs must link with.
25144 # Do this before checking for the system-independent R6 libraries
25145 # (-lICE), since we may need -lsocket or whatever for X linking.
25147 if test "$ISC" = yes; then
25148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25150 # Martyn Johnson says this is needed for Ultrix, if the X
25151 # libraries were built with DECnet support. And Karl Berry says
25152 # the Alpha needs dnet_stub (dnet does not exist).
25153 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155 /* end confdefs.h. */
25157 /* Override any GCC internal prototype to avoid an error.
25158 Use char because int might match the return type of a GCC
25159 builtin and then its argument prototype would still apply. */
25163 char XOpenDisplay ();
25167 return XOpenDisplay ();
25172 if ac_fn_c_try_link "$LINENO"; then :
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25176 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25177 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25178 $as_echo_n "(cached) " >&6
25180 ac_check_lib_save_LIBS=$LIBS
25181 LIBS="-ldnet $LIBS"
25182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25183 /* end confdefs.h. */
25185 /* Override any GCC internal prototype to avoid an error.
25186 Use char because int might match the return type of a GCC
25187 builtin and then its argument prototype would still apply. */
25195 return dnet_ntoa ();
25200 if ac_fn_c_try_link "$LINENO"; then :
25201 ac_cv_lib_dnet_dnet_ntoa=yes
25203 ac_cv_lib_dnet_dnet_ntoa=no
25205 rm -f core conftest.err conftest.$ac_objext \
25206 conftest$ac_exeext conftest.$ac_ext
25207 LIBS=$ac_check_lib_save_LIBS
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25210 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25211 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25212 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25215 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25217 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25218 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25219 $as_echo_n "(cached) " >&6
25221 ac_check_lib_save_LIBS=$LIBS
25222 LIBS="-ldnet_stub $LIBS"
25223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h. */
25226 /* Override any GCC internal prototype to avoid an error.
25227 Use char because int might match the return type of a GCC
25228 builtin and then its argument prototype would still apply. */
25236 return dnet_ntoa ();
25241 if ac_fn_c_try_link "$LINENO"; then :
25242 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25244 ac_cv_lib_dnet_stub_dnet_ntoa=no
25246 rm -f core conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
25248 LIBS=$ac_check_lib_save_LIBS
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25251 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25252 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25253 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25258 rm -f core conftest.err conftest.$ac_objext \
25259 conftest$ac_exeext conftest.$ac_ext
25260 LIBS="$ac_xsave_LIBS"
25262 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25263 # to get the SysV transport functions.
25264 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25266 # The nsl library prevents programs from opening the X display
25267 # on Irix 5.2, according to T.E. Dickey.
25268 # The functions gethostbyname, getservbyname, and inet_addr are
25269 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25270 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25271 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25275 if test $ac_cv_func_gethostbyname = no; then
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25277 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25278 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25279 $as_echo_n "(cached) " >&6
25281 ac_check_lib_save_LIBS=$LIBS
25283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25284 /* end confdefs.h. */
25286 /* Override any GCC internal prototype to avoid an error.
25287 Use char because int might match the return type of a GCC
25288 builtin and then its argument prototype would still apply. */
25292 char gethostbyname ();
25296 return gethostbyname ();
25301 if ac_fn_c_try_link "$LINENO"; then :
25302 ac_cv_lib_nsl_gethostbyname=yes
25304 ac_cv_lib_nsl_gethostbyname=no
25306 rm -f core conftest.err conftest.$ac_objext \
25307 conftest$ac_exeext conftest.$ac_ext
25308 LIBS=$ac_check_lib_save_LIBS
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25311 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25312 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25313 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25316 if test $ac_cv_lib_nsl_gethostbyname = no; then
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25318 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25319 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25320 $as_echo_n "(cached) " >&6
25322 ac_check_lib_save_LIBS=$LIBS
25324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25325 /* end confdefs.h. */
25327 /* Override any GCC internal prototype to avoid an error.
25328 Use char because int might match the return type of a GCC
25329 builtin and then its argument prototype would still apply. */
25333 char gethostbyname ();
25337 return gethostbyname ();
25342 if ac_fn_c_try_link "$LINENO"; then :
25343 ac_cv_lib_bsd_gethostbyname=yes
25345 ac_cv_lib_bsd_gethostbyname=no
25347 rm -f core conftest.err conftest.$ac_objext \
25348 conftest$ac_exeext conftest.$ac_ext
25349 LIBS=$ac_check_lib_save_LIBS
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25352 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25353 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25354 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25360 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25361 # socket/setsockopt and other routines are undefined under SCO ODT
25362 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25363 # on later versions), says Simon Leinen: it contains gethostby*
25364 # variants that don't use the name server (or something). -lsocket
25365 # must be given before -lnsl if both are needed. We assume that
25366 # if connect needs -lnsl, so does gethostbyname.
25367 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25368 if test "x$ac_cv_func_connect" = xyes; then :
25372 if test $ac_cv_func_connect = no; then
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25374 $as_echo_n "checking for connect in -lsocket... " >&6; }
25375 if ${ac_cv_lib_socket_connect+:} false; then :
25376 $as_echo_n "(cached) " >&6
25378 ac_check_lib_save_LIBS=$LIBS
25379 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25381 /* end confdefs.h. */
25383 /* Override any GCC internal prototype to avoid an error.
25384 Use char because int might match the return type of a GCC
25385 builtin and then its argument prototype would still apply. */
25398 if ac_fn_c_try_link "$LINENO"; then :
25399 ac_cv_lib_socket_connect=yes
25401 ac_cv_lib_socket_connect=no
25403 rm -f core conftest.err conftest.$ac_objext \
25404 conftest$ac_exeext conftest.$ac_ext
25405 LIBS=$ac_check_lib_save_LIBS
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25408 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25409 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25410 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25415 # Guillermo Gomez says -lposix is necessary on A/UX.
25416 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25417 if test "x$ac_cv_func_remove" = xyes; then :
25421 if test $ac_cv_func_remove = no; then
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25423 $as_echo_n "checking for remove in -lposix... " >&6; }
25424 if ${ac_cv_lib_posix_remove+:} false; then :
25425 $as_echo_n "(cached) " >&6
25427 ac_check_lib_save_LIBS=$LIBS
25428 LIBS="-lposix $LIBS"
25429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25430 /* end confdefs.h. */
25432 /* Override any GCC internal prototype to avoid an error.
25433 Use char because int might match the return type of a GCC
25434 builtin and then its argument prototype would still apply. */
25447 if ac_fn_c_try_link "$LINENO"; then :
25448 ac_cv_lib_posix_remove=yes
25450 ac_cv_lib_posix_remove=no
25452 rm -f core conftest.err conftest.$ac_objext \
25453 conftest$ac_exeext conftest.$ac_ext
25454 LIBS=$ac_check_lib_save_LIBS
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25457 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25458 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25464 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25465 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25466 if test "x$ac_cv_func_shmat" = xyes; then :
25470 if test $ac_cv_func_shmat = no; then
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25472 $as_echo_n "checking for shmat in -lipc... " >&6; }
25473 if ${ac_cv_lib_ipc_shmat+:} false; then :
25474 $as_echo_n "(cached) " >&6
25476 ac_check_lib_save_LIBS=$LIBS
25478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25479 /* end confdefs.h. */
25481 /* Override any GCC internal prototype to avoid an error.
25482 Use char because int might match the return type of a GCC
25483 builtin and then its argument prototype would still apply. */
25496 if ac_fn_c_try_link "$LINENO"; then :
25497 ac_cv_lib_ipc_shmat=yes
25499 ac_cv_lib_ipc_shmat=no
25501 rm -f core conftest.err conftest.$ac_objext \
25502 conftest$ac_exeext conftest.$ac_ext
25503 LIBS=$ac_check_lib_save_LIBS
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25506 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25507 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25508 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25514 # Check for libraries that X11R6 Xt/Xaw programs need.
25515 ac_save_LDFLAGS=$LDFLAGS
25516 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25517 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25518 # check for ICE first), but we must link in the order -lSM -lICE or
25519 # we get undefined symbols. So assume we have SM if we have ICE.
25520 # These have to be linked with before -lX11, unlike the other
25521 # libraries we check for below, so use a different variable.
25522 # John Interrante, Karl Berry
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25524 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25525 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25526 $as_echo_n "(cached) " >&6
25528 ac_check_lib_save_LIBS=$LIBS
25529 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25531 /* end confdefs.h. */
25533 /* Override any GCC internal prototype to avoid an error.
25534 Use char because int might match the return type of a GCC
25535 builtin and then its argument prototype would still apply. */
25539 char IceConnectionNumber ();
25543 return IceConnectionNumber ();
25548 if ac_fn_c_try_link "$LINENO"; then :
25549 ac_cv_lib_ICE_IceConnectionNumber=yes
25551 ac_cv_lib_ICE_IceConnectionNumber=no
25553 rm -f core conftest.err conftest.$ac_objext \
25554 conftest$ac_exeext conftest.$ac_ext
25555 LIBS=$ac_check_lib_save_LIBS
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25558 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25559 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25560 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25563 LDFLAGS=$ac_save_LDFLAGS
25601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25602 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25604 cat >>confdefs.h <<_ACEOF
25605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25613 $as_echo_n "checking for ANSI C header files... " >&6; }
25614 if ${ac_cv_header_stdc+:} false; then :
25615 $as_echo_n "(cached) " >&6
25617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25618 /* end confdefs.h. */
25619 #include <stdlib.h>
25620 #include <stdarg.h>
25621 #include <string.h>
25632 if ac_fn_c_try_compile "$LINENO"; then :
25633 ac_cv_header_stdc=yes
25635 ac_cv_header_stdc=no
25637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25639 if test $ac_cv_header_stdc = yes; then
25640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642 /* end confdefs.h. */
25643 #include <string.h>
25646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25647 $EGREP "memchr" >/dev/null 2>&1; then :
25650 ac_cv_header_stdc=no
25656 if test $ac_cv_header_stdc = yes; then
25657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25659 /* end confdefs.h. */
25660 #include <stdlib.h>
25663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25664 $EGREP "free" >/dev/null 2>&1; then :
25667 ac_cv_header_stdc=no
25673 if test $ac_cv_header_stdc = yes; then
25674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25675 if test "$cross_compiling" = yes; then :
25678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25679 /* end confdefs.h. */
25681 #include <stdlib.h>
25682 #if ((' ' & 0x0FF) == 0x020)
25683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25686 # define ISLOWER(c) \
25687 (('a' <= (c) && (c) <= 'i') \
25688 || ('j' <= (c) && (c) <= 'r') \
25689 || ('s' <= (c) && (c) <= 'z'))
25690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25698 for (i = 0; i < 256; i++)
25699 if (XOR (islower (i), ISLOWER (i))
25700 || toupper (i) != TOUPPER (i))
25705 if ac_fn_c_try_run "$LINENO"; then :
25708 ac_cv_header_stdc=no
25710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25711 conftest.$ac_objext conftest.beam conftest.$ac_ext
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25717 $as_echo "$ac_cv_header_stdc" >&6; }
25718 if test $ac_cv_header_stdc = yes; then
25720 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25725 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25726 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25727 $as_echo_n "(cached) " >&6
25729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25730 /* end confdefs.h. */
25731 #include <sys/types.h>
25735 return makedev(0, 0);
25740 if ac_fn_c_try_link "$LINENO"; then :
25741 ac_cv_header_sys_types_h_makedev=yes
25743 ac_cv_header_sys_types_h_makedev=no
25745 rm -f core conftest.err conftest.$ac_objext \
25746 conftest$ac_exeext conftest.$ac_ext
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25750 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25752 if test $ac_cv_header_sys_types_h_makedev = no; then
25753 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25754 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25756 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25762 if test $ac_cv_header_sys_mkdev_h = no; then
25763 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25764 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25766 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25774 ac_header_dirent=no
25775 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25776 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25778 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25779 if eval \${$as_ac_Header+:} false; then :
25780 $as_echo_n "(cached) " >&6
25782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h. */
25784 #include <sys/types.h>
25796 if ac_fn_c_try_compile "$LINENO"; then :
25797 eval "$as_ac_Header=yes"
25799 eval "$as_ac_Header=no"
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25803 eval ac_res=\$$as_ac_Header
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25805 $as_echo "$ac_res" >&6; }
25806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25807 cat >>confdefs.h <<_ACEOF
25808 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25811 ac_header_dirent=$ac_hdr; break
25815 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25816 if test $ac_header_dirent = dirent.h; then
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25818 $as_echo_n "checking for library containing opendir... " >&6; }
25819 if ${ac_cv_search_opendir+:} false; then :
25820 $as_echo_n "(cached) " >&6
25822 ac_func_search_save_LIBS=$LIBS
25823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824 /* end confdefs.h. */
25826 /* Override any GCC internal prototype to avoid an error.
25827 Use char because int might match the return type of a GCC
25828 builtin and then its argument prototype would still apply. */
25841 for ac_lib in '' dir; do
25842 if test -z "$ac_lib"; then
25843 ac_res="none required"
25846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25848 if ac_fn_c_try_link "$LINENO"; then :
25849 ac_cv_search_opendir=$ac_res
25851 rm -f core conftest.err conftest.$ac_objext \
25853 if ${ac_cv_search_opendir+:} false; then :
25857 if ${ac_cv_search_opendir+:} false; then :
25860 ac_cv_search_opendir=no
25862 rm conftest.$ac_ext
25863 LIBS=$ac_func_search_save_LIBS
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25866 $as_echo "$ac_cv_search_opendir" >&6; }
25867 ac_res=$ac_cv_search_opendir
25868 if test "$ac_res" != no; then :
25869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25875 $as_echo_n "checking for library containing opendir... " >&6; }
25876 if ${ac_cv_search_opendir+:} false; then :
25877 $as_echo_n "(cached) " >&6
25879 ac_func_search_save_LIBS=$LIBS
25880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25881 /* end confdefs.h. */
25883 /* Override any GCC internal prototype to avoid an error.
25884 Use char because int might match the return type of a GCC
25885 builtin and then its argument prototype would still apply. */
25898 for ac_lib in '' x; do
25899 if test -z "$ac_lib"; then
25900 ac_res="none required"
25903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25905 if ac_fn_c_try_link "$LINENO"; then :
25906 ac_cv_search_opendir=$ac_res
25908 rm -f core conftest.err conftest.$ac_objext \
25910 if ${ac_cv_search_opendir+:} false; then :
25914 if ${ac_cv_search_opendir+:} false; then :
25917 ac_cv_search_opendir=no
25919 rm conftest.$ac_ext
25920 LIBS=$ac_func_search_save_LIBS
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25923 $as_echo "$ac_cv_search_opendir" >&6; }
25924 ac_res=$ac_cv_search_opendir
25925 if test "$ac_res" != no; then :
25926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25933 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25934 if ${ac_cv_header_stat_broken+:} false; then :
25935 $as_echo_n "(cached) " >&6
25937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25938 /* end confdefs.h. */
25939 #include <sys/types.h>
25940 #include <sys/stat.h>
25942 #if defined S_ISBLK && defined S_IFDIR
25943 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25946 #if defined S_ISBLK && defined S_IFCHR
25947 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25950 #if defined S_ISLNK && defined S_IFREG
25951 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25954 #if defined S_ISSOCK && defined S_IFREG
25955 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25959 if ac_fn_c_try_compile "$LINENO"; then :
25960 ac_cv_header_stat_broken=no
25962 ac_cv_header_stat_broken=yes
25964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25967 $as_echo "$ac_cv_header_stat_broken" >&6; }
25968 if test $ac_cv_header_stat_broken = yes; then
25970 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25975 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25976 if ${ac_cv_header_sys_wait_h+:} false; then :
25977 $as_echo_n "(cached) " >&6
25979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h. */
25981 #include <sys/types.h>
25982 #include <sys/wait.h>
25983 #ifndef WEXITSTATUS
25984 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25987 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25995 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26000 if ac_fn_c_try_compile "$LINENO"; then :
26001 ac_cv_header_sys_wait_h=yes
26003 ac_cv_header_sys_wait_h=no
26005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26008 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26009 if test $ac_cv_header_sys_wait_h = yes; then
26011 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26016 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26017 if ${ac_cv_header_time+:} false; then :
26018 $as_echo_n "(cached) " >&6
26020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26021 /* end confdefs.h. */
26022 #include <sys/types.h>
26023 #include <sys/time.h>
26029 if ((struct tm *) 0)
26035 if ac_fn_c_try_compile "$LINENO"; then :
26036 ac_cv_header_time=yes
26038 ac_cv_header_time=no
26040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26043 $as_echo "$ac_cv_header_time" >&6; }
26044 if test $ac_cv_header_time = yes; then
26046 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26050 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26051 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26053 cat >>confdefs.h <<_ACEOF
26054 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26058 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26063 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26064 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26066 cat >>confdefs.h <<_ACEOF
26067 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26071 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26074 case " $LIBOBJS " in
26075 *" fileblocks.$ac_objext "* ) ;;
26076 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26084 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26085 if ${ac_cv_struct_tm+:} false; then :
26086 $as_echo_n "(cached) " >&6
26088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h. */
26090 #include <sys/types.h>
26097 int *p = &tm.tm_sec;
26103 if ac_fn_c_try_compile "$LINENO"; then :
26104 ac_cv_struct_tm=time.h
26106 ac_cv_struct_tm=sys/time.h
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26111 $as_echo "$ac_cv_struct_tm" >&6; }
26112 if test $ac_cv_struct_tm = sys/time.h; then
26114 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26118 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26119 #include <$ac_cv_struct_tm>
26122 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26124 cat >>confdefs.h <<_ACEOF
26125 #define HAVE_STRUCT_TM_TM_ZONE 1
26131 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26133 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26136 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26138 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26144 cat >>confdefs.h <<_ACEOF
26145 #define HAVE_DECL_TZNAME $ac_have_decl
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26149 $as_echo_n "checking for tzname... " >&6; }
26150 if ${ac_cv_var_tzname+:} false; then :
26151 $as_echo_n "(cached) " >&6
26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h. */
26156 #if !HAVE_DECL_TZNAME
26157 extern char *tzname[];
26163 return tzname[0][0];
26168 if ac_fn_c_try_link "$LINENO"; then :
26169 ac_cv_var_tzname=yes
26171 ac_cv_var_tzname=no
26173 rm -f core conftest.err conftest.$ac_objext \
26174 conftest$ac_exeext conftest.$ac_ext
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26177 $as_echo "$ac_cv_var_tzname" >&6; }
26178 if test $ac_cv_var_tzname = yes; then
26180 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26187 $as_echo_n "checking for utime.h... " >&6; }
26188 if ${ba_cv_header_utime_h+:} false; then :
26189 $as_echo_n "(cached) " >&6
26192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26193 /* end confdefs.h. */
26195 #include <sys/types.h>
26208 if ac_fn_c_try_compile "$LINENO"; then :
26210 ba_cv_header_utime_h=yes
26214 ba_cv_header_utime_h=no
26218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26223 $as_echo "$ba_cv_header_utime_h" >&6; }
26224 test $ba_cv_header_utime_h = yes &&
26225 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26229 $as_echo_n "checking for socklen_t... " >&6; }
26230 if ${ba_cv_header_socklen_t+:} false; then :
26231 $as_echo_n "(cached) " >&6
26234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235 /* end confdefs.h. */
26237 #include <sys/types.h>
26238 #include <sys/socket.h>
26250 if ac_fn_c_try_compile "$LINENO"; then :
26252 ba_cv_header_socklen_t=yes
26256 ba_cv_header_socklen_t=no
26260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26265 $as_echo "$ba_cv_header_socklen_t" >&6; }
26266 test $ba_cv_header_socklen_t = yes &&
26267 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26271 ac_cpp='$CXXCPP $CPPFLAGS'
26272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26277 $as_echo_n "checking for ioctl_req_t... " >&6; }
26278 if ${ba_cv_header_ioctl_req_t+:} false; then :
26279 $as_echo_n "(cached) " >&6
26282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26283 /* end confdefs.h. */
26285 #include <unistd.h>
26286 #include <sys/types.h>
26287 #include <sys/ioctl.h>
26293 int (*d_ioctl)(int fd, unsigned long int request, ...);
26300 if ac_fn_cxx_try_compile "$LINENO"; then :
26302 ba_cv_header_ioctl_req_t=yes
26306 ba_cv_header_ioctl_req_t=no
26310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26315 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26316 test $ba_cv_header_ioctl_req_t = yes &&
26317 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26321 ac_cpp='$CPP $CPPFLAGS'
26322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26328 ac_cpp='$CXXCPP $CPPFLAGS'
26329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26334 $as_echo_n "checking for typeof... " >&6; }
26335 if ${ba_cv_have_typeof+:} false; then :
26336 $as_echo_n "(cached) " >&6
26339 if test "$cross_compiling" = yes; then :
26341 ba_cv_have_typeof=no
26345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26346 /* end confdefs.h. */
26348 main(){char *a = 0; a = (typeof a)a;}
26351 if ac_fn_cxx_try_run "$LINENO"; then :
26353 ba_cv_have_typeof=yes
26357 ba_cv_have_typeof=no
26360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26361 conftest.$ac_objext conftest.beam conftest.$ac_ext
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26368 $as_echo "$ba_cv_have_typeof" >&6; }
26369 test $ba_cv_have_typeof = yes &&
26370 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26373 ac_cpp='$CPP $CPPFLAGS'
26374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26380 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26381 if ${ac_cv_c_const+:} false; then :
26382 $as_echo_n "(cached) " >&6
26384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26385 /* end confdefs.h. */
26390 /* FIXME: Include the comments suggested by Paul. */
26391 #ifndef __cplusplus
26392 /* Ultrix mips cc rejects this. */
26393 typedef int charset[2];
26395 /* SunOS 4.1.1 cc rejects this. */
26396 char const *const *pcpcc;
26398 /* NEC SVR4.0.2 mips cc rejects this. */
26399 struct point {int x, y;};
26400 static struct point const zero = {0,0};
26401 /* AIX XL C 1.02.0.0 rejects this.
26402 It does not let you subtract one const X* pointer from another in
26403 an arm of an if-expression whose if-part is not a constant
26405 const char *g = "string";
26406 pcpcc = &g + (g ? g-g : 0);
26407 /* HPUX 7.0 cc rejects these. */
26409 ppc = (char**) pcpcc;
26410 pcpcc = (char const *const *) ppc;
26411 { /* SCO 3.2v4 cc rejects this. */
26413 char const *s = 0 ? (char *) 0 : (char const *) 0;
26418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26419 int x[] = {25, 17};
26420 const int *foo = &x[0];
26423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26424 typedef const int *iptr;
26428 { /* AIX XL C 1.02.0.0 rejects this saying
26429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26430 struct s { int j; const int *ap[3]; };
26431 struct s *b; b->j = 5;
26433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26434 const int foo = 10;
26435 if (!foo) return 0;
26437 return !cs[0] && !zero.x;
26444 if ac_fn_c_try_compile "$LINENO"; then :
26449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26452 $as_echo "$ac_cv_c_const" >&6; }
26453 if test $ac_cv_c_const = no; then
26455 $as_echo "#define const /**/" >>confdefs.h
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26462 if ${ac_cv_c_bigendian+:} false; then :
26463 $as_echo_n "(cached) " >&6
26465 ac_cv_c_bigendian=unknown
26466 # See if we're dealing with a universal compiler.
26467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468 /* end confdefs.h. */
26469 #ifndef __APPLE_CC__
26470 not a universal capable compiler
26475 if ac_fn_c_try_compile "$LINENO"; then :
26477 # Check for potential -arch flags. It is not universal unless
26478 # there are at least two -arch flags with different values.
26481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26482 if test -n "$ac_prev"; then
26484 i?86 | x86_64 | ppc | ppc64)
26485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26488 ac_cv_c_bigendian=universal
26494 elif test "x$ac_word" = "x-arch"; then
26499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26500 if test $ac_cv_c_bigendian = unknown; then
26501 # See if sys/param.h defines the BYTE_ORDER macro.
26502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h. */
26504 #include <sys/types.h>
26505 #include <sys/param.h>
26510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26513 bogus endian macros
26520 if ac_fn_c_try_compile "$LINENO"; then :
26521 # It does; now see whether it defined to BIG_ENDIAN or not.
26522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26523 /* end confdefs.h. */
26524 #include <sys/types.h>
26525 #include <sys/param.h>
26530 #if BYTE_ORDER != BIG_ENDIAN
26538 if ac_fn_c_try_compile "$LINENO"; then :
26539 ac_cv_c_bigendian=yes
26541 ac_cv_c_bigendian=no
26543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26547 if test $ac_cv_c_bigendian = unknown; then
26548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26550 /* end confdefs.h. */
26551 #include <limits.h>
26556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26557 bogus endian macros
26564 if ac_fn_c_try_compile "$LINENO"; then :
26565 # It does; now see whether it defined to _BIG_ENDIAN or not.
26566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26567 /* end confdefs.h. */
26568 #include <limits.h>
26573 #ifndef _BIG_ENDIAN
26581 if ac_fn_c_try_compile "$LINENO"; then :
26582 ac_cv_c_bigendian=yes
26584 ac_cv_c_bigendian=no
26586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26590 if test $ac_cv_c_bigendian = unknown; then
26591 # Compile a test program.
26592 if test "$cross_compiling" = yes; then :
26593 # Try to guess by grepping values from an object file.
26594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26595 /* end confdefs.h. */
26596 short int ascii_mm[] =
26597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26598 short int ascii_ii[] =
26599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26600 int use_ascii (int i) {
26601 return ascii_mm[i] + ascii_ii[i];
26603 short int ebcdic_ii[] =
26604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26605 short int ebcdic_mm[] =
26606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26607 int use_ebcdic (int i) {
26608 return ebcdic_mm[i] + ebcdic_ii[i];
26615 return use_ascii (foo) == use_ebcdic (foo);
26620 if ac_fn_c_try_compile "$LINENO"; then :
26621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26622 ac_cv_c_bigendian=yes
26624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26625 if test "$ac_cv_c_bigendian" = unknown; then
26626 ac_cv_c_bigendian=no
26628 # finding both strings is unlikely to happen, but who knows?
26629 ac_cv_c_bigendian=unknown
26633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26636 /* end confdefs.h. */
26637 $ac_includes_default
26642 /* Are we little or big endian? From Harbison&Steele. */
26646 char c[sizeof (long int)];
26649 return u.c[sizeof (long int) - 1] == 1;
26655 if ac_fn_c_try_run "$LINENO"; then :
26656 ac_cv_c_bigendian=no
26658 ac_cv_c_bigendian=yes
26660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26661 conftest.$ac_objext conftest.beam conftest.$ac_ext
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26667 $as_echo "$ac_cv_c_bigendian" >&6; }
26668 case $ac_cv_c_bigendian in #(
26671 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26675 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26679 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26683 as_fn_error $? "unknown endianness
26684 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26689 $as_echo_n "checking how to get filesystem type... " >&6; }
26691 # The order of these tests is important.
26692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26693 /* end confdefs.h. */
26695 #include <sys/statvfs.h>
26696 #include <sys/fstyp.h>
26699 if ac_fn_c_try_cpp "$LINENO"; then :
26700 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26704 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 <sys/statfs.h>
26710 #include <sys/fstyp.h>
26713 if ac_fn_c_try_cpp "$LINENO"; then :
26714 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26718 rm -f conftest.err conftest.i conftest.$ac_ext
26720 if test $fstype = no; then
26721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26722 /* end confdefs.h. */
26724 #include <sys/statfs.h>
26725 #include <sys/vmount.h>
26728 if ac_fn_c_try_cpp "$LINENO"; then :
26729 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26733 rm -f conftest.err conftest.i conftest.$ac_ext
26735 if test $fstype = no; then
26736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26737 /* end confdefs.h. */
26739 #include <mntent.h>
26742 if ac_fn_c_try_cpp "$LINENO"; then :
26743 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26747 rm -f conftest.err conftest.i conftest.$ac_ext
26749 if test $fstype = no; then
26750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26751 /* end confdefs.h. */
26752 #include <sys/mount.h>
26755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26756 $EGREP "f_type;" >/dev/null 2>&1; then :
26757 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26763 if test $fstype = no; then
26764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765 /* end confdefs.h. */
26767 #include <sys/mount.h>
26768 #include <sys/fs_types.h>
26771 if ac_fn_c_try_cpp "$LINENO"; then :
26772 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26776 rm -f conftest.err conftest.i conftest.$ac_ext
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26779 $as_echo "$fstype" >&6; }
26781 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26782 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26784 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26791 ac_cpp='$CXXCPP $CPPFLAGS'
26792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26796 for ac_func in backtrace
26798 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26799 if test "x$ac_cv_func_backtrace" = xyes; then :
26800 cat >>confdefs.h <<_ACEOF
26801 #define HAVE_BACKTRACE 1
26808 ac_cpp='$CPP $CPPFLAGS'
26809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26815 $as_echo_n "checking return type of signal handlers... " >&6; }
26816 if ${ac_cv_type_signal+:} false; then :
26817 $as_echo_n "(cached) " >&6
26819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h. */
26821 #include <sys/types.h>
26822 #include <signal.h>
26827 return *(signal (0, 0)) (0) == 1;
26832 if ac_fn_c_try_compile "$LINENO"; then :
26833 ac_cv_type_signal=int
26835 ac_cv_type_signal=void
26837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26840 $as_echo "$ac_cv_type_signal" >&6; }
26842 cat >>confdefs.h <<_ACEOF
26843 #define RETSIGTYPE $ac_cv_type_signal
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26849 $as_echo_n "checking for type of signal functions... " >&6; }
26850 if ${bash_cv_signal_vintage+:} false; then :
26851 $as_echo_n "(cached) " >&6
26854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h. */
26856 #include <signal.h>
26862 struct sigaction sa;
26863 sigemptyset(&ss); sigsuspend(&ss);
26864 sigaction(SIGINT, &sa, (struct sigaction *) 0);
26865 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26871 if ac_fn_c_try_link "$LINENO"; then :
26872 bash_cv_signal_vintage="posix"
26875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h. */
26877 #include <signal.h>
26882 int mask = sigmask(SIGINT);
26883 sigsetmask(mask); sigblock(mask); sigpause(mask);
26889 if ac_fn_c_try_link "$LINENO"; then :
26890 bash_cv_signal_vintage="4.2bsd"
26893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26894 /* end confdefs.h. */
26896 #include <signal.h>
26897 RETSIGTYPE foo() { }
26902 int mask = sigmask(SIGINT);
26903 sigset(SIGINT, foo); sigrelse(SIGINT);
26904 sighold(SIGINT); sigpause(SIGINT);
26910 if ac_fn_c_try_link "$LINENO"; then :
26911 bash_cv_signal_vintage="svr3"
26913 bash_cv_signal_vintage="v7"
26916 rm -f core conftest.err conftest.$ac_objext \
26917 conftest$ac_exeext conftest.$ac_ext
26920 rm -f core conftest.err conftest.$ac_objext \
26921 conftest$ac_exeext conftest.$ac_ext
26924 rm -f core conftest.err conftest.$ac_objext \
26925 conftest$ac_exeext conftest.$ac_ext
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26930 $as_echo "$bash_cv_signal_vintage" >&6; }
26931 if test "$bash_cv_signal_vintage" = "posix"; then
26932 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26934 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26935 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26937 elif test "$bash_cv_signal_vintage" = "svr3"; then
26938 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26942 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26943 if test "x$ac_cv_type_mode_t" = xyes; then :
26947 cat >>confdefs.h <<_ACEOF
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26954 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26955 if ${ac_cv_type_uid_t+:} false; then :
26956 $as_echo_n "(cached) " >&6
26958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h. */
26960 #include <sys/types.h>
26963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26964 $EGREP "uid_t" >/dev/null 2>&1; then :
26965 ac_cv_type_uid_t=yes
26967 ac_cv_type_uid_t=no
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26973 $as_echo "$ac_cv_type_uid_t" >&6; }
26974 if test $ac_cv_type_uid_t = no; then
26976 $as_echo "#define uid_t int" >>confdefs.h
26979 $as_echo "#define gid_t int" >>confdefs.h
26983 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26984 if test "x$ac_cv_type_size_t" = xyes; then :
26988 cat >>confdefs.h <<_ACEOF
26989 #define size_t unsigned int
26994 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26995 if test "x$ac_cv_type_pid_t" = xyes; then :
26999 cat >>confdefs.h <<_ACEOF
27005 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27006 if test "x$ac_cv_type_off_t" = xyes; then :
27010 cat >>confdefs.h <<_ACEOF
27011 #define off_t long int
27017 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27018 if test "x$ac_cv_type_intptr_t" = xyes; then :
27020 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27023 for ac_type in 'int' 'long int' 'long long int'; do
27024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27025 /* end confdefs.h. */
27026 $ac_includes_default
27030 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27037 if ac_fn_c_try_compile "$LINENO"; then :
27039 cat >>confdefs.h <<_ACEOF
27040 #define intptr_t $ac_type
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27046 test -z "$ac_type" && break
27052 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27053 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27055 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27058 for ac_type in 'unsigned int' 'unsigned long int' \
27059 'unsigned long long int'; do
27060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27061 /* end confdefs.h. */
27062 $ac_includes_default
27066 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27073 if ac_fn_c_try_compile "$LINENO"; then :
27075 cat >>confdefs.h <<_ACEOF
27076 #define uintptr_t $ac_type
27081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27082 test -z "$ac_type" && break
27087 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27088 if test "x$ac_cv_type_ino_t" = xyes; then :
27092 cat >>confdefs.h <<_ACEOF
27093 #define ino_t unsigned long
27098 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27099 if test "x$ac_cv_type_dev_t" = xyes; then :
27103 cat >>confdefs.h <<_ACEOF
27104 #define dev_t unsigned long
27109 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27110 if test "x$ac_cv_type_daddr_t" = xyes; then :
27114 cat >>confdefs.h <<_ACEOF
27115 #define daddr_t long
27120 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27121 if test "x$ac_cv_type_major_t" = xyes; then :
27125 cat >>confdefs.h <<_ACEOF
27126 #define major_t int
27131 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27132 if test "x$ac_cv_type_minor_t" = xyes; then :
27136 cat >>confdefs.h <<_ACEOF
27137 #define minor_t int
27142 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27143 if test "x$ac_cv_type_ssize_t" = xyes; then :
27147 cat >>confdefs.h <<_ACEOF
27148 #define ssize_t int
27153 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27154 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27156 cat >>confdefs.h <<_ACEOF
27157 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27161 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27164 case " $LIBOBJS " in
27165 *" fileblocks.$ac_objext "* ) ;;
27166 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27173 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27174 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27176 cat >>confdefs.h <<_ACEOF
27177 #define HAVE_STRUCT_STAT_ST_RDEV 1
27181 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27187 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27188 if ${ac_cv_struct_tm+:} false; then :
27189 $as_echo_n "(cached) " >&6
27191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27192 /* end confdefs.h. */
27193 #include <sys/types.h>
27200 int *p = &tm.tm_sec;
27206 if ac_fn_c_try_compile "$LINENO"; then :
27207 ac_cv_struct_tm=time.h
27209 ac_cv_struct_tm=sys/time.h
27211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27214 $as_echo "$ac_cv_struct_tm" >&6; }
27215 if test $ac_cv_struct_tm = sys/time.h; then
27217 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27222 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27223 if ${ac_cv_c_const+:} false; then :
27224 $as_echo_n "(cached) " >&6
27226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27227 /* end confdefs.h. */
27232 /* FIXME: Include the comments suggested by Paul. */
27233 #ifndef __cplusplus
27234 /* Ultrix mips cc rejects this. */
27235 typedef int charset[2];
27237 /* SunOS 4.1.1 cc rejects this. */
27238 char const *const *pcpcc;
27240 /* NEC SVR4.0.2 mips cc rejects this. */
27241 struct point {int x, y;};
27242 static struct point const zero = {0,0};
27243 /* AIX XL C 1.02.0.0 rejects this.
27244 It does not let you subtract one const X* pointer from another in
27245 an arm of an if-expression whose if-part is not a constant
27247 const char *g = "string";
27248 pcpcc = &g + (g ? g-g : 0);
27249 /* HPUX 7.0 cc rejects these. */
27251 ppc = (char**) pcpcc;
27252 pcpcc = (char const *const *) ppc;
27253 { /* SCO 3.2v4 cc rejects this. */
27255 char const *s = 0 ? (char *) 0 : (char const *) 0;
27260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27261 int x[] = {25, 17};
27262 const int *foo = &x[0];
27265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27266 typedef const int *iptr;
27270 { /* AIX XL C 1.02.0.0 rejects this saying
27271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27272 struct s { int j; const int *ap[3]; };
27273 struct s *b; b->j = 5;
27275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27276 const int foo = 10;
27277 if (!foo) return 0;
27279 return !cs[0] && !zero.x;
27286 if ac_fn_c_try_compile "$LINENO"; then :
27291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27294 $as_echo "$ac_cv_c_const" >&6; }
27295 if test $ac_cv_c_const = no; then
27297 $as_echo "#define const /**/" >>confdefs.h
27302 # The cast to long int works around a bug in the HP C Compiler
27303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27305 # This bug is HP SR number 8606223364.
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27307 $as_echo_n "checking size of char... " >&6; }
27308 if ${ac_cv_sizeof_char+:} false; then :
27309 $as_echo_n "(cached) " >&6
27311 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27314 if test "$ac_cv_type_char" = yes; then
27315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27317 as_fn_error 77 "cannot compute sizeof (char)
27318 See \`config.log' for more details" "$LINENO" 5; }
27320 ac_cv_sizeof_char=0
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27326 $as_echo "$ac_cv_sizeof_char" >&6; }
27330 cat >>confdefs.h <<_ACEOF
27331 #define SIZEOF_CHAR $ac_cv_sizeof_char
27335 # The cast to long int works around a bug in the HP C Compiler
27336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27338 # This bug is HP SR number 8606223364.
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27340 $as_echo_n "checking size of short int... " >&6; }
27341 if ${ac_cv_sizeof_short_int+:} false; then :
27342 $as_echo_n "(cached) " >&6
27344 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27347 if test "$ac_cv_type_short_int" = yes; then
27348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27350 as_fn_error 77 "cannot compute sizeof (short int)
27351 See \`config.log' for more details" "$LINENO" 5; }
27353 ac_cv_sizeof_short_int=0
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27359 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27363 cat >>confdefs.h <<_ACEOF
27364 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27368 # The cast to long int works around a bug in the HP C Compiler
27369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27371 # This bug is HP SR number 8606223364.
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27373 $as_echo_n "checking size of int... " >&6; }
27374 if ${ac_cv_sizeof_int+:} false; then :
27375 $as_echo_n "(cached) " >&6
27377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27380 if test "$ac_cv_type_int" = yes; then
27381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27383 as_fn_error 77 "cannot compute sizeof (int)
27384 See \`config.log' for more details" "$LINENO" 5; }
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27392 $as_echo "$ac_cv_sizeof_int" >&6; }
27396 cat >>confdefs.h <<_ACEOF
27397 #define SIZEOF_INT $ac_cv_sizeof_int
27401 # The cast to long int works around a bug in the HP C Compiler
27402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27404 # This bug is HP SR number 8606223364.
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27406 $as_echo_n "checking size of long int... " >&6; }
27407 if ${ac_cv_sizeof_long_int+:} false; then :
27408 $as_echo_n "(cached) " >&6
27410 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27413 if test "$ac_cv_type_long_int" = yes; then
27414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27416 as_fn_error 77 "cannot compute sizeof (long int)
27417 See \`config.log' for more details" "$LINENO" 5; }
27419 ac_cv_sizeof_long_int=0
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27425 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27429 cat >>confdefs.h <<_ACEOF
27430 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27434 # The cast to long int works around a bug in the HP C Compiler
27435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27437 # This bug is HP SR number 8606223364.
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27439 $as_echo_n "checking size of long long int... " >&6; }
27440 if ${ac_cv_sizeof_long_long_int+:} false; then :
27441 $as_echo_n "(cached) " >&6
27443 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27446 if test "$ac_cv_type_long_long_int" = yes; then
27447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27449 as_fn_error 77 "cannot compute sizeof (long long int)
27450 See \`config.log' for more details" "$LINENO" 5; }
27452 ac_cv_sizeof_long_long_int=0
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27458 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27462 cat >>confdefs.h <<_ACEOF
27463 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27467 # The cast to long int works around a bug in the HP C Compiler
27468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27470 # This bug is HP SR number 8606223364.
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27472 $as_echo_n "checking size of int *... " >&6; }
27473 if ${ac_cv_sizeof_int_p+:} false; then :
27474 $as_echo_n "(cached) " >&6
27476 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27479 if test "$ac_cv_type_int_p" = yes; then
27480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27482 as_fn_error 77 "cannot compute sizeof (int *)
27483 See \`config.log' for more details" "$LINENO" 5; }
27485 ac_cv_sizeof_int_p=0
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27491 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27495 cat >>confdefs.h <<_ACEOF
27496 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27502 $as_echo_n "checking for u_int type... " >&6; }
27503 if ${ac_cv_have_u_int+:} false; then :
27504 $as_echo_n "(cached) " >&6
27507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27508 /* end confdefs.h. */
27510 #include <sys/types.h>
27522 if ac_fn_c_try_compile "$LINENO"; then :
27524 ac_cv_have_u_int="yes"
27528 ac_cv_have_u_int="no"
27532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27537 $as_echo "$ac_cv_have_u_int" >&6; }
27538 if test "x$ac_cv_have_u_int" = "xyes" ; then
27539 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27545 $as_echo_n "checking for intmax_t type... " >&6; }
27546 if ${ac_cv_have_intmax_t+:} false; then :
27547 $as_echo_n "(cached) " >&6
27550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h. */
27553 #include <sys/types.h>
27565 if ac_fn_c_try_compile "$LINENO"; then :
27567 ac_cv_have_intmax_t="yes"
27571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27572 /* end confdefs.h. */
27574 #include <stdint.h>
27586 if ac_fn_c_try_compile "$LINENO"; then :
27588 ac_cv_have_intmax_t="yes"
27592 ac_cv_have_intmax_t="no"
27596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27605 $as_echo "$ac_cv_have_intmax_t" >&6; }
27606 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27607 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27613 $as_echo_n "checking for u_intmax_t type... " >&6; }
27614 if ${ac_cv_have_u_intmax_t+:} false; then :
27615 $as_echo_n "(cached) " >&6
27618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h. */
27621 #include <sys/types.h>
27627 u_intmax_t a; a = 1;
27633 if ac_fn_c_try_compile "$LINENO"; then :
27635 ac_cv_have_u_intmax_t="yes"
27639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27640 /* end confdefs.h. */
27642 #include <stdint.h>
27648 u_intmax_t a; a = 1;
27654 if ac_fn_c_try_compile "$LINENO"; then :
27656 ac_cv_have_u_intmax_t="yes"
27660 ac_cv_have_u_intmax_t="no"
27664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27673 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27674 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27675 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27681 $as_echo_n "checking for intXX_t types... " >&6; }
27682 if ${ac_cv_have_intxx_t+:} false; then :
27683 $as_echo_n "(cached) " >&6
27686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27687 /* end confdefs.h. */
27689 #include <sys/types.h>
27695 int8_t a; int16_t b; int32_t c; a = b = c = 1;
27701 if ac_fn_c_try_compile "$LINENO"; then :
27703 ac_cv_have_intxx_t="yes"
27707 ac_cv_have_intxx_t="no"
27711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27716 $as_echo "$ac_cv_have_intxx_t" >&6; }
27717 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27718 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27724 $as_echo_n "checking for int64_t type... " >&6; }
27725 if ${ac_cv_have_int64_t+:} false; then :
27726 $as_echo_n "(cached) " >&6
27729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27730 /* end confdefs.h. */
27732 #include <sys/types.h>
27744 if ac_fn_c_try_compile "$LINENO"; then :
27746 ac_cv_have_int64_t="yes"
27750 ac_cv_have_int64_t="no"
27754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27759 $as_echo "$ac_cv_have_int64_t" >&6; }
27760 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27761 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27767 $as_echo_n "checking for u_intXX_t types... " >&6; }
27768 if ${ac_cv_have_u_intxx_t+:} false; then :
27769 $as_echo_n "(cached) " >&6
27772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27773 /* end confdefs.h. */
27775 #include <sys/types.h>
27781 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27787 if ac_fn_c_try_compile "$LINENO"; then :
27789 ac_cv_have_u_intxx_t="yes"
27793 ac_cv_have_u_intxx_t="no"
27797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27802 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27803 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27804 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27810 $as_echo_n "checking for u_int64_t types... " >&6; }
27811 if ${ac_cv_have_u_int64_t+:} false; then :
27812 $as_echo_n "(cached) " >&6
27815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816 /* end confdefs.h. */
27818 #include <sys/types.h>
27824 u_int64_t a; a = 1;
27830 if ac_fn_c_try_compile "$LINENO"; then :
27832 ac_cv_have_u_int64_t="yes"
27836 ac_cv_have_u_int64_t="no"
27840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27845 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27846 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27847 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27852 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27853 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27856 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27858 /* end confdefs.h. */
27860 #include <sys/bitypes.h>
27866 int8_t a; int16_t b; int32_t c;
27867 u_int8_t e; u_int16_t f; u_int32_t g;
27868 a = b = c = e = f = g = 1;
27874 if ac_fn_c_try_compile "$LINENO"; then :
27876 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27878 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27880 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27883 $as_echo "yes" >&6; }
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27888 $as_echo "no" >&6; }
27892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27895 if test -z "$have_u_intxx_t" ; then
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27897 $as_echo_n "checking for uintXX_t types... " >&6; }
27898 if ${ac_cv_have_uintxx_t+:} false; then :
27899 $as_echo_n "(cached) " >&6
27902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27903 /* end confdefs.h. */
27905 #include <sys/types.h>
27911 uint8_t a; uint16_t b;
27912 uint32_t c; a = b = c = 1;
27918 if ac_fn_c_try_compile "$LINENO"; then :
27920 ac_cv_have_uintxx_t="yes"
27924 ac_cv_have_uintxx_t="no"
27928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27933 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27934 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27935 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27940 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27941 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27944 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27946 /* end confdefs.h. */
27948 #include <sys/bitypes.h>
27954 int64_t a; u_int64_t b;
27961 if ac_fn_c_try_compile "$LINENO"; then :
27963 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27965 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27968 $as_echo "yes" >&6; }
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27973 $as_echo "no" >&6; }
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27980 if (test -z "$have_uintxx_t" && \
27981 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27984 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27986 /* end confdefs.h. */
27988 #include <sys/bitypes.h>
27994 uint8_t a; uint16_t b;
27995 uint32_t c; a = b = c = 1;
28001 if ac_fn_c_try_compile "$LINENO"; then :
28003 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28006 $as_echo "yes" >&6; }
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28011 $as_echo "no" >&6; }
28015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28035 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28036 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28037 cat >>confdefs.h <<_ACEOF
28038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28042 echo 'configure: cannot find needed function.'; exit 1
28048 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28051 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28053 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28058 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28059 if test "x$ac_cv_func_closefrom" = xyes; then :
28061 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28065 for ac_func in getpagesize
28067 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28068 if test "x$ac_cv_func_getpagesize" = xyes; then :
28069 cat >>confdefs.h <<_ACEOF
28070 #define HAVE_GETPAGESIZE 1
28073 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28078 for ac_func in malloc_trim
28080 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28081 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28082 cat >>confdefs.h <<_ACEOF
28083 #define HAVE_MALLOC_TRIM 1
28086 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28092 for ac_func in fchdir
28094 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28095 if test "x$ac_cv_func_fchdir" = xyes; then :
28096 cat >>confdefs.h <<_ACEOF
28097 #define HAVE_FCHDIR 1
28099 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28104 for ac_func in strtoll
28106 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28107 if test "x$ac_cv_func_strtoll" = xyes; then :
28108 cat >>confdefs.h <<_ACEOF
28109 #define HAVE_STRTOLL 1
28111 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28116 for ac_func in posix_fadvise
28118 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28119 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28120 cat >>confdefs.h <<_ACEOF
28121 #define HAVE_POSIX_FADVISE 1
28127 for ac_func in fdatasync
28129 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28130 if test "x$ac_cv_func_fdatasync" = xyes; then :
28131 cat >>confdefs.h <<_ACEOF
28132 #define HAVE_FDATASYNC 1
28139 for ac_func in chflags
28141 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28142 if test "x$ac_cv_func_chflags" = xyes; then :
28143 cat >>confdefs.h <<_ACEOF
28144 #define HAVE_CHFLAGS 1
28151 for ac_func in snprintf vsnprintf gethostid fseeko
28153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28154 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28155 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28156 cat >>confdefs.h <<_ACEOF
28157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28165 $as_echo_n "checking for va_copy... " >&6; }
28166 if ${ba_cv_va_copy+:} false; then :
28167 $as_echo_n "(cached) " >&6
28170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28171 /* end confdefs.h. */
28173 #include <stdarg.h>
28174 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28175 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28181 call_use_va_copy(1,2,3)
28187 if ac_fn_c_try_link "$LINENO"; then :
28197 rm -f core conftest.err conftest.$ac_objext \
28198 conftest$ac_exeext conftest.$ac_ext
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28203 $as_echo "$ba_cv_va_copy" >&6; }
28204 test $ba_cv_va_copy = yes &&
28205 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28208 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28213 cat >>confdefs.h <<_ACEOF
28214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28221 # If resolver functions are not in libc check for -lnsl or -lresolv.
28222 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28223 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28225 $as_echo "using libc's resolver" >&6; }
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28228 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28229 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28230 $as_echo_n "(cached) " >&6
28232 ac_check_lib_save_LIBS=$LIBS
28234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h. */
28237 /* Override any GCC internal prototype to avoid an error.
28238 Use char because int might match the return type of a GCC
28239 builtin and then its argument prototype would still apply. */
28243 char gethostbyname_r ();
28247 return gethostbyname_r ();
28252 if ac_fn_c_try_link "$LINENO"; then :
28253 ac_cv_lib_nsl_gethostbyname_r=yes
28255 ac_cv_lib_nsl_gethostbyname_r=no
28257 rm -f core conftest.err conftest.$ac_objext \
28258 conftest$ac_exeext conftest.$ac_ext
28259 LIBS=$ac_check_lib_save_LIBS
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28262 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28263 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28264 cat >>confdefs.h <<_ACEOF
28265 #define HAVE_LIBNSL 1
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28273 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28274 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28275 $as_echo_n "(cached) " >&6
28277 ac_check_lib_save_LIBS=$LIBS
28278 LIBS="-lresolv $LIBS"
28279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28280 /* end confdefs.h. */
28282 /* Override any GCC internal prototype to avoid an error.
28283 Use char because int might match the return type of a GCC
28284 builtin and then its argument prototype would still apply. */
28288 char gethostbyname_r ();
28292 return gethostbyname_r ();
28297 if ac_fn_c_try_link "$LINENO"; then :
28298 ac_cv_lib_resolv_gethostbyname_r=yes
28300 ac_cv_lib_resolv_gethostbyname_r=no
28302 rm -f core conftest.err conftest.$ac_objext \
28303 conftest$ac_exeext conftest.$ac_ext
28304 LIBS=$ac_check_lib_save_LIBS
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28307 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28308 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28309 cat >>confdefs.h <<_ACEOF
28310 #define HAVE_LIBRESOLV 1
28313 LIBS="-lresolv $LIBS"
28320 for ac_func in inet_pton
28322 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28323 if test "x$ac_cv_func_inet_pton" = xyes; then :
28324 cat >>confdefs.h <<_ACEOF
28325 #define HAVE_INET_PTON 1
28327 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28332 for ac_func in inet_ntop
28334 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28335 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28336 cat >>confdefs.h <<_ACEOF
28337 #define HAVE_INET_NTOP 1
28339 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28344 for ac_func in gethostbyname2
28346 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28347 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28348 cat >>confdefs.h <<_ACEOF
28349 #define HAVE_GETHOSTBYNAME2 1
28351 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28356 for ac_func in getnameinfo
28358 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28359 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28360 cat >>confdefs.h <<_ACEOF
28361 #define HAVE_GETNAMEINFO 1
28363 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28371 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28372 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28373 $as_echo_n "(cached) " >&6
28376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28377 /* end confdefs.h. */
28379 #include <sys/socket.h>
28385 struct sockaddr s; s.sa_len;
28391 if ac_fn_c_try_compile "$LINENO"; then :
28393 ac_cv_struct_sockaddr_sa_len=yes
28396 ac_cv_struct_sockaddr_sa_len=no
28400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28405 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28407 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28409 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28414 $as_echo_n "checking for working getaddrinfo... " >&6; }
28415 if ${ac_cv_working_getaddrinfo+:} false; then :
28416 $as_echo_n "(cached) " >&6
28419 if test "$cross_compiling" = yes; then :
28421 ac_cv_working_getaddrinfo="yes"
28425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28426 /* end confdefs.h. */
28429 #include <string.h>
28430 #include <sys/types.h>
28431 #include <sys/socket.h>
28434 struct addrinfo hints, *ai;
28437 memset(&hints, 0, sizeof(hints));
28438 hints.ai_family = AF_UNSPEC;
28439 hints.ai_socktype = SOCK_STREAM;
28440 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28444 if (ai->ai_addr->sa_family != AF_INET) {
28451 if ac_fn_c_try_run "$LINENO"; then :
28453 ac_cv_working_getaddrinfo="yes"
28457 ac_cv_working_getaddrinfo="no"
28460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28461 conftest.$ac_objext conftest.beam conftest.$ac_ext
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28468 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28469 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28470 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28472 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28477 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28478 if test "$ac_cv_func_gai_strerror" != "yes"; then
28479 ac_cv_working_getaddrinfo="no"
28482 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28487 for ac_func in strftime
28489 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28490 if test "x$ac_cv_func_strftime" = xyes; then :
28491 cat >>confdefs.h <<_ACEOF
28492 #define HAVE_STRFTIME 1
28496 # strftime is in -lintl on SCO UNIX.
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28498 $as_echo_n "checking for strftime in -lintl... " >&6; }
28499 if ${ac_cv_lib_intl_strftime+:} false; then :
28500 $as_echo_n "(cached) " >&6
28502 ac_check_lib_save_LIBS=$LIBS
28503 LIBS="-lintl $LIBS"
28504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28505 /* end confdefs.h. */
28507 /* Override any GCC internal prototype to avoid an error.
28508 Use char because int might match the return type of a GCC
28509 builtin and then its argument prototype would still apply. */
28517 return strftime ();
28522 if ac_fn_c_try_link "$LINENO"; then :
28523 ac_cv_lib_intl_strftime=yes
28525 ac_cv_lib_intl_strftime=no
28527 rm -f core conftest.err conftest.$ac_objext \
28528 conftest$ac_exeext conftest.$ac_ext
28529 LIBS=$ac_check_lib_save_LIBS
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28532 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28533 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28534 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28536 LIBS="-lintl $LIBS"
28542 for ac_func in vprintf
28544 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28545 if test "x$ac_cv_func_vprintf" = xyes; then :
28546 cat >>confdefs.h <<_ACEOF
28547 #define HAVE_VPRINTF 1
28550 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28551 if test "x$ac_cv_func__doprnt" = xyes; then :
28553 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28561 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28562 # for constant arguments. Useless!
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28564 $as_echo_n "checking for working alloca.h... " >&6; }
28565 if ${ac_cv_working_alloca_h+:} false; then :
28566 $as_echo_n "(cached) " >&6
28568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28569 /* end confdefs.h. */
28570 #include <alloca.h>
28574 char *p = (char *) alloca (2 * sizeof (int));
28580 if ac_fn_c_try_link "$LINENO"; then :
28581 ac_cv_working_alloca_h=yes
28583 ac_cv_working_alloca_h=no
28585 rm -f core conftest.err conftest.$ac_objext \
28586 conftest$ac_exeext conftest.$ac_ext
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28589 $as_echo "$ac_cv_working_alloca_h" >&6; }
28590 if test $ac_cv_working_alloca_h = yes; then
28592 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28597 $as_echo_n "checking for alloca... " >&6; }
28598 if ${ac_cv_func_alloca_works+:} false; then :
28599 $as_echo_n "(cached) " >&6
28601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28602 /* end confdefs.h. */
28604 # define alloca __builtin_alloca
28607 # include <malloc.h>
28608 # define alloca _alloca
28610 # ifdef HAVE_ALLOCA_H
28611 # include <alloca.h>
28616 # ifndef alloca /* predefined by HP cc +Olibcalls */
28617 void *alloca (size_t);
28627 char *p = (char *) alloca (1);
28633 if ac_fn_c_try_link "$LINENO"; then :
28634 ac_cv_func_alloca_works=yes
28636 ac_cv_func_alloca_works=no
28638 rm -f core conftest.err conftest.$ac_objext \
28639 conftest$ac_exeext conftest.$ac_ext
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28642 $as_echo "$ac_cv_func_alloca_works" >&6; }
28644 if test $ac_cv_func_alloca_works = yes; then
28646 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28649 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28650 # that cause trouble. Some versions do not even contain alloca or
28651 # contain a buggy version. If you still want to use their alloca,
28652 # use ar to extract alloca.o from them instead of compiling alloca.c.
28654 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28656 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28660 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28661 if ${ac_cv_os_cray+:} false; then :
28662 $as_echo_n "(cached) " >&6
28664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28665 /* end confdefs.h. */
28666 #if defined CRAY && ! defined CRAY2
28673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28674 $EGREP "webecray" >/dev/null 2>&1; then :
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28683 $as_echo "$ac_cv_os_cray" >&6; }
28684 if test $ac_cv_os_cray = yes; then
28685 for ac_func in _getb67 GETB67 getb67; do
28686 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28687 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28688 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28690 cat >>confdefs.h <<_ACEOF
28691 #define CRAY_STACKSEG_END $ac_func
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28701 $as_echo_n "checking stack direction for C alloca... " >&6; }
28702 if ${ac_cv_c_stack_direction+:} false; then :
28703 $as_echo_n "(cached) " >&6
28705 if test "$cross_compiling" = yes; then :
28706 ac_cv_c_stack_direction=0
28708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28709 /* end confdefs.h. */
28710 $ac_includes_default
28712 find_stack_direction ()
28714 static char *addr = 0;
28719 return find_stack_direction ();
28722 return (&dummy > addr) ? 1 : -1;
28728 return find_stack_direction () < 0;
28731 if ac_fn_c_try_run "$LINENO"; then :
28732 ac_cv_c_stack_direction=1
28734 ac_cv_c_stack_direction=-1
28736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28737 conftest.$ac_objext conftest.beam conftest.$ac_ext
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28742 $as_echo "$ac_cv_c_stack_direction" >&6; }
28743 cat >>confdefs.h <<_ACEOF
28744 #define STACK_DIRECTION $ac_cv_c_stack_direction
28750 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28751 # -lseq on Dynix/PTX, -lgen on Unixware.
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28753 $as_echo_n "checking for library containing getmntent... " >&6; }
28754 if ${ac_cv_search_getmntent+:} false; then :
28755 $as_echo_n "(cached) " >&6
28757 ac_func_search_save_LIBS=$LIBS
28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h. */
28761 /* Override any GCC internal prototype to avoid an error.
28762 Use char because int might match the return type of a GCC
28763 builtin and then its argument prototype would still apply. */
28771 return getmntent ();
28776 for ac_lib in '' sun seq gen; do
28777 if test -z "$ac_lib"; then
28778 ac_res="none required"
28781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28783 if ac_fn_c_try_link "$LINENO"; then :
28784 ac_cv_search_getmntent=$ac_res
28786 rm -f core conftest.err conftest.$ac_objext \
28788 if ${ac_cv_search_getmntent+:} false; then :
28792 if ${ac_cv_search_getmntent+:} false; then :
28795 ac_cv_search_getmntent=no
28797 rm conftest.$ac_ext
28798 LIBS=$ac_func_search_save_LIBS
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28801 $as_echo "$ac_cv_search_getmntent" >&6; }
28802 ac_res=$ac_cv_search_getmntent
28803 if test "$ac_res" != no; then :
28804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28805 ac_cv_func_getmntent=yes
28807 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28810 ac_cv_func_getmntent=no
28814 for ac_func in getmntinfo
28816 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28817 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28818 cat >>confdefs.h <<_ACEOF
28819 #define HAVE_GETMNTINFO 1
28821 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28827 $as_echo_n "checking whether closedir returns void... " >&6; }
28828 if ${ac_cv_func_closedir_void+:} false; then :
28829 $as_echo_n "(cached) " >&6
28831 if test "$cross_compiling" = yes; then :
28832 ac_cv_func_closedir_void=yes
28834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28835 /* end confdefs.h. */
28836 $ac_includes_default
28837 #include <$ac_header_dirent>
28838 #ifndef __cplusplus
28845 return closedir (opendir (".")) != 0;
28850 if ac_fn_c_try_run "$LINENO"; then :
28851 ac_cv_func_closedir_void=no
28853 ac_cv_func_closedir_void=yes
28855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28856 conftest.$ac_objext conftest.beam conftest.$ac_ext
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28861 $as_echo "$ac_cv_func_closedir_void" >&6; }
28862 if test $ac_cv_func_closedir_void = yes; then
28864 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28869 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28870 if ${ac_cv_func_setpgrp_void+:} false; then :
28871 $as_echo_n "(cached) " >&6
28873 if test "$cross_compiling" = yes; then :
28874 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28877 /* end confdefs.h. */
28878 $ac_includes_default
28882 /* If this system has a BSD-style setpgrp which takes arguments,
28883 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28884 exit successfully. */
28885 return setpgrp (1,1) != -1;
28890 if ac_fn_c_try_run "$LINENO"; then :
28891 ac_cv_func_setpgrp_void=no
28893 ac_cv_func_setpgrp_void=yes
28895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28896 conftest.$ac_objext conftest.beam conftest.$ac_ext
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28901 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28902 if test $ac_cv_func_setpgrp_void = yes; then
28904 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28907 # AC_FUNC_FNMATCH dnl use local version
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28910 $as_echo_n "checking for gettext in -lintl... " >&6; }
28911 if ${ac_cv_lib_intl_gettext+:} false; then :
28912 $as_echo_n "(cached) " >&6
28914 ac_check_lib_save_LIBS=$LIBS
28915 LIBS="-lintl $LIBS"
28916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28917 /* end confdefs.h. */
28919 /* Override any GCC internal prototype to avoid an error.
28920 Use char because int might match the return type of a GCC
28921 builtin and then its argument prototype would still apply. */
28934 if ac_fn_c_try_link "$LINENO"; then :
28935 ac_cv_lib_intl_gettext=yes
28937 ac_cv_lib_intl_gettext=no
28939 rm -f core conftest.err conftest.$ac_objext \
28940 conftest$ac_exeext conftest.$ac_ext
28941 LIBS=$ac_check_lib_save_LIBS
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28944 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28945 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28946 LIBS="$LIBS -lintl"
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28951 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28952 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28953 $as_echo_n "(cached) " >&6
28955 ac_check_lib_save_LIBS=$LIBS
28957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958 /* end confdefs.h. */
28960 /* Override any GCC internal prototype to avoid an error.
28961 Use char because int might match the return type of a GCC
28962 builtin and then its argument prototype would still apply. */
28970 return getpwnam ();
28975 if ac_fn_c_try_link "$LINENO"; then :
28976 ac_cv_lib_sun_getpwnam=yes
28978 ac_cv_lib_sun_getpwnam=no
28980 rm -f core conftest.err conftest.$ac_objext \
28981 conftest$ac_exeext conftest.$ac_ext
28982 LIBS=$ac_check_lib_save_LIBS
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28985 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28986 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28987 cat >>confdefs.h <<_ACEOF
28988 #define HAVE_LIBSUN 1
28996 for ac_header in zlib.h
28998 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28999 if test "x$ac_cv_header_zlib_h" = xyes; then :
29000 cat >>confdefs.h <<_ACEOF
29001 #define HAVE_ZLIB_H 1
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29009 $as_echo_n "checking for deflate in -lz... " >&6; }
29010 if ${ac_cv_lib_z_deflate+:} false; then :
29011 $as_echo_n "(cached) " >&6
29013 ac_check_lib_save_LIBS=$LIBS
29015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29016 /* end confdefs.h. */
29018 /* Override any GCC internal prototype to avoid an error.
29019 Use char because int might match the return type of a GCC
29020 builtin and then its argument prototype would still apply. */
29033 if ac_fn_c_try_link "$LINENO"; then :
29034 ac_cv_lib_z_deflate=yes
29036 ac_cv_lib_z_deflate=no
29038 rm -f core conftest.err conftest.$ac_objext \
29039 conftest$ac_exeext conftest.$ac_ext
29040 LIBS=$ac_check_lib_save_LIBS
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29043 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29044 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29049 if test x$ZLIBS = x-lz; then
29050 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29059 # Check whether --enable-afs was given.
29060 if test "${enable_afs+set}" = set; then :
29061 enableval=$enable_afs;
29062 if test x$enableval = xyes; then
29064 elif test x$enableval = xno; then
29073 if test x$support_afs = xyes -o x$support_afs = xauto; then
29075 # Check whether --with-afsdir was given.
29076 if test "${with_afsdir+set}" = set; then :
29077 withval=$with_afsdir; with_afsdir=$withval
29082 if test x$with_afsdir = x; then
29083 for root in /usr /usr/local; do
29084 if test -d ${root}/include/afs/ ; then
29085 with_afsdir=${root}
29088 if test -d ${root}/include/openafs/afs/ ; then
29089 with_afsdir=${root}
29095 if test -d ${with_afsdir}/include/afs/ ; then
29096 AFS_CFLAGS="-I${with_afsdir}/include"
29098 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29099 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29103 saved_CFLAGS="${CFLAGS}"
29104 saved_CPPFLAGS="${CPPFLAGS}"
29105 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29106 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29108 for ac_header in afs/afsint.h
29110 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29111 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29112 cat >>confdefs.h <<_ACEOF
29113 #define HAVE_AFS_AFSINT_H 1
29120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29121 /* end confdefs.h. */
29123 #include <afs/afsint.h>
29124 #include <afs/venus.h>
29127 if ac_fn_c_try_cpp "$LINENO"; then :
29129 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29133 rm -f conftest.err conftest.i conftest.$ac_ext
29135 CFLAGS="${saved_CFLAGS}"
29136 CPPFLAGS="${saved_CPPFLAGS}"
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29139 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29140 for dir in ${with_afsdir}/lib \
29141 ${with_afsdir}/lib/afs \
29142 ${with_afsdir}/lib/openafs \
29143 ${with_afsdir}/lib64 \
29144 ${with_afsdir}/lib64/afs \
29145 ${with_afsdir}/lib64/openafs
29147 for arch_type in .a .so
29149 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29151 if test $pkg = 0; then
29153 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29159 if test $have_afs = yes; then
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29161 $as_echo "yes" >&6; }
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29164 $as_echo "no" >&6; }
29167 if test x$support_afs = xyes -a $have_afs != yes; then
29168 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29169 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29171 if test $have_afs = yes; then
29173 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29176 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29185 # Check whether --enable-lzo was given.
29186 if test "${enable_lzo+set}" = set; then :
29187 enableval=$enable_lzo;
29188 if test x$enableval = xno; then
29201 if test x$support_lzo = xyes; then
29203 # Check whether --with-lzo was given.
29204 if test "${with_lzo+set}" = set; then :
29206 case "$with_lzo" in
29211 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29212 LZO_INC="-I${with_lzo}/include"
29213 LZO_LDFLAGS="-L${with_lzo}/lib"
29214 with_lzo="${with_lzo}/include"
29216 with_lzo="/usr/include"
29219 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29220 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29221 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29224 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29226 LZO_LIBS="${LZO_LDFLAGS} -lzo2"
29232 echo "lzoconf.h not found. lzo turned off ..."
29244 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29245 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29247 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29248 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29251 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29252 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29253 $as_echo_n "(cached) " >&6
29255 ac_check_lib_save_LIBS=$LIBS
29256 LIBS="-llzo2 $LIBS"
29257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29258 /* end confdefs.h. */
29260 /* Override any GCC internal prototype to avoid an error.
29261 Use char because int might match the return type of a GCC
29262 builtin and then its argument prototype would still apply. */
29266 char lzo1x_1_compress ();
29270 return lzo1x_1_compress ();
29275 if ac_fn_c_try_link "$LINENO"; then :
29276 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29278 ac_cv_lib_lzo2_lzo1x_1_compress=no
29280 rm -f core conftest.err conftest.$ac_objext \
29281 conftest$ac_exeext conftest.$ac_ext
29282 LIBS=$ac_check_lib_save_LIBS
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29285 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29286 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29290 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29314 # Check whether --enable-acl was given.
29315 if test "${enable_acl+set}" = set; then :
29316 enableval=$enable_acl;
29317 if test x$enableval = xyes; then
29319 elif test x$enableval = xno; then
29328 have_extended_acl=no
29329 if test x$support_acl = xyes -o x$support_acl = xauto; then
29330 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29331 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29333 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29339 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29340 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29348 if test $have_acl = no; then
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29350 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29351 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29352 $as_echo_n "(cached) " >&6
29354 ac_check_lib_save_LIBS=$LIBS
29356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29357 /* end confdefs.h. */
29359 /* Override any GCC internal prototype to avoid an error.
29360 Use char because int might match the return type of a GCC
29361 builtin and then its argument prototype would still apply. */
29365 char acl_get_file ();
29369 return acl_get_file ();
29374 if ac_fn_c_try_link "$LINENO"; then :
29375 ac_cv_lib_acl_acl_get_file=yes
29377 ac_cv_lib_acl_acl_get_file=no
29379 rm -f core conftest.err conftest.$ac_objext \
29380 conftest$ac_exeext conftest.$ac_ext
29381 LIBS=$ac_check_lib_save_LIBS
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29384 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29385 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29388 if test $have_afs = yes; then
29389 if test -d /usr/lib64/; then
29390 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29392 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29395 FDLIBS="-lacl $FDLIBS"
29403 if test $have_acl = no -a \
29404 x${HAVE_OSF1_OS_TRUE} = x; then
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29406 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29407 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29408 $as_echo_n "(cached) " >&6
29410 ac_check_lib_save_LIBS=$LIBS
29411 LIBS="-lpacl $LIBS"
29412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29413 /* end confdefs.h. */
29415 /* Override any GCC internal prototype to avoid an error.
29416 Use char because int might match the return type of a GCC
29417 builtin and then its argument prototype would still apply. */
29421 char acl_get_file ();
29425 return acl_get_file ();
29430 if ac_fn_c_try_link "$LINENO"; then :
29431 ac_cv_lib_pacl_acl_get_file=yes
29433 ac_cv_lib_pacl_acl_get_file=no
29435 rm -f core conftest.err conftest.$ac_objext \
29436 conftest$ac_exeext conftest.$ac_ext
29437 LIBS=$ac_check_lib_save_LIBS
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29440 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29441 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29444 FDLIBS="-lpacl $FDLIBS"
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29451 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29452 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29453 if test $? = 0; then
29455 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29458 $as_echo "yes" >&6; }
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29461 $as_echo "no" >&6; }
29465 if test $have_acl = yes -a \
29466 x${HAVE_DARWIN_OS_TRUE} = x; then
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29468 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29469 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29470 if test $? = 0; then
29472 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29475 $as_echo "yes" >&6; }
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29478 $as_echo "no" >&6; }
29482 if test $have_acl = yes -a \
29483 x${HAVE_FREEBSD_OS_TRUE} = x; then
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29485 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29486 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29487 if test $? = 0; then
29489 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29492 $as_echo "yes" >&6; }
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29495 $as_echo "no" >&6; }
29499 if test $have_acl = no -a \
29500 x${HAVE_SUN_OS_TRUE} = x; then
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29502 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29503 if ${ac_cv_lib_sec_acltotext+:} false; then :
29504 $as_echo_n "(cached) " >&6
29506 ac_check_lib_save_LIBS=$LIBS
29508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29509 /* end confdefs.h. */
29511 /* Override any GCC internal prototype to avoid an error.
29512 Use char because int might match the return type of a GCC
29513 builtin and then its argument prototype would still apply. */
29521 return acltotext ();
29526 if ac_fn_c_try_link "$LINENO"; then :
29527 ac_cv_lib_sec_acltotext=yes
29529 ac_cv_lib_sec_acltotext=no
29531 rm -f core conftest.err conftest.$ac_objext \
29532 conftest$ac_exeext conftest.$ac_ext
29533 LIBS=$ac_check_lib_save_LIBS
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29536 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29537 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29540 FDLIBS="-lsec $FDLIBS"
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29543 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29544 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29545 $as_echo_n "(cached) " >&6
29547 ac_check_lib_save_LIBS=$LIBS
29549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29550 /* end confdefs.h. */
29552 /* Override any GCC internal prototype to avoid an error.
29553 Use char because int might match the return type of a GCC
29554 builtin and then its argument prototype would still apply. */
29558 char acl_totext ();
29562 return acl_totext ();
29567 if ac_fn_c_try_link "$LINENO"; then :
29568 ac_cv_lib_sec_acl_totext=yes
29570 ac_cv_lib_sec_acl_totext=no
29572 rm -f core conftest.err conftest.$ac_objext \
29573 conftest$ac_exeext conftest.$ac_ext
29574 LIBS=$ac_check_lib_save_LIBS
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29577 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29578 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29580 have_extended_acl=yes
29591 if test $have_acl = no -a \
29592 x${HAVE_AIX_OS_TRUE} = x; then
29593 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29594 if test "x$ac_cv_func_acl_get" = xyes; then :
29598 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29599 if test "x$ac_cv_func_aclx_get" = xyes; then :
29601 have_extended_acl=yes
29612 if test x$support_acl = xyes -a $have_acl != yes; then
29613 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29614 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29616 if test $have_acl = yes; then
29618 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29622 if test $have_extended_acl = yes; then
29624 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29631 # Check whether --enable-xattr was given.
29632 if test "${enable_xattr+set}" = set; then :
29633 enableval=$enable_xattr;
29634 if test x$enableval = xyes; then
29636 elif test x$enableval = xno; then
29645 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29646 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29647 x${HAVE_NETBSD_OS_TRUE} = x -o \
29648 x${HAVE_OPENBSD_OS_TRUE} = x; then
29649 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29650 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29652 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29657 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29658 if test "x$ac_cv_header_libutil_h" = xyes; then :
29660 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29665 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29668 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29669 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29670 cat >>confdefs.h <<_ACEOF
29671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29676 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29679 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29682 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29690 if test $have_xattr = no; then
29691 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29696 cat >>confdefs.h <<_ACEOF
29697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29702 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29705 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29708 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29717 if test $have_xattr = yes; then
29718 have_extattr_string_in_libc=no
29719 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29723 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29724 cat >>confdefs.h <<_ACEOF
29725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29728 have_extattr_string_in_libc=yes
29730 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29733 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29741 if test $have_extattr_string_in_libc = no; then
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29743 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29744 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29745 $as_echo_n "(cached) " >&6
29747 ac_check_lib_save_LIBS=$LIBS
29748 LIBS="-lutil $LIBS"
29749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29750 /* end confdefs.h. */
29752 /* Override any GCC internal prototype to avoid an error.
29753 Use char because int might match the return type of a GCC
29754 builtin and then its argument prototype would still apply. */
29758 char extattr_namespace_to_string extattr_string_to_namespace ();
29762 return extattr_namespace_to_string extattr_string_to_namespace ();
29767 if ac_fn_c_try_link "$LINENO"; then :
29768 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29770 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29772 rm -f core conftest.err conftest.$ac_objext \
29773 conftest$ac_exeext conftest.$ac_ext
29774 LIBS=$ac_check_lib_save_LIBS
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29777 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29778 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29781 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29784 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29786 FDLIBS="-lutil $FDLIBS"
29795 if test $have_xattr = no -a \
29796 x${HAVE_AIX_OS_TRUE} = x; then
29797 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29798 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29800 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29805 for ac_func in llistea lgetea lsetea
29807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29809 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29810 cat >>confdefs.h <<_ACEOF
29811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29816 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29819 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29822 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29830 if test $have_xattr = no; then
29831 for ac_func in listea getea setea
29833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29835 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29836 cat >>confdefs.h <<_ACEOF
29837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29842 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29845 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29848 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29858 if test $have_xattr = no -a \
29859 x${HAVE_OSF1_OS_TRUE} = x; then
29860 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29861 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29863 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29868 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29872 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29873 cat >>confdefs.h <<_ACEOF
29874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29879 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29882 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29885 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29888 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29891 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29900 if test $have_xattr = no -a \
29901 x${HAVE_SUN_OS_TRUE} = x; then
29902 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29903 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29905 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29910 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29911 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29913 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29918 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29919 if test "x$ac_cv_header_attr_h" = xyes; then :
29921 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29927 for ac_func in openat fstatat unlinkat fchownat futimesat
29929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29931 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29932 cat >>confdefs.h <<_ACEOF
29933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29938 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29941 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29944 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29947 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29950 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29958 if test $have_xattr = yes; then
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29960 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29961 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29962 $as_echo_n "(cached) " >&6
29964 ac_check_lib_save_LIBS=$LIBS
29965 LIBS="-lnvpair $LIBS"
29966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29967 /* end confdefs.h. */
29969 /* Override any GCC internal prototype to avoid an error.
29970 Use char because int might match the return type of a GCC
29971 builtin and then its argument prototype would still apply. */
29975 char nvlist_next_nvpair ();
29979 return nvlist_next_nvpair ();
29984 if ac_fn_c_try_link "$LINENO"; then :
29985 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29987 ac_cv_lib_nvpair_nvlist_next_nvpair=no
29989 rm -f core conftest.err conftest.$ac_objext \
29990 conftest$ac_exeext conftest.$ac_ext
29991 LIBS=$ac_check_lib_save_LIBS
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29994 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29995 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29998 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30000 FDLIBS="-lnvpair $FDLIBS"
30008 if test $have_xattr = no; then
30009 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30010 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30012 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30017 for ac_func in llistxattr lgetxattr lsetxattr
30019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30022 cat >>confdefs.h <<_ACEOF
30023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30028 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30031 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30034 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30042 if test $have_xattr = no; then
30043 for ac_func in listxattr getxattr setxattr
30045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30046 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30047 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30048 cat >>confdefs.h <<_ACEOF
30049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30054 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30057 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30060 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30070 if test x$support_xattr = xyes -a $have_xattr != yes; then
30071 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30072 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30074 if test $have_xattr = yes; then
30076 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30084 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30085 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30086 $as_echo_n "(cached) " >&6
30088 ac_check_lib_save_LIBS=$LIBS
30089 LIBS="-lpthread $LIBS"
30090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30091 /* end confdefs.h. */
30093 /* Override any GCC internal prototype to avoid an error.
30094 Use char because int might match the return type of a GCC
30095 builtin and then its argument prototype would still apply. */
30099 char pthread_create ();
30103 return pthread_create ();
30108 if ac_fn_c_try_link "$LINENO"; then :
30109 ac_cv_lib_pthread_pthread_create=yes
30111 ac_cv_lib_pthread_pthread_create=no
30113 rm -f core conftest.err conftest.$ac_objext \
30114 conftest$ac_exeext conftest.$ac_ext
30115 LIBS=$ac_check_lib_save_LIBS
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30118 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30119 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30120 PTHREAD_LIB="-lpthread"
30123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30124 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30125 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30126 $as_echo_n "(cached) " >&6
30128 ac_check_lib_save_LIBS=$LIBS
30129 LIBS="-lpthreads $LIBS"
30130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30131 /* end confdefs.h. */
30133 /* Override any GCC internal prototype to avoid an error.
30134 Use char because int might match the return type of a GCC
30135 builtin and then its argument prototype would still apply. */
30139 char pthread_create ();
30143 return pthread_create ();
30148 if ac_fn_c_try_link "$LINENO"; then :
30149 ac_cv_lib_pthreads_pthread_create=yes
30151 ac_cv_lib_pthreads_pthread_create=no
30153 rm -f core conftest.err conftest.$ac_objext \
30154 conftest$ac_exeext conftest.$ac_ext
30155 LIBS=$ac_check_lib_save_LIBS
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30158 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30159 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30160 PTHREAD_LIB="-lpthreads"
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30164 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30165 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30166 $as_echo_n "(cached) " >&6
30168 ac_check_lib_save_LIBS=$LIBS
30170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30171 /* end confdefs.h. */
30173 /* Override any GCC internal prototype to avoid an error.
30174 Use char because int might match the return type of a GCC
30175 builtin and then its argument prototype would still apply. */
30179 char pthread_create ();
30183 return pthread_create ();
30188 if ac_fn_c_try_link "$LINENO"; then :
30189 ac_cv_lib_c_r_pthread_create=yes
30191 ac_cv_lib_c_r_pthread_create=no
30193 rm -f core conftest.err conftest.$ac_objext \
30194 conftest$ac_exeext conftest.$ac_ext
30195 LIBS=$ac_check_lib_save_LIBS
30197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30198 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30199 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30200 PTHREAD_LIB="-lc_r"
30203 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30204 if test "x$ac_cv_func_pthread_create" = xyes; then :
30221 for ac_header in sys/prctl.h sys/capability.h
30223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30224 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30225 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30226 cat >>confdefs.h <<_ACEOF
30227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30234 for ac_func in prctl setreuid
30236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30238 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30239 cat >>confdefs.h <<_ACEOF
30240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30247 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30248 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30249 $as_echo_n "(cached) " >&6
30251 ac_check_lib_save_LIBS=$LIBS
30253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30254 /* end confdefs.h. */
30256 /* Override any GCC internal prototype to avoid an error.
30257 Use char because int might match the return type of a GCC
30258 builtin and then its argument prototype would still apply. */
30262 char cap_set_proc ();
30266 return cap_set_proc ();
30271 if ac_fn_c_try_link "$LINENO"; then :
30272 ac_cv_lib_cap_cap_set_proc=yes
30274 ac_cv_lib_cap_cap_set_proc=no
30276 rm -f core conftest.err conftest.$ac_objext \
30277 conftest$ac_exeext conftest.$ac_ext
30278 LIBS=$ac_check_lib_save_LIBS
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30281 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30282 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30288 if test x$CAP_LIBS = x-lcap; then
30290 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30296 $as_echo "#define FDLIBS 1" >>confdefs.h
30299 CFLAGS=${CFLAGS--O}
30301 if test x$have_gcc = xyes ; then
30302 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30303 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30305 LDFLAGS=${LDFLAGS--O}
30306 CPPFLAGS="$CPPFLAGS"
30332 PFILES="platforms/Makefile"
30335 COMPRESS_MANPAGES=yes
30337 case "$DISTNAME" in
30340 PSCMD="ps -e -o pid,comm"
30341 PFILES="${PFILES} \
30342 platforms/aix/Makefile"
30343 TAPEDRIVE="/dev/rmt0.1"
30347 PTHREAD_LIB="-lpthread -lexc"
30348 if test "${CC}" = "gcc" ; then
30355 TAPEDRIVE="/dev/nrmt0"
30358 DISTVER=`uname -a |awk '{print $3}'`
30359 TAPEDRIVE="/dev/nrmt0"
30360 PTHREAD_LIB="-pthread"
30361 CFLAGS="${CFLAGS} -pthread"
30362 PSCMD="ps -ax -o pid,command"
30365 PFILES="${PFILES} \
30366 platforms/bsdi/Makefile \
30367 platforms/bsdi/bacula-fd \
30368 platforms/bsdi/bacula-sd \
30369 platforms/bsdi/bacula-dir"
30370 largefile_support="yes"
30374 TAPEDRIVE="/dev/nst0"
30375 PSCMD="ps -e -o pid,command"
30377 PFILES="${PFILES} \
30378 platforms/darwin/Makefile"
30382 TAPEDRIVE="/dev/nst0"
30383 PSCMD="ps -e -o pid,command"
30385 PFILES="${PFILES} \
30386 platforms/osx/Makefile"
30389 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30392 DISTVER=`cat /etc/debian_version`
30393 if test -f /etc/lsb-release ; then
30395 if test "x$DISTRIB_ID" != "x" ; then
30396 DISTNAME=$DISTRIB_ID
30398 if test "x$DISTRIB_RELEASE" != "x" ; then
30399 DISTVER=$DISTRIB_RELEASE
30402 if test "$DISTNAME" = "Ubuntu" ; then
30405 TAPEDRIVE="/dev/nst0"
30406 PSCMD="ps -e -o pid,command"
30407 if test "$DISTNAME" = "ubuntu" ; then
30408 PFILES="${PFILES} \
30409 platforms/ubuntu/Makefile \
30410 platforms/ubuntu/bacula-fd \
30411 platforms/ubuntu/bacula-sd \
30412 platforms/ubuntu/bacula-dir"
30414 PFILES="${PFILES} \
30415 platforms/debian/Makefile \
30416 platforms/debian/bacula-fd \
30417 platforms/debian/bacula-sd \
30418 platforms/debian/bacula-dir"
30422 DISTVER=`uname -a |awk '{print $3}'`
30423 VER=`echo $DISTVER | cut -c 1`
30424 if test x$VER = x4 ; then
30425 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30426 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30430 TAPEDRIVE="/dev/nrsa0"
30431 PSCMD="ps -ax -o pid,command"
30432 PFILES="${PFILES} \
30433 platforms/freebsd/Makefile \
30434 platforms/freebsd/bacula-fd \
30435 platforms/freebsd/bacula-sd \
30436 platforms/freebsd/bacula-dir"
30437 largefile_support="yes"
30441 TAPEDRIVE="/dev/nst0"
30442 PSCMD="ps -e -o pid,command"
30443 PFILES="${PFILES} \
30444 platforms/hurd/Makefile \
30445 platforms/hurd/bacula-fd \
30446 platforms/hurd/bacula-sd \
30447 platforms/hurd/bacula-dir"
30450 PSCMD="UNIX95=1; ps -e -o pid,comm"
30451 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30453 TAPEDRIVE="/dev/rmt/0hnb"
30454 PTHREAD_LIB="-lpthread"
30455 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30460 TAPEDRIVE="/dev/rmt/0cbn"
30461 PSCMD="ps -e -o pid,comm"
30462 PFILES="${PFILES} \
30463 platforms/irix/Makefile \
30464 platforms/irix/bacula-fd \
30465 platforms/irix/bacula-sd \
30466 platforms/irix/bacula-dir"
30469 DISTVER=`uname -a |awk '{print $3}'`
30472 TAPEDRIVE="/dev/nrst0"
30473 PSCMD="ps -ax -o pid,command"
30474 PTHREAD_LIB="-pthread"
30475 CFLAGS="${CFLAGS} -pthread"
30478 DISTVER=`uname -a |awk '{print $3}'`
30481 TAPEDRIVE="/dev/nrst0"
30482 PSCMD="ps -ax -o pid,command"
30483 PTHREAD_LIB="-pthread"
30484 CFLAGS="${CFLAGS} -pthread"
30485 PFILES="${PFILES} \
30486 platforms/openbsd/Makefile \
30487 platforms/openbsd/bacula-fd \
30488 platforms/openbsd/bacula-sd \
30489 platforms/openbsd/bacula-dir"
30492 if test -f /etc/whitebox-release ; then
30493 f=/etc/whitebox-release
30495 f=/etc/redhat-release
30497 if test `cat $f | grep release |\
30498 cut -f 3 -d ' '`x = "Enterprise"x ; then
30499 DISTVER="Enterprise "`cat $f | grep release |\
30502 DISTVER=`cat /etc/redhat-release | grep release |\
30505 TAPEDRIVE="/dev/nst0"
30506 PSCMD="ps -e -o pid,command"
30507 PFILES="${PFILES} \
30508 platforms/redhat/Makefile \
30509 platforms/redhat/bacula-fd \
30510 platforms/redhat/bacula-sd \
30511 platforms/redhat/bacula-dir
30515 DISTVER=`cat /etc/mandrake-release | grep release |\
30517 TAPEDRIVE="/dev/nst0"
30518 PSCMD="ps -e -o pid,command"
30519 PFILES="${PFILES} \
30520 platforms/mandrake/Makefile \
30521 platforms/mandrake/bacula-fd \
30522 platforms/mandrake/bacula-sd \
30523 platforms/mandrake/bacula-dir \
30527 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30528 TAPEDRIVE="/dev/nst0"
30529 PSCMD="ps -e -o pid,command"
30530 PFILES="${PFILES} \
30531 platforms/gentoo/Makefile \
30532 platforms/gentoo/bacula-init \
30533 platforms/gentoo/bacula-fd \
30534 platforms/gentoo/bacula-sd \
30535 platforms/gentoo/bacula-dir"
30538 DISTVER=`cat /etc/slackware-version`
30539 TAPEDRIVE="/dev/nst0"
30540 PSCMD="ps -e -o pid,command"
30541 PFILES="${PFILES} \
30542 platforms/slackware/Makefile \
30543 platforms/slackware/rc.bacula-fd \
30544 platforms/slackware/rc.bacula-sd \
30545 platforms/slackware/rc.bacula-dir\
30546 platforms/slackware/functions.bacula"
30550 TAPEDRIVE="/dev/rmt/0cbn"
30551 PSCMD="ps -e -o pid,comm"
30552 PFILES="${PFILES} \
30553 platforms/solaris/Makefile \
30554 platforms/solaris/bacula-fd \
30555 platforms/solaris/bacula-sd \
30556 platforms/solaris/bacula-dir"
30560 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30562 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30566 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30572 LIBS="$LIBS -lresolv -lrt"
30575 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30577 TAPEDRIVE="/dev/nst0"
30578 PSCMD="ps -e -o pid,command"
30579 PFILES="${PFILES} \
30580 platforms/suse/Makefile \
30581 platforms/suse/bacula-fd \
30582 platforms/suse/bacula-sd \
30583 platforms/suse/bacula-dir \
30584 platforms/suse/bacula"
30589 TAPEDRIVE="/dev/nst0"
30590 PSCMD="ps -e -o pid,command"
30591 PFILES="${PFILES} \
30592 platforms/suse/Makefile \
30593 platforms/suse/bacula-fd \
30594 platforms/suse/bacula-sd \
30595 platforms/suse/bacula-dir"
30599 TAPEDRIVE="/dev/nst0"
30602 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30607 $as_echo_n "checking for systemd support... " >&6; }
30609 # Check whether --with-systemd was given.
30610 if test "${with_systemd+set}" = set; then :
30611 withval=$with_systemd;
30612 if test "$withval" != "no"; then
30613 if test "$withval" = "yes"; then
30614 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30616 SYSTEMD_UNITDIR="${withval}"
30619 PFILES="${PFILES} \
30620 platforms/systemd/Makefile \
30621 platforms/systemd/bacula.conf \
30622 platforms/systemd/bacula-dir.service \
30623 platforms/systemd/bacula-fd.service \
30624 platforms/systemd/bacula-sd.service"
30626 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30629 $as_echo "yes" >&6; }
30630 support_systemd="yes"
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30633 $as_echo "no" >&6; }
30634 support_systemd="no"
30639 support_systemd="no"
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30641 $as_echo "no" >&6; }
30650 LIBS="$PTHREAD_LIB $LIBS"
30652 cat >>confdefs.h <<_ACEOF
30656 cat >>confdefs.h <<_ACEOF
30667 MCOMMON=./autoconf/Make.common
30670 if test "x${subsysdir}" = "x${sbindir}" ; then
30673 echo "You have set both --sbindir and --with-subsys-dir"
30674 echo " equal to: ${subsysdir} "
30675 echo "This is not permitted. Please reconfigure."
30677 echo "Aborting configuration ..."
30683 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/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/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 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 platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
30685 ac_config_commands="$ac_config_commands default"
30687 cat >confcache <<\_ACEOF
30688 # This file is a shell script that caches the results of configure
30689 # tests run on this system so they can be shared between configure
30690 # scripts and configure runs, see configure's option --config-cache.
30691 # It is not useful on other systems. If it contains results you don't
30692 # want to keep, you may remove or edit it.
30694 # config.status only pays attention to the cache file if you give it
30695 # the --recheck option to rerun configure.
30697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30699 # following values.
30703 # The following way of writing the cache mishandles newlines in values,
30704 # but we know of no workaround that is simple, portable, and efficient.
30705 # So, we kill variables containing newlines.
30706 # Ultrix sh set writes to stderr and can't be redirected directly,
30707 # and sets the high bit in the cache file unless we assign to the vars.
30709 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30710 eval ac_val=\$$ac_var
30714 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30718 _ | IFS | as_nl) ;; #(
30719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30720 *) { eval $ac_var=; unset $ac_var;} ;;
30726 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30727 *${as_nl}ac_space=\ *)
30728 # `set' does not quote correctly, so add quotes: double-quote
30729 # substitution turns \\\\ into \\, and sed turns \\ into \.
30732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30735 # `set' quotes correctly as required by POSIX, so do not add quotes.
30736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30745 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30749 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30750 if test -w "$cache_file"; then
30751 if test "x$cache_file" != "x/dev/null"; then
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30753 $as_echo "$as_me: updating cache $cache_file" >&6;}
30754 if test ! -f "$cache_file" || test -h "$cache_file"; then
30755 cat confcache >"$cache_file"
30757 case $cache_file in #(
30759 mv -f confcache "$cache_file"$$ &&
30760 mv -f "$cache_file"$$ "$cache_file" ;; #(
30762 mv -f confcache "$cache_file" ;;
30767 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30768 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30774 # Let make expand exec_prefix.
30775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30777 DEFS=-DHAVE_CONFIG_H
30782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30783 # 1. Remove the extension, and $U if already installed.
30784 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30785 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30787 # will be set to the directory where LIBOBJS objects are built.
30788 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30789 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30791 LIBOBJS=$ac_libobjs
30793 LTLIBOBJS=$ac_ltlibobjs
30798 : "${CONFIG_STATUS=./config.status}"
30800 ac_clean_files_save=$ac_clean_files
30801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30803 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30805 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30807 # Generated by $as_me.
30808 # Run this file to recreate the current configuration.
30809 # Compiler output produced by configure, useful for debugging
30810 # configure, is in config.log if it exists.
30813 ac_cs_recheck=false
30816 SHELL=\${CONFIG_SHELL-$SHELL}
30819 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30820 ## -------------------- ##
30821 ## M4sh Initialization. ##
30822 ## -------------------- ##
30824 # Be more Bourne compatible
30825 DUALCASE=1; export DUALCASE # for MKS sh
30826 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30829 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30830 # is contrary to our usage. Disable this feature.
30831 alias -g '${1+"$@"}'='"$@"'
30832 setopt NO_GLOB_SUBST
30834 case `(set -o) 2>/dev/null` in #(
30846 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30847 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30850 # Prefer a ksh shell builtin over an external printf program on Solaris,
30851 # but without wasting forks for bash or zsh.
30852 if test -z "$BASH_VERSION$ZSH_VERSION" \
30853 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30854 as_echo='print -r --'
30855 as_echo_n='print -rn --'
30856 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30857 as_echo='printf %s\n'
30858 as_echo_n='printf %s'
30860 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30861 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30862 as_echo_n='/usr/ucb/echo -n'
30864 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30865 as_echo_n_body='eval
30869 expr "X$arg" : "X\\(.*\\)$as_nl";
30870 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30872 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30874 export as_echo_n_body
30875 as_echo_n='sh -c $as_echo_n_body as_echo'
30877 export as_echo_body
30878 as_echo='sh -c $as_echo_body as_echo'
30881 # The user is always right.
30882 if test "${PATH_SEPARATOR+set}" != set; then
30884 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30885 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30892 # We need space, tab and new line, in precisely that order. Quoting is
30893 # there to prevent editors from complaining about space-tab.
30894 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30895 # splitting by setting IFS to empty value.)
30898 # Find who we are. Look in the path if we contain no directory separator.
30901 *[\\/]* ) as_myself=$0 ;;
30902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30903 for as_dir in $PATH
30906 test -z "$as_dir" && as_dir=.
30907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30913 # We did not find ourselves, most probably we were run as `sh COMMAND'
30914 # in which case we are not to be found in the path.
30915 if test "x$as_myself" = x; then
30918 if test ! -f "$as_myself"; then
30919 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30923 # Unset variables that we do not need and which cause bugs (e.g. in
30924 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30925 # suppresses any "Segmentation fault" message there. '((' could
30926 # trigger a bug in pdksh 5.2.14.
30927 for as_var in BASH_ENV ENV MAIL MAILPATH
30928 do eval test x\${$as_var+set} = xset \
30929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30945 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30946 # ----------------------------------------
30947 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30948 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30949 # script with STATUS, using 1 if that was 0.
30952 as_status=$1; test $as_status -eq 0 && as_status=1
30954 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30955 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30957 $as_echo "$as_me: error: $2" >&2
30958 as_fn_exit $as_status
30962 # as_fn_set_status STATUS
30963 # -----------------------
30964 # Set $? to STATUS, without forking.
30965 as_fn_set_status ()
30968 } # as_fn_set_status
30970 # as_fn_exit STATUS
30971 # -----------------
30972 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30976 as_fn_set_status $1
30982 # Portably unset VAR.
30985 { eval $1=; unset $1;}
30987 as_unset=as_fn_unset
30988 # as_fn_append VAR VALUE
30989 # ----------------------
30990 # Append the text in VALUE to the end of the definition contained in VAR. Take
30991 # advantage of any shell optimizations that allow amortized linear growth over
30992 # repeated appends, instead of the typical quadratic growth present in naive
30994 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30995 eval 'as_fn_append ()
31006 # as_fn_arith ARG...
31007 # ------------------
31008 # Perform arithmetic evaluation on the ARGs, and store the result in the
31009 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31010 # must be portable across $(()) and expr.
31011 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31012 eval 'as_fn_arith ()
31019 as_val=`expr "$@" || test $? -eq 1`
31024 if expr a : '\(a\)' >/dev/null 2>&1 &&
31025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31032 as_basename=basename
31037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31043 as_me=`$as_basename -- "$0" ||
31044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31045 X"$0" : 'X\(//\)$' \| \
31046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31048 sed '/^.*\/\([^/][^/]*\)\/*$/{
31062 # Avoid depending upon Character Ranges.
31063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31066 as_cr_digits='0123456789'
31067 as_cr_alnum=$as_cr_Letters$as_cr_digits
31069 ECHO_C= ECHO_N= ECHO_T=
31070 case `echo -n x` in #(((((
31072 case `echo 'xy\c'` in
31073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31082 rm -f conf$$ conf$$.exe conf$$.file
31083 if test -d conf$$.dir; then
31084 rm -f conf$$.dir/conf$$.file
31087 mkdir conf$$.dir 2>/dev/null
31089 if (echo >conf$$.file) 2>/dev/null; then
31090 if ln -s conf$$.file conf$$ 2>/dev/null; then
31092 # ... but there are two gotchas:
31093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31095 # In both cases, we have to default to `cp -p'.
31096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31098 elif ln conf$$.file conf$$ 2>/dev/null; then
31106 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31107 rmdir conf$$.dir 2>/dev/null
31112 # Create "$as_dir" as a directory, including parents if necessary.
31117 -*) as_dir=./$as_dir;;
31119 test -d "$as_dir" || eval $as_mkdir_p || {
31123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31124 *) as_qdir=$as_dir;;
31126 as_dirs="'$as_qdir' $as_dirs"
31127 as_dir=`$as_dirname -- "$as_dir" ||
31128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31129 X"$as_dir" : 'X\(//\)[^/]' \| \
31130 X"$as_dir" : 'X\(//\)$' \| \
31131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31132 $as_echo X"$as_dir" |
31133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31137 /^X\(\/\/\)[^/].*/{
31150 test -d "$as_dir" && break
31152 test -z "$as_dirs" || eval "mkdir $as_dirs"
31153 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31157 if mkdir -p . 2>/dev/null; then
31158 as_mkdir_p='mkdir -p "$as_dir"'
31160 test -d ./-p && rmdir ./-p
31164 if test -x / >/dev/null 2>&1; then
31165 as_test_x='test -x'
31167 if ls -dL / >/dev/null 2>&1; then
31174 if test -d "$1"; then
31180 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31181 ???[sx]*):;;*)false;;esac;fi
31185 as_executable_p=$as_test_x
31187 # Sed expression to map a string onto a valid CPP name.
31188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31190 # Sed expression to map a string onto a valid variable name.
31191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31195 ## ----------------------------------- ##
31196 ## Main body of $CONFIG_STATUS script. ##
31197 ## ----------------------------------- ##
31199 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31202 # Save the log message, to keep $0 and so on meaningful, and to
31203 # report actual input values of CONFIG_FILES etc. instead of their
31204 # values after options handling.
31206 This file was extended by bacula $as_me 7.0.2, which was
31207 generated by GNU Autoconf 2.68. Invocation command line was
31209 CONFIG_FILES = $CONFIG_FILES
31210 CONFIG_HEADERS = $CONFIG_HEADERS
31211 CONFIG_LINKS = $CONFIG_LINKS
31212 CONFIG_COMMANDS = $CONFIG_COMMANDS
31215 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31220 case $ac_config_files in *"
31221 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31224 case $ac_config_headers in *"
31225 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31230 # Files that config.status was made for.
31231 config_files="$ac_config_files"
31232 config_headers="$ac_config_headers"
31233 config_commands="$ac_config_commands"
31237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31239 \`$as_me' instantiates files and other configuration actions
31240 from templates according to the current configuration. Unless the files
31241 and actions are specified as TAGs, all are instantiated by default.
31243 Usage: $0 [OPTION]... [TAG]...
31245 -h, --help print this help, then exit
31246 -V, --version print version number and configuration settings, then exit
31247 --config print configuration, then exit
31248 -q, --quiet, --silent
31249 do not print progress messages
31250 -d, --debug don't remove temporary files
31251 --recheck update $as_me by reconfiguring in the same conditions
31252 --file=FILE[:TEMPLATE]
31253 instantiate the configuration file FILE
31254 --header=FILE[:TEMPLATE]
31255 instantiate the configuration header FILE
31257 Configuration files:
31260 Configuration headers:
31263 Configuration commands:
31266 Report bugs to the package provider."
31269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31270 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31272 bacula config.status 7.0.2
31273 configured by $0, generated by GNU Autoconf 2.68,
31274 with options \\"\$ac_cs_config\\"
31276 Copyright (C) 2010 Free Software Foundation, Inc.
31277 This config.status script is free software; the Free Software Foundation
31278 gives unlimited permission to copy, distribute and modify it."
31284 test -n "\$AWK" || AWK=awk
31287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31288 # The default lists apply if the user does not specify any file.
31294 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31295 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31299 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31311 # Handling of the options.
31312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31314 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31315 $as_echo "$ac_cs_version"; exit ;;
31316 --config | --confi | --conf | --con | --co | --c )
31317 $as_echo "$ac_cs_config"; exit ;;
31318 --debug | --debu | --deb | --de | --d | -d )
31320 --file | --fil | --fi | --f )
31323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31324 '') as_fn_error $? "missing file argument" ;;
31326 as_fn_append CONFIG_FILES " '$ac_optarg'"
31327 ac_need_defaults=false;;
31328 --header | --heade | --head | --hea )
31331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31333 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31334 ac_need_defaults=false;;
31336 # Conflict between --help and --header
31337 as_fn_error $? "ambiguous option: \`$1'
31338 Try \`$0 --help' for more information.";;
31339 --help | --hel | -h )
31340 $as_echo "$ac_cs_usage"; exit ;;
31341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31345 # This is an error.
31346 -*) as_fn_error $? "unrecognized option: \`$1'
31347 Try \`$0 --help' for more information." ;;
31349 *) as_fn_append ac_config_targets " $1"
31350 ac_need_defaults=false ;;
31356 ac_configure_extra_args=
31358 if $ac_cs_silent; then
31360 ac_configure_extra_args="$ac_configure_extra_args --silent"
31364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31365 if \$ac_cs_recheck; then
31366 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31368 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31369 CONFIG_SHELL='$SHELL'
31370 export CONFIG_SHELL
31375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31380 ## Running $as_me. ##
31386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31392 # The HP-UX ksh and POSIX shell print the target directory to stdout
31393 # if CDPATH is set.
31394 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31396 sed_quote_subst='$sed_quote_subst'
31397 double_quote_subst='$double_quote_subst'
31398 delay_variable_subst='$delay_variable_subst'
31399 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31400 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31401 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31402 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31403 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31404 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31405 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31406 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31407 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31408 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31409 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31410 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31411 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31412 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31413 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31414 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31415 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31416 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31417 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31418 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31419 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31420 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31421 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31422 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31423 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31424 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31425 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31426 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31427 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31428 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31429 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31430 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31431 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31432 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31433 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31434 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31435 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31436 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31437 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31438 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31439 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31440 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31441 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31442 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31443 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31444 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31445 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31446 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31447 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31448 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31449 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31450 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31451 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31452 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31453 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31454 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"`'
31455 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31456 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31457 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31458 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31459 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31460 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31461 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31462 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31463 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31464 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31465 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31466 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31467 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31468 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31469 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31470 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31471 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31472 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31473 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31474 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31475 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31476 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31477 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31478 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31479 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31480 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31481 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31482 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31483 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31484 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31485 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31486 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31487 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31488 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31489 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31490 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31491 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31492 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31493 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31494 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31495 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31496 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31497 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31498 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31499 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31500 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31501 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31502 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31503 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31504 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31505 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31506 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31507 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31508 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31509 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31510 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31511 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31512 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31513 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31514 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31515 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31516 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31517 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31518 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31519 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31520 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31521 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31522 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31523 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31524 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31525 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31526 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31527 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31528 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31529 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31530 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31531 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31532 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31533 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31534 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31535 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31536 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31537 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31538 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31539 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31540 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31541 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31542 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31543 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31544 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31545 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31546 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31547 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31548 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31549 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31550 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31551 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31552 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31553 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31554 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31555 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31556 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31557 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31558 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31559 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31560 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31561 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31562 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31563 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31564 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31565 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31566 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31567 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31568 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31569 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31570 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31571 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31572 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31573 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31574 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31575 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31576 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31577 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31578 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31579 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31580 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31581 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31582 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31583 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31586 LTCFLAGS='$LTCFLAGS'
31587 compiler='$compiler_DEFAULT'
31589 # A function that is used when there is no print builtin or printf.
31590 func_fallback_echo ()
31592 eval 'cat <<_LTECHO_EOF
31597 # Quote evaled strings.
31611 deplibs_check_method \
31616 sharedlib_from_linklib_cmd \
31619 archiver_list_spec \
31625 lt_cv_sys_global_symbol_pipe \
31626 lt_cv_sys_global_symbol_to_cdecl \
31627 lt_cv_sys_global_symbol_to_c_name_address \
31628 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31629 nm_file_list_spec \
31630 lt_prog_compiler_no_builtin_flag \
31631 lt_prog_compiler_pic \
31632 lt_prog_compiler_wl \
31633 lt_prog_compiler_static \
31634 lt_cv_prog_compiler_c_o \
31643 export_dynamic_flag_spec \
31644 whole_archive_flag_spec \
31645 compiler_needs_object \
31647 allow_undefined_flag \
31648 no_undefined_flag \
31649 hardcode_libdir_flag_spec \
31650 hardcode_libdir_flag_spec_ld \
31651 hardcode_libdir_separator \
31655 variables_saved_for_relink \
31657 library_names_spec \
31659 install_override_mode \
31663 compiler_lib_search_dirs \
31668 compiler_lib_search_path \
31672 lt_prog_compiler_no_builtin_flag_CXX \
31673 lt_prog_compiler_pic_CXX \
31674 lt_prog_compiler_wl_CXX \
31675 lt_prog_compiler_static_CXX \
31676 lt_cv_prog_compiler_c_o_CXX \
31677 export_dynamic_flag_spec_CXX \
31678 whole_archive_flag_spec_CXX \
31679 compiler_needs_object_CXX \
31681 allow_undefined_flag_CXX \
31682 no_undefined_flag_CXX \
31683 hardcode_libdir_flag_spec_CXX \
31684 hardcode_libdir_flag_spec_ld_CXX \
31685 hardcode_libdir_separator_CXX \
31686 exclude_expsyms_CXX \
31687 include_expsyms_CXX \
31688 file_list_spec_CXX \
31689 compiler_lib_search_dirs_CXX \
31690 predep_objects_CXX \
31691 postdep_objects_CXX \
31694 compiler_lib_search_path_CXX; do
31695 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31696 *[\\\\\\\`\\"\\\$]*)
31697 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31700 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31705 # Double-quote double-evaled strings.
31706 for var in reload_cmds \
31707 old_postinstall_cmds \
31708 old_postuninstall_cmds \
31710 extract_expsyms_cmds \
31711 old_archive_from_new_cmds \
31712 old_archive_from_expsyms_cmds \
31714 archive_expsym_cmds \
31716 module_expsym_cmds \
31717 export_symbols_cmds \
31721 postuninstall_cmds \
31723 sys_lib_search_path_spec \
31724 sys_lib_dlsearch_path_spec \
31726 old_archive_cmds_CXX \
31727 old_archive_from_new_cmds_CXX \
31728 old_archive_from_expsyms_cmds_CXX \
31730 archive_expsym_cmds_CXX \
31732 module_expsym_cmds_CXX \
31733 export_symbols_cmds_CXX \
31735 postlink_cmds_CXX; do
31736 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31737 *[\\\\\\\`\\"\\\$]*)
31738 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31741 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31746 ac_aux_dir='$ac_aux_dir'
31747 xsi_shell='$xsi_shell'
31748 lt_shell_append='$lt_shell_append'
31750 # See if we are running on zsh, and set the options which allow our
31751 # commands through without removal of \ escapes INIT.
31752 if test -n "\${ZSH_VERSION+set}" ; then
31753 setopt NO_GLOB_SUBST
31759 TIMESTAMP='$TIMESTAMP'
31767 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31768 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31770 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31771 # Capture the value of LINGUAS because we need it to compute CATALOGS.
31772 LINGUAS="${LINGUAS-%UNSET%}"
31777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31779 # Handling of arguments.
31780 for ac_config_target in $ac_config_targets
31782 case $ac_config_target in
31783 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31784 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31785 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31786 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31788 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31789 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31790 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31791 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31792 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31793 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31794 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31795 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31796 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31797 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31798 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31799 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31800 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31801 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31802 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31803 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31804 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31805 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31806 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31807 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31808 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31809 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31810 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31811 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31812 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31813 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31814 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31815 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31816 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31817 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31818 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31819 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31820 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31821 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31822 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31823 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31824 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31825 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31826 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31827 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31828 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31829 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31830 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31831 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31832 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31833 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31834 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31835 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31836 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31837 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31838 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31839 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31840 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31841 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31842 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31843 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31844 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31845 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31846 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31847 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31848 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31849 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31850 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31851 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31852 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31853 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31854 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31855 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31856 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31857 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31858 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31859 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31860 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31861 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31862 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31863 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31864 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31865 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31866 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31867 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31868 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31869 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31870 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
31871 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
31872 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
31873 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
31874 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
31875 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
31876 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
31877 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
31878 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31879 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31881 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31886 # If the user did not use the arguments to specify the items to instantiate,
31887 # then the envvar interface is used. Set only those that are not.
31888 # We use the long form for the default assignment because of an extremely
31889 # bizarre bug on SunOS 4.1.3.
31890 if $ac_need_defaults; then
31891 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31892 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31896 # Have a temporary directory for convenience. Make it in the build tree
31897 # simply because there is no reason against having it here, and in addition,
31898 # creating and moving files from /tmp can sometimes cause problems.
31899 # Hook for its removal unless debugging.
31900 # Note that there is a small window in which the directory will not be cleaned:
31901 # after its creation but before its name has been assigned to `$tmp'.
31905 trap 'exit_status=$?
31906 : "${ac_tmp:=$tmp}"
31907 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31909 trap 'as_fn_exit 1' 1 2 13 15
31911 # Create a (secure) tmp directory for tmp files.
31914 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31918 tmp=./conf$$-$RANDOM
31919 (umask 077 && mkdir "$tmp")
31920 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31923 # Set up the scripts for CONFIG_FILES section.
31924 # No need to generate them if there are no CONFIG_FILES.
31925 # This happens for instance with `./config.status config.h'.
31926 if test -n "$CONFIG_FILES"; then
31928 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31929 ac_cs_awk_getline=:
31930 ac_cs_awk_pipe_init=
31931 ac_cs_awk_read_file='
31932 while ((getline aline < (F[key])) > 0)
31935 ac_cs_awk_pipe_fini=
31937 ac_cs_awk_getline=false
31938 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31939 ac_cs_awk_read_file='
31941 print "cat " F[key] " &&"
31942 '$ac_cs_awk_pipe_init
31943 # The final `:' finishes the AND list.
31944 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31946 ac_cr=`echo X | tr X '\015'`
31947 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31948 # But we know of no other shell where ac_cr would be empty at this
31949 # point, so we can use a bashism as a fallback.
31950 if test "x$ac_cr" = x; then
31951 eval ac_cr=\$\'\\r\'
31953 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31957 ac_cs_awk_cr=$ac_cr
31960 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31963 # Create commands to substitute file output variables.
31965 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31966 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31967 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31970 } >conf$$files.sh &&
31971 . ./conf$$files.sh ||
31972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31973 rm -f conf$$files.sh
31976 echo "cat >conf$$subs.awk <<_ACEOF" &&
31977 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31979 } >conf$$subs.sh ||
31980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31981 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31983 for ac_last_try in false false false false false :; do
31984 . ./conf$$subs.sh ||
31985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31987 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31988 if test $ac_delim_n = $ac_delim_num; then
31990 elif $ac_last_try; then
31991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31993 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31996 rm -f conf$$subs.sh
31998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31999 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32003 s/^/S["/; s/!.*/"]=/
32013 s/\(.\{148\}\)..*/\1/
32015 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32020 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32027 s/\(.\{148\}\)..*/\1/
32029 s/["\\]/\\&/g; s/^/"/; s/$/"/
32033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32038 ' <conf$$subs.awk | sed '
32043 ' >>$CONFIG_STATUS || ac_write_fail=1
32044 rm -f conf$$subs.awk
32045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32047 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32048 for (key in S) S_is_set[key] = 1
32050 \$ac_cs_awk_pipe_init
32054 nfields = split(line, field, "@")
32056 len = length(field[1])
32057 for (i = 2; i < nfields; i++) {
32059 keylen = length(key)
32060 if (S_is_set[key]) {
32062 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32063 len += length(value) + length(field[++i])
32068 if (nfields == 3 && !substed) {
32070 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32071 \$ac_cs_awk_read_file
32077 \$ac_cs_awk_pipe_fini
32080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32085 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32086 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32089 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32090 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32091 # trailing colons and then remove the whole line if VPATH becomes empty
32092 # (actually we leave an empty line to preserve line numbers).
32093 if test "x$srcdir" = x.; then
32094 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32113 fi # test -n "$CONFIG_FILES"
32115 # Set up the scripts for CONFIG_HEADERS section.
32116 # No need to generate them if there are no CONFIG_HEADERS.
32117 # This happens for instance with `./config.status Makefile'.
32118 if test -n "$CONFIG_HEADERS"; then
32119 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32123 # Transform confdefs.h into an awk script `defines.awk', embedded as
32124 # here-document in config.status, that substitutes the proper values into
32125 # config.h.in to produce config.h.
32127 # Create a delimiter string that does not exist in confdefs.h, to ease
32128 # handling of long lines.
32130 for ac_last_try in false false :; do
32131 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32132 if test -z "$ac_tt"; then
32134 elif $ac_last_try; then
32135 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32141 # For the awk script, D is an array of macro values keyed by name,
32142 # likewise P contains macro parameters if any. Preserve backslash
32143 # newline sequences.
32145 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32147 s/.\{148\}/&'"$ac_delim"'/g
32150 s/^[ ]*#[ ]*define[ ][ ]*/ /
32157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32159 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32164 D["\1"]=" \3\\\\\\n"\\/p
32166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32171 s/.\{148\}/&'"$ac_delim"'/g
32176 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32179 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32181 ' <confdefs.h | sed '
32182 s/'"$ac_delim"'/"\\\
32183 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32186 for (key in D) D_is_set[key] = 1
32189 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32191 split(line, arg, " ")
32192 if (arg[1] == "#") {
32196 defundef = substr(arg[1], 2)
32199 split(mac1, mac2, "(") #)
32201 prefix = substr(line, 1, index(line, defundef) - 1)
32202 if (D_is_set[macro]) {
32203 # Preserve the white space surrounding the "#".
32204 print prefix "define", macro P[macro] D[macro]
32207 # Replace #undef with comments. This is necessary, for example,
32208 # in the case of _POSIX_SOURCE, which is predefined and required
32209 # on some systems where configure will not decide to define it.
32210 if (defundef == "undef") {
32211 print "/*", prefix defundef, macro, "*/"
32219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32220 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32221 fi # test -n "$CONFIG_HEADERS"
32224 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32229 :[FHLC]) ac_mode=$ac_tag; continue;;
32231 case $ac_mode$ac_tag in
32233 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32234 :[FH]-) ac_tag=-:-;;
32235 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32252 -) ac_f="$ac_tmp/stdin";;
32253 *) # Look for the file first in the build tree, then in the source tree
32254 # (if the path is not absolute). The absolute path cannot be DOS-style,
32255 # because $ac_f cannot contain `:'.
32259 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32261 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32263 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32264 as_fn_append ac_file_inputs " '$ac_f'"
32267 # Let's still pretend it is `configure' which instantiates (i.e., don't
32268 # use $as_me), people would be surprised to read:
32269 # /* config.h. Generated by config.status. */
32270 configure_input='Generated from '`
32271 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32273 if test x"$ac_file" != x-; then
32274 configure_input="$ac_file. $configure_input"
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32276 $as_echo "$as_me: creating $ac_file" >&6;}
32278 # Neutralize special characters interpreted by sed in replacement strings.
32279 case $configure_input in #(
32280 *\&* | *\|* | *\\* )
32281 ac_sed_conf_input=`$as_echo "$configure_input" |
32282 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32283 *) ac_sed_conf_input=$configure_input;;
32287 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32293 ac_dir=`$as_dirname -- "$ac_file" ||
32294 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32295 X"$ac_file" : 'X\(//\)[^/]' \| \
32296 X"$ac_file" : 'X\(//\)$' \| \
32297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32298 $as_echo X"$ac_file" |
32299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32303 /^X\(\/\/\)[^/].*/{
32316 as_dir="$ac_dir"; as_fn_mkdir_p
32320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32323 # A ".." for each directory in $ac_dir_suffix.
32324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32325 case $ac_top_builddir_sub in
32326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32330 ac_abs_top_builddir=$ac_pwd
32331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32332 # for backward compatibility:
32333 ac_top_builddir=$ac_top_build_prefix
32336 .) # We are building in place.
32338 ac_top_srcdir=$ac_top_builddir_sub
32339 ac_abs_top_srcdir=$ac_pwd ;;
32340 [\\/]* | ?:[\\/]* ) # Absolute name.
32341 ac_srcdir=$srcdir$ac_dir_suffix;
32342 ac_top_srcdir=$srcdir
32343 ac_abs_top_srcdir=$srcdir ;;
32344 *) # Relative name.
32345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32346 ac_top_srcdir=$ac_top_build_prefix$srcdir
32347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32359 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32360 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32365 # If the template does not know about datarootdir, expand it.
32366 # FIXME: This hack should be removed a few years after 2.60.
32367 ac_datarootdir_hack=; ac_datarootdir_seen=
32378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32379 *datarootdir*) ac_datarootdir_seen=yes;;
32380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32385 ac_datarootdir_hack='
32386 s&@datadir@&$datadir&g
32387 s&@docdir@&$docdir&g
32388 s&@infodir@&$infodir&g
32389 s&@localedir@&$localedir&g
32390 s&@mandir@&$mandir&g
32391 s&\\\${datarootdir}&$datarootdir&g' ;;
32395 # Neutralize VPATH when `$srcdir' = `.'.
32396 # Shell code in configure.ac might set extrasub.
32397 # FIXME: do we really want to maintain this feature?
32398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32399 ac_sed_extra="$ac_vpsub
32402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32405 s|@configure_input@|$ac_sed_conf_input|;t t
32406 s&@top_builddir@&$ac_top_builddir_sub&;t t
32407 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32408 s&@srcdir@&$ac_srcdir&;t t
32409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32410 s&@top_srcdir@&$ac_top_srcdir&;t t
32411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32412 s&@builddir@&$ac_builddir&;t t
32413 s&@abs_builddir@&$ac_abs_builddir&;t t
32414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32415 s&@INSTALL@&$ac_INSTALL&;t t
32416 $ac_datarootdir_hack
32418 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32419 if $ac_cs_awk_getline; then
32420 $AWK -f "$ac_tmp/subs.awk"
32422 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32424 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32426 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32427 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32428 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32429 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32431 which seems to be undefined. Please make sure it is defined" >&5
32432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32433 which seems to be undefined. Please make sure it is defined" >&2;}
32435 rm -f "$ac_tmp/stdin"
32437 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32438 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32446 if test x"$ac_file" != x-; then
32448 $as_echo "/* $configure_input */" \
32449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32450 } >"$ac_tmp/config.h" \
32451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32452 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32453 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32457 mv "$ac_tmp/config.h" "$ac_file" \
32458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32461 $as_echo "/* $configure_input */" \
32462 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32463 || as_fn_error $? "could not create -" "$LINENO" 5
32467 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32468 $as_echo "$as_me: executing $ac_file commands" >&6;}
32473 case $ac_file$ac_mode in
32476 # See if we are running on zsh, and set the options which allow our
32477 # commands through without removal of \ escapes.
32478 if test -n "${ZSH_VERSION+set}" ; then
32479 setopt NO_GLOB_SUBST
32482 cfgfile="${ofile}T"
32483 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32486 cat <<_LT_EOF >> "$cfgfile"
32489 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32490 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32492 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32494 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32495 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32497 # Written by Gordon Matzigkeit, 1996
32499 # This file is part of GNU Libtool.
32501 # GNU Libtool is free software; you can redistribute it and/or
32502 # modify it under the terms of the GNU General Public License as
32503 # published by the Free Software Foundation; either version 2 of
32504 # the License, or (at your option) any later version.
32506 # As a special exception to the GNU General Public License,
32507 # if you distribute this file as part of a program or library that
32508 # is built using GNU Libtool, you may include this file under the
32509 # same distribution terms that you use for the rest of that program.
32511 # GNU Libtool is distributed in the hope that it will be useful,
32512 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32514 # GNU General Public License for more details.
32516 # You should have received a copy of the GNU General Public License
32517 # along with GNU Libtool; see the file COPYING. If not, a copy
32518 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32519 # obtained by writing to the Free Software Foundation, Inc.,
32520 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32523 # The names of the tagged configurations supported by this script.
32524 available_tags="CXX "
32526 # ### BEGIN LIBTOOL CONFIG
32528 # Which release of libtool.m4 was used?
32529 macro_version=$macro_version
32530 macro_revision=$macro_revision
32532 # Whether or not to build shared libraries.
32533 build_libtool_libs=$enable_shared
32535 # Whether or not to build static libraries.
32536 build_old_libs=$enable_static
32538 # What type of objects to build.
32541 # Whether or not to optimize for fast installation.
32542 fast_install=$enable_fast_install
32544 # Shell to use when invoking shell scripts.
32547 # An echo program that protects backslashes.
32551 host_alias=$host_alias
32555 # The build system.
32556 build_alias=$build_alias
32560 # A sed program that does not truncate output.
32563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32564 Xsed="\$SED -e 1s/^X//"
32566 # A grep program that handles long lines.
32572 # A literal string matcher.
32575 # A BSD- or MS-compatible name lister.
32578 # Whether we need soft or hard links.
32581 # What is the maximum length of a command?
32582 max_cmd_len=$max_cmd_len
32584 # Object file suffix (normally "o").
32587 # Executable file suffix (normally "").
32590 # whether the shell understands "unset".
32593 # turn spaces into newlines.
32596 # turn newlines into spaces.
32599 # convert \$build file names to \$host format.
32600 to_host_file_cmd=$lt_cv_to_host_file_cmd
32602 # convert \$build files to toolchain format.
32603 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32605 # An object symbol dumper.
32606 OBJDUMP=$lt_OBJDUMP
32608 # Method to check whether dependent libraries are shared objects.
32609 deplibs_check_method=$lt_deplibs_check_method
32611 # Command to use when deplibs_check_method = "file_magic".
32612 file_magic_cmd=$lt_file_magic_cmd
32614 # How to find potential files when deplibs_check_method = "file_magic".
32615 file_magic_glob=$lt_file_magic_glob
32617 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32618 want_nocaseglob=$lt_want_nocaseglob
32620 # DLL creation program.
32621 DLLTOOL=$lt_DLLTOOL
32623 # Command to associate shared and link libraries.
32624 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32629 # Flags to create an archive.
32630 AR_FLAGS=$lt_AR_FLAGS
32632 # How to feed a file listing to the archiver.
32633 archiver_list_spec=$lt_archiver_list_spec
32635 # A symbol stripping program.
32638 # Commands used to install an old-style archive.
32640 old_postinstall_cmds=$lt_old_postinstall_cmds
32641 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32643 # Whether to use a lock for old archive extraction.
32644 lock_old_archive_extraction=$lock_old_archive_extraction
32649 # LTCC compiler flags.
32650 LTCFLAGS=$lt_CFLAGS
32652 # Take the output of nm and produce a listing of raw symbols and C names.
32653 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32655 # Transform the output of nm in a proper C declaration.
32656 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32658 # Transform the output of nm in a C name address pair.
32659 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32661 # Transform the output of nm in a C name address pair when lib prefix is needed.
32662 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32664 # Specify filename containing input files for \$NM.
32665 nm_file_list_spec=$lt_nm_file_list_spec
32667 # The root where to search for dependent libraries,and in which our libraries should be installed.
32668 lt_sysroot=$lt_sysroot
32670 # The name of the directory that contains temporary libtool files.
32673 # Used to examine libraries when file_magic_cmd begins with "file".
32674 MAGIC_CMD=$MAGIC_CMD
32676 # Must we lock files when doing compilation?
32677 need_locks=$lt_need_locks
32680 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32683 DSYMUTIL=$lt_DSYMUTIL
32685 # Tool to change global to local symbols on Mac OS X.
32688 # Tool to manipulate fat objects and archives on Mac OS X.
32691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32695 OTOOL64=$lt_OTOOL64
32697 # Old archive suffix (normally "a").
32700 # Shared library suffix (normally ".so").
32701 shrext_cmds=$lt_shrext_cmds
32703 # The commands to extract the exported symbol list from a shared archive.
32704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32706 # Variables whose values should be saved in libtool wrapper scripts and
32707 # restored at link time.
32708 variables_saved_for_relink=$lt_variables_saved_for_relink
32710 # Do we need the "lib" prefix for modules?
32711 need_lib_prefix=$need_lib_prefix
32713 # Do we need a version for libraries?
32714 need_version=$need_version
32716 # Library versioning type.
32717 version_type=$version_type
32719 # Shared library runtime path variable.
32720 runpath_var=$runpath_var
32722 # Shared library path variable.
32723 shlibpath_var=$shlibpath_var
32725 # Is shlibpath searched before the hard-coded library search path?
32726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32728 # Format of library name prefix.
32729 libname_spec=$lt_libname_spec
32731 # List of archive names. First name is the real one, the rest are links.
32732 # The last name is the one that the linker finds with -lNAME
32733 library_names_spec=$lt_library_names_spec
32735 # The coded name of the library, if different from the real name.
32736 soname_spec=$lt_soname_spec
32738 # Permission mode override for installation of shared libraries.
32739 install_override_mode=$lt_install_override_mode
32741 # Command to use after installation of a shared archive.
32742 postinstall_cmds=$lt_postinstall_cmds
32744 # Command to use after uninstallation of a shared archive.
32745 postuninstall_cmds=$lt_postuninstall_cmds
32747 # Commands used to finish a libtool library installation in a directory.
32748 finish_cmds=$lt_finish_cmds
32750 # As "finish_cmds", except a single script fragment to be evaled but
32752 finish_eval=$lt_finish_eval
32754 # Whether we should hardcode library paths into libraries.
32755 hardcode_into_libs=$hardcode_into_libs
32757 # Compile-time system search path for libraries.
32758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32760 # Run-time system search path for libraries.
32761 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32763 # Whether dlopen is supported.
32764 dlopen_support=$enable_dlopen
32766 # Whether dlopen of programs is supported.
32767 dlopen_self=$enable_dlopen_self
32769 # Whether dlopen of statically linked programs is supported.
32770 dlopen_self_static=$enable_dlopen_self_static
32772 # Commands to strip libraries.
32773 old_striplib=$lt_old_striplib
32774 striplib=$lt_striplib
32777 # The linker used to build libraries.
32780 # How to create reloadable object files.
32781 reload_flag=$lt_reload_flag
32782 reload_cmds=$lt_reload_cmds
32784 # Commands used to build an old-style archive.
32785 old_archive_cmds=$lt_old_archive_cmds
32787 # A language specific compiler.
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
32796 # Additional compiler flags for building library objects.
32797 pic_flag=$lt_lt_prog_compiler_pic
32799 # How to pass a linker flag through the compiler.
32800 wl=$lt_lt_prog_compiler_wl
32802 # Compiler flag to prevent dynamic linking.
32803 link_static_flag=$lt_lt_prog_compiler_static
32805 # Does compiler simultaneously support -c and -o options?
32806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32808 # Whether or not to add -lc for building shared libraries.
32809 build_libtool_need_lc=$archive_cmds_need_lc
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
32814 # Compiler flag to allow reflexive dlopens.
32815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32817 # Compiler flag to generate shared objects directly from archives.
32818 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32820 # Whether the compiler copes with passing no objects directly.
32821 compiler_needs_object=$lt_compiler_needs_object
32823 # Create an old-style archive from a shared archive.
32824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
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
32829 # Commands used to build a shared archive.
32830 archive_cmds=$lt_archive_cmds
32831 archive_expsym_cmds=$lt_archive_expsym_cmds
32833 # Commands used to build a loadable module if different from building
32834 # a shared archive.
32835 module_cmds=$lt_module_cmds
32836 module_expsym_cmds=$lt_module_expsym_cmds
32838 # Whether we are building with GNU ld or not.
32839 with_gnu_ld=$lt_with_gnu_ld
32841 # Flag that allows shared libraries with undefined symbols to be built.
32842 allow_undefined_flag=$lt_allow_undefined_flag
32844 # Flag that enforces no undefined symbols.
32845 no_undefined_flag=$lt_no_undefined_flag
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
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
32855 # Whether we need a single "-rpath" flag with a separated argument.
32856 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32859 # DIR into the resulting binary.
32860 hardcode_direct=$hardcode_direct
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
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
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
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
32881 # Set to yes if linker adds runtime paths of dependent libraries
32882 # to runtime path list.
32883 inherit_rpath=$inherit_rpath
32885 # Whether libtool must link a program against all its dependency libraries.
32886 link_all_deplibs=$link_all_deplibs
32888 # Set to "yes" if exported symbols are required.
32889 always_export_symbols=$always_export_symbols
32891 # The commands to list exported symbols.
32892 export_symbols_cmds=$lt_export_symbols_cmds
32894 # Symbols that should not be listed in the preloaded symbols.
32895 exclude_expsyms=$lt_exclude_expsyms
32897 # Symbols that must always be exported.
32898 include_expsyms=$lt_include_expsyms
32900 # Commands necessary for linking programs (against libraries) with templates.
32901 prelink_cmds=$lt_prelink_cmds
32903 # Commands necessary for finishing linking programs.
32904 postlink_cmds=$lt_postlink_cmds
32906 # Specify filename containing input files.
32907 file_list_spec=$lt_file_list_spec
32909 # How to hardcode a shared library path into an executable.
32910 hardcode_action=$hardcode_action
32912 # The directories searched by this compiler when creating a shared library.
32913 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32915 # Dependencies to place before and after the objects being linked to
32916 # create a shared library.
32917 predep_objects=$lt_predep_objects
32918 postdep_objects=$lt_postdep_objects
32919 predeps=$lt_predeps
32920 postdeps=$lt_postdeps
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
32926 # ### END LIBTOOL CONFIG
32932 cat <<\_LT_EOF >> "$cfgfile"
32933 # AIX sometimes has problems with the GCC collect2 program. For some
32934 # reason, if we set the COLLECT_NAMES environment variable, the problems
32935 # vanish in a puff of smoke.
32936 if test "X${COLLECT_NAMES+set}" != Xset; then
32938 export COLLECT_NAMES
32945 ltmain="$ac_aux_dir/ltmain.sh"
32948 # We use sed instead of cat because bash on DJGPP gets confused if
32949 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32950 # text mode, it properly converts lines to CR/LF. This bash problem
32951 # is reportedly fixed, but why not run on old versions too?
32952 sed '$q' "$ltmain" >> "$cfgfile" \
32953 || (rm -f "$cfgfile"; exit 1)
32955 if test x"$xsi_shell" = xyes; then
32956 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32960 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32961 \ * ) func_dirname_result="${3}" ;;\
32963 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32964 && mv -f "$cfgfile.tmp" "$cfgfile" \
32965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32966 test 0 -eq $? || _lt_function_replace_fail=:
32969 sed -e '/^func_basename ()$/,/^} # func_basename /c\
32972 \ func_basename_result="${1##*/}"\
32973 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32974 && mv -f "$cfgfile.tmp" "$cfgfile" \
32975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32976 test 0 -eq $? || _lt_function_replace_fail=:
32979 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32980 func_dirname_and_basename ()\
32983 \ */*) func_dirname_result="${1%/*}${2}" ;;\
32984 \ * ) func_dirname_result="${3}" ;;\
32986 \ func_basename_result="${1##*/}"\
32987 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32988 && mv -f "$cfgfile.tmp" "$cfgfile" \
32989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32990 test 0 -eq $? || _lt_function_replace_fail=:
32993 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32996 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32997 \ # positional parameters, so assign one to ordinary parameter first.\
32998 \ func_stripname_result=${3}\
32999 \ func_stripname_result=${func_stripname_result#"${1}"}\
33000 \ func_stripname_result=${func_stripname_result%"${2}"}\
33001 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33002 && mv -f "$cfgfile.tmp" "$cfgfile" \
33003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33004 test 0 -eq $? || _lt_function_replace_fail=:
33007 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33008 func_split_long_opt ()\
33010 \ func_split_long_opt_name=${1%%=*}\
33011 \ func_split_long_opt_arg=${1#*=}\
33012 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33013 && mv -f "$cfgfile.tmp" "$cfgfile" \
33014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33015 test 0 -eq $? || _lt_function_replace_fail=:
33018 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33019 func_split_short_opt ()\
33021 \ func_split_short_opt_arg=${1#??}\
33022 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33023 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33024 && mv -f "$cfgfile.tmp" "$cfgfile" \
33025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33026 test 0 -eq $? || _lt_function_replace_fail=:
33029 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33033 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33034 \ *) func_lo2o_result=${1} ;;\
33036 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33037 && mv -f "$cfgfile.tmp" "$cfgfile" \
33038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33039 test 0 -eq $? || _lt_function_replace_fail=:
33042 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33045 func_xform_result=${1%.*}.lo\
33046 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33047 && mv -f "$cfgfile.tmp" "$cfgfile" \
33048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33049 test 0 -eq $? || _lt_function_replace_fail=:
33052 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33055 func_arith_result=$(( $* ))\
33056 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33057 && mv -f "$cfgfile.tmp" "$cfgfile" \
33058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33059 test 0 -eq $? || _lt_function_replace_fail=:
33062 sed -e '/^func_len ()$/,/^} # func_len /c\
33065 func_len_result=${#1}\
33066 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33067 && mv -f "$cfgfile.tmp" "$cfgfile" \
33068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33069 test 0 -eq $? || _lt_function_replace_fail=:
33073 if test x"$lt_shell_append" = xyes; then
33074 sed -e '/^func_append ()$/,/^} # func_append /c\
33077 eval "${1}+=\\${2}"\
33078 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33079 && mv -f "$cfgfile.tmp" "$cfgfile" \
33080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33081 test 0 -eq $? || _lt_function_replace_fail=:
33084 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33085 func_append_quoted ()\
33087 \ func_quote_for_eval "${2}"\
33088 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33089 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33090 && mv -f "$cfgfile.tmp" "$cfgfile" \
33091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33092 test 0 -eq $? || _lt_function_replace_fail=:
33095 # Save a `func_append' function call where possible by direct use of '+='
33096 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33097 && mv -f "$cfgfile.tmp" "$cfgfile" \
33098 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33099 test 0 -eq $? || _lt_function_replace_fail=:
33101 # Save a `func_append' function call even when '+=' is not available
33102 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33103 && mv -f "$cfgfile.tmp" "$cfgfile" \
33104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33105 test 0 -eq $? || _lt_function_replace_fail=:
33108 if test x"$_lt_function_replace_fail" = x":"; then
33109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33110 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33114 mv -f "$cfgfile" "$ofile" ||
33115 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33119 cat <<_LT_EOF >> "$ofile"
33121 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33123 # The linker used to build libraries.
33126 # How to create reloadable object files.
33127 reload_flag=$lt_reload_flag_CXX
33128 reload_cmds=$lt_reload_cmds_CXX
33130 # Commands used to build an old-style archive.
33131 old_archive_cmds=$lt_old_archive_cmds_CXX
33133 # A language specific compiler.
33134 CC=$lt_compiler_CXX
33136 # Is the compiler the GNU compiler?
33139 # Compiler flag to turn off builtin functions.
33140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33142 # Additional compiler flags for building library objects.
33143 pic_flag=$lt_lt_prog_compiler_pic_CXX
33145 # How to pass a linker flag through the compiler.
33146 wl=$lt_lt_prog_compiler_wl_CXX
33148 # Compiler flag to prevent dynamic linking.
33149 link_static_flag=$lt_lt_prog_compiler_static_CXX
33151 # Does compiler simultaneously support -c and -o options?
33152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33154 # Whether or not to add -lc for building shared libraries.
33155 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33157 # Whether or not to disallow shared libs when runtime libs are static.
33158 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33160 # Compiler flag to allow reflexive dlopens.
33161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33163 # Compiler flag to generate shared objects directly from archives.
33164 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33166 # Whether the compiler copes with passing no objects directly.
33167 compiler_needs_object=$lt_compiler_needs_object_CXX
33169 # Create an old-style archive from a shared archive.
33170 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33172 # Create a temporary old-style archive to link instead of a shared archive.
33173 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33175 # Commands used to build a shared archive.
33176 archive_cmds=$lt_archive_cmds_CXX
33177 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33179 # Commands used to build a loadable module if different from building
33180 # a shared archive.
33181 module_cmds=$lt_module_cmds_CXX
33182 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33184 # Whether we are building with GNU ld or not.
33185 with_gnu_ld=$lt_with_gnu_ld_CXX
33187 # Flag that allows shared libraries with undefined symbols to be built.
33188 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33190 # Flag that enforces no undefined symbols.
33191 no_undefined_flag=$lt_no_undefined_flag_CXX
33193 # Flag to hardcode \$libdir into a binary during linking.
33194 # This must work even if \$libdir does not exist
33195 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33197 # If ld is used when linking, flag to hardcode \$libdir into a binary
33198 # during linking. This must work even if \$libdir does not exist.
33199 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33201 # Whether we need a single "-rpath" flag with a separated argument.
33202 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33204 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33205 # DIR into the resulting binary.
33206 hardcode_direct=$hardcode_direct_CXX
33208 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33209 # DIR into the resulting binary and the resulting library dependency is
33210 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33211 # library is relocated.
33212 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33214 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33215 # into the resulting binary.
33216 hardcode_minus_L=$hardcode_minus_L_CXX
33218 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33219 # into the resulting binary.
33220 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33222 # Set to "yes" if building a shared library automatically hardcodes DIR
33223 # into the library and all subsequent libraries and executables linked
33225 hardcode_automatic=$hardcode_automatic_CXX
33227 # Set to yes if linker adds runtime paths of dependent libraries
33228 # to runtime path list.
33229 inherit_rpath=$inherit_rpath_CXX
33231 # Whether libtool must link a program against all its dependency libraries.
33232 link_all_deplibs=$link_all_deplibs_CXX
33234 # Set to "yes" if exported symbols are required.
33235 always_export_symbols=$always_export_symbols_CXX
33237 # The commands to list exported symbols.
33238 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33240 # Symbols that should not be listed in the preloaded symbols.
33241 exclude_expsyms=$lt_exclude_expsyms_CXX
33243 # Symbols that must always be exported.
33244 include_expsyms=$lt_include_expsyms_CXX
33246 # Commands necessary for linking programs (against libraries) with templates.
33247 prelink_cmds=$lt_prelink_cmds_CXX
33249 # Commands necessary for finishing linking programs.
33250 postlink_cmds=$lt_postlink_cmds_CXX
33252 # Specify filename containing input files.
33253 file_list_spec=$lt_file_list_spec_CXX
33255 # How to hardcode a shared library path into an executable.
33256 hardcode_action=$hardcode_action_CXX
33258 # The directories searched by this compiler when creating a shared library.
33259 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33261 # Dependencies to place before and after the objects being linked to
33262 # create a shared library.
33263 predep_objects=$lt_predep_objects_CXX
33264 postdep_objects=$lt_postdep_objects_CXX
33265 predeps=$lt_predeps_CXX
33266 postdeps=$lt_postdeps_CXX
33268 # The library search path used internally by the compiler when linking
33269 # a shared library.
33270 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33272 # ### END LIBTOOL TAG CONFIG: CXX
33277 for ac_file in $CONFIG_FILES; do
33278 # Support "outfile[:infile[:infile...]]"
33280 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33282 # PO directories have a Makefile.in generated from Makefile.in.in.
33283 case "$ac_file" in */Makefile.in)
33284 # Adjust a relative srcdir.
33285 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33286 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33287 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33288 # In autoconf-2.13 it is called $ac_given_srcdir.
33289 # In autoconf-2.50 it is called $srcdir.
33290 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33291 case "$ac_given_srcdir" in
33292 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33293 /*) top_srcdir="$ac_given_srcdir" ;;
33294 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33296 # Treat a directory as a PO directory if and only if it has a
33297 # POTFILES.in file. This allows packages to have multiple PO
33298 # directories under different names or in different locations.
33299 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33300 rm -f "$ac_dir/POTFILES"
33301 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33302 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33303 POMAKEFILEDEPS="POTFILES.in"
33304 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33305 # on $ac_dir but don't depend on user-specified configuration
33307 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33308 # The LINGUAS file contains the set of available languages.
33309 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33310 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33312 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33313 # Hide the ALL_LINGUAS assigment from automake.
33314 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33315 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33317 # The set of available languages was given in configure.in.
33318 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33321 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33322 # Compute UPDATEPOFILES
33323 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33324 # Compute DUMMYPOFILES
33325 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33327 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33328 case "$ac_given_srcdir" in
33330 *) srcdirpre='$(srcdir)/' ;;
33336 for lang in $ALL_LINGUAS; do
33337 POFILES="$POFILES $srcdirpre$lang.po"
33338 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33339 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33340 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33342 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33343 # environment variable.
33345 if test -n "$ALL_LINGUAS"; then
33346 for presentlang in $ALL_LINGUAS; do
33348 if test "%UNSET%" != "$LINGUAS"; then
33349 desiredlanguages="$LINGUAS"
33351 desiredlanguages="$ALL_LINGUAS"
33353 for desiredlang in $desiredlanguages; do
33354 # Use the presentlang catalog if desiredlang is
33355 # a. equal to presentlang, or
33356 # b. a variant of presentlang (because in this case,
33357 # presentlang can be used as a fallback for messages
33358 # which are not translated in the desiredlang catalog).
33359 case "$desiredlang" in
33360 "$presentlang"*) useit=yes;;
33363 if test $useit = yes; then
33364 INST_LINGUAS="$INST_LINGUAS $presentlang"
33369 if test -n "$INST_LINGUAS"; then
33370 for lang in $INST_LINGUAS; do
33371 CATALOGS="$CATALOGS $lang.gmo"
33374 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33375 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"
33376 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33377 if test -f "$f"; then
33379 *.orig | *.bak | *~) ;;
33380 *) cat "$f" >> "$ac_dir/Makefile" ;;
33397 ac_clean_files=$ac_clean_files_save
33399 test $ac_write_fail = 0 ||
33400 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33403 # configure is writing to config.log, and then calls config.status.
33404 # config.status does its own redirection, appending to config.log.
33405 # Unfortunately, on DOS this fails, as config.log is still kept open
33406 # by configure, so config.status won't be able to write to it; its
33407 # output is simply discarded. So we exec the FD to /dev/null,
33408 # effectively closing config.log, so it can be properly (re)opened and
33409 # appended to by config.status. When coming back to configure, we
33410 # need to make the FD available again.
33411 if test "$no_create" != yes; then
33413 ac_config_status_args=
33414 test "$silent" = yes &&
33415 ac_config_status_args="$ac_config_status_args --quiet"
33417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33420 # would make configure fail if this is the last instruction.
33421 $ac_cs_success || as_fn_exit 1
33423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33429 if test "${support_bat}" = "yes" ; then
33430 if test "x$QMAKE" = "xnone"; then
33431 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33435 echo "Creating bat Makefile"
33441 ${MAKE:-make} clean
33445 if test X"$GCC" = "Xyes" ; then
33446 echo "Doing make of dependencies"
33447 ${MAKE:-make} depend
33451 chmod 755 install_conf_file build-depkgs-qt-console
33455 chmod 755 bacula btraceback mtx-changer storage-ctl bsg_persist
33456 chmod 755 dvd-handler dvd-simulator
33457 chmod 755 bconsole disk-changer devel_bacula logrotate
33461 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33462 chmod 755 $c/update_postgresql_tables_10_to_11
33463 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33464 chmod 755 $c/update_postgresql_tables_11_to_12
33469 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33470 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33472 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33473 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33475 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33476 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33478 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33479 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33481 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33482 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33485 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33486 chmod 755 $c/sqlite
33489 chmod 755 $c/install-default-backend
33491 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33492 largefile_support="yes"
33495 if test X"$GCC" = "Xyes" ; then
33496 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33497 if test "x${CCVERSION}" = "x" ; then
33498 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33500 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33501 if test x"${CXXVERSION}" = x ; then
33502 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33506 # clean up any old junk
33510 ${MAKE:-make} clean
33513 Configuration on `date`:
33515 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33516 Bacula version: ${BACULA} ${VERSION} (${DATE})
33517 Source code location: ${srcdir}
33518 Install binaries: ${sbindir}
33519 Install libraries: ${libdir}
33520 Install config files: ${sysconfdir}
33521 Scripts directory: ${scriptdir}
33522 Archive directory: ${archivedir}
33523 Working directory: ${working_dir}
33524 PID directory: ${piddir}
33525 Subsys directory: ${subsysdir}
33526 Man directory: ${mandir}
33527 Data directory: ${datarootdir}
33528 Plugin directory: ${plugindir}
33529 C Compiler: ${CC} ${CCVERSION}
33530 C++ Compiler: ${CXX} ${CXXVERSION}
33531 Compiler flags: ${WCFLAGS} ${CFLAGS}
33532 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33534 Statically Linked Tools: ${support_static_tools}
33535 Statically Linked FD: ${support_static_fd}
33536 Statically Linked SD: ${support_static_sd}
33537 Statically Linked DIR: ${support_static_dir}
33538 Statically Linked CONS: ${support_static_cons}
33539 Database backends: ${db_backends}
33540 Database port: ${db_port}
33541 Database name: ${db_name}
33542 Database user: ${db_user}
33544 Job Output Email: ${job_email}
33545 Traceback Email: ${dump_email}
33546 SMTP Host Address: ${smtp_host}
33548 Director Port: ${dir_port}
33549 File daemon Port: ${fd_port}
33550 Storage daemon Port: ${sd_port}
33552 Director User: ${dir_user}
33553 Director Group: ${dir_group}
33554 Storage Daemon User: ${sd_user}
33555 Storage DaemonGroup: ${sd_group}
33556 File Daemon User: ${fd_user}
33557 File Daemon Group: ${fd_group}
33559 Large file support: $largefile_support
33560 Bacula conio support: ${got_conio} ${CONS_LIBS}
33561 readline support: ${got_readline} ${PRTREADLINE_SRC}
33562 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33563 TLS support: ${support_tls}
33564 Encryption support: ${support_crypto}
33565 ZLIB support: ${have_zlib}
33566 LZO support: ${have_lzo}
33567 enable-smartalloc: ${support_smartalloc}
33568 enable-lockmgr: ${support_lockmgr}
33569 bat support: ${support_bat}
33570 client-only: ${build_client_only}
33571 build-dird: ${build_dird}
33572 build-stored: ${build_stored}
33573 Plugin support: ${have_plugins}
33574 AFS support: ${have_afs}
33575 ACL support: ${have_acl}
33576 XATTR support: ${have_xattr}
33577 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33578 Batch insert enabled: ${batch_insert_db_backends}
33582 # create a small shell script useful for support with
33583 # configure options and config.out info
33584 cat > scripts/bacula_config << EOF
33587 $ $0 $ac_configure_args
33589 cat config.out >> scripts/bacula_config
33590 echo __EOC__ >> scripts/bacula_config
33591 chmod 755 scripts/bacula_config