2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.2.12.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='bacula'
569 PACKAGE_TARNAME='bacula'
570 PACKAGE_VERSION='5.2.12'
571 PACKAGE_STRING='bacula 5.2.12'
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
713 TRAY_MONITOR_CPPFLAGS
722 INTL_LIBTOOL_SUFFIX_PREFIX
729 BUILD_INCLUDED_LIBINTL
760 HAVE_OPENBSD_OS_FALSE
764 HAVE_FREEBSD_OS_FALSE
778 INCLUDE_UNINSTALL_TARGET
779 INCLUDE_INSTALL_TARGET
783 LIBTOOL_UNINSTALL_TARGET
784 LIBTOOL_INSTALL_TARGET
785 DEFAULT_SHARED_OBJECT_TYPE
867 LIBBACFIND_LT_RELEASE
868 LIBBACCATS_LT_RELEASE
913 program_transform_name
924 ac_subst_files='MCOMMON'
926 enable_option_checking
940 with_included_gettext
979 with_mon_dir_password
1006 ac_precious_vars='build_alias
1024 # Initialize some variables set by options.
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1038 program_transform_name=s,x,x,
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1063 infodir='${datarootdir}/info'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\$ac_option
1084 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1089 # Accept the important Cygnus configure options, so we can diagnose typos.
1091 case $ac_dashdash$ac_option in
1095 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1097 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098 bindir=$ac_optarg ;;
1100 -build | --build | --buil | --bui | --bu)
1101 ac_prev=build_alias ;;
1102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103 build_alias=$ac_optarg ;;
1105 -cache-file | --cache-file | --cache-fil | --cache-fi \
1106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107 ac_prev=cache_file ;;
1108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110 cache_file=$ac_optarg ;;
1112 --config-cache | -C)
1113 cache_file=config.cache ;;
1115 -datadir | --datadir | --datadi | --datad)
1117 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118 datadir=$ac_optarg ;;
1120 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121 | --dataroo | --dataro | --datar)
1122 ac_prev=datarootdir ;;
1123 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125 datarootdir=$ac_optarg ;;
1127 -disable-* | --disable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid feature name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "enable_$ac_useropt"
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval enable_$ac_useropt=no ;;
1143 -docdir | --docdir | --docdi | --doc | --do)
1145 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1146 docdir=$ac_optarg ;;
1148 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1150 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1151 dvidir=$ac_optarg ;;
1153 -enable-* | --enable-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid feature name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "enable_$ac_useropt"
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1167 eval enable_$ac_useropt=\$ac_optarg ;;
1169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1171 | --exec | --exe | --ex)
1172 ac_prev=exec_prefix ;;
1173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1175 | --exec=* | --exe=* | --ex=*)
1176 exec_prefix=$ac_optarg ;;
1178 -gas | --gas | --ga | --g)
1179 # Obsolete; use --with-gas.
1182 -help | --help | --hel | --he | -h)
1183 ac_init_help=long ;;
1184 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1185 ac_init_help=recursive ;;
1186 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1187 ac_init_help=short ;;
1189 -host | --host | --hos | --ho)
1190 ac_prev=host_alias ;;
1191 -host=* | --host=* | --hos=* | --ho=*)
1192 host_alias=$ac_optarg ;;
1194 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1196 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1198 htmldir=$ac_optarg ;;
1200 -includedir | --includedir | --includedi | --included | --include \
1201 | --includ | --inclu | --incl | --inc)
1202 ac_prev=includedir ;;
1203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1204 | --includ=* | --inclu=* | --incl=* | --inc=*)
1205 includedir=$ac_optarg ;;
1207 -infodir | --infodir | --infodi | --infod | --info | --inf)
1209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1210 infodir=$ac_optarg ;;
1212 -libdir | --libdir | --libdi | --libd)
1214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1215 libdir=$ac_optarg ;;
1217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1218 | --libexe | --libex | --libe)
1219 ac_prev=libexecdir ;;
1220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1221 | --libexe=* | --libex=* | --libe=*)
1222 libexecdir=$ac_optarg ;;
1224 -localedir | --localedir | --localedi | --localed | --locale)
1225 ac_prev=localedir ;;
1226 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1227 localedir=$ac_optarg ;;
1229 -localstatedir | --localstatedir | --localstatedi | --localstated \
1230 | --localstate | --localstat | --localsta | --localst | --locals)
1231 ac_prev=localstatedir ;;
1232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1233 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1234 localstatedir=$ac_optarg ;;
1236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1239 mandir=$ac_optarg ;;
1241 -nfp | --nfp | --nf)
1242 # Obsolete; use --without-fp.
1245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1246 | --no-cr | --no-c | -n)
1249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1255 | --oldin | --oldi | --old | --ol | --o)
1256 ac_prev=oldincludedir ;;
1257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1260 oldincludedir=$ac_optarg ;;
1262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1265 prefix=$ac_optarg ;;
1267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1268 | --program-pre | --program-pr | --program-p)
1269 ac_prev=program_prefix ;;
1270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1272 program_prefix=$ac_optarg ;;
1274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1275 | --program-suf | --program-su | --program-s)
1276 ac_prev=program_suffix ;;
1277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1279 program_suffix=$ac_optarg ;;
1281 -program-transform-name | --program-transform-name \
1282 | --program-transform-nam | --program-transform-na \
1283 | --program-transform-n | --program-transform- \
1284 | --program-transform | --program-transfor \
1285 | --program-transfo | --program-transf \
1286 | --program-trans | --program-tran \
1287 | --progr-tra | --program-tr | --program-t)
1288 ac_prev=program_transform_name ;;
1289 -program-transform-name=* | --program-transform-name=* \
1290 | --program-transform-nam=* | --program-transform-na=* \
1291 | --program-transform-n=* | --program-transform-=* \
1292 | --program-transform=* | --program-transfor=* \
1293 | --program-transfo=* | --program-transf=* \
1294 | --program-trans=* | --program-tran=* \
1295 | --progr-tra=* | --program-tr=* | --program-t=*)
1296 program_transform_name=$ac_optarg ;;
1298 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1300 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1301 pdfdir=$ac_optarg ;;
1303 -psdir | --psdir | --psdi | --psd | --ps)
1305 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309 | -silent | --silent | --silen | --sile | --sil)
1312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1316 sbindir=$ac_optarg ;;
1318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1320 | --sharedst | --shareds | --shared | --share | --shar \
1322 ac_prev=sharedstatedir ;;
1323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1327 sharedstatedir=$ac_optarg ;;
1329 -site | --site | --sit)
1331 -site=* | --site=* | --sit=*)
1334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1337 srcdir=$ac_optarg ;;
1339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1340 | --syscon | --sysco | --sysc | --sys | --sy)
1341 ac_prev=sysconfdir ;;
1342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1344 sysconfdir=$ac_optarg ;;
1346 -target | --target | --targe | --targ | --tar | --ta | --t)
1347 ac_prev=target_alias ;;
1348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1349 target_alias=$ac_optarg ;;
1351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1354 -version | --version | --versio | --versi | --vers | -V)
1355 ac_init_version=: ;;
1358 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 as_fn_error $? "invalid package name: $ac_useropt"
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1371 eval with_$ac_useropt=\$ac_optarg ;;
1373 -without-* | --without-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1387 eval with_$ac_useropt=no ;;
1390 # Obsolete; use --with-x.
1393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394 | --x-incl | --x-inc | --x-in | --x-i)
1395 ac_prev=x_includes ;;
1396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398 x_includes=$ac_optarg ;;
1400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402 ac_prev=x_libraries ;;
1403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405 x_libraries=$ac_optarg ;;
1407 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1408 Try \`$0 --help' for more information"
1412 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1413 # Reject names that are not valid shell variable names.
1414 case $ac_envvar in #(
1415 '' | [0-9]* | *[!_$as_cr_alnum]* )
1416 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1418 eval $ac_envvar=\$ac_optarg
1419 export $ac_envvar ;;
1422 # FIXME: should be removed in autoconf 3.0.
1423 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1432 if test -n "$ac_prev"; then
1433 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434 as_fn_error $? "missing argument to $ac_option"
1437 if test -n "$ac_unrecognized_opts"; then
1438 case $enable_option_checking in
1440 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1441 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1445 # Check all directory arguments for consistency.
1446 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447 datadir sysconfdir sharedstatedir localstatedir includedir \
1448 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449 libdir localedir mandir
1451 eval ac_val=\$$ac_var
1452 # Remove trailing slashes.
1455 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456 eval $ac_var=\$ac_val;;
1458 # Be sure to have absolute directory names.
1460 [\\/$]* | ?:[\\/]* ) continue;;
1461 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1463 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1471 target=$target_alias
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1478 If a cross compiler is detected then cross compile mode will be used" >&2
1479 elif test "x$build_alias" != "x$host_alias"; then
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1487 test "$silent" = yes && exec 6>/dev/null
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493 as_fn_error $? "working directory cannot be determined"
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495 as_fn_error $? "pwd does not report name of working directory"
1498 # Find the source files, if location was not specified.
1499 if test -z "$srcdir"; then
1500 ac_srcdir_defaulted=yes
1501 # Try the directory containing this script, then the parent directory.
1502 ac_confdir=`$as_dirname -- "$as_myself" ||
1503 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1504 X"$as_myself" : 'X\(//\)[^/]' \| \
1505 X"$as_myself" : 'X\(//\)$' \| \
1506 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1507 $as_echo X"$as_myself" |
1508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1526 if test ! -r "$srcdir/$ac_unique_file"; then
1530 ac_srcdir_defaulted=no
1532 if test ! -r "$srcdir/$ac_unique_file"; then
1533 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1534 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1536 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1538 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 for ac_var in $ac_precious_vars; do
1551 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_env_${ac_var}_value=\$${ac_var}
1553 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 # Report the --help message.
1560 if test "$ac_init_help" = "long"; then
1561 # Omit some internal or obsolete options to make the list less imposing.
1562 # This message is too long to be a string in the A/UX 3.1 sh.
1564 \`configure' configures bacula 5.2.12 to adapt to many kinds of systems.
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE. See below for descriptions of some of the useful variables.
1571 Defaults for the options are specified in brackets.
1574 -h, --help display this help and exit
1575 --help=short display options specific to this package
1576 --help=recursive display the short help of all the included packages
1577 -V, --version display version information and exit
1578 -q, --quiet, --silent do not print \`checking ...' messages
1579 --cache-file=FILE cache test results in FILE [disabled]
1580 -C, --config-cache alias for \`--cache-file=config.cache'
1581 -n, --no-create do not create output files
1582 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1584 Installation directories:
1585 --prefix=PREFIX install architecture-independent files in PREFIX
1586 [$ac_default_prefix]
1587 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1595 For better control, use the options below.
1597 Fine tuning of the installation directories:
1598 --bindir=DIR user executables [EPREFIX/bin]
1599 --sbindir=DIR system admin executables [EPREFIX/sbin]
1600 --libexecdir=DIR program executables [EPREFIX/libexec]
1601 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1602 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1603 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1604 --libdir=DIR object code libraries [EPREFIX/lib]
1605 --includedir=DIR C header files [PREFIX/include]
1606 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1607 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1608 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1609 --infodir=DIR info documentation [DATAROOTDIR/info]
1610 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1611 --mandir=DIR man documentation [DATAROOTDIR/man]
1612 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1613 --htmldir=DIR html documentation [DOCDIR]
1614 --dvidir=DIR dvi documentation [DOCDIR]
1615 --pdfdir=DIR pdf documentation [DOCDIR]
1616 --psdir=DIR ps documentation [DOCDIR]
1622 --x-includes=DIR X include files are in DIR
1623 --x-libraries=DIR X library files are in DIR
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 if test -n "$ac_init_help"; then
1632 case $ac_init_help in
1633 short | recursive ) echo "Configuration of bacula 5.2.12:";;
1638 --disable-option-checking ignore unrecognized --enable/--with options
1639 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1640 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1641 --enable-libtool enable building using GNU libtool [default=yes]
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=no]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-includes enable installing of include files [default=no]
1648 --disable-nls do not use Native Language Support
1649 --disable-rpath do not hardcode runtime library paths
1650 --enable-gnome enable build of bgnome-console GUI [default=no]
1651 --enable-bat enable build of bat Qt4 GUI [default=no]
1652 --enable-bwx-console enable build of wxWidgets console [default=no]
1653 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1655 --enable-smartalloc enable smartalloc debugging support [default=no]
1656 --enable-lockmgr enable lock manager support [default=no]
1657 --enable-static-tools enable static tape tools [default=no]
1658 --enable-static-fd enable static File daemon [default=no]
1659 --enable-static-sd enable static Storage daemon [default=no]
1660 --enable-static-dir enable static Director [default=no]
1661 --enable-static-cons enable static Console [default=no]
1662 --enable-client-only build client (File daemon) only [default=no]
1663 --enable-build-dird enable building of dird (Director) [default=yes]
1664 --enable-build-stored enable building of stored (Storage daemon)
1666 --disable-conio disable conio support [default=no]
1667 --enable-ipv6 enable ipv6 support [default=yes]
1668 --disable-readline disable readline support [default=yes]
1669 --enable-batch-insert enable the DB batch insert code [default=yes]
1670 --disable-largefile omit support for large files
1671 --disable-afs disable afs support [default=auto]
1672 --disable-acl disable acl support [default=auto]
1673 --disable-xattr disable xattr support [default=auto]
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-pic try to use only PIC/non-PIC objects [default=use
1680 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1681 --with-sysroot=DIR Search for dependent libraries within DIR
1682 (or the compiler's sysroot if not specified).
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search for libintl in includedir and libdir
1688 --with-included-gettext use the GNU gettext library included here
1689 --with-readline[=DIR] specify readline library directory
1690 --with-python[=DIR] Include Python support. DIR is the Python base
1691 install directory, default is to search through a
1692 number of common places for the Python files.
1693 --with-tcp-wrappers[=DIR]
1694 enable tcpwrappers support
1695 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1696 --with-working-dir=PATH specify path of Bacula working directory
1697 --with-archivedir=PATH specify path of SD archive directory
1698 --with-basename=RESNAME specify base resource name for daemons
1699 --with-hostname=RESNAME specify host name for daemons
1700 --with-scriptdir=PATH specify path of Bacula scripts directory
1701 --with-bsrdir=PATH specify path of Bacula bsrs directory
1702 --with-logdir=PATH specify path of Bacula logs directory
1703 --with-plugindir=PATH specify path of Bacula plugins directory
1704 --with-dump-email=EMAIL dump email address
1705 --with-job-email=EMAIL job output email address
1706 --with-smtp-host=HOST SMTP mail host address
1707 --with-pid-dir=PATH specify location of Bacula pid files
1708 --with-subsys-dir=PATH specify location of Bacula subsys file
1709 --with-baseport=PORT specify base port address for daemons
1710 --with-dir-password=PASSWORD
1711 specify Director's password
1712 --with-fd-password=PASSWORD
1713 specify Client's password
1714 --with-sd-password=PASSWORD
1715 specify Storage daemon's password
1716 --with-mon-dir-password=PASSWORD
1717 specify Director's password used by the monitor
1718 --with-mon-fd-password=PASSWORD
1719 specify Client's password used by the monitor
1720 --with-mon-sd-password=PASSWORD
1721 specify Storage daemon's password used by the
1723 --with-db-name=DBNAME specify database name [default=bacula]
1724 --with-db-user=UNAME specify database user [default=bacula]
1725 --with-db-password=PWD specify database password [default=*none*]
1726 --with-db-port=DBPORT specify a database port [default=null]
1727 --with-dir-user=USER specify user for Director daemon
1728 --with-dir-group=GROUP specify group for Director daemon
1729 --with-sd-user=USER specify user for Storage daemon
1730 --with-sd-group=GROUP specify group for Storage daemon
1731 --with-fd-user=USER specify user for File daemon
1732 --with-fd-group=GROUP specify group for File daemon
1733 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1734 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1735 base install directory, [default=/usr/local/pgsql]
1736 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1737 directory, default is to search through a number of
1738 common places for the MySQL files.
1739 --with-embedded-mysql[=DIR]
1740 Include MySQL support. DIR is the MySQL base install
1741 directory, default is to search through a number of
1742 common places for the MySQL files.
1743 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1744 install directory, default is to search through a
1745 number of common places for the SQLite3 files.
1746 --with-x use the X Window System
1747 --with-afsdir[=DIR] Directory holding AFS includes/libs
1748 --with-systemd[=UNITDIR]
1749 Include systemd support. UNITDIR is where systemd
1750 system .service files are located, default is to ask
1753 Some influential environment variables:
1754 CC C compiler command
1755 CFLAGS C compiler flags
1756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1757 nonstandard directory <lib dir>
1758 LIBS libraries to pass to the linker, e.g. -l<library>
1759 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1760 you have headers in a nonstandard directory <include dir>
1761 CXX C++ compiler command
1762 CXXFLAGS C++ compiler flags
1764 WXCONFIG wx-config command. On some systems, you must set it to
1765 wx-config-2.6 to use wxWidgets 2.6.
1766 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1767 CXXCPP C++ preprocessor
1768 XMKMF Path to xmkmf, Makefile generator for X Window System
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1773 Report bugs to the package provider.
1778 if test "$ac_init_help" = "recursive"; then
1779 # If there are subdirs, report their specific --help.
1780 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781 test -d "$ac_dir" ||
1782 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1803 .) # We are building in place.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1827 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1836 bacula configure 5.2.12
1837 generated by GNU Autoconf 2.68
1839 Copyright (C) 2010 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1846 ## ------------------------ ##
1847 ## Autoconf initialization. ##
1848 ## ------------------------ ##
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.$ac_objext; then :
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1886 } # ac_fn_c_try_compile
1888 # ac_fn_cxx_try_compile LINENO
1889 # ----------------------------
1890 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_compile ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext
1895 if { { ac_try="$ac_compile"
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_compile") 2>conftest.err
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_cxx_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest.$ac_objext; then :
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_cxx_try_compile
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_cpp conftest.$ac_ext"
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } > conftest.i && {
1948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1963 # ac_fn_c_try_link LINENO
1964 # -----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext conftest$ac_exeext
1970 if { { ac_try="$ac_link"
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_link") 2>conftest.err
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_c_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest$ac_exeext && {
1989 test "$cross_compiling" = yes ||
1990 $as_test_x conftest$ac_exeext
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1999 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001 # interfere with the next link command; also delete a directory that is
2002 # left behind by Apple's compiler. We do this before executing the actions.
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2007 } # ac_fn_c_try_link
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2026 if ac_fn_c_try_compile "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_header_compile
2040 # ac_fn_c_try_run LINENO
2041 # ----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2082 # ac_fn_c_check_func LINENO FUNC VAR
2083 # ----------------------------------
2084 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2085 ac_fn_c_check_func ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2097 #define $2 innocuous_$2
2099 /* System header to define __stub macros and hopefully few prototypes,
2100 which can conflict with char $2 (); below.
2101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2102 <limits.h> exists even on freestanding compilers. */
2105 # include <limits.h>
2107 # include <assert.h>
2112 /* Override any GCC internal prototype to avoid an error.
2113 Use char because int might match the return type of a GCC
2114 builtin and then its argument prototype would still apply. */
2119 /* The GNU C library defines this for functions which it implements
2120 to always fail with ENOSYS. Some functions are actually named
2121 something starting with __ and the normal name is an alias. */
2122 #if defined __stub_$2 || defined __stub___$2
2134 if ac_fn_c_try_link "$LINENO"; then :
2139 rm -f core conftest.err conftest.$ac_objext \
2140 conftest$ac_exeext conftest.$ac_ext
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 } # ac_fn_c_check_func
2149 # ac_fn_cxx_try_cpp LINENO
2150 # ------------------------
2151 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_cpp ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if { { ac_try="$ac_cpp conftest.$ac_ext"
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2164 if test -s conftest.err; then
2165 grep -v '^ *+' conftest.err >conftest.er1
2166 cat conftest.er1 >&5
2167 mv -f conftest.er1 conftest.err
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } > conftest.i && {
2171 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2172 test ! -s conftest.err
2176 $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 as_fn_set_status $ac_retval
2184 } # ac_fn_cxx_try_cpp
2186 # ac_fn_cxx_try_link LINENO
2187 # -------------------------
2188 # Try to link conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_cxx_try_link ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext conftest$ac_exeext
2193 if { { ac_try="$ac_link"
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_link") 2>conftest.err
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_cxx_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest$ac_exeext && {
2212 test "$cross_compiling" = yes ||
2213 $as_test_x conftest$ac_exeext
2217 $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2222 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224 # interfere with the next link command; also delete a directory that is
2225 # left behind by Apple's compiler. We do this before executing the actions.
2226 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 as_fn_set_status $ac_retval
2230 } # ac_fn_cxx_try_link
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2233 # ---------------------------------------------
2234 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2236 ac_fn_c_check_decl ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 as_decl_name=`echo $2|sed 's/ *(.*//'`
2240 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2242 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2243 if eval \${$3+:} false; then :
2244 $as_echo_n "(cached) " >&6
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 #ifndef $as_decl_name
2254 (void) $as_decl_use;
2256 (void) $as_decl_name;
2264 if ac_fn_c_try_compile "$LINENO"; then :
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 } # ac_fn_c_check_decl
2278 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2279 # -------------------------------------------
2280 # Tests whether TYPE exists after having included INCLUDES, setting cache
2281 # variable VAR accordingly.
2282 ac_fn_c_check_type ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval \${$3+:} false; then :
2288 $as_echo_n "(cached) " >&6
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2316 if ac_fn_c_try_compile "$LINENO"; then :
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330 } # ac_fn_c_check_type
2332 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2333 # -------------------------------------------------------
2334 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2335 # the include files in INCLUDES and setting the cache variable VAR
2337 ac_fn_c_check_header_mongrel ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 if eval \${$3+:} false; then :
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2350 # Is the header compilable?
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2352 $as_echo_n "checking $2 usability... " >&6; }
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359 ac_header_compiler=yes
2361 ac_header_compiler=no
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2365 $as_echo "$ac_header_compiler" >&6; }
2367 # Is the header present?
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2369 $as_echo_n "checking $2 presence... " >&6; }
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2374 if ac_fn_c_try_cpp "$LINENO"; then :
2375 ac_header_preproc=yes
2377 ac_header_preproc=no
2379 rm -f conftest.err conftest.i conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2381 $as_echo "$ac_header_preproc" >&6; }
2383 # So? What about this header?
2384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2387 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2389 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2393 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2395 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2397 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2399 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2401 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if eval \${$3+:} false; then :
2407 $as_echo_n "(cached) " >&6
2409 eval "$3=\$ac_header_compiler"
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_header_mongrel
2419 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2420 # --------------------------------------------
2421 # Tries to find the compile-time value of EXPR in a program that includes
2422 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2424 ac_fn_c_compute_int ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 if test "$cross_compiling" = yes; then
2428 # Depending upon the size, compute the lo and hi bounds.
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 static int test_array [1 - 2 * !(($2) >= 0)];
2442 if ac_fn_c_try_compile "$LINENO"; then :
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2451 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2458 if ac_fn_c_try_compile "$LINENO"; then :
2459 ac_hi=$ac_mid; break
2461 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2462 if test $ac_lo -le $ac_mid; then
2466 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2477 static int test_array [1 - 2 * !(($2) < 0)];
2484 if ac_fn_c_try_compile "$LINENO"; then :
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2493 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501 ac_lo=$ac_mid; break
2503 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2504 if test $ac_mid -le $ac_hi; then
2508 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 # Binary search between lo and hi bounds.
2519 while test "x$ac_lo" != "x$ac_hi"; do
2520 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2527 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2534 if ac_fn_c_try_compile "$LINENO"; then :
2537 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2549 static long int longval () { return $2; }
2550 static unsigned long int ulongval () { return $2; }
2557 FILE *f = fopen ("conftest.val", "w");
2562 long int i = longval ();
2565 fprintf (f, "%ld", i);
2569 unsigned long int i = ulongval ();
2572 fprintf (f, "%lu", i);
2574 /* Do not output a trailing newline, as this causes \r\n confusion
2575 on some platforms. */
2576 return ferror (f) || fclose (f) != 0;
2582 if ac_fn_c_try_run "$LINENO"; then :
2583 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2588 conftest.$ac_objext conftest.beam conftest.$ac_ext
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593 as_fn_set_status $ac_retval
2595 } # ac_fn_c_compute_int
2597 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2598 # ----------------------------------------------------
2599 # Tries to find if the field MEMBER exists in type AGGR, after including
2600 # INCLUDES, setting cache variable VAR accordingly.
2601 ac_fn_c_check_member ()
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2605 $as_echo_n "checking for $2.$3... " >&6; }
2606 if eval \${$4+:} false; then :
2607 $as_echo_n "(cached) " >&6
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2622 if ac_fn_c_try_compile "$LINENO"; then :
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h. */
2632 if (sizeof ac_aggr.$3)
2638 if ac_fn_c_try_compile "$LINENO"; then :
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649 $as_echo "$ac_res" >&6; }
2650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2652 } # ac_fn_c_check_member
2654 # ac_fn_cxx_try_run LINENO
2655 # ------------------------
2656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2657 # that executables *can* be run.
2658 ac_fn_cxx_try_run ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 if { { ac_try="$ac_link"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_link") 2>&5
2670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2672 { { case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678 (eval "$ac_try") 2>&5
2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681 test $ac_status = 0; }; }; then :
2684 $as_echo "$as_me: program exited with status $ac_status" >&5
2685 $as_echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2688 ac_retval=$ac_status
2690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 as_fn_set_status $ac_retval
2694 } # ac_fn_cxx_try_run
2696 # ac_fn_cxx_check_func LINENO FUNC VAR
2697 # ------------------------------------
2698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2699 ac_fn_cxx_check_func ()
2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2703 $as_echo_n "checking for $2... " >&6; }
2704 if eval \${$3+:} false; then :
2705 $as_echo_n "(cached) " >&6
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2711 #define $2 innocuous_$2
2713 /* System header to define __stub macros and hopefully few prototypes,
2714 which can conflict with char $2 (); below.
2715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2716 <limits.h> exists even on freestanding compilers. */
2719 # include <limits.h>
2721 # include <assert.h>
2726 /* Override any GCC internal prototype to avoid an error.
2727 Use char because int might match the return type of a GCC
2728 builtin and then its argument prototype would still apply. */
2733 /* The GNU C library defines this for functions which it implements
2734 to always fail with ENOSYS. Some functions are actually named
2735 something starting with __ and the normal name is an alias. */
2736 #if defined __stub_$2 || defined __stub___$2
2748 if ac_fn_cxx_try_link "$LINENO"; then :
2753 rm -f core conftest.err conftest.$ac_objext \
2754 conftest$ac_exeext conftest.$ac_ext
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2761 } # ac_fn_cxx_check_func
2762 cat >config.log <<_ACEOF
2763 This file contains any messages produced by compilers while
2764 running configure, to aid debugging if configure makes a mistake.
2766 It was created by bacula $as_me 5.2.12, which was
2767 generated by GNU Autoconf 2.68. Invocation command line was
2779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2791 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 $as_echo "PATH: $as_dir"
2819 # Keep a trace of the command line.
2820 # Strip out --no-create and --no-recursion so they do not pile up.
2821 # Strip out --silent because we don't want to record it for future runs.
2822 # Also quote any args containing shell meta-characters.
2823 # Make two passes to allow for proper duplicate-argument suppression.
2827 ac_must_keep_next=false
2833 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2835 | -silent | --silent | --silen | --sile | --sil)
2838 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2841 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2843 as_fn_append ac_configure_args1 " '$ac_arg'"
2844 if test $ac_must_keep_next = true; then
2845 ac_must_keep_next=false # Got value, back to normal.
2848 *=* | --config-cache | -C | -disable-* | --disable-* \
2849 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2850 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2851 | -with-* | --with-* | -without-* | --without-* | --x)
2852 case "$ac_configure_args0 " in
2853 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2856 -* ) ac_must_keep_next=true ;;
2859 as_fn_append ac_configure_args " '$ac_arg'"
2864 { ac_configure_args0=; unset ac_configure_args0;}
2865 { ac_configure_args1=; unset ac_configure_args1;}
2867 # When interrupted or exit'd, cleanup temporary files, and complete
2868 # config.log. We remove comments because anyway the quotes in there
2869 # would cause problems or look ugly.
2870 # WARNING: Use '\'' to represent an apostrophe within the trap.
2871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2872 trap 'exit_status=$?
2873 # Save into config.log some information that might help in debugging.
2877 $as_echo "## ---------------- ##
2878 ## Cache variables. ##
2879 ## ---------------- ##"
2881 # The following way of writing the cache mishandles newlines in values,
2883 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2884 eval ac_val=\$$ac_var
2888 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2889 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2892 _ | IFS | as_nl) ;; #(
2893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2894 *) { eval $ac_var=; unset $ac_var;} ;;
2899 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2900 *${as_nl}ac_space=\ *)
2902 "s/'\''/'\''\\\\'\'''\''/g;
2903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2913 $as_echo "## ----------------- ##
2914 ## Output variables. ##
2915 ## ----------------- ##"
2917 for ac_var in $ac_subst_vars
2919 eval ac_val=\$$ac_var
2921 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2923 $as_echo "$ac_var='\''$ac_val'\''"
2927 if test -n "$ac_subst_files"; then
2928 $as_echo "## ------------------- ##
2929 ## File substitutions. ##
2930 ## ------------------- ##"
2932 for ac_var in $ac_subst_files
2934 eval ac_val=\$$ac_var
2936 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2938 $as_echo "$ac_var='\''$ac_val'\''"
2943 if test -s confdefs.h; then
2944 $as_echo "## ----------- ##
2951 test "$ac_signal" != 0 &&
2952 $as_echo "$as_me: caught signal $ac_signal"
2953 $as_echo "$as_me: exit $exit_status"
2955 rm -f core *.core core.conftest.* &&
2956 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2959 for ac_signal in 1 2 13 15; do
2960 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2964 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2965 rm -f -r conftest* confdefs.h
2967 $as_echo "/* confdefs.h */" > confdefs.h
2969 # Predefined preprocessor variables.
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_NAME "$PACKAGE_NAME"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_STRING "$PACKAGE_STRING"
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE_URL "$PACKAGE_URL"
2996 # Let the site file select an alternate cache file if it wants to.
2997 # Prefer an explicitly selected file to automatically selected ones.
3000 if test -n "$CONFIG_SITE"; then
3001 # We do not want a PATH search for config.site.
3002 case $CONFIG_SITE in #((
3003 -*) ac_site_file1=./$CONFIG_SITE;;
3004 */*) ac_site_file1=$CONFIG_SITE;;
3005 *) ac_site_file1=./$CONFIG_SITE;;
3007 elif test "x$prefix" != xNONE; then
3008 ac_site_file1=$prefix/share/config.site
3009 ac_site_file2=$prefix/etc/config.site
3011 ac_site_file1=$ac_default_prefix/share/config.site
3012 ac_site_file2=$ac_default_prefix/etc/config.site
3014 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3016 test "x$ac_site_file" = xNONE && continue
3017 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3019 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3020 sed 's/^/| /' "$ac_site_file" >&5
3022 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error $? "failed to load site script $ac_site_file
3025 See \`config.log' for more details" "$LINENO" 5; }
3029 if test -r "$cache_file"; then
3030 # Some versions of bash will fail to source /dev/null (special files
3031 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3032 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3034 $as_echo "$as_me: loading cache $cache_file" >&6;}
3036 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3037 *) . "./$cache_file";;
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3042 $as_echo "$as_me: creating cache $cache_file" >&6;}
3046 as_fn_append ac_header_list " stdlib.h"
3047 as_fn_append ac_header_list " unistd.h"
3048 as_fn_append ac_header_list " sys/param.h"
3049 # Check that the precious variables saved in the cache have kept the same
3051 ac_cache_corrupted=false
3052 for ac_var in $ac_precious_vars; do
3053 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3054 eval ac_new_set=\$ac_env_${ac_var}_set
3055 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3056 eval ac_new_val=\$ac_env_${ac_var}_value
3057 case $ac_old_set,$ac_new_set in
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3060 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3061 ac_cache_corrupted=: ;;
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3064 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3065 ac_cache_corrupted=: ;;
3068 if test "x$ac_old_val" != "x$ac_new_val"; then
3069 # differences in whitespace do not lead to failure.
3070 ac_old_val_w=`echo x $ac_old_val`
3071 ac_new_val_w=`echo x $ac_new_val`
3072 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3074 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3075 ac_cache_corrupted=:
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3078 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3079 eval $ac_var=\$ac_old_val
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3082 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3084 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3087 # Pass precious variables to config.status.
3088 if test "$ac_new_set" = set; then
3090 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3091 *) ac_arg=$ac_var=$ac_new_val ;;
3093 case " $ac_configure_args " in
3094 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3095 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3099 if $ac_cache_corrupted; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3103 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3104 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3106 ## -------------------- ##
3107 ## Main body of script. ##
3108 ## -------------------- ##
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3127 if test -f "$ac_dir/install-sh"; then
3129 ac_install_sh="$ac_aux_dir/install-sh -c"
3131 elif test -f "$ac_dir/install.sh"; then
3133 ac_install_sh="$ac_aux_dir/install.sh -c"
3135 elif test -f "$ac_dir/shtool"; then
3137 ac_install_sh="$ac_aux_dir/shtool install -c"
3141 if test -z "$ac_aux_dir"; then
3142 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3145 # These three variables are undocumented and unsupported,
3146 # and are intended to be withdrawn in a future Autoconf release.
3147 # They can cause serious problems if a builder's source tree is in a directory
3148 # whose full name contains unusual characters.
3149 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3150 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3151 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3154 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3157 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3158 WIN32MAINDIR=${BUILD_DIR}
3159 WIN32TOPDIR=${TOP_DIR}
3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
3167 set dummy $ac_prog; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_path_TRUEPRG+:} false; then :
3171 $as_echo_n "(cached) " >&6
3175 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 TRUEPRG=$ac_cv_path_TRUEPRG
3197 if test -n "$TRUEPRG"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3199 $as_echo "$TRUEPRG" >&6; }
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3206 test -n "$TRUEPRG" && break
3208 test -n "$TRUEPRG" || TRUEPRG=":"
3210 for ac_prog in false
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_path_FALSEPRG+:} false; then :
3217 $as_echo_n "(cached) " >&6
3221 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 FALSEPRG=$ac_cv_path_FALSEPRG
3243 if test -n "$FALSEPRG"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3245 $as_echo "$FALSEPRG" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3252 test -n "$FALSEPRG" && break
3254 test -n "$FALSEPRG" || FALSEPRG=":"
3259 if test "x$BACULA" != x; then
3260 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3262 BACULA=${BACULA:-Bacula}
3263 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3268 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3272 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3273 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3274 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3277 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3278 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3280 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3281 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3284 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3286 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3289 echo "configuring for ${BACULA} $VERSION ($DATE)"
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 if test -n "$ac_tool_prefix"; then
3299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3337 if test -z "$ac_cv_prog_CC"; then
3339 # Extract the first word of "gcc", so it can be a program name with args.
3340 set dummy gcc; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_ac_ct_CC="gcc"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3375 if test "x$ac_ct_CC" = x; then
3378 case $cross_compiling:$ac_tool_warned in
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3390 if test -z "$CC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_CC="${ac_tool_prefix}cc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl.exe
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3528 test -n "$CC" && break
3531 if test -z "$CC"; then
3533 for ac_prog in cl.exe
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$ac_ct_CC" && break
3575 if test "x$ac_ct_CC" = x; then
3578 case $cross_compiling:$ac_tool_warned in
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3591 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details" "$LINENO" 5; }
3596 # Provide some information about the compiler.
3597 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3600 for ac_option in --version -v -V -qversion; do
3601 { { ac_try="$ac_compiler $ac_option >&5"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3610 if test -s conftest.err; then
3612 ... rest of stderr output deleted ...
3613 10q' conftest.err >conftest.er1
3614 cat conftest.er1 >&5
3616 rm -f conftest.er1 conftest.err
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3634 # Try to create an executable without -o first, disregard a.out.
3635 # It will help us diagnose broken compilers, and finding out an intuition
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3641 # The possible output files:
3642 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3645 for ac_file in $ac_files
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654 if { { ac_try="$ac_link_default"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link_default") 2>&5
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3670 for ac_file in $ac_files ''
3672 test -f "$ac_file" || continue
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3677 # We found the default executable, but exeext='' is most
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3700 if test -z "$ac_file"; then :
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error 77 "C compiler cannot create executables
3709 See \`config.log' for more details" "$LINENO" 5; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3739 for ac_file in conftest.exe conftest conftest.*; do
3740 test -f "$ac_file" || continue
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details" "$LINENO" 5; }
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780 { { ac_try="$ac_link"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }
3791 if { ac_try='./conftest$ac_cv_exeext'
3792 { { case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_try") 2>&5
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; }; then
3804 if test "$cross_compiling" = maybe; then
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details" "$LINENO" 5; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if ${ac_cv_objext+:} false; then :
3823 $as_echo_n "(cached) " >&6
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try="$ac_compile"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compile") 2>&5
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 for ac_file in conftest.o conftest.obj conftest.*; do
3849 test -f "$ac_file" || continue;
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details" "$LINENO" 5; }
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if ${ac_cv_c_compiler_gnu+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3890 if ac_fn_c_try_compile "$LINENO"; then :
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if ${ac_cv_prog_cc_g+:} false; then :
3911 $as_echo_n "(cached) " >&6
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3928 if ac_fn_c_try_compile "$LINENO"; then :
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3943 if ac_fn_c_try_compile "$LINENO"; then :
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972 CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974 if test "$GCC" = yes; then
3980 if test "$GCC" = yes; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if ${ac_cv_prog_cc_c89+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_cv_prog_cc_c89=no
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4013 s = g (p, va_arg (v,int));
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4019 function prototypes and stuff, but not '\xHH' hex character constants.
4020 These don't provoke an error unfortunately, instead are silently treated
4021 as 'x'. The following induces an error, until -std is added to get
4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4023 array size at least. It's necessary to write '\x00'==0 to get something
4024 that's true only with -std. */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028 inside strings and character constants. */
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4049 CC="$ac_save_CC $ac_arg"
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_c89=$ac_arg
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x$ac_cv_prog_cc_c89" != "xno" && break
4056 rm -f conftest.$ac_ext
4061 case "x$ac_cv_prog_cc_c89" in
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 ac_cpp='$CXXCPP $CPPFLAGS'
4085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4088 if test -z "$CXX"; then
4089 if test -n "$CCC"; then
4092 if test -n "$ac_tool_prefix"; then
4093 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CXX+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$CXX"; then
4103 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test -n "$CXX"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4125 $as_echo "$CXX" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4132 test -n "$CXX" && break
4135 if test -z "$CXX"; then
4137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4139 # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$ac_ct_CXX"; then
4147 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_ac_ct_CXX="$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4167 if test -n "$ac_ct_CXX"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4169 $as_echo "$ac_ct_CXX" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4176 test -n "$ac_ct_CXX" && break
4179 if test "x$ac_ct_CXX" = x; then
4182 case $cross_compiling:$ac_tool_warned in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4198 for ac_option in --version -v -V -qversion; do
4199 { { ac_try="$ac_compiler $ac_option >&5"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4208 if test -s conftest.err; then
4210 ... rest of stderr output deleted ...
4211 10q' conftest.err >conftest.er1
4212 cat conftest.er1 >&5
4214 rm -f conftest.er1 conftest.err
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4221 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4222 $as_echo_n "(cached) " >&6
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4248 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4254 ac_test_CXXFLAGS=${CXXFLAGS+set}
4255 ac_save_CXXFLAGS=$CXXFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4257 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4258 if ${ac_cv_prog_cxx_g+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4262 ac_cxx_werror_flag=yes
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4277 ac_cv_prog_cxx_g=yes
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4291 if ac_fn_cxx_try_compile "$LINENO"; then :
4294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308 ac_cv_prog_cxx_g=yes
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4318 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4319 if test "$ac_test_CXXFLAGS" = set; then
4320 CXXFLAGS=$ac_save_CXXFLAGS
4321 elif test $ac_cv_prog_cxx_g = yes; then
4322 if test "$GXX" = yes; then
4328 if test "$GXX" = yes; then
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 if test "x$CC" != xcc; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4342 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4345 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4347 set dummy $CC; ac_cc=`$as_echo "$2" |
4348 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4349 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4350 $as_echo_n "(cached) " >&6
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4363 # Make sure it works both with $CC and with simple cc.
4364 # We do the test twice because some compilers refuse to overwrite an
4365 # existing .o file with -o, though they will create one.
4366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4368 if { { case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 $as_echo "$ac_try_echo"; } >&5
4374 (eval "$ac_try") 2>&5
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; } &&
4378 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; };
4389 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4390 if test "x$CC" != xcc; then
4391 # Test first that cc exists at all.
4392 if { ac_try='cc -c conftest.$ac_ext >&5'
4393 { { case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399 (eval "$ac_try") 2>&5
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }; }; then
4403 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4405 if { { case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; } &&
4415 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_try") 2>&5
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; };
4429 # cc exists but doesn't like -o.
4430 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4435 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4437 rm -f core conftest*
4440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4447 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4462 if test -z "$CPP"; then
4463 if ${ac_cv_prog_CPP+:} false; then :
4464 $as_echo_n "(cached) " >&6
4466 # Double quotes because CPP needs to be expanded
4467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4470 for ac_c_preproc_warn_flag in '' yes
4472 # Use a header file that comes with gcc, so configuring glibc
4473 # with a fresh cross-compiler works.
4474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 # <limits.h> exists even on freestanding compilers.
4476 # On the NeXT, cc -E runs the code through the compiler's parser,
4477 # not just through cpp. "Syntax error" is here to catch this case.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4481 # include <limits.h>
4483 # include <assert.h>
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4490 # Broken: fails on valid input.
4493 rm -f conftest.err conftest.i conftest.$ac_ext
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 #include <ac_nonexistent.h>
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502 # Broken: success on invalid input.
4505 # Passes both tests.
4509 rm -f conftest.err conftest.i conftest.$ac_ext
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.i conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4527 $as_echo "$CPP" >&6; }
4529 for ac_c_preproc_warn_flag in '' yes
4531 # Use a header file that comes with gcc, so configuring glibc
4532 # with a fresh cross-compiler works.
4533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534 # <limits.h> exists even on freestanding compilers.
4535 # On the NeXT, cc -E runs the code through the compiler's parser,
4536 # not just through cpp. "Syntax error" is here to catch this case.
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4540 # include <limits.h>
4542 # include <assert.h>
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: fails on valid input.
4552 rm -f conftest.err conftest.i conftest.$ac_ext
4554 # OK, works on sane cases. Now check whether nonexistent headers
4555 # can be detected and how.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <ac_nonexistent.h>
4560 if ac_fn_c_try_cpp "$LINENO"; then :
4561 # Broken: success on invalid input.
4564 # Passes both tests.
4568 rm -f conftest.err conftest.i conftest.$ac_ext
4571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4572 rm -f conftest.i conftest.err conftest.$ac_ext
4573 if $ac_preproc_ok; then :
4576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4579 See \`config.log' for more details" "$LINENO" 5; }
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4591 if ${ac_cv_path_GREP+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -z "$GREP"; then
4595 ac_path_GREP_found=false
4596 # Loop through the user's path and test for each of PROGNAME-LIST
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 test -z "$as_dir" && as_dir=.
4602 for ac_prog in grep ggrep; do
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4606 # Check for GNU ac_path_GREP and select it if it is found.
4607 # Check for GNU $ac_path_GREP
4608 case `"$ac_path_GREP" --version 2>&1` in
4610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613 $as_echo_n 0123456789 >"conftest.in"
4616 cat "conftest.in" "conftest.in" >"conftest.tmp"
4617 mv "conftest.tmp" "conftest.in"
4618 cp "conftest.in" "conftest.nl"
4619 $as_echo 'GREP' >> "conftest.nl"
4620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622 as_fn_arith $ac_count + 1 && ac_count=$as_val
4623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4624 # Best one so far, save it but keep looking for a better one
4625 ac_cv_path_GREP="$ac_path_GREP"
4626 ac_path_GREP_max=$ac_count
4628 # 10*(2^10) chars as input seems more than enough
4629 test $ac_count -gt 10 && break
4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 $ac_path_GREP_found && break 3
4639 if test -z "$ac_cv_path_GREP"; then
4640 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643 ac_cv_path_GREP=$GREP
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4648 $as_echo "$ac_cv_path_GREP" >&6; }
4649 GREP="$ac_cv_path_GREP"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4653 $as_echo_n "checking for egrep... " >&6; }
4654 if ${ac_cv_path_EGREP+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658 then ac_cv_path_EGREP="$GREP -E"
4660 if test -z "$EGREP"; then
4661 ac_path_EGREP_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in egrep; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4671 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4672 # Check for GNU ac_path_EGREP and select it if it is found.
4673 # Check for GNU $ac_path_EGREP
4674 case `"$ac_path_EGREP" --version 2>&1` in
4676 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4679 $as_echo_n 0123456789 >"conftest.in"
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'EGREP' >> "conftest.nl"
4686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 as_fn_arith $ac_count + 1 && ac_count=$as_val
4689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_EGREP="$ac_path_EGREP"
4692 ac_path_EGREP_max=$ac_count
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700 $ac_path_EGREP_found && break 3
4705 if test -z "$ac_cv_path_EGREP"; then
4706 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 ac_cv_path_EGREP=$EGREP
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716 EGREP="$ac_cv_path_EGREP"
4719 if test $ac_cv_c_compiler_gnu = yes; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4721 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4722 if ${ac_cv_prog_gcc_traditional+:} false; then :
4723 $as_echo_n "(cached) " >&6
4725 ac_pattern="Autoconf.*'x'"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4733 ac_cv_prog_gcc_traditional=yes
4735 ac_cv_prog_gcc_traditional=no
4740 if test $ac_cv_prog_gcc_traditional = no; then
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4748 ac_cv_prog_gcc_traditional=yes
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4755 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4756 if test $ac_cv_prog_gcc_traditional = yes; then
4757 CC="$CC -traditional"
4761 BASECC=`basename $CC`
4763 if test "x$BASECC" = xgcc; then
4764 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4768 # Extract the first word of "$CXX", so it can be a program name with args.
4769 set dummy $CXX; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_path_CXX+:} false; then :
4773 $as_echo_n "(cached) " >&6
4777 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4800 if test -n "$CXX"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4802 $as_echo "$CXX" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4809 if test ! -e $CXX; then
4810 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4813 # Find a good install program. We prefer a C program (faster),
4814 # so one script is as good as another. But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4820 # AmigaOS /C/install, which installs bootblocks on floppy discs
4821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4824 # OS/2's system install, which has a completely different semantic
4825 # ./install, which can be erroneously created by make from ./install.sh.
4826 # Reject install programs that cannot install multiple files.
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4829 if test -z "$INSTALL"; then
4830 if ${ac_cv_path_install+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 # Account for people who put trailing slashes in PATH elements.
4839 case $as_dir/ in #((
4840 ./ | .// | /[cC]/* | \
4841 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4842 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4845 # OSF1 and SCO ODT 3.0 have their own names for install.
4846 # Don't use installbsd from OSF since it installs stuff as root
4848 for ac_prog in ginstall scoinst install; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4851 if test $ac_prog = install &&
4852 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853 # AIX install. It has an incompatible calling convention.
4855 elif test $ac_prog = install &&
4856 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4857 # program-specific install script used by HP pwplus--don't use.
4860 rm -rf conftest.one conftest.two conftest.dir
4861 echo one > conftest.one
4862 echo two > conftest.two
4864 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4865 test -s conftest.one && test -s conftest.two &&
4866 test -s conftest.dir/conftest.one &&
4867 test -s conftest.dir/conftest.two
4869 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4882 rm -rf conftest.one conftest.two conftest.dir
4885 if test "${ac_cv_path_install+set}" = set; then
4886 INSTALL=$ac_cv_path_install
4888 # As a last resort, use the slow shell script. Don't cache a
4889 # value for INSTALL within a source directory, because that will
4890 # break other packages using the cache if that directory is
4891 # removed, or if the value is a relative name.
4892 INSTALL=$ac_install_sh
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4896 $as_echo "$INSTALL" >&6; }
4898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4899 # It thinks the first close brace ends the variable substitution.
4900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4906 # Extract the first word of "mv", so it can be a program name with args.
4907 set dummy mv; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_MV+:} false; then :
4911 $as_echo_n "(cached) " >&6
4915 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4938 if test -n "$MV"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4940 $as_echo "$MV" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 # Extract the first word of "rm", so it can be a program name with args.
4948 set dummy rm; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_path_REMOVE+:} false; then :
4952 $as_echo_n "(cached) " >&6
4956 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4978 REMOVE=$ac_cv_path_REMOVE
4979 if test -n "$REMOVE"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4981 $as_echo "$REMOVE" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 # Extract the first word of "cp", so it can be a program name with args.
4989 set dummy cp; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_CP+:} false; then :
4993 $as_echo_n "(cached) " >&6
4997 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5020 if test -n "$CP"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5022 $as_echo "$CP" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5029 # Extract the first word of "sed", so it can be a program name with args.
5030 set dummy sed; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_SED+:} false; then :
5034 $as_echo_n "(cached) " >&6
5038 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5061 if test -n "$SED"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5063 $as_echo "$SED" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 # Extract the first word of "echo", so it can be a program name with args.
5071 set dummy echo; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_path_ECHO+:} false; then :
5075 $as_echo_n "(cached) " >&6
5079 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5101 ECHO=$ac_cv_path_ECHO
5102 if test -n "$ECHO"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5104 $as_echo "$ECHO" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 # Extract the first word of "cmp", so it can be a program name with args.
5112 set dummy cmp; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_CMP+:} false; then :
5116 $as_echo_n "(cached) " >&6
5120 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5143 if test -n "$CMP"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5145 $as_echo "$CMP" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 # Extract the first word of "tbl", so it can be a program name with args.
5153 set dummy tbl; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_path_TBL+:} false; then :
5157 $as_echo_n "(cached) " >&6
5161 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5184 if test -n "$TBL"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5186 $as_echo "$TBL" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy ar; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_path_AR+:} false; then :
5198 $as_echo_n "(cached) " >&6
5202 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5225 if test -n "$AR"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5227 $as_echo "$AR" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 # Extract the first word of "openssl", so it can be a program name with args.
5235 set dummy openssl; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_OPENSSL+:} false; then :
5239 $as_echo_n "(cached) " >&6
5243 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5265 OPENSSL=$ac_cv_path_OPENSSL
5266 if test -n "$OPENSSL"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5268 $as_echo "$OPENSSL" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 # Extract the first word of "mtx", so it can be a program name with args.
5276 set dummy mtx; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_path_MTX+:} false; then :
5280 $as_echo_n "(cached) " >&6
5284 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5307 if test -n "$MTX"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5309 $as_echo "$MTX" >&6; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5316 # Extract the first word of "dd", so it can be a program name with args.
5317 set dummy dd; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_DD+:} false; then :
5321 $as_echo_n "(cached) " >&6
5325 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5348 if test -n "$DD"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5350 $as_echo "$DD" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 # Extract the first word of "mkisofs", so it can be a program name with args.
5358 set dummy mkisofs; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_path_MKISOFS+:} false; then :
5362 $as_echo_n "(cached) " >&6
5366 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5388 MKISOFS=$ac_cv_path_MKISOFS
5389 if test -n "$MKISOFS"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5391 $as_echo "$MKISOFS" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_path_PYTHON+:} false; then :
5403 $as_echo_n "(cached) " >&6
5407 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5429 PYTHON=$ac_cv_path_PYTHON
5430 if test -n "$PYTHON"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5432 $as_echo "$PYTHON" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5439 # Extract the first word of "growisofs", so it can be a program name with args.
5440 set dummy growisofs; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_path_GROWISOFS+:} false; then :
5444 $as_echo_n "(cached) " >&6
5448 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5470 GROWISOFS=$ac_cv_path_GROWISOFS
5471 if test -n "$GROWISOFS"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5473 $as_echo "$GROWISOFS" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5480 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5481 set dummy dvd+rw-mediainfo; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5485 $as_echo_n "(cached) " >&6
5487 case $DVDRWMEDIAINFO in
5489 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5511 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5512 if test -n "$DVDRWMEDIAINFO"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5514 $as_echo "$DVDRWMEDIAINFO" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5522 set dummy dvd+rw-format; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5526 $as_echo_n "(cached) " >&6
5528 case $DVDRWFORMAT in
5530 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5552 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5553 if test -n "$DVDRWFORMAT"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5555 $as_echo "$DVDRWFORMAT" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5562 # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_path_PKGCONFIG+:} false; then :
5567 $as_echo_n "(cached) " >&6
5571 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5593 PKGCONFIG=$ac_cv_path_PKGCONFIG
5594 if test -n "$PKGCONFIG"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5596 $as_echo "$PKGCONFIG" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 # Extract the first word of "qmake", so it can be a program name with args.
5604 set dummy qmake; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_path_QMAKE+:} false; then :
5608 $as_echo_n "(cached) " >&6
5612 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5634 QMAKE=$ac_cv_path_QMAKE
5635 if test -n "$QMAKE"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5637 $as_echo "$QMAKE" >&6; }
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5644 # Extract the first word of "gmake", so it can be a program name with args.
5645 set dummy gmake; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_path_GMAKE+:} false; then :
5649 $as_echo_n "(cached) " >&6
5653 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5675 GMAKE=$ac_cv_path_GMAKE
5676 if test -n "$GMAKE"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5678 $as_echo "$GMAKE" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5686 if test "x$WXCONFIG" = x; then
5689 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5690 set dummy ${WXCONFIG}; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_path_WXCONFIG+:} false; then :
5694 $as_echo_n "(cached) " >&6
5698 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5720 WXCONFIG=$ac_cv_path_WXCONFIG
5721 if test -n "$WXCONFIG"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5723 $as_echo "$WXCONFIG" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5731 # Extract the first word of "cdrecord", so it can be a program name with args.
5732 set dummy cdrecord; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_path_CDRECORD+:} false; then :
5736 $as_echo_n "(cached) " >&6
5740 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5762 CDRECORD=$ac_cv_path_CDRECORD
5763 if test -n "$CDRECORD"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5765 $as_echo "$CDRECORD" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5772 # Extract the first word of "pidof", so it can be a program name with args.
5773 set dummy pidof; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_path_PIDOF+:} false; then :
5777 $as_echo_n "(cached) " >&6
5781 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5803 PIDOF=$ac_cv_path_PIDOF
5804 if test -n "$PIDOF"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5806 $as_echo "$PIDOF" >&6; }
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5813 for ac_prog in gawk mawk nawk awk
5815 # Extract the first word of "$ac_prog", so it can be a program name with args.
5816 set dummy $ac_prog; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_AWK+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 if test -n "$AWK"; then
5823 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_AWK="$ac_prog"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 if test -n "$AWK"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5845 $as_echo "$AWK" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5852 test -n "$AWK" && break
5855 # Some AWK programs fail, so test it and warn the user
5856 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5857 { if ((prog == $2) || (("(" prog ")") == $2) ||
5858 (("" prog "") == $2) ||
5859 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5861 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5862 The regex engine of $AWK is too broken to be used you
5863 might want to install GNU AWK.
5864 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5867 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5868 set dummy $THE_AWK; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if ${ac_cv_path_AWK+:} false; then :
5872 $as_echo_n "(cached) " >&6
5876 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5899 if test -n "$AWK"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5901 $as_echo "$AWK" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5910 test -n "$ARFLAG" || ARFLAGS="cr"
5922 # Check whether --enable-libtool was given.
5923 if test "${enable_libtool+set}" = set; then :
5924 enableval=$enable_libtool;
5925 if test x$enableval = xno; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5935 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5941 macro_revision='1.3293'
5955 ltmain="$ac_aux_dir/ltmain.sh"
5957 # Make sure we can run config.sub.
5958 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5959 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5962 $as_echo_n "checking build system type... " >&6; }
5963 if ${ac_cv_build+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 ac_build_alias=$build_alias
5967 test "x$ac_build_alias" = x &&
5968 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5969 test "x$ac_build_alias" = x &&
5970 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5971 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5972 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5976 $as_echo "$ac_cv_build" >&6; }
5977 case $ac_cv_build in
5979 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5982 ac_save_IFS=$IFS; IFS='-'
5988 # Remember, the first character of IFS is used to create $*,
5989 # except with old shells:
5992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5996 $as_echo_n "checking host system type... " >&6; }
5997 if ${ac_cv_host+:} false; then :
5998 $as_echo_n "(cached) " >&6
6000 if test "x$host_alias" = x; then
6001 ac_cv_host=$ac_cv_build
6003 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6004 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6009 $as_echo "$ac_cv_host" >&6; }
6012 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6015 ac_save_IFS=$IFS; IFS='-'
6021 # Remember, the first character of IFS is used to create $*,
6022 # except with old shells:
6025 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6028 # Backslashify metacharacters that are still active within
6029 # double-quoted strings.
6030 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6032 # Same as above, but do not quote variable references.
6033 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6035 # Sed substitution to delay expansion of an escaped shell variable in a
6036 # double_quote_subst'ed string.
6037 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6039 # Sed substitution to delay expansion of an escaped single quote.
6040 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6042 # Sed substitution to avoid accidental globbing in evaled expressions
6043 no_glob_subst='s/\*/\\\*/g'
6045 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6046 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6047 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6050 $as_echo_n "checking how to print strings... " >&6; }
6051 # Test print first, because it will be a builtin if present.
6052 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6053 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6055 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6058 # Use this function as a fallback that always works.
6059 func_fallback_echo ()
6061 eval 'cat <<_LTECHO_EOF
6065 ECHO='func_fallback_echo'
6068 # func_echo_all arg...
6069 # Invoke $ECHO with all args, space-separated.
6076 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6077 $as_echo "printf" >&6; } ;;
6078 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6079 $as_echo "print -r" >&6; } ;;
6080 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6081 $as_echo "cat" >&6; } ;;
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6098 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6099 if ${ac_cv_path_SED+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6103 for ac_i in 1 2 3 4 5 6 7; do
6104 ac_script="$ac_script$as_nl$ac_script"
6106 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6107 { ac_script=; unset ac_script;}
6108 if test -z "$SED"; then
6109 ac_path_SED_found=false
6110 # Loop through the user's path and test for each of PROGNAME-LIST
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir=.
6116 for ac_prog in sed gsed; do
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6119 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6120 # Check for GNU ac_path_SED and select it if it is found.
6121 # Check for GNU $ac_path_SED
6122 case `"$ac_path_SED" --version 2>&1` in
6124 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6127 $as_echo_n 0123456789 >"conftest.in"
6130 cat "conftest.in" "conftest.in" >"conftest.tmp"
6131 mv "conftest.tmp" "conftest.in"
6132 cp "conftest.in" "conftest.nl"
6133 $as_echo '' >> "conftest.nl"
6134 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136 as_fn_arith $ac_count + 1 && ac_count=$as_val
6137 if test $ac_count -gt ${ac_path_SED_max-0}; then
6138 # Best one so far, save it but keep looking for a better one
6139 ac_cv_path_SED="$ac_path_SED"
6140 ac_path_SED_max=$ac_count
6142 # 10*(2^10) chars as input seems more than enough
6143 test $ac_count -gt 10 && break
6145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6148 $ac_path_SED_found && break 3
6153 if test -z "$ac_cv_path_SED"; then
6154 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6162 $as_echo "$ac_cv_path_SED" >&6; }
6163 SED="$ac_cv_path_SED"
6166 test -z "$SED" && SED=sed
6167 Xsed="$SED -e 1s/^X//"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6180 $as_echo_n "checking for fgrep... " >&6; }
6181 if ${ac_cv_path_FGREP+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6185 then ac_cv_path_FGREP="$GREP -F"
6187 if test -z "$FGREP"; then
6188 ac_path_FGREP_found=false
6189 # Loop through the user's path and test for each of PROGNAME-LIST
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6194 test -z "$as_dir" && as_dir=.
6195 for ac_prog in fgrep; do
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6198 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6199 # Check for GNU ac_path_FGREP and select it if it is found.
6200 # Check for GNU $ac_path_FGREP
6201 case `"$ac_path_FGREP" --version 2>&1` in
6203 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6206 $as_echo_n 0123456789 >"conftest.in"
6209 cat "conftest.in" "conftest.in" >"conftest.tmp"
6210 mv "conftest.tmp" "conftest.in"
6211 cp "conftest.in" "conftest.nl"
6212 $as_echo 'FGREP' >> "conftest.nl"
6213 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6215 as_fn_arith $ac_count + 1 && ac_count=$as_val
6216 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6217 # Best one so far, save it but keep looking for a better one
6218 ac_cv_path_FGREP="$ac_path_FGREP"
6219 ac_path_FGREP_max=$ac_count
6221 # 10*(2^10) chars as input seems more than enough
6222 test $ac_count -gt 10 && break
6224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6227 $ac_path_FGREP_found && break 3
6232 if test -z "$ac_cv_path_FGREP"; then
6233 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6236 ac_cv_path_FGREP=$FGREP
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6242 $as_echo "$ac_cv_path_FGREP" >&6; }
6243 FGREP="$ac_cv_path_FGREP"
6246 test -z "$GREP" && GREP=grep
6266 # Check whether --with-gnu-ld was given.
6267 if test "${with_gnu_ld+set}" = set; then :
6268 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6274 if test "$GCC" = yes; then
6275 # Check if gcc -print-prog-name=ld gives a path.
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6277 $as_echo_n "checking for ld used by $CC... " >&6; }
6280 # gcc leaves a trailing carriage return which upsets mingw
6281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6286 # Accept absolute paths.
6288 re_direlt='/[^/][^/]*/\.\./'
6289 # Canonicalize the pathname of ld
6290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6294 test -z "$LD" && LD="$ac_prog"
6297 # If it fails, then pretend we aren't using GCC.
6301 # If it is relative, then search for the first ld in PATH.
6305 elif test "$with_gnu_ld" = yes; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6307 $as_echo_n "checking for GNU ld... " >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6310 $as_echo_n "checking for non-GNU ld... " >&6; }
6312 if ${lt_cv_path_LD+:} false; then :
6313 $as_echo_n "(cached) " >&6
6315 if test -z "$LD"; then
6316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317 for ac_dir in $PATH; do
6319 test -z "$ac_dir" && ac_dir=.
6320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6321 lt_cv_path_LD="$ac_dir/$ac_prog"
6322 # Check to see if the program is GNU ld. I'd rather use --version,
6323 # but apparently some variants of GNU ld only accept -v.
6324 # Break only if it was the GNU/non-GNU ld that we prefer.
6325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6326 *GNU* | *'with BFD'*)
6327 test "$with_gnu_ld" != no && break
6330 test "$with_gnu_ld" != yes && break
6337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6342 if test -n "$LD"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6344 $as_echo "$LD" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6349 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6352 if ${lt_cv_prog_gnu_ld+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6356 case `$LD -v 2>&1 </dev/null` in
6357 *GNU* | *'with BFD'*)
6358 lt_cv_prog_gnu_ld=yes
6361 lt_cv_prog_gnu_ld=no
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6366 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6367 with_gnu_ld=$lt_cv_prog_gnu_ld
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6378 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6379 if ${lt_cv_path_NM+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 if test -n "$NM"; then
6383 # Let the user override the test.
6386 lt_nm_to_check="${ac_tool_prefix}nm"
6387 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6388 lt_nm_to_check="$lt_nm_to_check nm"
6390 for lt_tmp_nm in $lt_nm_to_check; do
6391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6392 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6394 test -z "$ac_dir" && ac_dir=.
6395 tmp_nm="$ac_dir/$lt_tmp_nm"
6396 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6397 # Check to see if the nm accepts a BSD-compat flag.
6398 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6399 # nm: unknown option "B" ignored
6400 # Tru64's nm complains that /dev/null is an invalid object file
6401 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6402 */dev/null* | *'Invalid file or object type'*)
6403 lt_cv_path_NM="$tmp_nm -B"
6407 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6409 lt_cv_path_NM="$tmp_nm -p"
6413 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6414 continue # so that we can try to find one that supports BSD flags
6423 : ${lt_cv_path_NM=no}
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6427 $as_echo "$lt_cv_path_NM" >&6; }
6428 if test "$lt_cv_path_NM" != "no"; then
6431 # Didn't find any BSD compatible name lister, look for dumpbin.
6432 if test -n "$DUMPBIN"; then :
6433 # Let the user override the test.
6435 if test -n "$ac_tool_prefix"; then
6436 for ac_prog in dumpbin "link -dump"
6438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_DUMPBIN+:} false; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$DUMPBIN"; then
6446 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 DUMPBIN=$ac_cv_prog_DUMPBIN
6466 if test -n "$DUMPBIN"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6468 $as_echo "$DUMPBIN" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6475 test -n "$DUMPBIN" && break
6478 if test -z "$DUMPBIN"; then
6479 ac_ct_DUMPBIN=$DUMPBIN
6480 for ac_prog in dumpbin "link -dump"
6482 # Extract the first word of "$ac_prog", so it can be a program name with args.
6483 set dummy $ac_prog; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6487 $as_echo_n "(cached) " >&6
6489 if test -n "$ac_ct_DUMPBIN"; then
6490 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6510 if test -n "$ac_ct_DUMPBIN"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6512 $as_echo "$ac_ct_DUMPBIN" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6519 test -n "$ac_ct_DUMPBIN" && break
6522 if test "x$ac_ct_DUMPBIN" = x; then
6525 case $cross_compiling:$ac_tool_warned in
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6531 DUMPBIN=$ac_ct_DUMPBIN
6535 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6537 DUMPBIN="$DUMPBIN -symbols"
6545 if test "$DUMPBIN" != ":"; then
6549 test -z "$NM" && NM=nm
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6557 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6558 if ${lt_cv_nm_interface+:} false; then :
6559 $as_echo_n "(cached) " >&6
6561 lt_cv_nm_interface="BSD nm"
6562 echo "int some_variable = 0;" > conftest.$ac_ext
6563 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6564 (eval "$ac_compile" 2>conftest.err)
6565 cat conftest.err >&5
6566 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6567 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6568 cat conftest.err >&5
6569 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6570 cat conftest.out >&5
6571 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6572 lt_cv_nm_interface="MS dumpbin"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6577 $as_echo "$lt_cv_nm_interface" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6580 $as_echo_n "checking whether ln -s works... " >&6; }
6582 if test "$LN_S" = "ln -s"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 $as_echo "yes" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6587 $as_echo "no, using $LN_S" >&6; }
6590 # find the maximum length of command line arguments
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6592 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6593 if ${lt_cv_sys_max_cmd_len+:} false; then :
6594 $as_echo_n "(cached) " >&6
6601 # On DJGPP, this test can blow up pretty badly due to problems in libc
6602 # (any single argument exceeding 2000 bytes causes a buffer overrun
6603 # during glob expansion). Even if it were fixed, the result of this
6604 # check would be larger than it should be.
6605 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6609 # Under GNU Hurd, this test is not required because there is
6610 # no limit to the length of command line arguments.
6611 # Libtool will interpret -1 as no limit whatsoever
6612 lt_cv_sys_max_cmd_len=-1;
6615 cygwin* | mingw* | cegcc*)
6616 # On Win9x/ME, this test blows up -- it succeeds, but takes
6617 # about 5 minutes as the teststring grows exponentially.
6618 # Worse, since 9x/ME are not pre-emptively multitasking,
6619 # you end up with a "frozen" computer, even though with patience
6620 # the test eventually succeeds (with a max line length of 256k).
6621 # Instead, let's just punt: use the minimum linelength reported by
6622 # all of the supported platforms: 8192 (on NT/2K/XP).
6623 lt_cv_sys_max_cmd_len=8192;
6627 # On MiNT this can take a long time and run out of memory.
6628 lt_cv_sys_max_cmd_len=8192;
6632 # On AmigaOS with pdksh, this test takes hours, literally.
6633 # So we just punt and use a minimum line length of 8192.
6634 lt_cv_sys_max_cmd_len=8192;
6637 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6638 # This has been around since 386BSD, at least. Likely further.
6639 if test -x /sbin/sysctl; then
6640 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6641 elif test -x /usr/sbin/sysctl; then
6642 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6644 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6646 # And add a safety zone
6647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6652 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6653 lt_cv_sys_max_cmd_len=196608
6657 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6658 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6659 # nice to cause kernel panics so lets avoid the loop below.
6660 # First set a reasonable default.
6661 lt_cv_sys_max_cmd_len=16384
6663 if test -x /sbin/sysconfig; then
6664 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6665 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6670 lt_cv_sys_max_cmd_len=102400
6672 sysv5* | sco5v6* | sysv4.2uw2*)
6673 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6674 if test -n "$kargmax"; then
6675 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6677 lt_cv_sys_max_cmd_len=32768
6681 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6682 if test -n "$lt_cv_sys_max_cmd_len"; then
6683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6686 # Make teststring a little bigger before we do anything with it.
6687 # a 1K string should be a reasonable start.
6688 for i in 1 2 3 4 5 6 7 8 ; do
6689 teststring=$teststring$teststring
6691 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6692 # If test is not a shell built-in, we'll probably end up computing a
6693 # maximum length that is only half of the actual maximum length, but
6695 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6696 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6697 test $i != 17 # 1/2 MB should be enough
6700 teststring=$teststring$teststring
6702 # Only check the string length outside the loop.
6703 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6705 # Add a significant safety factor because C++ compilers can tack on
6706 # massive amounts of additional arguments before passing them to the
6707 # linker. It appears as though 1/2 is a usable value.
6708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6715 if test -n $lt_cv_sys_max_cmd_len ; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6717 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6720 $as_echo "none" >&6; }
6722 max_cmd_len=$lt_cv_sys_max_cmd_len
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6734 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6735 # Try some XSI features
6738 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6740 && eval 'test $(( 1 + 1 )) -eq 2 \
6741 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6744 $as_echo "$xsi_shell" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6748 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6750 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6752 && lt_shell_append=yes
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6754 $as_echo "$lt_shell_append" >&6; }
6757 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6767 # test EBCDIC or ASCII
6768 case `echo X|tr X '\101'` in
6769 A) # ASCII based system
6770 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6771 lt_SP2NL='tr \040 \012'
6772 lt_NL2SP='tr \015\012 \040\040'
6774 *) # EBCDIC based system
6775 lt_SP2NL='tr \100 \n'
6776 lt_NL2SP='tr \r\n \100\100'
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6789 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6790 if ${lt_cv_to_host_file_cmd+:} false; then :
6791 $as_echo_n "(cached) " >&6
6796 *-*-mingw* ) # actually msys
6797 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6800 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6802 * ) # otherwise, assume *nix
6803 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6809 *-*-mingw* ) # actually msys
6810 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6813 lt_cv_to_host_file_cmd=func_convert_file_noop
6815 * ) # otherwise, assume *nix
6816 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6820 * ) # unhandled hosts (and "normal" native builds)
6821 lt_cv_to_host_file_cmd=func_convert_file_noop
6827 to_host_file_cmd=$lt_cv_to_host_file_cmd
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6829 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6836 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6837 if ${lt_cv_to_tool_file_cmd+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 #assume ordinary cross tools, or native build.
6841 lt_cv_to_tool_file_cmd=func_convert_file_noop
6845 *-*-mingw* ) # actually msys
6846 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6854 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6856 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6863 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6864 if ${lt_cv_ld_reload_flag+:} false; then :
6865 $as_echo_n "(cached) " >&6
6867 lt_cv_ld_reload_flag='-r'
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6871 reload_flag=$lt_cv_ld_reload_flag
6872 case $reload_flag in
6874 *) reload_flag=" $reload_flag" ;;
6876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6878 cygwin* | mingw* | pw32* | cegcc*)
6879 if test "$GCC" != yes; then
6884 if test "$GCC" = yes; then
6885 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6887 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_OBJDUMP+:} false; then :
6906 $as_echo_n "(cached) " >&6
6908 if test -n "$OBJDUMP"; then
6909 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 OBJDUMP=$ac_cv_prog_OBJDUMP
6929 if test -n "$OBJDUMP"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6931 $as_echo "$OBJDUMP" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6939 if test -z "$ac_cv_prog_OBJDUMP"; then
6940 ac_ct_OBJDUMP=$OBJDUMP
6941 # Extract the first word of "objdump", so it can be a program name with args.
6942 set dummy objdump; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6946 $as_echo_n "(cached) " >&6
6948 if test -n "$ac_ct_OBJDUMP"; then
6949 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6969 if test -n "$ac_ct_OBJDUMP"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6971 $as_echo "$ac_ct_OBJDUMP" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6977 if test "x$ac_ct_OBJDUMP" = x; then
6980 case $cross_compiling:$ac_tool_warned in
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6986 OBJDUMP=$ac_ct_OBJDUMP
6989 OBJDUMP="$ac_cv_prog_OBJDUMP"
6992 test -z "$OBJDUMP" && OBJDUMP=objdump
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7004 if ${lt_cv_deplibs_check_method+:} false; then :
7005 $as_echo_n "(cached) " >&6
7007 lt_cv_file_magic_cmd='$MAGIC_CMD'
7008 lt_cv_file_magic_test_file=
7009 lt_cv_deplibs_check_method='unknown'
7010 # Need to set the preceding variable on all platforms that support
7011 # interlibrary dependencies.
7012 # 'none' -- dependencies not supported.
7013 # `unknown' -- same as none, but documents that we really don't know.
7014 # 'pass_all' -- all dependencies passed with no checks.
7015 # 'test_compile' -- check by making test program.
7016 # 'file_magic [[regex]]' -- check by looking for files in library path
7017 # which responds to the $file_magic_cmd with a given extended regex.
7018 # If you have `file' or equivalent on your system and you're not sure
7019 # whether `pass_all' will *always* work, you probably want this one.
7023 lt_cv_deplibs_check_method=pass_all
7027 lt_cv_deplibs_check_method=pass_all
7031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7032 lt_cv_file_magic_cmd='/usr/bin/file -L'
7033 lt_cv_file_magic_test_file=/shlib/libc.so
7037 # func_win32_libid is a shell function defined in ltmain.sh
7038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039 lt_cv_file_magic_cmd='func_win32_libid'
7043 # Base MSYS/MinGW do not provide the 'file' command needed by
7044 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7045 # unless we find 'file', for example because we are cross-compiling.
7046 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7047 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049 lt_cv_file_magic_cmd='func_win32_libid'
7051 # Keep this pattern in sync with the one in func_win32_libid.
7052 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7053 lt_cv_file_magic_cmd='$OBJDUMP -f'
7058 # use the weaker test based on 'objdump'. See mingw*.
7059 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7060 lt_cv_file_magic_cmd='$OBJDUMP -f'
7063 darwin* | rhapsody*)
7064 lt_cv_deplibs_check_method=pass_all
7067 freebsd* | dragonfly*)
7068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7071 # Not sure whether the presence of OpenBSD here was a mistake.
7072 # Let's accept both of them until this is cleared up.
7073 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7074 lt_cv_file_magic_cmd=/usr/bin/file
7075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7079 lt_cv_deplibs_check_method=pass_all
7084 lt_cv_deplibs_check_method=pass_all
7088 lt_cv_deplibs_check_method=pass_all
7091 hpux10.20* | hpux11*)
7092 lt_cv_file_magic_cmd=/usr/bin/file
7095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7096 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7100 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7103 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7110 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7114 irix5* | irix6* | nonstopux*)
7116 *-32|*"-32 ") libmagic=32-bit;;
7117 *-n32|*"-n32 ") libmagic=N32;;
7118 *-64|*"-64 ") libmagic=64-bit;;
7119 *) libmagic=never-match;;
7121 lt_cv_deplibs_check_method=pass_all
7124 # This must be Linux ELF.
7125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7126 lt_cv_deplibs_check_method=pass_all
7130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7139 lt_cv_file_magic_cmd=/usr/bin/file
7140 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7144 lt_cv_deplibs_check_method=pass_all
7148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7155 osf3* | osf4* | osf5*)
7156 lt_cv_deplibs_check_method=pass_all
7160 lt_cv_deplibs_check_method=pass_all
7164 lt_cv_deplibs_check_method=pass_all
7167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7168 lt_cv_deplibs_check_method=pass_all
7172 case $host_vendor in
7174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7178 lt_cv_deplibs_check_method=pass_all
7181 lt_cv_file_magic_cmd='/bin/file'
7182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7185 lt_cv_file_magic_cmd='/bin/file'
7186 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7187 lt_cv_file_magic_test_file=/lib/libc.so
7190 lt_cv_deplibs_check_method=pass_all
7193 lt_cv_deplibs_check_method=pass_all
7199 lt_cv_deplibs_check_method=pass_all
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7205 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7209 if test "$build" = "$host"; then
7212 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7215 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7221 file_magic_cmd=$lt_cv_file_magic_cmd
7222 deplibs_check_method=$lt_cv_deplibs_check_method
7223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_DLLTOOL+:} false; then :
7252 $as_echo_n "(cached) " >&6
7254 if test -n "$DLLTOOL"; then
7255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 DLLTOOL=$ac_cv_prog_DLLTOOL
7275 if test -n "$DLLTOOL"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7277 $as_echo "$DLLTOOL" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7285 if test -z "$ac_cv_prog_DLLTOOL"; then
7286 ac_ct_DLLTOOL=$DLLTOOL
7287 # Extract the first word of "dlltool", so it can be a program name with args.
7288 set dummy dlltool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$ac_ct_DLLTOOL"; then
7295 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7315 if test -n "$ac_ct_DLLTOOL"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7317 $as_echo "$ac_ct_DLLTOOL" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7323 if test "x$ac_ct_DLLTOOL" = x; then
7326 case $cross_compiling:$ac_tool_warned in
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7332 DLLTOOL=$ac_ct_DLLTOOL
7335 DLLTOOL="$ac_cv_prog_DLLTOOL"
7338 test -z "$DLLTOOL" && DLLTOOL=dlltool
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7350 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7351 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 lt_cv_sharedlib_from_linklib_cmd='unknown'
7357 cygwin* | mingw* | pw32* | cegcc*)
7358 # two different shell functions defined in ltmain.sh
7359 # decide which to use based on capabilities of $DLLTOOL
7360 case `$DLLTOOL --help 2>&1` in
7361 *--identify-strict*)
7362 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7365 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7370 # fallback: assume linklib IS sharedlib
7371 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7377 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7378 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7379 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7387 if test -n "$ac_tool_prefix"; then
7390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_AR+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 if test -n "$AR"; then
7398 ac_cv_prog_AR="$AR" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 if test -n "$AR"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7420 $as_echo "$AR" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7427 test -n "$AR" && break
7430 if test -z "$AR"; then
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 if test -n "$ac_ct_AR"; then
7442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_ac_ct_AR="$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7462 if test -n "$ac_ct_AR"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7464 $as_echo "$ac_ct_AR" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7471 test -n "$ac_ct_AR" && break
7474 if test "x$ac_ct_AR" = x; then
7477 case $cross_compiling:$ac_tool_warned in
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481 ac_tool_warned=yes ;;
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7501 $as_echo_n "checking for archiver @FILE support... " >&6; }
7502 if ${lt_cv_ar_at_file+:} false; then :
7503 $as_echo_n "(cached) " >&6
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518 echo conftest.$ac_objext > conftest.lst
7519 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7521 (eval $lt_ar_try) 2>&5
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }
7525 if test "$ac_status" -eq 0; then
7526 # Ensure the archiver fails upon bogus file names.
7527 rm -f conftest.$ac_objext libconftest.a
7528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7529 (eval $lt_ar_try) 2>&5
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }
7533 if test "$ac_status" -ne 0; then
7537 rm -f conftest.* libconftest.a
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7544 $as_echo "$lt_cv_ar_at_file" >&6; }
7546 if test "x$lt_cv_ar_at_file" = xno; then
7549 archiver_list_spec=$lt_cv_ar_at_file
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}strip; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_STRIP+:} false; then :
7564 $as_echo_n "(cached) " >&6
7566 if test -n "$STRIP"; then
7567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 STRIP=$ac_cv_prog_STRIP
7587 if test -n "$STRIP"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7589 $as_echo "$STRIP" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7597 if test -z "$ac_cv_prog_STRIP"; then
7599 # Extract the first word of "strip", so it can be a program name with args.
7600 set dummy strip; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7604 $as_echo_n "(cached) " >&6
7606 if test -n "$ac_ct_STRIP"; then
7607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_ac_ct_STRIP="strip"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7627 if test -n "$ac_ct_STRIP"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7629 $as_echo "$ac_ct_STRIP" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7635 if test "x$ac_ct_STRIP" = x; then
7638 case $cross_compiling:$ac_tool_warned in
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7647 STRIP="$ac_cv_prog_STRIP"
7650 test -z "$STRIP" && STRIP=:
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_RANLIB+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$RANLIB"; then
7666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 RANLIB=$ac_cv_prog_RANLIB
7686 if test -n "$RANLIB"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7688 $as_echo "$RANLIB" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_RANLIB"; then
7697 ac_ct_RANLIB=$RANLIB
7698 # Extract the first word of "ranlib", so it can be a program name with args.
7699 set dummy ranlib; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 if test -n "$ac_ct_RANLIB"; then
7706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_ac_ct_RANLIB="ranlib"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7726 if test -n "$ac_ct_RANLIB"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7728 $as_echo "$ac_ct_RANLIB" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_RANLIB" = x; then
7737 case $cross_compiling:$ac_tool_warned in
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7743 RANLIB=$ac_ct_RANLIB
7746 RANLIB="$ac_cv_prog_RANLIB"
7749 test -z "$RANLIB" && RANLIB=:
7756 # Determine commands to create old-style static archives.
7757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7758 old_postinstall_cmds='chmod 644 $oldlib'
7759 old_postuninstall_cmds=
7761 if test -n "$RANLIB"; then
7764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7770 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7775 lock_old_archive_extraction=yes ;;
7777 lock_old_archive_extraction=no ;;
7818 # If no C compiler was specified, use CC.
7821 # If no C compiler flags were specified, use CFLAGS.
7822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7824 # Allow CC to be a program name with arguments.
7828 # Check for command to grab the raw symbol name followed by C symbol from nm.
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7830 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7831 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7832 $as_echo_n "(cached) " >&6
7835 # These are sane defaults that work on at least a few old systems.
7836 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7838 # Character class describing NM global symbol codes.
7839 symcode='[BCDEGRST]'
7841 # Regexp to match symbols that can be accessed directly from C.
7842 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7844 # Define system-specific variables.
7849 cygwin* | mingw* | pw32* | cegcc*)
7850 symcode='[ABCDGISTW]'
7853 if test "$host_cpu" = ia64; then
7854 symcode='[ABCDEGRST]'
7858 symcode='[BCDEGRST]'
7861 symcode='[BCDEGQRST]'
7872 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7880 # If we're using GNU nm, then use its standard symbol codes.
7881 case `$NM -V 2>&1` in
7882 *GNU* | *'with BFD'*)
7883 symcode='[ABCDGIRSTW]' ;;
7886 # Transform an extracted symbol line into a proper C declaration.
7887 # Some systems (esp. on ia64) link data and code symbols differently,
7888 # so use this general approach.
7889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7891 # Transform an extracted symbol line into symbol name and symbol address
7892 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7893 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7895 # Handle CRLF in mingw tool chain
7899 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7903 # Try without a prefix underscore, then with it.
7904 for ac_symprfx in "" "_"; do
7906 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7907 symxfrm="\\1 $ac_symprfx\\2 \\2"
7909 # Write the raw and C identifiers.
7910 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7911 # Fake it for dumpbin and say T for any non-static function
7912 # and D for any global variable.
7913 # Also find C++ and __fastcall symbols from MSVC++,
7914 # which start with @ or ?.
7915 lt_cv_sys_global_symbol_pipe="$AWK '"\
7916 " {last_section=section; section=\$ 3};"\
7917 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7918 " \$ 0!~/External *\|/{next};"\
7919 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7920 " {if(hide[section]) next};"\
7921 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7922 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7923 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7924 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7925 " ' prfx=^$ac_symprfx"
7927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7929 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7931 # Check to see that the pipe works correctly.
7935 cat > conftest.$ac_ext <<_LT_EOF
7940 void nm_test_func(void);
7941 void nm_test_func(void){}
7945 int main(){nm_test_var='a';nm_test_func();return(0);}
7948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7949 (eval $ac_compile) 2>&5
7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952 test $ac_status = 0; }; then
7953 # Now try to grab the symbols.
7955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7956 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; } && test -s "$nlist"; then
7960 # Try sorting and uniquifying the output.
7961 if sort "$nlist" | uniq > "$nlist"T; then
7962 mv -f "$nlist"T "$nlist"
7967 # Make sure that we snagged all the symbols we need.
7968 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7969 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7970 cat <<_LT_EOF > conftest.$ac_ext
7971 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7972 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7973 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7974 relocations are performed -- see ld's documentation on pseudo-relocs. */
7975 # define LT_DLSYM_CONST
7976 #elif defined(__osf__)
7977 /* This system does not cope well with relocations in const data. */
7978 # define LT_DLSYM_CONST
7980 # define LT_DLSYM_CONST const
7988 # Now generate the symbol file.
7989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7991 cat <<_LT_EOF >> conftest.$ac_ext
7993 /* The mapping between symbol names and symbols. */
7994 LT_DLSYM_CONST struct {
7998 lt__PROGRAM__LTX_preloaded_symbols[] =
8000 { "@PROGRAM@", (void *) 0 },
8002 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8003 cat <<\_LT_EOF >> conftest.$ac_ext
8007 /* This works around a problem in FreeBSD linker */
8008 #ifdef FREEBSD_WORKAROUND
8009 static const void *lt_preloaded_setup() {
8010 return lt__PROGRAM__LTX_preloaded_symbols;
8018 # Now try linking the two files.
8019 mv conftest.$ac_objext conftstm.$ac_objext
8020 lt_globsym_save_LIBS=$LIBS
8021 lt_globsym_save_CFLAGS=$CFLAGS
8022 LIBS="conftstm.$ac_objext"
8023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8025 (eval $ac_link) 2>&5
8027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8028 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8031 LIBS=$lt_globsym_save_LIBS
8032 CFLAGS=$lt_globsym_save_CFLAGS
8034 echo "cannot find nm_test_func in $nlist" >&5
8037 echo "cannot find nm_test_var in $nlist" >&5
8040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8043 echo "$progname: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8046 rm -rf conftest* conftst*
8048 # Do not use the global_symbol_pipe unless it works.
8049 if test "$pipe_works" = yes; then
8052 lt_cv_sys_global_symbol_pipe=
8058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8059 lt_cv_sys_global_symbol_to_cdecl=
8061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8063 $as_echo "failed" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8066 $as_echo "ok" >&6; }
8069 # Response file support.
8070 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8071 nm_file_list_spec='@'
8072 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8073 nm_file_list_spec='@'
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8103 $as_echo_n "checking for sysroot... " >&6; }
8105 # Check whether --with-sysroot was given.
8106 if test "${with_sysroot+set}" = set; then :
8107 withval=$with_sysroot;
8114 case ${with_sysroot} in #(
8116 if test "$GCC" = yes; then
8117 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8121 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8127 $as_echo "${with_sysroot}" >&6; }
8128 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8133 $as_echo "${lt_sysroot:-no}" >&6; }
8139 # Check whether --enable-libtool-lock was given.
8140 if test "${enable_libtool_lock+set}" = set; then :
8141 enableval=$enable_libtool_lock;
8144 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8146 # Some flags need to be propagated to the compiler or linker for good
8150 # Find out which ABI we are using.
8151 echo 'int i;' > conftest.$ac_ext
8152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8153 (eval $ac_compile) 2>&5
8155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8156 test $ac_status = 0; }; then
8157 case `/usr/bin/file conftest.$ac_objext` in
8169 # Find out which ABI we are using.
8170 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8172 (eval $ac_compile) 2>&5
8174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8175 test $ac_status = 0; }; then
8176 if test "$lt_cv_prog_gnu_ld" = yes; then
8177 case `/usr/bin/file conftest.$ac_objext` in
8179 LD="${LD-ld} -melf32bsmip"
8182 LD="${LD-ld} -melf32bmipn32"
8185 LD="${LD-ld} -melf64bmip"
8189 case `/usr/bin/file conftest.$ac_objext` in
8205 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8206 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8207 # Find out which ABI we are using.
8208 echo 'int i;' > conftest.$ac_ext
8209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8210 (eval $ac_compile) 2>&5
8212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8213 test $ac_status = 0; }; then
8214 case `/usr/bin/file conftest.o` in
8217 x86_64-*kfreebsd*-gnu)
8218 LD="${LD-ld} -m elf_i386_fbsd"
8221 LD="${LD-ld} -m elf_i386"
8223 ppc64-*linux*|powerpc64-*linux*)
8224 LD="${LD-ld} -m elf32ppclinux"
8227 LD="${LD-ld} -m elf_s390"
8230 LD="${LD-ld} -m elf32_sparc"
8236 x86_64-*kfreebsd*-gnu)
8237 LD="${LD-ld} -m elf_x86_64_fbsd"
8240 LD="${LD-ld} -m elf_x86_64"
8242 ppc*-*linux*|powerpc*-*linux*)
8243 LD="${LD-ld} -m elf64ppc"
8245 s390*-*linux*|s390*-*tpf*)
8246 LD="${LD-ld} -m elf64_s390"
8249 LD="${LD-ld} -m elf64_sparc"
8259 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8260 SAVE_CFLAGS="$CFLAGS"
8261 CFLAGS="$CFLAGS -belf"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8263 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8264 if ${lt_cv_cc_needs_belf+:} false; then :
8265 $as_echo_n "(cached) " >&6
8268 ac_cpp='$CPP $CPPFLAGS'
8269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8284 if ac_fn_c_try_link "$LINENO"; then :
8285 lt_cv_cc_needs_belf=yes
8287 lt_cv_cc_needs_belf=no
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8292 ac_cpp='$CPP $CPPFLAGS'
8293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8299 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8300 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8301 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8302 CFLAGS="$SAVE_CFLAGS"
8306 # Find out which ABI we are using.
8307 echo 'int i;' > conftest.$ac_ext
8308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8309 (eval $ac_compile) 2>&5
8311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312 test $ac_status = 0; }; then
8313 case `/usr/bin/file conftest.o` in
8315 case $lt_cv_prog_gnu_ld in
8316 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8318 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8330 need_locks="$enable_libtool_lock"
8332 if test -n "$ac_tool_prefix"; then
8333 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}mt; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -n "$MANIFEST_TOOL"; then
8341 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8361 if test -n "$MANIFEST_TOOL"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8363 $as_echo "$MANIFEST_TOOL" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8372 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8373 # Extract the first word of "mt", so it can be a program name with args.
8374 set dummy mt; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8378 $as_echo_n "(cached) " >&6
8380 if test -n "$ac_ct_MANIFEST_TOOL"; then
8381 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8401 if test -n "$ac_ct_MANIFEST_TOOL"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8403 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8409 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8412 case $cross_compiling:$ac_tool_warned in
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8418 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8421 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8424 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8426 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8427 if ${lt_cv_path_mainfest_tool+:} false; then :
8428 $as_echo_n "(cached) " >&6
8430 lt_cv_path_mainfest_tool=no
8431 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8432 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8433 cat conftest.err >&5
8434 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8435 lt_cv_path_mainfest_tool=yes
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8440 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8441 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8451 rhapsody* | darwin*)
8452 if test -n "$ac_tool_prefix"; then
8453 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8454 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8458 $as_echo_n "(cached) " >&6
8460 if test -n "$DSYMUTIL"; then
8461 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8481 if test -n "$DSYMUTIL"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8483 $as_echo "$DSYMUTIL" >&6; }
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8491 if test -z "$ac_cv_prog_DSYMUTIL"; then
8492 ac_ct_DSYMUTIL=$DSYMUTIL
8493 # Extract the first word of "dsymutil", so it can be a program name with args.
8494 set dummy dsymutil; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8498 $as_echo_n "(cached) " >&6
8500 if test -n "$ac_ct_DSYMUTIL"; then
8501 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8521 if test -n "$ac_ct_DSYMUTIL"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8523 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8529 if test "x$ac_ct_DSYMUTIL" = x; then
8532 case $cross_compiling:$ac_tool_warned in
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8536 ac_tool_warned=yes ;;
8538 DSYMUTIL=$ac_ct_DSYMUTIL
8541 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8544 if test -n "$ac_tool_prefix"; then
8545 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8546 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if ${ac_cv_prog_NMEDIT+:} false; then :
8550 $as_echo_n "(cached) " >&6
8552 if test -n "$NMEDIT"; then
8553 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 NMEDIT=$ac_cv_prog_NMEDIT
8573 if test -n "$NMEDIT"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8575 $as_echo "$NMEDIT" >&6; }
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8583 if test -z "$ac_cv_prog_NMEDIT"; then
8584 ac_ct_NMEDIT=$NMEDIT
8585 # Extract the first word of "nmedit", so it can be a program name with args.
8586 set dummy nmedit; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8590 $as_echo_n "(cached) " >&6
8592 if test -n "$ac_ct_NMEDIT"; then
8593 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8613 if test -n "$ac_ct_NMEDIT"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8615 $as_echo "$ac_ct_NMEDIT" >&6; }
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8621 if test "x$ac_ct_NMEDIT" = x; then
8624 case $cross_compiling:$ac_tool_warned in
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8628 ac_tool_warned=yes ;;
8630 NMEDIT=$ac_ct_NMEDIT
8633 NMEDIT="$ac_cv_prog_NMEDIT"
8636 if test -n "$ac_tool_prefix"; then
8637 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8638 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_prog_LIPO+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 if test -n "$LIPO"; then
8645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 LIPO=$ac_cv_prog_LIPO
8665 if test -n "$LIPO"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8667 $as_echo "$LIPO" >&6; }
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8675 if test -z "$ac_cv_prog_LIPO"; then
8677 # Extract the first word of "lipo", so it can be a program name with args.
8678 set dummy lipo; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8682 $as_echo_n "(cached) " >&6
8684 if test -n "$ac_ct_LIPO"; then
8685 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_ac_ct_LIPO="lipo"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8705 if test -n "$ac_ct_LIPO"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8707 $as_echo "$ac_ct_LIPO" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8713 if test "x$ac_ct_LIPO" = x; then
8716 case $cross_compiling:$ac_tool_warned in
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720 ac_tool_warned=yes ;;
8725 LIPO="$ac_cv_prog_LIPO"
8728 if test -n "$ac_tool_prefix"; then
8729 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}otool; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_OTOOL+:} false; then :
8734 $as_echo_n "(cached) " >&6
8736 if test -n "$OTOOL"; then
8737 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 OTOOL=$ac_cv_prog_OTOOL
8757 if test -n "$OTOOL"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8759 $as_echo "$OTOOL" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8767 if test -z "$ac_cv_prog_OTOOL"; then
8769 # Extract the first word of "otool", so it can be a program name with args.
8770 set dummy otool; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8774 $as_echo_n "(cached) " >&6
8776 if test -n "$ac_ct_OTOOL"; then
8777 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786 ac_cv_prog_ac_ct_OTOOL="otool"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8797 if test -n "$ac_ct_OTOOL"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8799 $as_echo "$ac_ct_OTOOL" >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8805 if test "x$ac_ct_OTOOL" = x; then
8808 case $cross_compiling:$ac_tool_warned in
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8817 OTOOL="$ac_cv_prog_OTOOL"
8820 if test -n "$ac_tool_prefix"; then
8821 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8822 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if ${ac_cv_prog_OTOOL64+:} false; then :
8826 $as_echo_n "(cached) " >&6
8828 if test -n "$OTOOL64"; then
8829 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8838 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 OTOOL64=$ac_cv_prog_OTOOL64
8849 if test -n "$OTOOL64"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8851 $as_echo "$OTOOL64" >&6; }
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8859 if test -z "$ac_cv_prog_OTOOL64"; then
8860 ac_ct_OTOOL64=$OTOOL64
8861 # Extract the first word of "otool64", so it can be a program name with args.
8862 set dummy otool64; ac_word=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8866 $as_echo_n "(cached) " >&6
8868 if test -n "$ac_ct_OTOOL64"; then
8869 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_prog_ac_ct_OTOOL64="otool64"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8888 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8889 if test -n "$ac_ct_OTOOL64"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8891 $as_echo "$ac_ct_OTOOL64" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8897 if test "x$ac_ct_OTOOL64" = x; then
8900 case $cross_compiling:$ac_tool_warned in
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8904 ac_tool_warned=yes ;;
8906 OTOOL64=$ac_ct_OTOOL64
8909 OTOOL64="$ac_cv_prog_OTOOL64"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8939 $as_echo_n "checking for -single_module linker flag... " >&6; }
8940 if ${lt_cv_apple_cc_single_mod+:} false; then :
8941 $as_echo_n "(cached) " >&6
8943 lt_cv_apple_cc_single_mod=no
8944 if test -z "${LT_MULTI_MODULE}"; then
8945 # By default we will add the -single_module flag. You can override
8946 # by either setting the environment variable LT_MULTI_MODULE
8947 # non-empty at configure time, or by adding -multi_module to the
8949 rm -rf libconftest.dylib*
8950 echo "int foo(void){return 1;}" > conftest.c
8951 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8952 -dynamiclib -Wl,-single_module conftest.c" >&5
8953 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8954 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8956 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8957 lt_cv_apple_cc_single_mod=yes
8959 cat conftest.err >&5
8961 rm -rf libconftest.dylib*
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8966 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8968 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8969 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8970 $as_echo_n "(cached) " >&6
8972 lt_cv_ld_exported_symbols_list=no
8973 save_LDFLAGS=$LDFLAGS
8974 echo "_main" > conftest.sym
8975 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 lt_cv_ld_exported_symbols_list=yes
8990 lt_cv_ld_exported_symbols_list=no
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LDFLAGS="$save_LDFLAGS"
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8998 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9000 $as_echo_n "checking for -force_load linker flag... " >&6; }
9001 if ${lt_cv_ld_force_load+:} false; then :
9002 $as_echo_n "(cached) " >&6
9004 lt_cv_ld_force_load=no
9005 cat > conftest.c << _LT_EOF
9006 int forced_loaded() { return 2;}
9008 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9009 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9010 echo "$AR cru libconftest.a conftest.o" >&5
9011 $AR cru libconftest.a conftest.o 2>&5
9012 echo "$RANLIB libconftest.a" >&5
9013 $RANLIB libconftest.a 2>&5
9014 cat > conftest.c << _LT_EOF
9015 int main() { return 0;}
9017 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9018 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9020 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9021 lt_cv_ld_force_load=yes
9023 cat conftest.err >&5
9025 rm -f conftest.err libconftest.a conftest conftest.c
9026 rm -rf conftest.dSYM
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9030 $as_echo "$lt_cv_ld_force_load" >&6; }
9032 rhapsody* | darwin1.[012])
9033 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9036 darwin*) # darwin 5.x on
9037 # if running on 10.5 or later, the deployment target defaults
9038 # to the OS version, if on x86, and 10.4, the deployment
9039 # target defaults to 10.4. Don't you love it?
9040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9041 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9044 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9046 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9050 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9051 _lt_dar_single_mod='$single_module'
9053 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9054 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9058 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9059 _lt_dsymutil='~$DSYMUTIL $lib || :'
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9067 $as_echo_n "checking for ANSI C header files... " >&6; }
9068 if ${ac_cv_header_stdc+:} false; then :
9069 $as_echo_n "(cached) " >&6
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9086 if ac_fn_c_try_compile "$LINENO"; then :
9087 ac_cv_header_stdc=yes
9089 ac_cv_header_stdc=no
9091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 if test $ac_cv_header_stdc = yes; then
9094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101 $EGREP "memchr" >/dev/null 2>&1; then :
9104 ac_cv_header_stdc=no
9110 if test $ac_cv_header_stdc = yes; then
9111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9118 $EGREP "free" >/dev/null 2>&1; then :
9121 ac_cv_header_stdc=no
9127 if test $ac_cv_header_stdc = yes; then
9128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9129 if test "$cross_compiling" = yes; then :
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9136 #if ((' ' & 0x0FF) == 0x020)
9137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9140 # define ISLOWER(c) \
9141 (('a' <= (c) && (c) <= 'i') \
9142 || ('j' <= (c) && (c) <= 'r') \
9143 || ('s' <= (c) && (c) <= 'z'))
9144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9152 for (i = 0; i < 256; i++)
9153 if (XOR (islower (i), ISLOWER (i))
9154 || toupper (i) != TOUPPER (i))
9159 if ac_fn_c_try_run "$LINENO"; then :
9162 ac_cv_header_stdc=no
9164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9165 conftest.$ac_objext conftest.beam conftest.$ac_ext
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9171 $as_echo "$ac_cv_header_stdc" >&6; }
9172 if test $ac_cv_header_stdc = yes; then
9174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9179 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9180 inttypes.h stdint.h unistd.h
9182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9183 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9186 cat >>confdefs.h <<_ACEOF
9187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9195 for ac_header in dlfcn.h
9197 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9199 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9200 cat >>confdefs.h <<_ACEOF
9201 #define HAVE_DLFCN_H 1
9211 func_stripname_cnf ()
9214 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9215 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9217 } # func_stripname_cnf
9224 # Check whether --enable-shared was given.
9225 if test "${enable_shared+set}" = set; then :
9226 enableval=$enable_shared; p=${PACKAGE-default}
9228 yes) enable_shared=yes ;;
9229 no) enable_shared=no ;;
9232 # Look at the argument we got. We use all the common list separators.
9233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9234 for pkg in $enableval; do
9236 if test "X$pkg" = "X$p"; then
9253 # Check whether --enable-static was given.
9254 if test "${enable_static+set}" = set; then :
9255 enableval=$enable_static; p=${PACKAGE-default}
9257 yes) enable_static=yes ;;
9258 no) enable_static=no ;;
9261 # Look at the argument we got. We use all the common list separators.
9262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9263 for pkg in $enableval; do
9265 if test "X$pkg" = "X$p"; then
9294 # Check whether --with-pic was given.
9295 if test "${with_pic+set}" = set; then :
9296 withval=$with_pic; pic_mode="$withval"
9302 test -z "$pic_mode" && pic_mode=default
9310 # Check whether --enable-fast-install was given.
9311 if test "${enable_fast_install+set}" = set; then :
9312 enableval=$enable_fast_install; p=${PACKAGE-default}
9314 yes) enable_fast_install=yes ;;
9315 no) enable_fast_install=no ;;
9317 enable_fast_install=no
9318 # Look at the argument we got. We use all the common list separators.
9319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9320 for pkg in $enableval; do
9322 if test "X$pkg" = "X$p"; then
9323 enable_fast_install=yes
9330 enable_fast_install=yes
9343 # This can be used to rebuild libtool when needed
9344 LIBTOOL_DEPS="$ltmain"
9346 # Always use our own libtool.
9347 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9374 test -z "$LN_S" && LN_S="ln -s"
9389 if test -n "${ZSH_VERSION+set}" ; then
9390 setopt NO_GLOB_SUBST
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9394 $as_echo_n "checking for objdir... " >&6; }
9395 if ${lt_cv_objdir+:} false; then :
9396 $as_echo_n "(cached) " >&6
9398 rm -f .libs 2>/dev/null
9399 mkdir .libs 2>/dev/null
9400 if test -d .libs; then
9403 # MS-DOS does not allow filenames that begin with a dot.
9406 rmdir .libs 2>/dev/null
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9409 $as_echo "$lt_cv_objdir" >&6; }
9410 objdir=$lt_cv_objdir
9416 cat >>confdefs.h <<_ACEOF
9417 #define LT_OBJDIR "$lt_cv_objdir/"
9425 # AIX sometimes has problems with the GCC collect2 program. For some
9426 # reason, if we set the COLLECT_NAMES environment variable, the problems
9427 # vanish in a puff of smoke.
9428 if test "X${COLLECT_NAMES+set}" != Xset; then
9430 export COLLECT_NAMES
9437 can_build_shared=yes
9439 # All known linkers require a `.a' archive for static linking (except MSVC,
9440 # which needs '.lib').
9443 with_gnu_ld="$lt_cv_prog_gnu_ld"
9446 old_CFLAGS="$CFLAGS"
9448 # Set sane defaults for various variables
9449 test -z "$CC" && CC=cc
9450 test -z "$LTCC" && LTCC=$CC
9451 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9452 test -z "$LD" && LD=ld
9453 test -z "$ac_objext" && ac_objext=o
9455 for cc_temp in $compiler""; do
9457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9463 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9466 # Only perform the check for file, if the check method requires it
9467 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9468 case $deplibs_check_method in
9470 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9472 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9473 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9474 $as_echo_n "(cached) " >&6
9478 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9481 lt_save_MAGIC_CMD="$MAGIC_CMD"
9482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9484 for ac_dir in $ac_dummy; do
9486 test -z "$ac_dir" && ac_dir=.
9487 if test -f $ac_dir/${ac_tool_prefix}file; then
9488 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9489 if test -n "$file_magic_test_file"; then
9490 case $deplibs_check_method in
9492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9495 $EGREP "$file_magic_regex" > /dev/null; then
9500 *** Warning: the command libtool uses to detect shared libraries,
9501 *** $file_magic_cmd, produces output that libtool cannot recognize.
9502 *** The result is that libtool may fail to recognize shared libraries
9503 *** as such. This will affect the creation of libtool libraries that
9504 *** depend on shared libraries, but programs linked with such libtool
9505 *** libraries will work regardless of this problem. Nevertheless, you
9506 *** may want to report the problem to your system manager and/or to
9507 *** bug-libtool@gnu.org
9517 MAGIC_CMD="$lt_save_MAGIC_CMD"
9522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9523 if test -n "$MAGIC_CMD"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9525 $as_echo "$MAGIC_CMD" >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9535 if test -z "$lt_cv_path_MAGIC_CMD"; then
9536 if test -n "$ac_tool_prefix"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9538 $as_echo_n "checking for file... " >&6; }
9539 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9540 $as_echo_n "(cached) " >&6
9544 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9547 lt_save_MAGIC_CMD="$MAGIC_CMD"
9548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9549 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9550 for ac_dir in $ac_dummy; do
9552 test -z "$ac_dir" && ac_dir=.
9553 if test -f $ac_dir/file; then
9554 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9555 if test -n "$file_magic_test_file"; then
9556 case $deplibs_check_method in
9558 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9560 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9561 $EGREP "$file_magic_regex" > /dev/null; then
9566 *** Warning: the command libtool uses to detect shared libraries,
9567 *** $file_magic_cmd, produces output that libtool cannot recognize.
9568 *** The result is that libtool may fail to recognize shared libraries
9569 *** as such. This will affect the creation of libtool libraries that
9570 *** depend on shared libraries, but programs linked with such libtool
9571 *** libraries will work regardless of this problem. Nevertheless, you
9572 *** may want to report the problem to your system manager and/or to
9573 *** bug-libtool@gnu.org
9583 MAGIC_CMD="$lt_save_MAGIC_CMD"
9588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9589 if test -n "$MAGIC_CMD"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9591 $as_echo "$MAGIC_CMD" >&6; }
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9607 # Use C for the default configuration in the libtool script
9611 ac_cpp='$CPP $CPPFLAGS'
9612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9617 # Source file extension for C test sources.
9620 # Object file extension for compiled C test sources.
9624 # Code to be used in simple compile tests
9625 lt_simple_compile_test_code="int some_variable = 0;"
9627 # Code to be used in simple link tests
9628 lt_simple_link_test_code='int main(){return(0);}'
9636 # If no C compiler was specified, use CC.
9639 # If no C compiler flags were specified, use CFLAGS.
9640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9642 # Allow CC to be a program name with arguments.
9645 # Save the default compiler, since it gets overwritten when the other
9646 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9647 compiler_DEFAULT=$CC
9649 # save warnings/boilerplate of simple test code
9650 ac_outfile=conftest.$ac_objext
9651 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9653 _lt_compiler_boilerplate=`cat conftest.err`
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9659 _lt_linker_boilerplate=`cat conftest.err`
9664 ## There is no encapsulation within the following macros, do not change
9665 ## the running order or otherwise move them around unless you know exactly
9666 ## what you are doing...
9667 if test -n "$compiler"; then
9669 lt_prog_compiler_no_builtin_flag=
9671 if test "$GCC" = yes; then
9672 case $cc_basename in
9674 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9676 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9680 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9681 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9682 $as_echo_n "(cached) " >&6
9684 lt_cv_prog_compiler_rtti_exceptions=no
9685 ac_outfile=conftest.$ac_objext
9686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9687 lt_compiler_flag="-fno-rtti -fno-exceptions"
9688 # Insert the option either (1) after the last *FLAGS variable, or
9689 # (2) before a word containing "conftest.", or (3) at the end.
9690 # Note that $ac_compile itself does not contain backslashes and begins
9691 # with a dollar sign (not a hyphen), so the echo should work correctly.
9692 # The option is referenced via a variable to avoid confusing sed.
9693 lt_compile=`echo "$ac_compile" | $SED \
9694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9696 -e 's:$: $lt_compiler_flag:'`
9697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9698 (eval "$lt_compile" 2>conftest.err)
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 if (exit $ac_status) && test -s "$ac_outfile"; then
9703 # The compiler can only warn and ignore the option if not recognized
9704 # So say no if there are warnings other than the usual output.
9705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9708 lt_cv_prog_compiler_rtti_exceptions=yes
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9715 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9730 lt_prog_compiler_wl=
9731 lt_prog_compiler_pic=
9732 lt_prog_compiler_static=
9735 if test "$GCC" = yes; then
9736 lt_prog_compiler_wl='-Wl,'
9737 lt_prog_compiler_static='-static'
9741 # All AIX code is PIC.
9742 if test "$host_cpu" = ia64; then
9743 # AIX 5 now supports IA64 processor
9744 lt_prog_compiler_static='-Bstatic'
9751 # see comment about AmigaOS4 .so support
9752 lt_prog_compiler_pic='-fPIC'
9755 # FIXME: we need at least 68020 code to build shared libraries, but
9756 # adding the `-m68020' flag to GCC prevents building anything better,
9758 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9764 # PIC is the default for these OSes.
9767 mingw* | cygwin* | pw32* | os2* | cegcc*)
9768 # This hack is so that the source file can tell whether it is being
9769 # built for inclusion in a dll (and should export symbols for example).
9770 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9771 # (--disable-auto-import) libraries
9772 lt_prog_compiler_pic='-DDLL_EXPORT'
9775 darwin* | rhapsody*)
9776 # PIC is the default on this platform
9777 # Common symbols not allowed in MH_DYLIB files
9778 lt_prog_compiler_pic='-fno-common'
9782 # PIC is the default for Haiku.
9783 # The "-static" flag exists, but is broken.
9784 lt_prog_compiler_static=
9788 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9789 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9790 # sets the default TLS model and affects inlining.
9796 lt_prog_compiler_pic='-fPIC'
9802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9803 # Instead, we relocate shared libraries at runtime.
9807 # Just because we use GCC doesn't mean we suddenly get shared libraries
9808 # on systems that don't support them.
9809 lt_prog_compiler_can_build_shared=no
9814 # QNX uses GNU C++, but need to define -shared option too, otherwise
9816 lt_prog_compiler_pic='-fPIC -shared'
9820 if test -d /usr/nec; then
9821 lt_prog_compiler_pic=-Kconform_pic
9826 lt_prog_compiler_pic='-fPIC'
9830 case $cc_basename in
9831 nvcc*) # Cuda Compiler Driver 2.2
9832 lt_prog_compiler_wl='-Xlinker '
9833 lt_prog_compiler_pic='-Xcompiler -fPIC'
9837 # PORTME Check for flag to pass linker flags through the system compiler.
9840 lt_prog_compiler_wl='-Wl,'
9841 if test "$host_cpu" = ia64; then
9842 # AIX 5 now supports IA64 processor
9843 lt_prog_compiler_static='-Bstatic'
9845 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9849 mingw* | cygwin* | pw32* | os2* | cegcc*)
9850 # This hack is so that the source file can tell whether it is being
9851 # built for inclusion in a dll (and should export symbols for example).
9852 lt_prog_compiler_pic='-DDLL_EXPORT'
9855 hpux9* | hpux10* | hpux11*)
9856 lt_prog_compiler_wl='-Wl,'
9857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9864 lt_prog_compiler_pic='+Z'
9867 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9868 lt_prog_compiler_static='${wl}-a ${wl}archive'
9871 irix5* | irix6* | nonstopux*)
9872 lt_prog_compiler_wl='-Wl,'
9873 # PIC (with -KPIC) is the default.
9874 lt_prog_compiler_static='-non_shared'
9877 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9878 case $cc_basename in
9879 # old Intel for x86_64 which still supported -KPIC.
9881 lt_prog_compiler_wl='-Wl,'
9882 lt_prog_compiler_pic='-KPIC'
9883 lt_prog_compiler_static='-static'
9885 # icc used to be incompatible with GCC.
9886 # ICC 10 doesn't accept -KPIC any more.
9888 lt_prog_compiler_wl='-Wl,'
9889 lt_prog_compiler_pic='-fPIC'
9890 lt_prog_compiler_static='-static'
9892 # Lahey Fortran 8.1.
9894 lt_prog_compiler_wl='-Wl,'
9895 lt_prog_compiler_pic='--shared'
9896 lt_prog_compiler_static='--static'
9899 # NAG Fortran compiler
9900 lt_prog_compiler_wl='-Wl,-Wl,,'
9901 lt_prog_compiler_pic='-PIC'
9902 lt_prog_compiler_static='-Bstatic'
9904 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9905 # Portland Group compilers (*not* the Pentium gcc compiler,
9906 # which looks to be a dead project)
9907 lt_prog_compiler_wl='-Wl,'
9908 lt_prog_compiler_pic='-fpic'
9909 lt_prog_compiler_static='-Bstatic'
9912 lt_prog_compiler_wl='-Wl,'
9913 # All Alpha code is PIC.
9914 lt_prog_compiler_static='-non_shared'
9916 xl* | bgxl* | bgf* | mpixl*)
9917 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-qpic'
9920 lt_prog_compiler_static='-qstaticlink'
9923 case `$CC -V 2>&1 | sed 5q` in
9924 *Sun\ F* | *Sun*Fortran*)
9925 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9926 lt_prog_compiler_pic='-KPIC'
9927 lt_prog_compiler_static='-Bstatic'
9928 lt_prog_compiler_wl=''
9932 lt_prog_compiler_pic='-KPIC'
9933 lt_prog_compiler_static='-Bstatic'
9934 lt_prog_compiler_wl='-Wl,'
9942 lt_prog_compiler_pic='-KPIC'
9943 lt_prog_compiler_static='-Bstatic'
9947 # QNX uses GNU C++, but need to define -shared option too, otherwise
9949 lt_prog_compiler_pic='-fPIC -shared'
9952 osf3* | osf4* | osf5*)
9953 lt_prog_compiler_wl='-Wl,'
9954 # All OSF/1 code is PIC.
9955 lt_prog_compiler_static='-non_shared'
9959 lt_prog_compiler_static='-non_shared'
9963 lt_prog_compiler_pic='-KPIC'
9964 lt_prog_compiler_static='-Bstatic'
9965 case $cc_basename in
9966 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9967 lt_prog_compiler_wl='-Qoption ld ';;
9969 lt_prog_compiler_wl='-Wl,';;
9974 lt_prog_compiler_wl='-Qoption ld '
9975 lt_prog_compiler_pic='-PIC'
9976 lt_prog_compiler_static='-Bstatic'
9979 sysv4 | sysv4.2uw2* | sysv4.3*)
9980 lt_prog_compiler_wl='-Wl,'
9981 lt_prog_compiler_pic='-KPIC'
9982 lt_prog_compiler_static='-Bstatic'
9986 if test -d /usr/nec ;then
9987 lt_prog_compiler_pic='-Kconform_pic'
9988 lt_prog_compiler_static='-Bstatic'
9992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9993 lt_prog_compiler_wl='-Wl,'
9994 lt_prog_compiler_pic='-KPIC'
9995 lt_prog_compiler_static='-Bstatic'
9999 lt_prog_compiler_wl='-Wl,'
10000 lt_prog_compiler_can_build_shared=no
10004 lt_prog_compiler_pic='-pic'
10005 lt_prog_compiler_static='-Bstatic'
10009 lt_prog_compiler_can_build_shared=no
10015 # For platforms which do not support PIC, -DPIC is meaningless:
10017 lt_prog_compiler_pic=
10020 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10026 if ${lt_cv_prog_compiler_pic+:} false; then :
10027 $as_echo_n "(cached) " >&6
10029 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10032 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10033 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10036 # Check to make sure the PIC flag actually works.
10038 if test -n "$lt_prog_compiler_pic"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10040 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10041 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10042 $as_echo_n "(cached) " >&6
10044 lt_cv_prog_compiler_pic_works=no
10045 ac_outfile=conftest.$ac_objext
10046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10047 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10048 # Insert the option either (1) after the last *FLAGS variable, or
10049 # (2) before a word containing "conftest.", or (3) at the end.
10050 # Note that $ac_compile itself does not contain backslashes and begins
10051 # with a dollar sign (not a hyphen), so the echo should work correctly.
10052 # The option is referenced via a variable to avoid confusing sed.
10053 lt_compile=`echo "$ac_compile" | $SED \
10054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10056 -e 's:$: $lt_compiler_flag:'`
10057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10058 (eval "$lt_compile" 2>conftest.err)
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 if (exit $ac_status) && test -s "$ac_outfile"; then
10063 # The compiler can only warn and ignore the option if not recognized
10064 # So say no if there are warnings other than the usual output.
10065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10068 lt_cv_prog_compiler_pic_works=yes
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10075 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10077 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10078 case $lt_prog_compiler_pic in
10080 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10083 lt_prog_compiler_pic=
10084 lt_prog_compiler_can_build_shared=no
10100 # Check to make sure the static flag actually works.
10102 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10104 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10105 if ${lt_cv_prog_compiler_static_works+:} false; then :
10106 $as_echo_n "(cached) " >&6
10108 lt_cv_prog_compiler_static_works=no
10109 save_LDFLAGS="$LDFLAGS"
10110 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10111 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10113 # The linker can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 if test -s conftest.err; then
10116 # Append any errors to the config.log.
10117 cat conftest.err 1>&5
10118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10120 if diff conftest.exp conftest.er2 >/dev/null; then
10121 lt_cv_prog_compiler_static_works=yes
10124 lt_cv_prog_compiler_static_works=yes
10128 LDFLAGS="$save_LDFLAGS"
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10132 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10134 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10137 lt_prog_compiler_static=
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10147 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10148 if ${lt_cv_prog_compiler_c_o+:} false; then :
10149 $as_echo_n "(cached) " >&6
10151 lt_cv_prog_compiler_c_o=no
10152 $RM -r conftest 2>/dev/null
10156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10158 lt_compiler_flag="-o out/conftest2.$ac_objext"
10159 # Insert the option either (1) after the last *FLAGS variable, or
10160 # (2) before a word containing "conftest.", or (3) at the end.
10161 # Note that $ac_compile itself does not contain backslashes and begins
10162 # with a dollar sign (not a hyphen), so the echo should work correctly.
10163 lt_compile=`echo "$ac_compile" | $SED \
10164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10166 -e 's:$: $lt_compiler_flag:'`
10167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10168 (eval "$lt_compile" 2>out/conftest.err)
10170 cat out/conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10174 # The compiler can only warn and ignore the option if not recognized
10175 # So say no if there are warnings
10176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10179 lt_cv_prog_compiler_c_o=yes
10184 # SGI C++ compiler will create directory out/ii_files/ for
10185 # template instantiation
10186 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10187 $RM out/* && rmdir out
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10194 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10203 if ${lt_cv_prog_compiler_c_o+:} false; then :
10204 $as_echo_n "(cached) " >&6
10206 lt_cv_prog_compiler_c_o=no
10207 $RM -r conftest 2>/dev/null
10211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10213 lt_compiler_flag="-o out/conftest2.$ac_objext"
10214 # Insert the option either (1) after the last *FLAGS variable, or
10215 # (2) before a word containing "conftest.", or (3) at the end.
10216 # Note that $ac_compile itself does not contain backslashes and begins
10217 # with a dollar sign (not a hyphen), so the echo should work correctly.
10218 lt_compile=`echo "$ac_compile" | $SED \
10219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10221 -e 's:$: $lt_compiler_flag:'`
10222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10223 (eval "$lt_compile" 2>out/conftest.err)
10225 cat out/conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10229 # The compiler can only warn and ignore the option if not recognized
10230 # So say no if there are warnings
10231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10234 lt_cv_prog_compiler_c_o=yes
10239 # SGI C++ compiler will create directory out/ii_files/ for
10240 # template instantiation
10241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10242 $RM out/* && rmdir out
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10249 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10254 hard_links="nottested"
10255 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10256 # do not overwrite the value of need_locks provided by the user
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10258 $as_echo_n "checking if we can lock with hard links... " >&6; }
10261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10263 ln conftest.a conftest.b 2>&5 || hard_links=no
10264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10266 $as_echo "$hard_links" >&6; }
10267 if test "$hard_links" = no; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10269 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10282 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10285 allow_undefined_flag=
10286 always_export_symbols=no
10288 archive_expsym_cmds=
10289 compiler_needs_object=no
10290 enable_shared_with_static_runtimes=no
10291 export_dynamic_flag_spec=
10292 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10293 hardcode_automatic=no
10295 hardcode_direct_absolute=no
10296 hardcode_libdir_flag_spec=
10297 hardcode_libdir_flag_spec_ld=
10298 hardcode_libdir_separator=
10299 hardcode_minus_L=no
10300 hardcode_shlibpath_var=unsupported
10302 link_all_deplibs=unknown
10304 module_expsym_cmds=
10305 old_archive_from_new_cmds=
10306 old_archive_from_expsyms_cmds=
10307 thread_safe_flag_spec=
10308 whole_archive_flag_spec=
10309 # include_expsyms should be a list of space-separated symbols to be *always*
10310 # included in the symbol list
10312 # exclude_expsyms can be an extended regexp of symbols to exclude
10313 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10314 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10315 # as well as any symbol that contains `d'.
10316 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10317 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10318 # platforms (ab)use it in PIC code, but their linkers get confused if
10319 # the symbol is explicitly referenced. Since portable code cannot
10320 # rely on this symbol name, it's probably fine to never include it in
10321 # preloaded symbol tables.
10322 # Exclude shared library initialization/finalization symbols.
10323 extract_expsyms_cmds=
10326 cygwin* | mingw* | pw32* | cegcc*)
10327 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10328 # When not using gcc, we currently assume that we are using
10329 # Microsoft Visual C++.
10330 if test "$GCC" != yes; then
10335 # we just hope/assume this is gcc and not c89 (= MSVC++)
10345 # On some targets, GNU ld is compatible enough with the native linker
10346 # that we're better off using the native interface for both.
10347 lt_use_gnu_ld_interface=no
10348 if test "$with_gnu_ld" = yes; then
10351 # The AIX port of GNU ld has always aspired to compatibility
10352 # with the native linker. However, as the warning in the GNU ld
10353 # block says, versions before 2.19.5* couldn't really create working
10354 # shared libraries, regardless of the interface used.
10355 case `$LD -v 2>&1` in
10356 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10357 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10358 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10360 lt_use_gnu_ld_interface=yes
10365 lt_use_gnu_ld_interface=yes
10370 if test "$lt_use_gnu_ld_interface" = yes; then
10371 # If archive_cmds runs LD, not CC, wlarc should be empty
10374 # Set some defaults for GNU ld with shared library support. These
10375 # are reset later if shared libraries are not supported. Putting them
10376 # here allows them to be overridden if necessary.
10377 runpath_var=LD_RUN_PATH
10378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10379 export_dynamic_flag_spec='${wl}--export-dynamic'
10380 # ancient GNU ld didn't support --whole-archive et. al.
10381 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10382 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10384 whole_archive_flag_spec=
10386 supports_anon_versioning=no
10387 case `$LD -v 2>&1` in
10388 *GNU\ gold*) supports_anon_versioning=yes ;;
10389 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10390 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10391 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10392 *\ 2.11.*) ;; # other 2.11 versions
10393 *) supports_anon_versioning=yes ;;
10396 # See if GNU ld supports shared libraries.
10399 # On AIX/PPC, the GNU linker is very broken
10400 if test "$host_cpu" != ia64; then
10404 *** Warning: the GNU linker, at least up to release 2.19, is reported
10405 *** to be unable to reliably create shared libraries on AIX.
10406 *** Therefore, libtool is disabling shared libraries support. If you
10407 *** really care for shared libraries, you may want to install binutils
10408 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10409 *** You will then need to restart the configuration process.
10418 # see comment about AmigaOS4 .so support
10419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10420 archive_expsym_cmds=''
10423 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 hardcode_minus_L=yes
10431 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10432 allow_undefined_flag=unsupported
10433 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10434 # support --undefined. This deserves some investigation. FIXME
10435 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10441 cygwin* | mingw* | pw32* | cegcc*)
10442 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10443 # as there is no search path for DLLs.
10444 hardcode_libdir_flag_spec='-L$libdir'
10445 export_dynamic_flag_spec='${wl}--export-all-symbols'
10446 allow_undefined_flag=unsupported
10447 always_export_symbols=no
10448 enable_shared_with_static_runtimes=yes
10449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10450 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10452 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10454 # If the export-symbols file already is a .def file (1st line
10455 # is EXPORTS), use it as is; otherwise, prepend...
10456 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10457 cp $export_symbols $output_objdir/$soname.def;
10459 echo EXPORTS > $output_objdir/$soname.def;
10460 cat $export_symbols >> $output_objdir/$soname.def;
10462 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470 link_all_deplibs=yes
10475 hardcode_shlibpath_var=no
10476 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10477 export_dynamic_flag_spec='${wl}-E'
10478 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10479 # Instead, shared libraries are loaded at an image base (0x10000000 by
10480 # default) and relocated if they conflict, which is a slow very memory
10481 # consuming and fragmenting process. To avoid this, we pick a random,
10482 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10483 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10485 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10488 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10490 if test "$host_os" = linux-dietlibc; then
10491 case $cc_basename in
10492 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10495 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10496 && test "$tmp_diet" = no
10498 tmp_addflag=' $pic_flag'
10499 tmp_sharedflag='-shared'
10500 case $cc_basename,$host_cpu in
10501 pgcc*) # Portland Group C compiler
10502 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10503 tmp_addflag=' $pic_flag'
10505 pgf77* | pgf90* | pgf95* | pgfortran*)
10506 # Portland Group f77 and f90 compilers
10507 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10508 tmp_addflag=' $pic_flag -Mnomain' ;;
10509 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10510 tmp_addflag=' -i_dynamic' ;;
10511 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10512 tmp_addflag=' -i_dynamic -nofor_main' ;;
10513 ifc* | ifort*) # Intel Fortran compiler
10514 tmp_addflag=' -nofor_main' ;;
10515 lf95*) # Lahey Fortran 8.1
10516 whole_archive_flag_spec=
10517 tmp_sharedflag='--shared' ;;
10518 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10519 tmp_sharedflag='-qmkshrobj'
10521 nvcc*) # Cuda Compiler Driver 2.2
10522 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10523 compiler_needs_object=yes
10526 case `$CC -V 2>&1 | sed 5q` in
10527 *Sun\ C*) # Sun C 5.9
10528 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10529 compiler_needs_object=yes
10530 tmp_sharedflag='-G' ;;
10531 *Sun\ F*) # Sun Fortran 8.3
10532 tmp_sharedflag='-G' ;;
10534 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10536 if test "x$supports_anon_versioning" = xyes; then
10537 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10539 echo "local: *; };" >> $output_objdir/$libname.ver~
10540 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10543 case $cc_basename in
10544 xlf* | bgf* | bgxlf* | mpixlf*)
10545 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10546 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10547 hardcode_libdir_flag_spec=
10548 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10549 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10550 if test "x$supports_anon_versioning" = xyes; then
10551 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10553 echo "local: *; };" >> $output_objdir/$libname.ver~
10554 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10565 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10574 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10579 *** create shared libraries on Solaris systems. Therefore, libtool
10580 *** is disabling shared libraries support. We urge you to upgrade GNU
10581 *** binutils to release 2.9.1 or newer. Another option is to modify
10582 *** your PATH or compiler configuration so that the native linker is
10583 *** used, and then restart.
10586 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10595 case `$LD -v 2>&1` in
10596 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10600 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10601 *** reliably create shared libraries on SCO systems. Therefore, libtool
10602 *** is disabling shared libraries support. We urge you to upgrade GNU
10603 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10604 *** your PATH or compiler configuration so that the native linker is
10605 *** used, and then restart.
10610 # For security reasons, it is highly recommended that you always
10611 # use absolute paths for naming shared libraries, and exclude the
10612 # DT_RUNPATH tag from executables and libraries. But doing so
10613 # requires that you compile everything twice, which is a pain.
10614 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10626 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_direct=yes
10629 hardcode_shlibpath_var=no
10633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10642 if test "$ld_shlibs" = no; then
10644 hardcode_libdir_flag_spec=
10645 export_dynamic_flag_spec=
10646 whole_archive_flag_spec=
10649 # PORTME fill in a description of your system's linker (not GNU ld)
10652 allow_undefined_flag=unsupported
10653 always_export_symbols=yes
10654 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10655 # Note: this linker hardcodes the directories in LIBPATH if there
10656 # are no directories specified by -L.
10657 hardcode_minus_L=yes
10658 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10659 # Neither direct hardcoding nor static linking is supported with a
10661 hardcode_direct=unsupported
10666 if test "$host_cpu" = ia64; then
10667 # On IA64, the linker does run time linking by default, so we don't
10668 # have to do anything special.
10669 aix_use_runtimelinking=no
10670 exp_sym_flag='-Bexport'
10673 # If we're using GNU nm, then we don't want the "-C" option.
10674 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10675 # Also, AIX nm treats weak defined symbols like other global
10676 # defined symbols, whereas GNU nm marks them as "W".
10677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10678 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10680 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10682 aix_use_runtimelinking=no
10684 # Test if we are trying to use run time linking or normal
10685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10686 # need to do runtime linking.
10687 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10688 for ld_flag in $LDFLAGS; do
10689 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10690 aix_use_runtimelinking=yes
10697 exp_sym_flag='-bexport'
10698 no_entry_flag='-bnoentry'
10701 # When large executables or shared objects are built, AIX ld can
10702 # have problems creating the table of contents. If linking a library
10703 # or program results in "error TOC overflow" add -mminimal-toc to
10704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10708 hardcode_direct=yes
10709 hardcode_direct_absolute=yes
10710 hardcode_libdir_separator=':'
10711 link_all_deplibs=yes
10712 file_list_spec='${wl}-f,'
10714 if test "$GCC" = yes; then
10715 case $host_os in aix4.[012]|aix4.[012].*)
10716 # We only want to do this on AIX 4.2 and lower, the check
10717 # below for broken collect2 doesn't work under 4.3+
10718 collect2name=`${CC} -print-prog-name=collect2`
10719 if test -f "$collect2name" &&
10720 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10722 # We have reworked collect2
10725 # We have old collect2
10726 hardcode_direct=unsupported
10727 # It fails to find uninstalled libraries when the uninstalled
10728 # path is not listed in the libpath. Setting hardcode_minus_L
10729 # to unsupported forces relinking
10730 hardcode_minus_L=yes
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_libdir_separator=
10736 shared_flag='-shared'
10737 if test "$aix_use_runtimelinking" = yes; then
10738 shared_flag="$shared_flag "'${wl}-G'
10742 if test "$host_cpu" = ia64; then
10743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10744 # chokes on -Wl,-G. The following line is correct:
10747 if test "$aix_use_runtimelinking" = yes; then
10748 shared_flag='${wl}-G'
10750 shared_flag='${wl}-bM:SRE'
10755 export_dynamic_flag_spec='${wl}-bexpall'
10756 # It seems that -bexpall does not export symbols beginning with
10757 # underscore (_), so it is better to generate a list of symbols to export.
10758 always_export_symbols=yes
10759 if test "$aix_use_runtimelinking" = yes; then
10760 # Warning - without using the other runtime loading flags (-brtl),
10761 # -berok will link without error, but may produce a broken library.
10762 allow_undefined_flag='-berok'
10763 # Determine the default libpath from the value encoded in an
10764 # empty executable.
10765 if test "${lt_cv_aix_libpath+set}" = set; then
10766 aix_libpath=$lt_cv_aix_libpath
10768 if ${lt_cv_aix_libpath_+:} false; then :
10769 $as_echo_n "(cached) " >&6
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10782 if ac_fn_c_try_link "$LINENO"; then :
10784 lt_aix_libpath_sed='
10785 /Import File Strings/,/^$/ {
10787 s/^0 *\([^ ]*\) *$/\1/
10791 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 # Check for a 64-bit object if we didn't find anything.
10793 if test -z "$lt_cv_aix_libpath_"; then
10794 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 if test -z "$lt_cv_aix_libpath_"; then
10800 lt_cv_aix_libpath_="/usr/lib:/lib"
10805 aix_libpath=$lt_cv_aix_libpath_
10808 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10809 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10811 if test "$host_cpu" = ia64; then
10812 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10813 allow_undefined_flag="-z nodefs"
10814 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10816 # Determine the default libpath from the value encoded in an
10817 # empty executable.
10818 if test "${lt_cv_aix_libpath+set}" = set; then
10819 aix_libpath=$lt_cv_aix_libpath
10821 if ${lt_cv_aix_libpath_+:} false; then :
10822 $as_echo_n "(cached) " >&6
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10835 if ac_fn_c_try_link "$LINENO"; then :
10837 lt_aix_libpath_sed='
10838 /Import File Strings/,/^$/ {
10840 s/^0 *\([^ ]*\) *$/\1/
10844 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10845 # Check for a 64-bit object if we didn't find anything.
10846 if test -z "$lt_cv_aix_libpath_"; then
10847 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10850 rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10852 if test -z "$lt_cv_aix_libpath_"; then
10853 lt_cv_aix_libpath_="/usr/lib:/lib"
10858 aix_libpath=$lt_cv_aix_libpath_
10861 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10862 # Warning - without using the other run time loading flags,
10863 # -berok will link without error, but may produce a broken library.
10864 no_undefined_flag=' ${wl}-bernotok'
10865 allow_undefined_flag=' ${wl}-berok'
10866 if test "$with_gnu_ld" = yes; then
10867 # We only use this code for GNU lds that support --whole-archive.
10868 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10870 # Exported symbols can be pulled into shared objects from archives
10871 whole_archive_flag_spec='$convenience'
10873 archive_cmds_need_lc=yes
10874 # This is similar to how AIX traditionally builds its shared libraries.
10875 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10883 # see comment about AmigaOS4 .so support
10884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885 archive_expsym_cmds=''
10888 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10889 hardcode_libdir_flag_spec='-L$libdir'
10890 hardcode_minus_L=yes
10896 export_dynamic_flag_spec=-rdynamic
10899 cygwin* | mingw* | pw32* | cegcc*)
10900 # When not using gcc, we currently assume that we are using
10901 # Microsoft Visual C++.
10902 # hardcode_libdir_flag_spec is actually meaningless, as there is
10903 # no search path for DLLs.
10904 case $cc_basename in
10907 hardcode_libdir_flag_spec=' '
10908 allow_undefined_flag=unsupported
10909 always_export_symbols=yes
10911 # Tell ltmain to make .lib files, not .a files.
10913 # Tell ltmain to make .dll files, not .so files.
10915 # FIXME: Setting linknames here is a bad hack.
10916 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10917 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10918 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10920 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10922 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10924 # The linker will not automatically build a static lib if we build a DLL.
10925 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10926 enable_shared_with_static_runtimes=yes
10927 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10929 old_postinstall_cmds='chmod 644 $oldlib'
10930 postlink_cmds='lt_outputfile="@OUTPUT@"~
10931 lt_tool_outputfile="@TOOL_OUTPUT@"~
10932 case $lt_outputfile in
10935 lt_outputfile="$lt_outputfile.exe"
10936 lt_tool_outputfile="$lt_tool_outputfile.exe"
10939 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10940 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10941 $RM "$lt_outputfile.manifest";
10945 # Assume MSVC wrapper
10946 hardcode_libdir_flag_spec=' '
10947 allow_undefined_flag=unsupported
10948 # Tell ltmain to make .lib files, not .a files.
10950 # Tell ltmain to make .dll files, not .so files.
10952 # FIXME: Setting linknames here is a bad hack.
10953 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10954 # The linker will automatically build a .lib file if we build a DLL.
10955 old_archive_from_new_cmds='true'
10956 # FIXME: Should let the user specify the lib program.
10957 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10958 enable_shared_with_static_runtimes=yes
10963 darwin* | rhapsody*)
10966 archive_cmds_need_lc=no
10968 hardcode_automatic=yes
10969 hardcode_shlibpath_var=unsupported
10970 if test "$lt_cv_ld_force_load" = "yes"; then
10971 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10973 whole_archive_flag_spec=''
10975 link_all_deplibs=yes
10976 allow_undefined_flag="$_lt_dar_allow_undefined"
10977 case $cc_basename in
10978 ifort*) _lt_dar_can_shared=yes ;;
10979 *) _lt_dar_can_shared=$GCC ;;
10981 if test "$_lt_dar_can_shared" = "yes"; then
10982 output_verbose_link_cmd=func_echo_all
10983 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10984 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10985 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10986 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996 hardcode_libdir_flag_spec='-L$libdir'
10997 hardcode_shlibpath_var=no
11004 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11005 # support. Future versions do this automatically, but an explicit c++rt0.o
11006 # does not break anything, and helps significantly (at the cost of a little
11009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11010 hardcode_libdir_flag_spec='-R$libdir'
11011 hardcode_direct=yes
11012 hardcode_shlibpath_var=no
11015 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11018 hardcode_direct=yes
11019 hardcode_minus_L=yes
11020 hardcode_shlibpath_var=no
11023 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11024 freebsd* | dragonfly*)
11025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11026 hardcode_libdir_flag_spec='-R$libdir'
11027 hardcode_direct=yes
11028 hardcode_shlibpath_var=no
11032 if test "$GCC" = yes; then
11033 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11035 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11037 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11038 hardcode_libdir_separator=:
11039 hardcode_direct=yes
11041 # hardcode_minus_L: Not really in the search PATH,
11042 # but as the default location of the library.
11043 hardcode_minus_L=yes
11044 export_dynamic_flag_spec='${wl}-E'
11048 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11049 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11053 if test "$with_gnu_ld" = no; then
11054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11055 hardcode_libdir_flag_spec_ld='+b $libdir'
11056 hardcode_libdir_separator=:
11057 hardcode_direct=yes
11058 hardcode_direct_absolute=yes
11059 export_dynamic_flag_spec='${wl}-E'
11060 # hardcode_minus_L: Not really in the search PATH,
11061 # but as the default location of the library.
11062 hardcode_minus_L=yes
11067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11070 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11073 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11076 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11082 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11089 # Older versions of the 11.00 compiler do not understand -b yet
11090 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11092 $as_echo_n "checking if $CC understands -b... " >&6; }
11093 if ${lt_cv_prog_compiler__b+:} false; then :
11094 $as_echo_n "(cached) " >&6
11096 lt_cv_prog_compiler__b=no
11097 save_LDFLAGS="$LDFLAGS"
11098 LDFLAGS="$LDFLAGS -b"
11099 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11101 # The linker can only warn and ignore the option if not recognized
11102 # So say no if there are warnings
11103 if test -s conftest.err; then
11104 # Append any errors to the config.log.
11105 cat conftest.err 1>&5
11106 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11108 if diff conftest.exp conftest.er2 >/dev/null; then
11109 lt_cv_prog_compiler__b=yes
11112 lt_cv_prog_compiler__b=yes
11116 LDFLAGS="$save_LDFLAGS"
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11120 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11122 if test x"$lt_cv_prog_compiler__b" = xyes; then
11123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11131 if test "$with_gnu_ld" = no; then
11132 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11133 hardcode_libdir_separator=:
11138 hardcode_shlibpath_var=no
11141 hardcode_direct=yes
11142 hardcode_direct_absolute=yes
11143 export_dynamic_flag_spec='${wl}-E'
11145 # hardcode_minus_L: Not really in the search PATH,
11146 # but as the default location of the library.
11147 hardcode_minus_L=yes
11153 irix5* | irix6* | nonstopux*)
11154 if test "$GCC" = yes; then
11155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11156 # Try to use the -exported_symbol ld option, if it does not
11157 # work, assume that -exports_file does not work either and
11158 # implicitly export all symbols.
11159 # This should be the same for all languages, so no per-tag cache variable.
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11161 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11162 if ${lt_cv_irix_exported_symbol+:} false; then :
11163 $as_echo_n "(cached) " >&6
11165 save_LDFLAGS="$LDFLAGS"
11166 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11169 int foo (void) { return 0; }
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 lt_cv_irix_exported_symbol=yes
11174 lt_cv_irix_exported_symbol=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LDFLAGS="$save_LDFLAGS"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11181 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11182 if test "$lt_cv_irix_exported_symbol" = yes; then
11183 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11189 archive_cmds_need_lc='no'
11190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11191 hardcode_libdir_separator=:
11193 link_all_deplibs=yes
11197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11200 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11202 hardcode_libdir_flag_spec='-R$libdir'
11203 hardcode_direct=yes
11204 hardcode_shlibpath_var=no
11208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11209 hardcode_direct=yes
11210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11211 hardcode_libdir_separator=:
11212 hardcode_shlibpath_var=no
11219 if test -f /usr/libexec/ld.so; then
11220 hardcode_direct=yes
11221 hardcode_shlibpath_var=no
11222 hardcode_direct_absolute=yes
11223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11225 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11227 export_dynamic_flag_spec='${wl}-E'
11230 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11232 hardcode_libdir_flag_spec='-R$libdir'
11235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11246 hardcode_libdir_flag_spec='-L$libdir'
11247 hardcode_minus_L=yes
11248 allow_undefined_flag=unsupported
11249 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11250 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11254 if test "$GCC" = yes; then
11255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11256 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11258 allow_undefined_flag=' -expect_unresolved \*'
11259 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11261 archive_cmds_need_lc='no'
11262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11263 hardcode_libdir_separator=:
11266 osf4* | osf5*) # as osf3* with the addition of -msym flag
11267 if test "$GCC" = yes; then
11268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11269 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11272 allow_undefined_flag=' -expect_unresolved \*'
11273 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11274 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11275 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11277 # Both c and cxx compiler support -rpath directly
11278 hardcode_libdir_flag_spec='-rpath $libdir'
11280 archive_cmds_need_lc='no'
11281 hardcode_libdir_separator=:
11285 no_undefined_flag=' -z defs'
11286 if test "$GCC" = yes; then
11288 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11290 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11292 case `$CC -V 2>&1` in
11295 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11301 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11307 hardcode_libdir_flag_spec='-R$libdir'
11308 hardcode_shlibpath_var=no
11310 solaris2.[0-5] | solaris2.[0-5].*) ;;
11312 # The compiler driver will combine and reorder linker options,
11313 # but understands `-z linker_flag'. GCC discards it without `$wl',
11314 # but is careful enough not to reorder.
11315 # Supported since Solaris 2.6 (maybe 2.5.1?)
11316 if test "$GCC" = yes; then
11317 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11319 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11323 link_all_deplibs=yes
11327 if test "x$host_vendor" = xsequent; then
11328 # Use $CC to link under sequent, because it throws in some extra .o
11329 # files that make .init and .fini sections work.
11330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11334 hardcode_libdir_flag_spec='-L$libdir'
11335 hardcode_direct=yes
11336 hardcode_minus_L=yes
11337 hardcode_shlibpath_var=no
11341 case $host_vendor in
11343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344 hardcode_direct=yes # is this really true???
11347 ## LD is ld it makes a PLAMLIB
11348 ## CC just makes a GrossModule.
11349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11350 reload_cmds='$CC -r -o $output$reload_objs'
11354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11358 runpath_var='LD_RUN_PATH'
11359 hardcode_shlibpath_var=no
11363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364 hardcode_shlibpath_var=no
11365 export_dynamic_flag_spec='-Bexport'
11369 if test -d /usr/nec; then
11370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11371 hardcode_shlibpath_var=no
11372 runpath_var=LD_RUN_PATH
11373 hardcode_runpath_var=yes
11378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11379 no_undefined_flag='${wl}-z,text'
11380 archive_cmds_need_lc=no
11381 hardcode_shlibpath_var=no
11382 runpath_var='LD_RUN_PATH'
11384 if test "$GCC" = yes; then
11385 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11386 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11388 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11389 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11393 sysv5* | sco3.2v5* | sco5v6*)
11394 # Note: We can NOT use -z defs as we might desire, because we do not
11395 # link with -lc, and that would cause any symbols used from libc to
11396 # always be unresolved, which means just about no library would
11397 # ever link correctly. If we're not using GNU ld we use -z text
11398 # though, which does catch some bad symbols but isn't as heavy-handed
11400 no_undefined_flag='${wl}-z,text'
11401 allow_undefined_flag='${wl}-z,nodefs'
11402 archive_cmds_need_lc=no
11403 hardcode_shlibpath_var=no
11404 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11405 hardcode_libdir_separator=':'
11406 link_all_deplibs=yes
11407 export_dynamic_flag_spec='${wl}-Bexport'
11408 runpath_var='LD_RUN_PATH'
11410 if test "$GCC" = yes; then
11411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11421 hardcode_libdir_flag_spec='-L$libdir'
11422 hardcode_shlibpath_var=no
11430 if test x$host_vendor = xsni; then
11432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11433 export_dynamic_flag_spec='${wl}-Blargedynsym'
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11440 $as_echo "$ld_shlibs" >&6; }
11441 test "$ld_shlibs" = no && can_build_shared=no
11443 with_gnu_ld=$with_gnu_ld
11460 # Do we need to explicitly link libc?
11462 case "x$archive_cmds_need_lc" in
11464 # Assume -lc should be added
11465 archive_cmds_need_lc=yes
11467 if test "$enable_shared" = yes && test "$GCC" = yes; then
11468 case $archive_cmds in
11470 # FIXME: we may have to deal with multi-command sequences.
11473 # Test whether the compiler implicitly links with -lc since on some
11474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11475 # to ld, don't add -lc before -lgcc.
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11477 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11478 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11479 $as_echo_n "(cached) " >&6
11482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11485 (eval $ac_compile) 2>&5
11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488 test $ac_status = 0; } 2>conftest.err; then
11491 libobjs=conftest.$ac_objext
11493 wl=$lt_prog_compiler_wl
11494 pic_flag=$lt_prog_compiler_pic
11500 lt_save_allow_undefined_flag=$allow_undefined_flag
11501 allow_undefined_flag=
11502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11503 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; }
11508 lt_cv_archive_cmds_need_lc=no
11510 lt_cv_archive_cmds_need_lc=yes
11512 allow_undefined_flag=$lt_save_allow_undefined_flag
11514 cat conftest.err 1>&5
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11520 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11521 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11687 if test "$GCC" = yes; then
11689 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11690 *) lt_awk_arg="/^libraries:/" ;;
11693 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11694 *) lt_sed_strip_eq="s,=/,/,g" ;;
11696 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11697 case $lt_search_path_spec in
11699 # if the path contains ";" then we assume it to be the separator
11700 # otherwise default to the standard path separator (i.e. ":") - it is
11701 # assumed that no part of a normal pathname contains ";" but that should
11702 # okay in the real world where ";" in dirpaths is itself problematic.
11703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11709 # Ok, now we have the path, separated by spaces, we can step through it
11710 # and add multilib dir if necessary.
11711 lt_tmp_lt_search_path_spec=
11712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11713 for lt_sys_path in $lt_search_path_spec; do
11714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11717 test -d "$lt_sys_path" && \
11718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11721 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11722 BEGIN {RS=" "; FS="/|\n";} {
11725 for (lt_i = NF; lt_i > 0; lt_i--) {
11726 if ($lt_i != "" && $lt_i != ".") {
11727 if ($lt_i == "..") {
11730 if (lt_count == 0) {
11731 lt_foo="/" $lt_i lt_foo;
11738 if (lt_foo != "") { lt_freq[lt_foo]++; }
11739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11741 # AWK program above erroneously prepends '/' to C:/dos/paths
11744 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11745 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11747 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11751 library_names_spec=
11752 libname_spec='lib$name'
11756 postuninstall_cmds=
11760 shlibpath_overrides_runpath=unknown
11762 dynamic_linker="$host_os ld.so"
11763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11764 need_lib_prefix=unknown
11765 hardcode_into_libs=no
11767 # when you set need_version to no, make sure it does not cause -set_version
11768 # flags to be left without arguments
11769 need_version=unknown
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11775 shlibpath_var=LIBPATH
11777 # AIX 3 has no versioning support, so we append a major version to the name.
11778 soname_spec='${libname}${release}${shared_ext}$major'
11785 hardcode_into_libs=yes
11786 if test "$host_cpu" = ia64; then
11787 # AIX 5 supports IA64
11788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11789 shlibpath_var=LD_LIBRARY_PATH
11791 # With GCC up to 2.95.x, collect2 would create an import file
11792 # for dependence libraries. The import file would start with
11793 # the line `#! .'. This would cause the generated library to
11794 # depend on `.', always an invalid library. This was fixed in
11795 # development snapshots of GCC prior to 3.0.
11797 aix4 | aix4.[01] | aix4.[01].*)
11798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11800 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11803 can_build_shared=no
11807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11808 # soname into executable. Probably we can add versioning support to
11809 # collect2, so additional links can be useful in future.
11810 if test "$aix_use_runtimelinking" = yes; then
11811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11812 # instead of lib<name>.a to let people know that these are not
11813 # typical AIX shared libraries.
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 # We preserve .a as extension for shared libraries through AIX4.2
11817 # and later when we are not doing run time linking.
11818 library_names_spec='${libname}${release}.a $libname.a'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11821 shlibpath_var=LIBPATH
11828 # Since July 2007 AmigaOS4 officially supports .so libraries.
11829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 library_names_spec='$libname.ixlibrary $libname.a'
11834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11835 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11841 library_names_spec='${libname}${shared_ext}'
11842 dynamic_linker="$host_os ld.so"
11843 shlibpath_var=LIBRARY_PATH
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 soname_spec='${libname}${release}${shared_ext}$major'
11851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11855 # the default ld.so.conf also contains /usr/contrib/lib and
11856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11857 # libtool to hard-code these into programs
11860 cygwin* | mingw* | pw32* | cegcc*)
11861 version_type=windows
11866 case $GCC,$cc_basename in
11869 library_names_spec='$libname.dll.a'
11870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11871 postinstall_cmds='base_file=`basename \${file}`~
11872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11873 dldir=$destdir/`dirname \$dlpath`~
11874 test -d \$dldir || mkdir -p \$dldir~
11875 $install_prog $dir/$dlname \$dldir/$dlname~
11876 chmod a+x \$dldir/$dlname~
11877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11881 dlpath=$dir/\$dldll~
11883 shlibpath_overrides_runpath=yes
11887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11893 # MinGW DLLs use traditional 'lib' prefix
11894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11897 # pw32 DLLs use 'pw' prefix rather than 'lib'
11898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11901 dynamic_linker='Win32 ld.exe'
11906 libname_spec='$name'
11907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11908 library_names_spec='${libname}.dll.lib'
11912 sys_lib_search_path_spec=
11915 for lt_path in $LIB
11918 # Let DOS variable expansion print the short 8.3 style file name.
11919 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11920 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11923 # Convert to MSYS style.
11924 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11927 # Convert to unix form, then to dos form, then back to unix form
11928 # but this time dos style (no spaces!) so that the unix form looks
11929 # like /cygdrive/c/PROGRA~1:/cygdr...
11930 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11931 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11932 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11935 sys_lib_search_path_spec="$LIB"
11936 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11937 # It is most probably a Windows format PATH.
11938 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11942 # FIXME: find the short name or the path components, as spaces are
11943 # common. (e.g. "Program Files" -> "PROGRA~1")
11947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11948 postinstall_cmds='base_file=`basename \${file}`~
11949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11950 dldir=$destdir/`dirname \$dlpath`~
11951 test -d \$dldir || mkdir -p \$dldir~
11952 $install_prog $dir/$dlname \$dldir/$dlname'
11953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11954 dlpath=$dir/\$dldll~
11956 shlibpath_overrides_runpath=yes
11957 dynamic_linker='Win32 link.exe'
11961 # Assume MSVC wrapper
11962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11963 dynamic_linker='Win32 ld.exe'
11966 # FIXME: first we should search . and the directory the executable is in
11970 darwin* | rhapsody*)
11971 dynamic_linker="$host_os dyld"
11972 version_type=darwin
11975 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11976 soname_spec='${libname}${release}${major}$shared_ext'
11977 shlibpath_overrides_runpath=yes
11978 shlibpath_var=DYLD_LIBRARY_PATH
11979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11981 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11990 soname_spec='${libname}${release}${shared_ext}$major'
11991 shlibpath_var=LD_LIBRARY_PATH
11998 freebsd* | dragonfly*)
11999 # DragonFly does not have aout. When/if they implement a new
12000 # versioning mechanism, adjust this.
12001 if test -x /usr/bin/objformat; then
12002 objformat=`/usr/bin/objformat`
12005 freebsd[123]*) objformat=aout ;;
12006 *) objformat=elf ;;
12009 version_type=freebsd-$objformat
12010 case $version_type in
12012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12017 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12021 shlibpath_var=LD_LIBRARY_PATH
12024 shlibpath_overrides_runpath=yes
12026 freebsd3.[01]* | freebsdelf3.[01]*)
12027 shlibpath_overrides_runpath=yes
12028 hardcode_into_libs=yes
12030 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12031 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12032 shlibpath_overrides_runpath=no
12033 hardcode_into_libs=yes
12035 *) # from 4.6 on, and DragonFly
12036 shlibpath_overrides_runpath=yes
12037 hardcode_into_libs=yes
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 hardcode_into_libs=yes
12056 dynamic_linker="$host_os runtime_loader"
12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12058 soname_spec='${libname}${release}${shared_ext}$major'
12059 shlibpath_var=LIBRARY_PATH
12060 shlibpath_overrides_runpath=yes
12061 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12062 hardcode_into_libs=yes
12065 hpux9* | hpux10* | hpux11*)
12066 # Give a soname corresponding to the major version so that dld.sl refuses to
12067 # link against other versions.
12074 hardcode_into_libs=yes
12075 dynamic_linker="$host_os dld.so"
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12080 if test "X$HPUX_IA64_MODE" = X32; then
12081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12089 hardcode_into_libs=yes
12090 dynamic_linker="$host_os dld.sl"
12091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094 soname_spec='${libname}${release}${shared_ext}$major'
12095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12100 dynamic_linker="$host_os dld.sl"
12101 shlibpath_var=SHLIB_PATH
12102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104 soname_spec='${libname}${release}${shared_ext}$major'
12107 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12108 postinstall_cmds='chmod 555 $lib'
12109 # or fails outright, so override atomically:
12110 install_override_mode=555
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12118 soname_spec='${libname}${release}${shared_ext}$major'
12119 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath=no
12122 hardcode_into_libs=yes
12125 irix5* | irix6* | nonstopux*)
12127 nonstopux*) version_type=nonstopux ;;
12129 if test "$lt_cv_prog_gnu_ld" = yes; then
12137 soname_spec='${libname}${release}${shared_ext}$major'
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12140 irix5* | nonstopux*)
12141 libsuff= shlibsuff=
12144 case $LD in # libtool.m4 will add one of these switches to LD
12145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12146 libsuff= shlibsuff= libmagic=32-bit;;
12147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12148 libsuff=32 shlibsuff=N32 libmagic=N32;;
12149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12151 *) libsuff= shlibsuff= libmagic=never-match;;
12155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12156 shlibpath_overrides_runpath=no
12157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12159 hardcode_into_libs=yes
12162 # No shared lib support for Linux oldld, aout, or coff.
12163 linux*oldld* | linux*aout* | linux*coff*)
12167 # This must be Linux ELF.
12168 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 soname_spec='${libname}${release}${shared_ext}$major'
12174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12175 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=no
12178 # Some binutils ld are patched to set DT_RUNPATH
12179 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12180 $as_echo_n "(cached) " >&6
12182 lt_cv_shlibpath_overrides_runpath=no
12183 save_LDFLAGS=$LDFLAGS
12184 save_libdir=$libdir
12185 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12186 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12198 if ac_fn_c_try_link "$LINENO"; then :
12199 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12200 lt_cv_shlibpath_overrides_runpath=yes
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LDFLAGS=$save_LDFLAGS
12206 libdir=$save_libdir
12210 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12212 # This implies no fast_install, which is unacceptable.
12213 # Some rework will be needed to allow for fast_install
12214 # before this can be enabled.
12215 hardcode_into_libs=yes
12217 # Append ld.so.conf contents to the search path
12218 if test -f /etc/ld.so.conf; then
12219 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12223 # We used to test for /lib/ld.so.1 and disable shared libraries on
12224 # powerpc, because MkLinux only supported shared libraries with the
12225 # GNU dynamic linker. Since this was broken with cross compilers,
12226 # most powerpc-linux boxes support dynamic linking these days and
12227 # people can always --disable-shared, the test was removed, and we
12228 # assume the GNU/Linux dynamic linker is in use.
12229 dynamic_linker='GNU/Linux ld.so'
12236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12239 dynamic_linker='NetBSD (a.out) ld.so'
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 dynamic_linker='NetBSD ld.elf_so'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=yes
12247 hardcode_into_libs=yes
12252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=yes
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262 soname_spec='${libname}${release}${shared_ext}$major'
12263 shlibpath_var=LD_LIBRARY_PATH
12264 shlibpath_overrides_runpath=no
12265 hardcode_into_libs=yes
12266 dynamic_linker='ldqnx.so'
12271 sys_lib_dlsearch_path_spec="/usr/lib"
12273 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12275 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12276 *) need_version=no ;;
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12283 openbsd2.[89] | openbsd2.[89].*)
12284 shlibpath_overrides_runpath=no
12287 shlibpath_overrides_runpath=yes
12291 shlibpath_overrides_runpath=yes
12296 libname_spec='$name'
12299 library_names_spec='$libname${shared_ext} $libname.a'
12300 dynamic_linker='OS/2 ld.exe'
12301 shlibpath_var=LIBPATH
12304 osf3* | osf4* | osf5*)
12308 soname_spec='${libname}${release}${shared_ext}$major'
12309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12312 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12324 soname_spec='${libname}${release}${shared_ext}$major'
12325 shlibpath_var=LD_LIBRARY_PATH
12326 shlibpath_overrides_runpath=yes
12327 hardcode_into_libs=yes
12328 # ldd complains unless libraries are executable
12329 postinstall_cmds='chmod +x $lib'
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 shlibpath_overrides_runpath=yes
12338 if test "$with_gnu_ld" = yes; then
12346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12347 soname_spec='${libname}${release}${shared_ext}$major'
12348 shlibpath_var=LD_LIBRARY_PATH
12349 case $host_vendor in
12351 shlibpath_overrides_runpath=no
12353 runpath_var=LD_RUN_PATH
12361 shlibpath_overrides_runpath=no
12362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12368 if test -d /usr/nec ;then
12370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12371 soname_spec='$libname${shared_ext}.$major'
12372 shlibpath_var=LD_LIBRARY_PATH
12376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12377 version_type=freebsd-elf
12380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12381 soname_spec='${libname}${release}${shared_ext}$major'
12382 shlibpath_var=LD_LIBRARY_PATH
12383 shlibpath_overrides_runpath=yes
12384 hardcode_into_libs=yes
12385 if test "$with_gnu_ld" = yes; then
12386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12395 sys_lib_dlsearch_path_spec='/usr/lib'
12399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath=no
12406 hardcode_into_libs=yes
12411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12412 soname_spec='${libname}${release}${shared_ext}$major'
12413 shlibpath_var=LD_LIBRARY_PATH
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12421 $as_echo "$dynamic_linker" >&6; }
12422 test "$dynamic_linker" = no && can_build_shared=no
12424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12425 if test "$GCC" = yes; then
12426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12429 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12430 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12433 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12528 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12530 if test -n "$hardcode_libdir_flag_spec" ||
12531 test -n "$runpath_var" ||
12532 test "X$hardcode_automatic" = "Xyes" ; then
12534 # We can hardcode non-existent directories.
12535 if test "$hardcode_direct" != no &&
12536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12537 # have to relink, otherwise we might link with an installed library
12538 # when we should be linking with a yet-to-be-installed one
12539 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12540 test "$hardcode_minus_L" != no; then
12541 # Linking always hardcodes the temporary library directory.
12542 hardcode_action=relink
12544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12545 hardcode_action=immediate
12548 # We cannot hardcode anything, or else we can only hardcode existing
12550 hardcode_action=unsupported
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12553 $as_echo "$hardcode_action" >&6; }
12555 if test "$hardcode_action" = relink ||
12556 test "$inherit_rpath" = yes; then
12557 # Fast installation is not supported
12558 enable_fast_install=no
12559 elif test "$shlibpath_overrides_runpath" = yes ||
12560 test "$enable_shared" = no; then
12561 # Fast installation is not necessary
12562 enable_fast_install=needless
12570 if test "x$enable_dlopen" != xyes; then
12571 enable_dlopen=unknown
12572 enable_dlopen_self=unknown
12573 enable_dlopen_self_static=unknown
12580 lt_cv_dlopen="load_add_on"
12582 lt_cv_dlopen_self=yes
12585 mingw* | pw32* | cegcc*)
12586 lt_cv_dlopen="LoadLibrary"
12591 lt_cv_dlopen="dlopen"
12596 # if libdl is installed we need to link against it
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12598 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12599 if ${ac_cv_lib_dl_dlopen+:} false; then :
12600 $as_echo_n "(cached) " >&6
12602 ac_check_lib_save_LIBS=$LIBS
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12622 if ac_fn_c_try_link "$LINENO"; then :
12623 ac_cv_lib_dl_dlopen=yes
12625 ac_cv_lib_dl_dlopen=no
12627 rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12633 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12637 lt_cv_dlopen="dyld"
12639 lt_cv_dlopen_self=yes
12646 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12647 if test "x$ac_cv_func_shl_load" = xyes; then :
12648 lt_cv_dlopen="shl_load"
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12651 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12652 if ${ac_cv_lib_dld_shl_load+:} false; then :
12653 $as_echo_n "(cached) " >&6
12655 ac_check_lib_save_LIBS=$LIBS
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12660 /* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply. */
12670 return shl_load ();
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 ac_cv_lib_dld_shl_load=yes
12678 ac_cv_lib_dld_shl_load=no
12680 rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12682 LIBS=$ac_check_lib_save_LIBS
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12685 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12686 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12687 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12689 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12690 if test "x$ac_cv_func_dlopen" = xyes; then :
12691 lt_cv_dlopen="dlopen"
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12695 if ${ac_cv_lib_dl_dlopen+:} false; then :
12696 $as_echo_n "(cached) " >&6
12698 ac_check_lib_save_LIBS=$LIBS
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12718 if ac_fn_c_try_link "$LINENO"; then :
12719 ac_cv_lib_dl_dlopen=yes
12721 ac_cv_lib_dl_dlopen=no
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12733 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12734 if ${ac_cv_lib_svld_dlopen+:} false; then :
12735 $as_echo_n "(cached) " >&6
12737 ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lsvld $LIBS"
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12742 /* Override any GCC internal prototype to avoid an error.
12743 Use char because int might match the return type of a GCC
12744 builtin and then its argument prototype would still apply. */
12757 if ac_fn_c_try_link "$LINENO"; then :
12758 ac_cv_lib_svld_dlopen=yes
12760 ac_cv_lib_svld_dlopen=no
12762 rm -f core conftest.err conftest.$ac_objext \
12763 conftest$ac_exeext conftest.$ac_ext
12764 LIBS=$ac_check_lib_save_LIBS
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12767 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12768 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12772 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12773 if ${ac_cv_lib_dld_dld_link+:} false; then :
12774 $as_echo_n "(cached) " >&6
12776 ac_check_lib_save_LIBS=$LIBS
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12781 /* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12791 return dld_link ();
12796 if ac_fn_c_try_link "$LINENO"; then :
12797 ac_cv_lib_dld_dld_link=yes
12799 ac_cv_lib_dld_dld_link=no
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12806 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12807 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12808 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12829 if test "x$lt_cv_dlopen" != xno; then
12835 case $lt_cv_dlopen in
12837 save_CPPFLAGS="$CPPFLAGS"
12838 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12840 save_LDFLAGS="$LDFLAGS"
12841 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12844 LIBS="$lt_cv_dlopen_libs $LIBS"
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12847 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12848 if ${lt_cv_dlopen_self+:} false; then :
12849 $as_echo_n "(cached) " >&6
12851 if test "$cross_compiling" = yes; then :
12852 lt_cv_dlopen_self=cross
12854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12855 lt_status=$lt_dlunknown
12856 cat > conftest.$ac_ext <<_LT_EOF
12857 #line $LINENO "configure"
12858 #include "confdefs.h"
12867 # define LT_DLGLOBAL RTLD_GLOBAL
12870 # define LT_DLGLOBAL DL_GLOBAL
12872 # define LT_DLGLOBAL 0
12876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12877 find out it does not work in some platform. */
12878 #ifndef LT_DLLAZY_OR_NOW
12880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12883 # define LT_DLLAZY_OR_NOW DL_LAZY
12886 # define LT_DLLAZY_OR_NOW RTLD_NOW
12889 # define LT_DLLAZY_OR_NOW DL_NOW
12891 # define LT_DLLAZY_OR_NOW 0
12898 /* When -fvisbility=hidden is used, assume the code has been annotated
12899 correspondingly for the symbols needed. */
12900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12901 int fnord () __attribute__((visibility("default")));
12904 int fnord () { return 42; }
12907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12908 int status = $lt_dlunknown;
12912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12916 else puts (dlerror ());
12918 /* dlclose (self); */
12926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12927 (eval $ac_link) 2>&5
12929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12931 (./conftest; exit; ) >&5 2>/dev/null
12933 case x$lt_status in
12934 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12935 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12936 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12939 # compilation failed
12940 lt_cv_dlopen_self=no
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12948 $as_echo "$lt_cv_dlopen_self" >&6; }
12950 if test "x$lt_cv_dlopen_self" = xyes; then
12951 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12953 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12954 if ${lt_cv_dlopen_self_static+:} false; then :
12955 $as_echo_n "(cached) " >&6
12957 if test "$cross_compiling" = yes; then :
12958 lt_cv_dlopen_self_static=cross
12960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12961 lt_status=$lt_dlunknown
12962 cat > conftest.$ac_ext <<_LT_EOF
12963 #line $LINENO "configure"
12964 #include "confdefs.h"
12973 # define LT_DLGLOBAL RTLD_GLOBAL
12976 # define LT_DLGLOBAL DL_GLOBAL
12978 # define LT_DLGLOBAL 0
12982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12983 find out it does not work in some platform. */
12984 #ifndef LT_DLLAZY_OR_NOW
12986 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12989 # define LT_DLLAZY_OR_NOW DL_LAZY
12992 # define LT_DLLAZY_OR_NOW RTLD_NOW
12995 # define LT_DLLAZY_OR_NOW DL_NOW
12997 # define LT_DLLAZY_OR_NOW 0
13004 /* When -fvisbility=hidden is used, assume the code has been annotated
13005 correspondingly for the symbols needed. */
13006 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13007 int fnord () __attribute__((visibility("default")));
13010 int fnord () { return 42; }
13013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13014 int status = $lt_dlunknown;
13018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13021 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13022 else puts (dlerror ());
13024 /* dlclose (self); */
13032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13033 (eval $ac_link) 2>&5
13035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13037 (./conftest; exit; ) >&5 2>/dev/null
13039 case x$lt_status in
13040 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13041 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13042 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13045 # compilation failed
13046 lt_cv_dlopen_self_static=no
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13054 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13057 CPPFLAGS="$save_CPPFLAGS"
13058 LDFLAGS="$save_LDFLAGS"
13063 case $lt_cv_dlopen_self in
13064 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13065 *) enable_dlopen_self=unknown ;;
13068 case $lt_cv_dlopen_self_static in
13069 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13070 *) enable_dlopen_self_static=unknown ;;
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13093 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13094 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13095 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13096 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098 $as_echo "yes" >&6; }
13100 # FIXME - insert some real tests, host_os isn't really good enough
13103 if test -n "$STRIP" ; then
13104 striplib="$STRIP -x"
13105 old_striplib="$STRIP -S"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107 $as_echo "yes" >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13131 # Report which library types will actually be built
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13135 $as_echo "$can_build_shared" >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13138 $as_echo_n "checking whether to build shared libraries... " >&6; }
13139 test "$can_build_shared" = "no" && enable_shared=no
13141 # On AIX, shared libraries and static libraries use the same namespace, and
13142 # are all built from PIC.
13145 test "$enable_shared" = yes && enable_static=no
13146 if test -n "$RANLIB"; then
13147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13148 postinstall_cmds='$RANLIB $lib'
13153 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13154 test "$enable_shared" = yes && enable_static=no
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13159 $as_echo "$enable_shared" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13162 $as_echo_n "checking whether to build static libraries... " >&6; }
13163 # Make sure either enable_shared or enable_static is yes.
13164 test "$enable_shared" = yes || enable_static=yes
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13166 $as_echo "$enable_static" >&6; }
13173 ac_cpp='$CPP $CPPFLAGS'
13174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13180 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13181 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13182 (test "X$CXX" != "Xg++"))) ; then
13184 ac_cpp='$CXXCPP $CPPFLAGS'
13185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13189 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13190 if test -z "$CXXCPP"; then
13191 if ${ac_cv_prog_CXXCPP+:} false; then :
13192 $as_echo_n "(cached) " >&6
13194 # Double quotes because CXXCPP needs to be expanded
13195 for CXXCPP in "$CXX -E" "/lib/cpp"
13197 ac_preproc_ok=false
13198 for ac_cxx_preproc_warn_flag in '' yes
13200 # Use a header file that comes with gcc, so configuring glibc
13201 # with a fresh cross-compiler works.
13202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13203 # <limits.h> exists even on freestanding compilers.
13204 # On the NeXT, cc -E runs the code through the compiler's parser,
13205 # not just through cpp. "Syntax error" is here to catch this case.
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 # include <limits.h>
13211 # include <assert.h>
13215 if ac_fn_cxx_try_cpp "$LINENO"; then :
13218 # Broken: fails on valid input.
13221 rm -f conftest.err conftest.i conftest.$ac_ext
13223 # OK, works on sane cases. Now check whether nonexistent headers
13224 # can be detected and how.
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227 #include <ac_nonexistent.h>
13229 if ac_fn_cxx_try_cpp "$LINENO"; then :
13230 # Broken: success on invalid input.
13233 # Passes both tests.
13237 rm -f conftest.err conftest.i conftest.$ac_ext
13240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13241 rm -f conftest.i conftest.err conftest.$ac_ext
13242 if $ac_preproc_ok; then :
13247 ac_cv_prog_CXXCPP=$CXXCPP
13250 CXXCPP=$ac_cv_prog_CXXCPP
13252 ac_cv_prog_CXXCPP=$CXXCPP
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13255 $as_echo "$CXXCPP" >&6; }
13256 ac_preproc_ok=false
13257 for ac_cxx_preproc_warn_flag in '' yes
13259 # Use a header file that comes with gcc, so configuring glibc
13260 # with a fresh cross-compiler works.
13261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13262 # <limits.h> exists even on freestanding compilers.
13263 # On the NeXT, cc -E runs the code through the compiler's parser,
13264 # not just through cpp. "Syntax error" is here to catch this case.
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13268 # include <limits.h>
13270 # include <assert.h>
13274 if ac_fn_cxx_try_cpp "$LINENO"; then :
13277 # Broken: fails on valid input.
13280 rm -f conftest.err conftest.i conftest.$ac_ext
13282 # OK, works on sane cases. Now check whether nonexistent headers
13283 # can be detected and how.
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286 #include <ac_nonexistent.h>
13288 if ac_fn_cxx_try_cpp "$LINENO"; then :
13289 # Broken: success on invalid input.
13292 # Passes both tests.
13296 rm -f conftest.err conftest.i conftest.$ac_ext
13299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13300 rm -f conftest.i conftest.err conftest.$ac_ext
13301 if $ac_preproc_ok; then :
13304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13306 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13307 See \`config.log' for more details" "$LINENO" 5; }
13311 ac_cpp='$CPP $CPPFLAGS'
13312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317 _lt_caught_CXX_error=yes
13321 ac_cpp='$CXXCPP $CPPFLAGS'
13322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13326 archive_cmds_need_lc_CXX=no
13327 allow_undefined_flag_CXX=
13328 always_export_symbols_CXX=no
13329 archive_expsym_cmds_CXX=
13330 compiler_needs_object_CXX=no
13331 export_dynamic_flag_spec_CXX=
13332 hardcode_direct_CXX=no
13333 hardcode_direct_absolute_CXX=no
13334 hardcode_libdir_flag_spec_CXX=
13335 hardcode_libdir_flag_spec_ld_CXX=
13336 hardcode_libdir_separator_CXX=
13337 hardcode_minus_L_CXX=no
13338 hardcode_shlibpath_var_CXX=unsupported
13339 hardcode_automatic_CXX=no
13340 inherit_rpath_CXX=no
13342 module_expsym_cmds_CXX=
13343 link_all_deplibs_CXX=unknown
13344 old_archive_cmds_CXX=$old_archive_cmds
13345 reload_flag_CXX=$reload_flag
13346 reload_cmds_CXX=$reload_cmds
13347 no_undefined_flag_CXX=
13348 whole_archive_flag_spec_CXX=
13349 enable_shared_with_static_runtimes_CXX=no
13351 # Source file extension for C++ test sources.
13354 # Object file extension for compiled C++ test sources.
13358 # No sense in running all these tests if we already determined that
13359 # the CXX compiler isn't working. Some variables (like enable_shared)
13360 # are currently assumed to apply to all compilers on this platform,
13361 # and will be corrupted by setting them based on a non-working compiler.
13362 if test "$_lt_caught_CXX_error" != yes; then
13363 # Code to be used in simple compile tests
13364 lt_simple_compile_test_code="int some_variable = 0;"
13366 # Code to be used in simple link tests
13367 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13369 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13376 # If no C compiler was specified, use CC.
13379 # If no C compiler flags were specified, use CFLAGS.
13380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13382 # Allow CC to be a program name with arguments.
13386 # save warnings/boilerplate of simple test code
13387 ac_outfile=conftest.$ac_objext
13388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13390 _lt_compiler_boilerplate=`cat conftest.err`
13393 ac_outfile=conftest.$ac_objext
13394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13396 _lt_linker_boilerplate=`cat conftest.err`
13400 # Allow CC to be a program name with arguments.
13402 lt_save_CFLAGS=$CFLAGS
13406 lt_save_with_gnu_ld=$with_gnu_ld
13407 lt_save_path_LD=$lt_cv_path_LD
13408 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13409 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13411 $as_unset lt_cv_prog_gnu_ld
13413 if test -n "${lt_cv_path_LDCXX+set}"; then
13414 lt_cv_path_LD=$lt_cv_path_LDCXX
13416 $as_unset lt_cv_path_LD
13418 test -z "${LDCXX+set}" || LD=$LDCXX
13423 for cc_temp in $compiler""; do
13425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13431 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13434 if test -n "$compiler"; then
13435 # We don't want -fno-exception when compiling C++ code, so set the
13436 # no_builtin_flag separately
13437 if test "$GXX" = yes; then
13438 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13440 lt_prog_compiler_no_builtin_flag_CXX=
13443 if test "$GXX" = yes; then
13444 # Set up default GNU C++ configuration
13448 # Check whether --with-gnu-ld was given.
13449 if test "${with_gnu_ld+set}" = set; then :
13450 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13456 if test "$GCC" = yes; then
13457 # Check if gcc -print-prog-name=ld gives a path.
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13459 $as_echo_n "checking for ld used by $CC... " >&6; }
13462 # gcc leaves a trailing carriage return which upsets mingw
13463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13468 # Accept absolute paths.
13470 re_direlt='/[^/][^/]*/\.\./'
13471 # Canonicalize the pathname of ld
13472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13476 test -z "$LD" && LD="$ac_prog"
13479 # If it fails, then pretend we aren't using GCC.
13483 # If it is relative, then search for the first ld in PATH.
13484 with_gnu_ld=unknown
13487 elif test "$with_gnu_ld" = yes; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13489 $as_echo_n "checking for GNU ld... " >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13492 $as_echo_n "checking for non-GNU ld... " >&6; }
13494 if ${lt_cv_path_LD+:} false; then :
13495 $as_echo_n "(cached) " >&6
13497 if test -z "$LD"; then
13498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13499 for ac_dir in $PATH; do
13501 test -z "$ac_dir" && ac_dir=.
13502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13503 lt_cv_path_LD="$ac_dir/$ac_prog"
13504 # Check to see if the program is GNU ld. I'd rather use --version,
13505 # but apparently some variants of GNU ld only accept -v.
13506 # Break only if it was the GNU/non-GNU ld that we prefer.
13507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13508 *GNU* | *'with BFD'*)
13509 test "$with_gnu_ld" != no && break
13512 test "$with_gnu_ld" != yes && break
13519 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13523 LD="$lt_cv_path_LD"
13524 if test -n "$LD"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13526 $as_echo "$LD" >&6; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13531 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13533 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13534 if ${lt_cv_prog_gnu_ld+:} false; then :
13535 $as_echo_n "(cached) " >&6
13537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13538 case `$LD -v 2>&1 </dev/null` in
13539 *GNU* | *'with BFD'*)
13540 lt_cv_prog_gnu_ld=yes
13543 lt_cv_prog_gnu_ld=no
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13548 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13549 with_gnu_ld=$lt_cv_prog_gnu_ld
13557 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13558 # archiving commands below assume that GNU ld is being used.
13559 if test "$with_gnu_ld" = yes; then
13560 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13564 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566 # If archive_cmds runs LD, not CC, wlarc should be empty
13567 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13568 # investigate it a little bit more. (MM)
13571 # ancient GNU ld didn't support --whole-archive et. al.
13572 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13573 $GREP 'no-whole-archive' > /dev/null; then
13574 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13576 whole_archive_flag_spec_CXX=
13582 # A generic and very simple default shared library creation
13583 # command for GNU C++ for the case where it uses the native
13584 # linker, instead of GNU ld. If possible, this setting should
13585 # overridden to take advantage of the native linker features on
13586 # the platform it is being used on.
13587 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13590 # Commands to make compiler produce verbose output that lists
13591 # what "hidden" libraries, object files and flags are used when
13592 # linking a shared library.
13593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13601 # PORTME: fill in a description of your system's C++ link characteristics
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13607 # FIXME: insert proper C++ library support
13611 if test "$host_cpu" = ia64; then
13612 # On IA64, the linker does run time linking by default, so we don't
13613 # have to do anything special.
13614 aix_use_runtimelinking=no
13615 exp_sym_flag='-Bexport'
13618 aix_use_runtimelinking=no
13620 # Test if we are trying to use run time linking or normal
13621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13622 # need to do runtime linking.
13623 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13624 for ld_flag in $LDFLAGS; do
13627 aix_use_runtimelinking=yes
13635 exp_sym_flag='-bexport'
13636 no_entry_flag='-bnoentry'
13639 # When large executables or shared objects are built, AIX ld can
13640 # have problems creating the table of contents. If linking a library
13641 # or program results in "error TOC overflow" add -mminimal-toc to
13642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13645 archive_cmds_CXX=''
13646 hardcode_direct_CXX=yes
13647 hardcode_direct_absolute_CXX=yes
13648 hardcode_libdir_separator_CXX=':'
13649 link_all_deplibs_CXX=yes
13650 file_list_spec_CXX='${wl}-f,'
13652 if test "$GXX" = yes; then
13653 case $host_os in aix4.[012]|aix4.[012].*)
13654 # We only want to do this on AIX 4.2 and lower, the check
13655 # below for broken collect2 doesn't work under 4.3+
13656 collect2name=`${CC} -print-prog-name=collect2`
13657 if test -f "$collect2name" &&
13658 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13660 # We have reworked collect2
13663 # We have old collect2
13664 hardcode_direct_CXX=unsupported
13665 # It fails to find uninstalled libraries when the uninstalled
13666 # path is not listed in the libpath. Setting hardcode_minus_L
13667 # to unsupported forces relinking
13668 hardcode_minus_L_CXX=yes
13669 hardcode_libdir_flag_spec_CXX='-L$libdir'
13670 hardcode_libdir_separator_CXX=
13673 shared_flag='-shared'
13674 if test "$aix_use_runtimelinking" = yes; then
13675 shared_flag="$shared_flag "'${wl}-G'
13679 if test "$host_cpu" = ia64; then
13680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13681 # chokes on -Wl,-G. The following line is correct:
13684 if test "$aix_use_runtimelinking" = yes; then
13685 shared_flag='${wl}-G'
13687 shared_flag='${wl}-bM:SRE'
13692 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13693 # It seems that -bexpall does not export symbols beginning with
13694 # underscore (_), so it is better to generate a list of symbols to
13696 always_export_symbols_CXX=yes
13697 if test "$aix_use_runtimelinking" = yes; then
13698 # Warning - without using the other runtime loading flags (-brtl),
13699 # -berok will link without error, but may produce a broken library.
13700 allow_undefined_flag_CXX='-berok'
13701 # Determine the default libpath from the value encoded in an empty
13703 if test "${lt_cv_aix_libpath+set}" = set; then
13704 aix_libpath=$lt_cv_aix_libpath
13706 if ${lt_cv_aix_libpath__CXX+:} false; then :
13707 $as_echo_n "(cached) " >&6
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13720 if ac_fn_cxx_try_link "$LINENO"; then :
13722 lt_aix_libpath_sed='
13723 /Import File Strings/,/^$/ {
13725 s/^0 *\([^ ]*\) *$/\1/
13729 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13730 # Check for a 64-bit object if we didn't find anything.
13731 if test -z "$lt_cv_aix_libpath__CXX"; then
13732 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13735 rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13737 if test -z "$lt_cv_aix_libpath__CXX"; then
13738 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13743 aix_libpath=$lt_cv_aix_libpath__CXX
13746 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13748 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13750 if test "$host_cpu" = ia64; then
13751 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13752 allow_undefined_flag_CXX="-z nodefs"
13753 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13755 # Determine the default libpath from the value encoded in an
13756 # empty executable.
13757 if test "${lt_cv_aix_libpath+set}" = set; then
13758 aix_libpath=$lt_cv_aix_libpath
13760 if ${lt_cv_aix_libpath__CXX+:} false; then :
13761 $as_echo_n "(cached) " >&6
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13774 if ac_fn_cxx_try_link "$LINENO"; then :
13776 lt_aix_libpath_sed='
13777 /Import File Strings/,/^$/ {
13779 s/^0 *\([^ ]*\) *$/\1/
13783 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13784 # Check for a 64-bit object if we didn't find anything.
13785 if test -z "$lt_cv_aix_libpath__CXX"; then
13786 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
13791 if test -z "$lt_cv_aix_libpath__CXX"; then
13792 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13797 aix_libpath=$lt_cv_aix_libpath__CXX
13800 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13801 # Warning - without using the other run time loading flags,
13802 # -berok will link without error, but may produce a broken library.
13803 no_undefined_flag_CXX=' ${wl}-bernotok'
13804 allow_undefined_flag_CXX=' ${wl}-berok'
13805 if test "$with_gnu_ld" = yes; then
13806 # We only use this code for GNU lds that support --whole-archive.
13807 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13809 # Exported symbols can be pulled into shared objects from archives
13810 whole_archive_flag_spec_CXX='$convenience'
13812 archive_cmds_need_lc_CXX=yes
13813 # This is similar to how AIX traditionally builds its shared
13815 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13821 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13822 allow_undefined_flag_CXX=unsupported
13823 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13824 # support --undefined. This deserves some investigation. FIXME
13825 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832 case $cc_basename in
13834 # FIXME: insert proper C++ library support
13840 cygwin* | mingw* | pw32* | cegcc*)
13841 case $GXX,$cc_basename in
13844 # hardcode_libdir_flag_spec is actually meaningless, as there is
13845 # no search path for DLLs.
13846 hardcode_libdir_flag_spec_CXX=' '
13847 allow_undefined_flag_CXX=unsupported
13848 always_export_symbols_CXX=yes
13849 file_list_spec_CXX='@'
13850 # Tell ltmain to make .lib files, not .a files.
13852 # Tell ltmain to make .dll files, not .so files.
13854 # FIXME: Setting linknames here is a bad hack.
13855 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13856 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13857 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13859 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13861 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13863 # The linker will not automatically build a static lib if we build a DLL.
13864 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13865 enable_shared_with_static_runtimes_CXX=yes
13867 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13868 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13869 lt_tool_outputfile="@TOOL_OUTPUT@"~
13870 case $lt_outputfile in
13873 lt_outputfile="$lt_outputfile.exe"
13874 lt_tool_outputfile="$lt_tool_outputfile.exe"
13877 func_to_tool_file "$lt_outputfile"~
13878 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13879 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13880 $RM "$lt_outputfile.manifest";
13885 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13886 # as there is no search path for DLLs.
13887 hardcode_libdir_flag_spec_CXX='-L$libdir'
13888 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13889 allow_undefined_flag_CXX=unsupported
13890 always_export_symbols_CXX=no
13891 enable_shared_with_static_runtimes_CXX=yes
13893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13894 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13895 # If the export-symbols file already is a .def file (1st line
13896 # is EXPORTS), use it as is; otherwise, prepend...
13897 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13898 cp $export_symbols $output_objdir/$soname.def;
13900 echo EXPORTS > $output_objdir/$soname.def;
13901 cat $export_symbols >> $output_objdir/$soname.def;
13903 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13910 darwin* | rhapsody*)
13913 archive_cmds_need_lc_CXX=no
13914 hardcode_direct_CXX=no
13915 hardcode_automatic_CXX=yes
13916 hardcode_shlibpath_var_CXX=unsupported
13917 if test "$lt_cv_ld_force_load" = "yes"; then
13918 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13920 whole_archive_flag_spec_CXX=''
13922 link_all_deplibs_CXX=yes
13923 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13924 case $cc_basename in
13925 ifort*) _lt_dar_can_shared=yes ;;
13926 *) _lt_dar_can_shared=$GCC ;;
13928 if test "$_lt_dar_can_shared" = "yes"; then
13929 output_verbose_link_cmd=func_echo_all
13930 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13931 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13932 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13933 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13934 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13935 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13936 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13946 case $cc_basename in
13948 # FIXME: insert proper C++ library support
13952 # Green Hills C++ Compiler
13953 # FIXME: insert proper C++ library support
13957 # FIXME: insert proper C++ library support
13964 # C++ shared libraries reported to be fairly broken before
13970 archive_cmds_need_lc_CXX=no
13973 freebsd* | dragonfly*)
13974 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13983 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13984 link_all_deplibs_CXX=yes
13988 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13989 hardcode_libdir_separator_CXX=:
13990 export_dynamic_flag_spec_CXX='${wl}-E'
13991 hardcode_direct_CXX=yes
13992 hardcode_minus_L_CXX=yes # Not in the search PATH,
13993 # but as the default
13994 # location of the library.
13996 case $cc_basename in
13998 # FIXME: insert proper C++ library support
14002 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14003 # Commands to make compiler produce verbose output that lists
14004 # what "hidden" libraries, object files and flags are used when
14005 # linking a shared library.
14007 # There doesn't appear to be a way to prevent this compiler from
14008 # explicitly linking system object files so we need to strip them
14009 # from the output so that they don't get included in the library
14011 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14014 if test "$GXX" = yes; then
14015 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14017 # FIXME: insert proper C++ library support
14025 if test $with_gnu_ld = no; then
14026 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14027 hardcode_libdir_separator_CXX=:
14033 export_dynamic_flag_spec_CXX='${wl}-E'
14039 hardcode_direct_CXX=no
14040 hardcode_shlibpath_var_CXX=no
14043 hardcode_direct_CXX=yes
14044 hardcode_direct_absolute_CXX=yes
14045 hardcode_minus_L_CXX=yes # Not in the search PATH,
14046 # but as the default
14047 # location of the library.
14051 case $cc_basename in
14053 # FIXME: insert proper C++ library support
14059 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14065 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14068 # Commands to make compiler produce verbose output that lists
14069 # what "hidden" libraries, object files and flags are used when
14070 # linking a shared library.
14072 # There doesn't appear to be a way to prevent this compiler from
14073 # explicitly linking system object files so we need to strip them
14074 # from the output so that they don't get included in the library
14076 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14079 if test "$GXX" = yes; then
14080 if test $with_gnu_ld = no; then
14083 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14086 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14089 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14094 # FIXME: insert proper C++ library support
14102 hardcode_direct_CXX=no
14103 hardcode_shlibpath_var_CXX=no
14104 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14105 export_dynamic_flag_spec_CXX='${wl}-E'
14106 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14107 # Instead, shared libraries are loaded at an image base (0x10000000 by
14108 # default) and relocated if they conflict, which is a slow very memory
14109 # consuming and fragmenting process. To avoid this, we pick a random,
14110 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14111 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14112 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14113 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14116 case $cc_basename in
14119 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14121 # Archives containing C++ object files must be created using
14122 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14123 # necessary to make sure instantiated templates are included
14125 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14128 if test "$GXX" = yes; then
14129 if test "$with_gnu_ld" = no; then
14130 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14132 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14135 link_all_deplibs_CXX=yes
14138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14139 hardcode_libdir_separator_CXX=:
14140 inherit_rpath_CXX=yes
14143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14144 case $cc_basename in
14146 # Kuck and Associates, Inc. (KAI) C++ Compiler
14148 # KCC will only create a shared library if the output file
14149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14150 # to its proper name (with version) after linking.
14151 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14152 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14153 # Commands to make compiler produce verbose output that lists
14154 # what "hidden" libraries, object files and flags are used when
14155 # linking a shared library.
14157 # There doesn't appear to be a way to prevent this compiler from
14158 # explicitly linking system object files so we need to strip them
14159 # from the output so that they don't get included in the library
14161 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14166 # Archives containing C++ object files must be created using
14167 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14168 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14173 # version 8.0 and above of icpc choke on multiply defined symbols
14174 # if we add $predep_objects and $postdep_objects, however 7.1 and
14175 # earlier do not add the objects themselves.
14176 case `$CC -V 2>&1` in
14178 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14179 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14181 *) # Version 8.0 or newer
14184 ia64*) tmp_idyn=' -i_dynamic';;
14186 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14187 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14190 archive_cmds_need_lc_CXX=no
14191 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14193 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14196 # Portland Group C++ compiler
14198 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14199 prelink_cmds_CXX='tpldir=Template.dir~
14201 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14202 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14203 old_archive_cmds_CXX='tpldir=Template.dir~
14205 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14206 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14208 archive_cmds_CXX='tpldir=Template.dir~
14210 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14211 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14212 archive_expsym_cmds_CXX='tpldir=Template.dir~
14214 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14215 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14217 *) # Version 6 and above use weak symbols
14218 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14219 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14223 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14225 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14232 runpath_var=LD_RUN_PATH
14233 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14234 hardcode_libdir_separator_CXX=:
14236 # Commands to make compiler produce verbose output that lists
14237 # what "hidden" libraries, object files and flags are used when
14238 # linking a shared library.
14240 # There doesn't appear to be a way to prevent this compiler from
14241 # explicitly linking system object files so we need to strip them
14242 # from the output so that they don't get included in the library
14244 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14246 xl* | mpixl* | bgxl*)
14247 # IBM XL 8.0 on PPC, with GNU ld
14248 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14249 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14250 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14251 if test "x$supports_anon_versioning" = xyes; then
14252 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14254 echo "local: *; };" >> $output_objdir/$libname.ver~
14255 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14259 case `$CC -V 2>&1 | sed 5q` in
14262 no_undefined_flag_CXX=' -zdefs'
14263 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14264 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14265 hardcode_libdir_flag_spec_CXX='-R$libdir'
14266 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14267 compiler_needs_object_CXX=yes
14269 # Not sure whether something based on
14270 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14272 output_verbose_link_cmd='func_echo_all'
14274 # Archives containing C++ object files must be created using
14275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14276 # necessary to make sure instantiated templates are included
14278 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14286 # FIXME: insert proper C++ library support
14291 # FIXME: insert proper C++ library support
14296 case $cc_basename in
14298 # FIXME: insert proper C++ library support
14302 # FIXME: insert proper C++ library support
14309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14310 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14312 hardcode_libdir_flag_spec_CXX='-R$libdir'
14313 hardcode_direct_CXX=yes
14314 hardcode_shlibpath_var_CXX=no
14316 # Workaround some broken pre-1.5 toolchains
14317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14325 # C++ shared libraries are fairly broken
14330 if test -f /usr/libexec/ld.so; then
14331 hardcode_direct_CXX=yes
14332 hardcode_shlibpath_var_CXX=no
14333 hardcode_direct_absolute_CXX=yes
14334 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14337 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14338 export_dynamic_flag_spec_CXX='${wl}-E'
14339 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14341 output_verbose_link_cmd=func_echo_all
14347 osf3* | osf4* | osf5*)
14348 case $cc_basename in
14350 # Kuck and Associates, Inc. (KAI) C++ Compiler
14352 # KCC will only create a shared library if the output file
14353 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14354 # to its proper name (with version) after linking.
14355 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14358 hardcode_libdir_separator_CXX=:
14360 # Archives containing C++ object files must be created using
14361 # the KAI C++ compiler.
14363 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14364 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14368 # Rational C++ 2.4.1
14369 # FIXME: insert proper C++ library support
14375 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14376 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14377 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14380 allow_undefined_flag_CXX=' -expect_unresolved \*'
14381 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14382 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14383 echo "-hidden">> $lib.exp~
14384 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14386 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14390 hardcode_libdir_separator_CXX=:
14392 # Commands to make compiler produce verbose output that lists
14393 # what "hidden" libraries, object files and flags are used when
14394 # linking a shared library.
14396 # There doesn't appear to be a way to prevent this compiler from
14397 # explicitly linking system object files so we need to strip them
14398 # from the output so that they don't get included in the library
14400 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14403 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14404 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14407 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14410 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14415 hardcode_libdir_separator_CXX=:
14417 # Commands to make compiler produce verbose output that lists
14418 # what "hidden" libraries, object files and flags are used when
14419 # linking a shared library.
14420 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14423 # FIXME: insert proper C++ library support
14431 # FIXME: insert proper C++ library support
14436 case $cc_basename in
14439 # FIXME: insert proper C++ library support
14444 # FIXME: insert proper C++ library support
14448 # FIXME: insert proper C++ library support
14455 case $cc_basename in
14457 # Sun C++ 4.2, 5.x and Centerline C++
14458 archive_cmds_need_lc_CXX=yes
14459 no_undefined_flag_CXX=' -zdefs'
14460 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14461 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14462 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14464 hardcode_libdir_flag_spec_CXX='-R$libdir'
14465 hardcode_shlibpath_var_CXX=no
14467 solaris2.[0-5] | solaris2.[0-5].*) ;;
14469 # The compiler driver will combine and reorder linker options,
14470 # but understands `-z linker_flag'.
14471 # Supported since Solaris 2.6 (maybe 2.5.1?)
14472 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14475 link_all_deplibs_CXX=yes
14477 output_verbose_link_cmd='func_echo_all'
14479 # Archives containing C++ object files must be created using
14480 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14481 # necessary to make sure instantiated templates are included
14483 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14486 # Green Hills C++ Compiler
14487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14489 # The C++ compiler must be used to create the archive.
14490 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14493 # GNU C++ compiler with Solaris linker
14494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14495 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14496 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14497 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14498 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14499 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14501 # Commands to make compiler produce verbose output that lists
14502 # what "hidden" libraries, object files and flags are used when
14503 # linking a shared library.
14504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14506 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14508 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14509 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14510 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14512 # Commands to make compiler produce verbose output that lists
14513 # what "hidden" libraries, object files and flags are used when
14514 # linking a shared library.
14515 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14518 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14520 solaris2.[0-5] | solaris2.[0-5].*) ;;
14522 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14530 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14531 no_undefined_flag_CXX='${wl}-z,text'
14532 archive_cmds_need_lc_CXX=no
14533 hardcode_shlibpath_var_CXX=no
14534 runpath_var='LD_RUN_PATH'
14536 case $cc_basename in
14538 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14539 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548 sysv5* | sco3.2v5* | sco5v6*)
14549 # Note: We can NOT use -z defs as we might desire, because we do not
14550 # link with -lc, and that would cause any symbols used from libc to
14551 # always be unresolved, which means just about no library would
14552 # ever link correctly. If we're not using GNU ld we use -z text
14553 # though, which does catch some bad symbols but isn't as heavy-handed
14555 no_undefined_flag_CXX='${wl}-z,text'
14556 allow_undefined_flag_CXX='${wl}-z,nodefs'
14557 archive_cmds_need_lc_CXX=no
14558 hardcode_shlibpath_var_CXX=no
14559 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14560 hardcode_libdir_separator_CXX=':'
14561 link_all_deplibs_CXX=yes
14562 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14563 runpath_var='LD_RUN_PATH'
14565 case $cc_basename in
14567 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14569 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14570 '"$old_archive_cmds_CXX"
14571 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14572 '"$reload_cmds_CXX"
14575 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14576 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 case $cc_basename in
14584 # NonStop-UX NCC 3.20
14585 # FIXME: insert proper C++ library support
14589 # FIXME: insert proper C++ library support
14596 # FIXME: insert proper C++ library support
14601 # FIXME: insert proper C++ library support
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14607 $as_echo "$ld_shlibs_CXX" >&6; }
14608 test "$ld_shlibs_CXX" = no && can_build_shared=no
14614 ## There is no encapsulation within the following macros, do not change
14615 ## the running order or otherwise move them around unless you know exactly
14616 ## what you are doing...
14617 # Dependencies to place before and after the object being linked:
14618 predep_objects_CXX=
14619 postdep_objects_CXX=
14622 compiler_lib_search_path_CXX=
14624 cat > conftest.$ac_ext <<_LT_EOF
14628 Foo (void) { a = 0; }
14635 _lt_libdeps_save_CFLAGS=$CFLAGS
14636 case "$CC $CFLAGS " in #(
14637 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14638 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14642 (eval $ac_compile) 2>&5
14644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645 test $ac_status = 0; }; then
14646 # Parse the compiler output and extract the necessary
14647 # objects, libraries and library flags.
14649 # Sentinel used to keep track of whether or not we are before
14650 # the conftest object file.
14651 pre_test_object_deps_done=no
14653 for p in `eval "$output_verbose_link_cmd"`; do
14654 case ${prev}${p} in
14657 # Some compilers place space between "-{L,R}" and the path.
14658 # Remove the space.
14659 if test $p = "-L" ||
14660 test $p = "-R"; then
14665 # Expand the sysroot to ease extracting the directories later.
14666 if test -z "$prev"; then
14668 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14669 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14670 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14674 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14676 if test "$pre_test_object_deps_done" = no; then
14679 # Internal compiler library paths should come after those
14680 # provided the user. The postdeps already come after the
14681 # user supplied libs so there is no need to process them.
14682 if test -z "$compiler_lib_search_path_CXX"; then
14683 compiler_lib_search_path_CXX="${prev}${p}"
14685 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14688 # The "-l" case would never come before the object being
14689 # linked, so don't bother handling this case.
14692 if test -z "$postdeps_CXX"; then
14693 postdeps_CXX="${prev}${p}"
14695 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14701 *.lto.$objext) ;; # Ignore GCC LTO objects
14703 # This assumes that the test object file only shows up
14704 # once in the compiler output.
14705 if test "$p" = "conftest.$objext"; then
14706 pre_test_object_deps_done=yes
14710 if test "$pre_test_object_deps_done" = no; then
14711 if test -z "$predep_objects_CXX"; then
14712 predep_objects_CXX="$p"
14714 predep_objects_CXX="$predep_objects_CXX $p"
14717 if test -z "$postdep_objects_CXX"; then
14718 postdep_objects_CXX="$p"
14720 postdep_objects_CXX="$postdep_objects_CXX $p"
14725 *) ;; # Ignore the rest.
14733 echo "libtool.m4: error: problem compiling CXX test program"
14736 $RM -f confest.$objext
14737 CFLAGS=$_lt_libdeps_save_CFLAGS
14739 # PORTME: override above test on systems where it is broken
14742 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14743 # hack all around it, let's just trust "g++" to DTRT.
14744 predep_objects_CXX=
14745 postdep_objects_CXX=
14750 case `$CC -V 2>&1 | sed 5q` in
14754 # The more standards-conforming stlport4 library is
14755 # incompatible with the Cstd library. Avoid specifying
14756 # it if it's in CXXFLAGS. Ignore libCrun as
14757 # -library=stlport4 depends on it.
14758 case " $CXX $CXXFLAGS " in
14759 *" -library=stlport4 "*)
14760 solaris_use_stlport4=yes
14764 if test "$solaris_use_stlport4" != yes; then
14765 postdeps_CXX='-library=Cstd -library=Crun'
14772 case $cc_basename in
14774 # The more standards-conforming stlport4 library is
14775 # incompatible with the Cstd library. Avoid specifying
14776 # it if it's in CXXFLAGS. Ignore libCrun as
14777 # -library=stlport4 depends on it.
14778 case " $CXX $CXXFLAGS " in
14779 *" -library=stlport4 "*)
14780 solaris_use_stlport4=yes
14784 # Adding this requires a known-good setup of shared libraries for
14785 # Sun compiler versions before 5.6, else PIC objects from an old
14786 # archive will be linked into the output, leading to subtle bugs.
14787 if test "$solaris_use_stlport4" != yes; then
14788 postdeps_CXX='-library=Cstd -library=Crun'
14796 case " $postdeps_CXX " in
14797 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14799 compiler_lib_search_dirs_CXX=
14800 if test -n "${compiler_lib_search_path_CXX}"; then
14801 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14834 lt_prog_compiler_wl_CXX=
14835 lt_prog_compiler_pic_CXX=
14836 lt_prog_compiler_static_CXX=
14839 # C++ specific cases for pic, static, wl, etc.
14840 if test "$GXX" = yes; then
14841 lt_prog_compiler_wl_CXX='-Wl,'
14842 lt_prog_compiler_static_CXX='-static'
14846 # All AIX code is PIC.
14847 if test "$host_cpu" = ia64; then
14848 # AIX 5 now supports IA64 processor
14849 lt_prog_compiler_static_CXX='-Bstatic'
14856 # see comment about AmigaOS4 .so support
14857 lt_prog_compiler_pic_CXX='-fPIC'
14860 # FIXME: we need at least 68020 code to build shared libraries, but
14861 # adding the `-m68020' flag to GCC prevents building anything better,
14863 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14868 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14869 # PIC is the default for these OSes.
14871 mingw* | cygwin* | os2* | pw32* | cegcc*)
14872 # This hack is so that the source file can tell whether it is being
14873 # built for inclusion in a dll (and should export symbols for example).
14874 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14875 # (--disable-auto-import) libraries
14876 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14878 darwin* | rhapsody*)
14879 # PIC is the default on this platform
14880 # Common symbols not allowed in MH_DYLIB files
14881 lt_prog_compiler_pic_CXX='-fno-common'
14884 # DJGPP does not support shared libraries at all
14885 lt_prog_compiler_pic_CXX=
14888 # PIC is the default for Haiku.
14889 # The "-static" flag exists, but is broken.
14890 lt_prog_compiler_static_CXX=
14893 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14894 # Instead, we relocate shared libraries at runtime.
14897 if test -d /usr/nec; then
14898 lt_prog_compiler_pic_CXX=-Kconform_pic
14902 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14903 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14904 # sets the default TLS model and affects inlining.
14909 lt_prog_compiler_pic_CXX='-fPIC'
14914 # QNX uses GNU C++, but need to define -shared option too, otherwise
14915 # it will coredump.
14916 lt_prog_compiler_pic_CXX='-fPIC -shared'
14919 lt_prog_compiler_pic_CXX='-fPIC'
14925 # All AIX code is PIC.
14926 if test "$host_cpu" = ia64; then
14927 # AIX 5 now supports IA64 processor
14928 lt_prog_compiler_static_CXX='-Bstatic'
14930 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14934 case $cc_basename in
14936 # Green Hills C++ Compiler
14937 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14941 mingw* | cygwin* | os2* | pw32* | cegcc*)
14942 # This hack is so that the source file can tell whether it is being
14943 # built for inclusion in a dll (and should export symbols for example).
14944 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14947 case $cc_basename in
14949 lt_prog_compiler_pic_CXX='-KPIC'
14952 # Green Hills C++ Compiler
14953 lt_prog_compiler_pic_CXX='-pic'
14959 freebsd* | dragonfly*)
14960 # FreeBSD uses GNU C++
14962 hpux9* | hpux10* | hpux11*)
14963 case $cc_basename in
14965 lt_prog_compiler_wl_CXX='-Wl,'
14966 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14967 if test "$host_cpu" != ia64; then
14968 lt_prog_compiler_pic_CXX='+Z'
14972 lt_prog_compiler_wl_CXX='-Wl,'
14973 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14979 lt_prog_compiler_pic_CXX='+Z'
14988 # This is c89, which is MS Visual C++ (no shared libs)
14989 # Anyone wants to do a port?
14991 irix5* | irix6* | nonstopux*)
14992 case $cc_basename in
14994 lt_prog_compiler_wl_CXX='-Wl,'
14995 lt_prog_compiler_static_CXX='-non_shared'
14996 # CC pic flag -KPIC is the default.
15002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15003 case $cc_basename in
15006 lt_prog_compiler_wl_CXX='--backend -Wl,'
15007 lt_prog_compiler_pic_CXX='-fPIC'
15010 # old Intel C++ for x86_64 which still supported -KPIC.
15011 lt_prog_compiler_wl_CXX='-Wl,'
15012 lt_prog_compiler_pic_CXX='-KPIC'
15013 lt_prog_compiler_static_CXX='-static'
15016 # Intel C++, used to be incompatible with GCC.
15017 # ICC 10 doesn't accept -KPIC any more.
15018 lt_prog_compiler_wl_CXX='-Wl,'
15019 lt_prog_compiler_pic_CXX='-fPIC'
15020 lt_prog_compiler_static_CXX='-static'
15023 # Portland Group C++ compiler
15024 lt_prog_compiler_wl_CXX='-Wl,'
15025 lt_prog_compiler_pic_CXX='-fpic'
15026 lt_prog_compiler_static_CXX='-Bstatic'
15030 # Make sure the PIC flag is empty. It appears that all Alpha
15031 # Linux and Compaq Tru64 Unix objects are PIC.
15032 lt_prog_compiler_pic_CXX=
15033 lt_prog_compiler_static_CXX='-non_shared'
15035 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15036 # IBM XL 8.0, 9.0 on PPC and BlueGene
15037 lt_prog_compiler_wl_CXX='-Wl,'
15038 lt_prog_compiler_pic_CXX='-qpic'
15039 lt_prog_compiler_static_CXX='-qstaticlink'
15042 case `$CC -V 2>&1 | sed 5q` in
15045 lt_prog_compiler_pic_CXX='-KPIC'
15046 lt_prog_compiler_static_CXX='-Bstatic'
15047 lt_prog_compiler_wl_CXX='-Qoption ld '
15058 case $cc_basename in
15060 lt_prog_compiler_pic_CXX='-W c,exportall'
15069 # QNX uses GNU C++, but need to define -shared option too, otherwise
15070 # it will coredump.
15071 lt_prog_compiler_pic_CXX='-fPIC -shared'
15073 osf3* | osf4* | osf5*)
15074 case $cc_basename in
15076 lt_prog_compiler_wl_CXX='--backend -Wl,'
15079 # Rational C++ 2.4.1
15080 lt_prog_compiler_pic_CXX='-pic'
15083 # Digital/Compaq C++
15084 lt_prog_compiler_wl_CXX='-Wl,'
15085 # Make sure the PIC flag is empty. It appears that all Alpha
15086 # Linux and Compaq Tru64 Unix objects are PIC.
15087 lt_prog_compiler_pic_CXX=
15088 lt_prog_compiler_static_CXX='-non_shared'
15097 case $cc_basename in
15099 # Sun C++ 4.2, 5.x and Centerline C++
15100 lt_prog_compiler_pic_CXX='-KPIC'
15101 lt_prog_compiler_static_CXX='-Bstatic'
15102 lt_prog_compiler_wl_CXX='-Qoption ld '
15105 # Green Hills C++ Compiler
15106 lt_prog_compiler_pic_CXX='-PIC'
15113 case $cc_basename in
15116 lt_prog_compiler_pic_CXX='-pic'
15117 lt_prog_compiler_static_CXX='-Bstatic'
15121 lt_prog_compiler_pic_CXX='-pic'
15127 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15128 case $cc_basename in
15130 lt_prog_compiler_wl_CXX='-Wl,'
15131 lt_prog_compiler_pic_CXX='-KPIC'
15132 lt_prog_compiler_static_CXX='-Bstatic'
15137 case $cc_basename in
15139 # NonStop-UX NCC 3.20
15140 lt_prog_compiler_pic_CXX='-KPIC'
15149 lt_prog_compiler_can_build_shared_CXX=no
15155 # For platforms which do not support PIC, -DPIC is meaningless:
15157 lt_prog_compiler_pic_CXX=
15160 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15165 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15166 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15167 $as_echo_n "(cached) " >&6
15169 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15172 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15173 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15176 # Check to make sure the PIC flag actually works.
15178 if test -n "$lt_prog_compiler_pic_CXX"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15181 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15182 $as_echo_n "(cached) " >&6
15184 lt_cv_prog_compiler_pic_works_CXX=no
15185 ac_outfile=conftest.$ac_objext
15186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15187 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15188 # Insert the option either (1) after the last *FLAGS variable, or
15189 # (2) before a word containing "conftest.", or (3) at the end.
15190 # Note that $ac_compile itself does not contain backslashes and begins
15191 # with a dollar sign (not a hyphen), so the echo should work correctly.
15192 # The option is referenced via a variable to avoid confusing sed.
15193 lt_compile=`echo "$ac_compile" | $SED \
15194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15196 -e 's:$: $lt_compiler_flag:'`
15197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15198 (eval "$lt_compile" 2>conftest.err)
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 if (exit $ac_status) && test -s "$ac_outfile"; then
15203 # The compiler can only warn and ignore the option if not recognized
15204 # So say no if there are warnings other than the usual output.
15205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15208 lt_cv_prog_compiler_pic_works_CXX=yes
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15215 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15217 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15218 case $lt_prog_compiler_pic_CXX in
15220 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15223 lt_prog_compiler_pic_CXX=
15224 lt_prog_compiler_can_build_shared_CXX=no
15234 # Check to make sure the static flag actually works.
15236 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15238 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15239 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15240 $as_echo_n "(cached) " >&6
15242 lt_cv_prog_compiler_static_works_CXX=no
15243 save_LDFLAGS="$LDFLAGS"
15244 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15245 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15246 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15247 # The linker can only warn and ignore the option if not recognized
15248 # So say no if there are warnings
15249 if test -s conftest.err; then
15250 # Append any errors to the config.log.
15251 cat conftest.err 1>&5
15252 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15254 if diff conftest.exp conftest.er2 >/dev/null; then
15255 lt_cv_prog_compiler_static_works_CXX=yes
15258 lt_cv_prog_compiler_static_works_CXX=yes
15262 LDFLAGS="$save_LDFLAGS"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15266 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15268 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15271 lt_prog_compiler_static_CXX=
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15279 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15280 $as_echo_n "(cached) " >&6
15282 lt_cv_prog_compiler_c_o_CXX=no
15283 $RM -r conftest 2>/dev/null
15287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15289 lt_compiler_flag="-o out/conftest2.$ac_objext"
15290 # Insert the option either (1) after the last *FLAGS variable, or
15291 # (2) before a word containing "conftest.", or (3) at the end.
15292 # Note that $ac_compile itself does not contain backslashes and begins
15293 # with a dollar sign (not a hyphen), so the echo should work correctly.
15294 lt_compile=`echo "$ac_compile" | $SED \
15295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15297 -e 's:$: $lt_compiler_flag:'`
15298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15299 (eval "$lt_compile" 2>out/conftest.err)
15301 cat out/conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15305 # The compiler can only warn and ignore the option if not recognized
15306 # So say no if there are warnings
15307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15310 lt_cv_prog_compiler_c_o_CXX=yes
15315 # SGI C++ compiler will create directory out/ii_files/ for
15316 # template instantiation
15317 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15318 $RM out/* && rmdir out
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15325 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15331 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15332 $as_echo_n "(cached) " >&6
15334 lt_cv_prog_compiler_c_o_CXX=no
15335 $RM -r conftest 2>/dev/null
15339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15341 lt_compiler_flag="-o out/conftest2.$ac_objext"
15342 # Insert the option either (1) after the last *FLAGS variable, or
15343 # (2) before a word containing "conftest.", or (3) at the end.
15344 # Note that $ac_compile itself does not contain backslashes and begins
15345 # with a dollar sign (not a hyphen), so the echo should work correctly.
15346 lt_compile=`echo "$ac_compile" | $SED \
15347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15349 -e 's:$: $lt_compiler_flag:'`
15350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15351 (eval "$lt_compile" 2>out/conftest.err)
15353 cat out/conftest.err >&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15357 # The compiler can only warn and ignore the option if not recognized
15358 # So say no if there are warnings
15359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15362 lt_cv_prog_compiler_c_o_CXX=yes
15367 # SGI C++ compiler will create directory out/ii_files/ for
15368 # template instantiation
15369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15370 $RM out/* && rmdir out
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15377 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15382 hard_links="nottested"
15383 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15384 # do not overwrite the value of need_locks provided by the user
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15386 $as_echo_n "checking if we can lock with hard links... " >&6; }
15389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391 ln conftest.a conftest.b 2>&5 || hard_links=no
15392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15394 $as_echo "$hard_links" >&6; }
15395 if test "$hard_links" = no; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15397 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15407 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15409 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15410 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15413 # If we're using GNU nm, then we don't want the "-C" option.
15414 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15415 # Also, AIX nm treats weak defined symbols like other global defined
15416 # symbols, whereas GNU nm marks them as "W".
15417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15418 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15420 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15424 export_symbols_cmds_CXX="$ltdll_cmds"
15426 cygwin* | mingw* | cegcc*)
15427 case $cc_basename in
15430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15431 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15436 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15441 $as_echo "$ld_shlibs_CXX" >&6; }
15442 test "$ld_shlibs_CXX" = no && can_build_shared=no
15444 with_gnu_ld_CXX=$with_gnu_ld
15452 # Do we need to explicitly link libc?
15454 case "x$archive_cmds_need_lc_CXX" in
15456 # Assume -lc should be added
15457 archive_cmds_need_lc_CXX=yes
15459 if test "$enable_shared" = yes && test "$GCC" = yes; then
15460 case $archive_cmds_CXX in
15462 # FIXME: we may have to deal with multi-command sequences.
15465 # Test whether the compiler implicitly links with -lc since on some
15466 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15467 # to ld, don't add -lc before -lgcc.
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15469 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15470 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15471 $as_echo_n "(cached) " >&6
15474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15477 (eval $ac_compile) 2>&5
15479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15480 test $ac_status = 0; } 2>conftest.err; then
15483 libobjs=conftest.$ac_objext
15485 wl=$lt_prog_compiler_wl_CXX
15486 pic_flag=$lt_prog_compiler_pic_CXX
15492 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15493 allow_undefined_flag_CXX=
15494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15495 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15498 test $ac_status = 0; }
15500 lt_cv_archive_cmds_need_lc_CXX=no
15502 lt_cv_archive_cmds_need_lc_CXX=yes
15504 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15506 cat conftest.err 1>&5
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15512 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15513 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15584 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15586 library_names_spec=
15587 libname_spec='lib$name'
15591 postuninstall_cmds=
15595 shlibpath_overrides_runpath=unknown
15597 dynamic_linker="$host_os ld.so"
15598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15599 need_lib_prefix=unknown
15600 hardcode_into_libs=no
15602 # when you set need_version to no, make sure it does not cause -set_version
15603 # flags to be left without arguments
15604 need_version=unknown
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15610 shlibpath_var=LIBPATH
15612 # AIX 3 has no versioning support, so we append a major version to the name.
15613 soname_spec='${libname}${release}${shared_ext}$major'
15620 hardcode_into_libs=yes
15621 if test "$host_cpu" = ia64; then
15622 # AIX 5 supports IA64
15623 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15624 shlibpath_var=LD_LIBRARY_PATH
15626 # With GCC up to 2.95.x, collect2 would create an import file
15627 # for dependence libraries. The import file would start with
15628 # the line `#! .'. This would cause the generated library to
15629 # depend on `.', always an invalid library. This was fixed in
15630 # development snapshots of GCC prior to 3.0.
15632 aix4 | aix4.[01] | aix4.[01].*)
15633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15635 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15638 can_build_shared=no
15642 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15643 # soname into executable. Probably we can add versioning support to
15644 # collect2, so additional links can be useful in future.
15645 if test "$aix_use_runtimelinking" = yes; then
15646 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15647 # instead of lib<name>.a to let people know that these are not
15648 # typical AIX shared libraries.
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 # We preserve .a as extension for shared libraries through AIX4.2
15652 # and later when we are not doing run time linking.
15653 library_names_spec='${libname}${release}.a $libname.a'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15656 shlibpath_var=LIBPATH
15663 # Since July 2007 AmigaOS4 officially supports .so libraries.
15664 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 library_names_spec='$libname.ixlibrary $libname.a'
15669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15676 library_names_spec='${libname}${shared_ext}'
15677 dynamic_linker="$host_os ld.so"
15678 shlibpath_var=LIBRARY_PATH
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15689 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15690 # the default ld.so.conf also contains /usr/contrib/lib and
15691 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15692 # libtool to hard-code these into programs
15695 cygwin* | mingw* | pw32* | cegcc*)
15696 version_type=windows
15701 case $GCC,$cc_basename in
15704 library_names_spec='$libname.dll.a'
15705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15706 postinstall_cmds='base_file=`basename \${file}`~
15707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15708 dldir=$destdir/`dirname \$dlpath`~
15709 test -d \$dldir || mkdir -p \$dldir~
15710 $install_prog $dir/$dlname \$dldir/$dlname~
15711 chmod a+x \$dldir/$dlname~
15712 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15713 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15716 dlpath=$dir/\$dldll~
15718 shlibpath_overrides_runpath=yes
15722 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15723 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15727 # MinGW DLLs use traditional 'lib' prefix
15728 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731 # pw32 DLLs use 'pw' prefix rather than 'lib'
15732 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15735 dynamic_linker='Win32 ld.exe'
15740 libname_spec='$name'
15741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15742 library_names_spec='${libname}.dll.lib'
15746 sys_lib_search_path_spec=
15749 for lt_path in $LIB
15752 # Let DOS variable expansion print the short 8.3 style file name.
15753 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15754 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15757 # Convert to MSYS style.
15758 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15761 # Convert to unix form, then to dos form, then back to unix form
15762 # but this time dos style (no spaces!) so that the unix form looks
15763 # like /cygdrive/c/PROGRA~1:/cygdr...
15764 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15765 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15766 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15769 sys_lib_search_path_spec="$LIB"
15770 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15771 # It is most probably a Windows format PATH.
15772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15774 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15776 # FIXME: find the short name or the path components, as spaces are
15777 # common. (e.g. "Program Files" -> "PROGRA~1")
15781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15782 postinstall_cmds='base_file=`basename \${file}`~
15783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15784 dldir=$destdir/`dirname \$dlpath`~
15785 test -d \$dldir || mkdir -p \$dldir~
15786 $install_prog $dir/$dlname \$dldir/$dlname'
15787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15788 dlpath=$dir/\$dldll~
15790 shlibpath_overrides_runpath=yes
15791 dynamic_linker='Win32 link.exe'
15795 # Assume MSVC wrapper
15796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15797 dynamic_linker='Win32 ld.exe'
15800 # FIXME: first we should search . and the directory the executable is in
15804 darwin* | rhapsody*)
15805 dynamic_linker="$host_os dyld"
15806 version_type=darwin
15809 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15810 soname_spec='${libname}${release}${major}$shared_ext'
15811 shlibpath_overrides_runpath=yes
15812 shlibpath_var=DYLD_LIBRARY_PATH
15813 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15815 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15823 soname_spec='${libname}${release}${shared_ext}$major'
15824 shlibpath_var=LD_LIBRARY_PATH
15831 freebsd* | dragonfly*)
15832 # DragonFly does not have aout. When/if they implement a new
15833 # versioning mechanism, adjust this.
15834 if test -x /usr/bin/objformat; then
15835 objformat=`/usr/bin/objformat`
15838 freebsd[123]*) objformat=aout ;;
15839 *) objformat=elf ;;
15842 version_type=freebsd-$objformat
15843 case $version_type in
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15854 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=yes
15859 freebsd3.[01]* | freebsdelf3.[01]*)
15860 shlibpath_overrides_runpath=yes
15861 hardcode_into_libs=yes
15863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15865 shlibpath_overrides_runpath=no
15866 hardcode_into_libs=yes
15868 *) # from 4.6 on, and DragonFly
15869 shlibpath_overrides_runpath=yes
15870 hardcode_into_libs=yes
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 hardcode_into_libs=yes
15889 dynamic_linker="$host_os runtime_loader"
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 shlibpath_var=LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15894 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15895 hardcode_into_libs=yes
15898 hpux9* | hpux10* | hpux11*)
15899 # Give a soname corresponding to the major version so that dld.sl refuses to
15900 # link against other versions.
15907 hardcode_into_libs=yes
15908 dynamic_linker="$host_os dld.so"
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 if test "X$HPUX_IA64_MODE" = X32; then
15914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15916 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15922 hardcode_into_libs=yes
15923 dynamic_linker="$host_os dld.sl"
15924 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15933 dynamic_linker="$host_os dld.sl"
15934 shlibpath_var=SHLIB_PATH
15935 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15940 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15941 postinstall_cmds='chmod 555 $lib'
15942 # or fails outright, so override atomically:
15943 install_override_mode=555
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=no
15955 hardcode_into_libs=yes
15958 irix5* | irix6* | nonstopux*)
15960 nonstopux*) version_type=nonstopux ;;
15962 if test "$lt_cv_prog_gnu_ld" = yes; then
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15973 irix5* | nonstopux*)
15974 libsuff= shlibsuff=
15977 case $LD in # libtool.m4 will add one of these switches to LD
15978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15979 libsuff= shlibsuff= libmagic=32-bit;;
15980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15981 libsuff=32 shlibsuff=N32 libmagic=N32;;
15982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15984 *) libsuff= shlibsuff= libmagic=never-match;;
15988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15989 shlibpath_overrides_runpath=no
15990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15992 hardcode_into_libs=yes
15995 # No shared lib support for Linux oldld, aout, or coff.
15996 linux*oldld* | linux*aout* | linux*coff*)
16000 # This must be Linux ELF.
16001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16011 # Some binutils ld are patched to set DT_RUNPATH
16012 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16013 $as_echo_n "(cached) " >&6
16015 lt_cv_shlibpath_overrides_runpath=no
16016 save_LDFLAGS=$LDFLAGS
16017 save_libdir=$libdir
16018 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16019 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16031 if ac_fn_cxx_try_link "$LINENO"; then :
16032 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16033 lt_cv_shlibpath_overrides_runpath=yes
16036 rm -f core conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16038 LDFLAGS=$save_LDFLAGS
16039 libdir=$save_libdir
16043 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16045 # This implies no fast_install, which is unacceptable.
16046 # Some rework will be needed to allow for fast_install
16047 # before this can be enabled.
16048 hardcode_into_libs=yes
16050 # Append ld.so.conf contents to the search path
16051 if test -f /etc/ld.so.conf; then
16052 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16053 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16056 # We used to test for /lib/ld.so.1 and disable shared libraries on
16057 # powerpc, because MkLinux only supported shared libraries with the
16058 # GNU dynamic linker. Since this was broken with cross compilers,
16059 # most powerpc-linux boxes support dynamic linking these days and
16060 # people can always --disable-shared, the test was removed, and we
16061 # assume the GNU/Linux dynamic linker is in use.
16062 dynamic_linker='GNU/Linux ld.so'
16069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072 dynamic_linker='NetBSD (a.out) ld.so'
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 dynamic_linker='NetBSD ld.elf_so'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 shlibpath_overrides_runpath=yes
16080 hardcode_into_libs=yes
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=no
16098 hardcode_into_libs=yes
16099 dynamic_linker='ldqnx.so'
16104 sys_lib_dlsearch_path_spec="/usr/lib"
16106 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16108 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16109 *) need_version=no ;;
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16113 shlibpath_var=LD_LIBRARY_PATH
16114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16116 openbsd2.[89] | openbsd2.[89].*)
16117 shlibpath_overrides_runpath=no
16120 shlibpath_overrides_runpath=yes
16124 shlibpath_overrides_runpath=yes
16129 libname_spec='$name'
16132 library_names_spec='$libname${shared_ext} $libname.a'
16133 dynamic_linker='OS/2 ld.exe'
16134 shlibpath_var=LIBPATH
16137 osf3* | osf4* | osf5*)
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16145 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16158 shlibpath_var=LD_LIBRARY_PATH
16159 shlibpath_overrides_runpath=yes
16160 hardcode_into_libs=yes
16161 # ldd complains unless libraries are executable
16162 postinstall_cmds='chmod +x $lib'
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16168 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16169 shlibpath_var=LD_LIBRARY_PATH
16170 shlibpath_overrides_runpath=yes
16171 if test "$with_gnu_ld" = yes; then
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 case $host_vendor in
16184 shlibpath_overrides_runpath=no
16186 runpath_var=LD_RUN_PATH
16194 shlibpath_overrides_runpath=no
16195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16201 if test -d /usr/nec ;then
16203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16204 soname_spec='$libname${shared_ext}.$major'
16205 shlibpath_var=LD_LIBRARY_PATH
16209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16210 version_type=freebsd-elf
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=yes
16217 hardcode_into_libs=yes
16218 if test "$with_gnu_ld" = yes; then
16219 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16224 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16228 sys_lib_dlsearch_path_spec='/usr/lib'
16232 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 shlibpath_overrides_runpath=no
16239 hardcode_into_libs=yes
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 shlibpath_var=LD_LIBRARY_PATH
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16254 $as_echo "$dynamic_linker" >&6; }
16255 test "$dynamic_linker" = no && can_build_shared=no
16257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16258 if test "$GCC" = yes; then
16259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16262 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16263 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16265 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16266 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16307 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16308 hardcode_action_CXX=
16309 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16310 test -n "$runpath_var_CXX" ||
16311 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16313 # We can hardcode non-existent directories.
16314 if test "$hardcode_direct_CXX" != no &&
16315 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16316 # have to relink, otherwise we might link with an installed library
16317 # when we should be linking with a yet-to-be-installed one
16318 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16319 test "$hardcode_minus_L_CXX" != no; then
16320 # Linking always hardcodes the temporary library directory.
16321 hardcode_action_CXX=relink
16323 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16324 hardcode_action_CXX=immediate
16327 # We cannot hardcode anything, or else we can only hardcode existing
16329 hardcode_action_CXX=unsupported
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16332 $as_echo "$hardcode_action_CXX" >&6; }
16334 if test "$hardcode_action_CXX" = relink ||
16335 test "$inherit_rpath_CXX" = yes; then
16336 # Fast installation is not supported
16337 enable_fast_install=no
16338 elif test "$shlibpath_overrides_runpath" = yes ||
16339 test "$enable_shared" = no; then
16340 # Fast installation is not necessary
16341 enable_fast_install=needless
16350 fi # test -n "$compiler"
16353 CFLAGS=$lt_save_CFLAGS
16357 with_gnu_ld=$lt_save_with_gnu_ld
16358 lt_cv_path_LDCXX=$lt_cv_path_LD
16359 lt_cv_path_LD=$lt_save_path_LD
16360 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16361 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16362 fi # test "$_lt_caught_CXX_error" != yes
16365 ac_cpp='$CPP $CPPFLAGS'
16366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16382 ac_config_commands="$ac_config_commands libtool"
16387 # Only expand once:
16395 ac_cpp='$CPP $CPPFLAGS'
16396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16403 $as_echo_n "checking for library containing dlopen... " >&6; }
16404 if ${ac_cv_search_dlopen+:} false; then :
16405 $as_echo_n "(cached) " >&6
16407 ac_func_search_save_LIBS=$LIBS
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16426 for ac_lib in '' dl; do
16427 if test -z "$ac_lib"; then
16428 ac_res="none required"
16431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16433 if ac_fn_c_try_link "$LINENO"; then :
16434 ac_cv_search_dlopen=$ac_res
16436 rm -f core conftest.err conftest.$ac_objext \
16438 if ${ac_cv_search_dlopen+:} false; then :
16442 if ${ac_cv_search_dlopen+:} false; then :
16445 ac_cv_search_dlopen=no
16447 rm conftest.$ac_ext
16448 LIBS=$ac_func_search_save_LIBS
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16451 $as_echo "$ac_cv_search_dlopen" >&6; }
16452 ac_res=$ac_cv_search_dlopen
16453 if test "$ac_res" != no; then :
16454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16456 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16458 if test "$ac_cv_search_dlopen" != "none required" ; then
16459 LIBADD_DLOPEN="-ldl"
16461 libltdl_cv_lib_dl_dlopen="yes"
16462 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16467 # include <dlfcn.h>
16478 if ac_fn_c_try_link "$LINENO"; then :
16480 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16482 libltdl_cv_func_dlopen="yes"
16483 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16486 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16487 if ${ac_cv_lib_svld_dlopen+:} false; then :
16488 $as_echo_n "(cached) " >&6
16490 ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-lsvld $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. */
16510 if ac_fn_c_try_link "$LINENO"; then :
16511 ac_cv_lib_svld_dlopen=yes
16513 ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5
16520 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16521 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16523 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16525 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16526 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16530 rm -f core conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16534 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16536 lt_save_LIBS="$LIBS"
16537 LIBS="$LIBS $LIBADD_DLOPEN"
16538 for ac_func in dlerror
16540 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16541 if test "x$ac_cv_func_dlerror" = xyes; then :
16542 cat >>confdefs.h <<_ACEOF
16543 #define HAVE_DLERROR 1
16549 LIBS="$lt_save_LIBS"
16554 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16555 if test "x$ac_cv_func_shl_load" = xyes; then :
16557 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16559 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16562 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16563 if ${ac_cv_lib_dld_shl_load+:} false; then :
16564 $as_echo_n "(cached) " >&6
16566 ac_check_lib_save_LIBS=$LIBS
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16571 /* Override any GCC internal prototype to avoid an error.
16572 Use char because int might match the return type of a GCC
16573 builtin and then its argument prototype would still apply. */
16581 return shl_load ();
16586 if ac_fn_c_try_link "$LINENO"; then :
16587 ac_cv_lib_dld_shl_load=yes
16589 ac_cv_lib_dld_shl_load=no
16591 rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16596 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16597 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16599 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16601 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16602 LIBADD_SHL_LOAD="-ldld"
16611 # We only want this for pre-Mac OS X 10.4.
16612 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16613 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16615 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16617 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16622 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16624 cygwin* | mingw* | os2* | pw32*)
16625 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16627 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16633 cat >>confdefs.h <<_ACEOF
16634 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16637 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16643 if ${ac_cv_lib_dld_dld_link+:} false; then :
16644 $as_echo_n "(cached) " >&6
16646 ac_check_lib_save_LIBS=$LIBS
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16651 /* Override any GCC internal prototype to avoid an error.
16652 Use char because int might match the return type of a GCC
16653 builtin and then its argument prototype would still apply. */
16661 return dld_link ();
16666 if ac_fn_c_try_link "$LINENO"; then :
16667 ac_cv_lib_dld_dld_link=yes
16669 ac_cv_lib_dld_dld_link=no
16671 rm -f core conftest.err conftest.$ac_objext \
16672 conftest$ac_exeext conftest.$ac_ext
16673 LIBS=$ac_check_lib_save_LIBS
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16676 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16677 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16679 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16681 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16688 if test -n "$LT_DLLOADERS"
16690 for lt_loader in $LT_DLLOADERS; do
16691 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16694 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16699 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16703 ac_cpp='$CPP $CPPFLAGS'
16704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16711 if test x$use_libtool != xno; then
16712 DEFAULT_OBJECT_TYPE=".lo"
16713 DEFAULT_ARCHIVE_TYPE=".la"
16714 DEFAULT_SHARED_OBJECT_TYPE=".la"
16715 LIBTOOL="\$(LIBTOOL)"
16716 LIBTOOL_INSTALL_TARGET="libtool-install"
16717 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16718 LIBTOOL_CLEAN_TARGET="libtool-clean"
16719 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16720 FD_PLUGIN_DIR="src/plugins/fd"
16723 DEFAULT_OBJECT_TYPE=".o"
16724 DEFAULT_ARCHIVE_TYPE=".a"
16725 DEFAULT_SHARED_OBJECT_TYPE=".so"
16726 LIBTOOL="# \$(LIBTOOL)"
16727 LIBTOOL_INSTALL_TARGET=""
16728 LIBTOOL_UNINSTALL_TARGET=""
16729 LIBTOOL_CLEAN_TARGET=""
16730 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16745 # Check whether --enable-includes was given.
16746 if test "${enable_includes+set}" = set; then :
16747 enableval=$enable_includes;
16748 if test x$enableval = xyes; then
16749 install_includes=yes
16757 if test x$use_libtool != xno -a x$install_includes = xyes; then
16758 INCLUDE_INSTALL_TARGET="install-includes"
16759 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16761 INCLUDE_INSTALL_TARGET=""
16762 INCLUDE_UNINSTALL_TARGET=""
16770 *cygwin* ) CYGWIN=yes;;
16774 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16780 HAVE_SUN_OS_FALSE='#'
16782 HAVE_SUN_OS_TRUE='#'
16785 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16792 HAVE_SUN_OS_FALSE='#'
16794 HAVE_SUN_OS_TRUE='#'
16799 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16805 HAVE_HURD_OS_FALSE='#'
16807 HAVE_HURD_OS_TRUE='#'
16808 HAVE_HURD_OS_FALSE=
16810 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16817 HAVE_HURD_OS_FALSE='#'
16819 HAVE_HURD_OS_TRUE='#'
16820 HAVE_HURD_OS_FALSE=
16824 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16830 HAVE_OSF1_OS_FALSE='#'
16832 HAVE_OSF1_OS_TRUE='#'
16833 HAVE_OSF1_OS_FALSE=
16835 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16842 HAVE_OSF1_OS_FALSE='#'
16844 HAVE_OSF1_OS_TRUE='#'
16845 HAVE_OSF1_OS_FALSE=
16849 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16855 HAVE_AIX_OS_FALSE='#'
16857 HAVE_AIX_OS_TRUE='#'
16860 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16867 HAVE_AIX_OS_FALSE='#'
16869 HAVE_AIX_OS_TRUE='#'
16874 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16880 HAVE_HPUX_OS_FALSE='#'
16882 HAVE_HPUX_OS_TRUE='#'
16883 HAVE_HPUX_OS_FALSE=
16885 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16892 HAVE_HPUX_OS_FALSE='#'
16894 HAVE_HPUX_OS_TRUE='#'
16895 HAVE_HPUX_OS_FALSE=
16899 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16904 HAVE_LINUX_OS_TRUE=
16905 HAVE_LINUX_OS_FALSE='#'
16907 HAVE_LINUX_OS_TRUE='#'
16908 HAVE_LINUX_OS_FALSE=
16910 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16916 HAVE_LINUX_OS_TRUE=
16917 HAVE_LINUX_OS_FALSE='#'
16919 HAVE_LINUX_OS_TRUE='#'
16920 HAVE_LINUX_OS_FALSE=
16924 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16929 HAVE_FREEBSD_OS_TRUE=
16930 HAVE_FREEBSD_OS_FALSE='#'
16932 HAVE_FREEBSD_OS_TRUE='#'
16933 HAVE_FREEBSD_OS_FALSE=
16935 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16941 HAVE_FREEBSD_OS_TRUE=
16942 HAVE_FREEBSD_OS_FALSE='#'
16944 HAVE_FREEBSD_OS_TRUE='#'
16945 HAVE_FREEBSD_OS_FALSE=
16949 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16954 HAVE_NETBSD_OS_TRUE=
16955 HAVE_NETBSD_OS_FALSE='#'
16957 HAVE_NETBSD_OS_TRUE='#'
16958 HAVE_NETBSD_OS_FALSE=
16960 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16966 HAVE_NETBSD_OS_TRUE=
16967 HAVE_NETBSD_OS_FALSE='#'
16969 HAVE_NETBSD_OS_TRUE='#'
16970 HAVE_NETBSD_OS_FALSE=
16974 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16979 HAVE_OPENBSD_OS_TRUE=
16980 HAVE_OPENBSD_OS_FALSE='#'
16982 HAVE_OPENBSD_OS_TRUE='#'
16983 HAVE_OPENBSD_OS_FALSE=
16985 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16991 HAVE_OPENBSD_OS_TRUE=
16992 HAVE_OPENBSD_OS_FALSE='#'
16994 HAVE_OPENBSD_OS_TRUE='#'
16995 HAVE_OPENBSD_OS_FALSE=
16999 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17005 HAVE_BSDI_OS_FALSE='#'
17007 HAVE_BSDI_OS_TRUE='#'
17008 HAVE_BSDI_OS_FALSE=
17010 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17017 HAVE_BSDI_OS_FALSE='#'
17019 HAVE_BSDI_OS_TRUE='#'
17020 HAVE_BSDI_OS_FALSE=
17024 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17030 HAVE_SGI_OS_FALSE='#'
17032 HAVE_SGI_OS_TRUE='#'
17035 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17042 HAVE_SGI_OS_FALSE='#'
17044 HAVE_SGI_OS_TRUE='#'
17049 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17055 HAVE_IRIX_OS_FALSE='#'
17057 HAVE_IRIX_OS_TRUE='#'
17058 HAVE_IRIX_OS_FALSE=
17060 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17067 HAVE_IRIX_OS_FALSE='#'
17069 HAVE_IRIX_OS_TRUE='#'
17070 HAVE_IRIX_OS_FALSE=
17074 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17079 HAVE_DARWIN_OS_TRUE=
17080 HAVE_DARWIN_OS_FALSE='#'
17082 HAVE_DARWIN_OS_TRUE='#'
17083 HAVE_DARWIN_OS_FALSE=
17085 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17091 HAVE_DARWIN_OS_TRUE=
17092 HAVE_DARWIN_OS_FALSE='#'
17094 HAVE_DARWIN_OS_TRUE='#'
17095 HAVE_DARWIN_OS_FALSE=
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17101 $as_echo_n "checking for Operating System Distribution... " >&6; }
17102 if test "x$DISTNAME" != "x"
17104 echo "distname set to $DISTNAME"
17105 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17108 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17111 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17114 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17117 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17120 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17123 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17126 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17129 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17132 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17135 elif test -f /etc/SuSE-release
17138 elif test -d /etc/SuSEconfig
17141 elif test -f /etc/mandrake-release
17144 elif test -f /etc/whitebox-release
17147 elif test -f /etc/redhat-release
17150 elif test -f /etc/gentoo-release
17153 elif test -f /etc/debian_version
17156 elif test -f /etc/slackware-version
17159 elif test x$host_vendor = xapple
17162 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17165 elif test -f /etc/engarde-version
17168 elif test -f /etc/arch-release
17171 elif test "$CYGWIN" = yes
17174 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17180 $as_echo "done" >&6; }
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17184 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17186 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17187 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17188 $as_echo_n "(cached) " >&6
17190 cat >conftest.make <<\_ACEOF
17193 @echo '@@@%%%=$(MAKE)=@@@%%%'
17195 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17196 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17197 *@@@%%%=?*=@@@%%%*)
17198 eval ac_cv_prog_make_${ac_make}_set=yes;;
17200 eval ac_cv_prog_make_${ac_make}_set=no;;
17202 rm -f conftest.make
17204 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17206 $as_echo "yes" >&6; }
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17210 $as_echo "no" >&6; }
17211 SET_MAKE="MAKE=${MAKE-make}"
17217 if test -n "$ac_aux_dir"; then
17218 case "$ac_aux_dir" in
17219 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17220 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17223 if test -z "$MKINSTALLDIRS"; then
17224 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17230 $as_echo_n "checking whether NLS is requested... " >&6; }
17231 # Check whether --enable-nls was given.
17232 if test "${enable_nls+set}" = set; then :
17233 enableval=$enable_nls; USE_NLS=$enableval
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17239 $as_echo "$USE_NLS" >&6; }
17246 # Prepare PATH_SEPARATOR.
17247 # The user is always right.
17248 if test "${PATH_SEPARATOR+set}" != set; then
17249 echo "#! /bin/sh" >conf$$.sh
17250 echo "exit 0" >>conf$$.sh
17252 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17260 # Find out how to test for executable files. Don't use a zero-byte file,
17261 # as systems may use methods other than mode bits to determine executability.
17262 cat >conf$$.file <<_ASEOF
17266 chmod +x conf$$.file
17267 if test -x conf$$.file >/dev/null 2>&1; then
17268 ac_executable_p="test -x"
17270 ac_executable_p="test -f"
17274 # Extract the first word of "msgfmt", so it can be a program name with args.
17275 set dummy msgfmt; ac_word=$2
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17277 $as_echo_n "checking for $ac_word... " >&6; }
17278 if ${ac_cv_path_MSGFMT+:} false; then :
17279 $as_echo_n "(cached) " >&6
17283 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17286 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17287 for ac_dir in $PATH; do
17289 test -z "$ac_dir" && ac_dir=.
17290 for ac_exec_ext in '' $ac_executable_extensions; do
17291 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17292 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17293 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17294 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17295 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17302 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17306 MSGFMT="$ac_cv_path_MSGFMT"
17307 if test "$MSGFMT" != ":"; then
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17309 $as_echo "$MSGFMT" >&6; }
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312 $as_echo "no" >&6; }
17315 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17316 set dummy gmsgfmt; ac_word=$2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 $as_echo_n "checking for $ac_word... " >&6; }
17319 if ${ac_cv_path_GMSGFMT+:} false; then :
17320 $as_echo_n "(cached) " >&6
17324 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17331 test -z "$as_dir" && as_dir=.
17332 for ac_exec_ext in '' $ac_executable_extensions; do
17333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17334 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17342 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17346 GMSGFMT=$ac_cv_path_GMSGFMT
17347 if test -n "$GMSGFMT"; then
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17349 $as_echo "$GMSGFMT" >&6; }
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17352 $as_echo "no" >&6; }
17358 # Prepare PATH_SEPARATOR.
17359 # The user is always right.
17360 if test "${PATH_SEPARATOR+set}" != set; then
17361 echo "#! /bin/sh" >conf$$.sh
17362 echo "exit 0" >>conf$$.sh
17364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17372 # Find out how to test for executable files. Don't use a zero-byte file,
17373 # as systems may use methods other than mode bits to determine executability.
17374 cat >conf$$.file <<_ASEOF
17378 chmod +x conf$$.file
17379 if test -x conf$$.file >/dev/null 2>&1; then
17380 ac_executable_p="test -x"
17382 ac_executable_p="test -f"
17386 # Extract the first word of "xgettext", so it can be a program name with args.
17387 set dummy xgettext; ac_word=$2
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17389 $as_echo_n "checking for $ac_word... " >&6; }
17390 if ${ac_cv_path_XGETTEXT+:} false; then :
17391 $as_echo_n "(cached) " >&6
17393 case "$XGETTEXT" in
17395 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17398 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17399 for ac_dir in $PATH; do
17401 test -z "$ac_dir" && ac_dir=.
17402 for ac_exec_ext in '' $ac_executable_extensions; do
17403 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17404 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17405 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17406 (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
17407 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17414 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17418 XGETTEXT="$ac_cv_path_XGETTEXT"
17419 if test "$XGETTEXT" != ":"; then
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17421 $as_echo "$XGETTEXT" >&6; }
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17424 $as_echo "no" >&6; }
17430 # Prepare PATH_SEPARATOR.
17431 # The user is always right.
17432 if test "${PATH_SEPARATOR+set}" != set; then
17433 echo "#! /bin/sh" >conf$$.sh
17434 echo "exit 0" >>conf$$.sh
17436 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17444 # Find out how to test for executable files. Don't use a zero-byte file,
17445 # as systems may use methods other than mode bits to determine executability.
17446 cat >conf$$.file <<_ASEOF
17450 chmod +x conf$$.file
17451 if test -x conf$$.file >/dev/null 2>&1; then
17452 ac_executable_p="test -x"
17454 ac_executable_p="test -f"
17458 # Extract the first word of "msgmerge", so it can be a program name with args.
17459 set dummy msgmerge; ac_word=$2
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17461 $as_echo_n "checking for $ac_word... " >&6; }
17462 if ${ac_cv_path_MSGMERGE+:} false; then :
17463 $as_echo_n "(cached) " >&6
17465 case "$MSGMERGE" in
17467 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17470 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17471 for ac_dir in $PATH; do
17473 test -z "$ac_dir" && ac_dir=.
17474 for ac_exec_ext in '' $ac_executable_extensions; do
17475 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17476 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17477 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17478 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17485 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17489 MSGMERGE="$ac_cv_path_MSGMERGE"
17490 if test "$MSGMERGE" != ":"; then
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17492 $as_echo "$MSGMERGE" >&6; }
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17495 $as_echo "no" >&6; }
17499 if test "$GMSGFMT" != ":"; then
17500 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17501 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17504 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17506 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17511 if test "$XGETTEXT" != ":"; then
17512 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17513 (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
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17517 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17523 ac_config_commands="$ac_config_commands default-1"
17527 if test "X$prefix" = "XNONE"; then
17528 acl_final_prefix="$ac_default_prefix"
17530 acl_final_prefix="$prefix"
17532 if test "X$exec_prefix" = "XNONE"; then
17533 acl_final_exec_prefix='${prefix}'
17535 acl_final_exec_prefix="$exec_prefix"
17537 acl_save_prefix="$prefix"
17538 prefix="$acl_final_prefix"
17539 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17540 prefix="$acl_save_prefix"
17543 # Check whether --with-gnu-ld was given.
17544 if test "${with_gnu_ld+set}" = set; then :
17545 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17550 # Prepare PATH_SEPARATOR.
17551 # The user is always right.
17552 if test "${PATH_SEPARATOR+set}" != set; then
17553 echo "#! /bin/sh" >conf$$.sh
17554 echo "exit 0" >>conf$$.sh
17556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17564 if test "$GCC" = yes; then
17565 # Check if gcc -print-prog-name=ld gives a path.
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17567 $as_echo_n "checking for ld used by GCC... " >&6; }
17570 # gcc leaves a trailing carriage return which upsets mingw
17571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17576 # Accept absolute paths.
17577 [\\/]* | [A-Za-z]:[\\/]*)
17578 re_direlt='/[^/][^/]*/\.\./'
17579 # Canonicalize the path of ld
17580 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17581 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17582 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17584 test -z "$LD" && LD="$ac_prog"
17587 # If it fails, then pretend we aren't using GCC.
17591 # If it is relative, then search for the first ld in PATH.
17592 with_gnu_ld=unknown
17595 elif test "$with_gnu_ld" = yes; then
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17597 $as_echo_n "checking for GNU ld... " >&6; }
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17600 $as_echo_n "checking for non-GNU ld... " >&6; }
17602 if ${acl_cv_path_LD+:} false; then :
17603 $as_echo_n "(cached) " >&6
17605 if test -z "$LD"; then
17606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17607 for ac_dir in $PATH; do
17608 test -z "$ac_dir" && ac_dir=.
17609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17610 acl_cv_path_LD="$ac_dir/$ac_prog"
17611 # Check to see if the program is GNU ld. I'd rather use --version,
17612 # but apparently some GNU ld's only accept -v.
17613 # Break only if it was the GNU/non-GNU ld that we prefer.
17614 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17615 *GNU* | *'with BFD'*)
17616 test "$with_gnu_ld" != no && break ;;
17618 test "$with_gnu_ld" != yes && break ;;
17624 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17628 LD="$acl_cv_path_LD"
17629 if test -n "$LD"; then
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17631 $as_echo "$LD" >&6; }
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17634 $as_echo "no" >&6; }
17636 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17638 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17639 if ${acl_cv_prog_gnu_ld+:} false; then :
17640 $as_echo_n "(cached) " >&6
17642 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17643 case `$LD -v 2>&1 </dev/null` in
17644 *GNU* | *'with BFD'*)
17645 acl_cv_prog_gnu_ld=yes ;;
17647 acl_cv_prog_gnu_ld=no ;;
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17651 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17652 with_gnu_ld=$acl_cv_prog_gnu_ld
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17658 $as_echo_n "checking for shared library run path origin... " >&6; }
17659 if ${acl_cv_rpath+:} false; then :
17660 $as_echo_n "(cached) " >&6
17663 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17664 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17666 rm -f ./conftest.sh
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17671 $as_echo "$acl_cv_rpath" >&6; }
17673 libext="$acl_cv_libext"
17674 shlibext="$acl_cv_shlibext"
17675 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17676 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17677 hardcode_direct="$acl_cv_hardcode_direct"
17678 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17679 # Check whether --enable-rpath was given.
17680 if test "${enable_rpath+set}" = set; then :
17681 enableval=$enable_rpath; :
17695 acl_save_prefix="$prefix"
17696 prefix="$acl_final_prefix"
17697 acl_save_exec_prefix="$exec_prefix"
17698 exec_prefix="$acl_final_exec_prefix"
17700 eval additional_includedir=\"$includedir\"
17701 eval additional_libdir=\"$libdir\"
17703 exec_prefix="$acl_save_exec_prefix"
17704 prefix="$acl_save_prefix"
17707 # Check whether --with-libiconv-prefix was given.
17708 if test "${with_libiconv_prefix+set}" = set; then :
17709 withval=$with_libiconv_prefix;
17710 if test "X$withval" = "Xno"; then
17713 if test "X$withval" = "X"; then
17715 acl_save_prefix="$prefix"
17716 prefix="$acl_final_prefix"
17717 acl_save_exec_prefix="$exec_prefix"
17718 exec_prefix="$acl_final_exec_prefix"
17720 eval additional_includedir=\"$includedir\"
17721 eval additional_libdir=\"$libdir\"
17723 exec_prefix="$acl_save_exec_prefix"
17724 prefix="$acl_save_prefix"
17727 additional_includedir="$withval/include"
17728 additional_libdir="$withval/lib"
17739 names_already_handled=
17740 names_next_round='iconv '
17741 while test -n "$names_next_round"; do
17742 names_this_round="$names_next_round"
17744 for name in $names_this_round; do
17746 for n in $names_already_handled; do
17747 if test "$n" = "$name"; then
17748 already_handled=yes
17752 if test -z "$already_handled"; then
17753 names_already_handled="$names_already_handled $name"
17754 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17755 eval value=\"\$HAVE_LIB$uppername\"
17756 if test -n "$value"; then
17757 if test "$value" = yes; then
17758 eval value=\"\$LIB$uppername\"
17759 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17760 eval value=\"\$LTLIB$uppername\"
17761 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17770 if test $use_additional = yes; then
17771 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17772 found_dir="$additional_libdir"
17773 found_so="$additional_libdir/lib$name.$shlibext"
17774 if test -f "$additional_libdir/lib$name.la"; then
17775 found_la="$additional_libdir/lib$name.la"
17778 if test -f "$additional_libdir/lib$name.$libext"; then
17779 found_dir="$additional_libdir"
17780 found_a="$additional_libdir/lib$name.$libext"
17781 if test -f "$additional_libdir/lib$name.la"; then
17782 found_la="$additional_libdir/lib$name.la"
17787 if test "X$found_dir" = "X"; then
17788 for x in $LDFLAGS $LTLIBICONV; do
17790 acl_save_prefix="$prefix"
17791 prefix="$acl_final_prefix"
17792 acl_save_exec_prefix="$exec_prefix"
17793 exec_prefix="$acl_final_exec_prefix"
17795 exec_prefix="$acl_save_exec_prefix"
17796 prefix="$acl_save_prefix"
17800 dir=`echo "X$x" | sed -e 's/^X-L//'`
17801 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17803 found_so="$dir/lib$name.$shlibext"
17804 if test -f "$dir/lib$name.la"; then
17805 found_la="$dir/lib$name.la"
17808 if test -f "$dir/lib$name.$libext"; then
17810 found_a="$dir/lib$name.$libext"
17811 if test -f "$dir/lib$name.la"; then
17812 found_la="$dir/lib$name.la"
17818 if test "X$found_dir" != "X"; then
17823 if test "X$found_dir" != "X"; then
17824 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17825 if test "X$found_so" != "X"; then
17826 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17827 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17830 for x in $ltrpathdirs; do
17831 if test "X$x" = "X$found_dir"; then
17836 if test -z "$haveit"; then
17837 ltrpathdirs="$ltrpathdirs $found_dir"
17839 if test "$hardcode_direct" = yes; then
17840 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17842 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17843 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17845 for x in $rpathdirs; do
17846 if test "X$x" = "X$found_dir"; then
17851 if test -z "$haveit"; then
17852 rpathdirs="$rpathdirs $found_dir"
17856 for x in $LDFLAGS $LIBICONV; do
17858 acl_save_prefix="$prefix"
17859 prefix="$acl_final_prefix"
17860 acl_save_exec_prefix="$exec_prefix"
17861 exec_prefix="$acl_final_exec_prefix"
17863 exec_prefix="$acl_save_exec_prefix"
17864 prefix="$acl_save_prefix"
17866 if test "X$x" = "X-L$found_dir"; then
17871 if test -z "$haveit"; then
17872 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17874 if test "$hardcode_minus_L" != no; then
17875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17877 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17883 if test "X$found_a" != "X"; then
17884 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17889 additional_includedir=
17890 case "$found_dir" in
17892 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17893 additional_includedir="$basedir/include"
17896 if test "X$additional_includedir" != "X"; then
17897 if test "X$additional_includedir" != "X/usr/include"; then
17899 if test "X$additional_includedir" = "X/usr/local/include"; then
17900 if test -n "$GCC"; then
17902 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17906 if test -z "$haveit"; then
17907 for x in $CPPFLAGS $INCICONV; do
17909 acl_save_prefix="$prefix"
17910 prefix="$acl_final_prefix"
17911 acl_save_exec_prefix="$exec_prefix"
17912 exec_prefix="$acl_final_exec_prefix"
17914 exec_prefix="$acl_save_exec_prefix"
17915 prefix="$acl_save_prefix"
17917 if test "X$x" = "X-I$additional_includedir"; then
17922 if test -z "$haveit"; then
17923 if test -d "$additional_includedir"; then
17924 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17930 if test -n "$found_la"; then
17931 save_libdir="$libdir"
17932 case "$found_la" in
17933 */* | *\\*) . "$found_la" ;;
17934 *) . "./$found_la" ;;
17936 libdir="$save_libdir"
17937 for dep in $dependency_libs; do
17940 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17941 if test "X$additional_libdir" != "X/usr/lib"; then
17943 if test "X$additional_libdir" = "X/usr/local/lib"; then
17944 if test -n "$GCC"; then
17946 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17950 if test -z "$haveit"; then
17952 for x in $LDFLAGS $LIBICONV; do
17954 acl_save_prefix="$prefix"
17955 prefix="$acl_final_prefix"
17956 acl_save_exec_prefix="$exec_prefix"
17957 exec_prefix="$acl_final_exec_prefix"
17959 exec_prefix="$acl_save_exec_prefix"
17960 prefix="$acl_save_prefix"
17962 if test "X$x" = "X-L$additional_libdir"; then
17967 if test -z "$haveit"; then
17968 if test -d "$additional_libdir"; then
17969 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17973 for x in $LDFLAGS $LTLIBICONV; do
17975 acl_save_prefix="$prefix"
17976 prefix="$acl_final_prefix"
17977 acl_save_exec_prefix="$exec_prefix"
17978 exec_prefix="$acl_final_exec_prefix"
17980 exec_prefix="$acl_save_exec_prefix"
17981 prefix="$acl_save_prefix"
17983 if test "X$x" = "X-L$additional_libdir"; then
17988 if test -z "$haveit"; then
17989 if test -d "$additional_libdir"; then
17990 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17997 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17998 if test "$enable_rpath" != no; then
18000 for x in $rpathdirs; do
18001 if test "X$x" = "X$dir"; then
18006 if test -z "$haveit"; then
18007 rpathdirs="$rpathdirs $dir"
18010 for x in $ltrpathdirs; do
18011 if test "X$x" = "X$dir"; then
18016 if test -z "$haveit"; then
18017 ltrpathdirs="$ltrpathdirs $dir"
18022 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18025 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18028 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18035 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18036 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18042 if test "X$rpathdirs" != "X"; then
18043 if test -n "$hardcode_libdir_separator"; then
18045 for found_dir in $rpathdirs; do
18046 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18048 acl_save_libdir="$libdir"
18050 eval flag=\"$hardcode_libdir_flag_spec\"
18051 libdir="$acl_save_libdir"
18052 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18054 for found_dir in $rpathdirs; do
18055 acl_save_libdir="$libdir"
18056 libdir="$found_dir"
18057 eval flag=\"$hardcode_libdir_flag_spec\"
18058 libdir="$acl_save_libdir"
18059 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18063 if test "X$ltrpathdirs" != "X"; then
18064 for found_dir in $ltrpathdirs; do
18065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18087 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18088 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18089 $as_echo_n "(cached) " >&6
18091 gt_save_CPPFLAGS="$CPPFLAGS"
18092 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18093 gt_save_LIBS="$LIBS"
18094 LIBS="$LIBS -framework CoreFoundation"
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18097 #include <CFPreferences.h>
18101 CFPreferencesCopyAppValue(NULL, NULL)
18106 if ac_fn_c_try_link "$LINENO"; then :
18107 gt_cv_func_CFPreferencesCopyAppValue=yes
18109 gt_cv_func_CFPreferencesCopyAppValue=no
18111 rm -f core conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18113 CPPFLAGS="$gt_save_CPPFLAGS"
18114 LIBS="$gt_save_LIBS"
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18117 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18118 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18120 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18124 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18125 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18126 $as_echo_n "(cached) " >&6
18128 gt_save_CPPFLAGS="$CPPFLAGS"
18129 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18130 gt_save_LIBS="$LIBS"
18131 LIBS="$LIBS -framework CoreFoundation"
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18134 #include <CFLocale.h>
18138 CFLocaleCopyCurrent();
18143 if ac_fn_c_try_link "$LINENO"; then :
18144 gt_cv_func_CFLocaleCopyCurrent=yes
18146 gt_cv_func_CFLocaleCopyCurrent=no
18148 rm -f core conftest.err conftest.$ac_objext \
18149 conftest$ac_exeext conftest.$ac_ext
18150 CPPFLAGS="$gt_save_CPPFLAGS"
18151 LIBS="$gt_save_LIBS"
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18154 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18155 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18157 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18161 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18162 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18169 $as_echo_n "checking whether NLS is requested... " >&6; }
18170 # Check whether --enable-nls was given.
18171 if test "${enable_nls+set}" = set; then :
18172 enableval=$enable_nls; USE_NLS=$enableval
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18178 $as_echo "$USE_NLS" >&6; }
18187 if test "$USE_NLS" = "yes"; then
18188 gt_use_preinstalled_gnugettext=no
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18196 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18197 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18198 $as_echo_n "(cached) " >&6
18200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h. */
18202 #include <libintl.h>
18203 extern int _nl_msg_cat_cntr;
18204 extern int *_nl_domain_bindings;
18208 bindtextdomain ("", "");
18209 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18214 if ac_fn_c_try_link "$LINENO"; then :
18215 gt_cv_func_gnugettext1_libc=yes
18217 gt_cv_func_gnugettext1_libc=no
18219 rm -f core conftest.err conftest.$ac_objext \
18220 conftest$ac_exeext conftest.$ac_ext
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18223 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18225 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18231 am_save_CPPFLAGS="$CPPFLAGS"
18233 for element in $INCICONV; do
18235 for x in $CPPFLAGS; do
18237 acl_save_prefix="$prefix"
18238 prefix="$acl_final_prefix"
18239 acl_save_exec_prefix="$exec_prefix"
18240 exec_prefix="$acl_final_exec_prefix"
18242 exec_prefix="$acl_save_exec_prefix"
18243 prefix="$acl_save_prefix"
18245 if test "X$x" = "X$element"; then
18250 if test -z "$haveit"; then
18251 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18257 $as_echo_n "checking for iconv... " >&6; }
18258 if ${am_cv_func_iconv+:} false; then :
18259 $as_echo_n "(cached) " >&6
18262 am_cv_func_iconv="no, consider installing GNU libiconv"
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266 #include <stdlib.h>
18271 iconv_t cd = iconv_open("","");
18272 iconv(cd,NULL,NULL,NULL,NULL);
18278 if ac_fn_c_try_link "$LINENO"; then :
18279 am_cv_func_iconv=yes
18281 rm -f core conftest.err conftest.$ac_objext \
18282 conftest$ac_exeext conftest.$ac_ext
18283 if test "$am_cv_func_iconv" != yes; then
18284 am_save_LIBS="$LIBS"
18285 LIBS="$LIBS $LIBICONV"
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 #include <stdlib.h>
18293 iconv_t cd = iconv_open("","");
18294 iconv(cd,NULL,NULL,NULL,NULL);
18300 if ac_fn_c_try_link "$LINENO"; then :
18301 am_cv_lib_iconv=yes
18302 am_cv_func_iconv=yes
18304 rm -f core conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18306 LIBS="$am_save_LIBS"
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18311 $as_echo "$am_cv_func_iconv" >&6; }
18312 if test "$am_cv_func_iconv" = yes; then
18314 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18317 if test "$am_cv_lib_iconv" = yes; then
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18319 $as_echo_n "checking how to link with libiconv... " >&6; }
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18321 $as_echo "$LIBICONV" >&6; }
18323 CPPFLAGS="$am_save_CPPFLAGS"
18335 acl_save_prefix="$prefix"
18336 prefix="$acl_final_prefix"
18337 acl_save_exec_prefix="$exec_prefix"
18338 exec_prefix="$acl_final_exec_prefix"
18340 eval additional_includedir=\"$includedir\"
18341 eval additional_libdir=\"$libdir\"
18343 exec_prefix="$acl_save_exec_prefix"
18344 prefix="$acl_save_prefix"
18347 # Check whether --with-libintl-prefix was given.
18348 if test "${with_libintl_prefix+set}" = set; then :
18349 withval=$with_libintl_prefix;
18350 if test "X$withval" = "Xno"; then
18353 if test "X$withval" = "X"; then
18355 acl_save_prefix="$prefix"
18356 prefix="$acl_final_prefix"
18357 acl_save_exec_prefix="$exec_prefix"
18358 exec_prefix="$acl_final_exec_prefix"
18360 eval additional_includedir=\"$includedir\"
18361 eval additional_libdir=\"$libdir\"
18363 exec_prefix="$acl_save_exec_prefix"
18364 prefix="$acl_save_prefix"
18367 additional_includedir="$withval/include"
18368 additional_libdir="$withval/lib"
18379 names_already_handled=
18380 names_next_round='intl '
18381 while test -n "$names_next_round"; do
18382 names_this_round="$names_next_round"
18384 for name in $names_this_round; do
18386 for n in $names_already_handled; do
18387 if test "$n" = "$name"; then
18388 already_handled=yes
18392 if test -z "$already_handled"; then
18393 names_already_handled="$names_already_handled $name"
18394 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18395 eval value=\"\$HAVE_LIB$uppername\"
18396 if test -n "$value"; then
18397 if test "$value" = yes; then
18398 eval value=\"\$LIB$uppername\"
18399 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18400 eval value=\"\$LTLIB$uppername\"
18401 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18410 if test $use_additional = yes; then
18411 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18412 found_dir="$additional_libdir"
18413 found_so="$additional_libdir/lib$name.$shlibext"
18414 if test -f "$additional_libdir/lib$name.la"; then
18415 found_la="$additional_libdir/lib$name.la"
18418 if test -f "$additional_libdir/lib$name.$libext"; then
18419 found_dir="$additional_libdir"
18420 found_a="$additional_libdir/lib$name.$libext"
18421 if test -f "$additional_libdir/lib$name.la"; then
18422 found_la="$additional_libdir/lib$name.la"
18427 if test "X$found_dir" = "X"; then
18428 for x in $LDFLAGS $LTLIBINTL; do
18430 acl_save_prefix="$prefix"
18431 prefix="$acl_final_prefix"
18432 acl_save_exec_prefix="$exec_prefix"
18433 exec_prefix="$acl_final_exec_prefix"
18435 exec_prefix="$acl_save_exec_prefix"
18436 prefix="$acl_save_prefix"
18440 dir=`echo "X$x" | sed -e 's/^X-L//'`
18441 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18443 found_so="$dir/lib$name.$shlibext"
18444 if test -f "$dir/lib$name.la"; then
18445 found_la="$dir/lib$name.la"
18448 if test -f "$dir/lib$name.$libext"; then
18450 found_a="$dir/lib$name.$libext"
18451 if test -f "$dir/lib$name.la"; then
18452 found_la="$dir/lib$name.la"
18458 if test "X$found_dir" != "X"; then
18463 if test "X$found_dir" != "X"; then
18464 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18465 if test "X$found_so" != "X"; then
18466 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18467 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18470 for x in $ltrpathdirs; do
18471 if test "X$x" = "X$found_dir"; then
18476 if test -z "$haveit"; then
18477 ltrpathdirs="$ltrpathdirs $found_dir"
18479 if test "$hardcode_direct" = yes; then
18480 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18482 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18483 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18485 for x in $rpathdirs; do
18486 if test "X$x" = "X$found_dir"; then
18491 if test -z "$haveit"; then
18492 rpathdirs="$rpathdirs $found_dir"
18496 for x in $LDFLAGS $LIBINTL; do
18498 acl_save_prefix="$prefix"
18499 prefix="$acl_final_prefix"
18500 acl_save_exec_prefix="$exec_prefix"
18501 exec_prefix="$acl_final_exec_prefix"
18503 exec_prefix="$acl_save_exec_prefix"
18504 prefix="$acl_save_prefix"
18506 if test "X$x" = "X-L$found_dir"; then
18511 if test -z "$haveit"; then
18512 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18514 if test "$hardcode_minus_L" != no; then
18515 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18517 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18523 if test "X$found_a" != "X"; then
18524 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18526 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18529 additional_includedir=
18530 case "$found_dir" in
18532 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18533 additional_includedir="$basedir/include"
18536 if test "X$additional_includedir" != "X"; then
18537 if test "X$additional_includedir" != "X/usr/include"; then
18539 if test "X$additional_includedir" = "X/usr/local/include"; then
18540 if test -n "$GCC"; then
18542 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18546 if test -z "$haveit"; then
18547 for x in $CPPFLAGS $INCINTL; do
18549 acl_save_prefix="$prefix"
18550 prefix="$acl_final_prefix"
18551 acl_save_exec_prefix="$exec_prefix"
18552 exec_prefix="$acl_final_exec_prefix"
18554 exec_prefix="$acl_save_exec_prefix"
18555 prefix="$acl_save_prefix"
18557 if test "X$x" = "X-I$additional_includedir"; then
18562 if test -z "$haveit"; then
18563 if test -d "$additional_includedir"; then
18564 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18570 if test -n "$found_la"; then
18571 save_libdir="$libdir"
18572 case "$found_la" in
18573 */* | *\\*) . "$found_la" ;;
18574 *) . "./$found_la" ;;
18576 libdir="$save_libdir"
18577 for dep in $dependency_libs; do
18580 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18581 if test "X$additional_libdir" != "X/usr/lib"; then
18583 if test "X$additional_libdir" = "X/usr/local/lib"; then
18584 if test -n "$GCC"; then
18586 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18590 if test -z "$haveit"; then
18592 for x in $LDFLAGS $LIBINTL; do
18594 acl_save_prefix="$prefix"
18595 prefix="$acl_final_prefix"
18596 acl_save_exec_prefix="$exec_prefix"
18597 exec_prefix="$acl_final_exec_prefix"
18599 exec_prefix="$acl_save_exec_prefix"
18600 prefix="$acl_save_prefix"
18602 if test "X$x" = "X-L$additional_libdir"; then
18607 if test -z "$haveit"; then
18608 if test -d "$additional_libdir"; then
18609 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18613 for x in $LDFLAGS $LTLIBINTL; do
18615 acl_save_prefix="$prefix"
18616 prefix="$acl_final_prefix"
18617 acl_save_exec_prefix="$exec_prefix"
18618 exec_prefix="$acl_final_exec_prefix"
18620 exec_prefix="$acl_save_exec_prefix"
18621 prefix="$acl_save_prefix"
18623 if test "X$x" = "X-L$additional_libdir"; then
18628 if test -z "$haveit"; then
18629 if test -d "$additional_libdir"; then
18630 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18637 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18638 if test "$enable_rpath" != no; then
18640 for x in $rpathdirs; do
18641 if test "X$x" = "X$dir"; then
18646 if test -z "$haveit"; then
18647 rpathdirs="$rpathdirs $dir"
18650 for x in $ltrpathdirs; do
18651 if test "X$x" = "X$dir"; then
18656 if test -z "$haveit"; then
18657 ltrpathdirs="$ltrpathdirs $dir"
18662 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18668 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18669 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18675 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18676 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18682 if test "X$rpathdirs" != "X"; then
18683 if test -n "$hardcode_libdir_separator"; then
18685 for found_dir in $rpathdirs; do
18686 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18688 acl_save_libdir="$libdir"
18690 eval flag=\"$hardcode_libdir_flag_spec\"
18691 libdir="$acl_save_libdir"
18692 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18694 for found_dir in $rpathdirs; do
18695 acl_save_libdir="$libdir"
18696 libdir="$found_dir"
18697 eval flag=\"$hardcode_libdir_flag_spec\"
18698 libdir="$acl_save_libdir"
18699 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18703 if test "X$ltrpathdirs" != "X"; then
18704 for found_dir in $ltrpathdirs; do
18705 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18710 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18711 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18712 $as_echo_n "(cached) " >&6
18714 gt_save_CPPFLAGS="$CPPFLAGS"
18715 CPPFLAGS="$CPPFLAGS $INCINTL"
18716 gt_save_LIBS="$LIBS"
18717 LIBS="$LIBS $LIBINTL"
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18720 #include <libintl.h>
18721 extern int _nl_msg_cat_cntr;
18726 const char *_nl_expand_alias (const char *);
18730 bindtextdomain ("", "");
18731 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18736 if ac_fn_c_try_link "$LINENO"; then :
18737 gt_cv_func_gnugettext1_libintl=yes
18739 gt_cv_func_gnugettext1_libintl=no
18741 rm -f core conftest.err conftest.$ac_objext \
18742 conftest$ac_exeext conftest.$ac_ext
18743 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18744 LIBS="$LIBS $LIBICONV"
18745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18747 #include <libintl.h>
18748 extern int _nl_msg_cat_cntr;
18753 const char *_nl_expand_alias (const char *);
18757 bindtextdomain ("", "");
18758 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18763 if ac_fn_c_try_link "$LINENO"; then :
18764 LIBINTL="$LIBINTL $LIBICONV"
18765 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18766 gt_cv_func_gnugettext1_libintl=yes
18769 rm -f core conftest.err conftest.$ac_objext \
18770 conftest$ac_exeext conftest.$ac_ext
18772 CPPFLAGS="$gt_save_CPPFLAGS"
18773 LIBS="$gt_save_LIBS"
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18776 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18779 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18780 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18781 && test "$PACKAGE" != gettext-runtime \
18782 && test "$PACKAGE" != gettext-tools; }; then
18783 gt_use_preinstalled_gnugettext=yes
18792 if test -n "$INTL_MACOSX_LIBS"; then
18793 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18794 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18795 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18796 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18800 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18801 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18803 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18811 $as_echo_n "checking whether to use NLS... " >&6; }
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18813 $as_echo "$USE_NLS" >&6; }
18814 if test "$USE_NLS" = "yes"; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18816 $as_echo_n "checking where the gettext function comes from... " >&6; }
18817 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18818 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18819 gt_source="external libintl"
18824 gt_source="included intl directory"
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18827 $as_echo "$gt_source" >&6; }
18830 if test "$USE_NLS" = "yes"; then
18832 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18833 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18835 $as_echo_n "checking how to link with libintl... " >&6; }
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18837 $as_echo "$LIBINTL" >&6; }
18839 for element in $INCINTL; do
18841 for x in $CPPFLAGS; do
18843 acl_save_prefix="$prefix"
18844 prefix="$acl_final_prefix"
18845 acl_save_exec_prefix="$exec_prefix"
18846 exec_prefix="$acl_final_exec_prefix"
18848 exec_prefix="$acl_save_exec_prefix"
18849 prefix="$acl_save_prefix"
18851 if test "X$x" = "X$element"; then
18856 if test -z "$haveit"; then
18857 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18864 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18867 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18876 INTLLIBS="$LIBINTL"
18884 os_name=`uname -s 2>/dev/null`
18885 if test x${prefix} = xNONE ; then
18886 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18887 sysconfdir=/etc/bacula
18890 if test `eval echo ${libdir}` = NONE/lib ; then
18893 os_processor=`uname -p 2>/dev/null`
18894 case ${os_processor} in
18909 if test `eval echo ${includedir}` = NONE/include ; then
18910 includedir=/usr/include
18913 if test `eval echo ${datarootdir}` = NONE/share ; then
18914 datarootdir=/usr/share
18919 if test x${exec_prefix} = xNONE ; then
18920 exec_prefix=${prefix}
18923 sysconfdir=`eval echo ${sysconfdir}`
18924 datarootdir=`eval echo ${datarootdir}`
18925 docdir=`eval echo ${docdir}`
18926 htmldir=`eval echo ${htmldir}`
18927 libdir=`eval echo ${libdir}`
18928 includedir=`eval echo ${includedir}`
18929 localedir=`eval echo ${datarootdir}/locale`
18930 cat >>confdefs.h <<_ACEOF
18931 #define SYSCONFDIR "$sysconfdir"
18934 cat >>confdefs.h <<_ACEOF
18935 #define LOCALEDIR "$localedir"
18939 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18940 sbindir=${exec_prefix}/sbin
18942 sbindir=`eval echo ${sbindir}`
18944 if test x$mandir = x'${prefix}/man' ; then
18945 mandir=/usr/share/man
18948 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18949 htmldir=`eval echo ${docdir}html`
18952 if test x$docdir = x'/usr/share/doc/' ; then
18953 docdir=`eval echo ${docdir}bacula`
18957 for ac_prog in msgfmt
18959 # Extract the first word of "$ac_prog", so it can be a program name with args.
18960 set dummy $ac_prog; ac_word=$2
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18962 $as_echo_n "checking for $ac_word... " >&6; }
18963 if ${ac_cv_path_MSGFMT+:} false; then :
18964 $as_echo_n "(cached) " >&6
18968 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972 for as_dir in $PATH
18975 test -z "$as_dir" && as_dir=.
18976 for ac_exec_ext in '' $ac_executable_extensions; do
18977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18978 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18989 MSGFMT=$ac_cv_path_MSGFMT
18990 if test -n "$MSGFMT"; then
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18992 $as_echo "$MSGFMT" >&6; }
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18995 $as_echo "no" >&6; }
18999 test -n "$MSGFMT" && break
19001 test -n "$MSGFMT" || MSGFMT="no"
19003 if test "$MSGFMT" = "no"
19005 echo 'msgfmt program not found, disabling NLS !'
19007 USE_INCLUDED_LIBINTL=no
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19011 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19012 if ${ac_cv_gnu_library_2+:} false; then :
19013 $as_echo_n "(cached) " >&6
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19018 #include <features.h>
19019 #ifdef __GNU_LIBRARY__
19020 #if (__GLIBC__ >= 2)
19026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19027 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19028 ac_cv_gnu_library_2=yes
19030 ac_cv_gnu_library_2=no
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19038 $as_echo "$ac_cv_gnu_library_2" >&6; }
19040 GLIBC2="$ac_cv_gnu_library_2"
19043 if test -n "$ac_tool_prefix"; then
19044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19047 $as_echo_n "checking for $ac_word... " >&6; }
19048 if ${ac_cv_prog_RANLIB+:} false; then :
19049 $as_echo_n "(cached) " >&6
19051 if test -n "$RANLIB"; then
19052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19055 for as_dir in $PATH
19058 test -z "$as_dir" && as_dir=.
19059 for ac_exec_ext in '' $ac_executable_extensions; do
19060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19071 RANLIB=$ac_cv_prog_RANLIB
19072 if test -n "$RANLIB"; then
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19074 $as_echo "$RANLIB" >&6; }
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077 $as_echo "no" >&6; }
19082 if test -z "$ac_cv_prog_RANLIB"; then
19083 ac_ct_RANLIB=$RANLIB
19084 # Extract the first word of "ranlib", so it can be a program name with args.
19085 set dummy ranlib; ac_word=$2
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19087 $as_echo_n "checking for $ac_word... " >&6; }
19088 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19089 $as_echo_n "(cached) " >&6
19091 if test -n "$ac_ct_RANLIB"; then
19092 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19095 for as_dir in $PATH
19098 test -z "$as_dir" && as_dir=.
19099 for ac_exec_ext in '' $ac_executable_extensions; do
19100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19101 ac_cv_prog_ac_ct_RANLIB="ranlib"
19102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19111 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19112 if test -n "$ac_ct_RANLIB"; then
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19114 $as_echo "$ac_ct_RANLIB" >&6; }
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19117 $as_echo "no" >&6; }
19120 if test "x$ac_ct_RANLIB" = x; then
19123 case $cross_compiling:$ac_tool_warned in
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19127 ac_tool_warned=yes ;;
19129 RANLIB=$ac_ct_RANLIB
19132 RANLIB="$ac_cv_prog_RANLIB"
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19137 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19138 if ${ac_cv_lib_cposix_strerror+:} false; then :
19139 $as_echo_n "(cached) " >&6
19141 ac_check_lib_save_LIBS=$LIBS
19142 LIBS="-lcposix $LIBS"
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19146 /* Override any GCC internal prototype to avoid an error.
19147 Use char because int might match the return type of a GCC
19148 builtin and then its argument prototype would still apply. */
19156 return strerror ();
19161 if ac_fn_c_try_link "$LINENO"; then :
19162 ac_cv_lib_cposix_strerror=yes
19164 ac_cv_lib_cposix_strerror=no
19166 rm -f core conftest.err conftest.$ac_objext \
19167 conftest$ac_exeext conftest.$ac_ext
19168 LIBS=$ac_check_lib_save_LIBS
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19171 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19172 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19173 LIBS="$LIBS -lcposix"
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19179 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19180 if ${ac_cv_c_const+:} false; then :
19181 $as_echo_n "(cached) " >&6
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19189 /* FIXME: Include the comments suggested by Paul. */
19190 #ifndef __cplusplus
19191 /* Ultrix mips cc rejects this. */
19192 typedef int charset[2];
19194 /* SunOS 4.1.1 cc rejects this. */
19195 char const *const *pcpcc;
19197 /* NEC SVR4.0.2 mips cc rejects this. */
19198 struct point {int x, y;};
19199 static struct point const zero = {0,0};
19200 /* AIX XL C 1.02.0.0 rejects this.
19201 It does not let you subtract one const X* pointer from another in
19202 an arm of an if-expression whose if-part is not a constant
19204 const char *g = "string";
19205 pcpcc = &g + (g ? g-g : 0);
19206 /* HPUX 7.0 cc rejects these. */
19208 ppc = (char**) pcpcc;
19209 pcpcc = (char const *const *) ppc;
19210 { /* SCO 3.2v4 cc rejects this. */
19212 char const *s = 0 ? (char *) 0 : (char const *) 0;
19217 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19218 int x[] = {25, 17};
19219 const int *foo = &x[0];
19222 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19223 typedef const int *iptr;
19227 { /* AIX XL C 1.02.0.0 rejects this saying
19228 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19229 struct s { int j; const int *ap[3]; };
19230 struct s *b; b->j = 5;
19232 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19233 const int foo = 10;
19234 if (!foo) return 0;
19236 return !cs[0] && !zero.x;
19243 if ac_fn_c_try_compile "$LINENO"; then :
19248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19251 $as_echo "$ac_cv_c_const" >&6; }
19252 if test $ac_cv_c_const = no; then
19254 $as_echo "#define const /**/" >>confdefs.h
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19260 $as_echo_n "checking for signed... " >&6; }
19261 if ${bh_cv_c_signed+:} false; then :
19262 $as_echo_n "(cached) " >&6
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19275 if ac_fn_c_try_compile "$LINENO"; then :
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19283 $as_echo "$bh_cv_c_signed" >&6; }
19284 if test $bh_cv_c_signed = no; then
19286 $as_echo "#define signed /**/" >>confdefs.h
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19291 $as_echo_n "checking for inline... " >&6; }
19292 if ${ac_cv_c_inline+:} false; then :
19293 $as_echo_n "(cached) " >&6
19296 for ac_kw in inline __inline__ __inline; do
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19299 #ifndef __cplusplus
19301 static $ac_kw foo_t static_foo () {return 0; }
19302 $ac_kw foo_t foo () {return 0; }
19306 if ac_fn_c_try_compile "$LINENO"; then :
19307 ac_cv_c_inline=$ac_kw
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19310 test "$ac_cv_c_inline" != no && break
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19315 $as_echo "$ac_cv_c_inline" >&6; }
19317 case $ac_cv_c_inline in
19320 case $ac_cv_c_inline in
19322 *) ac_val=$ac_cv_c_inline;;
19324 cat >>confdefs.h <<_ACEOF
19325 #ifndef __cplusplus
19326 #define inline $ac_val
19332 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19333 if test "x$ac_cv_type_off_t" = xyes; then :
19337 cat >>confdefs.h <<_ACEOF
19338 #define off_t long int
19343 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19344 if test "x$ac_cv_type_size_t" = xyes; then :
19348 cat >>confdefs.h <<_ACEOF
19349 #define size_t unsigned int
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19356 $as_echo_n "checking for long long... " >&6; }
19357 if ${ac_cv_type_long_long+:} false; then :
19358 $as_echo_n "(cached) " >&6
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h. */
19362 long long ll = 1LL; int i = 63;
19366 long long llmax = (long long) -1;
19367 return ll << i | ll >> i | llmax / ll | llmax % ll;
19372 if ac_fn_c_try_link "$LINENO"; then :
19373 ac_cv_type_long_long=yes
19375 ac_cv_type_long_long=no
19377 rm -f core conftest.err conftest.$ac_objext \
19378 conftest$ac_exeext conftest.$ac_ext
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19381 $as_echo "$ac_cv_type_long_long" >&6; }
19382 if test $ac_cv_type_long_long = yes; then
19384 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19390 $as_echo_n "checking for long double... " >&6; }
19391 if ${gt_cv_c_long_double+:} false; then :
19392 $as_echo_n "(cached) " >&6
19394 if test "$GCC" = yes; then
19395 gt_cv_c_long_double=yes
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19400 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19401 long double foo = 0.0;
19402 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19403 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19413 if ac_fn_c_try_compile "$LINENO"; then :
19414 gt_cv_c_long_double=yes
19416 gt_cv_c_long_double=no
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19422 $as_echo "$gt_cv_c_long_double" >&6; }
19423 if test $gt_cv_c_long_double = yes; then
19425 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19431 $as_echo_n "checking for wchar_t... " >&6; }
19432 if ${gt_cv_c_wchar_t+:} false; then :
19433 $as_echo_n "(cached) " >&6
19435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h. */
19437 #include <stddef.h>
19438 wchar_t foo = (wchar_t)'\0';
19447 if ac_fn_c_try_compile "$LINENO"; then :
19448 gt_cv_c_wchar_t=yes
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19455 $as_echo "$gt_cv_c_wchar_t" >&6; }
19456 if test $gt_cv_c_wchar_t = yes; then
19458 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19464 $as_echo_n "checking for wint_t... " >&6; }
19465 if ${gt_cv_c_wint_t+:} false; then :
19466 $as_echo_n "(cached) " >&6
19468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19471 wint_t foo = (wchar_t)'\0';
19480 if ac_fn_c_try_compile "$LINENO"; then :
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19488 $as_echo "$gt_cv_c_wint_t" >&6; }
19489 if test $gt_cv_c_wint_t = yes; then
19491 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19497 $as_echo_n "checking for inttypes.h... " >&6; }
19498 if ${gl_cv_header_inttypes_h+:} false; then :
19499 $as_echo_n "(cached) " >&6
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19503 #include <sys/types.h>
19504 #include <inttypes.h>
19508 uintmax_t i = (uintmax_t) -1;
19513 if ac_fn_c_try_compile "$LINENO"; then :
19514 gl_cv_header_inttypes_h=yes
19516 gl_cv_header_inttypes_h=no
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19521 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19522 if test $gl_cv_header_inttypes_h = yes; then
19524 cat >>confdefs.h <<_ACEOF
19525 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19532 $as_echo_n "checking for stdint.h... " >&6; }
19533 if ${gl_cv_header_stdint_h+:} false; then :
19534 $as_echo_n "(cached) " >&6
19536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h. */
19538 #include <sys/types.h>
19539 #include <stdint.h>
19543 uintmax_t i = (uintmax_t) -1;
19548 if ac_fn_c_try_compile "$LINENO"; then :
19549 gl_cv_header_stdint_h=yes
19551 gl_cv_header_stdint_h=no
19553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19556 $as_echo "$gl_cv_header_stdint_h" >&6; }
19557 if test $gl_cv_header_stdint_h = yes; then
19559 cat >>confdefs.h <<_ACEOF
19560 #define HAVE_STDINT_H_WITH_UINTMAX 1
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19569 $as_echo_n "checking for intmax_t... " >&6; }
19570 if ${gt_cv_c_intmax_t+:} false; then :
19571 $as_echo_n "(cached) " >&6
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19576 #include <stddef.h>
19577 #include <stdlib.h>
19578 #if HAVE_STDINT_H_WITH_UINTMAX
19579 #include <stdint.h>
19581 #if HAVE_INTTYPES_H_WITH_UINTMAX
19582 #include <inttypes.h>
19593 if ac_fn_c_try_compile "$LINENO"; then :
19594 gt_cv_c_intmax_t=yes
19596 gt_cv_c_intmax_t=no
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19601 $as_echo "$gt_cv_c_intmax_t" >&6; }
19602 if test $gt_cv_c_intmax_t = yes; then
19604 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19611 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19612 if ${gt_cv_func_printf_posix+:} false; then :
19613 $as_echo_n "(cached) " >&6
19616 if test "$cross_compiling" = yes; then :
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19621 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19627 $EGREP "notposix" >/dev/null 2>&1; then :
19628 gt_cv_func_printf_posix="guessing no"
19630 gt_cv_func_printf_posix="guessing yes"
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19640 #include <string.h>
19641 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19642 dollar expansion (possibly an autoconf bug). */
19643 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19644 static char buf[100];
19647 sprintf (buf, format, 33, 55);
19648 return (strcmp (buf, "55 33") != 0);
19651 if ac_fn_c_try_run "$LINENO"; then :
19652 gt_cv_func_printf_posix=yes
19654 gt_cv_func_printf_posix=no
19656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19657 conftest.$ac_objext conftest.beam conftest.$ac_ext
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19663 $as_echo "$gt_cv_func_printf_posix" >&6; }
19664 case $gt_cv_func_printf_posix in
19667 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19672 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19673 # for constant arguments. Useless!
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19675 $as_echo_n "checking for working alloca.h... " >&6; }
19676 if ${ac_cv_working_alloca_h+:} false; then :
19677 $as_echo_n "(cached) " >&6
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19681 #include <alloca.h>
19685 char *p = (char *) alloca (2 * sizeof (int));
19691 if ac_fn_c_try_link "$LINENO"; then :
19692 ac_cv_working_alloca_h=yes
19694 ac_cv_working_alloca_h=no
19696 rm -f core conftest.err conftest.$ac_objext \
19697 conftest$ac_exeext conftest.$ac_ext
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19700 $as_echo "$ac_cv_working_alloca_h" >&6; }
19701 if test $ac_cv_working_alloca_h = yes; then
19703 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19708 $as_echo_n "checking for alloca... " >&6; }
19709 if ${ac_cv_func_alloca_works+:} false; then :
19710 $as_echo_n "(cached) " >&6
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h. */
19715 # define alloca __builtin_alloca
19718 # include <malloc.h>
19719 # define alloca _alloca
19721 # ifdef HAVE_ALLOCA_H
19722 # include <alloca.h>
19727 # ifndef alloca /* predefined by HP cc +Olibcalls */
19728 void *alloca (size_t);
19738 char *p = (char *) alloca (1);
19744 if ac_fn_c_try_link "$LINENO"; then :
19745 ac_cv_func_alloca_works=yes
19747 ac_cv_func_alloca_works=no
19749 rm -f core conftest.err conftest.$ac_objext \
19750 conftest$ac_exeext conftest.$ac_ext
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19753 $as_echo "$ac_cv_func_alloca_works" >&6; }
19755 if test $ac_cv_func_alloca_works = yes; then
19757 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19760 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19761 # that cause trouble. Some versions do not even contain alloca or
19762 # contain a buggy version. If you still want to use their alloca,
19763 # use ar to extract alloca.o from them instead of compiling alloca.c.
19765 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19767 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19771 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19772 if ${ac_cv_os_cray+:} false; then :
19773 $as_echo_n "(cached) " >&6
19775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776 /* end confdefs.h. */
19777 #if defined CRAY && ! defined CRAY2
19784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19785 $EGREP "webecray" >/dev/null 2>&1; then :
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19794 $as_echo "$ac_cv_os_cray" >&6; }
19795 if test $ac_cv_os_cray = yes; then
19796 for ac_func in _getb67 GETB67 getb67; do
19797 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19798 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19799 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19801 cat >>confdefs.h <<_ACEOF
19802 #define CRAY_STACKSEG_END $ac_func
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19812 $as_echo_n "checking stack direction for C alloca... " >&6; }
19813 if ${ac_cv_c_stack_direction+:} false; then :
19814 $as_echo_n "(cached) " >&6
19816 if test "$cross_compiling" = yes; then :
19817 ac_cv_c_stack_direction=0
19819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820 /* end confdefs.h. */
19821 $ac_includes_default
19823 find_stack_direction ()
19825 static char *addr = 0;
19830 return find_stack_direction ();
19833 return (&dummy > addr) ? 1 : -1;
19839 return find_stack_direction () < 0;
19842 if ac_fn_c_try_run "$LINENO"; then :
19843 ac_cv_c_stack_direction=1
19845 ac_cv_c_stack_direction=-1
19847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19848 conftest.$ac_objext conftest.beam conftest.$ac_ext
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19853 $as_echo "$ac_cv_c_stack_direction" >&6; }
19854 cat >>confdefs.h <<_ACEOF
19855 #define STACK_DIRECTION $ac_cv_c_stack_direction
19864 for ac_header in $ac_header_list
19866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19867 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19870 cat >>confdefs.h <<_ACEOF
19871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19885 for ac_func in getpagesize
19887 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19888 if test "x$ac_cv_func_getpagesize" = xyes; then :
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_GETPAGESIZE 1
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19897 $as_echo_n "checking for working mmap... " >&6; }
19898 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19899 $as_echo_n "(cached) " >&6
19901 if test "$cross_compiling" = yes; then :
19902 ac_cv_func_mmap_fixed_mapped=no
19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19906 $ac_includes_default
19907 /* malloc might have been renamed as rpl_malloc. */
19910 /* Thanks to Mike Haertel and Jim Avera for this test.
19911 Here is a matrix of mmap possibilities:
19912 mmap private not fixed
19913 mmap private fixed at somewhere currently unmapped
19914 mmap private fixed at somewhere already mapped
19915 mmap shared not fixed
19916 mmap shared fixed at somewhere currently unmapped
19917 mmap shared fixed at somewhere already mapped
19918 For private mappings, we should verify that changes cannot be read()
19919 back from the file, nor mmap's back from the file at a different
19920 address. (There have been systems where private was not correctly
19921 implemented like the infamous i386 svr4.0, and systems where the
19922 VM page cache was not coherent with the file system buffer cache
19923 like early versions of FreeBSD and possibly contemporary NetBSD.)
19924 For shared mappings, we should conversely verify that changes get
19925 propagated back to all the places they're supposed to be.
19927 Grep wants private fixed already mapped.
19928 The main things grep needs to know about mmap are:
19929 * does it exist and is it safe to write into the mmap'd area
19930 * how to use it (BSD variants) */
19933 #include <sys/mman.h>
19935 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19939 /* This mess was copied from the GNU getpagesize.h. */
19940 #ifndef HAVE_GETPAGESIZE
19941 # ifdef _SC_PAGESIZE
19942 # define getpagesize() sysconf(_SC_PAGESIZE)
19943 # else /* no _SC_PAGESIZE */
19944 # ifdef HAVE_SYS_PARAM_H
19945 # include <sys/param.h>
19946 # ifdef EXEC_PAGESIZE
19947 # define getpagesize() EXEC_PAGESIZE
19948 # else /* no EXEC_PAGESIZE */
19950 # define getpagesize() NBPG * CLSIZE
19953 # endif /* no CLSIZE */
19954 # else /* no NBPG */
19956 # define getpagesize() NBPC
19957 # else /* no NBPC */
19959 # define getpagesize() PAGESIZE
19960 # endif /* PAGESIZE */
19961 # endif /* no NBPC */
19962 # endif /* no NBPG */
19963 # endif /* no EXEC_PAGESIZE */
19964 # else /* no HAVE_SYS_PARAM_H */
19965 # define getpagesize() 8192 /* punt totally */
19966 # endif /* no HAVE_SYS_PARAM_H */
19967 # endif /* no _SC_PAGESIZE */
19969 #endif /* no HAVE_GETPAGESIZE */
19974 char *data, *data2, *data3;
19975 const char *cdata2;
19979 pagesize = getpagesize ();
19981 /* First, make a file with some known garbage in it. */
19982 data = (char *) malloc (pagesize);
19985 for (i = 0; i < pagesize; ++i)
19986 *(data + i) = rand ();
19988 fd = creat ("conftest.mmap", 0600);
19991 if (write (fd, data, pagesize) != pagesize)
19995 /* Next, check that the tail of a page is zero-filled. File must have
19996 non-zero length, otherwise we risk SIGBUS for entire page. */
19997 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20001 if (write (fd2, cdata2, 1) != 1)
20003 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20004 if (data2 == MAP_FAILED)
20006 for (i = 0; i < pagesize; ++i)
20010 if (munmap (data2, pagesize))
20013 /* Next, try to mmap the file at a fixed address which already has
20014 something else allocated at it. If we can, also make sure that
20015 we see the same garbage. */
20016 fd = open ("conftest.mmap", O_RDWR);
20019 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20020 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20022 for (i = 0; i < pagesize; ++i)
20023 if (*(data + i) != *(data2 + i))
20026 /* Finally, make sure that changes to the mapped area do not
20027 percolate back to the file as seen by read(). (This is a bug on
20028 some variants of i386 svr4.0.) */
20029 for (i = 0; i < pagesize; ++i)
20030 *(data2 + i) = *(data2 + i) + 1;
20031 data3 = (char *) malloc (pagesize);
20034 if (read (fd, data3, pagesize) != pagesize)
20036 for (i = 0; i < pagesize; ++i)
20037 if (*(data + i) != *(data3 + i))
20043 if ac_fn_c_try_run "$LINENO"; then :
20044 ac_cv_func_mmap_fixed_mapped=yes
20046 ac_cv_func_mmap_fixed_mapped=no
20048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20049 conftest.$ac_objext conftest.beam conftest.$ac_ext
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20054 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20055 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20057 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20060 rm -f conftest.mmap conftest.txt
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20064 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20065 if ${ac_cv_gnu_library_2_1+:} false; then :
20066 $as_echo_n "(cached) " >&6
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20071 #include <features.h>
20072 #ifdef __GNU_LIBRARY__
20073 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20080 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20081 ac_cv_gnu_library_2_1=yes
20083 ac_cv_gnu_library_2_1=no
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20091 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20093 GLIBC21="$ac_cv_gnu_library_2_1"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20099 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20100 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20101 $as_echo_n "(cached) " >&6
20104 if test "$cross_compiling" = yes; then :
20106 # Guess based on the CPU.
20107 case "$host_cpu" in
20108 alpha* | i3456786 | m68k | s390*)
20109 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20111 gt_cv_int_divbyzero_sigfpe="guessing no";;
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20118 #include <stdlib.h>
20119 #include <signal.h>
20123 sigfpe_handler (int sig)
20125 sigfpe_handler (sig) int sig;
20128 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20129 exit (sig != SIGFPE);
20139 signal (SIGFPE, sigfpe_handler);
20140 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20141 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20142 signal (SIGTRAP, sigfpe_handler);
20144 /* Linux/SPARC yields signal SIGILL. */
20145 #if defined (__sparc__) && defined (__linux__)
20146 signal (SIGILL, sigfpe_handler);
20155 if ac_fn_c_try_run "$LINENO"; then :
20156 gt_cv_int_divbyzero_sigfpe=yes
20158 gt_cv_int_divbyzero_sigfpe=no
20160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20161 conftest.$ac_objext conftest.beam conftest.$ac_ext
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20167 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20168 case "$gt_cv_int_divbyzero_sigfpe" in
20173 cat >>confdefs.h <<_ACEOF
20174 #define INTDIV0_RAISES_SIGFPE $value
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20180 $as_echo_n "checking for unsigned long long... " >&6; }
20181 if ${ac_cv_type_unsigned_long_long+:} false; then :
20182 $as_echo_n "(cached) " >&6
20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20186 unsigned long long ull = 1ULL; int i = 63;
20190 unsigned long long ullmax = (unsigned long long) -1;
20191 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20196 if ac_fn_c_try_link "$LINENO"; then :
20197 ac_cv_type_unsigned_long_long=yes
20199 ac_cv_type_unsigned_long_long=no
20201 rm -f core conftest.err conftest.$ac_objext \
20202 conftest$ac_exeext conftest.$ac_ext
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20205 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20206 if test $ac_cv_type_unsigned_long_long = yes; then
20208 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20215 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20217 test $ac_cv_type_unsigned_long_long = yes \
20218 && ac_type='unsigned long long' \
20219 || ac_type='unsigned long'
20221 cat >>confdefs.h <<_ACEOF
20222 #define uintmax_t $ac_type
20227 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20233 $as_echo_n "checking for inttypes.h... " >&6; }
20234 if ${gt_cv_header_inttypes_h+:} false; then :
20235 $as_echo_n "(cached) " >&6
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20240 #include <sys/types.h>
20241 #include <inttypes.h>
20250 if ac_fn_c_try_compile "$LINENO"; then :
20251 gt_cv_header_inttypes_h=yes
20253 gt_cv_header_inttypes_h=no
20255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20259 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20260 if test $gt_cv_header_inttypes_h = yes; then
20262 cat >>confdefs.h <<_ACEOF
20263 #define HAVE_INTTYPES_H 1
20270 if test $gt_cv_header_inttypes_h = yes; then
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20272 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20273 if ${gt_cv_inttypes_pri_broken+:} false; then :
20274 $as_echo_n "(cached) " >&6
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20279 #include <inttypes.h>
20292 if ac_fn_c_try_compile "$LINENO"; then :
20293 gt_cv_inttypes_pri_broken=no
20295 gt_cv_inttypes_pri_broken=yes
20297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20301 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20303 if test "$gt_cv_inttypes_pri_broken" = yes; then
20305 cat >>confdefs.h <<_ACEOF
20306 #define PRI_MACROS_BROKEN 1
20312 for ac_header in stdint.h
20314 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20315 if test "x$ac_cv_header_stdint_h" = xyes; then :
20316 cat >>confdefs.h <<_ACEOF
20317 #define HAVE_STDINT_H 1
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20325 $as_echo_n "checking for SIZE_MAX... " >&6; }
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20330 #include <limits.h>
20332 #include <stdint.h>
20339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20340 $EGREP "Found it" >/dev/null 2>&1; then :
20345 if test -z "$result"; then
20346 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20353 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20360 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20367 if test "$fits_in_uint" = 1; then
20368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h. */
20370 #include <stddef.h>
20372 extern unsigned long foo;
20382 if ac_fn_c_try_compile "$LINENO"; then :
20385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20387 if test -z "$result"; then
20388 if test "$fits_in_uint" = 1; then
20389 result="$res_hi$res_lo"U
20391 result="$res_hi$res_lo"UL
20394 result='~(size_t)0'
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20398 $as_echo "$result" >&6; }
20399 if test "$result" != yes; then
20401 cat >>confdefs.h <<_ACEOF
20402 #define SIZE_MAX $result
20410 for ac_header in stdint.h
20412 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20413 if test "x$ac_cv_header_stdint_h" = xyes; then :
20414 cat >>confdefs.h <<_ACEOF
20415 #define HAVE_STDINT_H 1
20429 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20430 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20434 $as_echo "#define ptrdiff_t long" >>confdefs.h
20439 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20440 stdlib.h string.h unistd.h sys/param.h
20442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20443 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20445 cat >>confdefs.h <<_ACEOF
20446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20453 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20454 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20455 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20459 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20460 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20461 cat >>confdefs.h <<_ACEOF
20462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20471 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20472 if ${ac_cv_have_decl__snprintf+:} false; then :
20473 $as_echo_n "(cached) " >&6
20475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20476 /* end confdefs.h. */
20483 char *p = (char *) _snprintf;
20490 if ac_fn_c_try_compile "$LINENO"; then :
20491 ac_cv_have_decl__snprintf=yes
20493 ac_cv_have_decl__snprintf=no
20495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20498 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20499 if test $ac_cv_have_decl__snprintf = yes; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define HAVE_DECL__SNPRINTF $gt_value
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20512 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20513 if ${ac_cv_have_decl__snwprintf+:} false; then :
20514 $as_echo_n "(cached) " >&6
20516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20517 /* end confdefs.h. */
20524 char *p = (char *) _snwprintf;
20531 if ac_fn_c_try_compile "$LINENO"; then :
20532 ac_cv_have_decl__snwprintf=yes
20534 ac_cv_have_decl__snwprintf=no
20536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20539 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20540 if test $ac_cv_have_decl__snwprintf = yes; then
20546 cat >>confdefs.h <<_ACEOF
20547 #define HAVE_DECL__SNWPRINTF $gt_value
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20554 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20555 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20556 $as_echo_n "(cached) " >&6
20558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h. */
20565 #ifndef feof_unlocked
20566 char *p = (char *) feof_unlocked;
20573 if ac_fn_c_try_compile "$LINENO"; then :
20574 ac_cv_have_decl_feof_unlocked=yes
20576 ac_cv_have_decl_feof_unlocked=no
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20581 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20582 if test $ac_cv_have_decl_feof_unlocked = yes; then
20588 cat >>confdefs.h <<_ACEOF
20589 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20595 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20596 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20597 $as_echo_n "(cached) " >&6
20599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20600 /* end confdefs.h. */
20606 #ifndef fgets_unlocked
20607 char *p = (char *) fgets_unlocked;
20614 if ac_fn_c_try_compile "$LINENO"; then :
20615 ac_cv_have_decl_fgets_unlocked=yes
20617 ac_cv_have_decl_fgets_unlocked=no
20619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20622 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20623 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20629 cat >>confdefs.h <<_ACEOF
20630 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20636 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20637 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20638 $as_echo_n "(cached) " >&6
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20647 #ifndef getc_unlocked
20648 char *p = (char *) getc_unlocked;
20655 if ac_fn_c_try_compile "$LINENO"; then :
20656 ac_cv_have_decl_getc_unlocked=yes
20658 ac_cv_have_decl_getc_unlocked=no
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20663 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20664 if test $ac_cv_have_decl_getc_unlocked = yes; then
20670 cat >>confdefs.h <<_ACEOF
20671 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20676 case $gt_cv_func_printf_posix in
20677 *yes) HAVE_POSIX_PRINTF=1 ;;
20678 *) HAVE_POSIX_PRINTF=0 ;;
20681 if test "$ac_cv_func_asprintf" = yes; then
20687 if test "$ac_cv_func_snprintf" = yes; then
20693 if test "$ac_cv_func_wprintf" = yes; then
20705 am_save_CPPFLAGS="$CPPFLAGS"
20707 for element in $INCICONV; do
20709 for x in $CPPFLAGS; do
20711 acl_save_prefix="$prefix"
20712 prefix="$acl_final_prefix"
20713 acl_save_exec_prefix="$exec_prefix"
20714 exec_prefix="$acl_final_exec_prefix"
20716 exec_prefix="$acl_save_exec_prefix"
20717 prefix="$acl_save_prefix"
20719 if test "X$x" = "X$element"; then
20724 if test -z "$haveit"; then
20725 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20731 $as_echo_n "checking for iconv... " >&6; }
20732 if ${am_cv_func_iconv+:} false; then :
20733 $as_echo_n "(cached) " >&6
20736 am_cv_func_iconv="no, consider installing GNU libiconv"
20738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20740 #include <stdlib.h>
20745 iconv_t cd = iconv_open("","");
20746 iconv(cd,NULL,NULL,NULL,NULL);
20752 if ac_fn_c_try_link "$LINENO"; then :
20753 am_cv_func_iconv=yes
20755 rm -f core conftest.err conftest.$ac_objext \
20756 conftest$ac_exeext conftest.$ac_ext
20757 if test "$am_cv_func_iconv" != yes; then
20758 am_save_LIBS="$LIBS"
20759 LIBS="$LIBS $LIBICONV"
20760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761 /* end confdefs.h. */
20762 #include <stdlib.h>
20767 iconv_t cd = iconv_open("","");
20768 iconv(cd,NULL,NULL,NULL,NULL);
20774 if ac_fn_c_try_link "$LINENO"; then :
20775 am_cv_lib_iconv=yes
20776 am_cv_func_iconv=yes
20778 rm -f core conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20780 LIBS="$am_save_LIBS"
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20785 $as_echo "$am_cv_func_iconv" >&6; }
20786 if test "$am_cv_func_iconv" = yes; then
20788 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20791 if test "$am_cv_lib_iconv" = yes; then
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20793 $as_echo_n "checking how to link with libiconv... " >&6; }
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20795 $as_echo "$LIBICONV" >&6; }
20797 CPPFLAGS="$am_save_CPPFLAGS"
20804 if test "$am_cv_func_iconv" = yes; then
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20806 $as_echo_n "checking for iconv declaration... " >&6; }
20807 if ${am_cv_proto_iconv+:} false; then :
20808 $as_echo_n "(cached) " >&6
20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20814 #include <stdlib.h>
20820 #if defined(__STDC__) || defined(__cplusplus)
20821 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20834 if ac_fn_c_try_compile "$LINENO"; then :
20835 am_cv_proto_iconv_arg1=""
20837 am_cv_proto_iconv_arg1="const"
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840 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);"
20843 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20845 }$am_cv_proto_iconv" >&5
20847 }$am_cv_proto_iconv" >&6; }
20849 cat >>confdefs.h <<_ACEOF
20850 #define ICONV_CONST $am_cv_proto_iconv_arg1
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20857 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20858 if ${am_cv_langinfo_codeset+:} false; then :
20859 $as_echo_n "(cached) " >&6
20861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862 /* end confdefs.h. */
20863 #include <langinfo.h>
20867 char* cs = nl_langinfo(CODESET);
20872 if ac_fn_c_try_link "$LINENO"; then :
20873 am_cv_langinfo_codeset=yes
20875 am_cv_langinfo_codeset=no
20877 rm -f core conftest.err conftest.$ac_objext \
20878 conftest$ac_exeext conftest.$ac_ext
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20882 $as_echo "$am_cv_langinfo_codeset" >&6; }
20883 if test $am_cv_langinfo_codeset = yes; then
20885 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20889 if test $ac_cv_header_locale_h = yes; then
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20892 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20893 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20894 $as_echo_n "(cached) " >&6
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20898 #include <locale.h>
20907 if ac_fn_c_try_link "$LINENO"; then :
20908 gt_cv_val_LC_MESSAGES=yes
20910 gt_cv_val_LC_MESSAGES=no
20912 rm -f core conftest.err conftest.$ac_objext \
20913 conftest$ac_exeext conftest.$ac_ext
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20916 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20917 if test $gt_cv_val_LC_MESSAGES = yes; then
20919 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20925 if test -n "$INTL_MACOSX_LIBS"; then
20926 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20929 for ac_prog in bison
20931 # Extract the first word of "$ac_prog", so it can be a program name with args.
20932 set dummy $ac_prog; ac_word=$2
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20934 $as_echo_n "checking for $ac_word... " >&6; }
20935 if ${ac_cv_prog_INTLBISON+:} false; then :
20936 $as_echo_n "(cached) " >&6
20938 if test -n "$INTLBISON"; then
20939 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20942 for as_dir in $PATH
20945 test -z "$as_dir" && as_dir=.
20946 for ac_exec_ext in '' $ac_executable_extensions; do
20947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20948 ac_cv_prog_INTLBISON="$ac_prog"
20949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20958 INTLBISON=$ac_cv_prog_INTLBISON
20959 if test -n "$INTLBISON"; then
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20961 $as_echo "$INTLBISON" >&6; }
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964 $as_echo "no" >&6; }
20968 test -n "$INTLBISON" && break
20971 if test -z "$INTLBISON"; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20975 $as_echo_n "checking version of bison... " >&6; }
20976 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20977 case $ac_prog_version in
20978 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20979 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20980 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20981 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20984 $as_echo "$ac_prog_version" >&6; }
20986 if test $ac_verc_fail = yes; then
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21006 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21007 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21008 $as_echo_n "(cached) " >&6
21010 gt_save_CPPFLAGS="$CPPFLAGS"
21011 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21012 gt_save_LIBS="$LIBS"
21013 LIBS="$LIBS -framework CoreFoundation"
21014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015 /* end confdefs.h. */
21016 #include <CFPreferences.h>
21020 CFPreferencesCopyAppValue(NULL, NULL)
21025 if ac_fn_c_try_link "$LINENO"; then :
21026 gt_cv_func_CFPreferencesCopyAppValue=yes
21028 gt_cv_func_CFPreferencesCopyAppValue=no
21030 rm -f core conftest.err conftest.$ac_objext \
21031 conftest$ac_exeext conftest.$ac_ext
21032 CPPFLAGS="$gt_save_CPPFLAGS"
21033 LIBS="$gt_save_LIBS"
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21036 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21037 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21039 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21043 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21044 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21045 $as_echo_n "(cached) " >&6
21047 gt_save_CPPFLAGS="$CPPFLAGS"
21048 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21049 gt_save_LIBS="$LIBS"
21050 LIBS="$LIBS -framework CoreFoundation"
21051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h. */
21053 #include <CFLocale.h>
21057 CFLocaleCopyCurrent();
21062 if ac_fn_c_try_link "$LINENO"; then :
21063 gt_cv_func_CFLocaleCopyCurrent=yes
21065 gt_cv_func_CFLocaleCopyCurrent=no
21067 rm -f core conftest.err conftest.$ac_objext \
21068 conftest$ac_exeext conftest.$ac_ext
21069 CPPFLAGS="$gt_save_CPPFLAGS"
21070 LIBS="$gt_save_LIBS"
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21073 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21074 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21076 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21080 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21081 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21088 $as_echo_n "checking whether NLS is requested... " >&6; }
21089 # Check whether --enable-nls was given.
21090 if test "${enable_nls+set}" = set; then :
21091 enableval=$enable_nls; USE_NLS=$enableval
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21097 $as_echo "$USE_NLS" >&6; }
21102 BUILD_INCLUDED_LIBINTL=no
21103 USE_INCLUDED_LIBINTL=no
21109 if test "$USE_NLS" = "yes"; then
21110 gt_use_preinstalled_gnugettext=no
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21113 $as_echo_n "checking whether included gettext is requested... " >&6; }
21115 # Check whether --with-included-gettext was given.
21116 if test "${with_included_gettext+set}" = set; then :
21117 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21119 nls_cv_force_use_gnu_gettext=no
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21123 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21125 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21126 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21134 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21135 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21136 $as_echo_n "(cached) " >&6
21138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h. */
21140 #include <libintl.h>
21141 extern int _nl_msg_cat_cntr;
21142 extern int *_nl_domain_bindings;
21146 bindtextdomain ("", "");
21147 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21152 if ac_fn_c_try_link "$LINENO"; then :
21153 gt_cv_func_gnugettext1_libc=yes
21155 gt_cv_func_gnugettext1_libc=no
21157 rm -f core conftest.err conftest.$ac_objext \
21158 conftest$ac_exeext conftest.$ac_ext
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21161 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21163 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21169 acl_save_prefix="$prefix"
21170 prefix="$acl_final_prefix"
21171 acl_save_exec_prefix="$exec_prefix"
21172 exec_prefix="$acl_final_exec_prefix"
21174 eval additional_includedir=\"$includedir\"
21175 eval additional_libdir=\"$libdir\"
21177 exec_prefix="$acl_save_exec_prefix"
21178 prefix="$acl_save_prefix"
21181 # Check whether --with-libintl-prefix was given.
21182 if test "${with_libintl_prefix+set}" = set; then :
21183 withval=$with_libintl_prefix;
21184 if test "X$withval" = "Xno"; then
21187 if test "X$withval" = "X"; then
21189 acl_save_prefix="$prefix"
21190 prefix="$acl_final_prefix"
21191 acl_save_exec_prefix="$exec_prefix"
21192 exec_prefix="$acl_final_exec_prefix"
21194 eval additional_includedir=\"$includedir\"
21195 eval additional_libdir=\"$libdir\"
21197 exec_prefix="$acl_save_exec_prefix"
21198 prefix="$acl_save_prefix"
21201 additional_includedir="$withval/include"
21202 additional_libdir="$withval/lib"
21213 names_already_handled=
21214 names_next_round='intl '
21215 while test -n "$names_next_round"; do
21216 names_this_round="$names_next_round"
21218 for name in $names_this_round; do
21220 for n in $names_already_handled; do
21221 if test "$n" = "$name"; then
21222 already_handled=yes
21226 if test -z "$already_handled"; then
21227 names_already_handled="$names_already_handled $name"
21228 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21229 eval value=\"\$HAVE_LIB$uppername\"
21230 if test -n "$value"; then
21231 if test "$value" = yes; then
21232 eval value=\"\$LIB$uppername\"
21233 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21234 eval value=\"\$LTLIB$uppername\"
21235 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21244 if test $use_additional = yes; then
21245 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21246 found_dir="$additional_libdir"
21247 found_so="$additional_libdir/lib$name.$shlibext"
21248 if test -f "$additional_libdir/lib$name.la"; then
21249 found_la="$additional_libdir/lib$name.la"
21252 if test -f "$additional_libdir/lib$name.$libext"; then
21253 found_dir="$additional_libdir"
21254 found_a="$additional_libdir/lib$name.$libext"
21255 if test -f "$additional_libdir/lib$name.la"; then
21256 found_la="$additional_libdir/lib$name.la"
21261 if test "X$found_dir" = "X"; then
21262 for x in $LDFLAGS $LTLIBINTL; do
21264 acl_save_prefix="$prefix"
21265 prefix="$acl_final_prefix"
21266 acl_save_exec_prefix="$exec_prefix"
21267 exec_prefix="$acl_final_exec_prefix"
21269 exec_prefix="$acl_save_exec_prefix"
21270 prefix="$acl_save_prefix"
21274 dir=`echo "X$x" | sed -e 's/^X-L//'`
21275 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21277 found_so="$dir/lib$name.$shlibext"
21278 if test -f "$dir/lib$name.la"; then
21279 found_la="$dir/lib$name.la"
21282 if test -f "$dir/lib$name.$libext"; then
21284 found_a="$dir/lib$name.$libext"
21285 if test -f "$dir/lib$name.la"; then
21286 found_la="$dir/lib$name.la"
21292 if test "X$found_dir" != "X"; then
21297 if test "X$found_dir" != "X"; then
21298 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21299 if test "X$found_so" != "X"; then
21300 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21301 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21304 for x in $ltrpathdirs; do
21305 if test "X$x" = "X$found_dir"; then
21310 if test -z "$haveit"; then
21311 ltrpathdirs="$ltrpathdirs $found_dir"
21313 if test "$hardcode_direct" = yes; then
21314 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21316 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21317 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21319 for x in $rpathdirs; do
21320 if test "X$x" = "X$found_dir"; then
21325 if test -z "$haveit"; then
21326 rpathdirs="$rpathdirs $found_dir"
21330 for x in $LDFLAGS $LIBINTL; do
21332 acl_save_prefix="$prefix"
21333 prefix="$acl_final_prefix"
21334 acl_save_exec_prefix="$exec_prefix"
21335 exec_prefix="$acl_final_exec_prefix"
21337 exec_prefix="$acl_save_exec_prefix"
21338 prefix="$acl_save_prefix"
21340 if test "X$x" = "X-L$found_dir"; then
21345 if test -z "$haveit"; then
21346 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21348 if test "$hardcode_minus_L" != no; then
21349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21351 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21357 if test "X$found_a" != "X"; then
21358 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21360 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21363 additional_includedir=
21364 case "$found_dir" in
21366 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21367 additional_includedir="$basedir/include"
21370 if test "X$additional_includedir" != "X"; then
21371 if test "X$additional_includedir" != "X/usr/include"; then
21373 if test "X$additional_includedir" = "X/usr/local/include"; then
21374 if test -n "$GCC"; then
21376 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21380 if test -z "$haveit"; then
21381 for x in $CPPFLAGS $INCINTL; do
21383 acl_save_prefix="$prefix"
21384 prefix="$acl_final_prefix"
21385 acl_save_exec_prefix="$exec_prefix"
21386 exec_prefix="$acl_final_exec_prefix"
21388 exec_prefix="$acl_save_exec_prefix"
21389 prefix="$acl_save_prefix"
21391 if test "X$x" = "X-I$additional_includedir"; then
21396 if test -z "$haveit"; then
21397 if test -d "$additional_includedir"; then
21398 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21404 if test -n "$found_la"; then
21405 save_libdir="$libdir"
21406 case "$found_la" in
21407 */* | *\\*) . "$found_la" ;;
21408 *) . "./$found_la" ;;
21410 libdir="$save_libdir"
21411 for dep in $dependency_libs; do
21414 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21415 if test "X$additional_libdir" != "X/usr/lib"; then
21417 if test "X$additional_libdir" = "X/usr/local/lib"; then
21418 if test -n "$GCC"; then
21420 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21424 if test -z "$haveit"; then
21426 for x in $LDFLAGS $LIBINTL; do
21428 acl_save_prefix="$prefix"
21429 prefix="$acl_final_prefix"
21430 acl_save_exec_prefix="$exec_prefix"
21431 exec_prefix="$acl_final_exec_prefix"
21433 exec_prefix="$acl_save_exec_prefix"
21434 prefix="$acl_save_prefix"
21436 if test "X$x" = "X-L$additional_libdir"; then
21441 if test -z "$haveit"; then
21442 if test -d "$additional_libdir"; then
21443 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21447 for x in $LDFLAGS $LTLIBINTL; do
21449 acl_save_prefix="$prefix"
21450 prefix="$acl_final_prefix"
21451 acl_save_exec_prefix="$exec_prefix"
21452 exec_prefix="$acl_final_exec_prefix"
21454 exec_prefix="$acl_save_exec_prefix"
21455 prefix="$acl_save_prefix"
21457 if test "X$x" = "X-L$additional_libdir"; then
21462 if test -z "$haveit"; then
21463 if test -d "$additional_libdir"; then
21464 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21471 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21472 if test "$enable_rpath" != no; then
21474 for x in $rpathdirs; do
21475 if test "X$x" = "X$dir"; then
21480 if test -z "$haveit"; then
21481 rpathdirs="$rpathdirs $dir"
21484 for x in $ltrpathdirs; do
21485 if test "X$x" = "X$dir"; then
21490 if test -z "$haveit"; then
21491 ltrpathdirs="$ltrpathdirs $dir"
21496 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21499 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21502 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21503 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21509 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21510 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21516 if test "X$rpathdirs" != "X"; then
21517 if test -n "$hardcode_libdir_separator"; then
21519 for found_dir in $rpathdirs; do
21520 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21522 acl_save_libdir="$libdir"
21524 eval flag=\"$hardcode_libdir_flag_spec\"
21525 libdir="$acl_save_libdir"
21526 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21528 for found_dir in $rpathdirs; do
21529 acl_save_libdir="$libdir"
21530 libdir="$found_dir"
21531 eval flag=\"$hardcode_libdir_flag_spec\"
21532 libdir="$acl_save_libdir"
21533 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21537 if test "X$ltrpathdirs" != "X"; then
21538 for found_dir in $ltrpathdirs; do
21539 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21544 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21545 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21546 $as_echo_n "(cached) " >&6
21548 gt_save_CPPFLAGS="$CPPFLAGS"
21549 CPPFLAGS="$CPPFLAGS $INCINTL"
21550 gt_save_LIBS="$LIBS"
21551 LIBS="$LIBS $LIBINTL"
21552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553 /* end confdefs.h. */
21554 #include <libintl.h>
21555 extern int _nl_msg_cat_cntr;
21560 const char *_nl_expand_alias (const char *);
21564 bindtextdomain ("", "");
21565 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21570 if ac_fn_c_try_link "$LINENO"; then :
21571 gt_cv_func_gnugettext1_libintl=yes
21573 gt_cv_func_gnugettext1_libintl=no
21575 rm -f core conftest.err conftest.$ac_objext \
21576 conftest$ac_exeext conftest.$ac_ext
21577 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21578 LIBS="$LIBS $LIBICONV"
21579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h. */
21581 #include <libintl.h>
21582 extern int _nl_msg_cat_cntr;
21587 const char *_nl_expand_alias (const char *);
21591 bindtextdomain ("", "");
21592 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21597 if ac_fn_c_try_link "$LINENO"; then :
21598 LIBINTL="$LIBINTL $LIBICONV"
21599 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21600 gt_cv_func_gnugettext1_libintl=yes
21603 rm -f core conftest.err conftest.$ac_objext \
21604 conftest$ac_exeext conftest.$ac_ext
21606 CPPFLAGS="$gt_save_CPPFLAGS"
21607 LIBS="$gt_save_LIBS"
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21610 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21613 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21614 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21615 && test "$PACKAGE" != gettext-runtime \
21616 && test "$PACKAGE" != gettext-tools; }; then
21617 gt_use_preinstalled_gnugettext=yes
21625 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21626 nls_cv_use_gnu_gettext=yes
21630 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21631 BUILD_INCLUDED_LIBINTL=yes
21632 USE_INCLUDED_LIBINTL=yes
21633 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21634 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21635 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21639 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21640 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21645 if test -n "$INTL_MACOSX_LIBS"; then
21646 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21647 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21648 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21649 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21653 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21654 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21656 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21664 $as_echo_n "checking whether to use NLS... " >&6; }
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21666 $as_echo "$USE_NLS" >&6; }
21667 if test "$USE_NLS" = "yes"; then
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21669 $as_echo_n "checking where the gettext function comes from... " >&6; }
21670 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21671 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21672 gt_source="external libintl"
21677 gt_source="included intl directory"
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21680 $as_echo "$gt_source" >&6; }
21683 if test "$USE_NLS" = "yes"; then
21685 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21686 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21688 $as_echo_n "checking how to link with libintl... " >&6; }
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21690 $as_echo "$LIBINTL" >&6; }
21692 for element in $INCINTL; do
21694 for x in $CPPFLAGS; do
21696 acl_save_prefix="$prefix"
21697 prefix="$acl_final_prefix"
21698 acl_save_exec_prefix="$exec_prefix"
21699 exec_prefix="$acl_final_exec_prefix"
21701 exec_prefix="$acl_save_exec_prefix"
21702 prefix="$acl_save_prefix"
21704 if test "X$x" = "X$element"; then
21709 if test -z "$haveit"; then
21710 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21717 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21720 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21728 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21729 BUILD_INCLUDED_LIBINTL=yes
21736 nls_cv_header_intl=
21737 nls_cv_header_libgt=
21749 if test "$USE_INCLUDED_LIBINTL" = yes; then
21750 INTLOBJS="\$(GETTOBJS)"
21754 INTL_LIBTOOL_SUFFIX_PREFIX=
21758 INTLLIBS="$LIBINTL"
21767 support_smartalloc=yes
21768 support_readline=yes
21772 support_wx_console=no
21773 support_tray_monitor=no
21778 support_static_tools=no
21779 support_static_fd=no
21780 support_static_sd=no
21781 support_static_dir=no
21782 support_static_cons=no
21784 build_client_only=no
21788 batch_insert_db_backends=""
21792 # Check whether --enable-gnome was given.
21793 if test "${enable_gnome+set}" = set; then :
21794 enableval=$enable_gnome;
21795 if test x$enableval = xyes; then
21804 if test x$support_gnome = xyes; then
21805 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21806 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21808 # AC_SUBST(GNOME_DIR)
21810 # Check whether --enable-bat was given.
21811 if test "${enable_bat+set}" = set; then :
21812 enableval=$enable_bat;
21813 if test x$enableval = xyes; then
21815 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21825 if test x$support_bat = xyes; then
21826 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21828 if test $pkg = 0; then
21829 BAT_DIR=src/qt-console
21831 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21849 # Check whether --enable-bwx-console was given.
21850 if test "${enable_bwx_console+set}" = set; then :
21851 enableval=$enable_bwx_console;
21852 if test x$enableval = xyes; then
21853 support_wx_console=yes
21861 if test x$support_wx_console = xyes; then
21862 abc=`$WXCONFIG $WXFLAGS --cppflags`
21864 if test $pkg = 0; then
21865 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21866 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21867 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21871 WX_DIR="src/wx-console"
21874 echo "wx-config program not found. bwx-console disabled."
21876 support_wx_console=no
21881 # Check whether --enable-tray-monitor was given.
21882 if test "${enable_tray_monitor+set}" = set; then :
21883 enableval=$enable_tray_monitor;
21884 if test x$enableval = xyes; then
21885 support_tray_monitor=yes
21893 if test x$support_tray_monitor = xyes; then
21894 abc=`$PKGCONFIG --exists gtk+-2.0`
21896 if test $pkg = 0; then
21897 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21898 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21901 TRAY_MONITOR_DIR=src/tray-monitor
21902 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21904 if test $pkg = 0; then
21906 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21913 # Check whether --enable-smartalloc was given.
21914 if test "${enable_smartalloc+set}" = set; then :
21915 enableval=$enable_smartalloc;
21916 if test x$enableval = xno; then
21917 support_smartalloc=no
21924 if test x$support_smartalloc = xyes; then
21926 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21930 # Check whether --enable-lockmgr was given.
21931 if test "${enable_lockmgr+set}" = set; then :
21932 enableval=$enable_lockmgr;
21933 if test x$enableval = xyes; then
21934 support_lockmgr=yes
21941 if test x$support_lockmgr = xyes; then
21943 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21948 # Check whether --enable-static-tools was given.
21949 if test "${enable_static_tools+set}" = set; then :
21950 enableval=$enable_static_tools;
21951 if test x$enableval = xyes; then
21952 if test x$use_libtool = xyes; then
21953 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21954 please rerun configure with --disable-libtool" "$LINENO" 5
21956 support_static_tools=yes
21964 if test x$support_static_tools = xyes; then
21965 TTOOL_LDFLAGS="-static"
21969 # Check whether --enable-static-fd was given.
21970 if test "${enable_static_fd+set}" = set; then :
21971 enableval=$enable_static_fd;
21972 if test x$enableval = xyes; then
21973 if test x$use_libtool = xyes; then
21974 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21975 please rerun configure with --disable-libtool" "$LINENO" 5
21977 support_static_fd=yes
21985 if test x$support_static_fd = xyes; then
21986 STATIC_FD="static-bacula-fd"
21990 # Check whether --enable-static-sd was given.
21991 if test "${enable_static_sd+set}" = set; then :
21992 enableval=$enable_static_sd;
21993 if test x$enableval = xyes; then
21994 if test x$use_libtool = xyes; then
21995 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21996 please rerun configure with --disable-libtool" "$LINENO" 5
21998 support_static_sd=yes
22006 if test x$support_static_sd = xyes; then
22007 STATIC_SD="static-bacula-sd"
22011 # Check whether --enable-static-dir was given.
22012 if test "${enable_static_dir+set}" = set; then :
22013 enableval=$enable_static_dir;
22014 if test x$enableval = xyes; then
22015 if test x$use_libtool = xyes; then
22016 as_fn_error $? "Libtool is enabled, not compatible with static tools,
22017 please rerun configure with --disable-libtool" "$LINENO" 5
22019 support_static_dir=yes
22027 if test x$support_static_dir = xyes; then
22028 STATIC_DIR="static-bacula-dir"
22032 # Check whether --enable-static-cons was given.
22033 if test "${enable_static_cons+set}" = set; then :
22034 enableval=$enable_static_cons;
22035 if test x$enableval = xyes; then
22036 if test x$use_libtool = xyes; then
22037 as_fn_error $? "Libtool is enabled, not compatible with static tools,
22038 please rerun configure with --disable-libtool" "$LINENO" 5
22040 support_static_cons=yes
22050 if test x$support_static_cons = xyes; then
22051 STATIC_CONS="static-bconsole"
22052 STATIC_GNOME_CONS="static-bgnome-console"
22053 STATIC_WX_CONS="static-bwx-console"
22059 # Check whether --enable-client-only was given.
22060 if test "${enable_client_only+set}" = set; then :
22061 enableval=$enable_client_only;
22062 if test x$enableval = xyes; then
22063 build_client_only=yes
22071 if test x$build_client_only = xno; then
22078 # Check whether --enable-build-dird was given.
22079 if test "${enable_build_dird+set}" = set; then :
22080 enableval=$enable_build_dird;
22081 if test x$enableval = xno; then
22088 if test x$build_dird = xyes; then
22089 DIRD_DIR="src/dird"
22090 DIR_TOOLS="DIRTOOLS"
22093 DIR_TOOLS="NODIRTOOLS"
22098 # Check whether --enable-build-stored was given.
22099 if test "${enable_build_stored+set}" = set; then :
22100 enableval=$enable_build_stored;
22101 if test x$enableval = xno; then
22108 if test x$build_stored = xyes; then
22109 STORED_DIR="src/stored"
22115 # Check whether --enable-conio was given.
22116 if test "${enable_conio+set}" = set; then :
22117 enableval=$enable_conio;
22118 if test x$enableval = xno; then
22128 # Check whether --enable-ipv6 was given.
22129 if test "${enable_ipv6+set}" = set; then :
22130 enableval=$enable_ipv6;
22131 if test x$enableval = xno; then
22139 if test x$support_ipv6 = xyes; then
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h. */
22142 #include <sys/types.h>
22143 #include <sys/socket.h>
22144 #include <netinet/in.h>
22148 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22153 if ac_fn_c_try_link "$LINENO"; then :
22158 rm -f core conftest.err conftest.$ac_objext \
22159 conftest$ac_exeext conftest.$ac_ext
22162 if test x$support_ipv6 = xyes; then
22164 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22169 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22170 if test "x$ac_cv_header_curses_h" = xyes; then :
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22173 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22174 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22175 $as_echo_n "(cached) " >&6
22177 ac_check_lib_save_LIBS=$LIBS
22178 LIBS="-ltinfo $LIBS"
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h. */
22182 /* Override any GCC internal prototype to avoid an error.
22183 Use char because int might match the return type of a GCC
22184 builtin and then its argument prototype would still apply. */
22197 if ac_fn_c_try_link "$LINENO"; then :
22198 ac_cv_lib_tinfo_tgetent=yes
22200 ac_cv_lib_tinfo_tgetent=no
22202 rm -f core conftest.err conftest.$ac_objext \
22203 conftest$ac_exeext conftest.$ac_ext
22204 LIBS=$ac_check_lib_save_LIBS
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22207 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22208 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22213 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22214 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22215 $as_echo_n "(cached) " >&6
22217 ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-lncurses $LIBS"
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h. */
22222 /* Override any GCC internal prototype to avoid an error.
22223 Use char because int might match the return type of a GCC
22224 builtin and then its argument prototype would still apply. */
22237 if ac_fn_c_try_link "$LINENO"; then :
22238 ac_cv_lib_ncurses_tgetent=yes
22240 ac_cv_lib_ncurses_tgetent=no
22242 rm -f core conftest.err conftest.$ac_objext \
22243 conftest$ac_exeext conftest.$ac_ext
22244 LIBS=$ac_check_lib_save_LIBS
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22247 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22248 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22249 TERM_LIB="-lncurses"
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22253 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22254 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22255 $as_echo_n "(cached) " >&6
22257 ac_check_lib_save_LIBS=$LIBS
22258 LIBS="-ltermcap $LIBS"
22259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260 /* end confdefs.h. */
22262 /* Override any GCC internal prototype to avoid an error.
22263 Use char because int might match the return type of a GCC
22264 builtin and then its argument prototype would still apply. */
22277 if ac_fn_c_try_link "$LINENO"; then :
22278 ac_cv_lib_termcap_tgetent=yes
22280 ac_cv_lib_termcap_tgetent=no
22282 rm -f core conftest.err conftest.$ac_objext \
22283 conftest$ac_exeext conftest.$ac_ext
22284 LIBS=$ac_check_lib_save_LIBS
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22287 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22288 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22289 TERM_LIB="-ltermcap"
22300 for ac_header in curses.h
22302 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22303 if test "x$ac_cv_header_curses_h" = xyes; then :
22304 cat >>confdefs.h <<_ACEOF
22305 #define HAVE_CURSES_H 1
22312 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22313 if test "x$ac_cv_header_term_h" = xyes; then :
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22315 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22316 if ${ac_cv_lib_curses_tgetent+:} false; then :
22317 $as_echo_n "(cached) " >&6
22319 ac_check_lib_save_LIBS=$LIBS
22320 LIBS="-lcurses $LIBS"
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22324 /* Override any GCC internal prototype to avoid an error.
22325 Use char because int might match the return type of a GCC
22326 builtin and then its argument prototype would still apply. */
22339 if ac_fn_c_try_link "$LINENO"; then :
22340 ac_cv_lib_curses_tgetent=yes
22342 ac_cv_lib_curses_tgetent=no
22344 rm -f core conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
22346 LIBS=$ac_check_lib_save_LIBS
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22349 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22350 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22351 TERM_LIB="-lcurses"
22365 if test x$support_conio = xyes; then
22366 if test x$TERM_LIB != x; then
22367 CONS_LIBS=$TERM_LIB
22371 support_readline=no
22373 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22376 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22381 # Check whether --enable-readline was given.
22382 if test "${enable_readline+set}" = set; then :
22383 enableval=$enable_readline;
22384 if test x$enableval = xno; then
22385 support_readline=no
22391 if test x$TERM_LIB = x ; then
22392 support_readline=no
22397 if test x$support_readline = xyes; then
22399 # Check whether --with-readline was given.
22400 if test "${with_readline+set}" = set; then :
22401 withval=$with_readline;
22402 case "$with_readline" in
22407 if test -f ${with_readline}/readline.h; then
22408 CONS_INC="-I${with_readline}"
22409 CONS_LDFLAGS="-L$with_readline"
22410 elif test -f ${with_readline}/include/readline/readline.h; then
22411 CONS_INC="-I${with_readline}/include/readline"
22412 CONS_LDFLAGS="-L${with_readline}/lib"
22413 with_readline="${with_readline}/include/readline"
22415 with_readline="/usr/include/readline"
22418 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22419 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22420 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22423 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22425 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22431 echo "readline.h not found. readline turned off ..."
22443 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22444 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22447 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22450 CONS_INC="-I/usr/include/readline"
22451 CONS_LIBS="-lreadline $TERM_LIB"
22455 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22456 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22457 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22460 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22463 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22464 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22465 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22466 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22471 echo "readline.h not found. readline turned off ..."
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22499 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22500 if ${ac_cv_header_stat_broken+:} false; then :
22501 $as_echo_n "(cached) " >&6
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h. */
22505 #include <sys/types.h>
22506 #include <sys/stat.h>
22508 #if defined S_ISBLK && defined S_IFDIR
22509 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22512 #if defined S_ISBLK && defined S_IFCHR
22513 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22516 #if defined S_ISLNK && defined S_IFREG
22517 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22520 #if defined S_ISSOCK && defined S_IFREG
22521 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22525 if ac_fn_c_try_compile "$LINENO"; then :
22526 ac_cv_header_stat_broken=no
22528 ac_cv_header_stat_broken=yes
22530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22533 $as_echo "$ac_cv_header_stat_broken" >&6; }
22534 if test $ac_cv_header_stat_broken = yes; then
22536 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22540 ac_header_dirent=no
22541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22542 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22544 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22545 if eval \${$as_ac_Header+:} false; then :
22546 $as_echo_n "(cached) " >&6
22548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h. */
22550 #include <sys/types.h>
22562 if ac_fn_c_try_compile "$LINENO"; then :
22563 eval "$as_ac_Header=yes"
22565 eval "$as_ac_Header=no"
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 eval ac_res=\$$as_ac_Header
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22571 $as_echo "$ac_res" >&6; }
22572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22573 cat >>confdefs.h <<_ACEOF
22574 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22577 ac_header_dirent=$ac_hdr; break
22581 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22582 if test $ac_header_dirent = dirent.h; then
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22584 $as_echo_n "checking for library containing opendir... " >&6; }
22585 if ${ac_cv_search_opendir+:} false; then :
22586 $as_echo_n "(cached) " >&6
22588 ac_func_search_save_LIBS=$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 for ac_lib in '' dir; do
22608 if test -z "$ac_lib"; then
22609 ac_res="none required"
22612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22614 if ac_fn_c_try_link "$LINENO"; then :
22615 ac_cv_search_opendir=$ac_res
22617 rm -f core conftest.err conftest.$ac_objext \
22619 if ${ac_cv_search_opendir+:} false; then :
22623 if ${ac_cv_search_opendir+:} false; then :
22626 ac_cv_search_opendir=no
22628 rm conftest.$ac_ext
22629 LIBS=$ac_func_search_save_LIBS
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22632 $as_echo "$ac_cv_search_opendir" >&6; }
22633 ac_res=$ac_cv_search_opendir
22634 if test "$ac_res" != no; then :
22635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22641 $as_echo_n "checking for library containing opendir... " >&6; }
22642 if ${ac_cv_search_opendir+:} false; then :
22643 $as_echo_n "(cached) " >&6
22645 ac_func_search_save_LIBS=$LIBS
22646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22647 /* end confdefs.h. */
22649 /* Override any GCC internal prototype to avoid an error.
22650 Use char because int might match the return type of a GCC
22651 builtin and then its argument prototype would still apply. */
22664 for ac_lib in '' x; do
22665 if test -z "$ac_lib"; then
22666 ac_res="none required"
22669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22671 if ac_fn_c_try_link "$LINENO"; then :
22672 ac_cv_search_opendir=$ac_res
22674 rm -f core conftest.err conftest.$ac_objext \
22676 if ${ac_cv_search_opendir+:} false; then :
22680 if ${ac_cv_search_opendir+:} false; then :
22683 ac_cv_search_opendir=no
22685 rm conftest.$ac_ext
22686 LIBS=$ac_func_search_save_LIBS
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22689 $as_echo "$ac_cv_search_opendir" >&6; }
22690 ac_res=$ac_cv_search_opendir
22691 if test "$ac_res" != no; then :
22692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22698 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22702 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22703 cat >>confdefs.h <<_ACEOF
22704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22710 for ac_func in nanosleep nl_langinfo
22712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22714 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22715 cat >>confdefs.h <<_ACEOF
22716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22722 for ac_header in varargs.h
22724 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22725 if test "x$ac_cv_header_varargs_h" = xyes; then :
22726 cat >>confdefs.h <<_ACEOF
22727 #define HAVE_VARARGS_H 1
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22737 $as_echo_n "checking for Python support... " >&6; }
22739 # Check whether --with-python was given.
22740 if test "${with_python+set}" = set; then :
22741 withval=$with_python;
22744 if test "$withval" != "no"; then
22745 if test "$withval" = "yes"; then
22746 if test -e /usr/bin/python-config ; then
22747 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22748 PYTHON_LIBS=`/usr/bin/python-config --libs`
22750 for python_root in /usr /usr/local /usr/sfw; do
22751 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python2.7 python3; do
22752 if test -f $python_root/include/${ver}/Python.h; then
22753 PYTHON_INCDIR=-I$python_root/include/${ver}
22754 if test -d $python_root/lib64/${ver}/config; then
22755 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22757 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22764 if test x$PYTHON_INCDIR = x; then
22765 if test -f $prefix/include/Python.h; then
22766 PYTHON_INCDIR=-I$prefix/include
22767 if test -d $prefix/lib64/config; then
22768 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22770 PYTHON_LIBS="-L$prefix/lib/config -lpython"
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22774 $as_echo "no" >&6; }
22775 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22780 if test -e $withval/bin/python-config ; then
22781 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22782 PYTHON_LIBS=`$withval/bin/python-config --libs`
22783 elif test -f $withval/Python.h; then
22784 PYTHON_INCDIR=-I$withval
22785 PYTHON_LIBS="-L$withval/config -lpython"
22786 elif test -f $withval/include/Python.h; then
22787 PYTHON_INCDIR=-I$withval/include
22788 if test -d $withval/lib64/config; then
22789 PYTHON_LIBS="-L$withval/lib64/config -lpython"
22791 PYTHON_LIBS="-L$withval/lib/config -lpython"
22793 elif test -f $withval/include/python/Python.h; then
22794 PYTHON_INCDIR=-I$withval/include/python
22795 if test -d $withval/lib64/python/config; then
22796 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22798 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22802 $as_echo "no" >&6; }
22803 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22807 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22810 $as_echo "yes" >&6; }
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22813 $as_echo "$as_me: checking for more Python libs" >&6;}
22814 saved_LIBS="$LIBS"; LIBS=
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22816 $as_echo_n "checking for library containing shm_open... " >&6; }
22817 if ${ac_cv_search_shm_open+:} false; then :
22818 $as_echo_n "(cached) " >&6
22820 ac_func_search_save_LIBS=$LIBS
22821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22822 /* end confdefs.h. */
22824 /* Override any GCC internal prototype to avoid an error.
22825 Use char because int might match the return type of a GCC
22826 builtin and then its argument prototype would still apply. */
22834 return shm_open ();
22839 for ac_lib in '' rt; do
22840 if test -z "$ac_lib"; then
22841 ac_res="none required"
22844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22846 if ac_fn_c_try_link "$LINENO"; then :
22847 ac_cv_search_shm_open=$ac_res
22849 rm -f core conftest.err conftest.$ac_objext \
22851 if ${ac_cv_search_shm_open+:} false; then :
22855 if ${ac_cv_search_shm_open+:} false; then :
22858 ac_cv_search_shm_open=no
22860 rm conftest.$ac_ext
22861 LIBS=$ac_func_search_save_LIBS
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22864 $as_echo "$ac_cv_search_shm_open" >&6; }
22865 ac_res=$ac_cv_search_shm_open
22866 if test "$ac_res" != no; then :
22867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22872 $as_echo_n "checking for openpty in -lutil... " >&6; }
22873 if ${ac_cv_lib_util_openpty+:} false; then :
22874 $as_echo_n "(cached) " >&6
22876 ac_check_lib_save_LIBS=$LIBS
22877 LIBS="-lutil $LIBS"
22878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22879 /* end confdefs.h. */
22881 /* Override any GCC internal prototype to avoid an error.
22882 Use char because int might match the return type of a GCC
22883 builtin and then its argument prototype would still apply. */
22896 if ac_fn_c_try_link "$LINENO"; then :
22897 ac_cv_lib_util_openpty=yes
22899 ac_cv_lib_util_openpty=no
22901 rm -f core conftest.err conftest.$ac_objext \
22902 conftest$ac_exeext conftest.$ac_ext
22903 LIBS=$ac_check_lib_save_LIBS
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22906 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22907 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22908 cat >>confdefs.h <<_ACEOF
22909 #define HAVE_LIBUTIL 1
22912 LIBS="-lutil $LIBS"
22916 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22920 $as_echo "no" >&6; }
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22926 $as_echo "no" >&6; }
22934 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22935 if test "x$ac_cv_func_socket" = xyes; then :
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22937 $as_echo "using libc's socket" >&6; }
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22940 $as_echo_n "checking for socket in -lxnet... " >&6; }
22941 if ${ac_cv_lib_xnet_socket+:} false; then :
22942 $as_echo_n "(cached) " >&6
22944 ac_check_lib_save_LIBS=$LIBS
22945 LIBS="-lxnet $LIBS"
22946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22947 /* end confdefs.h. */
22949 /* Override any GCC internal prototype to avoid an error.
22950 Use char because int might match the return type of a GCC
22951 builtin and then its argument prototype would still apply. */
22964 if ac_fn_c_try_link "$LINENO"; then :
22965 ac_cv_lib_xnet_socket=yes
22967 ac_cv_lib_xnet_socket=no
22969 rm -f core conftest.err conftest.$ac_objext \
22970 conftest$ac_exeext conftest.$ac_ext
22971 LIBS=$ac_check_lib_save_LIBS
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22974 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22975 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22976 cat >>confdefs.h <<_ACEOF
22977 #define HAVE_LIBXNET 1
22980 LIBS="-lxnet $LIBS"
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22985 $as_echo_n "checking for socket in -lsocket... " >&6; }
22986 if ${ac_cv_lib_socket_socket+:} false; then :
22987 $as_echo_n "(cached) " >&6
22989 ac_check_lib_save_LIBS=$LIBS
22990 LIBS="-lsocket $LIBS"
22991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h. */
22994 /* Override any GCC internal prototype to avoid an error.
22995 Use char because int might match the return type of a GCC
22996 builtin and then its argument prototype would still apply. */
23009 if ac_fn_c_try_link "$LINENO"; then :
23010 ac_cv_lib_socket_socket=yes
23012 ac_cv_lib_socket_socket=no
23014 rm -f core conftest.err conftest.$ac_objext \
23015 conftest$ac_exeext conftest.$ac_ext
23016 LIBS=$ac_check_lib_save_LIBS
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
23019 $as_echo "$ac_cv_lib_socket_socket" >&6; }
23020 if test "x$ac_cv_lib_socket_socket" = xyes; then :
23021 cat >>confdefs.h <<_ACEOF
23022 #define HAVE_LIBSOCKET 1
23025 LIBS="-lsocket $LIBS"
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
23030 $as_echo_n "checking for socket in -linet... " >&6; }
23031 if ${ac_cv_lib_inet_socket+:} false; then :
23032 $as_echo_n "(cached) " >&6
23034 ac_check_lib_save_LIBS=$LIBS
23035 LIBS="-linet $LIBS"
23036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h. */
23039 /* Override any GCC internal prototype to avoid an error.
23040 Use char because int might match the return type of a GCC
23041 builtin and then its argument prototype would still apply. */
23054 if ac_fn_c_try_link "$LINENO"; then :
23055 ac_cv_lib_inet_socket=yes
23057 ac_cv_lib_inet_socket=no
23059 rm -f core conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
23061 LIBS=$ac_check_lib_save_LIBS
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
23064 $as_echo "$ac_cv_lib_inet_socket" >&6; }
23065 if test "x$ac_cv_lib_inet_socket" = xyes; then :
23066 cat >>confdefs.h <<_ACEOF
23067 #define HAVE_LIBINET 1
23070 LIBS="-linet $LIBS"
23080 # Check whether --with-tcp-wrappers was given.
23081 if test "${with_tcp_wrappers+set}" = set; then :
23082 withval=$with_tcp_wrappers;
23083 if test "x$withval" != "xno" ; then
23085 LIBS="$saved_LIBS -lwrap"
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
23087 $as_echo_n "checking for library containing nanosleep... " >&6; }
23088 if ${ac_cv_search_nanosleep+:} false; then :
23089 $as_echo_n "(cached) " >&6
23091 ac_func_search_save_LIBS=$LIBS
23092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23093 /* end confdefs.h. */
23095 /* Override any GCC internal prototype to avoid an error.
23096 Use char because int might match the return type of a GCC
23097 builtin and then its argument prototype would still apply. */
23105 return nanosleep ();
23110 for ac_lib in '' rt; do
23111 if test -z "$ac_lib"; then
23112 ac_res="none required"
23115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23117 if ac_fn_c_try_link "$LINENO"; then :
23118 ac_cv_search_nanosleep=$ac_res
23120 rm -f core conftest.err conftest.$ac_objext \
23122 if ${ac_cv_search_nanosleep+:} false; then :
23126 if ${ac_cv_search_nanosleep+:} false; then :
23129 ac_cv_search_nanosleep=no
23131 rm conftest.$ac_ext
23132 LIBS=$ac_func_search_save_LIBS
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
23135 $as_echo "$ac_cv_search_nanosleep" >&6; }
23136 ac_res=$ac_cv_search_nanosleep
23137 if test "$ac_res" != no; then :
23138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
23143 $as_echo_n "checking for libwrap... " >&6; }
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23147 #include <sys/types.h>
23149 int deny_severity = 0;
23150 int allow_severity = 0;
23151 struct request_info *req;
23163 if ac_fn_c_try_link "$LINENO"; then :
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23166 $as_echo "yes" >&6; }
23168 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23176 LIBS="$saved_LIBS -lwrap -lnsl"
23177 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
23178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179 /* end confdefs.h. */
23181 #include <sys/types.h>
23183 int deny_severity = 0;
23184 int allow_severity = 0;
23185 struct request_info *req;
23197 if ac_fn_c_try_link "$LINENO"; then :
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23200 $as_echo "yes" >&6; }
23202 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23210 as_fn_error $? "*** libwrap missing" "$LINENO" 5
23214 rm -f core conftest.err conftest.$ac_objext \
23215 conftest$ac_exeext conftest.$ac_ext
23219 rm -f core conftest.err conftest.$ac_objext \
23220 conftest$ac_exeext conftest.$ac_ext
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23228 $as_echo_n "checking for OpenSSL... " >&6; }
23230 # Check whether --with-openssl was given.
23231 if test "${with_openssl+set}" = set; then :
23232 withval=$with_openssl;
23233 with_openssl_directory=${withval}
23239 if test "x$with_openssl_directory" != "xno"; then
23240 OPENSSL_LIBS="-lssl -lcrypto"
23243 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23245 # Make sure the $with_openssl_directory also makes sense
23247 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23248 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23249 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23253 saved_LIBS="${LIBS}"
23254 saved_CFLAGS="${CFLAGS}"
23255 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23256 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h. */
23261 #include <openssl/ssl.h>
23267 CRYPTO_set_id_callback(NULL);
23273 if ac_fn_c_try_link "$LINENO"; then :
23276 support_crypto="yes"
23281 support_crypto="no"
23285 rm -f core conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289 /* end confdefs.h. */
23291 #include <openssl/evp.h>
23303 if ac_fn_c_try_link "$LINENO"; then :
23305 ac_cv_openssl_sha2="yes"
23309 ac_cv_openssl_sha2="no"
23313 rm -f core conftest.err conftest.$ac_objext \
23314 conftest$ac_exeext conftest.$ac_ext
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h. */
23319 #include <openssl/evp.h>
23331 if ac_fn_c_try_link "$LINENO"; then :
23333 ac_cv_openssl_export="no"
23337 ac_cv_openssl_export="yes"
23341 rm -f core conftest.err conftest.$ac_objext \
23342 conftest$ac_exeext conftest.$ac_ext
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23345 $as_echo "$support_tls" >&6; }
23346 if test "$support_tls" = "yes"; then
23348 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23351 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23354 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23358 if test "$ac_cv_openssl_sha2" = "yes"; then
23360 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23364 if test "$ac_cv_openssl_export" = "yes"; then
23366 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23370 if test "$support_crypto" = "yes"; then
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23372 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23373 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23374 $as_echo_n "(cached) " >&6
23376 ac_check_lib_save_LIBS=$LIBS
23377 LIBS="-lcrypto $LIBS"
23378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23379 /* end confdefs.h. */
23381 /* Override any GCC internal prototype to avoid an error.
23382 Use char because int might match the return type of a GCC
23383 builtin and then its argument prototype would still apply. */
23387 char EVP_PKEY_encrypt_old ();
23391 return EVP_PKEY_encrypt_old ();
23396 if ac_fn_c_try_link "$LINENO"; then :
23397 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23399 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23401 rm -f core conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
23403 LIBS=$ac_check_lib_save_LIBS
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23406 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23407 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23409 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23415 LIBS="${saved_LIBS}"
23416 CFLAGS="${saved_CFLAGS}"
23419 support_crypto="no"
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23421 $as_echo "$support_tls" >&6; }
23424 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23433 $as_echo_n "checking for library containing dlopen... " >&6; }
23434 if ${ac_cv_search_dlopen+:} false; then :
23435 $as_echo_n "(cached) " >&6
23437 ac_func_search_save_LIBS=$LIBS
23438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23439 /* end confdefs.h. */
23441 /* Override any GCC internal prototype to avoid an error.
23442 Use char because int might match the return type of a GCC
23443 builtin and then its argument prototype would still apply. */
23456 for ac_lib in '' dl; do
23457 if test -z "$ac_lib"; then
23458 ac_res="none required"
23461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23463 if ac_fn_c_try_link "$LINENO"; then :
23464 ac_cv_search_dlopen=$ac_res
23466 rm -f core conftest.err conftest.$ac_objext \
23468 if ${ac_cv_search_dlopen+:} false; then :
23472 if ${ac_cv_search_dlopen+:} false; then :
23475 ac_cv_search_dlopen=no
23477 rm conftest.$ac_ext
23478 LIBS=$ac_func_search_save_LIBS
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23481 $as_echo "$ac_cv_search_dlopen" >&6; }
23482 ac_res=$ac_cv_search_dlopen
23483 if test "$ac_res" != no; then :
23484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23489 working_dir=`eval echo ${prefix}/var/bacula/working`
23491 # Check whether --with-working-dir was given.
23492 if test "${with_working_dir+set}" = set; then :
23493 withval=$with_working_dir;
23494 if test "x$withval" != "xno" ; then
23495 working_dir=$withval
23506 # Check whether --with-archivedir was given.
23507 if test "${with_archivedir+set}" = set; then :
23508 withval=$with_archivedir;
23509 if test "x$withval" != "xno" ; then
23510 archivedir=$withval
23519 basename=`hostname`
23521 # Check whether --with-basename was given.
23522 if test "${with_basename+set}" = set; then :
23523 withval=$with_basename;
23524 if test "x$withval" != "xno" ; then
23534 hostname=`uname -n | cut -d '.' -f 1`
23535 if test x${hostname} = x ; then
23536 hostname="localhost"
23538 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23539 if test ! $? = 0; then
23540 hostname="localhost"
23543 # Check whether --with-hostname was given.
23544 if test "${with_hostname+set}" = set; then :
23545 withval=$with_hostname;
23546 if test "x$withval" != "xno" ; then
23557 scriptdir=`eval echo ${sysconfdir}`
23559 # Check whether --with-scriptdir was given.
23560 if test "${with_scriptdir+set}" = set; then :
23561 withval=$with_scriptdir;
23562 if test "x$withval" != "xno" ; then
23573 bsrdir=`eval echo ${prefix}/var/bacula/working`
23575 # Check whether --with-bsrdir was given.
23576 if test "${with_bsrdir+set}" = set; then :
23577 withval=$with_bsrdir;
23578 if test "x$withval" != "xno" ; then
23588 logdir=`eval echo ${prefix}/var/bacula/working`
23590 # Check whether --with-logdir was given.
23591 if test "${with_logdir+set}" = set; then :
23592 withval=$with_logdir;
23593 if test "x$withval" != "xno" ; then
23604 # ------------------------------------------
23605 # Where to place plugindir (plugin files)
23606 # ------------------------------------------
23607 plugindir=`eval echo ${libdir}`
23609 # Check whether --with-plugindir was given.
23610 if test "${with_plugindir+set}" = set; then :
23611 withval=$with_plugindir;
23612 if test "x$withval" != "xno" ; then
23622 dump_email=root@localhost
23624 # Check whether --with-dump-email was given.
23625 if test "${with_dump_email+set}" = set; then :
23626 withval=$with_dump_email;
23627 if test "x$withval" != "xno" ; then
23628 dump_email=$withval
23637 job_email=root@localhost
23639 # Check whether --with-job-email was given.
23640 if test "${with_job_email+set}" = set; then :
23641 withval=$with_job_email;
23642 if test "x$withval" != "xno" ; then
23652 smtp_host=localhost
23654 # Check whether --with-smtp_host was given.
23655 if test "${with_smtp_host+set}" = set; then :
23656 withval=$with_smtp_host;
23657 if test "x$withval" != "xno" ; then
23669 # Check whether --with-pid-dir was given.
23670 if test "${with_pid_dir+set}" = set; then :
23671 withval=$with_pid_dir;
23672 if test "x$withval" != "xno" ; then
23680 cat >>confdefs.h <<_ACEOF
23681 #define _PATH_BACULA_PIDDIR "$piddir"
23686 subsysdir=/var/run/subsys
23687 if test -d /var/run/subsys; then
23688 subsysdir=/var/run/subsys
23689 elif test -d /var/lock/subsys; then
23690 subsysdir=/var/lock/subsys
23692 subsysdir=/var/run/subsys
23695 # Check whether --with-subsys-dir was given.
23696 if test "${with_subsys_dir+set}" = set; then :
23697 withval=$with_subsys_dir;
23698 if test "x$withval" != "xno" ; then
23710 # Check whether --with-baseport was given.
23711 if test "${with_baseport+set}" = set; then :
23712 withval=$with_baseport;
23713 if test "x$withval" != "xno" ; then
23722 dir_port=`expr $baseport`
23723 fd_port=`expr $baseport + 1`
23724 sd_port=`expr $fd_port + 1`
23732 # Check whether --with-dir-password was given.
23733 if test "${with_dir_password+set}" = set; then :
23734 withval=$with_dir_password;
23735 if test "x$withval" != "xno" ; then
23736 dir_password=$withval
23743 if test "x$dir_password" = "x" ; then
23744 if test "x$OPENSSL" = "xnone" ; then
23745 key=`autoconf/randpass 33`
23747 key=`openssl rand -base64 33`
23754 # Check whether --with-fd-password was given.
23755 if test "${with_fd_password+set}" = set; then :
23756 withval=$with_fd_password;
23757 if test "x$withval" != "xno" ; then
23758 fd_password=$withval
23765 if test "x$fd_password" = "x" ; then
23766 if test "x$OPENSSL" = "xnone" ; then
23767 key=`autoconf/randpass 37`
23769 key=`openssl rand -base64 33`
23776 # Check whether --with-sd-password was given.
23777 if test "${with_sd_password+set}" = set; then :
23778 withval=$with_sd_password;
23779 if test "x$withval" != "xno" ; then
23780 sd_password=$withval
23787 if test "x$sd_password" = "x" ; then
23788 if test "x$OPENSSL" = "xnone" ; then
23789 key=`autoconf/randpass 41`
23791 key=`openssl rand -base64 33`
23798 # Check whether --with-mon-dir-password was given.
23799 if test "${with_mon_dir_password+set}" = set; then :
23800 withval=$with_mon_dir_password;
23801 if test "x$withval" != "xno" ; then
23802 mon_dir_password=$withval
23809 if test "x$mon_dir_password" = "x" ; then
23810 if test "x$OPENSSL" = "xnone" ; then
23811 key=`autoconf/randpass 33`
23813 key=`openssl rand -base64 33`
23815 mon_dir_password=$key
23820 # Check whether --with-mon-fd-password was given.
23821 if test "${with_mon_fd_password+set}" = set; then :
23822 withval=$with_mon_fd_password;
23823 if test "x$withval" != "xno" ; then
23824 mon_fd_password=$withval
23831 if test "x$mon_fd_password" = "x" ; then
23832 if test "x$OPENSSL" = "xnone" ; then
23833 key=`autoconf/randpass 37`
23835 key=`openssl rand -base64 33`
23837 mon_fd_password=$key
23842 # Check whether --with-mon-sd-password was given.
23843 if test "${with_mon_sd_password+set}" = set; then :
23844 withval=$with_mon_sd_password;
23845 if test "x$withval" != "xno" ; then
23846 mon_sd_password=$withval
23853 if test "x$mon_sd_password" = "x" ; then
23854 if test "x$OPENSSL" = "xnone" ; then
23855 key=`autoconf/randpass 41`
23857 key=`openssl rand -base64 33`
23859 mon_sd_password=$key
23871 # Check whether --with-db_name was given.
23872 if test "${with_db_name+set}" = set; then :
23873 withval=$with_db_name;
23874 if test "x$withval" != "x" ; then
23885 # Check whether --with-db_user was given.
23886 if test "${with_db_user+set}" = set; then :
23887 withval=$with_db_user;
23888 if test "x$withval" != "x" ; then
23899 # Check whether --with-db_password was given.
23900 if test "${with_db_password+set}" = set; then :
23901 withval=$with_db_password;
23902 if test "x$withval" != "x" ; then
23903 db_password=$withval
23913 # Check whether --with-db_port was given.
23914 if test "${with_db_port+set}" = set; then :
23915 withval=$with_db_port;
23916 if test "x$withval" != "x" ; then
23926 # Handle users and groups for each daemon
23930 # Check whether --with-dir_user was given.
23931 if test "${with_dir_user+set}" = set; then :
23932 withval=$with_dir_user;
23933 if test "x$withval" != "x" ; then
23943 # Check whether --with-dir_group was given.
23944 if test "${with_dir_group+set}" = set; then :
23945 withval=$with_dir_group;
23946 if test "x$withval" != "x" ; then
23956 # Check whether --with-sd_user was given.
23957 if test "${with_sd_user+set}" = set; then :
23958 withval=$with_sd_user;
23959 if test "x$withval" != "x" ; then
23969 # Check whether --with-sd_group was given.
23970 if test "${with_sd_group+set}" = set; then :
23971 withval=$with_sd_group;
23972 if test "x$withval" != "x" ; then
23982 # Check whether --with-fd_user was given.
23983 if test "${with_fd_user+set}" = set; then :
23984 withval=$with_fd_user;
23985 if test "x$withval" != "x" ; then
23995 # Check whether --with-fd_group was given.
23996 if test "${with_fd_group+set}" = set; then :
23997 withval=$with_fd_group;
23998 if test "x$withval" != "x" ; then
24015 # Check whether --with-sbin-perm was given.
24016 if test "${with_sbin_perm+set}" = set; then :
24017 withval=$with_sbin_perm;
24018 if test "x$withval" != "x" ; then
24028 support_batch_insert=yes
24029 # Check whether --enable-batch-insert was given.
24030 if test "${enable_batch_insert+set}" = set; then :
24031 enableval=$enable_batch_insert;
24032 if test x$enableval = xno; then
24033 support_batch_insert=no
24040 if test x$support_batch_insert = xyes; then
24042 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
24051 $as_echo_n "checking for PostgreSQL support... " >&6; }
24053 # Check whether --with-postgresql was given.
24054 if test "${with_postgresql+set}" = set; then :
24055 withval=$with_postgresql;
24056 if test "$withval" != "no"; then
24057 if test "$withval" = "yes"; then
24058 PG_CONFIG=`which pg_config 2>/dev/null`
24059 if test -n "$PG_CONFIG"; then
24060 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
24061 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
24062 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
24063 elif test -f /usr/local/include/libpq-fe.h; then
24064 POSTGRESQL_INCDIR=/usr/local/include
24065 if test -d /usr/local/lib64; then
24066 POSTGRESQL_LIBDIR=/usr/local/lib64
24068 POSTGRESQL_LIBDIR=/usr/local/lib
24070 POSTGRESQL_BINDIR=/usr/local/bin
24071 elif test -f /usr/include/libpq-fe.h; then
24072 POSTGRESQL_INCDIR=/usr/include
24073 if test -d /usr/lib64; then
24074 POSTGRESQL_LIBDIR=/usr/lib64
24076 POSTGRESQL_LIBDIR=/usr/lib
24078 POSTGRESQL_BINDIR=/usr/bin
24079 elif test -f /usr/include/pgsql/libpq-fe.h; then
24080 POSTGRESQL_INCDIR=/usr/include/pgsql
24081 if test -d /usr/lib64/pgsql; then
24082 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
24084 POSTGRESQL_LIBDIR=/usr/lib/pgsql
24086 POSTGRESQL_BINDIR=/usr/bin
24087 elif test -f /usr/include/postgresql/libpq-fe.h; then
24088 POSTGRESQL_INCDIR=/usr/include/postgresql
24089 if test -d /usr/lib64/postgresql; then
24090 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
24092 POSTGRESQL_LIBDIR=/usr/lib/postgresql
24094 POSTGRESQL_BINDIR=/usr/bin
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24097 $as_echo "no" >&6; }
24098 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
24100 elif test -f $withval/include/libpq-fe.h; then
24101 POSTGRESQL_INCDIR=$withval/include
24102 POSTGRESQL_LIBDIR=$withval/lib
24103 POSTGRESQL_BINDIR=$withval/bin
24104 elif test -f $withval/include/postgresql/libpq-fe.h; then
24105 POSTGRESQL_INCDIR=$withval/include/postgresql
24106 if test -d $withval/lib64; then
24107 POSTGRESQL_LIBDIR=$withval/lib64
24109 POSTGRESQL_LIBDIR=$withval/lib
24111 POSTGRESQL_BINDIR=$withval/bin
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24114 $as_echo "no" >&6; }
24115 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
24118 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24121 $as_echo "yes" >&6; }
24123 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
24124 if test x$use_libtool != xno; then
24125 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
24127 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
24129 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
24130 if test "x$ac_cv_func_crypt" = xyes; then :
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
24134 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
24135 if ${ac_cv_lib_crypt_crypt+:} false; then :
24136 $as_echo_n "(cached) " >&6
24138 ac_check_lib_save_LIBS=$LIBS
24139 LIBS="-lcrypt $LIBS"
24140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h. */
24143 /* Override any GCC internal prototype to avoid an error.
24144 Use char because int might match the return type of a GCC
24145 builtin and then its argument prototype would still apply. */
24158 if ac_fn_c_try_link "$LINENO"; then :
24159 ac_cv_lib_crypt_crypt=yes
24161 ac_cv_lib_crypt_crypt=no
24163 rm -f core conftest.err conftest.$ac_objext \
24164 conftest$ac_exeext conftest.$ac_ext
24165 LIBS=$ac_check_lib_save_LIBS
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24168 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24169 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24170 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
24175 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
24176 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
24178 if test -z "${db_backends}"; then
24179 db_backends="PostgreSQL"
24181 db_backends="${db_backends} PostgreSQL"
24183 if test -z "${DB_BACKENDS}"; then
24184 DB_BACKENDS="postgresql"
24186 DB_BACKENDS="${DB_BACKENDS} postgresql"
24189 if test "x$support_batch_insert" = "xyes"; then
24190 saved_LDFLAGS="${LDFLAGS}"
24191 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24192 saved_LIBS="${LIBS}"
24193 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24194 LIBS="${saved_LIBS} -lcrypt"
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24198 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24199 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24200 $as_echo_n "(cached) " >&6
24202 ac_check_lib_save_LIBS=$LIBS
24204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205 /* end confdefs.h. */
24207 /* Override any GCC internal prototype to avoid an error.
24208 Use char because int might match the return type of a GCC
24209 builtin and then its argument prototype would still apply. */
24213 char PQisthreadsafe ();
24217 return PQisthreadsafe ();
24222 if ac_fn_c_try_link "$LINENO"; then :
24223 ac_cv_lib_pq_PQisthreadsafe=yes
24225 ac_cv_lib_pq_PQisthreadsafe=no
24227 rm -f core conftest.err conftest.$ac_objext \
24228 conftest$ac_exeext conftest.$ac_ext
24229 LIBS=$ac_check_lib_save_LIBS
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24232 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24233 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24235 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24240 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24241 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24242 $as_echo_n "(cached) " >&6
24244 ac_check_lib_save_LIBS=$LIBS
24246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h. */
24249 /* Override any GCC internal prototype to avoid an error.
24250 Use char because int might match the return type of a GCC
24251 builtin and then its argument prototype would still apply. */
24255 char PQputCopyData ();
24259 return PQputCopyData ();
24264 if ac_fn_c_try_link "$LINENO"; then :
24265 ac_cv_lib_pq_PQputCopyData=yes
24267 ac_cv_lib_pq_PQputCopyData=no
24269 rm -f core conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
24271 LIBS=$ac_check_lib_save_LIBS
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24274 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24275 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24277 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24281 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24282 if test $support_batch_insert = yes ; then
24284 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24286 if test -z "${batch_insert_db_backends}"; then
24287 batch_insert_db_backends="PostgreSQL"
24289 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24294 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24296 echo "WARNING: Your PostgreSQL client library is too old to detect "
24297 echo "if it was compiled with --enable-thread-safety, consider to "
24298 echo "upgrade it in order to avoid problems with Batch insert mode"
24301 LDFLAGS="${saved_LDFLAGS}"
24302 LIBS="${saved_LIBS}"
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24306 $as_echo "no" >&6; }
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24312 $as_echo "no" >&6; }
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24324 $as_echo_n "checking for MySQL support... " >&6; }
24326 # Check whether --with-mysql was given.
24327 if test "${with_mysql+set}" = set; then :
24328 withval=$with_mysql;
24329 if test "$withval" != "no"; then
24330 if test "$withval" = "yes"; then
24332 # This code is very broken on older systems
24334 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24335 # if test "x${MYSQL_CONFIG}" != x; then
24336 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24337 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24338 # if test $? = 0 ; then
24339 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24340 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24342 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24343 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24345 # elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24346 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24347 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24348 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24349 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24350 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24352 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24354 MYSQL_BINDIR=/usr/local/mysql/bin
24355 elif test -f /usr/include/mysql/mysql.h; then
24356 MYSQL_INCDIR=/usr/include/mysql
24357 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24358 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24359 MYSQL_LIBDIR=/usr/lib64/mysql
24360 elif test -f /usr/lib64/libmysqlclient_r.a \
24361 -o -f /usr/lib64/libmysqlclient_r.so; then
24362 MYSQL_LIBDIR=/usr/lib64
24363 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24364 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24365 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24366 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24367 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24368 MYSQL_LIBDIR=/usr/lib/mysql
24370 MYSQL_LIBDIR=/usr/lib
24372 MYSQL_BINDIR=/usr/bin
24373 elif test -f /usr/include/mysql.h; then
24374 MYSQL_INCDIR=/usr/include
24375 if test -f /usr/lib64/libmysqlclient_r.a \
24376 -o -f /usr/lib64/libmysqlclient_r.so; then
24377 MYSQL_LIBDIR=/usr/lib64
24379 MYSQL_LIBDIR=/usr/lib
24381 MYSQL_BINDIR=/usr/bin
24382 elif test -f /usr/local/include/mysql/mysql.h; then
24383 MYSQL_INCDIR=/usr/local/include/mysql
24384 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24385 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24386 MYSQL_LIBDIR=/usr/local/lib64/mysql
24388 MYSQL_LIBDIR=/usr/local/lib/mysql
24390 MYSQL_BINDIR=/usr/local/bin
24391 elif test -f /usr/local/include/mysql.h; then
24392 MYSQL_INCDIR=/usr/local/include
24393 if test -f /usr/local/lib64/libmysqlclient_r.a \
24394 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24395 MYSQL_LIBDIR=/usr/local/lib64
24397 MYSQL_LIBDIR=/usr/local/lib
24399 MYSQL_BINDIR=/usr/local/bin
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24403 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24406 if test -f $withval/include/mysql/mysql.h; then
24407 MYSQL_INCDIR=$withval/include/mysql
24408 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24409 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24410 MYSQL_LIBDIR=$withval/lib64/mysql
24411 elif test -f $withval/lib64/libmysqlclient_r.a \
24412 -o -f $withval/lib64/libmysqlclient_r.so; then
24413 MYSQL_LIBDIR=$withval/lib64
24414 elif test -f $withval/lib/libmysqlclient_r.a \
24415 -o -f $withval/lib/libmysqlclient_r.so; then
24416 MYSQL_LIBDIR=$withval/lib
24418 MYSQL_LIBDIR=$withval/lib/mysql
24420 MYSQL_BINDIR=$withval/bin
24421 elif test -f $withval/include/mysql.h; then
24422 MYSQL_INCDIR=$withval/include
24423 if test -f $withval/lib64/libmysqlclient_r.a \
24424 -o -f $withval/lib64/libmysqlclient_r.so; then
24425 MYSQL_LIBDIR=$withval/lib64
24427 MYSQL_LIBDIR=$withval/lib
24429 MYSQL_BINDIR=$withval/bin
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24432 $as_echo "no" >&6; }
24433 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24436 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24437 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24438 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24439 if test x$use_libtool != xno; then
24440 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24442 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24444 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24446 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24449 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24452 $as_echo "yes" >&6; }
24454 if test -z "${db_backends}" ; then
24455 db_backends="MySQL"
24457 db_backends="${db_backends} MySQL"
24459 if test -z "${DB_BACKENDS}" ; then
24460 DB_BACKENDS="mysql"
24462 DB_BACKENDS="${DB_BACKENDS} mysql"
24465 if test "x$support_batch_insert" = "xyes"; then
24466 saved_LDFLAGS="${LDFLAGS}"
24467 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24468 saved_LIBS="${LIBS}"
24469 LIBS="${saved_LIBS} -lz"
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24472 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24473 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24474 $as_echo_n "(cached) " >&6
24476 ac_check_lib_save_LIBS=$LIBS
24477 LIBS="-lmysqlclient_r $LIBS"
24478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h. */
24481 /* Override any GCC internal prototype to avoid an error.
24482 Use char because int might match the return type of a GCC
24483 builtin and then its argument prototype would still apply. */
24487 char mysql_thread_safe ();
24491 return mysql_thread_safe ();
24496 if ac_fn_c_try_link "$LINENO"; then :
24497 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24499 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24501 rm -f core conftest.err conftest.$ac_objext \
24502 conftest$ac_exeext conftest.$ac_ext
24503 LIBS=$ac_check_lib_save_LIBS
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24506 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24507 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24509 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24513 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24514 if test -z "${batch_insert_db_backends}"; then
24515 batch_insert_db_backends="MySQL"
24517 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24521 LDFLAGS="${saved_LDFLAGS}"
24522 LIBS="${saved_LIBS}"
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24526 $as_echo "no" >&6; }
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24532 $as_echo "no" >&6; }
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24538 $as_echo_n "checking for MySQL embedded support... " >&6; }
24540 # Check whether --with-embedded-mysql was given.
24541 if test "${with_embedded_mysql+set}" = set; then :
24542 withval=$with_embedded_mysql;
24543 if test "$withval" != "no"; then
24544 if test "$withval" = "yes"; then
24545 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24546 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24547 if test -d /usr/local/mysql/lib64/mysql; then
24548 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24550 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24552 MYSQL_BINDIR=/usr/local/mysql/bin
24553 elif test -f /usr/include/mysql/mysql.h; then
24554 MYSQL_INCDIR=/usr/include/mysql
24555 if test -d /usr/lib64/mysql; then
24556 MYSQL_LIBDIR=/usr/lib64/mysql
24558 MYSQL_LIBDIR=/usr/lib/mysql
24560 MYSQL_BINDIR=/usr/bin
24561 elif test -f /usr/include/mysql.h; then
24562 MYSQL_INCDIR=/usr/include
24563 if test -d /usr/lib64; then
24564 MYSQL_LIBDIR=/usr/lib64
24566 MYSQL_LIBDIR=/usr/lib
24568 MYSQL_BINDIR=/usr/bin
24569 elif test -f /usr/local/include/mysql/mysql.h; then
24570 MYSQL_INCDIR=/usr/local/include/mysql
24571 if test -d /usr/local/lib64/mysql; then
24572 MYSQL_LIBDIR=/usr/local/lib64/mysql
24574 MYSQL_LIBDIR=/usr/local/lib/mysql
24576 MYSQL_BINDIR=/usr/local/bin
24577 elif test -f /usr/local/include/mysql.h; then
24578 MYSQL_INCDIR=/usr/local/include
24579 if test -d /usr/local/lib64; then
24580 MYSQL_LIBDIR=/usr/local/lib64
24582 MYSQL_LIBDIR=/usr/local/lib
24584 MYSQL_BINDIR=/usr/local/bin
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24587 $as_echo "no" >&6; }
24588 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24591 if test -f $withval/include/mysql/mysql.h; then
24592 MYSQL_INCDIR=$withval/include/mysql
24593 if test -d $withval/lib64/mysql; then
24594 MYSQL_LIBDIR=$withval/lib64/mysql
24596 MYSQL_LIBDIR=$withval/lib/mysql
24598 MYSQL_BINDIR=$withval/bin
24599 elif test -f $withval/include/mysql.h; then
24600 MYSQL_INCDIR=$withval/include
24601 if test -d $withval/lib64; then
24602 MYSQL_LIBDIR=$withval/lib64
24604 MYSQL_LIBDIR=$withval/lib
24606 MYSQL_BINDIR=$withval/bin
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24609 $as_echo "no" >&6; }
24610 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24613 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24614 if test x$use_libtool != xno; then
24615 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24617 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24619 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24620 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24623 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24626 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24629 $as_echo "yes" >&6; }
24631 if test -z "${db_backends}"; then
24632 db_backends="MySQL"
24634 db_backends="${db_backends} MySQL"
24636 if test -z "${DB_BACKENDS}"; then
24637 DB_BACKENDS="mysql"
24639 DB_BACKENDS="${DB_BACKENDS} mysql"
24642 if test "x$support_batch_insert" = "xyes"; then
24643 saved_LDFLAGS="${LDFLAGS}"
24644 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24645 saved_LIBS="${LIBS}"
24646 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24649 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24650 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24651 $as_echo_n "(cached) " >&6
24653 ac_check_lib_save_LIBS=$LIBS
24654 LIBS="-lmysqlclient_r $LIBS"
24655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24656 /* end confdefs.h. */
24658 /* Override any GCC internal prototype to avoid an error.
24659 Use char because int might match the return type of a GCC
24660 builtin and then its argument prototype would still apply. */
24664 char mysql_thread_safe ();
24668 return mysql_thread_safe ();
24673 if ac_fn_c_try_link "$LINENO"; then :
24674 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24676 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24678 rm -f core conftest.err conftest.$ac_objext \
24679 conftest$ac_exeext conftest.$ac_ext
24680 LIBS=$ac_check_lib_save_LIBS
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24683 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24684 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24686 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24690 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24691 if test -z "${batch_insert_db_backends}"; then
24692 batch_insert_db_backends="MySQL"
24694 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24698 LDFLAGS="${saved_LDFLAGS}"
24699 LIBS="${saved_LIBS}"
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24703 $as_echo "no" >&6; }
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24709 $as_echo "no" >&6; }
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24722 $as_echo_n "checking for SQLite3 support... " >&6; }
24724 # Check whether --with-sqlite3 was given.
24725 if test "${with_sqlite3+set}" = set; then :
24726 withval=$with_sqlite3;
24727 if test "$withval" != "no"; then
24728 if test "$withval" = "yes"; then
24729 if test -f /usr/local/include/sqlite3.h; then
24730 SQLITE_INCDIR=/usr/local/include
24731 if test -d /usr/local/lib64; then
24732 SQLITE_LIBDIR=/usr/local/lib64
24734 SQLITE_LIBDIR=/usr/local/lib
24736 SQLITE_BINDIR=/usr/local/bin
24737 elif test -f /usr/include/sqlite3.h; then
24738 SQLITE_INCDIR=/usr/include
24739 if test -d /usr/lib64; then
24740 SQLITE_LIBDIR=/usr/lib64
24742 SQLITE_LIBDIR=/usr/lib
24744 SQLITE_BINDIR=/usr/bin
24745 elif test -f $prefix/include/sqlite3.h; then
24746 SQLITE_INCDIR=$prefix/include
24747 if test -d $prefix/lib64; then
24748 SQLITE_LIBDIR=$prefix/lib64
24750 SQLITE_LIBDIR=$prefix/lib
24752 SQLITE_BINDIR=$prefix/bin
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24755 $as_echo "no" >&6; }
24756 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24759 if test -f $withval/sqlite3.h; then
24760 SQLITE_INCDIR=$withval
24761 SQLITE_LIBDIR=$withval
24762 SQLITE_BINDIR=$withval
24763 elif test -f $withval/include/sqlite3.h; then
24764 SQLITE_INCDIR=$withval/include
24765 if test -d $withval/lib64; then
24766 SQLITE_LIBDIR=$withval/lib64
24768 SQLITE_LIBDIR=$withval/lib
24770 SQLITE_BINDIR=$withval/bin
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24773 $as_echo "no" >&6; }
24774 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24777 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24778 if test x$use_libtool != xno; then
24779 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24781 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24783 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24784 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24787 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24790 $as_echo "yes" >&6; }
24792 if test -z "${db_backends}"; then
24793 db_backends="SQLite3"
24795 db_backends="${db_backends} SQLite3"
24797 if test -z "${DB_BACKENDS}"; then
24798 DB_BACKENDS="sqlite3"
24800 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24803 if test "x$support_batch_insert" = "xyes"; then
24804 saved_LDFLAGS="${LDFLAGS}"
24805 LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24808 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24809 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24810 $as_echo_n "(cached) " >&6
24812 ac_check_lib_save_LIBS=$LIBS
24813 LIBS="-lsqlite3 $LIBS"
24814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24815 /* end confdefs.h. */
24817 /* Override any GCC internal prototype to avoid an error.
24818 Use char because int might match the return type of a GCC
24819 builtin and then its argument prototype would still apply. */
24823 char sqlite3_threadsafe ();
24827 return sqlite3_threadsafe ();
24832 if ac_fn_c_try_link "$LINENO"; then :
24833 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24835 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24837 rm -f core conftest.err conftest.$ac_objext \
24838 conftest$ac_exeext conftest.$ac_ext
24839 LIBS=$ac_check_lib_save_LIBS
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24842 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24843 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24845 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24849 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24850 if test -z "${batch_insert_db_backends}"; then
24851 batch_insert_db_backends="SQLite3"
24853 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24857 LDFLAGS="${saved_LDFLAGS}"
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24861 $as_echo "no" >&6; }
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24867 $as_echo "no" >&6; }
24877 #BA_CHECK_INGRES_DB
24881 #BA_CHECK_DBI_DRIVER
24883 if test -z "${batch_insert_db_backends}"; then
24884 batch_insert_db_backends="None"
24887 if test "x${db_backends}" = "x" ; then
24890 echo "You have not specified either --enable-client-only or one of the"
24891 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24892 echo "This is not permitted. Please reconfigure."
24894 echo "Aborting the configuration ..."
24900 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24902 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24903 if test x$use_libtool = xno; then
24904 SHARED_CATALOG_TARGETS=""
24906 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24910 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24912 if test x$use_libtool = xno; then
24915 echo "You have specified two or more of the"
24916 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24917 echo "This is not permitted when not using libtool Please reconfigure."
24919 echo "Aborting the configuration ..."
24925 SHARED_CATALOG_TARGETS=""
24926 for db_type in ${DB_BACKENDS}
24928 if test -z "${SHARED_CATALOG_TARGETS}"; then
24929 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24931 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24937 if test x$use_libtool = xyes; then
24947 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24950 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24951 if test -z "$CCOPTS"; then
24952 CCOPTS='-g -O2 -Wall'
24959 largefile_support="no"
24961 # Check whether --enable-largefile was given.
24962 if test "${enable_largefile+set}" = set; then :
24963 enableval=$enable_largefile;
24966 if test "$enable_largefile" != no; then
24967 if test -n "$ac_tool_prefix"; then
24968 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24969 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24971 $as_echo_n "checking for $ac_word... " >&6; }
24972 if ${ac_cv_prog_GETCONF+:} false; then :
24973 $as_echo_n "(cached) " >&6
24975 if test -n "$GETCONF"; then
24976 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24979 for as_dir in $PATH
24982 test -z "$as_dir" && as_dir=.
24983 for ac_exec_ext in '' $ac_executable_extensions; do
24984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24985 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24995 GETCONF=$ac_cv_prog_GETCONF
24996 if test -n "$GETCONF"; then
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24998 $as_echo "$GETCONF" >&6; }
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25001 $as_echo "no" >&6; }
25006 if test -z "$ac_cv_prog_GETCONF"; then
25007 ac_ct_GETCONF=$GETCONF
25008 # Extract the first word of "getconf", so it can be a program name with args.
25009 set dummy getconf; ac_word=$2
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25011 $as_echo_n "checking for $ac_word... " >&6; }
25012 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
25013 $as_echo_n "(cached) " >&6
25015 if test -n "$ac_ct_GETCONF"; then
25016 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
25018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25019 for as_dir in $PATH
25022 test -z "$as_dir" && as_dir=.
25023 for ac_exec_ext in '' $ac_executable_extensions; do
25024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25025 ac_cv_prog_ac_ct_GETCONF="getconf"
25026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25035 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
25036 if test -n "$ac_ct_GETCONF"; then
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
25038 $as_echo "$ac_ct_GETCONF" >&6; }
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25041 $as_echo "no" >&6; }
25044 if test "x$ac_ct_GETCONF" = x; then
25047 case $cross_compiling:$ac_tool_warned in
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25051 ac_tool_warned=yes ;;
25053 GETCONF=$ac_ct_GETCONF
25056 GETCONF="$ac_cv_prog_GETCONF"
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
25060 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
25061 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
25062 $as_echo_n "(cached) " >&6
25064 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
25065 ac_cv_sys_largefile_CFLAGS=no
25067 # IRIX 6.2 and later require cc -n32.
25068 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
25069 if test "$GCC" != yes; then
25070 ac_cv_sys_largefile_CFLAGS=-n32
25073 CC="$CC $ac_cv_sys_largefile_CFLAGS"
25074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075 /* end confdefs.h. */
25085 if ac_fn_c_try_link "$LINENO"; then :
25088 ac_cv_sys_largefile_CFLAGS=no
25090 rm -f core conftest.err conftest.$ac_objext \
25091 conftest$ac_exeext conftest.$ac_ext
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
25097 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
25099 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
25100 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
25101 $as_echo_n "(cached) " >&6
25103 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
25104 ac_cv_sys_largefile_LDFLAGS=no
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
25109 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
25111 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
25112 if ${ac_cv_sys_largefile_LIBS+:} false; then :
25113 $as_echo_n "(cached) " >&6
25115 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
25116 ac_cv_sys_largefile_LIBS=no
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
25121 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
25123 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25126 -D_FILE_OFFSET_BITS=*) ;;
25127 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
25128 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
25133 case "$CPPFLAGS" in
25134 '') CPPFLAGS="$ac_flag" ;;
25135 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
25143 '') CFLAGS="$ac_flag" ;;
25144 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25149 case "$ac_cv_sys_largefile_LDFLAGS" in
25153 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25154 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25157 case "$ac_cv_sys_largefile_LIBS" in
25161 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25162 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25166 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25167 if ${ac_cv_sys_file_offset_bits+:} false; then :
25168 $as_echo_n "(cached) " >&6
25170 ac_cv_sys_file_offset_bits=no
25171 ac_cv_sys_file_offset_bits=64
25172 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25174 -D_FILE_OFFSET_BITS)
25175 ac_cv_sys_file_offset_bits=1 ;;
25176 -D_FILE_OFFSET_BITS=*)
25177 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25183 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25184 if test "$ac_cv_sys_file_offset_bits" != no; then
25186 cat >>confdefs.h <<_ACEOF
25187 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25192 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25193 if ${ac_cv_sys_largefile_source+:} false; then :
25194 $as_echo_n "(cached) " >&6
25196 ac_cv_sys_largefile_source=no
25197 ac_cv_sys_largefile_source=1
25198 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25200 -D_LARGEFILE_SOURCE)
25201 ac_cv_sys_largefile_source=1 ;;
25202 -D_LARGEFILE_SOURCE=*)
25203 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25209 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25210 if test "$ac_cv_sys_largefile_source" != no; then
25212 cat >>confdefs.h <<_ACEOF
25213 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25218 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25219 if ${ac_cv_sys_large_files+:} false; then :
25220 $as_echo_n "(cached) " >&6
25222 ac_cv_sys_large_files=no
25223 ac_cv_sys_large_files=1
25224 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25227 ac_cv_sys_large_files=1 ;;
25229 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25235 $as_echo "$ac_cv_sys_large_files" >&6; }
25236 if test "$ac_cv_sys_large_files" != no; then
25238 cat >>confdefs.h <<_ACEOF
25239 #define _LARGE_FILES $ac_cv_sys_large_files
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25247 $as_echo_n "checking for X... " >&6; }
25250 # Check whether --with-x was given.
25251 if test "${with_x+set}" = set; then :
25255 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25256 if test "x$with_x" = xno; then
25257 # The user explicitly disabled X.
25260 case $x_includes,$x_libraries in #(
25261 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25262 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25263 $as_echo_n "(cached) " >&6
25265 # One or both of the vars are not set, and there is no cached value.
25266 ac_x_includes=no ac_x_libraries=no
25267 rm -f -r conftest.dir
25268 if mkdir conftest.dir; then
25270 cat >Imakefile <<'_ACEOF'
25272 @echo incroot='${INCROOT}'
25274 @echo usrlibdir='${USRLIBDIR}'
25276 @echo libdir='${LIBDIR}'
25278 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25279 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25280 for ac_var in incroot usrlibdir libdir; do
25281 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25283 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25284 for ac_extension in a so sl dylib la dll; do
25285 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25286 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25287 ac_im_usrlibdir=$ac_im_libdir; break
25290 # Screen out bogus values from the imake configuration. They are
25291 # bogus both because they are the default anyway, and because
25292 # using them would break gcc on systems where it needs fixed includes.
25293 case $ac_im_incroot in
25294 /usr/include) ac_x_includes= ;;
25295 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25297 case $ac_im_usrlibdir in
25298 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25299 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25303 rm -f -r conftest.dir
25306 # Standard set of common directories for X headers.
25307 # Check X11 before X11Rn because it is often a symlink to the current release.
25321 /usr/local/X11/include
25322 /usr/local/X11R7/include
25323 /usr/local/X11R6/include
25324 /usr/local/X11R5/include
25325 /usr/local/X11R4/include
25327 /usr/local/include/X11
25328 /usr/local/include/X11R7
25329 /usr/local/include/X11R6
25330 /usr/local/include/X11R5
25331 /usr/local/include/X11R4
25335 /usr/XFree86/include/X11
25339 /usr/unsupported/include
25340 /usr/athena/include
25341 /usr/local/x11r5/include
25342 /usr/lpp/Xamples/include
25344 /usr/openwin/include
25345 /usr/openwin/share/include'
25347 if test "$ac_x_includes" = no; then
25348 # Guess where to find include files, by looking for Xlib.h.
25349 # First, try using that file with no special directory specified.
25350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25351 /* end confdefs.h. */
25352 #include <X11/Xlib.h>
25354 if ac_fn_c_try_cpp "$LINENO"; then :
25355 # We can compile using X headers with no special include directory.
25358 for ac_dir in $ac_x_header_dirs; do
25359 if test -r "$ac_dir/X11/Xlib.h"; then
25360 ac_x_includes=$ac_dir
25365 rm -f conftest.err conftest.i conftest.$ac_ext
25366 fi # $ac_x_includes = no
25368 if test "$ac_x_libraries" = no; then
25369 # Check for the libraries.
25370 # See if we find them without any special options.
25371 # Don't add to $LIBS permanently.
25374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h. */
25376 #include <X11/Xlib.h>
25385 if ac_fn_c_try_link "$LINENO"; then :
25387 # We can link X programs with no special library path.
25391 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25393 # Don't even attempt the hair of trying to link an X program!
25394 for ac_extension in a so sl dylib la dll; do
25395 if test -r "$ac_dir/libX11.$ac_extension"; then
25396 ac_x_libraries=$ac_dir
25402 rm -f core conftest.err conftest.$ac_objext \
25403 conftest$ac_exeext conftest.$ac_ext
25404 fi # $ac_x_libraries = no
25406 case $ac_x_includes,$ac_x_libraries in #(
25407 no,* | *,no | *\'*)
25408 # Didn't find X, or a directory has "'" in its name.
25409 ac_cv_have_x="have_x=no";; #(
25411 # Record where we found X for the cache.
25412 ac_cv_have_x="have_x=yes\
25413 ac_x_includes='$ac_x_includes'\
25414 ac_x_libraries='$ac_x_libraries'"
25420 eval "$ac_cv_have_x"
25423 if test "$have_x" != yes; then
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25425 $as_echo "$have_x" >&6; }
25428 # If each of the values was on the command line, it overrides each guess.
25429 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25430 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25431 # Update the cache value to reflect the command line values.
25432 ac_cv_have_x="have_x=yes\
25433 ac_x_includes='$x_includes'\
25434 ac_x_libraries='$x_libraries'"
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25436 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25439 if test "$no_x" = yes; then
25440 # Not all programs may use this symbol, but it does not hurt to define it.
25442 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25444 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25446 if test -n "$x_includes"; then
25447 X_CFLAGS="$X_CFLAGS -I$x_includes"
25450 # It would also be nice to do this for all -L options, not just this one.
25451 if test -n "$x_libraries"; then
25452 X_LIBS="$X_LIBS -L$x_libraries"
25453 # For Solaris; some versions of Sun CC require a space after -R and
25454 # others require no space. Words are not sufficient . . . .
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25456 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25457 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25458 ac_xsave_c_werror_flag=$ac_c_werror_flag
25459 ac_c_werror_flag=yes
25460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25461 /* end confdefs.h. */
25471 if ac_fn_c_try_link "$LINENO"; then :
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25473 $as_echo "no" >&6; }
25474 X_LIBS="$X_LIBS -R$x_libraries"
25476 LIBS="$ac_xsave_LIBS -R $x_libraries"
25477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25478 /* end confdefs.h. */
25488 if ac_fn_c_try_link "$LINENO"; then :
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25490 $as_echo "yes" >&6; }
25491 X_LIBS="$X_LIBS -R $x_libraries"
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25494 $as_echo "neither works" >&6; }
25496 rm -f core conftest.err conftest.$ac_objext \
25497 conftest$ac_exeext conftest.$ac_ext
25499 rm -f core conftest.err conftest.$ac_objext \
25500 conftest$ac_exeext conftest.$ac_ext
25501 ac_c_werror_flag=$ac_xsave_c_werror_flag
25502 LIBS=$ac_xsave_LIBS
25505 # Check for system-dependent libraries X programs must link with.
25506 # Do this before checking for the system-independent R6 libraries
25507 # (-lICE), since we may need -lsocket or whatever for X linking.
25509 if test "$ISC" = yes; then
25510 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25512 # Martyn Johnson says this is needed for Ultrix, if the X
25513 # libraries were built with DECnet support. And Karl Berry says
25514 # the Alpha needs dnet_stub (dnet does not exist).
25515 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25517 /* end confdefs.h. */
25519 /* Override any GCC internal prototype to avoid an error.
25520 Use char because int might match the return type of a GCC
25521 builtin and then its argument prototype would still apply. */
25525 char XOpenDisplay ();
25529 return XOpenDisplay ();
25534 if ac_fn_c_try_link "$LINENO"; then :
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25538 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25539 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25540 $as_echo_n "(cached) " >&6
25542 ac_check_lib_save_LIBS=$LIBS
25543 LIBS="-ldnet $LIBS"
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h. */
25547 /* Override any GCC internal prototype to avoid an error.
25548 Use char because int might match the return type of a GCC
25549 builtin and then its argument prototype would still apply. */
25557 return dnet_ntoa ();
25562 if ac_fn_c_try_link "$LINENO"; then :
25563 ac_cv_lib_dnet_dnet_ntoa=yes
25565 ac_cv_lib_dnet_dnet_ntoa=no
25567 rm -f core conftest.err conftest.$ac_objext \
25568 conftest$ac_exeext conftest.$ac_ext
25569 LIBS=$ac_check_lib_save_LIBS
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25572 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25573 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25574 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25577 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25579 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25580 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25581 $as_echo_n "(cached) " >&6
25583 ac_check_lib_save_LIBS=$LIBS
25584 LIBS="-ldnet_stub $LIBS"
25585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586 /* end confdefs.h. */
25588 /* Override any GCC internal prototype to avoid an error.
25589 Use char because int might match the return type of a GCC
25590 builtin and then its argument prototype would still apply. */
25598 return dnet_ntoa ();
25603 if ac_fn_c_try_link "$LINENO"; then :
25604 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25606 ac_cv_lib_dnet_stub_dnet_ntoa=no
25608 rm -f core conftest.err conftest.$ac_objext \
25609 conftest$ac_exeext conftest.$ac_ext
25610 LIBS=$ac_check_lib_save_LIBS
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25613 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25614 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25615 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25620 rm -f core conftest.err conftest.$ac_objext \
25621 conftest$ac_exeext conftest.$ac_ext
25622 LIBS="$ac_xsave_LIBS"
25624 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25625 # to get the SysV transport functions.
25626 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25628 # The nsl library prevents programs from opening the X display
25629 # on Irix 5.2, according to T.E. Dickey.
25630 # The functions gethostbyname, getservbyname, and inet_addr are
25631 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25632 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25633 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25637 if test $ac_cv_func_gethostbyname = no; then
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25639 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25640 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25641 $as_echo_n "(cached) " >&6
25643 ac_check_lib_save_LIBS=$LIBS
25645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25646 /* end confdefs.h. */
25648 /* Override any GCC internal prototype to avoid an error.
25649 Use char because int might match the return type of a GCC
25650 builtin and then its argument prototype would still apply. */
25654 char gethostbyname ();
25658 return gethostbyname ();
25663 if ac_fn_c_try_link "$LINENO"; then :
25664 ac_cv_lib_nsl_gethostbyname=yes
25666 ac_cv_lib_nsl_gethostbyname=no
25668 rm -f core conftest.err conftest.$ac_objext \
25669 conftest$ac_exeext conftest.$ac_ext
25670 LIBS=$ac_check_lib_save_LIBS
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25673 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25674 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25675 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25678 if test $ac_cv_lib_nsl_gethostbyname = no; then
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25680 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25681 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25682 $as_echo_n "(cached) " >&6
25684 ac_check_lib_save_LIBS=$LIBS
25686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25687 /* end confdefs.h. */
25689 /* Override any GCC internal prototype to avoid an error.
25690 Use char because int might match the return type of a GCC
25691 builtin and then its argument prototype would still apply. */
25695 char gethostbyname ();
25699 return gethostbyname ();
25704 if ac_fn_c_try_link "$LINENO"; then :
25705 ac_cv_lib_bsd_gethostbyname=yes
25707 ac_cv_lib_bsd_gethostbyname=no
25709 rm -f core conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
25711 LIBS=$ac_check_lib_save_LIBS
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25714 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25715 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25722 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25723 # socket/setsockopt and other routines are undefined under SCO ODT
25724 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25725 # on later versions), says Simon Leinen: it contains gethostby*
25726 # variants that don't use the name server (or something). -lsocket
25727 # must be given before -lnsl if both are needed. We assume that
25728 # if connect needs -lnsl, so does gethostbyname.
25729 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25730 if test "x$ac_cv_func_connect" = xyes; then :
25734 if test $ac_cv_func_connect = no; then
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25736 $as_echo_n "checking for connect in -lsocket... " >&6; }
25737 if ${ac_cv_lib_socket_connect+:} false; then :
25738 $as_echo_n "(cached) " >&6
25740 ac_check_lib_save_LIBS=$LIBS
25741 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743 /* end confdefs.h. */
25745 /* Override any GCC internal prototype to avoid an error.
25746 Use char because int might match the return type of a GCC
25747 builtin and then its argument prototype would still apply. */
25760 if ac_fn_c_try_link "$LINENO"; then :
25761 ac_cv_lib_socket_connect=yes
25763 ac_cv_lib_socket_connect=no
25765 rm -f core conftest.err conftest.$ac_objext \
25766 conftest$ac_exeext conftest.$ac_ext
25767 LIBS=$ac_check_lib_save_LIBS
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25770 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25771 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25772 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25777 # Guillermo Gomez says -lposix is necessary on A/UX.
25778 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25779 if test "x$ac_cv_func_remove" = xyes; then :
25783 if test $ac_cv_func_remove = no; then
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25785 $as_echo_n "checking for remove in -lposix... " >&6; }
25786 if ${ac_cv_lib_posix_remove+:} false; then :
25787 $as_echo_n "(cached) " >&6
25789 ac_check_lib_save_LIBS=$LIBS
25790 LIBS="-lposix $LIBS"
25791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25792 /* end confdefs.h. */
25794 /* Override any GCC internal prototype to avoid an error.
25795 Use char because int might match the return type of a GCC
25796 builtin and then its argument prototype would still apply. */
25809 if ac_fn_c_try_link "$LINENO"; then :
25810 ac_cv_lib_posix_remove=yes
25812 ac_cv_lib_posix_remove=no
25814 rm -f core conftest.err conftest.$ac_objext \
25815 conftest$ac_exeext conftest.$ac_ext
25816 LIBS=$ac_check_lib_save_LIBS
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25819 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25820 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25821 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25826 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25827 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25828 if test "x$ac_cv_func_shmat" = xyes; then :
25832 if test $ac_cv_func_shmat = no; then
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25834 $as_echo_n "checking for shmat in -lipc... " >&6; }
25835 if ${ac_cv_lib_ipc_shmat+:} false; then :
25836 $as_echo_n "(cached) " >&6
25838 ac_check_lib_save_LIBS=$LIBS
25840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25841 /* end confdefs.h. */
25843 /* Override any GCC internal prototype to avoid an error.
25844 Use char because int might match the return type of a GCC
25845 builtin and then its argument prototype would still apply. */
25858 if ac_fn_c_try_link "$LINENO"; then :
25859 ac_cv_lib_ipc_shmat=yes
25861 ac_cv_lib_ipc_shmat=no
25863 rm -f core conftest.err conftest.$ac_objext \
25864 conftest$ac_exeext conftest.$ac_ext
25865 LIBS=$ac_check_lib_save_LIBS
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25868 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25869 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25870 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25876 # Check for libraries that X11R6 Xt/Xaw programs need.
25877 ac_save_LDFLAGS=$LDFLAGS
25878 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25879 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25880 # check for ICE first), but we must link in the order -lSM -lICE or
25881 # we get undefined symbols. So assume we have SM if we have ICE.
25882 # These have to be linked with before -lX11, unlike the other
25883 # libraries we check for below, so use a different variable.
25884 # John Interrante, Karl Berry
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25886 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25887 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25888 $as_echo_n "(cached) " >&6
25890 ac_check_lib_save_LIBS=$LIBS
25891 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h. */
25895 /* Override any GCC internal prototype to avoid an error.
25896 Use char because int might match the return type of a GCC
25897 builtin and then its argument prototype would still apply. */
25901 char IceConnectionNumber ();
25905 return IceConnectionNumber ();
25910 if ac_fn_c_try_link "$LINENO"; then :
25911 ac_cv_lib_ICE_IceConnectionNumber=yes
25913 ac_cv_lib_ICE_IceConnectionNumber=no
25915 rm -f core conftest.err conftest.$ac_objext \
25916 conftest$ac_exeext conftest.$ac_ext
25917 LIBS=$ac_check_lib_save_LIBS
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25920 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25921 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25922 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25925 LDFLAGS=$ac_save_LDFLAGS
25963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25964 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25966 cat >>confdefs.h <<_ACEOF
25967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25975 $as_echo_n "checking for ANSI C header files... " >&6; }
25976 if ${ac_cv_header_stdc+:} false; then :
25977 $as_echo_n "(cached) " >&6
25979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h. */
25981 #include <stdlib.h>
25982 #include <stdarg.h>
25983 #include <string.h>
25994 if ac_fn_c_try_compile "$LINENO"; then :
25995 ac_cv_header_stdc=yes
25997 ac_cv_header_stdc=no
25999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26001 if test $ac_cv_header_stdc = yes; then
26002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26004 /* end confdefs.h. */
26005 #include <string.h>
26008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26009 $EGREP "memchr" >/dev/null 2>&1; then :
26012 ac_cv_header_stdc=no
26018 if test $ac_cv_header_stdc = yes; then
26019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26021 /* end confdefs.h. */
26022 #include <stdlib.h>
26025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26026 $EGREP "free" >/dev/null 2>&1; then :
26029 ac_cv_header_stdc=no
26035 if test $ac_cv_header_stdc = yes; then
26036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26037 if test "$cross_compiling" = yes; then :
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h. */
26043 #include <stdlib.h>
26044 #if ((' ' & 0x0FF) == 0x020)
26045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26048 # define ISLOWER(c) \
26049 (('a' <= (c) && (c) <= 'i') \
26050 || ('j' <= (c) && (c) <= 'r') \
26051 || ('s' <= (c) && (c) <= 'z'))
26052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26060 for (i = 0; i < 256; i++)
26061 if (XOR (islower (i), ISLOWER (i))
26062 || toupper (i) != TOUPPER (i))
26067 if ac_fn_c_try_run "$LINENO"; then :
26070 ac_cv_header_stdc=no
26072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26073 conftest.$ac_objext conftest.beam conftest.$ac_ext
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
26079 $as_echo "$ac_cv_header_stdc" >&6; }
26080 if test $ac_cv_header_stdc = yes; then
26082 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
26087 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
26088 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
26089 $as_echo_n "(cached) " >&6
26091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092 /* end confdefs.h. */
26093 #include <sys/types.h>
26097 return makedev(0, 0);
26102 if ac_fn_c_try_link "$LINENO"; then :
26103 ac_cv_header_sys_types_h_makedev=yes
26105 ac_cv_header_sys_types_h_makedev=no
26107 rm -f core conftest.err conftest.$ac_objext \
26108 conftest$ac_exeext conftest.$ac_ext
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
26112 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
26114 if test $ac_cv_header_sys_types_h_makedev = no; then
26115 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
26116 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
26118 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
26124 if test $ac_cv_header_sys_mkdev_h = no; then
26125 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
26126 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
26128 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
26136 ac_header_dirent=no
26137 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26138 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
26140 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26141 if eval \${$as_ac_Header+:} false; then :
26142 $as_echo_n "(cached) " >&6
26144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26145 /* end confdefs.h. */
26146 #include <sys/types.h>
26158 if ac_fn_c_try_compile "$LINENO"; then :
26159 eval "$as_ac_Header=yes"
26161 eval "$as_ac_Header=no"
26163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26165 eval ac_res=\$$as_ac_Header
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26167 $as_echo "$ac_res" >&6; }
26168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26169 cat >>confdefs.h <<_ACEOF
26170 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26173 ac_header_dirent=$ac_hdr; break
26177 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26178 if test $ac_header_dirent = dirent.h; then
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26180 $as_echo_n "checking for library containing opendir... " >&6; }
26181 if ${ac_cv_search_opendir+:} false; then :
26182 $as_echo_n "(cached) " >&6
26184 ac_func_search_save_LIBS=$LIBS
26185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26186 /* end confdefs.h. */
26188 /* Override any GCC internal prototype to avoid an error.
26189 Use char because int might match the return type of a GCC
26190 builtin and then its argument prototype would still apply. */
26203 for ac_lib in '' dir; do
26204 if test -z "$ac_lib"; then
26205 ac_res="none required"
26208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26210 if ac_fn_c_try_link "$LINENO"; then :
26211 ac_cv_search_opendir=$ac_res
26213 rm -f core conftest.err conftest.$ac_objext \
26215 if ${ac_cv_search_opendir+:} false; then :
26219 if ${ac_cv_search_opendir+:} false; then :
26222 ac_cv_search_opendir=no
26224 rm conftest.$ac_ext
26225 LIBS=$ac_func_search_save_LIBS
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26228 $as_echo "$ac_cv_search_opendir" >&6; }
26229 ac_res=$ac_cv_search_opendir
26230 if test "$ac_res" != no; then :
26231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26237 $as_echo_n "checking for library containing opendir... " >&6; }
26238 if ${ac_cv_search_opendir+:} false; then :
26239 $as_echo_n "(cached) " >&6
26241 ac_func_search_save_LIBS=$LIBS
26242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26243 /* end confdefs.h. */
26245 /* Override any GCC internal prototype to avoid an error.
26246 Use char because int might match the return type of a GCC
26247 builtin and then its argument prototype would still apply. */
26260 for ac_lib in '' x; do
26261 if test -z "$ac_lib"; then
26262 ac_res="none required"
26265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26267 if ac_fn_c_try_link "$LINENO"; then :
26268 ac_cv_search_opendir=$ac_res
26270 rm -f core conftest.err conftest.$ac_objext \
26272 if ${ac_cv_search_opendir+:} false; then :
26276 if ${ac_cv_search_opendir+:} false; then :
26279 ac_cv_search_opendir=no
26281 rm conftest.$ac_ext
26282 LIBS=$ac_func_search_save_LIBS
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26285 $as_echo "$ac_cv_search_opendir" >&6; }
26286 ac_res=$ac_cv_search_opendir
26287 if test "$ac_res" != no; then :
26288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26295 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26296 if ${ac_cv_header_stat_broken+:} false; then :
26297 $as_echo_n "(cached) " >&6
26299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26300 /* end confdefs.h. */
26301 #include <sys/types.h>
26302 #include <sys/stat.h>
26304 #if defined S_ISBLK && defined S_IFDIR
26305 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26308 #if defined S_ISBLK && defined S_IFCHR
26309 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26312 #if defined S_ISLNK && defined S_IFREG
26313 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26316 #if defined S_ISSOCK && defined S_IFREG
26317 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26321 if ac_fn_c_try_compile "$LINENO"; then :
26322 ac_cv_header_stat_broken=no
26324 ac_cv_header_stat_broken=yes
26326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26329 $as_echo "$ac_cv_header_stat_broken" >&6; }
26330 if test $ac_cv_header_stat_broken = yes; then
26332 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26337 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26338 if ${ac_cv_header_sys_wait_h+:} false; then :
26339 $as_echo_n "(cached) " >&6
26341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26342 /* end confdefs.h. */
26343 #include <sys/types.h>
26344 #include <sys/wait.h>
26345 #ifndef WEXITSTATUS
26346 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26349 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26357 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26362 if ac_fn_c_try_compile "$LINENO"; then :
26363 ac_cv_header_sys_wait_h=yes
26365 ac_cv_header_sys_wait_h=no
26367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26370 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26371 if test $ac_cv_header_sys_wait_h = yes; then
26373 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26378 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26379 if ${ac_cv_header_time+:} false; then :
26380 $as_echo_n "(cached) " >&6
26382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26383 /* end confdefs.h. */
26384 #include <sys/types.h>
26385 #include <sys/time.h>
26391 if ((struct tm *) 0)
26397 if ac_fn_c_try_compile "$LINENO"; then :
26398 ac_cv_header_time=yes
26400 ac_cv_header_time=no
26402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26405 $as_echo "$ac_cv_header_time" >&6; }
26406 if test $ac_cv_header_time = yes; then
26408 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26412 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26413 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26415 cat >>confdefs.h <<_ACEOF
26416 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26420 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26425 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26426 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26428 cat >>confdefs.h <<_ACEOF
26429 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26433 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26436 case " $LIBOBJS " in
26437 *" fileblocks.$ac_objext "* ) ;;
26438 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26446 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26447 if ${ac_cv_struct_tm+:} false; then :
26448 $as_echo_n "(cached) " >&6
26450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26451 /* end confdefs.h. */
26452 #include <sys/types.h>
26459 int *p = &tm.tm_sec;
26465 if ac_fn_c_try_compile "$LINENO"; then :
26466 ac_cv_struct_tm=time.h
26468 ac_cv_struct_tm=sys/time.h
26470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26473 $as_echo "$ac_cv_struct_tm" >&6; }
26474 if test $ac_cv_struct_tm = sys/time.h; then
26476 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26480 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26481 #include <$ac_cv_struct_tm>
26484 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26486 cat >>confdefs.h <<_ACEOF
26487 #define HAVE_STRUCT_TM_TM_ZONE 1
26493 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26495 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26498 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26500 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26506 cat >>confdefs.h <<_ACEOF
26507 #define HAVE_DECL_TZNAME $ac_have_decl
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26511 $as_echo_n "checking for tzname... " >&6; }
26512 if ${ac_cv_var_tzname+:} false; then :
26513 $as_echo_n "(cached) " >&6
26515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26516 /* end confdefs.h. */
26518 #if !HAVE_DECL_TZNAME
26519 extern char *tzname[];
26525 return tzname[0][0];
26530 if ac_fn_c_try_link "$LINENO"; then :
26531 ac_cv_var_tzname=yes
26533 ac_cv_var_tzname=no
26535 rm -f core conftest.err conftest.$ac_objext \
26536 conftest$ac_exeext conftest.$ac_ext
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26539 $as_echo "$ac_cv_var_tzname" >&6; }
26540 if test $ac_cv_var_tzname = yes; then
26542 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26549 $as_echo_n "checking for utime.h... " >&6; }
26550 if ${ba_cv_header_utime_h+:} false; then :
26551 $as_echo_n "(cached) " >&6
26554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26555 /* end confdefs.h. */
26557 #include <sys/types.h>
26570 if ac_fn_c_try_compile "$LINENO"; then :
26572 ba_cv_header_utime_h=yes
26576 ba_cv_header_utime_h=no
26580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26585 $as_echo "$ba_cv_header_utime_h" >&6; }
26586 test $ba_cv_header_utime_h = yes &&
26587 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26591 $as_echo_n "checking for socklen_t... " >&6; }
26592 if ${ba_cv_header_socklen_t+:} false; then :
26593 $as_echo_n "(cached) " >&6
26596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26597 /* end confdefs.h. */
26599 #include <sys/types.h>
26600 #include <sys/socket.h>
26612 if ac_fn_c_try_compile "$LINENO"; then :
26614 ba_cv_header_socklen_t=yes
26618 ba_cv_header_socklen_t=no
26622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26627 $as_echo "$ba_cv_header_socklen_t" >&6; }
26628 test $ba_cv_header_socklen_t = yes &&
26629 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26633 ac_cpp='$CXXCPP $CPPFLAGS'
26634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26639 $as_echo_n "checking for ioctl_req_t... " >&6; }
26640 if ${ba_cv_header_ioctl_req_t+:} false; then :
26641 $as_echo_n "(cached) " >&6
26644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645 /* end confdefs.h. */
26647 #include <unistd.h>
26648 #include <sys/types.h>
26649 #include <sys/ioctl.h>
26655 int (*d_ioctl)(int fd, unsigned long int request, ...);
26662 if ac_fn_cxx_try_compile "$LINENO"; then :
26664 ba_cv_header_ioctl_req_t=yes
26668 ba_cv_header_ioctl_req_t=no
26672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26677 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26678 test $ba_cv_header_ioctl_req_t = yes &&
26679 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26683 ac_cpp='$CPP $CPPFLAGS'
26684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26690 ac_cpp='$CXXCPP $CPPFLAGS'
26691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26696 $as_echo_n "checking for typeof... " >&6; }
26697 if ${ba_cv_have_typeof+:} false; then :
26698 $as_echo_n "(cached) " >&6
26701 if test "$cross_compiling" = yes; then :
26703 ba_cv_have_typeof=no
26707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26708 /* end confdefs.h. */
26710 main(){char *a = 0; a = (typeof a)a;}
26713 if ac_fn_cxx_try_run "$LINENO"; then :
26715 ba_cv_have_typeof=yes
26719 ba_cv_have_typeof=no
26722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26723 conftest.$ac_objext conftest.beam conftest.$ac_ext
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26730 $as_echo "$ba_cv_have_typeof" >&6; }
26731 test $ba_cv_have_typeof = yes &&
26732 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26735 ac_cpp='$CPP $CPPFLAGS'
26736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26742 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26743 if ${ac_cv_c_const+:} false; then :
26744 $as_echo_n "(cached) " >&6
26746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26747 /* end confdefs.h. */
26752 /* FIXME: Include the comments suggested by Paul. */
26753 #ifndef __cplusplus
26754 /* Ultrix mips cc rejects this. */
26755 typedef int charset[2];
26757 /* SunOS 4.1.1 cc rejects this. */
26758 char const *const *pcpcc;
26760 /* NEC SVR4.0.2 mips cc rejects this. */
26761 struct point {int x, y;};
26762 static struct point const zero = {0,0};
26763 /* AIX XL C 1.02.0.0 rejects this.
26764 It does not let you subtract one const X* pointer from another in
26765 an arm of an if-expression whose if-part is not a constant
26767 const char *g = "string";
26768 pcpcc = &g + (g ? g-g : 0);
26769 /* HPUX 7.0 cc rejects these. */
26771 ppc = (char**) pcpcc;
26772 pcpcc = (char const *const *) ppc;
26773 { /* SCO 3.2v4 cc rejects this. */
26775 char const *s = 0 ? (char *) 0 : (char const *) 0;
26780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26781 int x[] = {25, 17};
26782 const int *foo = &x[0];
26785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26786 typedef const int *iptr;
26790 { /* AIX XL C 1.02.0.0 rejects this saying
26791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26792 struct s { int j; const int *ap[3]; };
26793 struct s *b; b->j = 5;
26795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26796 const int foo = 10;
26797 if (!foo) return 0;
26799 return !cs[0] && !zero.x;
26806 if ac_fn_c_try_compile "$LINENO"; then :
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26814 $as_echo "$ac_cv_c_const" >&6; }
26815 if test $ac_cv_c_const = no; then
26817 $as_echo "#define const /**/" >>confdefs.h
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26823 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26824 if ${ac_cv_c_bigendian+:} false; then :
26825 $as_echo_n "(cached) " >&6
26827 ac_cv_c_bigendian=unknown
26828 # See if we're dealing with a universal compiler.
26829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h. */
26831 #ifndef __APPLE_CC__
26832 not a universal capable compiler
26837 if ac_fn_c_try_compile "$LINENO"; then :
26839 # Check for potential -arch flags. It is not universal unless
26840 # there are at least two -arch flags with different values.
26843 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26844 if test -n "$ac_prev"; then
26846 i?86 | x86_64 | ppc | ppc64)
26847 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26850 ac_cv_c_bigendian=universal
26856 elif test "x$ac_word" = "x-arch"; then
26861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26862 if test $ac_cv_c_bigendian = unknown; then
26863 # See if sys/param.h defines the BYTE_ORDER macro.
26864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26865 /* end confdefs.h. */
26866 #include <sys/types.h>
26867 #include <sys/param.h>
26872 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26873 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26875 bogus endian macros
26882 if ac_fn_c_try_compile "$LINENO"; then :
26883 # It does; now see whether it defined to BIG_ENDIAN or not.
26884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26885 /* end confdefs.h. */
26886 #include <sys/types.h>
26887 #include <sys/param.h>
26892 #if BYTE_ORDER != BIG_ENDIAN
26900 if ac_fn_c_try_compile "$LINENO"; then :
26901 ac_cv_c_bigendian=yes
26903 ac_cv_c_bigendian=no
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26909 if test $ac_cv_c_bigendian = unknown; then
26910 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h. */
26913 #include <limits.h>
26918 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26919 bogus endian macros
26926 if ac_fn_c_try_compile "$LINENO"; then :
26927 # It does; now see whether it defined to _BIG_ENDIAN or not.
26928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h. */
26930 #include <limits.h>
26935 #ifndef _BIG_ENDIAN
26943 if ac_fn_c_try_compile "$LINENO"; then :
26944 ac_cv_c_bigendian=yes
26946 ac_cv_c_bigendian=no
26948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26952 if test $ac_cv_c_bigendian = unknown; then
26953 # Compile a test program.
26954 if test "$cross_compiling" = yes; then :
26955 # Try to guess by grepping values from an object file.
26956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26957 /* end confdefs.h. */
26958 short int ascii_mm[] =
26959 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26960 short int ascii_ii[] =
26961 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26962 int use_ascii (int i) {
26963 return ascii_mm[i] + ascii_ii[i];
26965 short int ebcdic_ii[] =
26966 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26967 short int ebcdic_mm[] =
26968 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26969 int use_ebcdic (int i) {
26970 return ebcdic_mm[i] + ebcdic_ii[i];
26977 return use_ascii (foo) == use_ebcdic (foo);
26982 if ac_fn_c_try_compile "$LINENO"; then :
26983 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26984 ac_cv_c_bigendian=yes
26986 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26987 if test "$ac_cv_c_bigendian" = unknown; then
26988 ac_cv_c_bigendian=no
26990 # finding both strings is unlikely to happen, but who knows?
26991 ac_cv_c_bigendian=unknown
26995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26998 /* end confdefs.h. */
26999 $ac_includes_default
27004 /* Are we little or big endian? From Harbison&Steele. */
27008 char c[sizeof (long int)];
27011 return u.c[sizeof (long int) - 1] == 1;
27017 if ac_fn_c_try_run "$LINENO"; then :
27018 ac_cv_c_bigendian=no
27020 ac_cv_c_bigendian=yes
27022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27023 conftest.$ac_objext conftest.beam conftest.$ac_ext
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27029 $as_echo "$ac_cv_c_bigendian" >&6; }
27030 case $ac_cv_c_bigendian in #(
27033 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
27037 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
27041 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27045 as_fn_error $? "unknown endianness
27046 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
27051 $as_echo_n "checking how to get filesystem type... " >&6; }
27053 # The order of these tests is important.
27054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27055 /* end confdefs.h. */
27057 #include <sys/statvfs.h>
27058 #include <sys/fstyp.h>
27061 if ac_fn_c_try_cpp "$LINENO"; then :
27062 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
27066 rm -f conftest.err conftest.i conftest.$ac_ext
27067 if test $fstype = no; then
27068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27069 /* end confdefs.h. */
27071 #include <sys/statfs.h>
27072 #include <sys/fstyp.h>
27075 if ac_fn_c_try_cpp "$LINENO"; then :
27076 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
27080 rm -f conftest.err conftest.i conftest.$ac_ext
27082 if test $fstype = no; then
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27086 #include <sys/statfs.h>
27087 #include <sys/vmount.h>
27090 if ac_fn_c_try_cpp "$LINENO"; then :
27091 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
27095 rm -f conftest.err conftest.i conftest.$ac_ext
27097 if test $fstype = no; then
27098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27099 /* end confdefs.h. */
27101 #include <mntent.h>
27104 if ac_fn_c_try_cpp "$LINENO"; then :
27105 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
27109 rm -f conftest.err conftest.i conftest.$ac_ext
27111 if test $fstype = no; then
27112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27113 /* end confdefs.h. */
27114 #include <sys/mount.h>
27117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27118 $EGREP "f_type;" >/dev/null 2>&1; then :
27119 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
27125 if test $fstype = no; then
27126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27127 /* end confdefs.h. */
27129 #include <sys/mount.h>
27130 #include <sys/fs_types.h>
27133 if ac_fn_c_try_cpp "$LINENO"; then :
27134 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
27138 rm -f conftest.err conftest.i conftest.$ac_ext
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
27141 $as_echo "$fstype" >&6; }
27143 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27144 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27146 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27153 ac_cpp='$CXXCPP $CPPFLAGS'
27154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27158 for ac_func in backtrace
27160 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27161 if test "x$ac_cv_func_backtrace" = xyes; then :
27162 cat >>confdefs.h <<_ACEOF
27163 #define HAVE_BACKTRACE 1
27170 ac_cpp='$CPP $CPPFLAGS'
27171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27177 $as_echo_n "checking return type of signal handlers... " >&6; }
27178 if ${ac_cv_type_signal+:} false; then :
27179 $as_echo_n "(cached) " >&6
27181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27182 /* end confdefs.h. */
27183 #include <sys/types.h>
27184 #include <signal.h>
27189 return *(signal (0, 0)) (0) == 1;
27194 if ac_fn_c_try_compile "$LINENO"; then :
27195 ac_cv_type_signal=int
27197 ac_cv_type_signal=void
27199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27202 $as_echo "$ac_cv_type_signal" >&6; }
27204 cat >>confdefs.h <<_ACEOF
27205 #define RETSIGTYPE $ac_cv_type_signal
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27211 $as_echo_n "checking for type of signal functions... " >&6; }
27212 if ${bash_cv_signal_vintage+:} false; then :
27213 $as_echo_n "(cached) " >&6
27216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27217 /* end confdefs.h. */
27218 #include <signal.h>
27224 struct sigaction sa;
27225 sigemptyset(&ss); sigsuspend(&ss);
27226 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27227 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27233 if ac_fn_c_try_link "$LINENO"; then :
27234 bash_cv_signal_vintage="posix"
27237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h. */
27239 #include <signal.h>
27244 int mask = sigmask(SIGINT);
27245 sigsetmask(mask); sigblock(mask); sigpause(mask);
27251 if ac_fn_c_try_link "$LINENO"; then :
27252 bash_cv_signal_vintage="4.2bsd"
27255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27256 /* end confdefs.h. */
27258 #include <signal.h>
27259 RETSIGTYPE foo() { }
27264 int mask = sigmask(SIGINT);
27265 sigset(SIGINT, foo); sigrelse(SIGINT);
27266 sighold(SIGINT); sigpause(SIGINT);
27272 if ac_fn_c_try_link "$LINENO"; then :
27273 bash_cv_signal_vintage="svr3"
27275 bash_cv_signal_vintage="v7"
27278 rm -f core conftest.err conftest.$ac_objext \
27279 conftest$ac_exeext conftest.$ac_ext
27282 rm -f core conftest.err conftest.$ac_objext \
27283 conftest$ac_exeext conftest.$ac_ext
27286 rm -f core conftest.err conftest.$ac_objext \
27287 conftest$ac_exeext conftest.$ac_ext
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27292 $as_echo "$bash_cv_signal_vintage" >&6; }
27293 if test "$bash_cv_signal_vintage" = "posix"; then
27294 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27296 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27297 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27299 elif test "$bash_cv_signal_vintage" = "svr3"; then
27300 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27304 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27305 if test "x$ac_cv_type_mode_t" = xyes; then :
27309 cat >>confdefs.h <<_ACEOF
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27316 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27317 if ${ac_cv_type_uid_t+:} false; then :
27318 $as_echo_n "(cached) " >&6
27320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27321 /* end confdefs.h. */
27322 #include <sys/types.h>
27325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27326 $EGREP "uid_t" >/dev/null 2>&1; then :
27327 ac_cv_type_uid_t=yes
27329 ac_cv_type_uid_t=no
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27335 $as_echo "$ac_cv_type_uid_t" >&6; }
27336 if test $ac_cv_type_uid_t = no; then
27338 $as_echo "#define uid_t int" >>confdefs.h
27341 $as_echo "#define gid_t int" >>confdefs.h
27345 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27346 if test "x$ac_cv_type_size_t" = xyes; then :
27350 cat >>confdefs.h <<_ACEOF
27351 #define size_t unsigned int
27356 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27357 if test "x$ac_cv_type_pid_t" = xyes; then :
27361 cat >>confdefs.h <<_ACEOF
27367 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27368 if test "x$ac_cv_type_off_t" = xyes; then :
27372 cat >>confdefs.h <<_ACEOF
27373 #define off_t long int
27379 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27380 if test "x$ac_cv_type_intptr_t" = xyes; then :
27382 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27385 for ac_type in 'int' 'long int' 'long long int'; do
27386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27387 /* end confdefs.h. */
27388 $ac_includes_default
27392 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27399 if ac_fn_c_try_compile "$LINENO"; then :
27401 cat >>confdefs.h <<_ACEOF
27402 #define intptr_t $ac_type
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408 test -z "$ac_type" && break
27414 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27415 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27417 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27420 for ac_type in 'unsigned int' 'unsigned long int' \
27421 'unsigned long long int'; do
27422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27423 /* end confdefs.h. */
27424 $ac_includes_default
27428 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27435 if ac_fn_c_try_compile "$LINENO"; then :
27437 cat >>confdefs.h <<_ACEOF
27438 #define uintptr_t $ac_type
27443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27444 test -z "$ac_type" && break
27449 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27450 if test "x$ac_cv_type_ino_t" = xyes; then :
27454 cat >>confdefs.h <<_ACEOF
27455 #define ino_t unsigned long
27460 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27461 if test "x$ac_cv_type_dev_t" = xyes; then :
27465 cat >>confdefs.h <<_ACEOF
27466 #define dev_t unsigned long
27471 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27472 if test "x$ac_cv_type_daddr_t" = xyes; then :
27476 cat >>confdefs.h <<_ACEOF
27477 #define daddr_t long
27482 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27483 if test "x$ac_cv_type_major_t" = xyes; then :
27487 cat >>confdefs.h <<_ACEOF
27488 #define major_t int
27493 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27494 if test "x$ac_cv_type_minor_t" = xyes; then :
27498 cat >>confdefs.h <<_ACEOF
27499 #define minor_t int
27504 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27505 if test "x$ac_cv_type_ssize_t" = xyes; then :
27509 cat >>confdefs.h <<_ACEOF
27510 #define ssize_t int
27515 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27516 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27518 cat >>confdefs.h <<_ACEOF
27519 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27523 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27526 case " $LIBOBJS " in
27527 *" fileblocks.$ac_objext "* ) ;;
27528 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27535 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27536 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27538 cat >>confdefs.h <<_ACEOF
27539 #define HAVE_STRUCT_STAT_ST_RDEV 1
27543 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27549 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27550 if ${ac_cv_struct_tm+:} false; then :
27551 $as_echo_n "(cached) " >&6
27553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27554 /* end confdefs.h. */
27555 #include <sys/types.h>
27562 int *p = &tm.tm_sec;
27568 if ac_fn_c_try_compile "$LINENO"; then :
27569 ac_cv_struct_tm=time.h
27571 ac_cv_struct_tm=sys/time.h
27573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27576 $as_echo "$ac_cv_struct_tm" >&6; }
27577 if test $ac_cv_struct_tm = sys/time.h; then
27579 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27584 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27585 if ${ac_cv_c_const+:} false; then :
27586 $as_echo_n "(cached) " >&6
27588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27589 /* end confdefs.h. */
27594 /* FIXME: Include the comments suggested by Paul. */
27595 #ifndef __cplusplus
27596 /* Ultrix mips cc rejects this. */
27597 typedef int charset[2];
27599 /* SunOS 4.1.1 cc rejects this. */
27600 char const *const *pcpcc;
27602 /* NEC SVR4.0.2 mips cc rejects this. */
27603 struct point {int x, y;};
27604 static struct point const zero = {0,0};
27605 /* AIX XL C 1.02.0.0 rejects this.
27606 It does not let you subtract one const X* pointer from another in
27607 an arm of an if-expression whose if-part is not a constant
27609 const char *g = "string";
27610 pcpcc = &g + (g ? g-g : 0);
27611 /* HPUX 7.0 cc rejects these. */
27613 ppc = (char**) pcpcc;
27614 pcpcc = (char const *const *) ppc;
27615 { /* SCO 3.2v4 cc rejects this. */
27617 char const *s = 0 ? (char *) 0 : (char const *) 0;
27622 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27623 int x[] = {25, 17};
27624 const int *foo = &x[0];
27627 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27628 typedef const int *iptr;
27632 { /* AIX XL C 1.02.0.0 rejects this saying
27633 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27634 struct s { int j; const int *ap[3]; };
27635 struct s *b; b->j = 5;
27637 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27638 const int foo = 10;
27639 if (!foo) return 0;
27641 return !cs[0] && !zero.x;
27648 if ac_fn_c_try_compile "$LINENO"; then :
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27656 $as_echo "$ac_cv_c_const" >&6; }
27657 if test $ac_cv_c_const = no; then
27659 $as_echo "#define const /**/" >>confdefs.h
27664 # The cast to long int works around a bug in the HP C Compiler
27665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27667 # This bug is HP SR number 8606223364.
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27669 $as_echo_n "checking size of char... " >&6; }
27670 if ${ac_cv_sizeof_char+:} false; then :
27671 $as_echo_n "(cached) " >&6
27673 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27676 if test "$ac_cv_type_char" = yes; then
27677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27679 as_fn_error 77 "cannot compute sizeof (char)
27680 See \`config.log' for more details" "$LINENO" 5; }
27682 ac_cv_sizeof_char=0
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27688 $as_echo "$ac_cv_sizeof_char" >&6; }
27692 cat >>confdefs.h <<_ACEOF
27693 #define SIZEOF_CHAR $ac_cv_sizeof_char
27697 # The cast to long int works around a bug in the HP C Compiler
27698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27700 # This bug is HP SR number 8606223364.
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27702 $as_echo_n "checking size of short int... " >&6; }
27703 if ${ac_cv_sizeof_short_int+:} false; then :
27704 $as_echo_n "(cached) " >&6
27706 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27709 if test "$ac_cv_type_short_int" = yes; then
27710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27712 as_fn_error 77 "cannot compute sizeof (short int)
27713 See \`config.log' for more details" "$LINENO" 5; }
27715 ac_cv_sizeof_short_int=0
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27721 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27725 cat >>confdefs.h <<_ACEOF
27726 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27730 # The cast to long int works around a bug in the HP C Compiler
27731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27733 # This bug is HP SR number 8606223364.
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27735 $as_echo_n "checking size of int... " >&6; }
27736 if ${ac_cv_sizeof_int+:} false; then :
27737 $as_echo_n "(cached) " >&6
27739 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27742 if test "$ac_cv_type_int" = yes; then
27743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27745 as_fn_error 77 "cannot compute sizeof (int)
27746 See \`config.log' for more details" "$LINENO" 5; }
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27754 $as_echo "$ac_cv_sizeof_int" >&6; }
27758 cat >>confdefs.h <<_ACEOF
27759 #define SIZEOF_INT $ac_cv_sizeof_int
27763 # The cast to long int works around a bug in the HP C Compiler
27764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27766 # This bug is HP SR number 8606223364.
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27768 $as_echo_n "checking size of long int... " >&6; }
27769 if ${ac_cv_sizeof_long_int+:} false; then :
27770 $as_echo_n "(cached) " >&6
27772 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27775 if test "$ac_cv_type_long_int" = yes; then
27776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27778 as_fn_error 77 "cannot compute sizeof (long int)
27779 See \`config.log' for more details" "$LINENO" 5; }
27781 ac_cv_sizeof_long_int=0
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27787 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27791 cat >>confdefs.h <<_ACEOF
27792 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27796 # The cast to long int works around a bug in the HP C Compiler
27797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27799 # This bug is HP SR number 8606223364.
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27801 $as_echo_n "checking size of long long int... " >&6; }
27802 if ${ac_cv_sizeof_long_long_int+:} false; then :
27803 $as_echo_n "(cached) " >&6
27805 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27808 if test "$ac_cv_type_long_long_int" = yes; then
27809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27811 as_fn_error 77 "cannot compute sizeof (long long int)
27812 See \`config.log' for more details" "$LINENO" 5; }
27814 ac_cv_sizeof_long_long_int=0
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27820 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27824 cat >>confdefs.h <<_ACEOF
27825 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27829 # The cast to long int works around a bug in the HP C Compiler
27830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27832 # This bug is HP SR number 8606223364.
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27834 $as_echo_n "checking size of int *... " >&6; }
27835 if ${ac_cv_sizeof_int_p+:} false; then :
27836 $as_echo_n "(cached) " >&6
27838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27841 if test "$ac_cv_type_int_p" = yes; then
27842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27844 as_fn_error 77 "cannot compute sizeof (int *)
27845 See \`config.log' for more details" "$LINENO" 5; }
27847 ac_cv_sizeof_int_p=0
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27853 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27857 cat >>confdefs.h <<_ACEOF
27858 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27864 $as_echo_n "checking for u_int type... " >&6; }
27865 if ${ac_cv_have_u_int+:} false; then :
27866 $as_echo_n "(cached) " >&6
27869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27870 /* end confdefs.h. */
27872 #include <sys/types.h>
27884 if ac_fn_c_try_compile "$LINENO"; then :
27886 ac_cv_have_u_int="yes"
27890 ac_cv_have_u_int="no"
27894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27899 $as_echo "$ac_cv_have_u_int" >&6; }
27900 if test "x$ac_cv_have_u_int" = "xyes" ; then
27901 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27907 $as_echo_n "checking for intmax_t type... " >&6; }
27908 if ${ac_cv_have_intmax_t+:} false; then :
27909 $as_echo_n "(cached) " >&6
27912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27913 /* end confdefs.h. */
27915 #include <sys/types.h>
27927 if ac_fn_c_try_compile "$LINENO"; then :
27929 ac_cv_have_intmax_t="yes"
27933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27934 /* end confdefs.h. */
27936 #include <stdint.h>
27948 if ac_fn_c_try_compile "$LINENO"; then :
27950 ac_cv_have_intmax_t="yes"
27954 ac_cv_have_intmax_t="no"
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27967 $as_echo "$ac_cv_have_intmax_t" >&6; }
27968 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27969 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27975 $as_echo_n "checking for u_intmax_t type... " >&6; }
27976 if ${ac_cv_have_u_intmax_t+:} false; then :
27977 $as_echo_n "(cached) " >&6
27980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981 /* end confdefs.h. */
27983 #include <sys/types.h>
27989 u_intmax_t a; a = 1;
27995 if ac_fn_c_try_compile "$LINENO"; then :
27997 ac_cv_have_u_intmax_t="yes"
28001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28002 /* end confdefs.h. */
28004 #include <stdint.h>
28010 u_intmax_t a; a = 1;
28016 if ac_fn_c_try_compile "$LINENO"; then :
28018 ac_cv_have_u_intmax_t="yes"
28022 ac_cv_have_u_intmax_t="no"
28026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28035 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28036 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28037 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28043 $as_echo_n "checking for intXX_t types... " >&6; }
28044 if ${ac_cv_have_intxx_t+:} false; then :
28045 $as_echo_n "(cached) " >&6
28048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28049 /* end confdefs.h. */
28051 #include <sys/types.h>
28057 int8_t a; int16_t b; int32_t c; a = b = c = 1;
28063 if ac_fn_c_try_compile "$LINENO"; then :
28065 ac_cv_have_intxx_t="yes"
28069 ac_cv_have_intxx_t="no"
28073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28078 $as_echo "$ac_cv_have_intxx_t" >&6; }
28079 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28080 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28086 $as_echo_n "checking for int64_t type... " >&6; }
28087 if ${ac_cv_have_int64_t+:} false; then :
28088 $as_echo_n "(cached) " >&6
28091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28092 /* end confdefs.h. */
28094 #include <sys/types.h>
28106 if ac_fn_c_try_compile "$LINENO"; then :
28108 ac_cv_have_int64_t="yes"
28112 ac_cv_have_int64_t="no"
28116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28121 $as_echo "$ac_cv_have_int64_t" >&6; }
28122 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28123 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28129 $as_echo_n "checking for u_intXX_t types... " >&6; }
28130 if ${ac_cv_have_u_intxx_t+:} false; then :
28131 $as_echo_n "(cached) " >&6
28134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28135 /* end confdefs.h. */
28137 #include <sys/types.h>
28143 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28149 if ac_fn_c_try_compile "$LINENO"; then :
28151 ac_cv_have_u_intxx_t="yes"
28155 ac_cv_have_u_intxx_t="no"
28159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28164 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28165 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28166 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28172 $as_echo_n "checking for u_int64_t types... " >&6; }
28173 if ${ac_cv_have_u_int64_t+:} false; then :
28174 $as_echo_n "(cached) " >&6
28177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28178 /* end confdefs.h. */
28180 #include <sys/types.h>
28186 u_int64_t a; a = 1;
28192 if ac_fn_c_try_compile "$LINENO"; then :
28194 ac_cv_have_u_int64_t="yes"
28198 ac_cv_have_u_int64_t="no"
28202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28207 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28208 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28209 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28214 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28215 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28218 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28220 /* end confdefs.h. */
28222 #include <sys/bitypes.h>
28228 int8_t a; int16_t b; int32_t c;
28229 u_int8_t e; u_int16_t f; u_int32_t g;
28230 a = b = c = e = f = g = 1;
28236 if ac_fn_c_try_compile "$LINENO"; then :
28238 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28240 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28242 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28245 $as_echo "yes" >&6; }
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28250 $as_echo "no" >&6; }
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28257 if test -z "$have_u_intxx_t" ; then
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28259 $as_echo_n "checking for uintXX_t types... " >&6; }
28260 if ${ac_cv_have_uintxx_t+:} false; then :
28261 $as_echo_n "(cached) " >&6
28264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28265 /* end confdefs.h. */
28267 #include <sys/types.h>
28273 uint8_t a; uint16_t b;
28274 uint32_t c; a = b = c = 1;
28280 if ac_fn_c_try_compile "$LINENO"; then :
28282 ac_cv_have_uintxx_t="yes"
28286 ac_cv_have_uintxx_t="no"
28290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28295 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28296 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28297 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28302 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28303 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28306 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28308 /* end confdefs.h. */
28310 #include <sys/bitypes.h>
28316 int64_t a; u_int64_t b;
28323 if ac_fn_c_try_compile "$LINENO"; then :
28325 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28327 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28330 $as_echo "yes" >&6; }
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28335 $as_echo "no" >&6; }
28339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28342 if (test -z "$have_uintxx_t" && \
28343 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28346 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28348 /* end confdefs.h. */
28350 #include <sys/bitypes.h>
28356 uint8_t a; uint16_t b;
28357 uint32_t c; a = b = c = 1;
28363 if ac_fn_c_try_compile "$LINENO"; then :
28365 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28368 $as_echo "yes" >&6; }
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28373 $as_echo "no" >&6; }
28377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28398 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28399 cat >>confdefs.h <<_ACEOF
28400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28404 echo 'configure: cannot find needed function.'; exit 1
28410 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28413 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28415 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28420 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28421 if test "x$ac_cv_func_closefrom" = xyes; then :
28423 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28427 for ac_func in getpagesize
28429 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28430 if test "x$ac_cv_func_getpagesize" = xyes; then :
28431 cat >>confdefs.h <<_ACEOF
28432 #define HAVE_GETPAGESIZE 1
28435 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28440 for ac_func in malloc_trim
28442 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28443 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28444 cat >>confdefs.h <<_ACEOF
28445 #define HAVE_MALLOC_TRIM 1
28448 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28454 for ac_func in fchdir
28456 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28457 if test "x$ac_cv_func_fchdir" = xyes; then :
28458 cat >>confdefs.h <<_ACEOF
28459 #define HAVE_FCHDIR 1
28461 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28466 for ac_func in strtoll
28468 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28469 if test "x$ac_cv_func_strtoll" = xyes; then :
28470 cat >>confdefs.h <<_ACEOF
28471 #define HAVE_STRTOLL 1
28473 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28478 for ac_func in posix_fadvise
28480 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28481 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28482 cat >>confdefs.h <<_ACEOF
28483 #define HAVE_POSIX_FADVISE 1
28489 for ac_func in fdatasync
28491 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28492 if test "x$ac_cv_func_fdatasync" = xyes; then :
28493 cat >>confdefs.h <<_ACEOF
28494 #define HAVE_FDATASYNC 1
28501 for ac_func in chflags
28503 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28504 if test "x$ac_cv_func_chflags" = xyes; then :
28505 cat >>confdefs.h <<_ACEOF
28506 #define HAVE_CHFLAGS 1
28513 for ac_func in snprintf vsnprintf gethostid fseeko
28515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28517 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28518 cat >>confdefs.h <<_ACEOF
28519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28527 $as_echo_n "checking for va_copy... " >&6; }
28528 if ${ba_cv_va_copy+:} false; then :
28529 $as_echo_n "(cached) " >&6
28532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28533 /* end confdefs.h. */
28535 #include <stdarg.h>
28536 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28537 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28543 call_use_va_copy(1,2,3)
28549 if ac_fn_c_try_link "$LINENO"; then :
28559 rm -f core conftest.err conftest.$ac_objext \
28560 conftest$ac_exeext conftest.$ac_ext
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28565 $as_echo "$ba_cv_va_copy" >&6; }
28566 test $ba_cv_va_copy = yes &&
28567 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28570 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28575 cat >>confdefs.h <<_ACEOF
28576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28583 # If resolver functions are not in libc check for -lnsl or -lresolv.
28584 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28585 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28587 $as_echo "using libc's resolver" >&6; }
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28590 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28591 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28592 $as_echo_n "(cached) " >&6
28594 ac_check_lib_save_LIBS=$LIBS
28596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28597 /* end confdefs.h. */
28599 /* Override any GCC internal prototype to avoid an error.
28600 Use char because int might match the return type of a GCC
28601 builtin and then its argument prototype would still apply. */
28605 char gethostbyname_r ();
28609 return gethostbyname_r ();
28614 if ac_fn_c_try_link "$LINENO"; then :
28615 ac_cv_lib_nsl_gethostbyname_r=yes
28617 ac_cv_lib_nsl_gethostbyname_r=no
28619 rm -f core conftest.err conftest.$ac_objext \
28620 conftest$ac_exeext conftest.$ac_ext
28621 LIBS=$ac_check_lib_save_LIBS
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28624 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28625 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28626 cat >>confdefs.h <<_ACEOF
28627 #define HAVE_LIBNSL 1
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28635 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28636 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28637 $as_echo_n "(cached) " >&6
28639 ac_check_lib_save_LIBS=$LIBS
28640 LIBS="-lresolv $LIBS"
28641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28642 /* end confdefs.h. */
28644 /* Override any GCC internal prototype to avoid an error.
28645 Use char because int might match the return type of a GCC
28646 builtin and then its argument prototype would still apply. */
28650 char gethostbyname_r ();
28654 return gethostbyname_r ();
28659 if ac_fn_c_try_link "$LINENO"; then :
28660 ac_cv_lib_resolv_gethostbyname_r=yes
28662 ac_cv_lib_resolv_gethostbyname_r=no
28664 rm -f core conftest.err conftest.$ac_objext \
28665 conftest$ac_exeext conftest.$ac_ext
28666 LIBS=$ac_check_lib_save_LIBS
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28669 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28670 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28671 cat >>confdefs.h <<_ACEOF
28672 #define HAVE_LIBRESOLV 1
28675 LIBS="-lresolv $LIBS"
28682 for ac_func in inet_pton
28684 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28685 if test "x$ac_cv_func_inet_pton" = xyes; then :
28686 cat >>confdefs.h <<_ACEOF
28687 #define HAVE_INET_PTON 1
28689 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28694 for ac_func in inet_ntop
28696 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28697 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28698 cat >>confdefs.h <<_ACEOF
28699 #define HAVE_INET_NTOP 1
28701 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28706 for ac_func in gethostbyname2
28708 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28709 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28710 cat >>confdefs.h <<_ACEOF
28711 #define HAVE_GETHOSTBYNAME2 1
28713 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28720 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28721 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28722 $as_echo_n "(cached) " >&6
28725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28726 /* end confdefs.h. */
28728 #include <sys/socket.h>
28734 struct sockaddr s; s.sa_len;
28740 if ac_fn_c_try_compile "$LINENO"; then :
28742 ac_cv_struct_sockaddr_sa_len=yes
28745 ac_cv_struct_sockaddr_sa_len=no
28749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28754 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28756 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28758 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28763 $as_echo_n "checking for working getaddrinfo... " >&6; }
28764 if ${ac_cv_working_getaddrinfo+:} false; then :
28765 $as_echo_n "(cached) " >&6
28768 if test "$cross_compiling" = yes; then :
28770 ac_cv_working_getaddrinfo="yes"
28774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28775 /* end confdefs.h. */
28778 #include <string.h>
28779 #include <sys/types.h>
28780 #include <sys/socket.h>
28783 struct addrinfo hints, *ai;
28786 memset(&hints, 0, sizeof(hints));
28787 hints.ai_family = AF_UNSPEC;
28788 hints.ai_socktype = SOCK_STREAM;
28789 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28793 if (ai->ai_addr->sa_family != AF_INET) {
28800 if ac_fn_c_try_run "$LINENO"; then :
28802 ac_cv_working_getaddrinfo="yes"
28806 ac_cv_working_getaddrinfo="no"
28809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28810 conftest.$ac_objext conftest.beam conftest.$ac_ext
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28817 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28818 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28819 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28821 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28826 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28827 if test "$ac_cv_func_gai_strerror" != "yes"; then
28828 ac_cv_working_getaddrinfo="no"
28831 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28836 for ac_func in strftime
28838 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28839 if test "x$ac_cv_func_strftime" = xyes; then :
28840 cat >>confdefs.h <<_ACEOF
28841 #define HAVE_STRFTIME 1
28845 # strftime is in -lintl on SCO UNIX.
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28847 $as_echo_n "checking for strftime in -lintl... " >&6; }
28848 if ${ac_cv_lib_intl_strftime+:} false; then :
28849 $as_echo_n "(cached) " >&6
28851 ac_check_lib_save_LIBS=$LIBS
28852 LIBS="-lintl $LIBS"
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h. */
28856 /* Override any GCC internal prototype to avoid an error.
28857 Use char because int might match the return type of a GCC
28858 builtin and then its argument prototype would still apply. */
28866 return strftime ();
28871 if ac_fn_c_try_link "$LINENO"; then :
28872 ac_cv_lib_intl_strftime=yes
28874 ac_cv_lib_intl_strftime=no
28876 rm -f core conftest.err conftest.$ac_objext \
28877 conftest$ac_exeext conftest.$ac_ext
28878 LIBS=$ac_check_lib_save_LIBS
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28881 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28882 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28883 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28885 LIBS="-lintl $LIBS"
28891 for ac_func in vprintf
28893 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28894 if test "x$ac_cv_func_vprintf" = xyes; then :
28895 cat >>confdefs.h <<_ACEOF
28896 #define HAVE_VPRINTF 1
28899 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28900 if test "x$ac_cv_func__doprnt" = xyes; then :
28902 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28910 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28911 # for constant arguments. Useless!
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28913 $as_echo_n "checking for working alloca.h... " >&6; }
28914 if ${ac_cv_working_alloca_h+:} false; then :
28915 $as_echo_n "(cached) " >&6
28917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28918 /* end confdefs.h. */
28919 #include <alloca.h>
28923 char *p = (char *) alloca (2 * sizeof (int));
28929 if ac_fn_c_try_link "$LINENO"; then :
28930 ac_cv_working_alloca_h=yes
28932 ac_cv_working_alloca_h=no
28934 rm -f core conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28938 $as_echo "$ac_cv_working_alloca_h" >&6; }
28939 if test $ac_cv_working_alloca_h = yes; then
28941 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28946 $as_echo_n "checking for alloca... " >&6; }
28947 if ${ac_cv_func_alloca_works+:} false; then :
28948 $as_echo_n "(cached) " >&6
28950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28951 /* end confdefs.h. */
28953 # define alloca __builtin_alloca
28956 # include <malloc.h>
28957 # define alloca _alloca
28959 # ifdef HAVE_ALLOCA_H
28960 # include <alloca.h>
28965 # ifndef alloca /* predefined by HP cc +Olibcalls */
28966 void *alloca (size_t);
28976 char *p = (char *) alloca (1);
28982 if ac_fn_c_try_link "$LINENO"; then :
28983 ac_cv_func_alloca_works=yes
28985 ac_cv_func_alloca_works=no
28987 rm -f core conftest.err conftest.$ac_objext \
28988 conftest$ac_exeext conftest.$ac_ext
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28991 $as_echo "$ac_cv_func_alloca_works" >&6; }
28993 if test $ac_cv_func_alloca_works = yes; then
28995 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28998 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28999 # that cause trouble. Some versions do not even contain alloca or
29000 # contain a buggy version. If you still want to use their alloca,
29001 # use ar to extract alloca.o from them instead of compiling alloca.c.
29003 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29005 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29009 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29010 if ${ac_cv_os_cray+:} false; then :
29011 $as_echo_n "(cached) " >&6
29013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29014 /* end confdefs.h. */
29015 #if defined CRAY && ! defined CRAY2
29022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29023 $EGREP "webecray" >/dev/null 2>&1; then :
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29032 $as_echo "$ac_cv_os_cray" >&6; }
29033 if test $ac_cv_os_cray = yes; then
29034 for ac_func in _getb67 GETB67 getb67; do
29035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29036 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29037 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29039 cat >>confdefs.h <<_ACEOF
29040 #define CRAY_STACKSEG_END $ac_func
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29050 $as_echo_n "checking stack direction for C alloca... " >&6; }
29051 if ${ac_cv_c_stack_direction+:} false; then :
29052 $as_echo_n "(cached) " >&6
29054 if test "$cross_compiling" = yes; then :
29055 ac_cv_c_stack_direction=0
29057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29058 /* end confdefs.h. */
29059 $ac_includes_default
29061 find_stack_direction ()
29063 static char *addr = 0;
29068 return find_stack_direction ();
29071 return (&dummy > addr) ? 1 : -1;
29077 return find_stack_direction () < 0;
29080 if ac_fn_c_try_run "$LINENO"; then :
29081 ac_cv_c_stack_direction=1
29083 ac_cv_c_stack_direction=-1
29085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29086 conftest.$ac_objext conftest.beam conftest.$ac_ext
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29091 $as_echo "$ac_cv_c_stack_direction" >&6; }
29092 cat >>confdefs.h <<_ACEOF
29093 #define STACK_DIRECTION $ac_cv_c_stack_direction
29099 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29100 # -lseq on Dynix/PTX, -lgen on Unixware.
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29102 $as_echo_n "checking for library containing getmntent... " >&6; }
29103 if ${ac_cv_search_getmntent+:} false; then :
29104 $as_echo_n "(cached) " >&6
29106 ac_func_search_save_LIBS=$LIBS
29107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29108 /* end confdefs.h. */
29110 /* Override any GCC internal prototype to avoid an error.
29111 Use char because int might match the return type of a GCC
29112 builtin and then its argument prototype would still apply. */
29120 return getmntent ();
29125 for ac_lib in '' sun seq gen; do
29126 if test -z "$ac_lib"; then
29127 ac_res="none required"
29130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29132 if ac_fn_c_try_link "$LINENO"; then :
29133 ac_cv_search_getmntent=$ac_res
29135 rm -f core conftest.err conftest.$ac_objext \
29137 if ${ac_cv_search_getmntent+:} false; then :
29141 if ${ac_cv_search_getmntent+:} false; then :
29144 ac_cv_search_getmntent=no
29146 rm conftest.$ac_ext
29147 LIBS=$ac_func_search_save_LIBS
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29150 $as_echo "$ac_cv_search_getmntent" >&6; }
29151 ac_res=$ac_cv_search_getmntent
29152 if test "$ac_res" != no; then :
29153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29154 ac_cv_func_getmntent=yes
29156 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29159 ac_cv_func_getmntent=no
29163 for ac_func in getmntinfo
29165 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29166 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29167 cat >>confdefs.h <<_ACEOF
29168 #define HAVE_GETMNTINFO 1
29170 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29176 $as_echo_n "checking whether closedir returns void... " >&6; }
29177 if ${ac_cv_func_closedir_void+:} false; then :
29178 $as_echo_n "(cached) " >&6
29180 if test "$cross_compiling" = yes; then :
29181 ac_cv_func_closedir_void=yes
29183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29184 /* end confdefs.h. */
29185 $ac_includes_default
29186 #include <$ac_header_dirent>
29187 #ifndef __cplusplus
29194 return closedir (opendir (".")) != 0;
29199 if ac_fn_c_try_run "$LINENO"; then :
29200 ac_cv_func_closedir_void=no
29202 ac_cv_func_closedir_void=yes
29204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29205 conftest.$ac_objext conftest.beam conftest.$ac_ext
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29210 $as_echo "$ac_cv_func_closedir_void" >&6; }
29211 if test $ac_cv_func_closedir_void = yes; then
29213 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29218 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29219 if ${ac_cv_func_setpgrp_void+:} false; then :
29220 $as_echo_n "(cached) " >&6
29222 if test "$cross_compiling" = yes; then :
29223 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29226 /* end confdefs.h. */
29227 $ac_includes_default
29231 /* If this system has a BSD-style setpgrp which takes arguments,
29232 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29233 exit successfully. */
29234 return setpgrp (1,1) != -1;
29239 if ac_fn_c_try_run "$LINENO"; then :
29240 ac_cv_func_setpgrp_void=no
29242 ac_cv_func_setpgrp_void=yes
29244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29245 conftest.$ac_objext conftest.beam conftest.$ac_ext
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29250 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29251 if test $ac_cv_func_setpgrp_void = yes; then
29253 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29256 # AC_FUNC_FNMATCH dnl use local version
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29259 $as_echo_n "checking for gettext in -lintl... " >&6; }
29260 if ${ac_cv_lib_intl_gettext+:} false; then :
29261 $as_echo_n "(cached) " >&6
29263 ac_check_lib_save_LIBS=$LIBS
29264 LIBS="-lintl $LIBS"
29265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29266 /* end confdefs.h. */
29268 /* Override any GCC internal prototype to avoid an error.
29269 Use char because int might match the return type of a GCC
29270 builtin and then its argument prototype would still apply. */
29283 if ac_fn_c_try_link "$LINENO"; then :
29284 ac_cv_lib_intl_gettext=yes
29286 ac_cv_lib_intl_gettext=no
29288 rm -f core conftest.err conftest.$ac_objext \
29289 conftest$ac_exeext conftest.$ac_ext
29290 LIBS=$ac_check_lib_save_LIBS
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29293 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29294 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29295 LIBS="$LIBS -lintl"
29299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29300 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29301 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29302 $as_echo_n "(cached) " >&6
29304 ac_check_lib_save_LIBS=$LIBS
29306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29307 /* end confdefs.h. */
29309 /* Override any GCC internal prototype to avoid an error.
29310 Use char because int might match the return type of a GCC
29311 builtin and then its argument prototype would still apply. */
29319 return getpwnam ();
29324 if ac_fn_c_try_link "$LINENO"; then :
29325 ac_cv_lib_sun_getpwnam=yes
29327 ac_cv_lib_sun_getpwnam=no
29329 rm -f core conftest.err conftest.$ac_objext \
29330 conftest$ac_exeext conftest.$ac_ext
29331 LIBS=$ac_check_lib_save_LIBS
29333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29334 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29335 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29336 cat >>confdefs.h <<_ACEOF
29337 #define HAVE_LIBSUN 1
29345 for ac_header in zlib.h
29347 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29348 if test "x$ac_cv_header_zlib_h" = xyes; then :
29349 cat >>confdefs.h <<_ACEOF
29350 #define HAVE_ZLIB_H 1
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29358 $as_echo_n "checking for deflate in -lz... " >&6; }
29359 if ${ac_cv_lib_z_deflate+:} false; then :
29360 $as_echo_n "(cached) " >&6
29362 ac_check_lib_save_LIBS=$LIBS
29364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29365 /* end confdefs.h. */
29367 /* Override any GCC internal prototype to avoid an error.
29368 Use char because int might match the return type of a GCC
29369 builtin and then its argument prototype would still apply. */
29382 if ac_fn_c_try_link "$LINENO"; then :
29383 ac_cv_lib_z_deflate=yes
29385 ac_cv_lib_z_deflate=no
29387 rm -f core conftest.err conftest.$ac_objext \
29388 conftest$ac_exeext conftest.$ac_ext
29389 LIBS=$ac_check_lib_save_LIBS
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29392 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29393 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29398 if test x$ZLIBS = x-lz; then
29399 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29406 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29407 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29409 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29410 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29413 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29414 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29415 $as_echo_n "(cached) " >&6
29417 ac_check_lib_save_LIBS=$LIBS
29418 LIBS="-llzo2 $LIBS"
29419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29420 /* end confdefs.h. */
29422 /* Override any GCC internal prototype to avoid an error.
29423 Use char because int might match the return type of a GCC
29424 builtin and then its argument prototype would still apply. */
29428 char lzo1x_1_compress ();
29432 return lzo1x_1_compress ();
29437 if ac_fn_c_try_link "$LINENO"; then :
29438 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29440 ac_cv_lib_lzo2_lzo1x_1_compress=no
29442 rm -f core conftest.err conftest.$ac_objext \
29443 conftest$ac_exeext conftest.$ac_ext
29444 LIBS=$ac_check_lib_save_LIBS
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29447 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29448 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29452 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29471 # Check whether --enable-afs was given.
29472 if test "${enable_afs+set}" = set; then :
29473 enableval=$enable_afs;
29474 if test x$enableval = xyes; then
29476 elif test x$enableval = xno; then
29485 if test x$support_afs = xyes -o x$support_afs = xauto; then
29487 # Check whether --with-afsdir was given.
29488 if test "${with_afsdir+set}" = set; then :
29489 withval=$with_afsdir; with_afsdir=$withval
29494 if test x$with_afsdir = x; then
29495 for root in /usr /usr/local; do
29496 if test -d ${root}/include/afs/ ; then
29497 with_afsdir=${root}
29500 if test -d ${root}/include/openafs/afs/ ; then
29501 with_afsdir=${root}
29507 if test -d ${with_afsdir}/include/afs/ ; then
29508 AFS_CFLAGS="-I${with_afsdir}/include"
29510 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29511 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29515 saved_CFLAGS="${CFLAGS}"
29516 saved_CPPFLAGS="${CPPFLAGS}"
29517 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29518 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29520 for ac_header in afs/afsint.h
29522 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29523 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29524 cat >>confdefs.h <<_ACEOF
29525 #define HAVE_AFS_AFSINT_H 1
29532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29533 /* end confdefs.h. */
29535 #include <afs/afsint.h>
29536 #include <afs/venus.h>
29539 if ac_fn_c_try_cpp "$LINENO"; then :
29541 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29545 rm -f conftest.err conftest.i conftest.$ac_ext
29547 CFLAGS="${saved_CFLAGS}"
29548 CPPFLAGS="${saved_CPPFLAGS}"
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29551 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29552 for dir in ${with_afsdir}/lib \
29553 ${with_afsdir}/lib/afs \
29554 ${with_afsdir}/lib/openafs \
29555 ${with_afsdir}/lib64 \
29556 ${with_afsdir}/lib64/afs \
29557 ${with_afsdir}/lib64/openafs
29559 for arch_type in .a .so
29561 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29563 if test $pkg = 0; then
29565 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29571 if test $have_afs = yes; then
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29573 $as_echo "yes" >&6; }
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29576 $as_echo "no" >&6; }
29579 if test x$support_afs = xyes -a $have_afs != yes; then
29580 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29581 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29583 if test $have_afs = yes; then
29585 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29588 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29597 # Check whether --enable-acl was given.
29598 if test "${enable_acl+set}" = set; then :
29599 enableval=$enable_acl;
29600 if test x$enableval = xyes; then
29602 elif test x$enableval = xno; then
29611 have_extended_acl=no
29612 if test x$support_acl = xyes -o x$support_acl = xauto; then
29613 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29614 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29616 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29622 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29623 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29631 if test $have_acl = no; then
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29633 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29634 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29635 $as_echo_n "(cached) " >&6
29637 ac_check_lib_save_LIBS=$LIBS
29639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29640 /* end confdefs.h. */
29642 /* Override any GCC internal prototype to avoid an error.
29643 Use char because int might match the return type of a GCC
29644 builtin and then its argument prototype would still apply. */
29648 char acl_get_file ();
29652 return acl_get_file ();
29657 if ac_fn_c_try_link "$LINENO"; then :
29658 ac_cv_lib_acl_acl_get_file=yes
29660 ac_cv_lib_acl_acl_get_file=no
29662 rm -f core conftest.err conftest.$ac_objext \
29663 conftest$ac_exeext conftest.$ac_ext
29664 LIBS=$ac_check_lib_save_LIBS
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29667 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29668 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29671 if test $have_afs = yes; then
29672 if test -d /usr/lib64/; then
29673 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29675 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29678 FDLIBS="-lacl $FDLIBS"
29686 if test $have_acl = no -a \
29687 x${HAVE_OSF1_OS_TRUE} = x; then
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29689 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29690 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29691 $as_echo_n "(cached) " >&6
29693 ac_check_lib_save_LIBS=$LIBS
29694 LIBS="-lpacl $LIBS"
29695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29696 /* end confdefs.h. */
29698 /* Override any GCC internal prototype to avoid an error.
29699 Use char because int might match the return type of a GCC
29700 builtin and then its argument prototype would still apply. */
29704 char acl_get_file ();
29708 return acl_get_file ();
29713 if ac_fn_c_try_link "$LINENO"; then :
29714 ac_cv_lib_pacl_acl_get_file=yes
29716 ac_cv_lib_pacl_acl_get_file=no
29718 rm -f core conftest.err conftest.$ac_objext \
29719 conftest$ac_exeext conftest.$ac_ext
29720 LIBS=$ac_check_lib_save_LIBS
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29723 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29724 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29727 FDLIBS="-lpacl $FDLIBS"
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29734 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29735 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29736 if test $? = 0; then
29738 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29741 $as_echo "yes" >&6; }
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29744 $as_echo "no" >&6; }
29748 if test $have_acl = yes -a \
29749 x${HAVE_DARWIN_OS_TRUE} = x; then
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29751 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29752 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29753 if test $? = 0; then
29755 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29758 $as_echo "yes" >&6; }
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29761 $as_echo "no" >&6; }
29765 if test $have_acl = yes -a \
29766 x${HAVE_FREEBSD_OS_TRUE} = x; then
29767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29768 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29769 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29770 if test $? = 0; then
29772 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29775 $as_echo "yes" >&6; }
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29778 $as_echo "no" >&6; }
29782 if test $have_acl = no -a \
29783 x${HAVE_SUN_OS_TRUE} = x; then
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29785 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29786 if ${ac_cv_lib_sec_acltotext+:} false; then :
29787 $as_echo_n "(cached) " >&6
29789 ac_check_lib_save_LIBS=$LIBS
29791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29792 /* end confdefs.h. */
29794 /* Override any GCC internal prototype to avoid an error.
29795 Use char because int might match the return type of a GCC
29796 builtin and then its argument prototype would still apply. */
29804 return acltotext ();
29809 if ac_fn_c_try_link "$LINENO"; then :
29810 ac_cv_lib_sec_acltotext=yes
29812 ac_cv_lib_sec_acltotext=no
29814 rm -f core conftest.err conftest.$ac_objext \
29815 conftest$ac_exeext conftest.$ac_ext
29816 LIBS=$ac_check_lib_save_LIBS
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29819 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29820 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29823 FDLIBS="-lsec $FDLIBS"
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29826 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29827 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29828 $as_echo_n "(cached) " >&6
29830 ac_check_lib_save_LIBS=$LIBS
29832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29833 /* end confdefs.h. */
29835 /* Override any GCC internal prototype to avoid an error.
29836 Use char because int might match the return type of a GCC
29837 builtin and then its argument prototype would still apply. */
29841 char acl_totext ();
29845 return acl_totext ();
29850 if ac_fn_c_try_link "$LINENO"; then :
29851 ac_cv_lib_sec_acl_totext=yes
29853 ac_cv_lib_sec_acl_totext=no
29855 rm -f core conftest.err conftest.$ac_objext \
29856 conftest$ac_exeext conftest.$ac_ext
29857 LIBS=$ac_check_lib_save_LIBS
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29860 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29861 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29863 have_extended_acl=yes
29874 if test $have_acl = no -a \
29875 x${HAVE_AIX_OS_TRUE} = x; then
29876 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29877 if test "x$ac_cv_func_acl_get" = xyes; then :
29881 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29882 if test "x$ac_cv_func_aclx_get" = xyes; then :
29884 have_extended_acl=yes
29895 if test x$support_acl = xyes -a $have_acl != yes; then
29896 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29897 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29899 if test $have_acl = yes; then
29901 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29905 if test $have_extended_acl = yes; then
29907 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29914 # Check whether --enable-xattr was given.
29915 if test "${enable_xattr+set}" = set; then :
29916 enableval=$enable_xattr;
29917 if test x$enableval = xyes; then
29919 elif test x$enableval = xno; then
29928 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29929 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29930 x${HAVE_NETBSD_OS_TRUE} = x -o \
29931 x${HAVE_OPENBSD_OS_TRUE} = x; then
29932 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29933 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29935 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29940 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29941 if test "x$ac_cv_header_libutil_h" = xyes; then :
29943 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29948 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29953 cat >>confdefs.h <<_ACEOF
29954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29959 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29962 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29965 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29973 if test $have_xattr = no; then
29974 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29979 cat >>confdefs.h <<_ACEOF
29980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29985 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29988 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29991 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30000 if test $have_xattr = yes; then
30001 have_extattr_string_in_libc=no
30002 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30007 cat >>confdefs.h <<_ACEOF
30008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30011 have_extattr_string_in_libc=yes
30013 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30016 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30024 if test $have_extattr_string_in_libc = no; then
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30026 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30027 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30028 $as_echo_n "(cached) " >&6
30030 ac_check_lib_save_LIBS=$LIBS
30031 LIBS="-lutil $LIBS"
30032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30033 /* end confdefs.h. */
30035 /* Override any GCC internal prototype to avoid an error.
30036 Use char because int might match the return type of a GCC
30037 builtin and then its argument prototype would still apply. */
30041 char extattr_namespace_to_string extattr_string_to_namespace ();
30045 return extattr_namespace_to_string extattr_string_to_namespace ();
30050 if ac_fn_c_try_link "$LINENO"; then :
30051 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30053 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30055 rm -f core conftest.err conftest.$ac_objext \
30056 conftest$ac_exeext conftest.$ac_ext
30057 LIBS=$ac_check_lib_save_LIBS
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30060 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30061 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30064 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30067 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30069 FDLIBS="-lutil $FDLIBS"
30078 if test $have_xattr = no -a \
30079 x${HAVE_AIX_OS_TRUE} = x; then
30080 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30081 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30083 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30088 for ac_func in llistea lgetea lsetea
30090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30093 cat >>confdefs.h <<_ACEOF
30094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30099 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30102 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30105 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30113 if test $have_xattr = no; then
30114 for ac_func in listea getea setea
30116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30117 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30118 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30119 cat >>confdefs.h <<_ACEOF
30120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30125 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30128 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30131 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30141 if test $have_xattr = no -a \
30142 x${HAVE_OSF1_OS_TRUE} = x; then
30143 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30144 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30146 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30151 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30154 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30155 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30156 cat >>confdefs.h <<_ACEOF
30157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30162 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30165 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30168 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30171 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30174 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30183 if test $have_xattr = no -a \
30184 x${HAVE_SUN_OS_TRUE} = x; then
30185 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30186 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30188 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30193 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30194 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30196 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30201 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30202 if test "x$ac_cv_header_attr_h" = xyes; then :
30204 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30210 for ac_func in openat fstatat unlinkat fchownat futimesat
30212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30214 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30215 cat >>confdefs.h <<_ACEOF
30216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30221 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30224 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30227 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30230 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30233 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30241 if test $have_xattr = yes; then
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30243 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30244 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30245 $as_echo_n "(cached) " >&6
30247 ac_check_lib_save_LIBS=$LIBS
30248 LIBS="-lnvpair $LIBS"
30249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30250 /* end confdefs.h. */
30252 /* Override any GCC internal prototype to avoid an error.
30253 Use char because int might match the return type of a GCC
30254 builtin and then its argument prototype would still apply. */
30258 char nvlist_next_nvpair ();
30262 return nvlist_next_nvpair ();
30267 if ac_fn_c_try_link "$LINENO"; then :
30268 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30270 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30272 rm -f core conftest.err conftest.$ac_objext \
30273 conftest$ac_exeext conftest.$ac_ext
30274 LIBS=$ac_check_lib_save_LIBS
30276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30277 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30278 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30281 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30283 FDLIBS="-lnvpair $FDLIBS"
30291 if test $have_xattr = no; then
30292 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30293 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30295 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30300 for ac_func in llistxattr lgetxattr lsetxattr
30302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30305 cat >>confdefs.h <<_ACEOF
30306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30311 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30314 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30317 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30325 if test $have_xattr = no; then
30326 for ac_func in listxattr getxattr setxattr
30328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30331 cat >>confdefs.h <<_ACEOF
30332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30337 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30340 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30343 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30353 if test x$support_xattr = xyes -a $have_xattr != yes; then
30354 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30355 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30357 if test $have_xattr = yes; then
30359 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30367 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30368 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30369 $as_echo_n "(cached) " >&6
30371 ac_check_lib_save_LIBS=$LIBS
30372 LIBS="-lpthread $LIBS"
30373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30374 /* end confdefs.h. */
30376 /* Override any GCC internal prototype to avoid an error.
30377 Use char because int might match the return type of a GCC
30378 builtin and then its argument prototype would still apply. */
30382 char pthread_create ();
30386 return pthread_create ();
30391 if ac_fn_c_try_link "$LINENO"; then :
30392 ac_cv_lib_pthread_pthread_create=yes
30394 ac_cv_lib_pthread_pthread_create=no
30396 rm -f core conftest.err conftest.$ac_objext \
30397 conftest$ac_exeext conftest.$ac_ext
30398 LIBS=$ac_check_lib_save_LIBS
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30401 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30402 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30403 PTHREAD_LIB="-lpthread"
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30407 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30408 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30409 $as_echo_n "(cached) " >&6
30411 ac_check_lib_save_LIBS=$LIBS
30412 LIBS="-lpthreads $LIBS"
30413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30414 /* end confdefs.h. */
30416 /* Override any GCC internal prototype to avoid an error.
30417 Use char because int might match the return type of a GCC
30418 builtin and then its argument prototype would still apply. */
30422 char pthread_create ();
30426 return pthread_create ();
30431 if ac_fn_c_try_link "$LINENO"; then :
30432 ac_cv_lib_pthreads_pthread_create=yes
30434 ac_cv_lib_pthreads_pthread_create=no
30436 rm -f core conftest.err conftest.$ac_objext \
30437 conftest$ac_exeext conftest.$ac_ext
30438 LIBS=$ac_check_lib_save_LIBS
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30441 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30442 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30443 PTHREAD_LIB="-lpthreads"
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30447 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30448 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30449 $as_echo_n "(cached) " >&6
30451 ac_check_lib_save_LIBS=$LIBS
30453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30454 /* end confdefs.h. */
30456 /* Override any GCC internal prototype to avoid an error.
30457 Use char because int might match the return type of a GCC
30458 builtin and then its argument prototype would still apply. */
30462 char pthread_create ();
30466 return pthread_create ();
30471 if ac_fn_c_try_link "$LINENO"; then :
30472 ac_cv_lib_c_r_pthread_create=yes
30474 ac_cv_lib_c_r_pthread_create=no
30476 rm -f core conftest.err conftest.$ac_objext \
30477 conftest$ac_exeext conftest.$ac_ext
30478 LIBS=$ac_check_lib_save_LIBS
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30481 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30482 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30483 PTHREAD_LIB="-lc_r"
30486 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30487 if test "x$ac_cv_func_pthread_create" = xyes; then :
30504 for ac_header in sys/prctl.h sys/capability.h
30506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30509 cat >>confdefs.h <<_ACEOF
30510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30517 for ac_func in prctl setreuid
30519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30522 cat >>confdefs.h <<_ACEOF
30523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30530 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30531 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30532 $as_echo_n "(cached) " >&6
30534 ac_check_lib_save_LIBS=$LIBS
30536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30537 /* end confdefs.h. */
30539 /* Override any GCC internal prototype to avoid an error.
30540 Use char because int might match the return type of a GCC
30541 builtin and then its argument prototype would still apply. */
30545 char cap_set_proc ();
30549 return cap_set_proc ();
30554 if ac_fn_c_try_link "$LINENO"; then :
30555 ac_cv_lib_cap_cap_set_proc=yes
30557 ac_cv_lib_cap_cap_set_proc=no
30559 rm -f core conftest.err conftest.$ac_objext \
30560 conftest$ac_exeext conftest.$ac_ext
30561 LIBS=$ac_check_lib_save_LIBS
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30564 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30565 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30571 if test x$CAP_LIBS = x-lcap; then
30573 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30579 $as_echo "#define FDLIBS 1" >>confdefs.h
30582 CFLAGS=${CFLAGS--O}
30584 if test x$have_gcc = xyes ; then
30585 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30586 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30588 LDFLAGS=${LDFLAGS--O}
30589 CPPFLAGS="$CPPFLAGS"
30615 PFILES="platforms/Makefile"
30619 COMPRESS_MANPAGES=yes
30621 case "$DISTNAME" in
30624 PSCMD="ps -e -o pid,comm"
30625 PFILES="${PFILES} \
30626 platforms/aix/Makefile"
30627 TAPEDRIVE="/dev/rmt0.1"
30631 PTHREAD_LIB="-lpthread -lexc"
30632 if test "${CC}" = "gcc" ; then
30639 TAPEDRIVE="/dev/nrmt0"
30642 DISTVER=`uname -a |awk '{print $3}'`
30643 TAPEDRIVE="/dev/nrmt0"
30644 PTHREAD_LIB="-pthread"
30645 CFLAGS="${CFLAGS} -pthread"
30646 PSCMD="ps -ax -o pid,command"
30649 PFILES="${PFILES} \
30650 platforms/bsdi/Makefile \
30651 platforms/bsdi/bacula-fd \
30652 platforms/bsdi/bacula-sd \
30653 platforms/bsdi/bacula-dir"
30654 largefile_support="yes"
30657 DISTVER=`uname -a |awk '{print $3}'`
30658 TAPEDRIVE="/dev/nrst0"
30660 WCFLAGS="-mwindows"
30661 WLDFLAGS="-mwindows"
30665 TAPEDRIVE="/dev/nst0"
30666 PSCMD="ps -e -o pid,command"
30668 PFILES="${PFILES} \
30669 platforms/darwin/Makefile"
30673 TAPEDRIVE="/dev/nst0"
30674 PSCMD="ps -e -o pid,command"
30676 PFILES="${PFILES} \
30677 platforms/osx/Makefile"
30680 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30683 DISTVER=`cat /etc/debian_version`
30684 if test -f /etc/lsb-release ; then
30686 if test "x$DISTRIB_ID" != "x" ; then
30687 DISTNAME=$DISTRIB_ID
30689 if test "x$DISTRIB_RELEASE" != "x" ; then
30690 DISTVER=$DISTRIB_RELEASE
30693 if test "$DISTNAME" = "Ubuntu" ; then
30696 TAPEDRIVE="/dev/nst0"
30697 PSCMD="ps -e -o pid,command"
30698 if test "$DISTNAME" = "ubuntu" ; then
30699 PFILES="${PFILES} \
30700 platforms/ubuntu/Makefile \
30701 platforms/ubuntu/bacula-fd \
30702 platforms/ubuntu/bacula-sd \
30703 platforms/ubuntu/bacula-dir"
30705 PFILES="${PFILES} \
30706 platforms/debian/Makefile \
30707 platforms/debian/bacula-fd \
30708 platforms/debian/bacula-sd \
30709 platforms/debian/bacula-dir"
30713 DISTVER=`uname -a |awk '{print $3}'`
30714 VER=`echo $DISTVER | cut -c 1`
30715 if test x$VER = x4 ; then
30716 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30717 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30721 TAPEDRIVE="/dev/nrsa0"
30722 PSCMD="ps -ax -o pid,command"
30723 PFILES="${PFILES} \
30724 platforms/freebsd/Makefile \
30725 platforms/freebsd/bacula-fd \
30726 platforms/freebsd/bacula-sd \
30727 platforms/freebsd/bacula-dir"
30728 largefile_support="yes"
30732 TAPEDRIVE="/dev/nst0"
30733 PSCMD="ps -e -o pid,command"
30734 PFILES="${PFILES} \
30735 platforms/hurd/Makefile \
30736 platforms/hurd/bacula-fd \
30737 platforms/hurd/bacula-sd \
30738 platforms/hurd/bacula-dir"
30741 PSCMD="UNIX95=1; ps -e -o pid,comm"
30742 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30744 TAPEDRIVE="/dev/rmt/0hnb"
30745 PTHREAD_LIB="-lpthread"
30746 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30751 TAPEDRIVE="/dev/rmt/0cbn"
30752 PSCMD="ps -e -o pid,comm"
30753 PFILES="${PFILES} \
30754 platforms/irix/Makefile \
30755 platforms/irix/bacula-fd \
30756 platforms/irix/bacula-sd \
30757 platforms/irix/bacula-dir"
30760 DISTVER=`uname -a |awk '{print $3}'`
30763 TAPEDRIVE="/dev/nrst0"
30764 PSCMD="ps -ax -o pid,command"
30765 PTHREAD_LIB="-pthread"
30766 CFLAGS="${CFLAGS} -pthread"
30769 DISTVER=`uname -a |awk '{print $3}'`
30772 TAPEDRIVE="/dev/nrst0"
30773 PSCMD="ps -ax -o pid,command"
30774 PTHREAD_LIB="-pthread"
30775 CFLAGS="${CFLAGS} -pthread"
30776 PFILES="${PFILES} \
30777 platforms/openbsd/Makefile \
30778 platforms/openbsd/bacula-fd \
30779 platforms/openbsd/bacula-sd \
30780 platforms/openbsd/bacula-dir"
30783 if test -f /etc/whitebox-release ; then
30784 f=/etc/whitebox-release
30786 f=/etc/redhat-release
30788 if test `cat $f | grep release |\
30789 cut -f 3 -d ' '`x = "Enterprise"x ; then
30790 DISTVER="Enterprise "`cat $f | grep release |\
30793 DISTVER=`cat /etc/redhat-release | grep release |\
30796 TAPEDRIVE="/dev/nst0"
30797 PSCMD="ps -e -o pid,command"
30798 PFILES="${PFILES} \
30799 platforms/redhat/Makefile \
30800 platforms/redhat/bacula-fd \
30801 platforms/redhat/bacula-sd \
30802 platforms/redhat/bacula-dir
30806 DISTVER=`cat /etc/mandrake-release | grep release |\
30808 TAPEDRIVE="/dev/nst0"
30809 PSCMD="ps -e -o pid,command"
30810 PFILES="${PFILES} \
30811 platforms/mandrake/Makefile \
30812 platforms/mandrake/bacula-fd \
30813 platforms/mandrake/bacula-sd \
30814 platforms/mandrake/bacula-dir \
30818 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30819 TAPEDRIVE="/dev/nst0"
30820 PSCMD="ps -e -o pid,command"
30821 PFILES="${PFILES} \
30822 platforms/gentoo/Makefile \
30823 platforms/gentoo/bacula-init \
30824 platforms/gentoo/bacula-fd \
30825 platforms/gentoo/bacula-sd \
30826 platforms/gentoo/bacula-dir"
30829 DISTVER=`cat /etc/slackware-version`
30830 TAPEDRIVE="/dev/nst0"
30831 PSCMD="ps -e -o pid,command"
30832 PFILES="${PFILES} \
30833 platforms/slackware/Makefile \
30834 platforms/slackware/rc.bacula-fd \
30835 platforms/slackware/rc.bacula-sd \
30836 platforms/slackware/rc.bacula-dir\
30837 platforms/slackware/functions.bacula"
30841 TAPEDRIVE="/dev/rmt/0cbn"
30842 PSCMD="ps -e -o pid,comm"
30843 PFILES="${PFILES} \
30844 platforms/solaris/Makefile \
30845 platforms/solaris/bacula-fd \
30846 platforms/solaris/bacula-sd \
30847 platforms/solaris/bacula-dir"
30851 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30853 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30857 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30863 LIBS="$LIBS -lresolv -lrt"
30866 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30868 TAPEDRIVE="/dev/nst0"
30869 PSCMD="ps -e -o pid,command"
30870 PFILES="${PFILES} \
30871 platforms/suse/Makefile \
30872 platforms/suse/bacula-fd \
30873 platforms/suse/bacula-sd \
30874 platforms/suse/bacula-dir \
30875 platforms/suse/bacula"
30880 TAPEDRIVE="/dev/nst0"
30881 PSCMD="ps -e -o pid,command"
30882 PFILES="${PFILES} \
30883 platforms/suse/Makefile \
30884 platforms/suse/bacula-fd \
30885 platforms/suse/bacula-sd \
30886 platforms/suse/bacula-dir"
30890 TAPEDRIVE="/dev/nst0"
30893 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30898 $as_echo_n "checking for systemd support... " >&6; }
30900 # Check whether --with-systemd was given.
30901 if test "${with_systemd+set}" = set; then :
30902 withval=$with_systemd;
30903 if test "$withval" != "no"; then
30904 if test "$withval" = "yes"; then
30905 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30907 SYSTEMD_UNITDIR="${withval}"
30910 PFILES="${PFILES} \
30911 platforms/systemd/Makefile \
30912 platforms/systemd/bacula.conf \
30913 platforms/systemd/bacula-dir.service \
30914 platforms/systemd/bacula-fd.service \
30915 platforms/systemd/bacula-sd.service"
30917 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30920 $as_echo "yes" >&6; }
30921 support_systemd="yes"
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30924 $as_echo "no" >&6; }
30925 support_systemd="no"
30930 support_systemd="no"
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932 $as_echo "no" >&6; }
30941 LIBS="$PTHREAD_LIB $LIBS"
30943 cat >>confdefs.h <<_ACEOF
30947 cat >>confdefs.h <<_ACEOF
30959 MCOMMON=./autoconf/Make.common
30962 if test "x${subsysdir}" = "x${sbindir}" ; then
30965 echo "You have set both --sbindir and --with-subsys-dir"
30966 echo " equal to: ${subsysdir} "
30967 echo "This is not permitted. Please reconfigure."
30969 echo "Aborting configuration ..."
30975 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 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 $PFILES"
30977 ac_config_commands="$ac_config_commands default"
30979 cat >confcache <<\_ACEOF
30980 # This file is a shell script that caches the results of configure
30981 # tests run on this system so they can be shared between configure
30982 # scripts and configure runs, see configure's option --config-cache.
30983 # It is not useful on other systems. If it contains results you don't
30984 # want to keep, you may remove or edit it.
30986 # config.status only pays attention to the cache file if you give it
30987 # the --recheck option to rerun configure.
30989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30991 # following values.
30995 # The following way of writing the cache mishandles newlines in values,
30996 # but we know of no workaround that is simple, portable, and efficient.
30997 # So, we kill variables containing newlines.
30998 # Ultrix sh set writes to stderr and can't be redirected directly,
30999 # and sets the high bit in the cache file unless we assign to the vars.
31001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31002 eval ac_val=\$$ac_var
31006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31010 _ | IFS | as_nl) ;; #(
31011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31012 *) { eval $ac_var=; unset $ac_var;} ;;
31018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31019 *${as_nl}ac_space=\ *)
31020 # `set' does not quote correctly, so add quotes: double-quote
31021 # substitution turns \\\\ into \\, and sed turns \\ into \.
31024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31027 # `set' quotes correctly as required by POSIX, so do not add quotes.
31028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31042 if test -w "$cache_file"; then
31043 if test "x$cache_file" != "x/dev/null"; then
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31045 $as_echo "$as_me: updating cache $cache_file" >&6;}
31046 if test ! -f "$cache_file" || test -h "$cache_file"; then
31047 cat confcache >"$cache_file"
31049 case $cache_file in #(
31051 mv -f confcache "$cache_file"$$ &&
31052 mv -f "$cache_file"$$ "$cache_file" ;; #(
31054 mv -f confcache "$cache_file" ;;
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31060 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31066 # Let make expand exec_prefix.
31067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31069 DEFS=-DHAVE_CONFIG_H
31074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31075 # 1. Remove the extension, and $U if already installed.
31076 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31077 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31078 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31079 # will be set to the directory where LIBOBJS objects are built.
31080 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31081 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31083 LIBOBJS=$ac_libobjs
31085 LTLIBOBJS=$ac_ltlibobjs
31090 : "${CONFIG_STATUS=./config.status}"
31092 ac_clean_files_save=$ac_clean_files
31093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31099 # Generated by $as_me.
31100 # Run this file to recreate the current configuration.
31101 # Compiler output produced by configure, useful for debugging
31102 # configure, is in config.log if it exists.
31105 ac_cs_recheck=false
31108 SHELL=\${CONFIG_SHELL-$SHELL}
31111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31112 ## -------------------- ##
31113 ## M4sh Initialization. ##
31114 ## -------------------- ##
31116 # Be more Bourne compatible
31117 DUALCASE=1; export DUALCASE # for MKS sh
31118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31122 # is contrary to our usage. Disable this feature.
31123 alias -g '${1+"$@"}'='"$@"'
31124 setopt NO_GLOB_SUBST
31126 case `(set -o) 2>/dev/null` in #(
31138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31142 # Prefer a ksh shell builtin over an external printf program on Solaris,
31143 # but without wasting forks for bash or zsh.
31144 if test -z "$BASH_VERSION$ZSH_VERSION" \
31145 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31146 as_echo='print -r --'
31147 as_echo_n='print -rn --'
31148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31149 as_echo='printf %s\n'
31150 as_echo_n='printf %s'
31152 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31153 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31154 as_echo_n='/usr/ucb/echo -n'
31156 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31157 as_echo_n_body='eval
31161 expr "X$arg" : "X\\(.*\\)$as_nl";
31162 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31164 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31166 export as_echo_n_body
31167 as_echo_n='sh -c $as_echo_n_body as_echo'
31169 export as_echo_body
31170 as_echo='sh -c $as_echo_body as_echo'
31173 # The user is always right.
31174 if test "${PATH_SEPARATOR+set}" != set; then
31176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31177 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31184 # We need space, tab and new line, in precisely that order. Quoting is
31185 # there to prevent editors from complaining about space-tab.
31186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31187 # splitting by setting IFS to empty value.)
31190 # Find who we are. Look in the path if we contain no directory separator.
31193 *[\\/]* ) as_myself=$0 ;;
31194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31195 for as_dir in $PATH
31198 test -z "$as_dir" && as_dir=.
31199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31205 # We did not find ourselves, most probably we were run as `sh COMMAND'
31206 # in which case we are not to be found in the path.
31207 if test "x$as_myself" = x; then
31210 if test ! -f "$as_myself"; then
31211 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31215 # Unset variables that we do not need and which cause bugs (e.g. in
31216 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31217 # suppresses any "Segmentation fault" message there. '((' could
31218 # trigger a bug in pdksh 5.2.14.
31219 for as_var in BASH_ENV ENV MAIL MAILPATH
31220 do eval test x\${$as_var+set} = xset \
31221 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31238 # ----------------------------------------
31239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31241 # script with STATUS, using 1 if that was 0.
31244 as_status=$1; test $as_status -eq 0 && as_status=1
31246 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31247 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31249 $as_echo "$as_me: error: $2" >&2
31250 as_fn_exit $as_status
31254 # as_fn_set_status STATUS
31255 # -----------------------
31256 # Set $? to STATUS, without forking.
31257 as_fn_set_status ()
31260 } # as_fn_set_status
31262 # as_fn_exit STATUS
31263 # -----------------
31264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31268 as_fn_set_status $1
31274 # Portably unset VAR.
31277 { eval $1=; unset $1;}
31279 as_unset=as_fn_unset
31280 # as_fn_append VAR VALUE
31281 # ----------------------
31282 # Append the text in VALUE to the end of the definition contained in VAR. Take
31283 # advantage of any shell optimizations that allow amortized linear growth over
31284 # repeated appends, instead of the typical quadratic growth present in naive
31286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31287 eval 'as_fn_append ()
31298 # as_fn_arith ARG...
31299 # ------------------
31300 # Perform arithmetic evaluation on the ARGs, and store the result in the
31301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31302 # must be portable across $(()) and expr.
31303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31304 eval 'as_fn_arith ()
31311 as_val=`expr "$@" || test $? -eq 1`
31316 if expr a : '\(a\)' >/dev/null 2>&1 &&
31317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31324 as_basename=basename
31329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31335 as_me=`$as_basename -- "$0" ||
31336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31337 X"$0" : 'X\(//\)$' \| \
31338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31340 sed '/^.*\/\([^/][^/]*\)\/*$/{
31354 # Avoid depending upon Character Ranges.
31355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31358 as_cr_digits='0123456789'
31359 as_cr_alnum=$as_cr_Letters$as_cr_digits
31361 ECHO_C= ECHO_N= ECHO_T=
31362 case `echo -n x` in #(((((
31364 case `echo 'xy\c'` in
31365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31367 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31374 rm -f conf$$ conf$$.exe conf$$.file
31375 if test -d conf$$.dir; then
31376 rm -f conf$$.dir/conf$$.file
31379 mkdir conf$$.dir 2>/dev/null
31381 if (echo >conf$$.file) 2>/dev/null; then
31382 if ln -s conf$$.file conf$$ 2>/dev/null; then
31384 # ... but there are two gotchas:
31385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31387 # In both cases, we have to default to `cp -p'.
31388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31390 elif ln conf$$.file conf$$ 2>/dev/null; then
31398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31399 rmdir conf$$.dir 2>/dev/null
31404 # Create "$as_dir" as a directory, including parents if necessary.
31409 -*) as_dir=./$as_dir;;
31411 test -d "$as_dir" || eval $as_mkdir_p || {
31415 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31416 *) as_qdir=$as_dir;;
31418 as_dirs="'$as_qdir' $as_dirs"
31419 as_dir=`$as_dirname -- "$as_dir" ||
31420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31421 X"$as_dir" : 'X\(//\)[^/]' \| \
31422 X"$as_dir" : 'X\(//\)$' \| \
31423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31424 $as_echo X"$as_dir" |
31425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31429 /^X\(\/\/\)[^/].*/{
31442 test -d "$as_dir" && break
31444 test -z "$as_dirs" || eval "mkdir $as_dirs"
31445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31449 if mkdir -p . 2>/dev/null; then
31450 as_mkdir_p='mkdir -p "$as_dir"'
31452 test -d ./-p && rmdir ./-p
31456 if test -x / >/dev/null 2>&1; then
31457 as_test_x='test -x'
31459 if ls -dL / >/dev/null 2>&1; then
31466 if test -d "$1"; then
31472 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31473 ???[sx]*):;;*)false;;esac;fi
31477 as_executable_p=$as_test_x
31479 # Sed expression to map a string onto a valid CPP name.
31480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31482 # Sed expression to map a string onto a valid variable name.
31483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31487 ## ----------------------------------- ##
31488 ## Main body of $CONFIG_STATUS script. ##
31489 ## ----------------------------------- ##
31491 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31494 # Save the log message, to keep $0 and so on meaningful, and to
31495 # report actual input values of CONFIG_FILES etc. instead of their
31496 # values after options handling.
31498 This file was extended by bacula $as_me 5.2.12, which was
31499 generated by GNU Autoconf 2.68. Invocation command line was
31501 CONFIG_FILES = $CONFIG_FILES
31502 CONFIG_HEADERS = $CONFIG_HEADERS
31503 CONFIG_LINKS = $CONFIG_LINKS
31504 CONFIG_COMMANDS = $CONFIG_COMMANDS
31507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31512 case $ac_config_files in *"
31513 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31516 case $ac_config_headers in *"
31517 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31522 # Files that config.status was made for.
31523 config_files="$ac_config_files"
31524 config_headers="$ac_config_headers"
31525 config_commands="$ac_config_commands"
31529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31531 \`$as_me' instantiates files and other configuration actions
31532 from templates according to the current configuration. Unless the files
31533 and actions are specified as TAGs, all are instantiated by default.
31535 Usage: $0 [OPTION]... [TAG]...
31537 -h, --help print this help, then exit
31538 -V, --version print version number and configuration settings, then exit
31539 --config print configuration, then exit
31540 -q, --quiet, --silent
31541 do not print progress messages
31542 -d, --debug don't remove temporary files
31543 --recheck update $as_me by reconfiguring in the same conditions
31544 --file=FILE[:TEMPLATE]
31545 instantiate the configuration file FILE
31546 --header=FILE[:TEMPLATE]
31547 instantiate the configuration header FILE
31549 Configuration files:
31552 Configuration headers:
31555 Configuration commands:
31558 Report bugs to the package provider."
31561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31562 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31564 bacula config.status 5.2.12
31565 configured by $0, generated by GNU Autoconf 2.68,
31566 with options \\"\$ac_cs_config\\"
31568 Copyright (C) 2010 Free Software Foundation, Inc.
31569 This config.status script is free software; the Free Software Foundation
31570 gives unlimited permission to copy, distribute and modify it."
31576 test -n "\$AWK" || AWK=awk
31579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31580 # The default lists apply if the user does not specify any file.
31586 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31587 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31603 # Handling of the options.
31604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31607 $as_echo "$ac_cs_version"; exit ;;
31608 --config | --confi | --conf | --con | --co | --c )
31609 $as_echo "$ac_cs_config"; exit ;;
31610 --debug | --debu | --deb | --de | --d | -d )
31612 --file | --fil | --fi | --f )
31615 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31616 '') as_fn_error $? "missing file argument" ;;
31618 as_fn_append CONFIG_FILES " '$ac_optarg'"
31619 ac_need_defaults=false;;
31620 --header | --heade | --head | --hea )
31623 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31625 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31626 ac_need_defaults=false;;
31628 # Conflict between --help and --header
31629 as_fn_error $? "ambiguous option: \`$1'
31630 Try \`$0 --help' for more information.";;
31631 --help | --hel | -h )
31632 $as_echo "$ac_cs_usage"; exit ;;
31633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31634 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31637 # This is an error.
31638 -*) as_fn_error $? "unrecognized option: \`$1'
31639 Try \`$0 --help' for more information." ;;
31641 *) as_fn_append ac_config_targets " $1"
31642 ac_need_defaults=false ;;
31648 ac_configure_extra_args=
31650 if $ac_cs_silent; then
31652 ac_configure_extra_args="$ac_configure_extra_args --silent"
31656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31657 if \$ac_cs_recheck; then
31658 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31660 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31661 CONFIG_SHELL='$SHELL'
31662 export CONFIG_SHELL
31667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31672 ## Running $as_me. ##
31678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31684 # The HP-UX ksh and POSIX shell print the target directory to stdout
31685 # if CDPATH is set.
31686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31688 sed_quote_subst='$sed_quote_subst'
31689 double_quote_subst='$double_quote_subst'
31690 delay_variable_subst='$delay_variable_subst'
31691 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31692 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31693 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31694 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31695 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31696 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31697 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31698 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31699 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31700 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31701 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31702 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31703 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31704 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31705 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31706 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31707 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31708 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31709 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31710 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31711 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31712 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31713 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31714 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31715 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31716 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31717 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31718 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31719 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31720 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31721 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31722 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31723 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31724 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31725 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31726 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31727 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31728 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31729 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31730 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31731 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31732 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31733 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31734 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31735 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31736 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31737 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31738 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31739 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31740 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31741 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31742 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31743 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31744 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31745 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31746 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"`'
31747 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31748 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31749 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31750 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31751 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31752 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31753 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31754 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31755 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31756 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31757 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31758 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31759 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31760 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31761 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31762 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31763 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31764 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31765 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31766 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31767 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31768 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31769 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31770 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31771 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31772 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31773 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31774 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31775 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31776 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31777 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31778 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31779 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31780 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31781 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31782 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31783 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31784 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31785 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31786 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31787 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31788 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31789 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31790 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31791 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31792 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31793 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31794 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31795 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31796 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31797 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31798 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31799 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31800 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31801 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31802 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31803 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31804 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31805 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31806 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31807 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31808 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31809 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31810 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31811 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31812 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31813 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31814 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31815 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31816 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31817 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31818 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31819 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31820 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31821 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31822 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31823 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31824 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31825 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31826 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31827 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31828 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31829 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31830 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31831 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31832 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31833 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31834 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31835 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31836 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31837 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31838 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31839 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31840 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31841 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31842 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31843 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31844 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31845 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31846 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31847 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31848 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31849 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31850 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31851 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31852 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31853 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31854 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31855 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31856 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31857 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31858 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31859 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31860 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31861 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31862 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31863 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31864 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31865 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31866 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31867 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31868 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31869 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31870 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31871 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31872 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31873 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31874 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31875 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31878 LTCFLAGS='$LTCFLAGS'
31879 compiler='$compiler_DEFAULT'
31881 # A function that is used when there is no print builtin or printf.
31882 func_fallback_echo ()
31884 eval 'cat <<_LTECHO_EOF
31889 # Quote evaled strings.
31903 deplibs_check_method \
31908 sharedlib_from_linklib_cmd \
31911 archiver_list_spec \
31917 lt_cv_sys_global_symbol_pipe \
31918 lt_cv_sys_global_symbol_to_cdecl \
31919 lt_cv_sys_global_symbol_to_c_name_address \
31920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31921 nm_file_list_spec \
31922 lt_prog_compiler_no_builtin_flag \
31923 lt_prog_compiler_pic \
31924 lt_prog_compiler_wl \
31925 lt_prog_compiler_static \
31926 lt_cv_prog_compiler_c_o \
31935 export_dynamic_flag_spec \
31936 whole_archive_flag_spec \
31937 compiler_needs_object \
31939 allow_undefined_flag \
31940 no_undefined_flag \
31941 hardcode_libdir_flag_spec \
31942 hardcode_libdir_flag_spec_ld \
31943 hardcode_libdir_separator \
31947 variables_saved_for_relink \
31949 library_names_spec \
31951 install_override_mode \
31955 compiler_lib_search_dirs \
31960 compiler_lib_search_path \
31964 lt_prog_compiler_no_builtin_flag_CXX \
31965 lt_prog_compiler_pic_CXX \
31966 lt_prog_compiler_wl_CXX \
31967 lt_prog_compiler_static_CXX \
31968 lt_cv_prog_compiler_c_o_CXX \
31969 export_dynamic_flag_spec_CXX \
31970 whole_archive_flag_spec_CXX \
31971 compiler_needs_object_CXX \
31973 allow_undefined_flag_CXX \
31974 no_undefined_flag_CXX \
31975 hardcode_libdir_flag_spec_CXX \
31976 hardcode_libdir_flag_spec_ld_CXX \
31977 hardcode_libdir_separator_CXX \
31978 exclude_expsyms_CXX \
31979 include_expsyms_CXX \
31980 file_list_spec_CXX \
31981 compiler_lib_search_dirs_CXX \
31982 predep_objects_CXX \
31983 postdep_objects_CXX \
31986 compiler_lib_search_path_CXX; do
31987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31988 *[\\\\\\\`\\"\\\$]*)
31989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31997 # Double-quote double-evaled strings.
31998 for var in reload_cmds \
31999 old_postinstall_cmds \
32000 old_postuninstall_cmds \
32002 extract_expsyms_cmds \
32003 old_archive_from_new_cmds \
32004 old_archive_from_expsyms_cmds \
32006 archive_expsym_cmds \
32008 module_expsym_cmds \
32009 export_symbols_cmds \
32013 postuninstall_cmds \
32015 sys_lib_search_path_spec \
32016 sys_lib_dlsearch_path_spec \
32018 old_archive_cmds_CXX \
32019 old_archive_from_new_cmds_CXX \
32020 old_archive_from_expsyms_cmds_CXX \
32022 archive_expsym_cmds_CXX \
32024 module_expsym_cmds_CXX \
32025 export_symbols_cmds_CXX \
32027 postlink_cmds_CXX; do
32028 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32029 *[\\\\\\\`\\"\\\$]*)
32030 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32033 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32038 ac_aux_dir='$ac_aux_dir'
32039 xsi_shell='$xsi_shell'
32040 lt_shell_append='$lt_shell_append'
32042 # See if we are running on zsh, and set the options which allow our
32043 # commands through without removal of \ escapes INIT.
32044 if test -n "\${ZSH_VERSION+set}" ; then
32045 setopt NO_GLOB_SUBST
32051 TIMESTAMP='$TIMESTAMP'
32059 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32060 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32062 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32063 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32064 LINGUAS="${LINGUAS-%UNSET%}"
32069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32071 # Handling of arguments.
32072 for ac_config_target in $ac_config_targets
32074 case $ac_config_target in
32075 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32076 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32077 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32078 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32079 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32080 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32081 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32082 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32083 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32084 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32085 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32086 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32087 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32088 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32089 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32090 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
32091 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
32092 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
32093 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
32094 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
32095 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
32096 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32097 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32098 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32099 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32100 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32101 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32102 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32103 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
32104 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
32105 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
32106 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32107 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32108 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32109 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32110 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32111 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32112 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32113 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32114 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32115 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32116 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32117 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32118 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32119 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32120 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
32121 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
32122 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
32123 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
32124 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32125 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32126 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32127 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32128 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32129 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32130 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32131 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32132 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32133 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32134 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32135 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32136 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32137 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32138 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32139 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32140 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32141 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32142 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32143 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32144 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32145 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32146 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32147 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32148 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32149 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32150 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32151 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32152 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32153 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32154 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32155 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32156 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32157 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32158 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32159 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32160 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32161 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32162 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32163 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32164 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32165 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32166 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32167 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
32168 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32169 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32170 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32171 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32172 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32173 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32174 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32175 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32176 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32177 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32178 "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
32179 "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
32180 "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
32181 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32182 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32183 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32184 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32185 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32186 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32187 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32189 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32194 # If the user did not use the arguments to specify the items to instantiate,
32195 # then the envvar interface is used. Set only those that are not.
32196 # We use the long form for the default assignment because of an extremely
32197 # bizarre bug on SunOS 4.1.3.
32198 if $ac_need_defaults; then
32199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32200 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32201 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32204 # Have a temporary directory for convenience. Make it in the build tree
32205 # simply because there is no reason against having it here, and in addition,
32206 # creating and moving files from /tmp can sometimes cause problems.
32207 # Hook for its removal unless debugging.
32208 # Note that there is a small window in which the directory will not be cleaned:
32209 # after its creation but before its name has been assigned to `$tmp'.
32213 trap 'exit_status=$?
32214 : "${ac_tmp:=$tmp}"
32215 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32217 trap 'as_fn_exit 1' 1 2 13 15
32219 # Create a (secure) tmp directory for tmp files.
32222 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32226 tmp=./conf$$-$RANDOM
32227 (umask 077 && mkdir "$tmp")
32228 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32231 # Set up the scripts for CONFIG_FILES section.
32232 # No need to generate them if there are no CONFIG_FILES.
32233 # This happens for instance with `./config.status config.h'.
32234 if test -n "$CONFIG_FILES"; then
32236 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32237 ac_cs_awk_getline=:
32238 ac_cs_awk_pipe_init=
32239 ac_cs_awk_read_file='
32240 while ((getline aline < (F[key])) > 0)
32243 ac_cs_awk_pipe_fini=
32245 ac_cs_awk_getline=false
32246 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32247 ac_cs_awk_read_file='
32249 print "cat " F[key] " &&"
32250 '$ac_cs_awk_pipe_init
32251 # The final `:' finishes the AND list.
32252 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32254 ac_cr=`echo X | tr X '\015'`
32255 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32256 # But we know of no other shell where ac_cr would be empty at this
32257 # point, so we can use a bashism as a fallback.
32258 if test "x$ac_cr" = x; then
32259 eval ac_cr=\$\'\\r\'
32261 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32262 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32265 ac_cs_awk_cr=$ac_cr
32268 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32271 # Create commands to substitute file output variables.
32273 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32274 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32275 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32278 } >conf$$files.sh &&
32279 . ./conf$$files.sh ||
32280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32281 rm -f conf$$files.sh
32284 echo "cat >conf$$subs.awk <<_ACEOF" &&
32285 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32287 } >conf$$subs.sh ||
32288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32289 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32291 for ac_last_try in false false false false false :; do
32292 . ./conf$$subs.sh ||
32293 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32295 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32296 if test $ac_delim_n = $ac_delim_num; then
32298 elif $ac_last_try; then
32299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32304 rm -f conf$$subs.sh
32306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32307 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32311 s/^/S["/; s/!.*/"]=/
32321 s/\(.\{148\}\)..*/\1/
32323 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32335 s/\(.\{148\}\)..*/\1/
32337 s/["\\]/\\&/g; s/^/"/; s/$/"/
32341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32346 ' <conf$$subs.awk | sed '
32351 ' >>$CONFIG_STATUS || ac_write_fail=1
32352 rm -f conf$$subs.awk
32353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32355 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32356 for (key in S) S_is_set[key] = 1
32358 \$ac_cs_awk_pipe_init
32362 nfields = split(line, field, "@")
32364 len = length(field[1])
32365 for (i = 2; i < nfields; i++) {
32367 keylen = length(key)
32368 if (S_is_set[key]) {
32370 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32371 len += length(value) + length(field[++i])
32376 if (nfields == 3 && !substed) {
32378 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32379 \$ac_cs_awk_read_file
32385 \$ac_cs_awk_pipe_fini
32388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32389 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32390 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32393 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32394 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32397 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32398 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32399 # trailing colons and then remove the whole line if VPATH becomes empty
32400 # (actually we leave an empty line to preserve line numbers).
32401 if test "x$srcdir" = x.; then
32402 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32421 fi # test -n "$CONFIG_FILES"
32423 # Set up the scripts for CONFIG_HEADERS section.
32424 # No need to generate them if there are no CONFIG_HEADERS.
32425 # This happens for instance with `./config.status Makefile'.
32426 if test -n "$CONFIG_HEADERS"; then
32427 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32431 # Transform confdefs.h into an awk script `defines.awk', embedded as
32432 # here-document in config.status, that substitutes the proper values into
32433 # config.h.in to produce config.h.
32435 # Create a delimiter string that does not exist in confdefs.h, to ease
32436 # handling of long lines.
32438 for ac_last_try in false false :; do
32439 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32440 if test -z "$ac_tt"; then
32442 elif $ac_last_try; then
32443 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32449 # For the awk script, D is an array of macro values keyed by name,
32450 # likewise P contains macro parameters if any. Preserve backslash
32451 # newline sequences.
32453 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32455 s/.\{148\}/&'"$ac_delim"'/g
32458 s/^[ ]*#[ ]*define[ ][ ]*/ /
32465 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32467 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32471 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32472 D["\1"]=" \3\\\\\\n"\\/p
32474 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32479 s/.\{148\}/&'"$ac_delim"'/g
32484 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32487 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32489 ' <confdefs.h | sed '
32490 s/'"$ac_delim"'/"\\\
32491 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32494 for (key in D) D_is_set[key] = 1
32497 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32499 split(line, arg, " ")
32500 if (arg[1] == "#") {
32504 defundef = substr(arg[1], 2)
32507 split(mac1, mac2, "(") #)
32509 prefix = substr(line, 1, index(line, defundef) - 1)
32510 if (D_is_set[macro]) {
32511 # Preserve the white space surrounding the "#".
32512 print prefix "define", macro P[macro] D[macro]
32515 # Replace #undef with comments. This is necessary, for example,
32516 # in the case of _POSIX_SOURCE, which is predefined and required
32517 # on some systems where configure will not decide to define it.
32518 if (defundef == "undef") {
32519 print "/*", prefix defundef, macro, "*/"
32527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32528 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32529 fi # test -n "$CONFIG_HEADERS"
32532 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32537 :[FHLC]) ac_mode=$ac_tag; continue;;
32539 case $ac_mode$ac_tag in
32541 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32542 :[FH]-) ac_tag=-:-;;
32543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32560 -) ac_f="$ac_tmp/stdin";;
32561 *) # Look for the file first in the build tree, then in the source tree
32562 # (if the path is not absolute). The absolute path cannot be DOS-style,
32563 # because $ac_f cannot contain `:'.
32567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32569 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32571 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32572 as_fn_append ac_file_inputs " '$ac_f'"
32575 # Let's still pretend it is `configure' which instantiates (i.e., don't
32576 # use $as_me), people would be surprised to read:
32577 # /* config.h. Generated by config.status. */
32578 configure_input='Generated from '`
32579 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32581 if test x"$ac_file" != x-; then
32582 configure_input="$ac_file. $configure_input"
32583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32584 $as_echo "$as_me: creating $ac_file" >&6;}
32586 # Neutralize special characters interpreted by sed in replacement strings.
32587 case $configure_input in #(
32588 *\&* | *\|* | *\\* )
32589 ac_sed_conf_input=`$as_echo "$configure_input" |
32590 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32591 *) ac_sed_conf_input=$configure_input;;
32595 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32601 ac_dir=`$as_dirname -- "$ac_file" ||
32602 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32603 X"$ac_file" : 'X\(//\)[^/]' \| \
32604 X"$ac_file" : 'X\(//\)$' \| \
32605 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32606 $as_echo X"$ac_file" |
32607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32611 /^X\(\/\/\)[^/].*/{
32624 as_dir="$ac_dir"; as_fn_mkdir_p
32628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32631 # A ".." for each directory in $ac_dir_suffix.
32632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32633 case $ac_top_builddir_sub in
32634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32638 ac_abs_top_builddir=$ac_pwd
32639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32640 # for backward compatibility:
32641 ac_top_builddir=$ac_top_build_prefix
32644 .) # We are building in place.
32646 ac_top_srcdir=$ac_top_builddir_sub
32647 ac_abs_top_srcdir=$ac_pwd ;;
32648 [\\/]* | ?:[\\/]* ) # Absolute name.
32649 ac_srcdir=$srcdir$ac_dir_suffix;
32650 ac_top_srcdir=$srcdir
32651 ac_abs_top_srcdir=$srcdir ;;
32652 *) # Relative name.
32653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32654 ac_top_srcdir=$ac_top_build_prefix$srcdir
32655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32667 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32668 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32673 # If the template does not know about datarootdir, expand it.
32674 # FIXME: This hack should be removed a few years after 2.60.
32675 ac_datarootdir_hack=; ac_datarootdir_seen=
32686 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32687 *datarootdir*) ac_datarootdir_seen=yes;;
32688 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32690 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32693 ac_datarootdir_hack='
32694 s&@datadir@&$datadir&g
32695 s&@docdir@&$docdir&g
32696 s&@infodir@&$infodir&g
32697 s&@localedir@&$localedir&g
32698 s&@mandir@&$mandir&g
32699 s&\\\${datarootdir}&$datarootdir&g' ;;
32703 # Neutralize VPATH when `$srcdir' = `.'.
32704 # Shell code in configure.ac might set extrasub.
32705 # FIXME: do we really want to maintain this feature?
32706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32707 ac_sed_extra="$ac_vpsub
32710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32713 s|@configure_input@|$ac_sed_conf_input|;t t
32714 s&@top_builddir@&$ac_top_builddir_sub&;t t
32715 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32716 s&@srcdir@&$ac_srcdir&;t t
32717 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32718 s&@top_srcdir@&$ac_top_srcdir&;t t
32719 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32720 s&@builddir@&$ac_builddir&;t t
32721 s&@abs_builddir@&$ac_abs_builddir&;t t
32722 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32723 s&@INSTALL@&$ac_INSTALL&;t t
32724 $ac_datarootdir_hack
32726 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32727 if $ac_cs_awk_getline; then
32728 $AWK -f "$ac_tmp/subs.awk"
32730 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32732 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32734 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32735 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32736 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32737 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32739 which seems to be undefined. Please make sure it is defined" >&5
32740 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32741 which seems to be undefined. Please make sure it is defined" >&2;}
32743 rm -f "$ac_tmp/stdin"
32745 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32746 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32754 if test x"$ac_file" != x-; then
32756 $as_echo "/* $configure_input */" \
32757 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32758 } >"$ac_tmp/config.h" \
32759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32760 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32761 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32762 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32765 mv "$ac_tmp/config.h" "$ac_file" \
32766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32769 $as_echo "/* $configure_input */" \
32770 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32771 || as_fn_error $? "could not create -" "$LINENO" 5
32775 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32776 $as_echo "$as_me: executing $ac_file commands" >&6;}
32781 case $ac_file$ac_mode in
32784 # See if we are running on zsh, and set the options which allow our
32785 # commands through without removal of \ escapes.
32786 if test -n "${ZSH_VERSION+set}" ; then
32787 setopt NO_GLOB_SUBST
32790 cfgfile="${ofile}T"
32791 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32794 cat <<_LT_EOF >> "$cfgfile"
32797 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32798 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32800 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32802 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32803 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32805 # Written by Gordon Matzigkeit, 1996
32807 # This file is part of GNU Libtool.
32809 # GNU Libtool is free software; you can redistribute it and/or
32810 # modify it under the terms of the GNU General Public License as
32811 # published by the Free Software Foundation; either version 2 of
32812 # the License, or (at your option) any later version.
32814 # As a special exception to the GNU General Public License,
32815 # if you distribute this file as part of a program or library that
32816 # is built using GNU Libtool, you may include this file under the
32817 # same distribution terms that you use for the rest of that program.
32819 # GNU Libtool is distributed in the hope that it will be useful,
32820 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32822 # GNU General Public License for more details.
32824 # You should have received a copy of the GNU General Public License
32825 # along with GNU Libtool; see the file COPYING. If not, a copy
32826 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32827 # obtained by writing to the Free Software Foundation, Inc.,
32828 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32831 # The names of the tagged configurations supported by this script.
32832 available_tags="CXX "
32834 # ### BEGIN LIBTOOL CONFIG
32836 # Which release of libtool.m4 was used?
32837 macro_version=$macro_version
32838 macro_revision=$macro_revision
32840 # Whether or not to build shared libraries.
32841 build_libtool_libs=$enable_shared
32843 # Whether or not to build static libraries.
32844 build_old_libs=$enable_static
32846 # What type of objects to build.
32849 # Whether or not to optimize for fast installation.
32850 fast_install=$enable_fast_install
32852 # Shell to use when invoking shell scripts.
32855 # An echo program that protects backslashes.
32859 host_alias=$host_alias
32863 # The build system.
32864 build_alias=$build_alias
32868 # A sed program that does not truncate output.
32871 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32872 Xsed="\$SED -e 1s/^X//"
32874 # A grep program that handles long lines.
32880 # A literal string matcher.
32883 # A BSD- or MS-compatible name lister.
32886 # Whether we need soft or hard links.
32889 # What is the maximum length of a command?
32890 max_cmd_len=$max_cmd_len
32892 # Object file suffix (normally "o").
32895 # Executable file suffix (normally "").
32898 # whether the shell understands "unset".
32901 # turn spaces into newlines.
32904 # turn newlines into spaces.
32907 # convert \$build file names to \$host format.
32908 to_host_file_cmd=$lt_cv_to_host_file_cmd
32910 # convert \$build files to toolchain format.
32911 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32913 # An object symbol dumper.
32914 OBJDUMP=$lt_OBJDUMP
32916 # Method to check whether dependent libraries are shared objects.
32917 deplibs_check_method=$lt_deplibs_check_method
32919 # Command to use when deplibs_check_method = "file_magic".
32920 file_magic_cmd=$lt_file_magic_cmd
32922 # How to find potential files when deplibs_check_method = "file_magic".
32923 file_magic_glob=$lt_file_magic_glob
32925 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32926 want_nocaseglob=$lt_want_nocaseglob
32928 # DLL creation program.
32929 DLLTOOL=$lt_DLLTOOL
32931 # Command to associate shared and link libraries.
32932 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32937 # Flags to create an archive.
32938 AR_FLAGS=$lt_AR_FLAGS
32940 # How to feed a file listing to the archiver.
32941 archiver_list_spec=$lt_archiver_list_spec
32943 # A symbol stripping program.
32946 # Commands used to install an old-style archive.
32948 old_postinstall_cmds=$lt_old_postinstall_cmds
32949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32951 # Whether to use a lock for old archive extraction.
32952 lock_old_archive_extraction=$lock_old_archive_extraction
32957 # LTCC compiler flags.
32958 LTCFLAGS=$lt_CFLAGS
32960 # Take the output of nm and produce a listing of raw symbols and C names.
32961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32963 # Transform the output of nm in a proper C declaration.
32964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32966 # Transform the output of nm in a C name address pair.
32967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32969 # Transform the output of nm in a C name address pair when lib prefix is needed.
32970 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32972 # Specify filename containing input files for \$NM.
32973 nm_file_list_spec=$lt_nm_file_list_spec
32975 # The root where to search for dependent libraries,and in which our libraries should be installed.
32976 lt_sysroot=$lt_sysroot
32978 # The name of the directory that contains temporary libtool files.
32981 # Used to examine libraries when file_magic_cmd begins with "file".
32982 MAGIC_CMD=$MAGIC_CMD
32984 # Must we lock files when doing compilation?
32985 need_locks=$lt_need_locks
32988 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32990 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32991 DSYMUTIL=$lt_DSYMUTIL
32993 # Tool to change global to local symbols on Mac OS X.
32996 # Tool to manipulate fat objects and archives on Mac OS X.
32999 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33002 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33003 OTOOL64=$lt_OTOOL64
33005 # Old archive suffix (normally "a").
33008 # Shared library suffix (normally ".so").
33009 shrext_cmds=$lt_shrext_cmds
33011 # The commands to extract the exported symbol list from a shared archive.
33012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33014 # Variables whose values should be saved in libtool wrapper scripts and
33015 # restored at link time.
33016 variables_saved_for_relink=$lt_variables_saved_for_relink
33018 # Do we need the "lib" prefix for modules?
33019 need_lib_prefix=$need_lib_prefix
33021 # Do we need a version for libraries?
33022 need_version=$need_version
33024 # Library versioning type.
33025 version_type=$version_type
33027 # Shared library runtime path variable.
33028 runpath_var=$runpath_var
33030 # Shared library path variable.
33031 shlibpath_var=$shlibpath_var
33033 # Is shlibpath searched before the hard-coded library search path?
33034 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33036 # Format of library name prefix.
33037 libname_spec=$lt_libname_spec
33039 # List of archive names. First name is the real one, the rest are links.
33040 # The last name is the one that the linker finds with -lNAME
33041 library_names_spec=$lt_library_names_spec
33043 # The coded name of the library, if different from the real name.
33044 soname_spec=$lt_soname_spec
33046 # Permission mode override for installation of shared libraries.
33047 install_override_mode=$lt_install_override_mode
33049 # Command to use after installation of a shared archive.
33050 postinstall_cmds=$lt_postinstall_cmds
33052 # Command to use after uninstallation of a shared archive.
33053 postuninstall_cmds=$lt_postuninstall_cmds
33055 # Commands used to finish a libtool library installation in a directory.
33056 finish_cmds=$lt_finish_cmds
33058 # As "finish_cmds", except a single script fragment to be evaled but
33060 finish_eval=$lt_finish_eval
33062 # Whether we should hardcode library paths into libraries.
33063 hardcode_into_libs=$hardcode_into_libs
33065 # Compile-time system search path for libraries.
33066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33068 # Run-time system search path for libraries.
33069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33071 # Whether dlopen is supported.
33072 dlopen_support=$enable_dlopen
33074 # Whether dlopen of programs is supported.
33075 dlopen_self=$enable_dlopen_self
33077 # Whether dlopen of statically linked programs is supported.
33078 dlopen_self_static=$enable_dlopen_self_static
33080 # Commands to strip libraries.
33081 old_striplib=$lt_old_striplib
33082 striplib=$lt_striplib
33085 # The linker used to build libraries.
33088 # How to create reloadable object files.
33089 reload_flag=$lt_reload_flag
33090 reload_cmds=$lt_reload_cmds
33092 # Commands used to build an old-style archive.
33093 old_archive_cmds=$lt_old_archive_cmds
33095 # A language specific compiler.
33098 # Is the compiler the GNU compiler?
33101 # Compiler flag to turn off builtin functions.
33102 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33104 # Additional compiler flags for building library objects.
33105 pic_flag=$lt_lt_prog_compiler_pic
33107 # How to pass a linker flag through the compiler.
33108 wl=$lt_lt_prog_compiler_wl
33110 # Compiler flag to prevent dynamic linking.
33111 link_static_flag=$lt_lt_prog_compiler_static
33113 # Does compiler simultaneously support -c and -o options?
33114 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33116 # Whether or not to add -lc for building shared libraries.
33117 build_libtool_need_lc=$archive_cmds_need_lc
33119 # Whether or not to disallow shared libs when runtime libs are static.
33120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33122 # Compiler flag to allow reflexive dlopens.
33123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33125 # Compiler flag to generate shared objects directly from archives.
33126 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33128 # Whether the compiler copes with passing no objects directly.
33129 compiler_needs_object=$lt_compiler_needs_object
33131 # Create an old-style archive from a shared archive.
33132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33134 # Create a temporary old-style archive to link instead of a shared archive.
33135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33137 # Commands used to build a shared archive.
33138 archive_cmds=$lt_archive_cmds
33139 archive_expsym_cmds=$lt_archive_expsym_cmds
33141 # Commands used to build a loadable module if different from building
33142 # a shared archive.
33143 module_cmds=$lt_module_cmds
33144 module_expsym_cmds=$lt_module_expsym_cmds
33146 # Whether we are building with GNU ld or not.
33147 with_gnu_ld=$lt_with_gnu_ld
33149 # Flag that allows shared libraries with undefined symbols to be built.
33150 allow_undefined_flag=$lt_allow_undefined_flag
33152 # Flag that enforces no undefined symbols.
33153 no_undefined_flag=$lt_no_undefined_flag
33155 # Flag to hardcode \$libdir into a binary during linking.
33156 # This must work even if \$libdir does not exist
33157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33159 # If ld is used when linking, flag to hardcode \$libdir into a binary
33160 # during linking. This must work even if \$libdir does not exist.
33161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33163 # Whether we need a single "-rpath" flag with a separated argument.
33164 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33167 # DIR into the resulting binary.
33168 hardcode_direct=$hardcode_direct
33170 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33171 # DIR into the resulting binary and the resulting library dependency is
33172 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33173 # library is relocated.
33174 hardcode_direct_absolute=$hardcode_direct_absolute
33176 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33177 # into the resulting binary.
33178 hardcode_minus_L=$hardcode_minus_L
33180 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33181 # into the resulting binary.
33182 hardcode_shlibpath_var=$hardcode_shlibpath_var
33184 # Set to "yes" if building a shared library automatically hardcodes DIR
33185 # into the library and all subsequent libraries and executables linked
33187 hardcode_automatic=$hardcode_automatic
33189 # Set to yes if linker adds runtime paths of dependent libraries
33190 # to runtime path list.
33191 inherit_rpath=$inherit_rpath
33193 # Whether libtool must link a program against all its dependency libraries.
33194 link_all_deplibs=$link_all_deplibs
33196 # Set to "yes" if exported symbols are required.
33197 always_export_symbols=$always_export_symbols
33199 # The commands to list exported symbols.
33200 export_symbols_cmds=$lt_export_symbols_cmds
33202 # Symbols that should not be listed in the preloaded symbols.
33203 exclude_expsyms=$lt_exclude_expsyms
33205 # Symbols that must always be exported.
33206 include_expsyms=$lt_include_expsyms
33208 # Commands necessary for linking programs (against libraries) with templates.
33209 prelink_cmds=$lt_prelink_cmds
33211 # Commands necessary for finishing linking programs.
33212 postlink_cmds=$lt_postlink_cmds
33214 # Specify filename containing input files.
33215 file_list_spec=$lt_file_list_spec
33217 # How to hardcode a shared library path into an executable.
33218 hardcode_action=$hardcode_action
33220 # The directories searched by this compiler when creating a shared library.
33221 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33223 # Dependencies to place before and after the objects being linked to
33224 # create a shared library.
33225 predep_objects=$lt_predep_objects
33226 postdep_objects=$lt_postdep_objects
33227 predeps=$lt_predeps
33228 postdeps=$lt_postdeps
33230 # The library search path used internally by the compiler when linking
33231 # a shared library.
33232 compiler_lib_search_path=$lt_compiler_lib_search_path
33234 # ### END LIBTOOL CONFIG
33240 cat <<\_LT_EOF >> "$cfgfile"
33241 # AIX sometimes has problems with the GCC collect2 program. For some
33242 # reason, if we set the COLLECT_NAMES environment variable, the problems
33243 # vanish in a puff of smoke.
33244 if test "X${COLLECT_NAMES+set}" != Xset; then
33246 export COLLECT_NAMES
33253 ltmain="$ac_aux_dir/ltmain.sh"
33256 # We use sed instead of cat because bash on DJGPP gets confused if
33257 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33258 # text mode, it properly converts lines to CR/LF. This bash problem
33259 # is reportedly fixed, but why not run on old versions too?
33260 sed '$q' "$ltmain" >> "$cfgfile" \
33261 || (rm -f "$cfgfile"; exit 1)
33263 if test x"$xsi_shell" = xyes; then
33264 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33268 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33269 \ * ) func_dirname_result="${3}" ;;\
33271 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33272 && mv -f "$cfgfile.tmp" "$cfgfile" \
33273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33274 test 0 -eq $? || _lt_function_replace_fail=:
33277 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33280 \ func_basename_result="${1##*/}"\
33281 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33282 && mv -f "$cfgfile.tmp" "$cfgfile" \
33283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33284 test 0 -eq $? || _lt_function_replace_fail=:
33287 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33288 func_dirname_and_basename ()\
33291 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33292 \ * ) func_dirname_result="${3}" ;;\
33294 \ func_basename_result="${1##*/}"\
33295 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33296 && mv -f "$cfgfile.tmp" "$cfgfile" \
33297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33298 test 0 -eq $? || _lt_function_replace_fail=:
33301 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33304 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33305 \ # positional parameters, so assign one to ordinary parameter first.\
33306 \ func_stripname_result=${3}\
33307 \ func_stripname_result=${func_stripname_result#"${1}"}\
33308 \ func_stripname_result=${func_stripname_result%"${2}"}\
33309 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33310 && mv -f "$cfgfile.tmp" "$cfgfile" \
33311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33312 test 0 -eq $? || _lt_function_replace_fail=:
33315 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33316 func_split_long_opt ()\
33318 \ func_split_long_opt_name=${1%%=*}\
33319 \ func_split_long_opt_arg=${1#*=}\
33320 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33321 && mv -f "$cfgfile.tmp" "$cfgfile" \
33322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33323 test 0 -eq $? || _lt_function_replace_fail=:
33326 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33327 func_split_short_opt ()\
33329 \ func_split_short_opt_arg=${1#??}\
33330 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33331 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33332 && mv -f "$cfgfile.tmp" "$cfgfile" \
33333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33334 test 0 -eq $? || _lt_function_replace_fail=:
33337 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33341 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33342 \ *) func_lo2o_result=${1} ;;\
33344 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33345 && mv -f "$cfgfile.tmp" "$cfgfile" \
33346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33347 test 0 -eq $? || _lt_function_replace_fail=:
33350 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33353 func_xform_result=${1%.*}.lo\
33354 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33355 && mv -f "$cfgfile.tmp" "$cfgfile" \
33356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33357 test 0 -eq $? || _lt_function_replace_fail=:
33360 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33363 func_arith_result=$(( $* ))\
33364 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33365 && mv -f "$cfgfile.tmp" "$cfgfile" \
33366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33367 test 0 -eq $? || _lt_function_replace_fail=:
33370 sed -e '/^func_len ()$/,/^} # func_len /c\
33373 func_len_result=${#1}\
33374 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33375 && mv -f "$cfgfile.tmp" "$cfgfile" \
33376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33377 test 0 -eq $? || _lt_function_replace_fail=:
33381 if test x"$lt_shell_append" = xyes; then
33382 sed -e '/^func_append ()$/,/^} # func_append /c\
33385 eval "${1}+=\\${2}"\
33386 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33387 && mv -f "$cfgfile.tmp" "$cfgfile" \
33388 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33389 test 0 -eq $? || _lt_function_replace_fail=:
33392 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33393 func_append_quoted ()\
33395 \ func_quote_for_eval "${2}"\
33396 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33397 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33398 && mv -f "$cfgfile.tmp" "$cfgfile" \
33399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33400 test 0 -eq $? || _lt_function_replace_fail=:
33403 # Save a `func_append' function call where possible by direct use of '+='
33404 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33405 && mv -f "$cfgfile.tmp" "$cfgfile" \
33406 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33407 test 0 -eq $? || _lt_function_replace_fail=:
33409 # Save a `func_append' function call even when '+=' is not available
33410 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33411 && mv -f "$cfgfile.tmp" "$cfgfile" \
33412 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33413 test 0 -eq $? || _lt_function_replace_fail=:
33416 if test x"$_lt_function_replace_fail" = x":"; then
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33418 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33422 mv -f "$cfgfile" "$ofile" ||
33423 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33427 cat <<_LT_EOF >> "$ofile"
33429 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33431 # The linker used to build libraries.
33434 # How to create reloadable object files.
33435 reload_flag=$lt_reload_flag_CXX
33436 reload_cmds=$lt_reload_cmds_CXX
33438 # Commands used to build an old-style archive.
33439 old_archive_cmds=$lt_old_archive_cmds_CXX
33441 # A language specific compiler.
33442 CC=$lt_compiler_CXX
33444 # Is the compiler the GNU compiler?
33447 # Compiler flag to turn off builtin functions.
33448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33450 # Additional compiler flags for building library objects.
33451 pic_flag=$lt_lt_prog_compiler_pic_CXX
33453 # How to pass a linker flag through the compiler.
33454 wl=$lt_lt_prog_compiler_wl_CXX
33456 # Compiler flag to prevent dynamic linking.
33457 link_static_flag=$lt_lt_prog_compiler_static_CXX
33459 # Does compiler simultaneously support -c and -o options?
33460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33462 # Whether or not to add -lc for building shared libraries.
33463 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33465 # Whether or not to disallow shared libs when runtime libs are static.
33466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33468 # Compiler flag to allow reflexive dlopens.
33469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33471 # Compiler flag to generate shared objects directly from archives.
33472 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33474 # Whether the compiler copes with passing no objects directly.
33475 compiler_needs_object=$lt_compiler_needs_object_CXX
33477 # Create an old-style archive from a shared archive.
33478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33480 # Create a temporary old-style archive to link instead of a shared archive.
33481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33483 # Commands used to build a shared archive.
33484 archive_cmds=$lt_archive_cmds_CXX
33485 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33487 # Commands used to build a loadable module if different from building
33488 # a shared archive.
33489 module_cmds=$lt_module_cmds_CXX
33490 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33492 # Whether we are building with GNU ld or not.
33493 with_gnu_ld=$lt_with_gnu_ld_CXX
33495 # Flag that allows shared libraries with undefined symbols to be built.
33496 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33498 # Flag that enforces no undefined symbols.
33499 no_undefined_flag=$lt_no_undefined_flag_CXX
33501 # Flag to hardcode \$libdir into a binary during linking.
33502 # This must work even if \$libdir does not exist
33503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33505 # If ld is used when linking, flag to hardcode \$libdir into a binary
33506 # during linking. This must work even if \$libdir does not exist.
33507 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33509 # Whether we need a single "-rpath" flag with a separated argument.
33510 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33513 # DIR into the resulting binary.
33514 hardcode_direct=$hardcode_direct_CXX
33516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33517 # DIR into the resulting binary and the resulting library dependency is
33518 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33519 # library is relocated.
33520 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33523 # into the resulting binary.
33524 hardcode_minus_L=$hardcode_minus_L_CXX
33526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33527 # into the resulting binary.
33528 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33530 # Set to "yes" if building a shared library automatically hardcodes DIR
33531 # into the library and all subsequent libraries and executables linked
33533 hardcode_automatic=$hardcode_automatic_CXX
33535 # Set to yes if linker adds runtime paths of dependent libraries
33536 # to runtime path list.
33537 inherit_rpath=$inherit_rpath_CXX
33539 # Whether libtool must link a program against all its dependency libraries.
33540 link_all_deplibs=$link_all_deplibs_CXX
33542 # Set to "yes" if exported symbols are required.
33543 always_export_symbols=$always_export_symbols_CXX
33545 # The commands to list exported symbols.
33546 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33548 # Symbols that should not be listed in the preloaded symbols.
33549 exclude_expsyms=$lt_exclude_expsyms_CXX
33551 # Symbols that must always be exported.
33552 include_expsyms=$lt_include_expsyms_CXX
33554 # Commands necessary for linking programs (against libraries) with templates.
33555 prelink_cmds=$lt_prelink_cmds_CXX
33557 # Commands necessary for finishing linking programs.
33558 postlink_cmds=$lt_postlink_cmds_CXX
33560 # Specify filename containing input files.
33561 file_list_spec=$lt_file_list_spec_CXX
33563 # How to hardcode a shared library path into an executable.
33564 hardcode_action=$hardcode_action_CXX
33566 # The directories searched by this compiler when creating a shared library.
33567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33569 # Dependencies to place before and after the objects being linked to
33570 # create a shared library.
33571 predep_objects=$lt_predep_objects_CXX
33572 postdep_objects=$lt_postdep_objects_CXX
33573 predeps=$lt_predeps_CXX
33574 postdeps=$lt_postdeps_CXX
33576 # The library search path used internally by the compiler when linking
33577 # a shared library.
33578 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33580 # ### END LIBTOOL TAG CONFIG: CXX
33585 for ac_file in $CONFIG_FILES; do
33586 # Support "outfile[:infile[:infile...]]"
33588 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33590 # PO directories have a Makefile.in generated from Makefile.in.in.
33591 case "$ac_file" in */Makefile.in)
33592 # Adjust a relative srcdir.
33593 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33594 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33595 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33596 # In autoconf-2.13 it is called $ac_given_srcdir.
33597 # In autoconf-2.50 it is called $srcdir.
33598 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33599 case "$ac_given_srcdir" in
33600 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33601 /*) top_srcdir="$ac_given_srcdir" ;;
33602 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33604 # Treat a directory as a PO directory if and only if it has a
33605 # POTFILES.in file. This allows packages to have multiple PO
33606 # directories under different names or in different locations.
33607 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33608 rm -f "$ac_dir/POTFILES"
33609 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33610 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33611 POMAKEFILEDEPS="POTFILES.in"
33612 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33613 # on $ac_dir but don't depend on user-specified configuration
33615 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33616 # The LINGUAS file contains the set of available languages.
33617 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33618 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33620 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33621 # Hide the ALL_LINGUAS assigment from automake.
33622 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33623 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33625 # The set of available languages was given in configure.in.
33626 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33629 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33630 # Compute UPDATEPOFILES
33631 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33632 # Compute DUMMYPOFILES
33633 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33635 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33636 case "$ac_given_srcdir" in
33638 *) srcdirpre='$(srcdir)/' ;;
33644 for lang in $ALL_LINGUAS; do
33645 POFILES="$POFILES $srcdirpre$lang.po"
33646 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33647 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33648 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33650 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33651 # environment variable.
33653 if test -n "$ALL_LINGUAS"; then
33654 for presentlang in $ALL_LINGUAS; do
33656 if test "%UNSET%" != "$LINGUAS"; then
33657 desiredlanguages="$LINGUAS"
33659 desiredlanguages="$ALL_LINGUAS"
33661 for desiredlang in $desiredlanguages; do
33662 # Use the presentlang catalog if desiredlang is
33663 # a. equal to presentlang, or
33664 # b. a variant of presentlang (because in this case,
33665 # presentlang can be used as a fallback for messages
33666 # which are not translated in the desiredlang catalog).
33667 case "$desiredlang" in
33668 "$presentlang"*) useit=yes;;
33671 if test $useit = yes; then
33672 INST_LINGUAS="$INST_LINGUAS $presentlang"
33677 if test -n "$INST_LINGUAS"; then
33678 for lang in $INST_LINGUAS; do
33679 CATALOGS="$CATALOGS $lang.gmo"
33682 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33683 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"
33684 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33685 if test -f "$f"; then
33687 *.orig | *.bak | *~) ;;
33688 *) cat "$f" >> "$ac_dir/Makefile" ;;
33705 ac_clean_files=$ac_clean_files_save
33707 test $ac_write_fail = 0 ||
33708 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33711 # configure is writing to config.log, and then calls config.status.
33712 # config.status does its own redirection, appending to config.log.
33713 # Unfortunately, on DOS this fails, as config.log is still kept open
33714 # by configure, so config.status won't be able to write to it; its
33715 # output is simply discarded. So we exec the FD to /dev/null,
33716 # effectively closing config.log, so it can be properly (re)opened and
33717 # appended to by config.status. When coming back to configure, we
33718 # need to make the FD available again.
33719 if test "$no_create" != yes; then
33721 ac_config_status_args=
33722 test "$silent" = yes &&
33723 ac_config_status_args="$ac_config_status_args --quiet"
33725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33728 # would make configure fail if this is the last instruction.
33729 $ac_cs_success || as_fn_exit 1
33731 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33733 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33737 if test "${support_bat}" = "yes" ; then
33738 if test "x$QMAKE" = "xnone"; then
33739 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33743 echo "Creating bat Makefile"
33748 ${MAKE:-make} clean
33752 if test X"$GCC" = "Xyes" ; then
33753 echo "Doing make of dependencies"
33754 ${MAKE:-make} depend
33758 chmod 755 install_conf_file build-depkgs-qt-console
33762 chmod 755 bacula btraceback mtx-changer
33763 chmod 755 dvd-handler dvd-simulator
33764 chmod 755 bconsole mtx-changer devel_bacula logrotate
33768 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33769 chmod 755 $c/update_postgresql_tables_10_to_11
33770 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33771 chmod 755 $c/update_postgresql_tables_11_to_12
33776 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33777 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33779 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33780 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33782 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33783 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33785 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33786 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33788 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33789 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33792 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33793 chmod 755 $c/sqlite
33796 chmod 755 $c/install-default-backend
33798 chmod 755 src/win32/build-depkgs-mingw32
33800 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33801 largefile_support="yes"
33804 if test X"$GCC" = "Xyes" ; then
33805 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33806 if test "x${CCVERSION}" = "x" ; then
33807 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33809 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33810 if test x"${CXXVERSION}" = x ; then
33811 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33815 # clean up any old junk
33819 ${MAKE:-make} clean
33822 Configuration on `date`:
33824 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33825 Bacula version: ${BACULA} ${VERSION} (${DATE})
33826 Source code location: ${srcdir}
33827 Install binaries: ${sbindir}
33828 Install libraries: ${libdir}
33829 Install config files: ${sysconfdir}
33830 Scripts directory: ${scriptdir}
33831 Archive directory: ${archivedir}
33832 Working directory: ${working_dir}
33833 PID directory: ${piddir}
33834 Subsys directory: ${subsysdir}
33835 Man directory: ${mandir}
33836 Data directory: ${datarootdir}
33837 Plugin directory: ${plugindir}
33838 C Compiler: ${CC} ${CCVERSION}
33839 C++ Compiler: ${CXX} ${CXXVERSION}
33840 Compiler flags: ${WCFLAGS} ${CFLAGS}
33841 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33843 Statically Linked Tools: ${support_static_tools}
33844 Statically Linked FD: ${support_static_fd}
33845 Statically Linked SD: ${support_static_sd}
33846 Statically Linked DIR: ${support_static_dir}
33847 Statically Linked CONS: ${support_static_cons}
33848 Database backends: ${db_backends}
33849 Database port: ${db_port}
33850 Database name: ${db_name}
33851 Database user: ${db_user}
33853 Job Output Email: ${job_email}
33854 Traceback Email: ${dump_email}
33855 SMTP Host Address: ${smtp_host}
33857 Director Port: ${dir_port}
33858 File daemon Port: ${fd_port}
33859 Storage daemon Port: ${sd_port}
33861 Director User: ${dir_user}
33862 Director Group: ${dir_group}
33863 Storage Daemon User: ${sd_user}
33864 Storage DaemonGroup: ${sd_group}
33865 File Daemon User: ${fd_user}
33866 File Daemon Group: ${fd_group}
33868 Large file support: $largefile_support
33869 Bacula conio support: ${got_conio} ${CONS_LIBS}
33870 readline support: ${got_readline} ${PRTREADLINE_SRC}
33871 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33872 TLS support: ${support_tls}
33873 Encryption support: ${support_crypto}
33874 ZLIB support: ${have_zlib}
33875 LZO support: ${have_lzo}
33876 enable-smartalloc: ${support_smartalloc}
33877 enable-lockmgr: ${support_lockmgr}
33878 bat support: ${support_bat}
33879 enable-gnome: ${support_gnome} ${gnome_version}
33880 enable-bwx-console: ${support_wx_console} ${wx_version}
33881 enable-tray-monitor: ${support_tray_monitor}
33882 client-only: ${build_client_only}
33883 build-dird: ${build_dird}
33884 build-stored: ${build_stored}
33885 Plugin support: ${have_plugins}
33886 AFS support: ${have_afs}
33887 ACL support: ${have_acl}
33888 XATTR support: ${have_xattr}
33889 Python support: ${support_python} ${PYTHON_LIBS}
33890 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33891 Batch insert enabled: ${batch_insert_db_backends}
33895 # create a small shell script useful for support with
33896 # configure options and config.out info
33897 cat > scripts/bacula_config << EOF
33900 $ $0 $ac_configure_args
33902 cat config.out >> scripts/bacula_config
33903 echo __EOC__ >> scripts/bacula_config
33904 chmod 755 scripts/bacula_config