2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.2.9.
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.9'
571 PACKAGE_STRING='bacula 5.2.9'
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
776 INCLUDE_UNINSTALL_TARGET
777 INCLUDE_INSTALL_TARGET
781 LIBTOOL_UNINSTALL_TARGET
782 LIBTOOL_INSTALL_TARGET
783 DEFAULT_SHARED_OBJECT_TYPE
865 LIBBACFIND_LT_RELEASE
866 LIBBACCATS_LT_RELEASE
911 program_transform_name
922 ac_subst_files='MCOMMON'
924 enable_option_checking
938 with_included_gettext
977 with_mon_dir_password
1004 ac_precious_vars='build_alias
1022 # Initialize some variables set by options.
1024 ac_init_version=false
1025 ac_unrecognized_opts=
1026 ac_unrecognized_sep=
1027 # The variables have the same names as the options, with
1028 # dashes changed to underlines.
1029 cache_file=/dev/null
1036 program_transform_name=s,x,x,
1044 # Installation directory options.
1045 # These are left unexpanded so users can "make install exec_prefix=/foo"
1046 # and all the variables that are supposed to be based on exec_prefix
1047 # by default will actually change.
1048 # Use braces instead of parens because sh, perl, etc. also accept them.
1049 # (The list follows the same order as the GNU Coding Standards.)
1050 bindir='${exec_prefix}/bin'
1051 sbindir='${exec_prefix}/sbin'
1052 libexecdir='${exec_prefix}/libexec'
1053 datarootdir='${prefix}/share'
1054 datadir='${datarootdir}'
1055 sysconfdir='${prefix}/etc'
1056 sharedstatedir='${prefix}/com'
1057 localstatedir='${prefix}/var'
1058 includedir='${prefix}/include'
1059 oldincludedir='/usr/include'
1060 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1061 infodir='${datarootdir}/info'
1066 libdir='${exec_prefix}/lib'
1067 localedir='${datarootdir}/locale'
1068 mandir='${datarootdir}/man'
1074 # If the previous option needs an argument, assign it.
1075 if test -n "$ac_prev"; then
1076 eval $ac_prev=\$ac_option
1082 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1087 # Accept the important Cygnus configure options, so we can diagnose typos.
1089 case $ac_dashdash$ac_option in
1093 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1095 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1096 bindir=$ac_optarg ;;
1098 -build | --build | --buil | --bui | --bu)
1099 ac_prev=build_alias ;;
1100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1101 build_alias=$ac_optarg ;;
1103 -cache-file | --cache-file | --cache-fil | --cache-fi \
1104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1105 ac_prev=cache_file ;;
1106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1108 cache_file=$ac_optarg ;;
1110 --config-cache | -C)
1111 cache_file=config.cache ;;
1113 -datadir | --datadir | --datadi | --datad)
1115 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1116 datadir=$ac_optarg ;;
1118 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1119 | --dataroo | --dataro | --datar)
1120 ac_prev=datarootdir ;;
1121 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1122 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1123 datarootdir=$ac_optarg ;;
1125 -disable-* | --disable-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid feature name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "enable_$ac_useropt"
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval enable_$ac_useropt=no ;;
1141 -docdir | --docdir | --docdi | --doc | --do)
1143 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1144 docdir=$ac_optarg ;;
1146 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1148 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1149 dvidir=$ac_optarg ;;
1151 -enable-* | --enable-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid feature name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1160 "enable_$ac_useropt"
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1165 eval enable_$ac_useropt=\$ac_optarg ;;
1167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1169 | --exec | --exe | --ex)
1170 ac_prev=exec_prefix ;;
1171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1173 | --exec=* | --exe=* | --ex=*)
1174 exec_prefix=$ac_optarg ;;
1176 -gas | --gas | --ga | --g)
1177 # Obsolete; use --with-gas.
1180 -help | --help | --hel | --he | -h)
1181 ac_init_help=long ;;
1182 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1183 ac_init_help=recursive ;;
1184 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1185 ac_init_help=short ;;
1187 -host | --host | --hos | --ho)
1188 ac_prev=host_alias ;;
1189 -host=* | --host=* | --hos=* | --ho=*)
1190 host_alias=$ac_optarg ;;
1192 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1194 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1196 htmldir=$ac_optarg ;;
1198 -includedir | --includedir | --includedi | --included | --include \
1199 | --includ | --inclu | --incl | --inc)
1200 ac_prev=includedir ;;
1201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1202 | --includ=* | --inclu=* | --incl=* | --inc=*)
1203 includedir=$ac_optarg ;;
1205 -infodir | --infodir | --infodi | --infod | --info | --inf)
1207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1208 infodir=$ac_optarg ;;
1210 -libdir | --libdir | --libdi | --libd)
1212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1213 libdir=$ac_optarg ;;
1215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1216 | --libexe | --libex | --libe)
1217 ac_prev=libexecdir ;;
1218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1219 | --libexe=* | --libex=* | --libe=*)
1220 libexecdir=$ac_optarg ;;
1222 -localedir | --localedir | --localedi | --localed | --locale)
1223 ac_prev=localedir ;;
1224 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1225 localedir=$ac_optarg ;;
1227 -localstatedir | --localstatedir | --localstatedi | --localstated \
1228 | --localstate | --localstat | --localsta | --localst | --locals)
1229 ac_prev=localstatedir ;;
1230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1231 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1232 localstatedir=$ac_optarg ;;
1234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1237 mandir=$ac_optarg ;;
1239 -nfp | --nfp | --nf)
1240 # Obsolete; use --without-fp.
1243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1244 | --no-cr | --no-c | -n)
1247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1253 | --oldin | --oldi | --old | --ol | --o)
1254 ac_prev=oldincludedir ;;
1255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1258 oldincludedir=$ac_optarg ;;
1260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1263 prefix=$ac_optarg ;;
1265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1266 | --program-pre | --program-pr | --program-p)
1267 ac_prev=program_prefix ;;
1268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1270 program_prefix=$ac_optarg ;;
1272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1273 | --program-suf | --program-su | --program-s)
1274 ac_prev=program_suffix ;;
1275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1277 program_suffix=$ac_optarg ;;
1279 -program-transform-name | --program-transform-name \
1280 | --program-transform-nam | --program-transform-na \
1281 | --program-transform-n | --program-transform- \
1282 | --program-transform | --program-transfor \
1283 | --program-transfo | --program-transf \
1284 | --program-trans | --program-tran \
1285 | --progr-tra | --program-tr | --program-t)
1286 ac_prev=program_transform_name ;;
1287 -program-transform-name=* | --program-transform-name=* \
1288 | --program-transform-nam=* | --program-transform-na=* \
1289 | --program-transform-n=* | --program-transform-=* \
1290 | --program-transform=* | --program-transfor=* \
1291 | --program-transfo=* | --program-transf=* \
1292 | --program-trans=* | --program-tran=* \
1293 | --progr-tra=* | --program-tr=* | --program-t=*)
1294 program_transform_name=$ac_optarg ;;
1296 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1298 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1299 pdfdir=$ac_optarg ;;
1301 -psdir | --psdir | --psdi | --psd | --ps)
1303 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307 | -silent | --silent | --silen | --sile | --sil)
1310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1314 sbindir=$ac_optarg ;;
1316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318 | --sharedst | --shareds | --shared | --share | --shar \
1320 ac_prev=sharedstatedir ;;
1321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1325 sharedstatedir=$ac_optarg ;;
1327 -site | --site | --sit)
1329 -site=* | --site=* | --sit=*)
1332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335 srcdir=$ac_optarg ;;
1337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338 | --syscon | --sysco | --sysc | --sys | --sy)
1339 ac_prev=sysconfdir ;;
1340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342 sysconfdir=$ac_optarg ;;
1344 -target | --target | --targe | --targ | --tar | --ta | --t)
1345 ac_prev=target_alias ;;
1346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347 target_alias=$ac_optarg ;;
1349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 -version | --version | --versio | --versi | --vers | -V)
1353 ac_init_version=: ;;
1356 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error $? "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1369 eval with_$ac_useropt=\$ac_optarg ;;
1371 -without-* | --without-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error $? "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1385 eval with_$ac_useropt=no ;;
1388 # Obsolete; use --with-x.
1391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392 | --x-incl | --x-inc | --x-in | --x-i)
1393 ac_prev=x_includes ;;
1394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396 x_includes=$ac_optarg ;;
1398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400 ac_prev=x_libraries ;;
1401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403 x_libraries=$ac_optarg ;;
1405 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information"
1410 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411 # Reject names that are not valid shell variable names.
1412 case $ac_envvar in #(
1413 '' | [0-9]* | *[!_$as_cr_alnum]* )
1414 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1416 eval $ac_envvar=\$ac_optarg
1417 export $ac_envvar ;;
1420 # FIXME: should be removed in autoconf 3.0.
1421 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1430 if test -n "$ac_prev"; then
1431 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432 as_fn_error $? "missing argument to $ac_option"
1435 if test -n "$ac_unrecognized_opts"; then
1436 case $enable_option_checking in
1438 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1439 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443 # Check all directory arguments for consistency.
1444 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445 datadir sysconfdir sharedstatedir localstatedir includedir \
1446 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447 libdir localedir mandir
1449 eval ac_val=\$$ac_var
1450 # Remove trailing slashes.
1453 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454 eval $ac_var=\$ac_val;;
1456 # Be sure to have absolute directory names.
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1469 target=$target_alias
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473 if test "x$build_alias" = x; then
1474 cross_compiling=maybe
1475 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1476 If a cross compiler is detected then cross compile mode will be used" >&2
1477 elif test "x$build_alias" != "x$host_alias"; then
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485 test "$silent" = yes && exec 6>/dev/null
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error $? "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error $? "pwd does not report name of working directory"
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1556 # Report the --help message.
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1562 \`configure' configures bacula 5.2.9 to adapt to many kinds of systems.
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1569 Defaults for the options are specified in brackets.
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking ...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1593 For better control, use the options below.
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1620 --x-includes=DIR X include files are in DIR
1621 --x-libraries=DIR X library files are in DIR
1624 --build=BUILD configure for building on BUILD [guessed]
1625 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1629 if test -n "$ac_init_help"; then
1630 case $ac_init_help in
1631 short | recursive ) echo "Configuration of bacula 5.2.9:";;
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --enable-libtool enable building using GNU libtool [default=yes]
1640 --enable-shared[=PKGS] build shared libraries [default=yes]
1641 --enable-static[=PKGS] build static libraries [default=no]
1642 --enable-fast-install[=PKGS]
1643 optimize for fast installation [default=yes]
1644 --disable-libtool-lock avoid locking (might break parallel builds)
1645 --enable-includes enable installing of include files [default=no]
1646 --disable-nls do not use Native Language Support
1647 --disable-rpath do not hardcode runtime library paths
1648 --enable-gnome enable build of bgnome-console GUI [default=no]
1649 --enable-bat enable build of bat Qt4 GUI [default=no]
1650 --enable-bwx-console enable build of wxWidgets console [default=no]
1651 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1653 --enable-smartalloc enable smartalloc debugging support [default=no]
1654 --enable-lockmgr enable lock manager support [default=no]
1655 --enable-static-tools enable static tape tools [default=no]
1656 --enable-static-fd enable static File daemon [default=no]
1657 --enable-static-sd enable static Storage daemon [default=no]
1658 --enable-static-dir enable static Director [default=no]
1659 --enable-static-cons enable static Console [default=no]
1660 --enable-client-only build client (File daemon) only [default=no]
1661 --enable-build-dird enable building of dird (Director) [default=yes]
1662 --enable-build-stored enable building of stored (Storage daemon)
1664 --disable-conio disable conio support [default=no]
1665 --enable-ipv6 enable ipv6 support [default=yes]
1666 --disable-readline disable readline support [default=yes]
1667 --enable-batch-insert enable the DB batch insert code [default=yes]
1668 --disable-largefile omit support for large files
1669 --disable-afs disable afs support [default=auto]
1670 --disable-acl disable acl support [default=auto]
1671 --disable-xattr disable xattr support [default=auto]
1674 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1675 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1676 --with-pic try to use only PIC/non-PIC objects [default=use
1678 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1679 --with-sysroot=DIR Search for dependent libraries within DIR
1680 (or the compiler's sysroot if not specified).
1681 --with-gnu-ld assume the C compiler uses GNU ld default=no
1682 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1683 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1684 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1685 --without-libintl-prefix don't search for libintl in includedir and libdir
1686 --with-included-gettext use the GNU gettext library included here
1687 --with-readline[=DIR] specify readline library directory
1688 --with-python[=DIR] Include Python support. DIR is the Python base
1689 install directory, default is to search through a
1690 number of common places for the Python files.
1691 --with-tcp-wrappers[=DIR]
1692 enable tcpwrappers support
1693 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1694 --with-working-dir=PATH specify path of Bacula working directory
1695 --with-archivedir=PATH specify path of SD archive directory
1696 --with-basename=RESNAME specify base resource name for daemons
1697 --with-hostname=RESNAME specify host name for daemons
1698 --with-scriptdir=PATH specify path of Bacula scripts directory
1699 --with-bsrdir=PATH specify path of Bacula bsrs directory
1700 --with-logdir=PATH specify path of Bacula logs directory
1701 --with-plugindir=PATH specify path of Bacula plugins directory
1702 --with-dump-email=EMAIL dump email address
1703 --with-job-email=EMAIL job output email address
1704 --with-smtp-host=HOST SMTP mail host address
1705 --with-pid-dir=PATH specify location of Bacula pid files
1706 --with-subsys-dir=PATH specify location of Bacula subsys file
1707 --with-baseport=PORT specify base port address for daemons
1708 --with-dir-password=PASSWORD
1709 specify Director's password
1710 --with-fd-password=PASSWORD
1711 specify Client's password
1712 --with-sd-password=PASSWORD
1713 specify Storage daemon's password
1714 --with-mon-dir-password=PASSWORD
1715 specify Director's password used by the monitor
1716 --with-mon-fd-password=PASSWORD
1717 specify Client's password used by the monitor
1718 --with-mon-sd-password=PASSWORD
1719 specify Storage daemon's password used by the
1721 --with-db-name=DBNAME specify database name [default=bacula]
1722 --with-db-user=UNAME specify database user [default=bacula]
1723 --with-db-password=PWD specify database password [default=*none*]
1724 --with-db-port=DBPORT specify a database port [default=null]
1725 --with-dir-user=USER specify user for Director daemon
1726 --with-dir-group=GROUP specify group for Director daemon
1727 --with-sd-user=USER specify user for Storage daemon
1728 --with-sd-group=GROUP specify group for Storage daemon
1729 --with-fd-user=USER specify user for File daemon
1730 --with-fd-group=GROUP specify group for File daemon
1731 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1732 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733 base install directory, [default=/usr/local/pgsql]
1734 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1735 directory, default is to search through a number of
1736 common places for the MySQL files.
1737 --with-embedded-mysql[=DIR]
1738 Include MySQL support. DIR is the MySQL base install
1739 directory, default is to search through a number of
1740 common places for the MySQL files.
1741 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1742 install directory, default is to search through a
1743 number of common places for the SQLite3 files.
1744 --with-x use the X Window System
1745 --with-afsdir[=DIR] Directory holding AFS includes/libs
1746 --with-systemd[=UNITDIR]
1747 Include systemd support. UNITDIR is where systemd
1748 system .service files are located, default is to ask
1751 Some influential environment variables:
1752 CC C compiler command
1753 CFLAGS C compiler flags
1754 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1755 nonstandard directory <lib dir>
1756 LIBS libraries to pass to the linker, e.g. -l<library>
1757 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1758 you have headers in a nonstandard directory <include dir>
1759 CXX C++ compiler command
1760 CXXFLAGS C++ compiler flags
1762 WXCONFIG wx-config command. On some systems, you must set it to
1763 wx-config-2.6 to use wxWidgets 2.6.
1764 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1765 CXXCPP C++ preprocessor
1766 XMKMF Path to xmkmf, Makefile generator for X Window System
1768 Use these variables to override the choices made by `configure' or to help
1769 it to find libraries and programs with nonstandard names/locations.
1771 Report bugs to the package provider.
1776 if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779 test -d "$ac_dir" ||
1780 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1801 .) # We are building in place.
1803 ac_top_srcdir=$ac_top_builddir_sub
1804 ac_abs_top_srcdir=$ac_pwd ;;
1805 [\\/]* | ?:[\\/]* ) # Absolute name.
1806 ac_srcdir=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir=$srcdir
1808 ac_abs_top_srcdir=$srcdir ;;
1810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1816 cd "$ac_dir" || { ac_status=$?; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1825 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1827 cd "$ac_pwd" || { ac_status=$?; break; }
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1834 bacula configure 5.2.9
1835 generated by GNU Autoconf 2.68
1837 Copyright (C) 2010 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1844 ## ------------------------ ##
1845 ## Autoconf initialization. ##
1846 ## ------------------------ ##
1848 # ac_fn_c_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_compile ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1884 } # ac_fn_c_try_compile
1886 # ac_fn_cxx_try_compile LINENO
1887 # ----------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_compile ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext
1893 if { { ac_try="$ac_compile"
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_compile") 2>conftest.err
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest.$ac_objext; then :
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_cxx_try_compile
1924 # ac_fn_c_try_cpp LINENO
1925 # ----------------------
1926 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_cpp conftest.$ac_ext"
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } > conftest.i && {
1946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 as_fn_set_status $ac_retval
1961 # ac_fn_c_try_link LINENO
1962 # -----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 $as_test_x conftest$ac_exeext
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_c_try_link
2007 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists and can be compiled using the include files in
2010 # INCLUDES, setting the cache variable VAR accordingly.
2011 ac_fn_c_check_header_compile ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 } # ac_fn_c_check_header_compile
2038 # ac_fn_c_try_run LINENO
2039 # ----------------------
2040 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2041 # that executables *can* be run.
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if { { ac_try="$ac_link"
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_link") 2>&5
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2056 { { case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_try") 2>&5
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; }; }; then :
2068 $as_echo "$as_me: program exited with status $ac_status" >&5
2069 $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2072 ac_retval=$ac_status
2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 as_fn_set_status $ac_retval
2080 # ac_fn_c_check_func LINENO FUNC VAR
2081 # ----------------------------------
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2083 ac_fn_c_check_func ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2095 #define $2 innocuous_$2
2097 /* System header to define __stub macros and hopefully few prototypes,
2098 which can conflict with char $2 (); below.
2099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2100 <limits.h> exists even on freestanding compilers. */
2103 # include <limits.h>
2105 # include <assert.h>
2110 /* Override any GCC internal prototype to avoid an error.
2111 Use char because int might match the return type of a GCC
2112 builtin and then its argument prototype would still apply. */
2117 /* The GNU C library defines this for functions which it implements
2118 to always fail with ENOSYS. Some functions are actually named
2119 something starting with __ and the normal name is an alias. */
2120 #if defined __stub_$2 || defined __stub___$2
2132 if ac_fn_c_try_link "$LINENO"; then :
2137 rm -f core conftest.err conftest.$ac_objext \
2138 conftest$ac_exeext conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 } # ac_fn_c_check_func
2147 # ac_fn_cxx_try_cpp LINENO
2148 # ------------------------
2149 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2150 ac_fn_cxx_try_cpp ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 if { { ac_try="$ac_cpp conftest.$ac_ext"
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2162 if test -s conftest.err; then
2163 grep -v '^ *+' conftest.err >conftest.er1
2164 cat conftest.er1 >&5
2165 mv -f conftest.er1 conftest.err
2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; } > conftest.i && {
2169 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2170 test ! -s conftest.err
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 as_fn_set_status $ac_retval
2182 } # ac_fn_cxx_try_cpp
2184 # ac_fn_cxx_try_link LINENO
2185 # -------------------------
2186 # Try to link conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_link ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 rm -f conftest.$ac_objext conftest$ac_exeext
2191 if { { ac_try="$ac_link"
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_link") 2>conftest.err
2200 if test -s conftest.err; then
2201 grep -v '^ *+' conftest.err >conftest.er1
2202 cat conftest.er1 >&5
2203 mv -f conftest.er1 conftest.err
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; } && {
2207 test -z "$ac_cxx_werror_flag" ||
2208 test ! -s conftest.err
2209 } && test -s conftest$ac_exeext && {
2210 test "$cross_compiling" = yes ||
2211 $as_test_x conftest$ac_exeext
2215 $as_echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2220 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2221 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2222 # interfere with the next link command; also delete a directory that is
2223 # left behind by Apple's compiler. We do this before executing the actions.
2224 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status $ac_retval
2228 } # ac_fn_cxx_try_link
2230 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2231 # ---------------------------------------------
2232 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2234 ac_fn_c_check_decl ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 as_decl_name=`echo $2|sed 's/ *(.*//'`
2238 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2240 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2241 if eval \${$3+:} false; then :
2242 $as_echo_n "(cached) " >&6
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2250 #ifndef $as_decl_name
2252 (void) $as_decl_use;
2254 (void) $as_decl_name;
2262 if ac_fn_c_try_compile "$LINENO"; then :
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2274 } # ac_fn_c_check_decl
2276 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2277 # -------------------------------------------
2278 # Tests whether TYPE exists after having included INCLUDES, setting cache
2279 # variable VAR accordingly.
2280 ac_fn_c_check_type ()
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284 $as_echo_n "checking for $2... " >&6; }
2285 if eval \${$3+:} false; then :
2286 $as_echo_n "(cached) " >&6
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2314 if ac_fn_c_try_compile "$LINENO"; then :
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328 } # ac_fn_c_check_type
2330 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2331 # -------------------------------------------------------
2332 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2333 # the include files in INCLUDES and setting the cache variable VAR
2335 ac_fn_c_check_header_mongrel ()
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 if eval \${$3+:} false; then :
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if eval \${$3+:} false; then :
2342 $as_echo_n "(cached) " >&6
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2348 # Is the header compilable?
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2350 $as_echo_n "checking $2 usability... " >&6; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357 ac_header_compiler=yes
2359 ac_header_compiler=no
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2363 $as_echo "$ac_header_compiler" >&6; }
2365 # Is the header present?
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2367 $as_echo_n "checking $2 presence... " >&6; }
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2372 if ac_fn_c_try_cpp "$LINENO"; then :
2373 ac_header_preproc=yes
2375 ac_header_preproc=no
2377 rm -f conftest.err conftest.i conftest.$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2379 $as_echo "$ac_header_preproc" >&6; }
2381 # So? What about this header?
2382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2385 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2387 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2391 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2393 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2395 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2397 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2399 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2403 $as_echo_n "checking for $2... " >&6; }
2404 if eval \${$3+:} false; then :
2405 $as_echo_n "(cached) " >&6
2407 eval "$3=\$ac_header_compiler"
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 } # ac_fn_c_check_header_mongrel
2417 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2418 # --------------------------------------------
2419 # Tries to find the compile-time value of EXPR in a program that includes
2420 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2422 ac_fn_c_compute_int ()
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 if test "$cross_compiling" = yes; then
2426 # Depending upon the size, compute the lo and hi bounds.
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2433 static int test_array [1 - 2 * !(($2) >= 0)];
2440 if ac_fn_c_try_compile "$LINENO"; then :
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2449 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457 ac_hi=$ac_mid; break
2459 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2460 if test $ac_lo -le $ac_mid; then
2464 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2475 static int test_array [1 - 2 * !(($2) < 0)];
2482 if ac_fn_c_try_compile "$LINENO"; then :
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2491 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2498 if ac_fn_c_try_compile "$LINENO"; then :
2499 ac_lo=$ac_mid; break
2501 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2502 if test $ac_mid -le $ac_hi; then
2506 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 # Binary search between lo and hi bounds.
2517 while test "x$ac_lo" != "x$ac_hi"; do
2518 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2525 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2532 if ac_fn_c_try_compile "$LINENO"; then :
2535 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2547 static long int longval () { return $2; }
2548 static unsigned long int ulongval () { return $2; }
2555 FILE *f = fopen ("conftest.val", "w");
2560 long int i = longval ();
2563 fprintf (f, "%ld", i);
2567 unsigned long int i = ulongval ();
2570 fprintf (f, "%lu", i);
2572 /* Do not output a trailing newline, as this causes \r\n confusion
2573 on some platforms. */
2574 return ferror (f) || fclose (f) != 0;
2580 if ac_fn_c_try_run "$LINENO"; then :
2581 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2586 conftest.$ac_objext conftest.beam conftest.$ac_ext
2590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591 as_fn_set_status $ac_retval
2593 } # ac_fn_c_compute_int
2595 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2596 # ----------------------------------------------------
2597 # Tries to find if the field MEMBER exists in type AGGR, after including
2598 # INCLUDES, setting cache variable VAR accordingly.
2599 ac_fn_c_check_member ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2603 $as_echo_n "checking for $2.$3... " >&6; }
2604 if eval \${$4+:} false; then :
2605 $as_echo_n "(cached) " >&6
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2620 if ac_fn_c_try_compile "$LINENO"; then :
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2630 if (sizeof ac_aggr.$3)
2636 if ac_fn_c_try_compile "$LINENO"; then :
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650 } # ac_fn_c_check_member
2652 # ac_fn_cxx_try_run LINENO
2653 # ------------------------
2654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2655 # that executables *can* be run.
2656 ac_fn_cxx_try_run ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 if { { ac_try="$ac_link"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666 (eval "$ac_link") 2>&5
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2670 { { case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_try") 2>&5
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }; }; then :
2682 $as_echo "$as_me: program exited with status $ac_status" >&5
2683 $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 ac_retval=$ac_status
2688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 as_fn_set_status $ac_retval
2692 } # ac_fn_cxx_try_run
2694 # ac_fn_cxx_check_func LINENO FUNC VAR
2695 # ------------------------------------
2696 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2697 ac_fn_cxx_check_func ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if eval \${$3+:} false; then :
2703 $as_echo_n "(cached) " >&6
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2707 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2709 #define $2 innocuous_$2
2711 /* System header to define __stub macros and hopefully few prototypes,
2712 which can conflict with char $2 (); below.
2713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2714 <limits.h> exists even on freestanding compilers. */
2717 # include <limits.h>
2719 # include <assert.h>
2724 /* Override any GCC internal prototype to avoid an error.
2725 Use char because int might match the return type of a GCC
2726 builtin and then its argument prototype would still apply. */
2731 /* The GNU C library defines this for functions which it implements
2732 to always fail with ENOSYS. Some functions are actually named
2733 something starting with __ and the normal name is an alias. */
2734 #if defined __stub_$2 || defined __stub___$2
2746 if ac_fn_cxx_try_link "$LINENO"; then :
2751 rm -f core conftest.err conftest.$ac_objext \
2752 conftest$ac_exeext conftest.$ac_ext
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759 } # ac_fn_cxx_check_func
2760 cat >config.log <<_ACEOF
2761 This file contains any messages produced by compilers while
2762 running configure, to aid debugging if configure makes a mistake.
2764 It was created by bacula $as_me 5.2.9, which was
2765 generated by GNU Autoconf 2.68. Invocation command line was
2777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2784 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2786 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2787 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2789 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2790 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2791 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2792 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 $as_echo "PATH: $as_dir"
2817 # Keep a trace of the command line.
2818 # Strip out --no-create and --no-recursion so they do not pile up.
2819 # Strip out --silent because we don't want to record it for future runs.
2820 # Also quote any args containing shell meta-characters.
2821 # Make two passes to allow for proper duplicate-argument suppression.
2825 ac_must_keep_next=false
2831 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2833 | -silent | --silent | --silen | --sile | --sil)
2836 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2839 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2841 as_fn_append ac_configure_args1 " '$ac_arg'"
2842 if test $ac_must_keep_next = true; then
2843 ac_must_keep_next=false # Got value, back to normal.
2846 *=* | --config-cache | -C | -disable-* | --disable-* \
2847 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2848 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2849 | -with-* | --with-* | -without-* | --without-* | --x)
2850 case "$ac_configure_args0 " in
2851 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2854 -* ) ac_must_keep_next=true ;;
2857 as_fn_append ac_configure_args " '$ac_arg'"
2862 { ac_configure_args0=; unset ac_configure_args0;}
2863 { ac_configure_args1=; unset ac_configure_args1;}
2865 # When interrupted or exit'd, cleanup temporary files, and complete
2866 # config.log. We remove comments because anyway the quotes in there
2867 # would cause problems or look ugly.
2868 # WARNING: Use '\'' to represent an apostrophe within the trap.
2869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2870 trap 'exit_status=$?
2871 # Save into config.log some information that might help in debugging.
2875 $as_echo "## ---------------- ##
2876 ## Cache variables. ##
2877 ## ---------------- ##"
2879 # The following way of writing the cache mishandles newlines in values,
2881 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2882 eval ac_val=\$$ac_var
2886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2890 _ | IFS | as_nl) ;; #(
2891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2892 *) { eval $ac_var=; unset $ac_var;} ;;
2897 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2898 *${as_nl}ac_space=\ *)
2900 "s/'\''/'\''\\\\'\'''\''/g;
2901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2911 $as_echo "## ----------------- ##
2912 ## Output variables. ##
2913 ## ----------------- ##"
2915 for ac_var in $ac_subst_vars
2917 eval ac_val=\$$ac_var
2919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2921 $as_echo "$ac_var='\''$ac_val'\''"
2925 if test -n "$ac_subst_files"; then
2926 $as_echo "## ------------------- ##
2927 ## File substitutions. ##
2928 ## ------------------- ##"
2930 for ac_var in $ac_subst_files
2932 eval ac_val=\$$ac_var
2934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2936 $as_echo "$ac_var='\''$ac_val'\''"
2941 if test -s confdefs.h; then
2942 $as_echo "## ----------- ##
2949 test "$ac_signal" != 0 &&
2950 $as_echo "$as_me: caught signal $ac_signal"
2951 $as_echo "$as_me: exit $exit_status"
2953 rm -f core *.core core.conftest.* &&
2954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2957 for ac_signal in 1 2 13 15; do
2958 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2963 rm -f -r conftest* confdefs.h
2965 $as_echo "/* confdefs.h */" > confdefs.h
2967 # Predefined preprocessor variables.
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_NAME "$PACKAGE_NAME"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_STRING "$PACKAGE_STRING"
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_URL "$PACKAGE_URL"
2994 # Let the site file select an alternate cache file if it wants to.
2995 # Prefer an explicitly selected file to automatically selected ones.
2998 if test -n "$CONFIG_SITE"; then
2999 # We do not want a PATH search for config.site.
3000 case $CONFIG_SITE in #((
3001 -*) ac_site_file1=./$CONFIG_SITE;;
3002 */*) ac_site_file1=$CONFIG_SITE;;
3003 *) ac_site_file1=./$CONFIG_SITE;;
3005 elif test "x$prefix" != xNONE; then
3006 ac_site_file1=$prefix/share/config.site
3007 ac_site_file2=$prefix/etc/config.site
3009 ac_site_file1=$ac_default_prefix/share/config.site
3010 ac_site_file2=$ac_default_prefix/etc/config.site
3012 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3014 test "x$ac_site_file" = xNONE && continue
3015 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3017 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3018 sed 's/^/| /' "$ac_site_file" >&5
3020 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "failed to load site script $ac_site_file
3023 See \`config.log' for more details" "$LINENO" 5; }
3027 if test -r "$cache_file"; then
3028 # Some versions of bash will fail to source /dev/null (special files
3029 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3032 $as_echo "$as_me: loading cache $cache_file" >&6;}
3034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3035 *) . "./$cache_file";;
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3040 $as_echo "$as_me: creating cache $cache_file" >&6;}
3044 as_fn_append ac_header_list " stdlib.h"
3045 as_fn_append ac_header_list " unistd.h"
3046 as_fn_append ac_header_list " sys/param.h"
3047 # Check that the precious variables saved in the cache have kept the same
3049 ac_cache_corrupted=false
3050 for ac_var in $ac_precious_vars; do
3051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3052 eval ac_new_set=\$ac_env_${ac_var}_set
3053 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3054 eval ac_new_val=\$ac_env_${ac_var}_value
3055 case $ac_old_set,$ac_new_set in
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3058 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3059 ac_cache_corrupted=: ;;
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3062 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3063 ac_cache_corrupted=: ;;
3066 if test "x$ac_old_val" != "x$ac_new_val"; then
3067 # differences in whitespace do not lead to failure.
3068 ac_old_val_w=`echo x $ac_old_val`
3069 ac_new_val_w=`echo x $ac_new_val`
3070 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3072 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3073 ac_cache_corrupted=:
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3076 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3077 eval $ac_var=\$ac_old_val
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3080 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3082 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3085 # Pass precious variables to config.status.
3086 if test "$ac_new_set" = set; then
3088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3089 *) ac_arg=$ac_var=$ac_new_val ;;
3091 case " $ac_configure_args " in
3092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3093 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3097 if $ac_cache_corrupted; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3101 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3102 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3104 ## -------------------- ##
3105 ## Main body of script. ##
3106 ## -------------------- ##
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3125 if test -f "$ac_dir/install-sh"; then
3127 ac_install_sh="$ac_aux_dir/install-sh -c"
3129 elif test -f "$ac_dir/install.sh"; then
3131 ac_install_sh="$ac_aux_dir/install.sh -c"
3133 elif test -f "$ac_dir/shtool"; then
3135 ac_install_sh="$ac_aux_dir/shtool install -c"
3139 if test -z "$ac_aux_dir"; then
3140 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3143 # These three variables are undocumented and unsupported,
3144 # and are intended to be withdrawn in a future Autoconf release.
3145 # They can cause serious problems if a builder's source tree is in a directory
3146 # whose full name contains unusual characters.
3147 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3148 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3149 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3152 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3155 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3156 WIN32MAINDIR=${BUILD_DIR}
3157 WIN32TOPDIR=${TOP_DIR}
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_path_TRUEPRG+:} false; then :
3169 $as_echo_n "(cached) " >&6
3173 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 TRUEPRG=$ac_cv_path_TRUEPRG
3195 if test -n "$TRUEPRG"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3197 $as_echo "$TRUEPRG" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3204 test -n "$TRUEPRG" && break
3206 test -n "$TRUEPRG" || TRUEPRG=":"
3208 for ac_prog in false
3210 # Extract the first word of "$ac_prog", so it can be a program name with args.
3211 set dummy $ac_prog; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_path_FALSEPRG+:} false; then :
3215 $as_echo_n "(cached) " >&6
3219 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 FALSEPRG=$ac_cv_path_FALSEPRG
3241 if test -n "$FALSEPRG"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3243 $as_echo "$FALSEPRG" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3250 test -n "$FALSEPRG" && break
3252 test -n "$FALSEPRG" || FALSEPRG=":"
3257 if test "x$BACULA" != x; then
3258 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3260 BACULA=${BACULA:-Bacula}
3261 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3266 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3267 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3268 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3271 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3272 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3275 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3276 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3278 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3279 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3282 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3287 echo "configuring for ${BACULA} $VERSION ($DATE)"
3292 ac_cpp='$CPP $CPPFLAGS'
3293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 if test -n "$ac_tool_prefix"; then
3297 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3298 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3304 if test -n "$CC"; then
3305 ac_cv_prog_CC="$CC" # Let the user override the test.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 if test -n "$CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327 $as_echo "$CC" >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3335 if test -z "$ac_cv_prog_CC"; then
3337 # Extract the first word of "gcc", so it can be a program name with args.
3338 set dummy gcc; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342 $as_echo_n "(cached) " >&6
3344 if test -n "$ac_ct_CC"; then
3345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 ac_cv_prog_ac_ct_CC="gcc"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365 if test -n "$ac_ct_CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367 $as_echo "$ac_ct_CC" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3373 if test "x$ac_ct_CC" = x; then
3376 case $cross_compiling:$ac_tool_warned in
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380 ac_tool_warned=yes ;;
3388 if test -z "$CC"; then
3389 if test -n "$ac_tool_prefix"; then
3390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}cc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_CC="${ac_tool_prefix}cc"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 if test -n "$CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420 $as_echo "$CC" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3429 if test -z "$CC"; then
3430 # Extract the first word of "cc", so it can be a program name with args.
3431 set dummy cc; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_CC+:} false; then :
3435 $as_echo_n "(cached) " >&6
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449 ac_prog_rejected=yes
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 if test $ac_prog_rejected = yes; then
3461 # We found a bogon in the path, so make sure we never use it.
3462 set dummy $ac_cv_prog_CC
3464 if test $# != 0; then
3465 # We chose a different compiler from the bogus one.
3466 # However, it has the same basename, so the bogon will be chosen
3467 # first if we set CC to just the basename; use the full file name.
3469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 if test -n "$CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477 $as_echo "$CC" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 for ac_prog in cl.exe
3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if ${ac_cv_prog_CC+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 if test -n "$CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3526 test -n "$CC" && break
3529 if test -z "$CC"; then
3531 for ac_prog in cl.exe
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$ac_ct_CC"; then
3541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_ac_ct_CC="$ac_prog"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561 if test -n "$ac_ct_CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3563 $as_echo "$ac_ct_CC" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3570 test -n "$ac_ct_CC" && break
3573 if test "x$ac_ct_CC" = x; then
3576 case $cross_compiling:$ac_tool_warned in
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580 ac_tool_warned=yes ;;
3589 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "no acceptable C compiler found in \$PATH
3592 See \`config.log' for more details" "$LINENO" 5; }
3594 # Provide some information about the compiler.
3595 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3598 for ac_option in --version -v -V -qversion; do
3599 { { ac_try="$ac_compiler $ac_option >&5"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3608 if test -s conftest.err; then
3610 ... rest of stderr output deleted ...
3611 10q' conftest.err >conftest.er1
3612 cat conftest.er1 >&5
3614 rm -f conftest.er1 conftest.err
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3630 ac_clean_files_save=$ac_clean_files
3631 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3632 # Try to create an executable without -o first, disregard a.out.
3633 # It will help us diagnose broken compilers, and finding out an intuition
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3636 $as_echo_n "checking whether the C compiler works... " >&6; }
3637 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3639 # The possible output files:
3640 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3643 for ac_file in $ac_files
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3647 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3652 if { { ac_try="$ac_link_default"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_link_default") 2>&5
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; then :
3663 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3664 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3665 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3666 # so that the user can short-circuit this test for compilers unknown to
3668 for ac_file in $ac_files ''
3670 test -f "$ac_file" || continue
3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3675 # We found the default executable, but exeext='' is most
3679 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3681 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3683 # We set ac_cv_exeext here because the later test for it is not
3684 # safe: cross compilers may not add the suffix if given an `-o'
3685 # argument, so we may need to know it at that point already.
3686 # Even if this section looks crufty: it has the advantage of
3693 test "$ac_cv_exeext" = no && ac_cv_exeext=
3698 if test -z "$ac_file"; then :
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 $as_echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error 77 "C compiler cannot create executables
3707 See \`config.log' for more details" "$LINENO" 5; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710 $as_echo "yes" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3713 $as_echo_n "checking for C compiler default output file name... " >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3715 $as_echo "$ac_file" >&6; }
3716 ac_exeext=$ac_cv_exeext
3718 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3719 ac_clean_files=$ac_clean_files_save
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3721 $as_echo_n "checking for suffix of executables... " >&6; }
3722 if { { ac_try="$ac_link"
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729 (eval "$ac_link") 2>&5
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }; then :
3733 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3734 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3735 # work properly (i.e., refer to `conftest.exe'), while it won't with
3737 for ac_file in conftest.exe conftest conftest.*; do
3738 test -f "$ac_file" || continue
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3750 See \`config.log' for more details" "$LINENO" 5; }
3752 rm -f conftest conftest$ac_cv_exeext
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3754 $as_echo "$ac_cv_exeext" >&6; }
3756 rm -f conftest.$ac_ext
3757 EXEEXT=$ac_cv_exeext
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3765 FILE *f = fopen ("conftest.out", "w");
3766 return ferror (f) || fclose (f) != 0;
3772 ac_clean_files="$ac_clean_files conftest.out"
3773 # Check that the compiler produces executables we can run. If not, either
3774 # the compiler is broken, or we cross compile.
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3776 $as_echo_n "checking whether we are cross compiling... " >&6; }
3777 if test "$cross_compiling" != yes; then
3778 { { ac_try="$ac_link"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_link") 2>&5
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }
3789 if { ac_try='./conftest$ac_cv_exeext'
3790 { { case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796 (eval "$ac_try") 2>&5
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }; }; then
3802 if test "$cross_compiling" = maybe; then
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error $? "cannot run C compiled programs.
3808 If you meant to cross compile, use \`--host'.
3809 See \`config.log' for more details" "$LINENO" 5; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3814 $as_echo "$cross_compiling" >&6; }
3816 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3817 ac_clean_files=$ac_clean_files_save
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3819 $as_echo_n "checking for suffix of object files... " >&6; }
3820 if ${ac_cv_objext+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3834 rm -f conftest.o conftest.obj
3835 if { { ac_try="$ac_compile"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_compile") 2>&5
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }; then :
3846 for ac_file in conftest.o conftest.obj conftest.*; do
3847 test -f "$ac_file" || continue;
3849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3850 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3855 $as_echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error $? "cannot compute suffix of object files: cannot compile
3861 See \`config.log' for more details" "$LINENO" 5; }
3863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3866 $as_echo "$ac_cv_objext" >&6; }
3867 OBJEXT=$ac_cv_objext
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3870 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3871 if ${ac_cv_c_compiler_gnu+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3888 if ac_fn_c_try_compile "$LINENO"; then :
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3898 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3899 if test $ac_compiler_gnu = yes; then
3904 ac_test_CFLAGS=${CFLAGS+set}
3905 ac_save_CFLAGS=$CFLAGS
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3907 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3908 if ${ac_cv_prog_cc_g+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 ac_save_c_werror_flag=$ac_c_werror_flag
3912 ac_c_werror_flag=yes
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3926 if ac_fn_c_try_compile "$LINENO"; then :
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3941 if ac_fn_c_try_compile "$LINENO"; then :
3944 ac_c_werror_flag=$ac_save_c_werror_flag
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3957 if ac_fn_c_try_compile "$LINENO"; then :
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_c_werror_flag=$ac_save_c_werror_flag
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3968 $as_echo "$ac_cv_prog_cc_g" >&6; }
3969 if test "$ac_test_CFLAGS" = set; then
3970 CFLAGS=$ac_save_CFLAGS
3971 elif test $ac_cv_prog_cc_g = yes; then
3972 if test "$GCC" = yes; then
3978 if test "$GCC" = yes; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3985 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3986 if ${ac_cv_prog_cc_c89+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 ac_cv_prog_cc_c89=no
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3995 #include <sys/types.h>
3996 #include <sys/stat.h>
3997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3998 struct buf { int x; };
3999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4000 static char *e (p, i)
4006 static char *f (char * (*g) (char **, int), char **p, ...)
4011 s = g (p, va_arg (v,int));
4016 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4017 function prototypes and stuff, but not '\xHH' hex character constants.
4018 These don't provoke an error unfortunately, instead are silently treated
4019 as 'x'. The following induces an error, until -std is added to get
4020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4021 array size at least. It's necessary to write '\x00'==0 to get something
4022 that's true only with -std. */
4023 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4025 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4026 inside strings and character constants. */
4028 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4030 int test (int i, double x);
4031 struct s1 {int (*f) (int a);};
4032 struct s2 {int (*f) (double a);};
4033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4044 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4047 CC="$ac_save_CC $ac_arg"
4048 if ac_fn_c_try_compile "$LINENO"; then :
4049 ac_cv_prog_cc_c89=$ac_arg
4051 rm -f core conftest.err conftest.$ac_objext
4052 test "x$ac_cv_prog_cc_c89" != "xno" && break
4054 rm -f conftest.$ac_ext
4059 case "x$ac_cv_prog_cc_c89" in
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4062 $as_echo "none needed" >&6; } ;;
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4065 $as_echo "unsupported" >&6; } ;;
4067 CC="$CC $ac_cv_prog_cc_c89"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4069 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4071 if test "x$ac_cv_prog_cc_c89" != xno; then :
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 ac_cpp='$CXXCPP $CPPFLAGS'
4083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4086 if test -z "$CXX"; then
4087 if test -n "$CCC"; then
4090 if test -n "$ac_tool_prefix"; then
4091 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CXX+:} false; then :
4098 $as_echo_n "(cached) " >&6
4100 if test -n "$CXX"; then
4101 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 if test -n "$CXX"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4123 $as_echo "$CXX" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4130 test -n "$CXX" && break
4133 if test -z "$CXX"; then
4135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4137 # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy $ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -n "$ac_ct_CXX"; then
4145 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_CXX="$ac_prog"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4165 if test -n "$ac_ct_CXX"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4167 $as_echo "$ac_ct_CXX" >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4174 test -n "$ac_ct_CXX" && break
4177 if test "x$ac_ct_CXX" = x; then
4180 case $cross_compiling:$ac_tool_warned in
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4192 # Provide some information about the compiler.
4193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4196 for ac_option in --version -v -V -qversion; do
4197 { { ac_try="$ac_compiler $ac_option >&5"
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4206 if test -s conftest.err; then
4208 ... rest of stderr output deleted ...
4209 10q' conftest.err >conftest.er1
4210 cat conftest.er1 >&5
4212 rm -f conftest.er1 conftest.err
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4218 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4219 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4220 $as_echo_n "(cached) " >&6
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4236 if ac_fn_cxx_try_compile "$LINENO"; then :
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4246 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4247 if test $ac_compiler_gnu = yes; then
4252 ac_test_CXXFLAGS=${CXXFLAGS+set}
4253 ac_save_CXXFLAGS=$CXXFLAGS
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4255 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4256 if ${ac_cv_prog_cxx_g+:} false; then :
4257 $as_echo_n "(cached) " >&6
4259 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4260 ac_cxx_werror_flag=yes
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4274 if ac_fn_cxx_try_compile "$LINENO"; then :
4275 ac_cv_prog_cxx_g=yes
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4289 if ac_fn_cxx_try_compile "$LINENO"; then :
4292 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4305 if ac_fn_cxx_try_compile "$LINENO"; then :
4306 ac_cv_prog_cxx_g=yes
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4316 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4317 if test "$ac_test_CXXFLAGS" = set; then
4318 CXXFLAGS=$ac_save_CXXFLAGS
4319 elif test $ac_cv_prog_cxx_g = yes; then
4320 if test "$GXX" = yes; then
4326 if test "$GXX" = yes; then
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 if test "x$CC" != xcc; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4340 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4343 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4345 set dummy $CC; ac_cc=`$as_echo "$2" |
4346 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4347 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4348 $as_echo_n "(cached) " >&6
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 # Make sure it works both with $CC and with simple cc.
4362 # We do the test twice because some compilers refuse to overwrite an
4363 # existing .o file with -o, though they will create one.
4364 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4366 if { { case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_try") 2>&5
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; } &&
4376 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 $as_echo "$ac_try_echo"; } >&5
4382 (eval "$ac_try") 2>&5
4384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385 test $ac_status = 0; };
4387 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4388 if test "x$CC" != xcc; then
4389 # Test first that cc exists at all.
4390 if { ac_try='cc -c conftest.$ac_ext >&5'
4391 { { case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_try") 2>&5
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }; }; then
4401 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4403 if { { case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_try") 2>&5
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; } &&
4413 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_try") 2>&5
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; };
4427 # cc exists but doesn't like -o.
4428 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4433 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4435 rm -f core conftest*
4438 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4440 $as_echo "yes" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4445 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4456 # On Suns, sometimes $CPP names a directory.
4457 if test -n "$CPP" && test -d "$CPP"; then
4460 if test -z "$CPP"; then
4461 if ${ac_cv_prog_CPP+:} false; then :
4462 $as_echo_n "(cached) " >&6
4464 # Double quotes because CPP needs to be expanded
4465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4468 for ac_c_preproc_warn_flag in '' yes
4470 # Use a header file that comes with gcc, so configuring glibc
4471 # with a fresh cross-compiler works.
4472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4473 # <limits.h> exists even on freestanding compilers.
4474 # On the NeXT, cc -E runs the code through the compiler's parser,
4475 # not just through cpp. "Syntax error" is here to catch this case.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4479 # include <limits.h>
4481 # include <assert.h>
4485 if ac_fn_c_try_cpp "$LINENO"; then :
4488 # Broken: fails on valid input.
4491 rm -f conftest.err conftest.i conftest.$ac_ext
4493 # OK, works on sane cases. Now check whether nonexistent headers
4494 # can be detected and how.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <ac_nonexistent.h>
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4500 # Broken: success on invalid input.
4503 # Passes both tests.
4507 rm -f conftest.err conftest.i conftest.$ac_ext
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.i conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then :
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4525 $as_echo "$CPP" >&6; }
4527 for ac_c_preproc_warn_flag in '' yes
4529 # Use a header file that comes with gcc, so configuring glibc
4530 # with a fresh cross-compiler works.
4531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532 # <limits.h> exists even on freestanding compilers.
4533 # On the NeXT, cc -E runs the code through the compiler's parser,
4534 # not just through cpp. "Syntax error" is here to catch this case.
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4538 # include <limits.h>
4540 # include <assert.h>
4544 if ac_fn_c_try_cpp "$LINENO"; then :
4547 # Broken: fails on valid input.
4550 rm -f conftest.err conftest.i conftest.$ac_ext
4552 # OK, works on sane cases. Now check whether nonexistent headers
4553 # can be detected and how.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <ac_nonexistent.h>
4558 if ac_fn_c_try_cpp "$LINENO"; then :
4559 # Broken: success on invalid input.
4562 # Passes both tests.
4566 rm -f conftest.err conftest.i conftest.$ac_ext
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.i conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then :
4574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4577 See \`config.log' for more details" "$LINENO" 5; }
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589 if ${ac_cv_path_GREP+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 if test -z "$GREP"; then
4593 ac_path_GREP_found=false
4594 # Loop through the user's path and test for each of PROGNAME-LIST
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 test -z "$as_dir" && as_dir=.
4600 for ac_prog in grep ggrep; do
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4604 # Check for GNU ac_path_GREP and select it if it is found.
4605 # Check for GNU $ac_path_GREP
4606 case `"$ac_path_GREP" --version 2>&1` in
4608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611 $as_echo_n 0123456789 >"conftest.in"
4614 cat "conftest.in" "conftest.in" >"conftest.tmp"
4615 mv "conftest.tmp" "conftest.in"
4616 cp "conftest.in" "conftest.nl"
4617 $as_echo 'GREP' >> "conftest.nl"
4618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620 as_fn_arith $ac_count + 1 && ac_count=$as_val
4621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622 # Best one so far, save it but keep looking for a better one
4623 ac_cv_path_GREP="$ac_path_GREP"
4624 ac_path_GREP_max=$ac_count
4626 # 10*(2^10) chars as input seems more than enough
4627 test $ac_count -gt 10 && break
4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 $ac_path_GREP_found && break 3
4637 if test -z "$ac_cv_path_GREP"; then
4638 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641 ac_cv_path_GREP=$GREP
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647 GREP="$ac_cv_path_GREP"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if ${ac_cv_path_EGREP+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656 then ac_cv_path_EGREP="$GREP -E"
4658 if test -z "$EGREP"; then
4659 ac_path_EGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in egrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671 # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 $as_echo_n 0123456789 >"conftest.in"
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'EGREP' >> "conftest.nl"
4684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_EGREP="$ac_path_EGREP"
4690 ac_path_EGREP_max=$ac_count
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 $ac_path_EGREP_found && break 3
4703 if test -z "$ac_cv_path_EGREP"; then
4704 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 ac_cv_path_EGREP=$EGREP
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713 $as_echo "$ac_cv_path_EGREP" >&6; }
4714 EGREP="$ac_cv_path_EGREP"
4717 if test $ac_cv_c_compiler_gnu = yes; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4719 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4720 if ${ac_cv_prog_gcc_traditional+:} false; then :
4721 $as_echo_n "(cached) " >&6
4723 ac_pattern="Autoconf.*'x'"
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4730 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4731 ac_cv_prog_gcc_traditional=yes
4733 ac_cv_prog_gcc_traditional=no
4738 if test $ac_cv_prog_gcc_traditional = no; then
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4745 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4746 ac_cv_prog_gcc_traditional=yes
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4753 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4754 if test $ac_cv_prog_gcc_traditional = yes; then
4755 CC="$CC -traditional"
4759 BASECC=`basename $CC`
4761 if test "x$BASECC" = xgcc; then
4762 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4766 # Extract the first word of "$CXX", so it can be a program name with args.
4767 set dummy $CXX; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if ${ac_cv_path_CXX+:} false; then :
4771 $as_echo_n "(cached) " >&6
4775 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4798 if test -n "$CXX"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4800 $as_echo "$CXX" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4807 if test ! -e $CXX; then
4808 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4811 # Find a good install program. We prefer a C program (faster),
4812 # so one script is as good as another. But avoid the broken or
4813 # incompatible versions:
4814 # SysV /etc/install, /usr/sbin/install
4815 # SunOS /usr/etc/install
4816 # IRIX /sbin/install
4818 # AmigaOS /C/install, which installs bootblocks on floppy discs
4819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4822 # OS/2's system install, which has a completely different semantic
4823 # ./install, which can be erroneously created by make from ./install.sh.
4824 # Reject install programs that cannot install multiple files.
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4827 if test -z "$INSTALL"; then
4828 if ${ac_cv_path_install+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 # Account for people who put trailing slashes in PATH elements.
4837 case $as_dir/ in #((
4838 ./ | .// | /[cC]/* | \
4839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4840 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4843 # OSF1 and SCO ODT 3.0 have their own names for install.
4844 # Don't use installbsd from OSF since it installs stuff as root
4846 for ac_prog in ginstall scoinst install; do
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4849 if test $ac_prog = install &&
4850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4851 # AIX install. It has an incompatible calling convention.
4853 elif test $ac_prog = install &&
4854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855 # program-specific install script used by HP pwplus--don't use.
4858 rm -rf conftest.one conftest.two conftest.dir
4859 echo one > conftest.one
4860 echo two > conftest.two
4862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4863 test -s conftest.one && test -s conftest.two &&
4864 test -s conftest.dir/conftest.one &&
4865 test -s conftest.dir/conftest.two
4867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4880 rm -rf conftest.one conftest.two conftest.dir
4883 if test "${ac_cv_path_install+set}" = set; then
4884 INSTALL=$ac_cv_path_install
4886 # As a last resort, use the slow shell script. Don't cache a
4887 # value for INSTALL within a source directory, because that will
4888 # break other packages using the cache if that directory is
4889 # removed, or if the value is a relative name.
4890 INSTALL=$ac_install_sh
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4894 $as_echo "$INSTALL" >&6; }
4896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4897 # It thinks the first close brace ends the variable substitution.
4898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4904 # Extract the first word of "mv", so it can be a program name with args.
4905 set dummy mv; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_path_MV+:} false; then :
4909 $as_echo_n "(cached) " >&6
4913 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4936 if test -n "$MV"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4938 $as_echo "$MV" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4945 # Extract the first word of "rm", so it can be a program name with args.
4946 set dummy rm; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_path_REMOVE+:} false; then :
4950 $as_echo_n "(cached) " >&6
4954 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4976 REMOVE=$ac_cv_path_REMOVE
4977 if test -n "$REMOVE"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4979 $as_echo "$REMOVE" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4986 # Extract the first word of "cp", so it can be a program name with args.
4987 set dummy cp; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_CP+:} false; then :
4991 $as_echo_n "(cached) " >&6
4995 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5018 if test -n "$CP"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5020 $as_echo "$CP" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5027 # Extract the first word of "sed", so it can be a program name with args.
5028 set dummy sed; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_path_SED+:} false; then :
5032 $as_echo_n "(cached) " >&6
5036 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5059 if test -n "$SED"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5061 $as_echo "$SED" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 # Extract the first word of "echo", so it can be a program name with args.
5069 set dummy echo; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_path_ECHO+:} false; then :
5073 $as_echo_n "(cached) " >&6
5077 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5099 ECHO=$ac_cv_path_ECHO
5100 if test -n "$ECHO"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5102 $as_echo "$ECHO" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5109 # Extract the first word of "cmp", so it can be a program name with args.
5110 set dummy cmp; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_path_CMP+:} false; then :
5114 $as_echo_n "(cached) " >&6
5118 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5141 if test -n "$CMP"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5143 $as_echo "$CMP" >&6; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 # Extract the first word of "tbl", so it can be a program name with args.
5151 set dummy tbl; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_path_TBL+:} false; then :
5155 $as_echo_n "(cached) " >&6
5159 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5182 if test -n "$TBL"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5184 $as_echo "$TBL" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 # Extract the first word of "ar", so it can be a program name with args.
5192 set dummy ar; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_path_AR+:} false; then :
5196 $as_echo_n "(cached) " >&6
5200 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5223 if test -n "$AR"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5225 $as_echo "$AR" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5232 # Extract the first word of "openssl", so it can be a program name with args.
5233 set dummy openssl; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_path_OPENSSL+:} false; then :
5237 $as_echo_n "(cached) " >&6
5241 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5263 OPENSSL=$ac_cv_path_OPENSSL
5264 if test -n "$OPENSSL"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5266 $as_echo "$OPENSSL" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5273 # Extract the first word of "mtx", so it can be a program name with args.
5274 set dummy mtx; ac_word=$2
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 $as_echo_n "checking for $ac_word... " >&6; }
5277 if ${ac_cv_path_MTX+:} false; then :
5278 $as_echo_n "(cached) " >&6
5282 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5305 if test -n "$MTX"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5307 $as_echo "$MTX" >&6; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 # Extract the first word of "dd", so it can be a program name with args.
5315 set dummy dd; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_path_DD+:} false; then :
5319 $as_echo_n "(cached) " >&6
5323 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5346 if test -n "$DD"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5348 $as_echo "$DD" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5355 # Extract the first word of "mkisofs", so it can be a program name with args.
5356 set dummy mkisofs; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_path_MKISOFS+:} false; then :
5360 $as_echo_n "(cached) " >&6
5364 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5386 MKISOFS=$ac_cv_path_MKISOFS
5387 if test -n "$MKISOFS"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5389 $as_echo "$MKISOFS" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5396 # Extract the first word of "python", so it can be a program name with args.
5397 set dummy python; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_path_PYTHON+:} false; then :
5401 $as_echo_n "(cached) " >&6
5405 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5427 PYTHON=$ac_cv_path_PYTHON
5428 if test -n "$PYTHON"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5430 $as_echo "$PYTHON" >&6; }
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5437 # Extract the first word of "growisofs", so it can be a program name with args.
5438 set dummy growisofs; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_path_GROWISOFS+:} false; then :
5442 $as_echo_n "(cached) " >&6
5446 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5468 GROWISOFS=$ac_cv_path_GROWISOFS
5469 if test -n "$GROWISOFS"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5471 $as_echo "$GROWISOFS" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5478 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5479 set dummy dvd+rw-mediainfo; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 case $DVDRWMEDIAINFO in
5487 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5509 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5510 if test -n "$DVDRWMEDIAINFO"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5512 $as_echo "$DVDRWMEDIAINFO" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5519 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5520 set dummy dvd+rw-format; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5524 $as_echo_n "(cached) " >&6
5526 case $DVDRWFORMAT in
5528 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5550 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5551 if test -n "$DVDRWFORMAT"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5553 $as_echo "$DVDRWFORMAT" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5560 # Extract the first word of "pkg-config", so it can be a program name with args.
5561 set dummy pkg-config; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_path_PKGCONFIG+:} false; then :
5565 $as_echo_n "(cached) " >&6
5569 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5591 PKGCONFIG=$ac_cv_path_PKGCONFIG
5592 if test -n "$PKGCONFIG"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5594 $as_echo "$PKGCONFIG" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5601 # Extract the first word of "qmake", so it can be a program name with args.
5602 set dummy qmake; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_path_QMAKE+:} false; then :
5606 $as_echo_n "(cached) " >&6
5610 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5632 QMAKE=$ac_cv_path_QMAKE
5633 if test -n "$QMAKE"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5635 $as_echo "$QMAKE" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5642 # Extract the first word of "gmake", so it can be a program name with args.
5643 set dummy gmake; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_path_GMAKE+:} false; then :
5647 $as_echo_n "(cached) " >&6
5651 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5673 GMAKE=$ac_cv_path_GMAKE
5674 if test -n "$GMAKE"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5676 $as_echo "$GMAKE" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5684 if test "x$WXCONFIG" = x; then
5687 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5688 set dummy ${WXCONFIG}; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_path_WXCONFIG+:} false; then :
5692 $as_echo_n "(cached) " >&6
5696 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5718 WXCONFIG=$ac_cv_path_WXCONFIG
5719 if test -n "$WXCONFIG"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5721 $as_echo "$WXCONFIG" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5729 # Extract the first word of "cdrecord", so it can be a program name with args.
5730 set dummy cdrecord; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_path_CDRECORD+:} false; then :
5734 $as_echo_n "(cached) " >&6
5738 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5760 CDRECORD=$ac_cv_path_CDRECORD
5761 if test -n "$CDRECORD"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5763 $as_echo "$CDRECORD" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5770 # Extract the first word of "pidof", so it can be a program name with args.
5771 set dummy pidof; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_path_PIDOF+:} false; then :
5775 $as_echo_n "(cached) " >&6
5779 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5801 PIDOF=$ac_cv_path_PIDOF
5802 if test -n "$PIDOF"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5804 $as_echo "$PIDOF" >&6; }
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5811 for ac_prog in gawk mawk nawk awk
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy $ac_prog; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if ${ac_cv_prog_AWK+:} false; then :
5818 $as_echo_n "(cached) " >&6
5820 if test -n "$AWK"; then
5821 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_AWK="$ac_prog"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 if test -n "$AWK"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5843 $as_echo "$AWK" >&6; }
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5850 test -n "$AWK" && break
5853 # Some AWK programs fail, so test it and warn the user
5854 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5855 { if ((prog == $2) || (("(" prog ")") == $2) ||
5856 (("" prog "") == $2) ||
5857 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5859 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5860 The regex engine of $AWK is too broken to be used you
5861 might want to install GNU AWK.
5862 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5865 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5866 set dummy $THE_AWK; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_path_AWK+:} false; then :
5870 $as_echo_n "(cached) " >&6
5874 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5897 if test -n "$AWK"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5899 $as_echo "$AWK" >&6; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5908 test -n "$ARFLAG" || ARFLAGS="cr"
5920 # Check whether --enable-libtool was given.
5921 if test "${enable_libtool+set}" = set; then :
5922 enableval=$enable_libtool;
5923 if test x$enableval = xno; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5933 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5939 macro_revision='1.3293'
5953 ltmain="$ac_aux_dir/ltmain.sh"
5955 # Make sure we can run config.sub.
5956 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5957 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5960 $as_echo_n "checking build system type... " >&6; }
5961 if ${ac_cv_build+:} false; then :
5962 $as_echo_n "(cached) " >&6
5964 ac_build_alias=$build_alias
5965 test "x$ac_build_alias" = x &&
5966 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5967 test "x$ac_build_alias" = x &&
5968 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5969 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5970 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5974 $as_echo "$ac_cv_build" >&6; }
5975 case $ac_cv_build in
5977 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5980 ac_save_IFS=$IFS; IFS='-'
5986 # Remember, the first character of IFS is used to create $*,
5987 # except with old shells:
5990 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5994 $as_echo_n "checking host system type... " >&6; }
5995 if ${ac_cv_host+:} false; then :
5996 $as_echo_n "(cached) " >&6
5998 if test "x$host_alias" = x; then
5999 ac_cv_host=$ac_cv_build
6001 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6002 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6007 $as_echo "$ac_cv_host" >&6; }
6010 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6013 ac_save_IFS=$IFS; IFS='-'
6019 # Remember, the first character of IFS is used to create $*,
6020 # except with old shells:
6023 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6026 # Backslashify metacharacters that are still active within
6027 # double-quoted strings.
6028 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6030 # Same as above, but do not quote variable references.
6031 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6033 # Sed substitution to delay expansion of an escaped shell variable in a
6034 # double_quote_subst'ed string.
6035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6037 # Sed substitution to delay expansion of an escaped single quote.
6038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6040 # Sed substitution to avoid accidental globbing in evaled expressions
6041 no_glob_subst='s/\*/\\\*/g'
6043 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6048 $as_echo_n "checking how to print strings... " >&6; }
6049 # Test print first, because it will be a builtin if present.
6050 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6051 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6053 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6056 # Use this function as a fallback that always works.
6057 func_fallback_echo ()
6059 eval 'cat <<_LTECHO_EOF
6063 ECHO='func_fallback_echo'
6066 # func_echo_all arg...
6067 # Invoke $ECHO with all args, space-separated.
6074 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6075 $as_echo "printf" >&6; } ;;
6076 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6077 $as_echo "print -r" >&6; } ;;
6078 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6079 $as_echo "cat" >&6; } ;;
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6096 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6097 if ${ac_cv_path_SED+:} false; then :
6098 $as_echo_n "(cached) " >&6
6100 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6101 for ac_i in 1 2 3 4 5 6 7; do
6102 ac_script="$ac_script$as_nl$ac_script"
6104 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6105 { ac_script=; unset ac_script;}
6106 if test -z "$SED"; then
6107 ac_path_SED_found=false
6108 # Loop through the user's path and test for each of PROGNAME-LIST
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_prog in sed gsed; do
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6117 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6118 # Check for GNU ac_path_SED and select it if it is found.
6119 # Check for GNU $ac_path_SED
6120 case `"$ac_path_SED" --version 2>&1` in
6122 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6125 $as_echo_n 0123456789 >"conftest.in"
6128 cat "conftest.in" "conftest.in" >"conftest.tmp"
6129 mv "conftest.tmp" "conftest.in"
6130 cp "conftest.in" "conftest.nl"
6131 $as_echo '' >> "conftest.nl"
6132 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6134 as_fn_arith $ac_count + 1 && ac_count=$as_val
6135 if test $ac_count -gt ${ac_path_SED_max-0}; then
6136 # Best one so far, save it but keep looking for a better one
6137 ac_cv_path_SED="$ac_path_SED"
6138 ac_path_SED_max=$ac_count
6140 # 10*(2^10) chars as input seems more than enough
6141 test $ac_count -gt 10 && break
6143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6146 $ac_path_SED_found && break 3
6151 if test -z "$ac_cv_path_SED"; then
6152 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6160 $as_echo "$ac_cv_path_SED" >&6; }
6161 SED="$ac_cv_path_SED"
6164 test -z "$SED" && SED=sed
6165 Xsed="$SED -e 1s/^X//"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6178 $as_echo_n "checking for fgrep... " >&6; }
6179 if ${ac_cv_path_FGREP+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6183 then ac_cv_path_FGREP="$GREP -F"
6185 if test -z "$FGREP"; then
6186 ac_path_FGREP_found=false
6187 # Loop through the user's path and test for each of PROGNAME-LIST
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6192 test -z "$as_dir" && as_dir=.
6193 for ac_prog in fgrep; do
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6196 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6197 # Check for GNU ac_path_FGREP and select it if it is found.
6198 # Check for GNU $ac_path_FGREP
6199 case `"$ac_path_FGREP" --version 2>&1` in
6201 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6204 $as_echo_n 0123456789 >"conftest.in"
6207 cat "conftest.in" "conftest.in" >"conftest.tmp"
6208 mv "conftest.tmp" "conftest.in"
6209 cp "conftest.in" "conftest.nl"
6210 $as_echo 'FGREP' >> "conftest.nl"
6211 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213 as_fn_arith $ac_count + 1 && ac_count=$as_val
6214 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6215 # Best one so far, save it but keep looking for a better one
6216 ac_cv_path_FGREP="$ac_path_FGREP"
6217 ac_path_FGREP_max=$ac_count
6219 # 10*(2^10) chars as input seems more than enough
6220 test $ac_count -gt 10 && break
6222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6225 $ac_path_FGREP_found && break 3
6230 if test -z "$ac_cv_path_FGREP"; then
6231 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6234 ac_cv_path_FGREP=$FGREP
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6240 $as_echo "$ac_cv_path_FGREP" >&6; }
6241 FGREP="$ac_cv_path_FGREP"
6244 test -z "$GREP" && GREP=grep
6264 # Check whether --with-gnu-ld was given.
6265 if test "${with_gnu_ld+set}" = set; then :
6266 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6272 if test "$GCC" = yes; then
6273 # Check if gcc -print-prog-name=ld gives a path.
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6275 $as_echo_n "checking for ld used by $CC... " >&6; }
6278 # gcc leaves a trailing carriage return which upsets mingw
6279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6284 # Accept absolute paths.
6286 re_direlt='/[^/][^/]*/\.\./'
6287 # Canonicalize the pathname of ld
6288 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6289 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6290 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6292 test -z "$LD" && LD="$ac_prog"
6295 # If it fails, then pretend we aren't using GCC.
6299 # If it is relative, then search for the first ld in PATH.
6303 elif test "$with_gnu_ld" = yes; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6305 $as_echo_n "checking for GNU ld... " >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6308 $as_echo_n "checking for non-GNU ld... " >&6; }
6310 if ${lt_cv_path_LD+:} false; then :
6311 $as_echo_n "(cached) " >&6
6313 if test -z "$LD"; then
6314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6315 for ac_dir in $PATH; do
6317 test -z "$ac_dir" && ac_dir=.
6318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6319 lt_cv_path_LD="$ac_dir/$ac_prog"
6320 # Check to see if the program is GNU ld. I'd rather use --version,
6321 # but apparently some variants of GNU ld only accept -v.
6322 # Break only if it was the GNU/non-GNU ld that we prefer.
6323 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6324 *GNU* | *'with BFD'*)
6325 test "$with_gnu_ld" != no && break
6328 test "$with_gnu_ld" != yes && break
6335 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6340 if test -n "$LD"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6342 $as_echo "$LD" >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6350 if ${lt_cv_prog_gnu_ld+:} false; then :
6351 $as_echo_n "(cached) " >&6
6353 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6354 case `$LD -v 2>&1 </dev/null` in
6355 *GNU* | *'with BFD'*)
6356 lt_cv_prog_gnu_ld=yes
6359 lt_cv_prog_gnu_ld=no
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6365 with_gnu_ld=$lt_cv_prog_gnu_ld
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6377 if ${lt_cv_path_NM+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -n "$NM"; then
6381 # Let the user override the test.
6384 lt_nm_to_check="${ac_tool_prefix}nm"
6385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6386 lt_nm_to_check="$lt_nm_to_check nm"
6388 for lt_tmp_nm in $lt_nm_to_check; do
6389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6392 test -z "$ac_dir" && ac_dir=.
6393 tmp_nm="$ac_dir/$lt_tmp_nm"
6394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6395 # Check to see if the nm accepts a BSD-compat flag.
6396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6397 # nm: unknown option "B" ignored
6398 # Tru64's nm complains that /dev/null is an invalid object file
6399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6400 */dev/null* | *'Invalid file or object type'*)
6401 lt_cv_path_NM="$tmp_nm -B"
6405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6407 lt_cv_path_NM="$tmp_nm -p"
6411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6412 continue # so that we can try to find one that supports BSD flags
6421 : ${lt_cv_path_NM=no}
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6425 $as_echo "$lt_cv_path_NM" >&6; }
6426 if test "$lt_cv_path_NM" != "no"; then
6429 # Didn't find any BSD compatible name lister, look for dumpbin.
6430 if test -n "$DUMPBIN"; then :
6431 # Let the user override the test.
6433 if test -n "$ac_tool_prefix"; then
6434 for ac_prog in dumpbin "link -dump"
6436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_DUMPBIN+:} false; then :
6441 $as_echo_n "(cached) " >&6
6443 if test -n "$DUMPBIN"; then
6444 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 DUMPBIN=$ac_cv_prog_DUMPBIN
6464 if test -n "$DUMPBIN"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6466 $as_echo "$DUMPBIN" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6473 test -n "$DUMPBIN" && break
6476 if test -z "$DUMPBIN"; then
6477 ac_ct_DUMPBIN=$DUMPBIN
6478 for ac_prog in dumpbin "link -dump"
6480 # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$ac_ct_DUMPBIN"; then
6488 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6508 if test -n "$ac_ct_DUMPBIN"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6510 $as_echo "$ac_ct_DUMPBIN" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6517 test -n "$ac_ct_DUMPBIN" && break
6520 if test "x$ac_ct_DUMPBIN" = x; then
6523 case $cross_compiling:$ac_tool_warned in
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6529 DUMPBIN=$ac_ct_DUMPBIN
6533 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6535 DUMPBIN="$DUMPBIN -symbols"
6543 if test "$DUMPBIN" != ":"; then
6547 test -z "$NM" && NM=nm
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6555 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6556 if ${lt_cv_nm_interface+:} false; then :
6557 $as_echo_n "(cached) " >&6
6559 lt_cv_nm_interface="BSD nm"
6560 echo "int some_variable = 0;" > conftest.$ac_ext
6561 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6562 (eval "$ac_compile" 2>conftest.err)
6563 cat conftest.err >&5
6564 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6565 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6566 cat conftest.err >&5
6567 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6568 cat conftest.out >&5
6569 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6570 lt_cv_nm_interface="MS dumpbin"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6575 $as_echo "$lt_cv_nm_interface" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6578 $as_echo_n "checking whether ln -s works... " >&6; }
6580 if test "$LN_S" = "ln -s"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6585 $as_echo "no, using $LN_S" >&6; }
6588 # find the maximum length of command line arguments
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6590 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6591 if ${lt_cv_sys_max_cmd_len+:} false; then :
6592 $as_echo_n "(cached) " >&6
6599 # On DJGPP, this test can blow up pretty badly due to problems in libc
6600 # (any single argument exceeding 2000 bytes causes a buffer overrun
6601 # during glob expansion). Even if it were fixed, the result of this
6602 # check would be larger than it should be.
6603 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6607 # Under GNU Hurd, this test is not required because there is
6608 # no limit to the length of command line arguments.
6609 # Libtool will interpret -1 as no limit whatsoever
6610 lt_cv_sys_max_cmd_len=-1;
6613 cygwin* | mingw* | cegcc*)
6614 # On Win9x/ME, this test blows up -- it succeeds, but takes
6615 # about 5 minutes as the teststring grows exponentially.
6616 # Worse, since 9x/ME are not pre-emptively multitasking,
6617 # you end up with a "frozen" computer, even though with patience
6618 # the test eventually succeeds (with a max line length of 256k).
6619 # Instead, let's just punt: use the minimum linelength reported by
6620 # all of the supported platforms: 8192 (on NT/2K/XP).
6621 lt_cv_sys_max_cmd_len=8192;
6625 # On MiNT this can take a long time and run out of memory.
6626 lt_cv_sys_max_cmd_len=8192;
6630 # On AmigaOS with pdksh, this test takes hours, literally.
6631 # So we just punt and use a minimum line length of 8192.
6632 lt_cv_sys_max_cmd_len=8192;
6635 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6636 # This has been around since 386BSD, at least. Likely further.
6637 if test -x /sbin/sysctl; then
6638 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6639 elif test -x /usr/sbin/sysctl; then
6640 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6642 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6644 # And add a safety zone
6645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6650 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6651 lt_cv_sys_max_cmd_len=196608
6655 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6656 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6657 # nice to cause kernel panics so lets avoid the loop below.
6658 # First set a reasonable default.
6659 lt_cv_sys_max_cmd_len=16384
6661 if test -x /sbin/sysconfig; then
6662 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6663 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6668 lt_cv_sys_max_cmd_len=102400
6670 sysv5* | sco5v6* | sysv4.2uw2*)
6671 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6672 if test -n "$kargmax"; then
6673 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6675 lt_cv_sys_max_cmd_len=32768
6679 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6680 if test -n "$lt_cv_sys_max_cmd_len"; then
6681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6684 # Make teststring a little bigger before we do anything with it.
6685 # a 1K string should be a reasonable start.
6686 for i in 1 2 3 4 5 6 7 8 ; do
6687 teststring=$teststring$teststring
6689 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6690 # If test is not a shell built-in, we'll probably end up computing a
6691 # maximum length that is only half of the actual maximum length, but
6693 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6694 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6695 test $i != 17 # 1/2 MB should be enough
6698 teststring=$teststring$teststring
6700 # Only check the string length outside the loop.
6701 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6703 # Add a significant safety factor because C++ compilers can tack on
6704 # massive amounts of additional arguments before passing them to the
6705 # linker. It appears as though 1/2 is a usable value.
6706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6713 if test -n $lt_cv_sys_max_cmd_len ; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6715 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6718 $as_echo "none" >&6; }
6720 max_cmd_len=$lt_cv_sys_max_cmd_len
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6732 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6733 # Try some XSI features
6736 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6738 && eval 'test $(( 1 + 1 )) -eq 2 \
6739 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6742 $as_echo "$xsi_shell" >&6; }
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6746 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6748 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6750 && lt_shell_append=yes
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6752 $as_echo "$lt_shell_append" >&6; }
6755 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6765 # test EBCDIC or ASCII
6766 case `echo X|tr X '\101'` in
6767 A) # ASCII based system
6768 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6769 lt_SP2NL='tr \040 \012'
6770 lt_NL2SP='tr \015\012 \040\040'
6772 *) # EBCDIC based system
6773 lt_SP2NL='tr \100 \n'
6774 lt_NL2SP='tr \r\n \100\100'
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6787 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6788 if ${lt_cv_to_host_file_cmd+:} false; then :
6789 $as_echo_n "(cached) " >&6
6794 *-*-mingw* ) # actually msys
6795 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6798 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6800 * ) # otherwise, assume *nix
6801 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6807 *-*-mingw* ) # actually msys
6808 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6811 lt_cv_to_host_file_cmd=func_convert_file_noop
6813 * ) # otherwise, assume *nix
6814 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6818 * ) # unhandled hosts (and "normal" native builds)
6819 lt_cv_to_host_file_cmd=func_convert_file_noop
6825 to_host_file_cmd=$lt_cv_to_host_file_cmd
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6827 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6834 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6835 if ${lt_cv_to_tool_file_cmd+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 #assume ordinary cross tools, or native build.
6839 lt_cv_to_tool_file_cmd=func_convert_file_noop
6843 *-*-mingw* ) # actually msys
6844 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6852 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6854 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6861 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6862 if ${lt_cv_ld_reload_flag+:} false; then :
6863 $as_echo_n "(cached) " >&6
6865 lt_cv_ld_reload_flag='-r'
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6868 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6869 reload_flag=$lt_cv_ld_reload_flag
6870 case $reload_flag in
6872 *) reload_flag=" $reload_flag" ;;
6874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6876 cygwin* | mingw* | pw32* | cegcc*)
6877 if test "$GCC" != yes; then
6882 if test "$GCC" = yes; then
6883 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_OBJDUMP+:} false; then :
6904 $as_echo_n "(cached) " >&6
6906 if test -n "$OBJDUMP"; then
6907 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 OBJDUMP=$ac_cv_prog_OBJDUMP
6927 if test -n "$OBJDUMP"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6929 $as_echo "$OBJDUMP" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6937 if test -z "$ac_cv_prog_OBJDUMP"; then
6938 ac_ct_OBJDUMP=$OBJDUMP
6939 # Extract the first word of "objdump", so it can be a program name with args.
6940 set dummy objdump; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6944 $as_echo_n "(cached) " >&6
6946 if test -n "$ac_ct_OBJDUMP"; then
6947 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6967 if test -n "$ac_ct_OBJDUMP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6969 $as_echo "$ac_ct_OBJDUMP" >&6; }
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6975 if test "x$ac_ct_OBJDUMP" = x; then
6978 case $cross_compiling:$ac_tool_warned in
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6984 OBJDUMP=$ac_ct_OBJDUMP
6987 OBJDUMP="$ac_cv_prog_OBJDUMP"
6990 test -z "$OBJDUMP" && OBJDUMP=objdump
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7001 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7002 if ${lt_cv_deplibs_check_method+:} false; then :
7003 $as_echo_n "(cached) " >&6
7005 lt_cv_file_magic_cmd='$MAGIC_CMD'
7006 lt_cv_file_magic_test_file=
7007 lt_cv_deplibs_check_method='unknown'
7008 # Need to set the preceding variable on all platforms that support
7009 # interlibrary dependencies.
7010 # 'none' -- dependencies not supported.
7011 # `unknown' -- same as none, but documents that we really don't know.
7012 # 'pass_all' -- all dependencies passed with no checks.
7013 # 'test_compile' -- check by making test program.
7014 # 'file_magic [[regex]]' -- check by looking for files in library path
7015 # which responds to the $file_magic_cmd with a given extended regex.
7016 # If you have `file' or equivalent on your system and you're not sure
7017 # whether `pass_all' will *always* work, you probably want this one.
7021 lt_cv_deplibs_check_method=pass_all
7025 lt_cv_deplibs_check_method=pass_all
7029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7030 lt_cv_file_magic_cmd='/usr/bin/file -L'
7031 lt_cv_file_magic_test_file=/shlib/libc.so
7035 # func_win32_libid is a shell function defined in ltmain.sh
7036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7037 lt_cv_file_magic_cmd='func_win32_libid'
7041 # Base MSYS/MinGW do not provide the 'file' command needed by
7042 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7043 # unless we find 'file', for example because we are cross-compiling.
7044 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7045 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7047 lt_cv_file_magic_cmd='func_win32_libid'
7049 # Keep this pattern in sync with the one in func_win32_libid.
7050 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7051 lt_cv_file_magic_cmd='$OBJDUMP -f'
7056 # use the weaker test based on 'objdump'. See mingw*.
7057 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7058 lt_cv_file_magic_cmd='$OBJDUMP -f'
7061 darwin* | rhapsody*)
7062 lt_cv_deplibs_check_method=pass_all
7065 freebsd* | dragonfly*)
7066 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7069 # Not sure whether the presence of OpenBSD here was a mistake.
7070 # Let's accept both of them until this is cleared up.
7071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7072 lt_cv_file_magic_cmd=/usr/bin/file
7073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7077 lt_cv_deplibs_check_method=pass_all
7082 lt_cv_deplibs_check_method=pass_all
7086 lt_cv_deplibs_check_method=pass_all
7089 hpux10.20* | hpux11*)
7090 lt_cv_file_magic_cmd=/usr/bin/file
7093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7094 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7097 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]'
7098 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7102 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7108 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7112 irix5* | irix6* | nonstopux*)
7114 *-32|*"-32 ") libmagic=32-bit;;
7115 *-n32|*"-n32 ") libmagic=N32;;
7116 *-64|*"-64 ") libmagic=64-bit;;
7117 *) libmagic=never-match;;
7119 lt_cv_deplibs_check_method=pass_all
7122 # This must be Linux ELF.
7123 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7124 lt_cv_deplibs_check_method=pass_all
7128 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7137 lt_cv_file_magic_cmd=/usr/bin/file
7138 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7142 lt_cv_deplibs_check_method=pass_all
7146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7153 osf3* | osf4* | osf5*)
7154 lt_cv_deplibs_check_method=pass_all
7158 lt_cv_deplibs_check_method=pass_all
7162 lt_cv_deplibs_check_method=pass_all
7165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7166 lt_cv_deplibs_check_method=pass_all
7170 case $host_vendor in
7172 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]'
7173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7176 lt_cv_deplibs_check_method=pass_all
7179 lt_cv_file_magic_cmd='/bin/file'
7180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7183 lt_cv_file_magic_cmd='/bin/file'
7184 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7185 lt_cv_file_magic_test_file=/lib/libc.so
7188 lt_cv_deplibs_check_method=pass_all
7191 lt_cv_deplibs_check_method=pass_all
7197 lt_cv_deplibs_check_method=pass_all
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7203 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7207 if test "$build" = "$host"; then
7210 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7213 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7219 file_magic_cmd=$lt_cv_file_magic_cmd
7220 deplibs_check_method=$lt_cv_deplibs_check_method
7221 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_DLLTOOL+:} false; then :
7250 $as_echo_n "(cached) " >&6
7252 if test -n "$DLLTOOL"; then
7253 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 DLLTOOL=$ac_cv_prog_DLLTOOL
7273 if test -n "$DLLTOOL"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7275 $as_echo "$DLLTOOL" >&6; }
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7283 if test -z "$ac_cv_prog_DLLTOOL"; then
7284 ac_ct_DLLTOOL=$DLLTOOL
7285 # Extract the first word of "dlltool", so it can be a program name with args.
7286 set dummy dlltool; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7290 $as_echo_n "(cached) " >&6
7292 if test -n "$ac_ct_DLLTOOL"; then
7293 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7313 if test -n "$ac_ct_DLLTOOL"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7315 $as_echo "$ac_ct_DLLTOOL" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7321 if test "x$ac_ct_DLLTOOL" = x; then
7324 case $cross_compiling:$ac_tool_warned in
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7330 DLLTOOL=$ac_ct_DLLTOOL
7333 DLLTOOL="$ac_cv_prog_DLLTOOL"
7336 test -z "$DLLTOOL" && DLLTOOL=dlltool
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7348 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7349 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7350 $as_echo_n "(cached) " >&6
7352 lt_cv_sharedlib_from_linklib_cmd='unknown'
7355 cygwin* | mingw* | pw32* | cegcc*)
7356 # two different shell functions defined in ltmain.sh
7357 # decide which to use based on capabilities of $DLLTOOL
7358 case `$DLLTOOL --help 2>&1` in
7359 *--identify-strict*)
7360 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7363 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7368 # fallback: assume linklib IS sharedlib
7369 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7375 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7376 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7377 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7385 if test -n "$ac_tool_prefix"; then
7388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_AR+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 if test -n "$AR"; then
7396 ac_cv_prog_AR="$AR" # Let the user override the test.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7405 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 if test -n "$AR"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7418 $as_echo "$AR" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7425 test -n "$AR" && break
7428 if test -z "$AR"; then
7432 # Extract the first word of "$ac_prog", so it can be a program name with args.
7433 set dummy $ac_prog; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$ac_ct_AR"; then
7440 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_prog_ac_ct_AR="$ac_prog"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7460 if test -n "$ac_ct_AR"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7462 $as_echo "$ac_ct_AR" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7469 test -n "$ac_ct_AR" && break
7472 if test "x$ac_ct_AR" = x; then
7475 case $cross_compiling:$ac_tool_warned in
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned=yes ;;
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7499 $as_echo_n "checking for archiver @FILE support... " >&6; }
7500 if ${lt_cv_ar_at_file+:} false; then :
7501 $as_echo_n "(cached) " >&6
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7515 if ac_fn_c_try_compile "$LINENO"; then :
7516 echo conftest.$ac_objext > conftest.lst
7517 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7519 (eval $lt_ar_try) 2>&5
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }
7523 if test "$ac_status" -eq 0; then
7524 # Ensure the archiver fails upon bogus file names.
7525 rm -f conftest.$ac_objext libconftest.a
7526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7527 (eval $lt_ar_try) 2>&5
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }
7531 if test "$ac_status" -ne 0; then
7535 rm -f conftest.* libconftest.a
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7542 $as_echo "$lt_cv_ar_at_file" >&6; }
7544 if test "x$lt_cv_ar_at_file" = xno; then
7547 archiver_list_spec=$lt_cv_ar_at_file
7556 if test -n "$ac_tool_prefix"; then
7557 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}strip; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_STRIP+:} false; then :
7562 $as_echo_n "(cached) " >&6
7564 if test -n "$STRIP"; then
7565 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 STRIP=$ac_cv_prog_STRIP
7585 if test -n "$STRIP"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7587 $as_echo "$STRIP" >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7595 if test -z "$ac_cv_prog_STRIP"; then
7597 # Extract the first word of "strip", so it can be a program name with args.
7598 set dummy strip; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7602 $as_echo_n "(cached) " >&6
7604 if test -n "$ac_ct_STRIP"; then
7605 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614 ac_cv_prog_ac_ct_STRIP="strip"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7625 if test -n "$ac_ct_STRIP"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7627 $as_echo "$ac_ct_STRIP" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7633 if test "x$ac_ct_STRIP" = x; then
7636 case $cross_compiling:$ac_tool_warned in
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640 ac_tool_warned=yes ;;
7645 STRIP="$ac_cv_prog_STRIP"
7648 test -z "$STRIP" && STRIP=:
7655 if test -n "$ac_tool_prefix"; then
7656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_RANLIB+:} false; then :
7661 $as_echo_n "(cached) " >&6
7663 if test -n "$RANLIB"; then
7664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 RANLIB=$ac_cv_prog_RANLIB
7684 if test -n "$RANLIB"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7686 $as_echo "$RANLIB" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7694 if test -z "$ac_cv_prog_RANLIB"; then
7695 ac_ct_RANLIB=$RANLIB
7696 # Extract the first word of "ranlib", so it can be a program name with args.
7697 set dummy ranlib; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7701 $as_echo_n "(cached) " >&6
7703 if test -n "$ac_ct_RANLIB"; then
7704 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_ac_ct_RANLIB="ranlib"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7724 if test -n "$ac_ct_RANLIB"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7726 $as_echo "$ac_ct_RANLIB" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7732 if test "x$ac_ct_RANLIB" = x; then
7735 case $cross_compiling:$ac_tool_warned in
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7739 ac_tool_warned=yes ;;
7741 RANLIB=$ac_ct_RANLIB
7744 RANLIB="$ac_cv_prog_RANLIB"
7747 test -z "$RANLIB" && RANLIB=:
7754 # Determine commands to create old-style static archives.
7755 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7756 old_postinstall_cmds='chmod 644 $oldlib'
7757 old_postuninstall_cmds=
7759 if test -n "$RANLIB"; then
7762 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7765 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7768 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7773 lock_old_archive_extraction=yes ;;
7775 lock_old_archive_extraction=no ;;
7816 # If no C compiler was specified, use CC.
7819 # If no C compiler flags were specified, use CFLAGS.
7820 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7822 # Allow CC to be a program name with arguments.
7826 # Check for command to grab the raw symbol name followed by C symbol from nm.
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7828 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7829 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7830 $as_echo_n "(cached) " >&6
7833 # These are sane defaults that work on at least a few old systems.
7834 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7836 # Character class describing NM global symbol codes.
7837 symcode='[BCDEGRST]'
7839 # Regexp to match symbols that can be accessed directly from C.
7840 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7842 # Define system-specific variables.
7847 cygwin* | mingw* | pw32* | cegcc*)
7848 symcode='[ABCDGISTW]'
7851 if test "$host_cpu" = ia64; then
7852 symcode='[ABCDEGRST]'
7856 symcode='[BCDEGRST]'
7859 symcode='[BCDEGQRST]'
7870 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7878 # If we're using GNU nm, then use its standard symbol codes.
7879 case `$NM -V 2>&1` in
7880 *GNU* | *'with BFD'*)
7881 symcode='[ABCDGIRSTW]' ;;
7884 # Transform an extracted symbol line into a proper C declaration.
7885 # Some systems (esp. on ia64) link data and code symbols differently,
7886 # so use this general approach.
7887 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7889 # Transform an extracted symbol line into symbol name and symbol address
7890 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7891 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'"
7893 # Handle CRLF in mingw tool chain
7897 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7901 # Try without a prefix underscore, then with it.
7902 for ac_symprfx in "" "_"; do
7904 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7905 symxfrm="\\1 $ac_symprfx\\2 \\2"
7907 # Write the raw and C identifiers.
7908 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7909 # Fake it for dumpbin and say T for any non-static function
7910 # and D for any global variable.
7911 # Also find C++ and __fastcall symbols from MSVC++,
7912 # which start with @ or ?.
7913 lt_cv_sys_global_symbol_pipe="$AWK '"\
7914 " {last_section=section; section=\$ 3};"\
7915 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7916 " \$ 0!~/External *\|/{next};"\
7917 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7918 " {if(hide[section]) next};"\
7919 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7920 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7921 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7922 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7923 " ' prfx=^$ac_symprfx"
7925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7927 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7929 # Check to see that the pipe works correctly.
7933 cat > conftest.$ac_ext <<_LT_EOF
7938 void nm_test_func(void);
7939 void nm_test_func(void){}
7943 int main(){nm_test_var='a';nm_test_func();return(0);}
7946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7947 (eval $ac_compile) 2>&5
7949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950 test $ac_status = 0; }; then
7951 # Now try to grab the symbols.
7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7954 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; } && test -s "$nlist"; then
7958 # Try sorting and uniquifying the output.
7959 if sort "$nlist" | uniq > "$nlist"T; then
7960 mv -f "$nlist"T "$nlist"
7965 # Make sure that we snagged all the symbols we need.
7966 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7967 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7968 cat <<_LT_EOF > conftest.$ac_ext
7969 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7970 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7971 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7972 relocations are performed -- see ld's documentation on pseudo-relocs. */
7973 # define LT_DLSYM_CONST
7974 #elif defined(__osf__)
7975 /* This system does not cope well with relocations in const data. */
7976 # define LT_DLSYM_CONST
7978 # define LT_DLSYM_CONST const
7986 # Now generate the symbol file.
7987 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7989 cat <<_LT_EOF >> conftest.$ac_ext
7991 /* The mapping between symbol names and symbols. */
7992 LT_DLSYM_CONST struct {
7996 lt__PROGRAM__LTX_preloaded_symbols[] =
7998 { "@PROGRAM@", (void *) 0 },
8000 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8001 cat <<\_LT_EOF >> conftest.$ac_ext
8005 /* This works around a problem in FreeBSD linker */
8006 #ifdef FREEBSD_WORKAROUND
8007 static const void *lt_preloaded_setup() {
8008 return lt__PROGRAM__LTX_preloaded_symbols;
8016 # Now try linking the two files.
8017 mv conftest.$ac_objext conftstm.$ac_objext
8018 lt_globsym_save_LIBS=$LIBS
8019 lt_globsym_save_CFLAGS=$CFLAGS
8020 LIBS="conftstm.$ac_objext"
8021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8023 (eval $ac_link) 2>&5
8025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8026 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8029 LIBS=$lt_globsym_save_LIBS
8030 CFLAGS=$lt_globsym_save_CFLAGS
8032 echo "cannot find nm_test_func in $nlist" >&5
8035 echo "cannot find nm_test_var in $nlist" >&5
8038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8041 echo "$progname: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 rm -rf conftest* conftst*
8046 # Do not use the global_symbol_pipe unless it works.
8047 if test "$pipe_works" = yes; then
8050 lt_cv_sys_global_symbol_pipe=
8056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8057 lt_cv_sys_global_symbol_to_cdecl=
8059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8061 $as_echo "failed" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8064 $as_echo "ok" >&6; }
8067 # Response file support.
8068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8069 nm_file_list_spec='@'
8070 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8071 nm_file_list_spec='@'
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8101 $as_echo_n "checking for sysroot... " >&6; }
8103 # Check whether --with-sysroot was given.
8104 if test "${with_sysroot+set}" = set; then :
8105 withval=$with_sysroot;
8112 case ${with_sysroot} in #(
8114 if test "$GCC" = yes; then
8115 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8119 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8125 $as_echo "${with_sysroot}" >&6; }
8126 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8131 $as_echo "${lt_sysroot:-no}" >&6; }
8137 # Check whether --enable-libtool-lock was given.
8138 if test "${enable_libtool_lock+set}" = set; then :
8139 enableval=$enable_libtool_lock;
8142 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8144 # Some flags need to be propagated to the compiler or linker for good
8148 # Find out which ABI we are using.
8149 echo 'int i;' > conftest.$ac_ext
8150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151 (eval $ac_compile) 2>&5
8153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154 test $ac_status = 0; }; then
8155 case `/usr/bin/file conftest.$ac_objext` in
8167 # Find out which ABI we are using.
8168 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8170 (eval $ac_compile) 2>&5
8172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8173 test $ac_status = 0; }; then
8174 if test "$lt_cv_prog_gnu_ld" = yes; then
8175 case `/usr/bin/file conftest.$ac_objext` in
8177 LD="${LD-ld} -melf32bsmip"
8180 LD="${LD-ld} -melf32bmipn32"
8183 LD="${LD-ld} -melf64bmip"
8187 case `/usr/bin/file conftest.$ac_objext` in
8203 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8204 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8205 # Find out which ABI we are using.
8206 echo 'int i;' > conftest.$ac_ext
8207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8208 (eval $ac_compile) 2>&5
8210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211 test $ac_status = 0; }; then
8212 case `/usr/bin/file conftest.o` in
8215 x86_64-*kfreebsd*-gnu)
8216 LD="${LD-ld} -m elf_i386_fbsd"
8219 LD="${LD-ld} -m elf_i386"
8221 ppc64-*linux*|powerpc64-*linux*)
8222 LD="${LD-ld} -m elf32ppclinux"
8225 LD="${LD-ld} -m elf_s390"
8228 LD="${LD-ld} -m elf32_sparc"
8234 x86_64-*kfreebsd*-gnu)
8235 LD="${LD-ld} -m elf_x86_64_fbsd"
8238 LD="${LD-ld} -m elf_x86_64"
8240 ppc*-*linux*|powerpc*-*linux*)
8241 LD="${LD-ld} -m elf64ppc"
8243 s390*-*linux*|s390*-*tpf*)
8244 LD="${LD-ld} -m elf64_s390"
8247 LD="${LD-ld} -m elf64_sparc"
8257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8258 SAVE_CFLAGS="$CFLAGS"
8259 CFLAGS="$CFLAGS -belf"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8262 if ${lt_cv_cc_needs_belf+:} false; then :
8263 $as_echo_n "(cached) " >&6
8266 ac_cpp='$CPP $CPPFLAGS'
8267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 lt_cv_cc_needs_belf=yes
8285 lt_cv_cc_needs_belf=no
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8290 ac_cpp='$CPP $CPPFLAGS'
8291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8298 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8300 CFLAGS="$SAVE_CFLAGS"
8304 # Find out which ABI we are using.
8305 echo 'int i;' > conftest.$ac_ext
8306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8307 (eval $ac_compile) 2>&5
8309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310 test $ac_status = 0; }; then
8311 case `/usr/bin/file conftest.o` in
8313 case $lt_cv_prog_gnu_ld in
8314 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8316 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8328 need_locks="$enable_libtool_lock"
8330 if test -n "$ac_tool_prefix"; then
8331 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8332 set dummy ${ac_tool_prefix}mt; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8336 $as_echo_n "(cached) " >&6
8338 if test -n "$MANIFEST_TOOL"; then
8339 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8359 if test -n "$MANIFEST_TOOL"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8361 $as_echo "$MANIFEST_TOOL" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8369 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8370 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8371 # Extract the first word of "mt", so it can be a program name with args.
8372 set dummy mt; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8376 $as_echo_n "(cached) " >&6
8378 if test -n "$ac_ct_MANIFEST_TOOL"; then
8379 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8399 if test -n "$ac_ct_MANIFEST_TOOL"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8401 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8407 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8410 case $cross_compiling:$ac_tool_warned in
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8416 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8419 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8422 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8424 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8425 if ${lt_cv_path_mainfest_tool+:} false; then :
8426 $as_echo_n "(cached) " >&6
8428 lt_cv_path_mainfest_tool=no
8429 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8430 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8431 cat conftest.err >&5
8432 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8433 lt_cv_path_mainfest_tool=yes
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8438 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8439 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8449 rhapsody* | darwin*)
8450 if test -n "$ac_tool_prefix"; then
8451 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8452 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8456 $as_echo_n "(cached) " >&6
8458 if test -n "$DSYMUTIL"; then
8459 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8479 if test -n "$DSYMUTIL"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8481 $as_echo "$DSYMUTIL" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8489 if test -z "$ac_cv_prog_DSYMUTIL"; then
8490 ac_ct_DSYMUTIL=$DSYMUTIL
8491 # Extract the first word of "dsymutil", so it can be a program name with args.
8492 set dummy dsymutil; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8496 $as_echo_n "(cached) " >&6
8498 if test -n "$ac_ct_DSYMUTIL"; then
8499 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8508 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8519 if test -n "$ac_ct_DSYMUTIL"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8521 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8527 if test "x$ac_ct_DSYMUTIL" = x; then
8530 case $cross_compiling:$ac_tool_warned in
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534 ac_tool_warned=yes ;;
8536 DSYMUTIL=$ac_ct_DSYMUTIL
8539 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8542 if test -n "$ac_tool_prefix"; then
8543 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8544 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 $as_echo_n "checking for $ac_word... " >&6; }
8547 if ${ac_cv_prog_NMEDIT+:} false; then :
8548 $as_echo_n "(cached) " >&6
8550 if test -n "$NMEDIT"; then
8551 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 NMEDIT=$ac_cv_prog_NMEDIT
8571 if test -n "$NMEDIT"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8573 $as_echo "$NMEDIT" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8581 if test -z "$ac_cv_prog_NMEDIT"; then
8582 ac_ct_NMEDIT=$NMEDIT
8583 # Extract the first word of "nmedit", so it can be a program name with args.
8584 set dummy nmedit; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8588 $as_echo_n "(cached) " >&6
8590 if test -n "$ac_ct_NMEDIT"; then
8591 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8600 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8611 if test -n "$ac_ct_NMEDIT"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8613 $as_echo "$ac_ct_NMEDIT" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8619 if test "x$ac_ct_NMEDIT" = x; then
8622 case $cross_compiling:$ac_tool_warned in
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8626 ac_tool_warned=yes ;;
8628 NMEDIT=$ac_ct_NMEDIT
8631 NMEDIT="$ac_cv_prog_NMEDIT"
8634 if test -n "$ac_tool_prefix"; then
8635 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8636 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if ${ac_cv_prog_LIPO+:} false; then :
8640 $as_echo_n "(cached) " >&6
8642 if test -n "$LIPO"; then
8643 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 LIPO=$ac_cv_prog_LIPO
8663 if test -n "$LIPO"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8665 $as_echo "$LIPO" >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8673 if test -z "$ac_cv_prog_LIPO"; then
8675 # Extract the first word of "lipo", so it can be a program name with args.
8676 set dummy lipo; ac_word=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8680 $as_echo_n "(cached) " >&6
8682 if test -n "$ac_ct_LIPO"; then
8683 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_ac_ct_LIPO="lipo"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8703 if test -n "$ac_ct_LIPO"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8705 $as_echo "$ac_ct_LIPO" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8711 if test "x$ac_ct_LIPO" = x; then
8714 case $cross_compiling:$ac_tool_warned in
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8718 ac_tool_warned=yes ;;
8723 LIPO="$ac_cv_prog_LIPO"
8726 if test -n "$ac_tool_prefix"; then
8727 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8728 set dummy ${ac_tool_prefix}otool; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if ${ac_cv_prog_OTOOL+:} false; then :
8732 $as_echo_n "(cached) " >&6
8734 if test -n "$OTOOL"; then
8735 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 OTOOL=$ac_cv_prog_OTOOL
8755 if test -n "$OTOOL"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8757 $as_echo "$OTOOL" >&6; }
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8765 if test -z "$ac_cv_prog_OTOOL"; then
8767 # Extract the first word of "otool", so it can be a program name with args.
8768 set dummy otool; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8772 $as_echo_n "(cached) " >&6
8774 if test -n "$ac_ct_OTOOL"; then
8775 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 test -z "$as_dir" && as_dir=.
8782 for ac_exec_ext in '' $ac_executable_extensions; do
8783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784 ac_cv_prog_ac_ct_OTOOL="otool"
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8795 if test -n "$ac_ct_OTOOL"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8797 $as_echo "$ac_ct_OTOOL" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8803 if test "x$ac_ct_OTOOL" = x; then
8806 case $cross_compiling:$ac_tool_warned in
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8810 ac_tool_warned=yes ;;
8815 OTOOL="$ac_cv_prog_OTOOL"
8818 if test -n "$ac_tool_prefix"; then
8819 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8820 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_prog_OTOOL64+:} false; then :
8824 $as_echo_n "(cached) " >&6
8826 if test -n "$OTOOL64"; then
8827 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 OTOOL64=$ac_cv_prog_OTOOL64
8847 if test -n "$OTOOL64"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8849 $as_echo "$OTOOL64" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8857 if test -z "$ac_cv_prog_OTOOL64"; then
8858 ac_ct_OTOOL64=$OTOOL64
8859 # Extract the first word of "otool64", so it can be a program name with args.
8860 set dummy otool64; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 if test -n "$ac_ct_OTOOL64"; then
8867 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876 ac_cv_prog_ac_ct_OTOOL64="otool64"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8887 if test -n "$ac_ct_OTOOL64"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8889 $as_echo "$ac_ct_OTOOL64" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8895 if test "x$ac_ct_OTOOL64" = x; then
8898 case $cross_compiling:$ac_tool_warned in
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8902 ac_tool_warned=yes ;;
8904 OTOOL64=$ac_ct_OTOOL64
8907 OTOOL64="$ac_cv_prog_OTOOL64"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8937 $as_echo_n "checking for -single_module linker flag... " >&6; }
8938 if ${lt_cv_apple_cc_single_mod+:} false; then :
8939 $as_echo_n "(cached) " >&6
8941 lt_cv_apple_cc_single_mod=no
8942 if test -z "${LT_MULTI_MODULE}"; then
8943 # By default we will add the -single_module flag. You can override
8944 # by either setting the environment variable LT_MULTI_MODULE
8945 # non-empty at configure time, or by adding -multi_module to the
8947 rm -rf libconftest.dylib*
8948 echo "int foo(void){return 1;}" > conftest.c
8949 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8950 -dynamiclib -Wl,-single_module conftest.c" >&5
8951 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8952 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8954 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8955 lt_cv_apple_cc_single_mod=yes
8957 cat conftest.err >&5
8959 rm -rf libconftest.dylib*
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8964 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8966 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8967 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8968 $as_echo_n "(cached) " >&6
8970 lt_cv_ld_exported_symbols_list=no
8971 save_LDFLAGS=$LDFLAGS
8972 echo "_main" > conftest.sym
8973 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8985 if ac_fn_c_try_link "$LINENO"; then :
8986 lt_cv_ld_exported_symbols_list=yes
8988 lt_cv_ld_exported_symbols_list=no
8990 rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992 LDFLAGS="$save_LDFLAGS"
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8996 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8998 $as_echo_n "checking for -force_load linker flag... " >&6; }
8999 if ${lt_cv_ld_force_load+:} false; then :
9000 $as_echo_n "(cached) " >&6
9002 lt_cv_ld_force_load=no
9003 cat > conftest.c << _LT_EOF
9004 int forced_loaded() { return 2;}
9006 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9007 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9008 echo "$AR cru libconftest.a conftest.o" >&5
9009 $AR cru libconftest.a conftest.o 2>&5
9010 echo "$RANLIB libconftest.a" >&5
9011 $RANLIB libconftest.a 2>&5
9012 cat > conftest.c << _LT_EOF
9013 int main() { return 0;}
9015 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9016 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9018 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9019 lt_cv_ld_force_load=yes
9021 cat conftest.err >&5
9023 rm -f conftest.err libconftest.a conftest conftest.c
9024 rm -rf conftest.dSYM
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9028 $as_echo "$lt_cv_ld_force_load" >&6; }
9030 rhapsody* | darwin1.[012])
9031 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9033 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9034 darwin*) # darwin 5.x on
9035 # if running on 10.5 or later, the deployment target defaults
9036 # to the OS version, if on x86, and 10.4, the deployment
9037 # target defaults to 10.4. Don't you love it?
9038 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9039 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9040 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9042 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9044 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9048 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9049 _lt_dar_single_mod='$single_module'
9051 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9052 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9054 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9056 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9057 _lt_dsymutil='~$DSYMUTIL $lib || :'
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9065 $as_echo_n "checking for ANSI C header files... " >&6; }
9066 if ${ac_cv_header_stdc+:} false; then :
9067 $as_echo_n "(cached) " >&6
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9084 if ac_fn_c_try_compile "$LINENO"; then :
9085 ac_cv_header_stdc=yes
9087 ac_cv_header_stdc=no
9089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 if test $ac_cv_header_stdc = yes; then
9092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9099 $EGREP "memchr" >/dev/null 2>&1; then :
9102 ac_cv_header_stdc=no
9108 if test $ac_cv_header_stdc = yes; then
9109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9116 $EGREP "free" >/dev/null 2>&1; then :
9119 ac_cv_header_stdc=no
9125 if test $ac_cv_header_stdc = yes; then
9126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9127 if test "$cross_compiling" = yes; then :
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9134 #if ((' ' & 0x0FF) == 0x020)
9135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9138 # define ISLOWER(c) \
9139 (('a' <= (c) && (c) <= 'i') \
9140 || ('j' <= (c) && (c) <= 'r') \
9141 || ('s' <= (c) && (c) <= 'z'))
9142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9150 for (i = 0; i < 256; i++)
9151 if (XOR (islower (i), ISLOWER (i))
9152 || toupper (i) != TOUPPER (i))
9157 if ac_fn_c_try_run "$LINENO"; then :
9160 ac_cv_header_stdc=no
9162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9163 conftest.$ac_objext conftest.beam conftest.$ac_ext
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9169 $as_echo "$ac_cv_header_stdc" >&6; }
9170 if test $ac_cv_header_stdc = yes; then
9172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9178 inttypes.h stdint.h unistd.h
9180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9181 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9183 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9184 cat >>confdefs.h <<_ACEOF
9185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9193 for ac_header in dlfcn.h
9195 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9197 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9198 cat >>confdefs.h <<_ACEOF
9199 #define HAVE_DLFCN_H 1
9209 func_stripname_cnf ()
9212 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9213 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9215 } # func_stripname_cnf
9222 # Check whether --enable-shared was given.
9223 if test "${enable_shared+set}" = set; then :
9224 enableval=$enable_shared; p=${PACKAGE-default}
9226 yes) enable_shared=yes ;;
9227 no) enable_shared=no ;;
9230 # Look at the argument we got. We use all the common list separators.
9231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9232 for pkg in $enableval; do
9234 if test "X$pkg" = "X$p"; then
9251 # Check whether --enable-static was given.
9252 if test "${enable_static+set}" = set; then :
9253 enableval=$enable_static; p=${PACKAGE-default}
9255 yes) enable_static=yes ;;
9256 no) enable_static=no ;;
9259 # Look at the argument we got. We use all the common list separators.
9260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9261 for pkg in $enableval; do
9263 if test "X$pkg" = "X$p"; then
9292 # Check whether --with-pic was given.
9293 if test "${with_pic+set}" = set; then :
9294 withval=$with_pic; pic_mode="$withval"
9300 test -z "$pic_mode" && pic_mode=default
9308 # Check whether --enable-fast-install was given.
9309 if test "${enable_fast_install+set}" = set; then :
9310 enableval=$enable_fast_install; p=${PACKAGE-default}
9312 yes) enable_fast_install=yes ;;
9313 no) enable_fast_install=no ;;
9315 enable_fast_install=no
9316 # Look at the argument we got. We use all the common list separators.
9317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9318 for pkg in $enableval; do
9320 if test "X$pkg" = "X$p"; then
9321 enable_fast_install=yes
9328 enable_fast_install=yes
9341 # This can be used to rebuild libtool when needed
9342 LIBTOOL_DEPS="$ltmain"
9344 # Always use our own libtool.
9345 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9372 test -z "$LN_S" && LN_S="ln -s"
9387 if test -n "${ZSH_VERSION+set}" ; then
9388 setopt NO_GLOB_SUBST
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9392 $as_echo_n "checking for objdir... " >&6; }
9393 if ${lt_cv_objdir+:} false; then :
9394 $as_echo_n "(cached) " >&6
9396 rm -f .libs 2>/dev/null
9397 mkdir .libs 2>/dev/null
9398 if test -d .libs; then
9401 # MS-DOS does not allow filenames that begin with a dot.
9404 rmdir .libs 2>/dev/null
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9407 $as_echo "$lt_cv_objdir" >&6; }
9408 objdir=$lt_cv_objdir
9414 cat >>confdefs.h <<_ACEOF
9415 #define LT_OBJDIR "$lt_cv_objdir/"
9423 # AIX sometimes has problems with the GCC collect2 program. For some
9424 # reason, if we set the COLLECT_NAMES environment variable, the problems
9425 # vanish in a puff of smoke.
9426 if test "X${COLLECT_NAMES+set}" != Xset; then
9428 export COLLECT_NAMES
9435 can_build_shared=yes
9437 # All known linkers require a `.a' archive for static linking (except MSVC,
9438 # which needs '.lib').
9441 with_gnu_ld="$lt_cv_prog_gnu_ld"
9444 old_CFLAGS="$CFLAGS"
9446 # Set sane defaults for various variables
9447 test -z "$CC" && CC=cc
9448 test -z "$LTCC" && LTCC=$CC
9449 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9450 test -z "$LD" && LD=ld
9451 test -z "$ac_objext" && ac_objext=o
9453 for cc_temp in $compiler""; do
9455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9461 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9464 # Only perform the check for file, if the check method requires it
9465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9466 case $deplibs_check_method in
9468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9470 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9471 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9472 $as_echo_n "(cached) " >&6
9476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9479 lt_save_MAGIC_CMD="$MAGIC_CMD"
9480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9482 for ac_dir in $ac_dummy; do
9484 test -z "$ac_dir" && ac_dir=.
9485 if test -f $ac_dir/${ac_tool_prefix}file; then
9486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9487 if test -n "$file_magic_test_file"; then
9488 case $deplibs_check_method in
9490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9493 $EGREP "$file_magic_regex" > /dev/null; then
9498 *** Warning: the command libtool uses to detect shared libraries,
9499 *** $file_magic_cmd, produces output that libtool cannot recognize.
9500 *** The result is that libtool may fail to recognize shared libraries
9501 *** as such. This will affect the creation of libtool libraries that
9502 *** depend on shared libraries, but programs linked with such libtool
9503 *** libraries will work regardless of this problem. Nevertheless, you
9504 *** may want to report the problem to your system manager and/or to
9505 *** bug-libtool@gnu.org
9515 MAGIC_CMD="$lt_save_MAGIC_CMD"
9520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9521 if test -n "$MAGIC_CMD"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9523 $as_echo "$MAGIC_CMD" >&6; }
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9533 if test -z "$lt_cv_path_MAGIC_CMD"; then
9534 if test -n "$ac_tool_prefix"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9536 $as_echo_n "checking for file... " >&6; }
9537 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9538 $as_echo_n "(cached) " >&6
9542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9545 lt_save_MAGIC_CMD="$MAGIC_CMD"
9546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9548 for ac_dir in $ac_dummy; do
9550 test -z "$ac_dir" && ac_dir=.
9551 if test -f $ac_dir/file; then
9552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9553 if test -n "$file_magic_test_file"; then
9554 case $deplibs_check_method in
9556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9559 $EGREP "$file_magic_regex" > /dev/null; then
9564 *** Warning: the command libtool uses to detect shared libraries,
9565 *** $file_magic_cmd, produces output that libtool cannot recognize.
9566 *** The result is that libtool may fail to recognize shared libraries
9567 *** as such. This will affect the creation of libtool libraries that
9568 *** depend on shared libraries, but programs linked with such libtool
9569 *** libraries will work regardless of this problem. Nevertheless, you
9570 *** may want to report the problem to your system manager and/or to
9571 *** bug-libtool@gnu.org
9581 MAGIC_CMD="$lt_save_MAGIC_CMD"
9586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9587 if test -n "$MAGIC_CMD"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9589 $as_echo "$MAGIC_CMD" >&6; }
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9605 # Use C for the default configuration in the libtool script
9609 ac_cpp='$CPP $CPPFLAGS'
9610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9615 # Source file extension for C test sources.
9618 # Object file extension for compiled C test sources.
9622 # Code to be used in simple compile tests
9623 lt_simple_compile_test_code="int some_variable = 0;"
9625 # Code to be used in simple link tests
9626 lt_simple_link_test_code='int main(){return(0);}'
9634 # If no C compiler was specified, use CC.
9637 # If no C compiler flags were specified, use CFLAGS.
9638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9640 # Allow CC to be a program name with arguments.
9643 # Save the default compiler, since it gets overwritten when the other
9644 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9645 compiler_DEFAULT=$CC
9647 # save warnings/boilerplate of simple test code
9648 ac_outfile=conftest.$ac_objext
9649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9651 _lt_compiler_boilerplate=`cat conftest.err`
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9657 _lt_linker_boilerplate=`cat conftest.err`
9662 ## There is no encapsulation within the following macros, do not change
9663 ## the running order or otherwise move them around unless you know exactly
9664 ## what you are doing...
9665 if test -n "$compiler"; then
9667 lt_prog_compiler_no_builtin_flag=
9669 if test "$GCC" = yes; then
9670 case $cc_basename in
9672 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9674 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9678 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9679 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9680 $as_echo_n "(cached) " >&6
9682 lt_cv_prog_compiler_rtti_exceptions=no
9683 ac_outfile=conftest.$ac_objext
9684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9685 lt_compiler_flag="-fno-rtti -fno-exceptions"
9686 # Insert the option either (1) after the last *FLAGS variable, or
9687 # (2) before a word containing "conftest.", or (3) at the end.
9688 # Note that $ac_compile itself does not contain backslashes and begins
9689 # with a dollar sign (not a hyphen), so the echo should work correctly.
9690 # The option is referenced via a variable to avoid confusing sed.
9691 lt_compile=`echo "$ac_compile" | $SED \
9692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9694 -e 's:$: $lt_compiler_flag:'`
9695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9696 (eval "$lt_compile" 2>conftest.err)
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 if (exit $ac_status) && test -s "$ac_outfile"; then
9701 # The compiler can only warn and ignore the option if not recognized
9702 # So say no if there are warnings other than the usual output.
9703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9706 lt_cv_prog_compiler_rtti_exceptions=yes
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9713 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9715 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9716 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9728 lt_prog_compiler_wl=
9729 lt_prog_compiler_pic=
9730 lt_prog_compiler_static=
9733 if test "$GCC" = yes; then
9734 lt_prog_compiler_wl='-Wl,'
9735 lt_prog_compiler_static='-static'
9739 # All AIX code is PIC.
9740 if test "$host_cpu" = ia64; then
9741 # AIX 5 now supports IA64 processor
9742 lt_prog_compiler_static='-Bstatic'
9749 # see comment about AmigaOS4 .so support
9750 lt_prog_compiler_pic='-fPIC'
9753 # FIXME: we need at least 68020 code to build shared libraries, but
9754 # adding the `-m68020' flag to GCC prevents building anything better,
9756 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9761 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9762 # PIC is the default for these OSes.
9765 mingw* | cygwin* | pw32* | os2* | cegcc*)
9766 # This hack is so that the source file can tell whether it is being
9767 # built for inclusion in a dll (and should export symbols for example).
9768 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9769 # (--disable-auto-import) libraries
9770 lt_prog_compiler_pic='-DDLL_EXPORT'
9773 darwin* | rhapsody*)
9774 # PIC is the default on this platform
9775 # Common symbols not allowed in MH_DYLIB files
9776 lt_prog_compiler_pic='-fno-common'
9780 # PIC is the default for Haiku.
9781 # The "-static" flag exists, but is broken.
9782 lt_prog_compiler_static=
9786 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9787 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9788 # sets the default TLS model and affects inlining.
9794 lt_prog_compiler_pic='-fPIC'
9800 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9801 # Instead, we relocate shared libraries at runtime.
9805 # Just because we use GCC doesn't mean we suddenly get shared libraries
9806 # on systems that don't support them.
9807 lt_prog_compiler_can_build_shared=no
9812 # QNX uses GNU C++, but need to define -shared option too, otherwise
9814 lt_prog_compiler_pic='-fPIC -shared'
9818 if test -d /usr/nec; then
9819 lt_prog_compiler_pic=-Kconform_pic
9824 lt_prog_compiler_pic='-fPIC'
9828 case $cc_basename in
9829 nvcc*) # Cuda Compiler Driver 2.2
9830 lt_prog_compiler_wl='-Xlinker '
9831 lt_prog_compiler_pic='-Xcompiler -fPIC'
9835 # PORTME Check for flag to pass linker flags through the system compiler.
9838 lt_prog_compiler_wl='-Wl,'
9839 if test "$host_cpu" = ia64; then
9840 # AIX 5 now supports IA64 processor
9841 lt_prog_compiler_static='-Bstatic'
9843 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9847 mingw* | cygwin* | pw32* | os2* | cegcc*)
9848 # This hack is so that the source file can tell whether it is being
9849 # built for inclusion in a dll (and should export symbols for example).
9850 lt_prog_compiler_pic='-DDLL_EXPORT'
9853 hpux9* | hpux10* | hpux11*)
9854 lt_prog_compiler_wl='-Wl,'
9855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9862 lt_prog_compiler_pic='+Z'
9865 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9866 lt_prog_compiler_static='${wl}-a ${wl}archive'
9869 irix5* | irix6* | nonstopux*)
9870 lt_prog_compiler_wl='-Wl,'
9871 # PIC (with -KPIC) is the default.
9872 lt_prog_compiler_static='-non_shared'
9875 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9876 case $cc_basename in
9877 # old Intel for x86_64 which still supported -KPIC.
9879 lt_prog_compiler_wl='-Wl,'
9880 lt_prog_compiler_pic='-KPIC'
9881 lt_prog_compiler_static='-static'
9883 # icc used to be incompatible with GCC.
9884 # ICC 10 doesn't accept -KPIC any more.
9886 lt_prog_compiler_wl='-Wl,'
9887 lt_prog_compiler_pic='-fPIC'
9888 lt_prog_compiler_static='-static'
9890 # Lahey Fortran 8.1.
9892 lt_prog_compiler_wl='-Wl,'
9893 lt_prog_compiler_pic='--shared'
9894 lt_prog_compiler_static='--static'
9897 # NAG Fortran compiler
9898 lt_prog_compiler_wl='-Wl,-Wl,,'
9899 lt_prog_compiler_pic='-PIC'
9900 lt_prog_compiler_static='-Bstatic'
9902 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9903 # Portland Group compilers (*not* the Pentium gcc compiler,
9904 # which looks to be a dead project)
9905 lt_prog_compiler_wl='-Wl,'
9906 lt_prog_compiler_pic='-fpic'
9907 lt_prog_compiler_static='-Bstatic'
9910 lt_prog_compiler_wl='-Wl,'
9911 # All Alpha code is PIC.
9912 lt_prog_compiler_static='-non_shared'
9914 xl* | bgxl* | bgf* | mpixl*)
9915 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-qpic'
9918 lt_prog_compiler_static='-qstaticlink'
9921 case `$CC -V 2>&1 | sed 5q` in
9922 *Sun\ F* | *Sun*Fortran*)
9923 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9924 lt_prog_compiler_pic='-KPIC'
9925 lt_prog_compiler_static='-Bstatic'
9926 lt_prog_compiler_wl=''
9930 lt_prog_compiler_pic='-KPIC'
9931 lt_prog_compiler_static='-Bstatic'
9932 lt_prog_compiler_wl='-Wl,'
9940 lt_prog_compiler_pic='-KPIC'
9941 lt_prog_compiler_static='-Bstatic'
9945 # QNX uses GNU C++, but need to define -shared option too, otherwise
9947 lt_prog_compiler_pic='-fPIC -shared'
9950 osf3* | osf4* | osf5*)
9951 lt_prog_compiler_wl='-Wl,'
9952 # All OSF/1 code is PIC.
9953 lt_prog_compiler_static='-non_shared'
9957 lt_prog_compiler_static='-non_shared'
9961 lt_prog_compiler_pic='-KPIC'
9962 lt_prog_compiler_static='-Bstatic'
9963 case $cc_basename in
9964 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9965 lt_prog_compiler_wl='-Qoption ld ';;
9967 lt_prog_compiler_wl='-Wl,';;
9972 lt_prog_compiler_wl='-Qoption ld '
9973 lt_prog_compiler_pic='-PIC'
9974 lt_prog_compiler_static='-Bstatic'
9977 sysv4 | sysv4.2uw2* | sysv4.3*)
9978 lt_prog_compiler_wl='-Wl,'
9979 lt_prog_compiler_pic='-KPIC'
9980 lt_prog_compiler_static='-Bstatic'
9984 if test -d /usr/nec ;then
9985 lt_prog_compiler_pic='-Kconform_pic'
9986 lt_prog_compiler_static='-Bstatic'
9990 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9991 lt_prog_compiler_wl='-Wl,'
9992 lt_prog_compiler_pic='-KPIC'
9993 lt_prog_compiler_static='-Bstatic'
9997 lt_prog_compiler_wl='-Wl,'
9998 lt_prog_compiler_can_build_shared=no
10002 lt_prog_compiler_pic='-pic'
10003 lt_prog_compiler_static='-Bstatic'
10007 lt_prog_compiler_can_build_shared=no
10013 # For platforms which do not support PIC, -DPIC is meaningless:
10015 lt_prog_compiler_pic=
10018 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10023 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10024 if ${lt_cv_prog_compiler_pic+:} false; then :
10025 $as_echo_n "(cached) " >&6
10027 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10030 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10031 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10034 # Check to make sure the PIC flag actually works.
10036 if test -n "$lt_prog_compiler_pic"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10038 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10039 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10040 $as_echo_n "(cached) " >&6
10042 lt_cv_prog_compiler_pic_works=no
10043 ac_outfile=conftest.$ac_objext
10044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10045 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10046 # Insert the option either (1) after the last *FLAGS variable, or
10047 # (2) before a word containing "conftest.", or (3) at the end.
10048 # Note that $ac_compile itself does not contain backslashes and begins
10049 # with a dollar sign (not a hyphen), so the echo should work correctly.
10050 # The option is referenced via a variable to avoid confusing sed.
10051 lt_compile=`echo "$ac_compile" | $SED \
10052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10054 -e 's:$: $lt_compiler_flag:'`
10055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10056 (eval "$lt_compile" 2>conftest.err)
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 if (exit $ac_status) && test -s "$ac_outfile"; then
10061 # The compiler can only warn and ignore the option if not recognized
10062 # So say no if there are warnings other than the usual output.
10063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10066 lt_cv_prog_compiler_pic_works=yes
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10073 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10075 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10076 case $lt_prog_compiler_pic in
10078 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10081 lt_prog_compiler_pic=
10082 lt_prog_compiler_can_build_shared=no
10098 # Check to make sure the static flag actually works.
10100 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10102 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10103 if ${lt_cv_prog_compiler_static_works+:} false; then :
10104 $as_echo_n "(cached) " >&6
10106 lt_cv_prog_compiler_static_works=no
10107 save_LDFLAGS="$LDFLAGS"
10108 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10109 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10110 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10111 # The linker can only warn and ignore the option if not recognized
10112 # So say no if there are warnings
10113 if test -s conftest.err; then
10114 # Append any errors to the config.log.
10115 cat conftest.err 1>&5
10116 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10118 if diff conftest.exp conftest.er2 >/dev/null; then
10119 lt_cv_prog_compiler_static_works=yes
10122 lt_cv_prog_compiler_static_works=yes
10126 LDFLAGS="$save_LDFLAGS"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10130 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10132 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10135 lt_prog_compiler_static=
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10145 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10146 if ${lt_cv_prog_compiler_c_o+:} false; then :
10147 $as_echo_n "(cached) " >&6
10149 lt_cv_prog_compiler_c_o=no
10150 $RM -r conftest 2>/dev/null
10154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10156 lt_compiler_flag="-o out/conftest2.$ac_objext"
10157 # Insert the option either (1) after the last *FLAGS variable, or
10158 # (2) before a word containing "conftest.", or (3) at the end.
10159 # Note that $ac_compile itself does not contain backslashes and begins
10160 # with a dollar sign (not a hyphen), so the echo should work correctly.
10161 lt_compile=`echo "$ac_compile" | $SED \
10162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10164 -e 's:$: $lt_compiler_flag:'`
10165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10166 (eval "$lt_compile" 2>out/conftest.err)
10168 cat out/conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10172 # The compiler can only warn and ignore the option if not recognized
10173 # So say no if there are warnings
10174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10177 lt_cv_prog_compiler_c_o=yes
10182 # SGI C++ compiler will create directory out/ii_files/ for
10183 # template instantiation
10184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10185 $RM out/* && rmdir out
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10192 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10200 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10201 if ${lt_cv_prog_compiler_c_o+:} false; then :
10202 $as_echo_n "(cached) " >&6
10204 lt_cv_prog_compiler_c_o=no
10205 $RM -r conftest 2>/dev/null
10209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10211 lt_compiler_flag="-o out/conftest2.$ac_objext"
10212 # Insert the option either (1) after the last *FLAGS variable, or
10213 # (2) before a word containing "conftest.", or (3) at the end.
10214 # Note that $ac_compile itself does not contain backslashes and begins
10215 # with a dollar sign (not a hyphen), so the echo should work correctly.
10216 lt_compile=`echo "$ac_compile" | $SED \
10217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10219 -e 's:$: $lt_compiler_flag:'`
10220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10221 (eval "$lt_compile" 2>out/conftest.err)
10223 cat out/conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10227 # The compiler can only warn and ignore the option if not recognized
10228 # So say no if there are warnings
10229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10232 lt_cv_prog_compiler_c_o=yes
10237 # SGI C++ compiler will create directory out/ii_files/ for
10238 # template instantiation
10239 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10240 $RM out/* && rmdir out
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10247 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10252 hard_links="nottested"
10253 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10254 # do not overwrite the value of need_locks provided by the user
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10256 $as_echo_n "checking if we can lock with hard links... " >&6; }
10259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10261 ln conftest.a conftest.b 2>&5 || hard_links=no
10262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10264 $as_echo "$hard_links" >&6; }
10265 if test "$hard_links" = no; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10267 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10280 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10283 allow_undefined_flag=
10284 always_export_symbols=no
10286 archive_expsym_cmds=
10287 compiler_needs_object=no
10288 enable_shared_with_static_runtimes=no
10289 export_dynamic_flag_spec=
10290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10291 hardcode_automatic=no
10293 hardcode_direct_absolute=no
10294 hardcode_libdir_flag_spec=
10295 hardcode_libdir_flag_spec_ld=
10296 hardcode_libdir_separator=
10297 hardcode_minus_L=no
10298 hardcode_shlibpath_var=unsupported
10300 link_all_deplibs=unknown
10302 module_expsym_cmds=
10303 old_archive_from_new_cmds=
10304 old_archive_from_expsyms_cmds=
10305 thread_safe_flag_spec=
10306 whole_archive_flag_spec=
10307 # include_expsyms should be a list of space-separated symbols to be *always*
10308 # included in the symbol list
10310 # exclude_expsyms can be an extended regexp of symbols to exclude
10311 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10312 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10313 # as well as any symbol that contains `d'.
10314 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10315 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10316 # platforms (ab)use it in PIC code, but their linkers get confused if
10317 # the symbol is explicitly referenced. Since portable code cannot
10318 # rely on this symbol name, it's probably fine to never include it in
10319 # preloaded symbol tables.
10320 # Exclude shared library initialization/finalization symbols.
10321 extract_expsyms_cmds=
10324 cygwin* | mingw* | pw32* | cegcc*)
10325 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10326 # When not using gcc, we currently assume that we are using
10327 # Microsoft Visual C++.
10328 if test "$GCC" != yes; then
10333 # we just hope/assume this is gcc and not c89 (= MSVC++)
10343 # On some targets, GNU ld is compatible enough with the native linker
10344 # that we're better off using the native interface for both.
10345 lt_use_gnu_ld_interface=no
10346 if test "$with_gnu_ld" = yes; then
10349 # The AIX port of GNU ld has always aspired to compatibility
10350 # with the native linker. However, as the warning in the GNU ld
10351 # block says, versions before 2.19.5* couldn't really create working
10352 # shared libraries, regardless of the interface used.
10353 case `$LD -v 2>&1` in
10354 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10355 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10356 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10358 lt_use_gnu_ld_interface=yes
10363 lt_use_gnu_ld_interface=yes
10368 if test "$lt_use_gnu_ld_interface" = yes; then
10369 # If archive_cmds runs LD, not CC, wlarc should be empty
10372 # Set some defaults for GNU ld with shared library support. These
10373 # are reset later if shared libraries are not supported. Putting them
10374 # here allows them to be overridden if necessary.
10375 runpath_var=LD_RUN_PATH
10376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377 export_dynamic_flag_spec='${wl}--export-dynamic'
10378 # ancient GNU ld didn't support --whole-archive et. al.
10379 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10380 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10382 whole_archive_flag_spec=
10384 supports_anon_versioning=no
10385 case `$LD -v 2>&1` in
10386 *GNU\ gold*) supports_anon_versioning=yes ;;
10387 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10388 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10389 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10390 *\ 2.11.*) ;; # other 2.11 versions
10391 *) supports_anon_versioning=yes ;;
10394 # See if GNU ld supports shared libraries.
10397 # On AIX/PPC, the GNU linker is very broken
10398 if test "$host_cpu" != ia64; then
10402 *** Warning: the GNU linker, at least up to release 2.19, is reported
10403 *** to be unable to reliably create shared libraries on AIX.
10404 *** Therefore, libtool is disabling shared libraries support. If you
10405 *** really care for shared libraries, you may want to install binutils
10406 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10407 *** You will then need to restart the configuration process.
10416 # see comment about AmigaOS4 .so support
10417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10418 archive_expsym_cmds=''
10421 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)'
10422 hardcode_libdir_flag_spec='-L$libdir'
10423 hardcode_minus_L=yes
10429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10430 allow_undefined_flag=unsupported
10431 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10432 # support --undefined. This deserves some investigation. FIXME
10433 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10439 cygwin* | mingw* | pw32* | cegcc*)
10440 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10441 # as there is no search path for DLLs.
10442 hardcode_libdir_flag_spec='-L$libdir'
10443 export_dynamic_flag_spec='${wl}--export-all-symbols'
10444 allow_undefined_flag=unsupported
10445 always_export_symbols=no
10446 enable_shared_with_static_runtimes=yes
10447 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'
10448 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10450 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10452 # If the export-symbols file already is a .def file (1st line
10453 # is EXPORTS), use it as is; otherwise, prepend...
10454 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10455 cp $export_symbols $output_objdir/$soname.def;
10457 echo EXPORTS > $output_objdir/$soname.def;
10458 cat $export_symbols >> $output_objdir/$soname.def;
10460 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468 link_all_deplibs=yes
10473 hardcode_shlibpath_var=no
10474 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10475 export_dynamic_flag_spec='${wl}-E'
10476 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10477 # Instead, shared libraries are loaded at an image base (0x10000000 by
10478 # default) and relocated if they conflict, which is a slow very memory
10479 # consuming and fragmenting process. To avoid this, we pick a random,
10480 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10481 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10483 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'
10486 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10488 if test "$host_os" = linux-dietlibc; then
10489 case $cc_basename in
10490 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10493 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10494 && test "$tmp_diet" = no
10496 tmp_addflag=' $pic_flag'
10497 tmp_sharedflag='-shared'
10498 case $cc_basename,$host_cpu in
10499 pgcc*) # Portland Group C compiler
10500 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'
10501 tmp_addflag=' $pic_flag'
10503 pgf77* | pgf90* | pgf95* | pgfortran*)
10504 # Portland Group f77 and f90 compilers
10505 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'
10506 tmp_addflag=' $pic_flag -Mnomain' ;;
10507 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10508 tmp_addflag=' -i_dynamic' ;;
10509 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10510 tmp_addflag=' -i_dynamic -nofor_main' ;;
10511 ifc* | ifort*) # Intel Fortran compiler
10512 tmp_addflag=' -nofor_main' ;;
10513 lf95*) # Lahey Fortran 8.1
10514 whole_archive_flag_spec=
10515 tmp_sharedflag='--shared' ;;
10516 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10517 tmp_sharedflag='-qmkshrobj'
10519 nvcc*) # Cuda Compiler Driver 2.2
10520 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'
10521 compiler_needs_object=yes
10524 case `$CC -V 2>&1 | sed 5q` in
10525 *Sun\ C*) # Sun C 5.9
10526 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'
10527 compiler_needs_object=yes
10528 tmp_sharedflag='-G' ;;
10529 *Sun\ F*) # Sun Fortran 8.3
10530 tmp_sharedflag='-G' ;;
10532 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10534 if test "x$supports_anon_versioning" = xyes; then
10535 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10537 echo "local: *; };" >> $output_objdir/$libname.ver~
10538 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10541 case $cc_basename in
10542 xlf* | bgf* | bgxlf* | mpixlf*)
10543 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10544 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10545 hardcode_libdir_flag_spec=
10546 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10547 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10548 if test "x$supports_anon_versioning" = xyes; then
10549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10551 echo "local: *; };" >> $output_objdir/$libname.ver~
10552 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10563 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10567 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10572 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10576 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10577 *** create shared libraries on Solaris systems. Therefore, libtool
10578 *** is disabling shared libraries support. We urge you to upgrade GNU
10579 *** binutils to release 2.9.1 or newer. Another option is to modify
10580 *** your PATH or compiler configuration so that the native linker is
10581 *** used, and then restart.
10584 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10585 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10586 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10593 case `$LD -v 2>&1` in
10594 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10598 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10599 *** reliably create shared libraries on SCO systems. Therefore, libtool
10600 *** is disabling shared libraries support. We urge you to upgrade GNU
10601 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10602 *** your PATH or compiler configuration so that the native linker is
10603 *** used, and then restart.
10608 # For security reasons, it is highly recommended that you always
10609 # use absolute paths for naming shared libraries, and exclude the
10610 # DT_RUNPATH tag from executables and libraries. But doing so
10611 # requires that you compile everything twice, which is a pain.
10612 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10624 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10626 hardcode_direct=yes
10627 hardcode_shlibpath_var=no
10631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10633 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10640 if test "$ld_shlibs" = no; then
10642 hardcode_libdir_flag_spec=
10643 export_dynamic_flag_spec=
10644 whole_archive_flag_spec=
10647 # PORTME fill in a description of your system's linker (not GNU ld)
10650 allow_undefined_flag=unsupported
10651 always_export_symbols=yes
10652 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'
10653 # Note: this linker hardcodes the directories in LIBPATH if there
10654 # are no directories specified by -L.
10655 hardcode_minus_L=yes
10656 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10657 # Neither direct hardcoding nor static linking is supported with a
10659 hardcode_direct=unsupported
10664 if test "$host_cpu" = ia64; then
10665 # On IA64, the linker does run time linking by default, so we don't
10666 # have to do anything special.
10667 aix_use_runtimelinking=no
10668 exp_sym_flag='-Bexport'
10671 # If we're using GNU nm, then we don't want the "-C" option.
10672 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10673 # Also, AIX nm treats weak defined symbols like other global
10674 # defined symbols, whereas GNU nm marks them as "W".
10675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10676 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'
10678 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'
10680 aix_use_runtimelinking=no
10682 # Test if we are trying to use run time linking or normal
10683 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10684 # need to do runtime linking.
10685 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10686 for ld_flag in $LDFLAGS; do
10687 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10688 aix_use_runtimelinking=yes
10695 exp_sym_flag='-bexport'
10696 no_entry_flag='-bnoentry'
10699 # When large executables or shared objects are built, AIX ld can
10700 # have problems creating the table of contents. If linking a library
10701 # or program results in "error TOC overflow" add -mminimal-toc to
10702 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10703 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10706 hardcode_direct=yes
10707 hardcode_direct_absolute=yes
10708 hardcode_libdir_separator=':'
10709 link_all_deplibs=yes
10710 file_list_spec='${wl}-f,'
10712 if test "$GCC" = yes; then
10713 case $host_os in aix4.[012]|aix4.[012].*)
10714 # We only want to do this on AIX 4.2 and lower, the check
10715 # below for broken collect2 doesn't work under 4.3+
10716 collect2name=`${CC} -print-prog-name=collect2`
10717 if test -f "$collect2name" &&
10718 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10720 # We have reworked collect2
10723 # We have old collect2
10724 hardcode_direct=unsupported
10725 # It fails to find uninstalled libraries when the uninstalled
10726 # path is not listed in the libpath. Setting hardcode_minus_L
10727 # to unsupported forces relinking
10728 hardcode_minus_L=yes
10729 hardcode_libdir_flag_spec='-L$libdir'
10730 hardcode_libdir_separator=
10734 shared_flag='-shared'
10735 if test "$aix_use_runtimelinking" = yes; then
10736 shared_flag="$shared_flag "'${wl}-G'
10740 if test "$host_cpu" = ia64; then
10741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10742 # chokes on -Wl,-G. The following line is correct:
10745 if test "$aix_use_runtimelinking" = yes; then
10746 shared_flag='${wl}-G'
10748 shared_flag='${wl}-bM:SRE'
10753 export_dynamic_flag_spec='${wl}-bexpall'
10754 # It seems that -bexpall does not export symbols beginning with
10755 # underscore (_), so it is better to generate a list of symbols to export.
10756 always_export_symbols=yes
10757 if test "$aix_use_runtimelinking" = yes; then
10758 # Warning - without using the other runtime loading flags (-brtl),
10759 # -berok will link without error, but may produce a broken library.
10760 allow_undefined_flag='-berok'
10761 # Determine the default libpath from the value encoded in an
10762 # empty executable.
10763 if test "${lt_cv_aix_libpath+set}" = set; then
10764 aix_libpath=$lt_cv_aix_libpath
10766 if ${lt_cv_aix_libpath_+:} false; then :
10767 $as_echo_n "(cached) " >&6
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10780 if ac_fn_c_try_link "$LINENO"; then :
10782 lt_aix_libpath_sed='
10783 /Import File Strings/,/^$/ {
10785 s/^0 *\([^ ]*\) *$/\1/
10789 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10790 # Check for a 64-bit object if we didn't find anything.
10791 if test -z "$lt_cv_aix_libpath_"; then
10792 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 if test -z "$lt_cv_aix_libpath_"; then
10798 lt_cv_aix_libpath_="/usr/lib:/lib"
10803 aix_libpath=$lt_cv_aix_libpath_
10806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10807 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"
10809 if test "$host_cpu" = ia64; then
10810 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10811 allow_undefined_flag="-z nodefs"
10812 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"
10814 # Determine the default libpath from the value encoded in an
10815 # empty executable.
10816 if test "${lt_cv_aix_libpath+set}" = set; then
10817 aix_libpath=$lt_cv_aix_libpath
10819 if ${lt_cv_aix_libpath_+:} false; then :
10820 $as_echo_n "(cached) " >&6
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10833 if ac_fn_c_try_link "$LINENO"; then :
10835 lt_aix_libpath_sed='
10836 /Import File Strings/,/^$/ {
10838 s/^0 *\([^ ]*\) *$/\1/
10842 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10843 # Check for a 64-bit object if we didn't find anything.
10844 if test -z "$lt_cv_aix_libpath_"; then
10845 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 if test -z "$lt_cv_aix_libpath_"; then
10851 lt_cv_aix_libpath_="/usr/lib:/lib"
10856 aix_libpath=$lt_cv_aix_libpath_
10859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10860 # Warning - without using the other run time loading flags,
10861 # -berok will link without error, but may produce a broken library.
10862 no_undefined_flag=' ${wl}-bernotok'
10863 allow_undefined_flag=' ${wl}-berok'
10864 if test "$with_gnu_ld" = yes; then
10865 # We only use this code for GNU lds that support --whole-archive.
10866 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10868 # Exported symbols can be pulled into shared objects from archives
10869 whole_archive_flag_spec='$convenience'
10871 archive_cmds_need_lc=yes
10872 # This is similar to how AIX traditionally builds its shared libraries.
10873 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'
10881 # see comment about AmigaOS4 .so support
10882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10883 archive_expsym_cmds=''
10886 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)'
10887 hardcode_libdir_flag_spec='-L$libdir'
10888 hardcode_minus_L=yes
10894 export_dynamic_flag_spec=-rdynamic
10897 cygwin* | mingw* | pw32* | cegcc*)
10898 # When not using gcc, we currently assume that we are using
10899 # Microsoft Visual C++.
10900 # hardcode_libdir_flag_spec is actually meaningless, as there is
10901 # no search path for DLLs.
10902 case $cc_basename in
10905 hardcode_libdir_flag_spec=' '
10906 allow_undefined_flag=unsupported
10907 always_export_symbols=yes
10909 # Tell ltmain to make .lib files, not .a files.
10911 # Tell ltmain to make .dll files, not .so files.
10913 # FIXME: Setting linknames here is a bad hack.
10914 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10915 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10916 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10918 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10920 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10922 # The linker will not automatically build a static lib if we build a DLL.
10923 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10924 enable_shared_with_static_runtimes=yes
10925 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10927 old_postinstall_cmds='chmod 644 $oldlib'
10928 postlink_cmds='lt_outputfile="@OUTPUT@"~
10929 lt_tool_outputfile="@TOOL_OUTPUT@"~
10930 case $lt_outputfile in
10933 lt_outputfile="$lt_outputfile.exe"
10934 lt_tool_outputfile="$lt_tool_outputfile.exe"
10937 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10938 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10939 $RM "$lt_outputfile.manifest";
10943 # Assume MSVC wrapper
10944 hardcode_libdir_flag_spec=' '
10945 allow_undefined_flag=unsupported
10946 # Tell ltmain to make .lib files, not .a files.
10948 # Tell ltmain to make .dll files, not .so files.
10950 # FIXME: Setting linknames here is a bad hack.
10951 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10952 # The linker will automatically build a .lib file if we build a DLL.
10953 old_archive_from_new_cmds='true'
10954 # FIXME: Should let the user specify the lib program.
10955 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10956 enable_shared_with_static_runtimes=yes
10961 darwin* | rhapsody*)
10964 archive_cmds_need_lc=no
10966 hardcode_automatic=yes
10967 hardcode_shlibpath_var=unsupported
10968 if test "$lt_cv_ld_force_load" = "yes"; then
10969 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\"`'
10971 whole_archive_flag_spec=''
10973 link_all_deplibs=yes
10974 allow_undefined_flag="$_lt_dar_allow_undefined"
10975 case $cc_basename in
10976 ifort*) _lt_dar_can_shared=yes ;;
10977 *) _lt_dar_can_shared=$GCC ;;
10979 if test "$_lt_dar_can_shared" = "yes"; then
10980 output_verbose_link_cmd=func_echo_all
10981 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10982 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10983 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}"
10984 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}"
10993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10994 hardcode_libdir_flag_spec='-L$libdir'
10995 hardcode_shlibpath_var=no
11002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11003 # support. Future versions do this automatically, but an explicit c++rt0.o
11004 # does not break anything, and helps significantly (at the cost of a little
11007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11008 hardcode_libdir_flag_spec='-R$libdir'
11009 hardcode_direct=yes
11010 hardcode_shlibpath_var=no
11013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11016 hardcode_direct=yes
11017 hardcode_minus_L=yes
11018 hardcode_shlibpath_var=no
11021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11022 freebsd* | dragonfly*)
11023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11024 hardcode_libdir_flag_spec='-R$libdir'
11025 hardcode_direct=yes
11026 hardcode_shlibpath_var=no
11030 if test "$GCC" = yes; then
11031 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'
11033 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'
11035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11036 hardcode_libdir_separator=:
11037 hardcode_direct=yes
11039 # hardcode_minus_L: Not really in the search PATH,
11040 # but as the default location of the library.
11041 hardcode_minus_L=yes
11042 export_dynamic_flag_spec='${wl}-E'
11046 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11047 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11051 if test "$with_gnu_ld" = no; then
11052 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11053 hardcode_libdir_flag_spec_ld='+b $libdir'
11054 hardcode_libdir_separator=:
11055 hardcode_direct=yes
11056 hardcode_direct_absolute=yes
11057 export_dynamic_flag_spec='${wl}-E'
11058 # hardcode_minus_L: Not really in the search PATH,
11059 # but as the default location of the library.
11060 hardcode_minus_L=yes
11065 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11068 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11074 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11083 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11087 # Older versions of the 11.00 compiler do not understand -b yet
11088 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11090 $as_echo_n "checking if $CC understands -b... " >&6; }
11091 if ${lt_cv_prog_compiler__b+:} false; then :
11092 $as_echo_n "(cached) " >&6
11094 lt_cv_prog_compiler__b=no
11095 save_LDFLAGS="$LDFLAGS"
11096 LDFLAGS="$LDFLAGS -b"
11097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11099 # The linker can only warn and ignore the option if not recognized
11100 # So say no if there are warnings
11101 if test -s conftest.err; then
11102 # Append any errors to the config.log.
11103 cat conftest.err 1>&5
11104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11106 if diff conftest.exp conftest.er2 >/dev/null; then
11107 lt_cv_prog_compiler__b=yes
11110 lt_cv_prog_compiler__b=yes
11114 LDFLAGS="$save_LDFLAGS"
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11118 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11120 if test x"$lt_cv_prog_compiler__b" = xyes; then
11121 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11129 if test "$with_gnu_ld" = no; then
11130 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11131 hardcode_libdir_separator=:
11136 hardcode_shlibpath_var=no
11139 hardcode_direct=yes
11140 hardcode_direct_absolute=yes
11141 export_dynamic_flag_spec='${wl}-E'
11143 # hardcode_minus_L: Not really in the search PATH,
11144 # but as the default location of the library.
11145 hardcode_minus_L=yes
11151 irix5* | irix6* | nonstopux*)
11152 if test "$GCC" = yes; then
11153 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'
11154 # Try to use the -exported_symbol ld option, if it does not
11155 # work, assume that -exports_file does not work either and
11156 # implicitly export all symbols.
11157 # This should be the same for all languages, so no per-tag cache variable.
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11159 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11160 if ${lt_cv_irix_exported_symbol+:} false; then :
11161 $as_echo_n "(cached) " >&6
11163 save_LDFLAGS="$LDFLAGS"
11164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167 int foo (void) { return 0; }
11169 if ac_fn_c_try_link "$LINENO"; then :
11170 lt_cv_irix_exported_symbol=yes
11172 lt_cv_irix_exported_symbol=no
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LDFLAGS="$save_LDFLAGS"
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11179 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11180 if test "$lt_cv_irix_exported_symbol" = yes; then
11181 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'
11184 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'
11185 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'
11187 archive_cmds_need_lc='no'
11188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11189 hardcode_libdir_separator=:
11191 link_all_deplibs=yes
11195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11198 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11200 hardcode_libdir_flag_spec='-R$libdir'
11201 hardcode_direct=yes
11202 hardcode_shlibpath_var=no
11206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207 hardcode_direct=yes
11208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11209 hardcode_libdir_separator=:
11210 hardcode_shlibpath_var=no
11217 if test -f /usr/libexec/ld.so; then
11218 hardcode_direct=yes
11219 hardcode_shlibpath_var=no
11220 hardcode_direct_absolute=yes
11221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11223 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11225 export_dynamic_flag_spec='${wl}-E'
11228 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11230 hardcode_libdir_flag_spec='-R$libdir'
11233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11234 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11244 hardcode_libdir_flag_spec='-L$libdir'
11245 hardcode_minus_L=yes
11246 allow_undefined_flag=unsupported
11247 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'
11248 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11252 if test "$GCC" = yes; then
11253 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11254 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'
11256 allow_undefined_flag=' -expect_unresolved \*'
11257 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'
11259 archive_cmds_need_lc='no'
11260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11261 hardcode_libdir_separator=:
11264 osf4* | osf5*) # as osf3* with the addition of -msym flag
11265 if test "$GCC" = yes; then
11266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11267 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'
11268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11270 allow_undefined_flag=' -expect_unresolved \*'
11271 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'
11272 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~
11273 $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'
11275 # Both c and cxx compiler support -rpath directly
11276 hardcode_libdir_flag_spec='-rpath $libdir'
11278 archive_cmds_need_lc='no'
11279 hardcode_libdir_separator=:
11283 no_undefined_flag=' -z defs'
11284 if test "$GCC" = yes; then
11286 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11288 $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'
11290 case `$CC -V 2>&1` in
11293 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11295 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11299 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11301 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11305 hardcode_libdir_flag_spec='-R$libdir'
11306 hardcode_shlibpath_var=no
11308 solaris2.[0-5] | solaris2.[0-5].*) ;;
11310 # The compiler driver will combine and reorder linker options,
11311 # but understands `-z linker_flag'. GCC discards it without `$wl',
11312 # but is careful enough not to reorder.
11313 # Supported since Solaris 2.6 (maybe 2.5.1?)
11314 if test "$GCC" = yes; then
11315 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11317 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11321 link_all_deplibs=yes
11325 if test "x$host_vendor" = xsequent; then
11326 # Use $CC to link under sequent, because it throws in some extra .o
11327 # files that make .init and .fini sections work.
11328 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_libdir_flag_spec='-L$libdir'
11333 hardcode_direct=yes
11334 hardcode_minus_L=yes
11335 hardcode_shlibpath_var=no
11339 case $host_vendor in
11341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342 hardcode_direct=yes # is this really true???
11345 ## LD is ld it makes a PLAMLIB
11346 ## CC just makes a GrossModule.
11347 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11348 reload_cmds='$CC -r -o $output$reload_objs'
11352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11353 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11356 runpath_var='LD_RUN_PATH'
11357 hardcode_shlibpath_var=no
11361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11362 hardcode_shlibpath_var=no
11363 export_dynamic_flag_spec='-Bexport'
11367 if test -d /usr/nec; then
11368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11369 hardcode_shlibpath_var=no
11370 runpath_var=LD_RUN_PATH
11371 hardcode_runpath_var=yes
11376 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11377 no_undefined_flag='${wl}-z,text'
11378 archive_cmds_need_lc=no
11379 hardcode_shlibpath_var=no
11380 runpath_var='LD_RUN_PATH'
11382 if test "$GCC" = yes; then
11383 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11386 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11391 sysv5* | sco3.2v5* | sco5v6*)
11392 # Note: We can NOT use -z defs as we might desire, because we do not
11393 # link with -lc, and that would cause any symbols used from libc to
11394 # always be unresolved, which means just about no library would
11395 # ever link correctly. If we're not using GNU ld we use -z text
11396 # though, which does catch some bad symbols but isn't as heavy-handed
11398 no_undefined_flag='${wl}-z,text'
11399 allow_undefined_flag='${wl}-z,nodefs'
11400 archive_cmds_need_lc=no
11401 hardcode_shlibpath_var=no
11402 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11403 hardcode_libdir_separator=':'
11404 link_all_deplibs=yes
11405 export_dynamic_flag_spec='${wl}-Bexport'
11406 runpath_var='LD_RUN_PATH'
11408 if test "$GCC" = yes; then
11409 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11410 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11413 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11419 hardcode_libdir_flag_spec='-L$libdir'
11420 hardcode_shlibpath_var=no
11428 if test x$host_vendor = xsni; then
11430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11431 export_dynamic_flag_spec='${wl}-Blargedynsym'
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11438 $as_echo "$ld_shlibs" >&6; }
11439 test "$ld_shlibs" = no && can_build_shared=no
11441 with_gnu_ld=$with_gnu_ld
11458 # Do we need to explicitly link libc?
11460 case "x$archive_cmds_need_lc" in
11462 # Assume -lc should be added
11463 archive_cmds_need_lc=yes
11465 if test "$enable_shared" = yes && test "$GCC" = yes; then
11466 case $archive_cmds in
11468 # FIXME: we may have to deal with multi-command sequences.
11471 # Test whether the compiler implicitly links with -lc since on some
11472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11473 # to ld, don't add -lc before -lgcc.
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11475 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11476 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11477 $as_echo_n "(cached) " >&6
11480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11483 (eval $ac_compile) 2>&5
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486 test $ac_status = 0; } 2>conftest.err; then
11489 libobjs=conftest.$ac_objext
11491 wl=$lt_prog_compiler_wl
11492 pic_flag=$lt_prog_compiler_pic
11498 lt_save_allow_undefined_flag=$allow_undefined_flag
11499 allow_undefined_flag=
11500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11501 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11504 test $ac_status = 0; }
11506 lt_cv_archive_cmds_need_lc=no
11508 lt_cv_archive_cmds_need_lc=yes
11510 allow_undefined_flag=$lt_save_allow_undefined_flag
11512 cat conftest.err 1>&5
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11518 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11519 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11683 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11685 if test "$GCC" = yes; then
11687 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11688 *) lt_awk_arg="/^libraries:/" ;;
11691 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11692 *) lt_sed_strip_eq="s,=/,/,g" ;;
11694 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11695 case $lt_search_path_spec in
11697 # if the path contains ";" then we assume it to be the separator
11698 # otherwise default to the standard path separator (i.e. ":") - it is
11699 # assumed that no part of a normal pathname contains ";" but that should
11700 # okay in the real world where ";" in dirpaths is itself problematic.
11701 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11704 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11707 # Ok, now we have the path, separated by spaces, we can step through it
11708 # and add multilib dir if necessary.
11709 lt_tmp_lt_search_path_spec=
11710 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11711 for lt_sys_path in $lt_search_path_spec; do
11712 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11715 test -d "$lt_sys_path" && \
11716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11719 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11720 BEGIN {RS=" "; FS="/|\n";} {
11723 for (lt_i = NF; lt_i > 0; lt_i--) {
11724 if ($lt_i != "" && $lt_i != ".") {
11725 if ($lt_i == "..") {
11728 if (lt_count == 0) {
11729 lt_foo="/" $lt_i lt_foo;
11736 if (lt_foo != "") { lt_freq[lt_foo]++; }
11737 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11739 # AWK program above erroneously prepends '/' to C:/dos/paths
11742 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11743 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11745 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11749 library_names_spec=
11750 libname_spec='lib$name'
11754 postuninstall_cmds=
11758 shlibpath_overrides_runpath=unknown
11760 dynamic_linker="$host_os ld.so"
11761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11762 need_lib_prefix=unknown
11763 hardcode_into_libs=no
11765 # when you set need_version to no, make sure it does not cause -set_version
11766 # flags to be left without arguments
11767 need_version=unknown
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11773 shlibpath_var=LIBPATH
11775 # AIX 3 has no versioning support, so we append a major version to the name.
11776 soname_spec='${libname}${release}${shared_ext}$major'
11783 hardcode_into_libs=yes
11784 if test "$host_cpu" = ia64; then
11785 # AIX 5 supports IA64
11786 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11787 shlibpath_var=LD_LIBRARY_PATH
11789 # With GCC up to 2.95.x, collect2 would create an import file
11790 # for dependence libraries. The import file would start with
11791 # the line `#! .'. This would cause the generated library to
11792 # depend on `.', always an invalid library. This was fixed in
11793 # development snapshots of GCC prior to 3.0.
11795 aix4 | aix4.[01] | aix4.[01].*)
11796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11798 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11801 can_build_shared=no
11805 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11806 # soname into executable. Probably we can add versioning support to
11807 # collect2, so additional links can be useful in future.
11808 if test "$aix_use_runtimelinking" = yes; then
11809 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11810 # instead of lib<name>.a to let people know that these are not
11811 # typical AIX shared libraries.
11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814 # We preserve .a as extension for shared libraries through AIX4.2
11815 # and later when we are not doing run time linking.
11816 library_names_spec='${libname}${release}.a $libname.a'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LIBPATH
11826 # Since July 2007 AmigaOS4 officially supports .so libraries.
11827 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831 library_names_spec='$libname.ixlibrary $libname.a'
11832 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11833 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'
11839 library_names_spec='${libname}${shared_ext}'
11840 dynamic_linker="$host_os ld.so"
11841 shlibpath_var=LIBRARY_PATH
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11853 # the default ld.so.conf also contains /usr/contrib/lib and
11854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11855 # libtool to hard-code these into programs
11858 cygwin* | mingw* | pw32* | cegcc*)
11859 version_type=windows
11864 case $GCC,$cc_basename in
11867 library_names_spec='$libname.dll.a'
11868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11869 postinstall_cmds='base_file=`basename \${file}`~
11870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11871 dldir=$destdir/`dirname \$dlpath`~
11872 test -d \$dldir || mkdir -p \$dldir~
11873 $install_prog $dir/$dlname \$dldir/$dlname~
11874 chmod a+x \$dldir/$dlname~
11875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11879 dlpath=$dir/\$dldll~
11881 shlibpath_overrides_runpath=yes
11885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11891 # MinGW DLLs use traditional 'lib' prefix
11892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11895 # pw32 DLLs use 'pw' prefix rather than 'lib'
11896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11899 dynamic_linker='Win32 ld.exe'
11904 libname_spec='$name'
11905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906 library_names_spec='${libname}.dll.lib'
11910 sys_lib_search_path_spec=
11913 for lt_path in $LIB
11916 # Let DOS variable expansion print the short 8.3 style file name.
11917 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11918 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11921 # Convert to MSYS style.
11922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11925 # Convert to unix form, then to dos form, then back to unix form
11926 # but this time dos style (no spaces!) so that the unix form looks
11927 # like /cygdrive/c/PROGRA~1:/cygdr...
11928 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11929 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11930 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11933 sys_lib_search_path_spec="$LIB"
11934 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11935 # It is most probably a Windows format PATH.
11936 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11938 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11940 # FIXME: find the short name or the path components, as spaces are
11941 # common. (e.g. "Program Files" -> "PROGRA~1")
11945 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11946 postinstall_cmds='base_file=`basename \${file}`~
11947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11948 dldir=$destdir/`dirname \$dlpath`~
11949 test -d \$dldir || mkdir -p \$dldir~
11950 $install_prog $dir/$dlname \$dldir/$dlname'
11951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11952 dlpath=$dir/\$dldll~
11954 shlibpath_overrides_runpath=yes
11955 dynamic_linker='Win32 link.exe'
11959 # Assume MSVC wrapper
11960 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11961 dynamic_linker='Win32 ld.exe'
11964 # FIXME: first we should search . and the directory the executable is in
11968 darwin* | rhapsody*)
11969 dynamic_linker="$host_os dyld"
11970 version_type=darwin
11973 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11974 soname_spec='${libname}${release}${major}$shared_ext'
11975 shlibpath_overrides_runpath=yes
11976 shlibpath_var=DYLD_LIBRARY_PATH
11977 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11979 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11988 soname_spec='${libname}${release}${shared_ext}$major'
11989 shlibpath_var=LD_LIBRARY_PATH
11996 freebsd* | dragonfly*)
11997 # DragonFly does not have aout. When/if they implement a new
11998 # versioning mechanism, adjust this.
11999 if test -x /usr/bin/objformat; then
12000 objformat=`/usr/bin/objformat`
12003 freebsd[123]*) objformat=aout ;;
12004 *) objformat=elf ;;
12007 version_type=freebsd-$objformat
12008 case $version_type in
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12019 shlibpath_var=LD_LIBRARY_PATH
12022 shlibpath_overrides_runpath=yes
12024 freebsd3.[01]* | freebsdelf3.[01]*)
12025 shlibpath_overrides_runpath=yes
12026 hardcode_into_libs=yes
12028 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12029 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12030 shlibpath_overrides_runpath=no
12031 hardcode_into_libs=yes
12033 *) # from 4.6 on, and DragonFly
12034 shlibpath_overrides_runpath=yes
12035 hardcode_into_libs=yes
12044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 hardcode_into_libs=yes
12054 dynamic_linker="$host_os runtime_loader"
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 shlibpath_var=LIBRARY_PATH
12058 shlibpath_overrides_runpath=yes
12059 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12060 hardcode_into_libs=yes
12063 hpux9* | hpux10* | hpux11*)
12064 # Give a soname corresponding to the major version so that dld.sl refuses to
12065 # link against other versions.
12072 hardcode_into_libs=yes
12073 dynamic_linker="$host_os dld.so"
12074 shlibpath_var=LD_LIBRARY_PATH
12075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 if test "X$HPUX_IA64_MODE" = X32; then
12079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12087 hardcode_into_libs=yes
12088 dynamic_linker="$host_os dld.sl"
12089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12098 dynamic_linker="$host_os dld.sl"
12099 shlibpath_var=SHLIB_PATH
12100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102 soname_spec='${libname}${release}${shared_ext}$major'
12105 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12106 postinstall_cmds='chmod 555 $lib'
12107 # or fails outright, so override atomically:
12108 install_override_mode=555
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12116 soname_spec='${libname}${release}${shared_ext}$major'
12117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12118 shlibpath_var=LD_LIBRARY_PATH
12119 shlibpath_overrides_runpath=no
12120 hardcode_into_libs=yes
12123 irix5* | irix6* | nonstopux*)
12125 nonstopux*) version_type=nonstopux ;;
12127 if test "$lt_cv_prog_gnu_ld" = yes; then
12135 soname_spec='${libname}${release}${shared_ext}$major'
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12138 irix5* | nonstopux*)
12139 libsuff= shlibsuff=
12142 case $LD in # libtool.m4 will add one of these switches to LD
12143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12144 libsuff= shlibsuff= libmagic=32-bit;;
12145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12146 libsuff=32 shlibsuff=N32 libmagic=N32;;
12147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12149 *) libsuff= shlibsuff= libmagic=never-match;;
12153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12154 shlibpath_overrides_runpath=no
12155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12157 hardcode_into_libs=yes
12160 # No shared lib support for Linux oldld, aout, or coff.
12161 linux*oldld* | linux*aout* | linux*coff*)
12165 # This must be Linux ELF.
12166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12171 soname_spec='${libname}${release}${shared_ext}$major'
12172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12173 shlibpath_var=LD_LIBRARY_PATH
12174 shlibpath_overrides_runpath=no
12176 # Some binutils ld are patched to set DT_RUNPATH
12177 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12178 $as_echo_n "(cached) " >&6
12180 lt_cv_shlibpath_overrides_runpath=no
12181 save_LDFLAGS=$LDFLAGS
12182 save_libdir=$libdir
12183 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12184 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12196 if ac_fn_c_try_link "$LINENO"; then :
12197 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12198 lt_cv_shlibpath_overrides_runpath=yes
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LDFLAGS=$save_LDFLAGS
12204 libdir=$save_libdir
12208 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12210 # This implies no fast_install, which is unacceptable.
12211 # Some rework will be needed to allow for fast_install
12212 # before this can be enabled.
12213 hardcode_into_libs=yes
12215 # Append ld.so.conf contents to the search path
12216 if test -f /etc/ld.so.conf; then
12217 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' ' '`
12218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12221 # We used to test for /lib/ld.so.1 and disable shared libraries on
12222 # powerpc, because MkLinux only supported shared libraries with the
12223 # GNU dynamic linker. Since this was broken with cross compilers,
12224 # most powerpc-linux boxes support dynamic linking these days and
12225 # people can always --disable-shared, the test was removed, and we
12226 # assume the GNU/Linux dynamic linker is in use.
12227 dynamic_linker='GNU/Linux ld.so'
12234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12237 dynamic_linker='NetBSD (a.out) ld.so'
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12240 soname_spec='${libname}${release}${shared_ext}$major'
12241 dynamic_linker='NetBSD ld.elf_so'
12243 shlibpath_var=LD_LIBRARY_PATH
12244 shlibpath_overrides_runpath=yes
12245 hardcode_into_libs=yes
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=yes
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260 soname_spec='${libname}${release}${shared_ext}$major'
12261 shlibpath_var=LD_LIBRARY_PATH
12262 shlibpath_overrides_runpath=no
12263 hardcode_into_libs=yes
12264 dynamic_linker='ldqnx.so'
12269 sys_lib_dlsearch_path_spec="/usr/lib"
12271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12274 *) need_version=no ;;
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12281 openbsd2.[89] | openbsd2.[89].*)
12282 shlibpath_overrides_runpath=no
12285 shlibpath_overrides_runpath=yes
12289 shlibpath_overrides_runpath=yes
12294 libname_spec='$name'
12297 library_names_spec='$libname${shared_ext} $libname.a'
12298 dynamic_linker='OS/2 ld.exe'
12299 shlibpath_var=LIBPATH
12302 osf3* | osf4* | osf5*)
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12322 soname_spec='${libname}${release}${shared_ext}$major'
12323 shlibpath_var=LD_LIBRARY_PATH
12324 shlibpath_overrides_runpath=yes
12325 hardcode_into_libs=yes
12326 # ldd complains unless libraries are executable
12327 postinstall_cmds='chmod +x $lib'
12332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12334 shlibpath_var=LD_LIBRARY_PATH
12335 shlibpath_overrides_runpath=yes
12336 if test "$with_gnu_ld" = yes; then
12344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12345 soname_spec='${libname}${release}${shared_ext}$major'
12346 shlibpath_var=LD_LIBRARY_PATH
12347 case $host_vendor in
12349 shlibpath_overrides_runpath=no
12351 runpath_var=LD_RUN_PATH
12359 shlibpath_overrides_runpath=no
12360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12366 if test -d /usr/nec ;then
12368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12369 soname_spec='$libname${shared_ext}.$major'
12370 shlibpath_var=LD_LIBRARY_PATH
12374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12375 version_type=freebsd-elf
12378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12379 soname_spec='${libname}${release}${shared_ext}$major'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 shlibpath_overrides_runpath=yes
12382 hardcode_into_libs=yes
12383 if test "$with_gnu_ld" = yes; then
12384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12393 sys_lib_dlsearch_path_spec='/usr/lib'
12397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 shlibpath_overrides_runpath=no
12404 hardcode_into_libs=yes
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410 soname_spec='${libname}${release}${shared_ext}$major'
12411 shlibpath_var=LD_LIBRARY_PATH
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12419 $as_echo "$dynamic_linker" >&6; }
12420 test "$dynamic_linker" = no && can_build_shared=no
12422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12423 if test "$GCC" = yes; then
12424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12427 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12428 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12430 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12431 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12526 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12528 if test -n "$hardcode_libdir_flag_spec" ||
12529 test -n "$runpath_var" ||
12530 test "X$hardcode_automatic" = "Xyes" ; then
12532 # We can hardcode non-existent directories.
12533 if test "$hardcode_direct" != no &&
12534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12535 # have to relink, otherwise we might link with an installed library
12536 # when we should be linking with a yet-to-be-installed one
12537 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12538 test "$hardcode_minus_L" != no; then
12539 # Linking always hardcodes the temporary library directory.
12540 hardcode_action=relink
12542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12543 hardcode_action=immediate
12546 # We cannot hardcode anything, or else we can only hardcode existing
12548 hardcode_action=unsupported
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12551 $as_echo "$hardcode_action" >&6; }
12553 if test "$hardcode_action" = relink ||
12554 test "$inherit_rpath" = yes; then
12555 # Fast installation is not supported
12556 enable_fast_install=no
12557 elif test "$shlibpath_overrides_runpath" = yes ||
12558 test "$enable_shared" = no; then
12559 # Fast installation is not necessary
12560 enable_fast_install=needless
12568 if test "x$enable_dlopen" != xyes; then
12569 enable_dlopen=unknown
12570 enable_dlopen_self=unknown
12571 enable_dlopen_self_static=unknown
12578 lt_cv_dlopen="load_add_on"
12580 lt_cv_dlopen_self=yes
12583 mingw* | pw32* | cegcc*)
12584 lt_cv_dlopen="LoadLibrary"
12589 lt_cv_dlopen="dlopen"
12594 # if libdl is installed we need to link against it
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12597 if ${ac_cv_lib_dl_dlopen+:} false; then :
12598 $as_echo_n "(cached) " >&6
12600 ac_check_lib_save_LIBS=$LIBS
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12620 if ac_fn_c_try_link "$LINENO"; then :
12621 ac_cv_lib_dl_dlopen=yes
12623 ac_cv_lib_dl_dlopen=no
12625 rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12635 lt_cv_dlopen="dyld"
12637 lt_cv_dlopen_self=yes
12644 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12645 if test "x$ac_cv_func_shl_load" = xyes; then :
12646 lt_cv_dlopen="shl_load"
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12649 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12650 if ${ac_cv_lib_dld_shl_load+:} false; then :
12651 $as_echo_n "(cached) " >&6
12653 ac_check_lib_save_LIBS=$LIBS
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12668 return shl_load ();
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 ac_cv_lib_dld_shl_load=yes
12676 ac_cv_lib_dld_shl_load=no
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12683 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12684 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12687 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12688 if test "x$ac_cv_func_dlopen" = xyes; then :
12689 lt_cv_dlopen="dlopen"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12693 if ${ac_cv_lib_dl_dlopen+:} false; then :
12694 $as_echo_n "(cached) " >&6
12696 ac_check_lib_save_LIBS=$LIBS
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12701 /* Override any GCC internal prototype to avoid an error.
12702 Use char because int might match the return type of a GCC
12703 builtin and then its argument prototype would still apply. */
12716 if ac_fn_c_try_link "$LINENO"; then :
12717 ac_cv_lib_dl_dlopen=yes
12719 ac_cv_lib_dl_dlopen=no
12721 rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12731 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12732 if ${ac_cv_lib_svld_dlopen+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-lsvld $LIBS"
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12755 if ac_fn_c_try_link "$LINENO"; then :
12756 ac_cv_lib_svld_dlopen=yes
12758 ac_cv_lib_svld_dlopen=no
12760 rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12765 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12766 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12770 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12771 if ${ac_cv_lib_dld_dld_link+:} false; then :
12772 $as_echo_n "(cached) " >&6
12774 ac_check_lib_save_LIBS=$LIBS
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12789 return dld_link ();
12794 if ac_fn_c_try_link "$LINENO"; then :
12795 ac_cv_lib_dld_dld_link=yes
12797 ac_cv_lib_dld_dld_link=no
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12804 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12805 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12806 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12827 if test "x$lt_cv_dlopen" != xno; then
12833 case $lt_cv_dlopen in
12835 save_CPPFLAGS="$CPPFLAGS"
12836 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12838 save_LDFLAGS="$LDFLAGS"
12839 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12842 LIBS="$lt_cv_dlopen_libs $LIBS"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12845 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12846 if ${lt_cv_dlopen_self+:} false; then :
12847 $as_echo_n "(cached) " >&6
12849 if test "$cross_compiling" = yes; then :
12850 lt_cv_dlopen_self=cross
12852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12853 lt_status=$lt_dlunknown
12854 cat > conftest.$ac_ext <<_LT_EOF
12855 #line $LINENO "configure"
12856 #include "confdefs.h"
12865 # define LT_DLGLOBAL RTLD_GLOBAL
12868 # define LT_DLGLOBAL DL_GLOBAL
12870 # define LT_DLGLOBAL 0
12874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12875 find out it does not work in some platform. */
12876 #ifndef LT_DLLAZY_OR_NOW
12878 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12881 # define LT_DLLAZY_OR_NOW DL_LAZY
12884 # define LT_DLLAZY_OR_NOW RTLD_NOW
12887 # define LT_DLLAZY_OR_NOW DL_NOW
12889 # define LT_DLLAZY_OR_NOW 0
12896 /* When -fvisbility=hidden is used, assume the code has been annotated
12897 correspondingly for the symbols needed. */
12898 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12899 int fnord () __attribute__((visibility("default")));
12902 int fnord () { return 42; }
12905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12906 int status = $lt_dlunknown;
12910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12913 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12914 else puts (dlerror ());
12916 /* dlclose (self); */
12924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12925 (eval $ac_link) 2>&5
12927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12929 (./conftest; exit; ) >&5 2>/dev/null
12931 case x$lt_status in
12932 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12933 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12934 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12937 # compilation failed
12938 lt_cv_dlopen_self=no
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12946 $as_echo "$lt_cv_dlopen_self" >&6; }
12948 if test "x$lt_cv_dlopen_self" = xyes; then
12949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12951 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12952 if ${lt_cv_dlopen_self_static+:} false; then :
12953 $as_echo_n "(cached) " >&6
12955 if test "$cross_compiling" = yes; then :
12956 lt_cv_dlopen_self_static=cross
12958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12959 lt_status=$lt_dlunknown
12960 cat > conftest.$ac_ext <<_LT_EOF
12961 #line $LINENO "configure"
12962 #include "confdefs.h"
12971 # define LT_DLGLOBAL RTLD_GLOBAL
12974 # define LT_DLGLOBAL DL_GLOBAL
12976 # define LT_DLGLOBAL 0
12980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12981 find out it does not work in some platform. */
12982 #ifndef LT_DLLAZY_OR_NOW
12984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12987 # define LT_DLLAZY_OR_NOW DL_LAZY
12990 # define LT_DLLAZY_OR_NOW RTLD_NOW
12993 # define LT_DLLAZY_OR_NOW DL_NOW
12995 # define LT_DLLAZY_OR_NOW 0
13002 /* When -fvisbility=hidden is used, assume the code has been annotated
13003 correspondingly for the symbols needed. */
13004 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13005 int fnord () __attribute__((visibility("default")));
13008 int fnord () { return 42; }
13011 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13012 int status = $lt_dlunknown;
13016 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13019 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13020 else puts (dlerror ());
13022 /* dlclose (self); */
13030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13031 (eval $ac_link) 2>&5
13033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13034 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13035 (./conftest; exit; ) >&5 2>/dev/null
13037 case x$lt_status in
13038 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13039 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13040 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13043 # compilation failed
13044 lt_cv_dlopen_self_static=no
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13052 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13055 CPPFLAGS="$save_CPPFLAGS"
13056 LDFLAGS="$save_LDFLAGS"
13061 case $lt_cv_dlopen_self in
13062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13063 *) enable_dlopen_self=unknown ;;
13066 case $lt_cv_dlopen_self_static in
13067 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13068 *) enable_dlopen_self_static=unknown ;;
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13091 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13092 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13094 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13096 $as_echo "yes" >&6; }
13098 # FIXME - insert some real tests, host_os isn't really good enough
13101 if test -n "$STRIP" ; then
13102 striplib="$STRIP -x"
13103 old_striplib="$STRIP -S"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13105 $as_echo "yes" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13129 # Report which library types will actually be built
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13131 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13133 $as_echo "$can_build_shared" >&6; }
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13136 $as_echo_n "checking whether to build shared libraries... " >&6; }
13137 test "$can_build_shared" = "no" && enable_shared=no
13139 # On AIX, shared libraries and static libraries use the same namespace, and
13140 # are all built from PIC.
13143 test "$enable_shared" = yes && enable_static=no
13144 if test -n "$RANLIB"; then
13145 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13146 postinstall_cmds='$RANLIB $lib'
13151 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13152 test "$enable_shared" = yes && enable_static=no
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13157 $as_echo "$enable_shared" >&6; }
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13160 $as_echo_n "checking whether to build static libraries... " >&6; }
13161 # Make sure either enable_shared or enable_static is yes.
13162 test "$enable_shared" = yes || enable_static=yes
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13164 $as_echo "$enable_static" >&6; }
13171 ac_cpp='$CPP $CPPFLAGS'
13172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13178 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13179 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13180 (test "X$CXX" != "Xg++"))) ; then
13182 ac_cpp='$CXXCPP $CPPFLAGS'
13183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13187 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13188 if test -z "$CXXCPP"; then
13189 if ${ac_cv_prog_CXXCPP+:} false; then :
13190 $as_echo_n "(cached) " >&6
13192 # Double quotes because CXXCPP needs to be expanded
13193 for CXXCPP in "$CXX -E" "/lib/cpp"
13195 ac_preproc_ok=false
13196 for ac_cxx_preproc_warn_flag in '' yes
13198 # Use a header file that comes with gcc, so configuring glibc
13199 # with a fresh cross-compiler works.
13200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13201 # <limits.h> exists even on freestanding compilers.
13202 # On the NeXT, cc -E runs the code through the compiler's parser,
13203 # not just through cpp. "Syntax error" is here to catch this case.
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13207 # include <limits.h>
13209 # include <assert.h>
13213 if ac_fn_cxx_try_cpp "$LINENO"; then :
13216 # Broken: fails on valid input.
13219 rm -f conftest.err conftest.i conftest.$ac_ext
13221 # OK, works on sane cases. Now check whether nonexistent headers
13222 # can be detected and how.
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13225 #include <ac_nonexistent.h>
13227 if ac_fn_cxx_try_cpp "$LINENO"; then :
13228 # Broken: success on invalid input.
13231 # Passes both tests.
13235 rm -f conftest.err conftest.i conftest.$ac_ext
13238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13239 rm -f conftest.i conftest.err conftest.$ac_ext
13240 if $ac_preproc_ok; then :
13245 ac_cv_prog_CXXCPP=$CXXCPP
13248 CXXCPP=$ac_cv_prog_CXXCPP
13250 ac_cv_prog_CXXCPP=$CXXCPP
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13253 $as_echo "$CXXCPP" >&6; }
13254 ac_preproc_ok=false
13255 for ac_cxx_preproc_warn_flag in '' yes
13257 # Use a header file that comes with gcc, so configuring glibc
13258 # with a fresh cross-compiler works.
13259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13260 # <limits.h> exists even on freestanding compilers.
13261 # On the NeXT, cc -E runs the code through the compiler's parser,
13262 # not just through cpp. "Syntax error" is here to catch this case.
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13266 # include <limits.h>
13268 # include <assert.h>
13272 if ac_fn_cxx_try_cpp "$LINENO"; then :
13275 # Broken: fails on valid input.
13278 rm -f conftest.err conftest.i conftest.$ac_ext
13280 # OK, works on sane cases. Now check whether nonexistent headers
13281 # can be detected and how.
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284 #include <ac_nonexistent.h>
13286 if ac_fn_cxx_try_cpp "$LINENO"; then :
13287 # Broken: success on invalid input.
13290 # Passes both tests.
13294 rm -f conftest.err conftest.i conftest.$ac_ext
13297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13298 rm -f conftest.i conftest.err conftest.$ac_ext
13299 if $ac_preproc_ok; then :
13302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13304 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13305 See \`config.log' for more details" "$LINENO" 5; }
13309 ac_cpp='$CPP $CPPFLAGS'
13310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13315 _lt_caught_CXX_error=yes
13319 ac_cpp='$CXXCPP $CPPFLAGS'
13320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13324 archive_cmds_need_lc_CXX=no
13325 allow_undefined_flag_CXX=
13326 always_export_symbols_CXX=no
13327 archive_expsym_cmds_CXX=
13328 compiler_needs_object_CXX=no
13329 export_dynamic_flag_spec_CXX=
13330 hardcode_direct_CXX=no
13331 hardcode_direct_absolute_CXX=no
13332 hardcode_libdir_flag_spec_CXX=
13333 hardcode_libdir_flag_spec_ld_CXX=
13334 hardcode_libdir_separator_CXX=
13335 hardcode_minus_L_CXX=no
13336 hardcode_shlibpath_var_CXX=unsupported
13337 hardcode_automatic_CXX=no
13338 inherit_rpath_CXX=no
13340 module_expsym_cmds_CXX=
13341 link_all_deplibs_CXX=unknown
13342 old_archive_cmds_CXX=$old_archive_cmds
13343 reload_flag_CXX=$reload_flag
13344 reload_cmds_CXX=$reload_cmds
13345 no_undefined_flag_CXX=
13346 whole_archive_flag_spec_CXX=
13347 enable_shared_with_static_runtimes_CXX=no
13349 # Source file extension for C++ test sources.
13352 # Object file extension for compiled C++ test sources.
13356 # No sense in running all these tests if we already determined that
13357 # the CXX compiler isn't working. Some variables (like enable_shared)
13358 # are currently assumed to apply to all compilers on this platform,
13359 # and will be corrupted by setting them based on a non-working compiler.
13360 if test "$_lt_caught_CXX_error" != yes; then
13361 # Code to be used in simple compile tests
13362 lt_simple_compile_test_code="int some_variable = 0;"
13364 # Code to be used in simple link tests
13365 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13367 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13374 # If no C compiler was specified, use CC.
13377 # If no C compiler flags were specified, use CFLAGS.
13378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13380 # Allow CC to be a program name with arguments.
13384 # save warnings/boilerplate of simple test code
13385 ac_outfile=conftest.$ac_objext
13386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13388 _lt_compiler_boilerplate=`cat conftest.err`
13391 ac_outfile=conftest.$ac_objext
13392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13394 _lt_linker_boilerplate=`cat conftest.err`
13398 # Allow CC to be a program name with arguments.
13400 lt_save_CFLAGS=$CFLAGS
13404 lt_save_with_gnu_ld=$with_gnu_ld
13405 lt_save_path_LD=$lt_cv_path_LD
13406 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13407 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13409 $as_unset lt_cv_prog_gnu_ld
13411 if test -n "${lt_cv_path_LDCXX+set}"; then
13412 lt_cv_path_LD=$lt_cv_path_LDCXX
13414 $as_unset lt_cv_path_LD
13416 test -z "${LDCXX+set}" || LD=$LDCXX
13421 for cc_temp in $compiler""; do
13423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13429 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13432 if test -n "$compiler"; then
13433 # We don't want -fno-exception when compiling C++ code, so set the
13434 # no_builtin_flag separately
13435 if test "$GXX" = yes; then
13436 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13438 lt_prog_compiler_no_builtin_flag_CXX=
13441 if test "$GXX" = yes; then
13442 # Set up default GNU C++ configuration
13446 # Check whether --with-gnu-ld was given.
13447 if test "${with_gnu_ld+set}" = set; then :
13448 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13454 if test "$GCC" = yes; then
13455 # Check if gcc -print-prog-name=ld gives a path.
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13457 $as_echo_n "checking for ld used by $CC... " >&6; }
13460 # gcc leaves a trailing carriage return which upsets mingw
13461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13466 # Accept absolute paths.
13468 re_direlt='/[^/][^/]*/\.\./'
13469 # Canonicalize the pathname of ld
13470 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13471 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13472 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13474 test -z "$LD" && LD="$ac_prog"
13477 # If it fails, then pretend we aren't using GCC.
13481 # If it is relative, then search for the first ld in PATH.
13482 with_gnu_ld=unknown
13485 elif test "$with_gnu_ld" = yes; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13487 $as_echo_n "checking for GNU ld... " >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13490 $as_echo_n "checking for non-GNU ld... " >&6; }
13492 if ${lt_cv_path_LD+:} false; then :
13493 $as_echo_n "(cached) " >&6
13495 if test -z "$LD"; then
13496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13497 for ac_dir in $PATH; do
13499 test -z "$ac_dir" && ac_dir=.
13500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13501 lt_cv_path_LD="$ac_dir/$ac_prog"
13502 # Check to see if the program is GNU ld. I'd rather use --version,
13503 # but apparently some variants of GNU ld only accept -v.
13504 # Break only if it was the GNU/non-GNU ld that we prefer.
13505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13506 *GNU* | *'with BFD'*)
13507 test "$with_gnu_ld" != no && break
13510 test "$with_gnu_ld" != yes && break
13517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13521 LD="$lt_cv_path_LD"
13522 if test -n "$LD"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13524 $as_echo "$LD" >&6; }
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13529 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13531 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13532 if ${lt_cv_prog_gnu_ld+:} false; then :
13533 $as_echo_n "(cached) " >&6
13535 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13536 case `$LD -v 2>&1 </dev/null` in
13537 *GNU* | *'with BFD'*)
13538 lt_cv_prog_gnu_ld=yes
13541 lt_cv_prog_gnu_ld=no
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13546 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13547 with_gnu_ld=$lt_cv_prog_gnu_ld
13555 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13556 # archiving commands below assume that GNU ld is being used.
13557 if test "$with_gnu_ld" = yes; then
13558 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13559 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'
13561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13562 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13564 # If archive_cmds runs LD, not CC, wlarc should be empty
13565 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13566 # investigate it a little bit more. (MM)
13569 # ancient GNU ld didn't support --whole-archive et. al.
13570 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13571 $GREP 'no-whole-archive' > /dev/null; then
13572 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13574 whole_archive_flag_spec_CXX=
13580 # A generic and very simple default shared library creation
13581 # command for GNU C++ for the case where it uses the native
13582 # linker, instead of GNU ld. If possible, this setting should
13583 # overridden to take advantage of the native linker features on
13584 # the platform it is being used on.
13585 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13588 # Commands to make compiler produce verbose output that lists
13589 # what "hidden" libraries, object files and flags are used when
13590 # linking a shared library.
13591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13599 # PORTME: fill in a description of your system's C++ link characteristics
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13601 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13605 # FIXME: insert proper C++ library support
13609 if test "$host_cpu" = ia64; then
13610 # On IA64, the linker does run time linking by default, so we don't
13611 # have to do anything special.
13612 aix_use_runtimelinking=no
13613 exp_sym_flag='-Bexport'
13616 aix_use_runtimelinking=no
13618 # Test if we are trying to use run time linking or normal
13619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13620 # need to do runtime linking.
13621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13622 for ld_flag in $LDFLAGS; do
13625 aix_use_runtimelinking=yes
13633 exp_sym_flag='-bexport'
13634 no_entry_flag='-bnoentry'
13637 # When large executables or shared objects are built, AIX ld can
13638 # have problems creating the table of contents. If linking a library
13639 # or program results in "error TOC overflow" add -mminimal-toc to
13640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13643 archive_cmds_CXX=''
13644 hardcode_direct_CXX=yes
13645 hardcode_direct_absolute_CXX=yes
13646 hardcode_libdir_separator_CXX=':'
13647 link_all_deplibs_CXX=yes
13648 file_list_spec_CXX='${wl}-f,'
13650 if test "$GXX" = yes; then
13651 case $host_os in aix4.[012]|aix4.[012].*)
13652 # We only want to do this on AIX 4.2 and lower, the check
13653 # below for broken collect2 doesn't work under 4.3+
13654 collect2name=`${CC} -print-prog-name=collect2`
13655 if test -f "$collect2name" &&
13656 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13658 # We have reworked collect2
13661 # We have old collect2
13662 hardcode_direct_CXX=unsupported
13663 # It fails to find uninstalled libraries when the uninstalled
13664 # path is not listed in the libpath. Setting hardcode_minus_L
13665 # to unsupported forces relinking
13666 hardcode_minus_L_CXX=yes
13667 hardcode_libdir_flag_spec_CXX='-L$libdir'
13668 hardcode_libdir_separator_CXX=
13671 shared_flag='-shared'
13672 if test "$aix_use_runtimelinking" = yes; then
13673 shared_flag="$shared_flag "'${wl}-G'
13677 if test "$host_cpu" = ia64; then
13678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13679 # chokes on -Wl,-G. The following line is correct:
13682 if test "$aix_use_runtimelinking" = yes; then
13683 shared_flag='${wl}-G'
13685 shared_flag='${wl}-bM:SRE'
13690 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13691 # It seems that -bexpall does not export symbols beginning with
13692 # underscore (_), so it is better to generate a list of symbols to
13694 always_export_symbols_CXX=yes
13695 if test "$aix_use_runtimelinking" = yes; then
13696 # Warning - without using the other runtime loading flags (-brtl),
13697 # -berok will link without error, but may produce a broken library.
13698 allow_undefined_flag_CXX='-berok'
13699 # Determine the default libpath from the value encoded in an empty
13701 if test "${lt_cv_aix_libpath+set}" = set; then
13702 aix_libpath=$lt_cv_aix_libpath
13704 if ${lt_cv_aix_libpath__CXX+:} false; then :
13705 $as_echo_n "(cached) " >&6
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13718 if ac_fn_cxx_try_link "$LINENO"; then :
13720 lt_aix_libpath_sed='
13721 /Import File Strings/,/^$/ {
13723 s/^0 *\([^ ]*\) *$/\1/
13727 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13728 # Check for a 64-bit object if we didn't find anything.
13729 if test -z "$lt_cv_aix_libpath__CXX"; then
13730 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 if test -z "$lt_cv_aix_libpath__CXX"; then
13736 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13741 aix_libpath=$lt_cv_aix_libpath__CXX
13744 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13746 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"
13748 if test "$host_cpu" = ia64; then
13749 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13750 allow_undefined_flag_CXX="-z nodefs"
13751 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"
13753 # Determine the default libpath from the value encoded in an
13754 # empty executable.
13755 if test "${lt_cv_aix_libpath+set}" = set; then
13756 aix_libpath=$lt_cv_aix_libpath
13758 if ${lt_cv_aix_libpath__CXX+:} false; then :
13759 $as_echo_n "(cached) " >&6
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13772 if ac_fn_cxx_try_link "$LINENO"; then :
13774 lt_aix_libpath_sed='
13775 /Import File Strings/,/^$/ {
13777 s/^0 *\([^ ]*\) *$/\1/
13781 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13782 # Check for a 64-bit object if we didn't find anything.
13783 if test -z "$lt_cv_aix_libpath__CXX"; then
13784 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 if test -z "$lt_cv_aix_libpath__CXX"; then
13790 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13795 aix_libpath=$lt_cv_aix_libpath__CXX
13798 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13799 # Warning - without using the other run time loading flags,
13800 # -berok will link without error, but may produce a broken library.
13801 no_undefined_flag_CXX=' ${wl}-bernotok'
13802 allow_undefined_flag_CXX=' ${wl}-berok'
13803 if test "$with_gnu_ld" = yes; then
13804 # We only use this code for GNU lds that support --whole-archive.
13805 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13807 # Exported symbols can be pulled into shared objects from archives
13808 whole_archive_flag_spec_CXX='$convenience'
13810 archive_cmds_need_lc_CXX=yes
13811 # This is similar to how AIX traditionally builds its shared
13813 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'
13819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13820 allow_undefined_flag_CXX=unsupported
13821 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13822 # support --undefined. This deserves some investigation. FIXME
13823 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830 case $cc_basename in
13832 # FIXME: insert proper C++ library support
13838 cygwin* | mingw* | pw32* | cegcc*)
13839 case $GXX,$cc_basename in
13842 # hardcode_libdir_flag_spec is actually meaningless, as there is
13843 # no search path for DLLs.
13844 hardcode_libdir_flag_spec_CXX=' '
13845 allow_undefined_flag_CXX=unsupported
13846 always_export_symbols_CXX=yes
13847 file_list_spec_CXX='@'
13848 # Tell ltmain to make .lib files, not .a files.
13850 # Tell ltmain to make .dll files, not .so files.
13852 # FIXME: Setting linknames here is a bad hack.
13853 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13854 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13855 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13857 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13859 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13861 # The linker will not automatically build a static lib if we build a DLL.
13862 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13863 enable_shared_with_static_runtimes_CXX=yes
13865 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13866 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13867 lt_tool_outputfile="@TOOL_OUTPUT@"~
13868 case $lt_outputfile in
13871 lt_outputfile="$lt_outputfile.exe"
13872 lt_tool_outputfile="$lt_tool_outputfile.exe"
13875 func_to_tool_file "$lt_outputfile"~
13876 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13877 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13878 $RM "$lt_outputfile.manifest";
13883 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13884 # as there is no search path for DLLs.
13885 hardcode_libdir_flag_spec_CXX='-L$libdir'
13886 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13887 allow_undefined_flag_CXX=unsupported
13888 always_export_symbols_CXX=no
13889 enable_shared_with_static_runtimes_CXX=yes
13891 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13892 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'
13893 # If the export-symbols file already is a .def file (1st line
13894 # is EXPORTS), use it as is; otherwise, prepend...
13895 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13896 cp $export_symbols $output_objdir/$soname.def;
13898 echo EXPORTS > $output_objdir/$soname.def;
13899 cat $export_symbols >> $output_objdir/$soname.def;
13901 $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'
13908 darwin* | rhapsody*)
13911 archive_cmds_need_lc_CXX=no
13912 hardcode_direct_CXX=no
13913 hardcode_automatic_CXX=yes
13914 hardcode_shlibpath_var_CXX=unsupported
13915 if test "$lt_cv_ld_force_load" = "yes"; then
13916 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\"`'
13918 whole_archive_flag_spec_CXX=''
13920 link_all_deplibs_CXX=yes
13921 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13922 case $cc_basename in
13923 ifort*) _lt_dar_can_shared=yes ;;
13924 *) _lt_dar_can_shared=$GCC ;;
13926 if test "$_lt_dar_can_shared" = "yes"; then
13927 output_verbose_link_cmd=func_echo_all
13928 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}"
13929 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13930 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}"
13931 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}"
13932 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13933 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}"
13934 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}"
13944 case $cc_basename in
13946 # FIXME: insert proper C++ library support
13950 # Green Hills C++ Compiler
13951 # FIXME: insert proper C++ library support
13955 # FIXME: insert proper C++ library support
13962 # C++ shared libraries reported to be fairly broken before
13968 archive_cmds_need_lc_CXX=no
13971 freebsd* | dragonfly*)
13972 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13981 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13982 link_all_deplibs_CXX=yes
13986 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13987 hardcode_libdir_separator_CXX=:
13988 export_dynamic_flag_spec_CXX='${wl}-E'
13989 hardcode_direct_CXX=yes
13990 hardcode_minus_L_CXX=yes # Not in the search PATH,
13991 # but as the default
13992 # location of the library.
13994 case $cc_basename in
13996 # FIXME: insert proper C++ library support
14000 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'
14001 # Commands to make compiler produce verbose output that lists
14002 # what "hidden" libraries, object files and flags are used when
14003 # linking a shared library.
14005 # There doesn't appear to be a way to prevent this compiler from
14006 # explicitly linking system object files so we need to strip them
14007 # from the output so that they don't get included in the library
14009 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"'
14012 if test "$GXX" = yes; then
14013 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'
14015 # FIXME: insert proper C++ library support
14023 if test $with_gnu_ld = no; then
14024 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14025 hardcode_libdir_separator_CXX=:
14031 export_dynamic_flag_spec_CXX='${wl}-E'
14037 hardcode_direct_CXX=no
14038 hardcode_shlibpath_var_CXX=no
14041 hardcode_direct_CXX=yes
14042 hardcode_direct_absolute_CXX=yes
14043 hardcode_minus_L_CXX=yes # Not in the search PATH,
14044 # but as the default
14045 # location of the library.
14049 case $cc_basename in
14051 # FIXME: insert proper C++ library support
14057 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14060 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14063 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14066 # Commands to make compiler produce verbose output that lists
14067 # what "hidden" libraries, object files and flags are used when
14068 # linking a shared library.
14070 # There doesn't appear to be a way to prevent this compiler from
14071 # explicitly linking system object files so we need to strip them
14072 # from the output so that they don't get included in the library
14074 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"'
14077 if test "$GXX" = yes; then
14078 if test $with_gnu_ld = no; then
14081 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14084 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14087 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'
14092 # FIXME: insert proper C++ library support
14100 hardcode_direct_CXX=no
14101 hardcode_shlibpath_var_CXX=no
14102 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14103 export_dynamic_flag_spec_CXX='${wl}-E'
14104 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14105 # Instead, shared libraries are loaded at an image base (0x10000000 by
14106 # default) and relocated if they conflict, which is a slow very memory
14107 # consuming and fragmenting process. To avoid this, we pick a random,
14108 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14109 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14110 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'
14111 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'
14114 case $cc_basename in
14117 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'
14119 # Archives containing C++ object files must be created using
14120 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14121 # necessary to make sure instantiated templates are included
14123 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14126 if test "$GXX" = yes; then
14127 if test "$with_gnu_ld" = no; then
14128 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'
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"` -o $lib'
14133 link_all_deplibs_CXX=yes
14136 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14137 hardcode_libdir_separator_CXX=:
14138 inherit_rpath_CXX=yes
14141 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14142 case $cc_basename in
14144 # Kuck and Associates, Inc. (KAI) C++ Compiler
14146 # KCC will only create a shared library if the output file
14147 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14148 # to its proper name (with version) after linking.
14149 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'
14150 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'
14151 # Commands to make compiler produce verbose output that lists
14152 # what "hidden" libraries, object files and flags are used when
14153 # linking a shared library.
14155 # There doesn't appear to be a way to prevent this compiler from
14156 # explicitly linking system object files so we need to strip them
14157 # from the output so that they don't get included in the library
14159 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"'
14161 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14162 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14164 # Archives containing C++ object files must be created using
14165 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14166 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14171 # version 8.0 and above of icpc choke on multiply defined symbols
14172 # if we add $predep_objects and $postdep_objects, however 7.1 and
14173 # earlier do not add the objects themselves.
14174 case `$CC -V 2>&1` in
14176 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14177 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'
14179 *) # Version 8.0 or newer
14182 ia64*) tmp_idyn=' -i_dynamic';;
14184 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14185 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'
14188 archive_cmds_need_lc_CXX=no
14189 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14190 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14191 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14194 # Portland Group C++ compiler
14196 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14197 prelink_cmds_CXX='tpldir=Template.dir~
14199 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14200 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14201 old_archive_cmds_CXX='tpldir=Template.dir~
14203 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14204 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14206 archive_cmds_CXX='tpldir=Template.dir~
14208 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14209 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14210 archive_expsym_cmds_CXX='tpldir=Template.dir~
14212 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14213 $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'
14215 *) # Version 6 and above use weak symbols
14216 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14217 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'
14221 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14222 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14223 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'
14227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228 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'
14230 runpath_var=LD_RUN_PATH
14231 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14232 hardcode_libdir_separator_CXX=:
14234 # Commands to make compiler produce verbose output that lists
14235 # what "hidden" libraries, object files and flags are used when
14236 # linking a shared library.
14238 # There doesn't appear to be a way to prevent this compiler from
14239 # explicitly linking system object files so we need to strip them
14240 # from the output so that they don't get included in the library
14242 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'
14244 xl* | mpixl* | bgxl*)
14245 # IBM XL 8.0 on PPC, with GNU ld
14246 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14247 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14248 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14249 if test "x$supports_anon_versioning" = xyes; then
14250 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14252 echo "local: *; };" >> $output_objdir/$libname.ver~
14253 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14257 case `$CC -V 2>&1 | sed 5q` in
14260 no_undefined_flag_CXX=' -zdefs'
14261 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14262 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'
14263 hardcode_libdir_flag_spec_CXX='-R$libdir'
14264 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'
14265 compiler_needs_object_CXX=yes
14267 # Not sure whether something based on
14268 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14270 output_verbose_link_cmd='func_echo_all'
14272 # Archives containing C++ object files must be created using
14273 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14274 # necessary to make sure instantiated templates are included
14276 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14284 # FIXME: insert proper C++ library support
14289 # FIXME: insert proper C++ library support
14294 case $cc_basename in
14296 # FIXME: insert proper C++ library support
14300 # FIXME: insert proper C++ library support
14307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14308 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14310 hardcode_libdir_flag_spec_CXX='-R$libdir'
14311 hardcode_direct_CXX=yes
14312 hardcode_shlibpath_var_CXX=no
14314 # Workaround some broken pre-1.5 toolchains
14315 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14323 # C++ shared libraries are fairly broken
14328 if test -f /usr/libexec/ld.so; then
14329 hardcode_direct_CXX=yes
14330 hardcode_shlibpath_var_CXX=no
14331 hardcode_direct_absolute_CXX=yes
14332 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14333 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14335 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14336 export_dynamic_flag_spec_CXX='${wl}-E'
14337 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14339 output_verbose_link_cmd=func_echo_all
14345 osf3* | osf4* | osf5*)
14346 case $cc_basename in
14348 # Kuck and Associates, Inc. (KAI) C++ Compiler
14350 # KCC will only create a shared library if the output file
14351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14352 # to its proper name (with version) after linking.
14353 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'
14355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14356 hardcode_libdir_separator_CXX=:
14358 # Archives containing C++ object files must be created using
14359 # the KAI C++ compiler.
14361 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14362 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14366 # Rational C++ 2.4.1
14367 # FIXME: insert proper C++ library support
14373 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14374 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'
14375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14378 allow_undefined_flag_CXX=' -expect_unresolved \*'
14379 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'
14380 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14381 echo "-hidden">> $lib.exp~
14382 $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~
14384 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14388 hardcode_libdir_separator_CXX=:
14390 # Commands to make compiler produce verbose output that lists
14391 # what "hidden" libraries, object files and flags are used when
14392 # linking a shared library.
14394 # There doesn't appear to be a way to prevent this compiler from
14395 # explicitly linking system object files so we need to strip them
14396 # from the output so that they don't get included in the library
14398 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"'
14401 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14402 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14405 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'
14408 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'
14412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14413 hardcode_libdir_separator_CXX=:
14415 # Commands to make compiler produce verbose output that lists
14416 # what "hidden" libraries, object files and flags are used when
14417 # linking a shared library.
14418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14421 # FIXME: insert proper C++ library support
14429 # FIXME: insert proper C++ library support
14434 case $cc_basename in
14437 # FIXME: insert proper C++ library support
14442 # FIXME: insert proper C++ library support
14446 # FIXME: insert proper C++ library support
14453 case $cc_basename in
14455 # Sun C++ 4.2, 5.x and Centerline C++
14456 archive_cmds_need_lc_CXX=yes
14457 no_undefined_flag_CXX=' -zdefs'
14458 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14459 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14460 $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'
14462 hardcode_libdir_flag_spec_CXX='-R$libdir'
14463 hardcode_shlibpath_var_CXX=no
14465 solaris2.[0-5] | solaris2.[0-5].*) ;;
14467 # The compiler driver will combine and reorder linker options,
14468 # but understands `-z linker_flag'.
14469 # Supported since Solaris 2.6 (maybe 2.5.1?)
14470 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14473 link_all_deplibs_CXX=yes
14475 output_verbose_link_cmd='func_echo_all'
14477 # Archives containing C++ object files must be created using
14478 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14479 # necessary to make sure instantiated templates are included
14481 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14484 # Green Hills C++ Compiler
14485 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14487 # The C++ compiler must be used to create the archive.
14488 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14491 # GNU C++ compiler with Solaris linker
14492 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14493 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14494 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14495 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14496 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14497 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14499 # Commands to make compiler produce verbose output that lists
14500 # what "hidden" libraries, object files and flags are used when
14501 # linking a shared library.
14502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14504 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14506 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14508 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14510 # Commands to make compiler produce verbose output that lists
14511 # what "hidden" libraries, object files and flags are used when
14512 # linking a shared library.
14513 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14516 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14518 solaris2.[0-5] | solaris2.[0-5].*) ;;
14520 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14529 no_undefined_flag_CXX='${wl}-z,text'
14530 archive_cmds_need_lc_CXX=no
14531 hardcode_shlibpath_var_CXX=no
14532 runpath_var='LD_RUN_PATH'
14534 case $cc_basename in
14536 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14537 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546 sysv5* | sco3.2v5* | sco5v6*)
14547 # Note: We can NOT use -z defs as we might desire, because we do not
14548 # link with -lc, and that would cause any symbols used from libc to
14549 # always be unresolved, which means just about no library would
14550 # ever link correctly. If we're not using GNU ld we use -z text
14551 # though, which does catch some bad symbols but isn't as heavy-handed
14553 no_undefined_flag_CXX='${wl}-z,text'
14554 allow_undefined_flag_CXX='${wl}-z,nodefs'
14555 archive_cmds_need_lc_CXX=no
14556 hardcode_shlibpath_var_CXX=no
14557 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14558 hardcode_libdir_separator_CXX=':'
14559 link_all_deplibs_CXX=yes
14560 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14561 runpath_var='LD_RUN_PATH'
14563 case $cc_basename in
14565 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14567 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14568 '"$old_archive_cmds_CXX"
14569 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14570 '"$reload_cmds_CXX"
14573 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14574 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580 case $cc_basename in
14582 # NonStop-UX NCC 3.20
14583 # FIXME: insert proper C++ library support
14587 # FIXME: insert proper C++ library support
14594 # FIXME: insert proper C++ library support
14599 # FIXME: insert proper C++ library support
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14605 $as_echo "$ld_shlibs_CXX" >&6; }
14606 test "$ld_shlibs_CXX" = no && can_build_shared=no
14612 ## There is no encapsulation within the following macros, do not change
14613 ## the running order or otherwise move them around unless you know exactly
14614 ## what you are doing...
14615 # Dependencies to place before and after the object being linked:
14616 predep_objects_CXX=
14617 postdep_objects_CXX=
14620 compiler_lib_search_path_CXX=
14622 cat > conftest.$ac_ext <<_LT_EOF
14626 Foo (void) { a = 0; }
14633 _lt_libdeps_save_CFLAGS=$CFLAGS
14634 case "$CC $CFLAGS " in #(
14635 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14636 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14640 (eval $ac_compile) 2>&5
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; }; then
14644 # Parse the compiler output and extract the necessary
14645 # objects, libraries and library flags.
14647 # Sentinel used to keep track of whether or not we are before
14648 # the conftest object file.
14649 pre_test_object_deps_done=no
14651 for p in `eval "$output_verbose_link_cmd"`; do
14652 case ${prev}${p} in
14655 # Some compilers place space between "-{L,R}" and the path.
14656 # Remove the space.
14657 if test $p = "-L" ||
14658 test $p = "-R"; then
14663 # Expand the sysroot to ease extracting the directories later.
14664 if test -z "$prev"; then
14666 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14667 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14668 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14672 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14674 if test "$pre_test_object_deps_done" = no; then
14677 # Internal compiler library paths should come after those
14678 # provided the user. The postdeps already come after the
14679 # user supplied libs so there is no need to process them.
14680 if test -z "$compiler_lib_search_path_CXX"; then
14681 compiler_lib_search_path_CXX="${prev}${p}"
14683 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14686 # The "-l" case would never come before the object being
14687 # linked, so don't bother handling this case.
14690 if test -z "$postdeps_CXX"; then
14691 postdeps_CXX="${prev}${p}"
14693 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14699 *.lto.$objext) ;; # Ignore GCC LTO objects
14701 # This assumes that the test object file only shows up
14702 # once in the compiler output.
14703 if test "$p" = "conftest.$objext"; then
14704 pre_test_object_deps_done=yes
14708 if test "$pre_test_object_deps_done" = no; then
14709 if test -z "$predep_objects_CXX"; then
14710 predep_objects_CXX="$p"
14712 predep_objects_CXX="$predep_objects_CXX $p"
14715 if test -z "$postdep_objects_CXX"; then
14716 postdep_objects_CXX="$p"
14718 postdep_objects_CXX="$postdep_objects_CXX $p"
14723 *) ;; # Ignore the rest.
14731 echo "libtool.m4: error: problem compiling CXX test program"
14734 $RM -f confest.$objext
14735 CFLAGS=$_lt_libdeps_save_CFLAGS
14737 # PORTME: override above test on systems where it is broken
14740 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14741 # hack all around it, let's just trust "g++" to DTRT.
14742 predep_objects_CXX=
14743 postdep_objects_CXX=
14748 case `$CC -V 2>&1 | sed 5q` in
14752 # The more standards-conforming stlport4 library is
14753 # incompatible with the Cstd library. Avoid specifying
14754 # it if it's in CXXFLAGS. Ignore libCrun as
14755 # -library=stlport4 depends on it.
14756 case " $CXX $CXXFLAGS " in
14757 *" -library=stlport4 "*)
14758 solaris_use_stlport4=yes
14762 if test "$solaris_use_stlport4" != yes; then
14763 postdeps_CXX='-library=Cstd -library=Crun'
14770 case $cc_basename in
14772 # The more standards-conforming stlport4 library is
14773 # incompatible with the Cstd library. Avoid specifying
14774 # it if it's in CXXFLAGS. Ignore libCrun as
14775 # -library=stlport4 depends on it.
14776 case " $CXX $CXXFLAGS " in
14777 *" -library=stlport4 "*)
14778 solaris_use_stlport4=yes
14782 # Adding this requires a known-good setup of shared libraries for
14783 # Sun compiler versions before 5.6, else PIC objects from an old
14784 # archive will be linked into the output, leading to subtle bugs.
14785 if test "$solaris_use_stlport4" != yes; then
14786 postdeps_CXX='-library=Cstd -library=Crun'
14794 case " $postdeps_CXX " in
14795 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14797 compiler_lib_search_dirs_CXX=
14798 if test -n "${compiler_lib_search_path_CXX}"; then
14799 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14832 lt_prog_compiler_wl_CXX=
14833 lt_prog_compiler_pic_CXX=
14834 lt_prog_compiler_static_CXX=
14837 # C++ specific cases for pic, static, wl, etc.
14838 if test "$GXX" = yes; then
14839 lt_prog_compiler_wl_CXX='-Wl,'
14840 lt_prog_compiler_static_CXX='-static'
14844 # All AIX code is PIC.
14845 if test "$host_cpu" = ia64; then
14846 # AIX 5 now supports IA64 processor
14847 lt_prog_compiler_static_CXX='-Bstatic'
14854 # see comment about AmigaOS4 .so support
14855 lt_prog_compiler_pic_CXX='-fPIC'
14858 # FIXME: we need at least 68020 code to build shared libraries, but
14859 # adding the `-m68020' flag to GCC prevents building anything better,
14861 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14866 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14867 # PIC is the default for these OSes.
14869 mingw* | cygwin* | os2* | pw32* | cegcc*)
14870 # This hack is so that the source file can tell whether it is being
14871 # built for inclusion in a dll (and should export symbols for example).
14872 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14873 # (--disable-auto-import) libraries
14874 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14876 darwin* | rhapsody*)
14877 # PIC is the default on this platform
14878 # Common symbols not allowed in MH_DYLIB files
14879 lt_prog_compiler_pic_CXX='-fno-common'
14882 # DJGPP does not support shared libraries at all
14883 lt_prog_compiler_pic_CXX=
14886 # PIC is the default for Haiku.
14887 # The "-static" flag exists, but is broken.
14888 lt_prog_compiler_static_CXX=
14891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14892 # Instead, we relocate shared libraries at runtime.
14895 if test -d /usr/nec; then
14896 lt_prog_compiler_pic_CXX=-Kconform_pic
14900 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14901 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14902 # sets the default TLS model and affects inlining.
14907 lt_prog_compiler_pic_CXX='-fPIC'
14912 # QNX uses GNU C++, but need to define -shared option too, otherwise
14913 # it will coredump.
14914 lt_prog_compiler_pic_CXX='-fPIC -shared'
14917 lt_prog_compiler_pic_CXX='-fPIC'
14923 # All AIX code is PIC.
14924 if test "$host_cpu" = ia64; then
14925 # AIX 5 now supports IA64 processor
14926 lt_prog_compiler_static_CXX='-Bstatic'
14928 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14932 case $cc_basename in
14934 # Green Hills C++ Compiler
14935 # _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"
14939 mingw* | cygwin* | os2* | pw32* | cegcc*)
14940 # This hack is so that the source file can tell whether it is being
14941 # built for inclusion in a dll (and should export symbols for example).
14942 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14945 case $cc_basename in
14947 lt_prog_compiler_pic_CXX='-KPIC'
14950 # Green Hills C++ Compiler
14951 lt_prog_compiler_pic_CXX='-pic'
14957 freebsd* | dragonfly*)
14958 # FreeBSD uses GNU C++
14960 hpux9* | hpux10* | hpux11*)
14961 case $cc_basename in
14963 lt_prog_compiler_wl_CXX='-Wl,'
14964 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14965 if test "$host_cpu" != ia64; then
14966 lt_prog_compiler_pic_CXX='+Z'
14970 lt_prog_compiler_wl_CXX='-Wl,'
14971 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14977 lt_prog_compiler_pic_CXX='+Z'
14986 # This is c89, which is MS Visual C++ (no shared libs)
14987 # Anyone wants to do a port?
14989 irix5* | irix6* | nonstopux*)
14990 case $cc_basename in
14992 lt_prog_compiler_wl_CXX='-Wl,'
14993 lt_prog_compiler_static_CXX='-non_shared'
14994 # CC pic flag -KPIC is the default.
15000 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15001 case $cc_basename in
15004 lt_prog_compiler_wl_CXX='--backend -Wl,'
15005 lt_prog_compiler_pic_CXX='-fPIC'
15008 # old Intel C++ for x86_64 which still supported -KPIC.
15009 lt_prog_compiler_wl_CXX='-Wl,'
15010 lt_prog_compiler_pic_CXX='-KPIC'
15011 lt_prog_compiler_static_CXX='-static'
15014 # Intel C++, used to be incompatible with GCC.
15015 # ICC 10 doesn't accept -KPIC any more.
15016 lt_prog_compiler_wl_CXX='-Wl,'
15017 lt_prog_compiler_pic_CXX='-fPIC'
15018 lt_prog_compiler_static_CXX='-static'
15021 # Portland Group C++ compiler
15022 lt_prog_compiler_wl_CXX='-Wl,'
15023 lt_prog_compiler_pic_CXX='-fpic'
15024 lt_prog_compiler_static_CXX='-Bstatic'
15028 # Make sure the PIC flag is empty. It appears that all Alpha
15029 # Linux and Compaq Tru64 Unix objects are PIC.
15030 lt_prog_compiler_pic_CXX=
15031 lt_prog_compiler_static_CXX='-non_shared'
15033 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15034 # IBM XL 8.0, 9.0 on PPC and BlueGene
15035 lt_prog_compiler_wl_CXX='-Wl,'
15036 lt_prog_compiler_pic_CXX='-qpic'
15037 lt_prog_compiler_static_CXX='-qstaticlink'
15040 case `$CC -V 2>&1 | sed 5q` in
15043 lt_prog_compiler_pic_CXX='-KPIC'
15044 lt_prog_compiler_static_CXX='-Bstatic'
15045 lt_prog_compiler_wl_CXX='-Qoption ld '
15056 case $cc_basename in
15058 lt_prog_compiler_pic_CXX='-W c,exportall'
15067 # QNX uses GNU C++, but need to define -shared option too, otherwise
15068 # it will coredump.
15069 lt_prog_compiler_pic_CXX='-fPIC -shared'
15071 osf3* | osf4* | osf5*)
15072 case $cc_basename in
15074 lt_prog_compiler_wl_CXX='--backend -Wl,'
15077 # Rational C++ 2.4.1
15078 lt_prog_compiler_pic_CXX='-pic'
15081 # Digital/Compaq C++
15082 lt_prog_compiler_wl_CXX='-Wl,'
15083 # Make sure the PIC flag is empty. It appears that all Alpha
15084 # Linux and Compaq Tru64 Unix objects are PIC.
15085 lt_prog_compiler_pic_CXX=
15086 lt_prog_compiler_static_CXX='-non_shared'
15095 case $cc_basename in
15097 # Sun C++ 4.2, 5.x and Centerline C++
15098 lt_prog_compiler_pic_CXX='-KPIC'
15099 lt_prog_compiler_static_CXX='-Bstatic'
15100 lt_prog_compiler_wl_CXX='-Qoption ld '
15103 # Green Hills C++ Compiler
15104 lt_prog_compiler_pic_CXX='-PIC'
15111 case $cc_basename in
15114 lt_prog_compiler_pic_CXX='-pic'
15115 lt_prog_compiler_static_CXX='-Bstatic'
15119 lt_prog_compiler_pic_CXX='-pic'
15125 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15126 case $cc_basename in
15128 lt_prog_compiler_wl_CXX='-Wl,'
15129 lt_prog_compiler_pic_CXX='-KPIC'
15130 lt_prog_compiler_static_CXX='-Bstatic'
15135 case $cc_basename in
15137 # NonStop-UX NCC 3.20
15138 lt_prog_compiler_pic_CXX='-KPIC'
15147 lt_prog_compiler_can_build_shared_CXX=no
15153 # For platforms which do not support PIC, -DPIC is meaningless:
15155 lt_prog_compiler_pic_CXX=
15158 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15163 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15164 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15165 $as_echo_n "(cached) " >&6
15167 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15170 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15171 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15174 # Check to make sure the PIC flag actually works.
15176 if test -n "$lt_prog_compiler_pic_CXX"; then
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15178 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15179 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15180 $as_echo_n "(cached) " >&6
15182 lt_cv_prog_compiler_pic_works_CXX=no
15183 ac_outfile=conftest.$ac_objext
15184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15185 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15186 # Insert the option either (1) after the last *FLAGS variable, or
15187 # (2) before a word containing "conftest.", or (3) at the end.
15188 # Note that $ac_compile itself does not contain backslashes and begins
15189 # with a dollar sign (not a hyphen), so the echo should work correctly.
15190 # The option is referenced via a variable to avoid confusing sed.
15191 lt_compile=`echo "$ac_compile" | $SED \
15192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15194 -e 's:$: $lt_compiler_flag:'`
15195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15196 (eval "$lt_compile" 2>conftest.err)
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 if (exit $ac_status) && test -s "$ac_outfile"; then
15201 # The compiler can only warn and ignore the option if not recognized
15202 # So say no if there are warnings other than the usual output.
15203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15206 lt_cv_prog_compiler_pic_works_CXX=yes
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15213 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15215 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15216 case $lt_prog_compiler_pic_CXX in
15218 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15221 lt_prog_compiler_pic_CXX=
15222 lt_prog_compiler_can_build_shared_CXX=no
15232 # Check to make sure the static flag actually works.
15234 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15236 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15237 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15238 $as_echo_n "(cached) " >&6
15240 lt_cv_prog_compiler_static_works_CXX=no
15241 save_LDFLAGS="$LDFLAGS"
15242 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15245 # The linker can only warn and ignore the option if not recognized
15246 # So say no if there are warnings
15247 if test -s conftest.err; then
15248 # Append any errors to the config.log.
15249 cat conftest.err 1>&5
15250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15252 if diff conftest.exp conftest.er2 >/dev/null; then
15253 lt_cv_prog_compiler_static_works_CXX=yes
15256 lt_cv_prog_compiler_static_works_CXX=yes
15260 LDFLAGS="$save_LDFLAGS"
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15264 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15266 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15269 lt_prog_compiler_static_CXX=
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15276 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15277 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15278 $as_echo_n "(cached) " >&6
15280 lt_cv_prog_compiler_c_o_CXX=no
15281 $RM -r conftest 2>/dev/null
15285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15287 lt_compiler_flag="-o out/conftest2.$ac_objext"
15288 # Insert the option either (1) after the last *FLAGS variable, or
15289 # (2) before a word containing "conftest.", or (3) at the end.
15290 # Note that $ac_compile itself does not contain backslashes and begins
15291 # with a dollar sign (not a hyphen), so the echo should work correctly.
15292 lt_compile=`echo "$ac_compile" | $SED \
15293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15295 -e 's:$: $lt_compiler_flag:'`
15296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15297 (eval "$lt_compile" 2>out/conftest.err)
15299 cat out/conftest.err >&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15303 # The compiler can only warn and ignore the option if not recognized
15304 # So say no if there are warnings
15305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15306 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15307 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15308 lt_cv_prog_compiler_c_o_CXX=yes
15313 # SGI C++ compiler will create directory out/ii_files/ for
15314 # template instantiation
15315 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15316 $RM out/* && rmdir out
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15323 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15328 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15329 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15330 $as_echo_n "(cached) " >&6
15332 lt_cv_prog_compiler_c_o_CXX=no
15333 $RM -r conftest 2>/dev/null
15337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15339 lt_compiler_flag="-o out/conftest2.$ac_objext"
15340 # Insert the option either (1) after the last *FLAGS variable, or
15341 # (2) before a word containing "conftest.", or (3) at the end.
15342 # Note that $ac_compile itself does not contain backslashes and begins
15343 # with a dollar sign (not a hyphen), so the echo should work correctly.
15344 lt_compile=`echo "$ac_compile" | $SED \
15345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347 -e 's:$: $lt_compiler_flag:'`
15348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15349 (eval "$lt_compile" 2>out/conftest.err)
15351 cat out/conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15355 # The compiler can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15360 lt_cv_prog_compiler_c_o_CXX=yes
15365 # SGI C++ compiler will create directory out/ii_files/ for
15366 # template instantiation
15367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15368 $RM out/* && rmdir out
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15375 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15380 hard_links="nottested"
15381 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15382 # do not overwrite the value of need_locks provided by the user
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15384 $as_echo_n "checking if we can lock with hard links... " >&6; }
15387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15389 ln conftest.a conftest.b 2>&5 || hard_links=no
15390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15392 $as_echo "$hard_links" >&6; }
15393 if test "$hard_links" = no; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15395 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15405 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15407 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15408 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15411 # If we're using GNU nm, then we don't want the "-C" option.
15412 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15413 # Also, AIX nm treats weak defined symbols like other global defined
15414 # symbols, whereas GNU nm marks them as "W".
15415 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15416 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'
15418 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'
15422 export_symbols_cmds_CXX="$ltdll_cmds"
15424 cygwin* | mingw* | cegcc*)
15425 case $cc_basename in
15428 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'
15429 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15434 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15439 $as_echo "$ld_shlibs_CXX" >&6; }
15440 test "$ld_shlibs_CXX" = no && can_build_shared=no
15442 with_gnu_ld_CXX=$with_gnu_ld
15450 # Do we need to explicitly link libc?
15452 case "x$archive_cmds_need_lc_CXX" in
15454 # Assume -lc should be added
15455 archive_cmds_need_lc_CXX=yes
15457 if test "$enable_shared" = yes && test "$GCC" = yes; then
15458 case $archive_cmds_CXX in
15460 # FIXME: we may have to deal with multi-command sequences.
15463 # Test whether the compiler implicitly links with -lc since on some
15464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15465 # to ld, don't add -lc before -lgcc.
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15467 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15468 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15469 $as_echo_n "(cached) " >&6
15472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15475 (eval $ac_compile) 2>&5
15477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15478 test $ac_status = 0; } 2>conftest.err; then
15481 libobjs=conftest.$ac_objext
15483 wl=$lt_prog_compiler_wl_CXX
15484 pic_flag=$lt_prog_compiler_pic_CXX
15490 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15491 allow_undefined_flag_CXX=
15492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15493 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15496 test $ac_status = 0; }
15498 lt_cv_archive_cmds_need_lc_CXX=no
15500 lt_cv_archive_cmds_need_lc_CXX=yes
15502 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15504 cat conftest.err 1>&5
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15510 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15511 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15582 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15584 library_names_spec=
15585 libname_spec='lib$name'
15589 postuninstall_cmds=
15593 shlibpath_overrides_runpath=unknown
15595 dynamic_linker="$host_os ld.so"
15596 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15597 need_lib_prefix=unknown
15598 hardcode_into_libs=no
15600 # when you set need_version to no, make sure it does not cause -set_version
15601 # flags to be left without arguments
15602 need_version=unknown
15607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15608 shlibpath_var=LIBPATH
15610 # AIX 3 has no versioning support, so we append a major version to the name.
15611 soname_spec='${libname}${release}${shared_ext}$major'
15618 hardcode_into_libs=yes
15619 if test "$host_cpu" = ia64; then
15620 # AIX 5 supports IA64
15621 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15622 shlibpath_var=LD_LIBRARY_PATH
15624 # With GCC up to 2.95.x, collect2 would create an import file
15625 # for dependence libraries. The import file would start with
15626 # the line `#! .'. This would cause the generated library to
15627 # depend on `.', always an invalid library. This was fixed in
15628 # development snapshots of GCC prior to 3.0.
15630 aix4 | aix4.[01] | aix4.[01].*)
15631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15633 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15636 can_build_shared=no
15640 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15641 # soname into executable. Probably we can add versioning support to
15642 # collect2, so additional links can be useful in future.
15643 if test "$aix_use_runtimelinking" = yes; then
15644 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15645 # instead of lib<name>.a to let people know that these are not
15646 # typical AIX shared libraries.
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 # We preserve .a as extension for shared libraries through AIX4.2
15650 # and later when we are not doing run time linking.
15651 library_names_spec='${libname}${release}.a $libname.a'
15652 soname_spec='${libname}${release}${shared_ext}$major'
15654 shlibpath_var=LIBPATH
15661 # Since July 2007 AmigaOS4 officially supports .so libraries.
15662 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666 library_names_spec='$libname.ixlibrary $libname.a'
15667 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15668 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'
15674 library_names_spec='${libname}${shared_ext}'
15675 dynamic_linker="$host_os ld.so"
15676 shlibpath_var=LIBRARY_PATH
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15688 # the default ld.so.conf also contains /usr/contrib/lib and
15689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15690 # libtool to hard-code these into programs
15693 cygwin* | mingw* | pw32* | cegcc*)
15694 version_type=windows
15699 case $GCC,$cc_basename in
15702 library_names_spec='$libname.dll.a'
15703 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15704 postinstall_cmds='base_file=`basename \${file}`~
15705 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15706 dldir=$destdir/`dirname \$dlpath`~
15707 test -d \$dldir || mkdir -p \$dldir~
15708 $install_prog $dir/$dlname \$dldir/$dlname~
15709 chmod a+x \$dldir/$dlname~
15710 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15711 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15713 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15714 dlpath=$dir/\$dldll~
15716 shlibpath_overrides_runpath=yes
15720 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15721 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725 # MinGW DLLs use traditional 'lib' prefix
15726 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15729 # pw32 DLLs use 'pw' prefix rather than 'lib'
15730 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15733 dynamic_linker='Win32 ld.exe'
15738 libname_spec='$name'
15739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740 library_names_spec='${libname}.dll.lib'
15744 sys_lib_search_path_spec=
15747 for lt_path in $LIB
15750 # Let DOS variable expansion print the short 8.3 style file name.
15751 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15752 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15755 # Convert to MSYS style.
15756 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15759 # Convert to unix form, then to dos form, then back to unix form
15760 # but this time dos style (no spaces!) so that the unix form looks
15761 # like /cygdrive/c/PROGRA~1:/cygdr...
15762 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15763 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15764 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15767 sys_lib_search_path_spec="$LIB"
15768 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15769 # It is most probably a Windows format PATH.
15770 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15774 # FIXME: find the short name or the path components, as spaces are
15775 # common. (e.g. "Program Files" -> "PROGRA~1")
15779 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15780 postinstall_cmds='base_file=`basename \${file}`~
15781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15782 dldir=$destdir/`dirname \$dlpath`~
15783 test -d \$dldir || mkdir -p \$dldir~
15784 $install_prog $dir/$dlname \$dldir/$dlname'
15785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15786 dlpath=$dir/\$dldll~
15788 shlibpath_overrides_runpath=yes
15789 dynamic_linker='Win32 link.exe'
15793 # Assume MSVC wrapper
15794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15795 dynamic_linker='Win32 ld.exe'
15798 # FIXME: first we should search . and the directory the executable is in
15802 darwin* | rhapsody*)
15803 dynamic_linker="$host_os dyld"
15804 version_type=darwin
15807 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15808 soname_spec='${libname}${release}${major}$shared_ext'
15809 shlibpath_overrides_runpath=yes
15810 shlibpath_var=DYLD_LIBRARY_PATH
15811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15813 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15821 soname_spec='${libname}${release}${shared_ext}$major'
15822 shlibpath_var=LD_LIBRARY_PATH
15829 freebsd* | dragonfly*)
15830 # DragonFly does not have aout. When/if they implement a new
15831 # versioning mechanism, adjust this.
15832 if test -x /usr/bin/objformat; then
15833 objformat=`/usr/bin/objformat`
15836 freebsd[123]*) objformat=aout ;;
15837 *) objformat=elf ;;
15840 version_type=freebsd-$objformat
15841 case $version_type in
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15852 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=yes
15857 freebsd3.[01]* | freebsdelf3.[01]*)
15858 shlibpath_overrides_runpath=yes
15859 hardcode_into_libs=yes
15861 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15862 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15863 shlibpath_overrides_runpath=no
15864 hardcode_into_libs=yes
15866 *) # from 4.6 on, and DragonFly
15867 shlibpath_overrides_runpath=yes
15868 hardcode_into_libs=yes
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15880 hardcode_into_libs=yes
15887 dynamic_linker="$host_os runtime_loader"
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 shlibpath_var=LIBRARY_PATH
15891 shlibpath_overrides_runpath=yes
15892 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15893 hardcode_into_libs=yes
15896 hpux9* | hpux10* | hpux11*)
15897 # Give a soname corresponding to the major version so that dld.sl refuses to
15898 # link against other versions.
15905 hardcode_into_libs=yes
15906 dynamic_linker="$host_os dld.so"
15907 shlibpath_var=LD_LIBRARY_PATH
15908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 if test "X$HPUX_IA64_MODE" = X32; then
15912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15920 hardcode_into_libs=yes
15921 dynamic_linker="$host_os dld.sl"
15922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15931 dynamic_linker="$host_os dld.sl"
15932 shlibpath_var=SHLIB_PATH
15933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15938 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15939 postinstall_cmds='chmod 555 $lib'
15940 # or fails outright, so override atomically:
15941 install_override_mode=555
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
15950 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15951 shlibpath_var=LD_LIBRARY_PATH
15952 shlibpath_overrides_runpath=no
15953 hardcode_into_libs=yes
15956 irix5* | irix6* | nonstopux*)
15958 nonstopux*) version_type=nonstopux ;;
15960 if test "$lt_cv_prog_gnu_ld" = yes; then
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15971 irix5* | nonstopux*)
15972 libsuff= shlibsuff=
15975 case $LD in # libtool.m4 will add one of these switches to LD
15976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15977 libsuff= shlibsuff= libmagic=32-bit;;
15978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15979 libsuff=32 shlibsuff=N32 libmagic=N32;;
15980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15981 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15982 *) libsuff= shlibsuff= libmagic=never-match;;
15986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15987 shlibpath_overrides_runpath=no
15988 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15989 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15990 hardcode_into_libs=yes
15993 # No shared lib support for Linux oldld, aout, or coff.
15994 linux*oldld* | linux*aout* | linux*coff*)
15998 # This must be Linux ELF.
15999 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 shlibpath_overrides_runpath=no
16009 # Some binutils ld are patched to set DT_RUNPATH
16010 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16011 $as_echo_n "(cached) " >&6
16013 lt_cv_shlibpath_overrides_runpath=no
16014 save_LDFLAGS=$LDFLAGS
16015 save_libdir=$libdir
16016 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16017 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16029 if ac_fn_cxx_try_link "$LINENO"; then :
16030 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16031 lt_cv_shlibpath_overrides_runpath=yes
16034 rm -f core conftest.err conftest.$ac_objext \
16035 conftest$ac_exeext conftest.$ac_ext
16036 LDFLAGS=$save_LDFLAGS
16037 libdir=$save_libdir
16041 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16043 # This implies no fast_install, which is unacceptable.
16044 # Some rework will be needed to allow for fast_install
16045 # before this can be enabled.
16046 hardcode_into_libs=yes
16048 # Append ld.so.conf contents to the search path
16049 if test -f /etc/ld.so.conf; then
16050 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' ' '`
16051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16054 # We used to test for /lib/ld.so.1 and disable shared libraries on
16055 # powerpc, because MkLinux only supported shared libraries with the
16056 # GNU dynamic linker. Since this was broken with cross compilers,
16057 # most powerpc-linux boxes support dynamic linking these days and
16058 # people can always --disable-shared, the test was removed, and we
16059 # assume the GNU/Linux dynamic linker is in use.
16060 dynamic_linker='GNU/Linux ld.so'
16067 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16070 dynamic_linker='NetBSD (a.out) ld.so'
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 dynamic_linker='NetBSD ld.elf_so'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16078 hardcode_into_libs=yes
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093 soname_spec='${libname}${release}${shared_ext}$major'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 shlibpath_overrides_runpath=no
16096 hardcode_into_libs=yes
16097 dynamic_linker='ldqnx.so'
16102 sys_lib_dlsearch_path_spec="/usr/lib"
16104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16107 *) need_version=no ;;
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16114 openbsd2.[89] | openbsd2.[89].*)
16115 shlibpath_overrides_runpath=no
16118 shlibpath_overrides_runpath=yes
16122 shlibpath_overrides_runpath=yes
16127 libname_spec='$name'
16130 library_names_spec='$libname${shared_ext} $libname.a'
16131 dynamic_linker='OS/2 ld.exe'
16132 shlibpath_var=LIBPATH
16135 osf3* | osf4* | osf5*)
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 shlibpath_var=LD_LIBRARY_PATH
16142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=yes
16158 hardcode_into_libs=yes
16159 # ldd complains unless libraries are executable
16160 postinstall_cmds='chmod +x $lib'
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=yes
16169 if test "$with_gnu_ld" = yes; then
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 case $host_vendor in
16182 shlibpath_overrides_runpath=no
16184 runpath_var=LD_RUN_PATH
16192 shlibpath_overrides_runpath=no
16193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16199 if test -d /usr/nec ;then
16201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16202 soname_spec='$libname${shared_ext}.$major'
16203 shlibpath_var=LD_LIBRARY_PATH
16207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16208 version_type=freebsd-elf
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=yes
16215 hardcode_into_libs=yes
16216 if test "$with_gnu_ld" = yes; then
16217 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16219 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16222 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16226 sys_lib_dlsearch_path_spec='/usr/lib'
16230 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=no
16237 hardcode_into_libs=yes
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16252 $as_echo "$dynamic_linker" >&6; }
16253 test "$dynamic_linker" = no && can_build_shared=no
16255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16256 if test "$GCC" = yes; then
16257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16260 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16261 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16263 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16264 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16305 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16306 hardcode_action_CXX=
16307 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16308 test -n "$runpath_var_CXX" ||
16309 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16311 # We can hardcode non-existent directories.
16312 if test "$hardcode_direct_CXX" != no &&
16313 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16314 # have to relink, otherwise we might link with an installed library
16315 # when we should be linking with a yet-to-be-installed one
16316 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16317 test "$hardcode_minus_L_CXX" != no; then
16318 # Linking always hardcodes the temporary library directory.
16319 hardcode_action_CXX=relink
16321 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16322 hardcode_action_CXX=immediate
16325 # We cannot hardcode anything, or else we can only hardcode existing
16327 hardcode_action_CXX=unsupported
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16330 $as_echo "$hardcode_action_CXX" >&6; }
16332 if test "$hardcode_action_CXX" = relink ||
16333 test "$inherit_rpath_CXX" = yes; then
16334 # Fast installation is not supported
16335 enable_fast_install=no
16336 elif test "$shlibpath_overrides_runpath" = yes ||
16337 test "$enable_shared" = no; then
16338 # Fast installation is not necessary
16339 enable_fast_install=needless
16348 fi # test -n "$compiler"
16351 CFLAGS=$lt_save_CFLAGS
16355 with_gnu_ld=$lt_save_with_gnu_ld
16356 lt_cv_path_LDCXX=$lt_cv_path_LD
16357 lt_cv_path_LD=$lt_save_path_LD
16358 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16359 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16360 fi # test "$_lt_caught_CXX_error" != yes
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16380 ac_config_commands="$ac_config_commands libtool"
16385 # Only expand once:
16393 ac_cpp='$CPP $CPPFLAGS'
16394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16401 $as_echo_n "checking for library containing dlopen... " >&6; }
16402 if ${ac_cv_search_dlopen+:} false; then :
16403 $as_echo_n "(cached) " >&6
16405 ac_func_search_save_LIBS=$LIBS
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h. */
16409 /* Override any GCC internal prototype to avoid an error.
16410 Use char because int might match the return type of a GCC
16411 builtin and then its argument prototype would still apply. */
16424 for ac_lib in '' dl; do
16425 if test -z "$ac_lib"; then
16426 ac_res="none required"
16429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16431 if ac_fn_c_try_link "$LINENO"; then :
16432 ac_cv_search_dlopen=$ac_res
16434 rm -f core conftest.err conftest.$ac_objext \
16436 if ${ac_cv_search_dlopen+:} false; then :
16440 if ${ac_cv_search_dlopen+:} false; then :
16443 ac_cv_search_dlopen=no
16445 rm conftest.$ac_ext
16446 LIBS=$ac_func_search_save_LIBS
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16449 $as_echo "$ac_cv_search_dlopen" >&6; }
16450 ac_res=$ac_cv_search_dlopen
16451 if test "$ac_res" != no; then :
16452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16454 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16456 if test "$ac_cv_search_dlopen" != "none required" ; then
16457 LIBADD_DLOPEN="-ldl"
16459 libltdl_cv_lib_dl_dlopen="yes"
16460 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16465 # include <dlfcn.h>
16476 if ac_fn_c_try_link "$LINENO"; then :
16478 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16480 libltdl_cv_func_dlopen="yes"
16481 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16484 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16485 if ${ac_cv_lib_svld_dlopen+:} false; then :
16486 $as_echo_n "(cached) " >&6
16488 ac_check_lib_save_LIBS=$LIBS
16489 LIBS="-lsvld $LIBS"
16490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h. */
16493 /* Override any GCC internal prototype to avoid an error.
16494 Use char because int might match the return type of a GCC
16495 builtin and then its argument prototype would still apply. */
16508 if ac_fn_c_try_link "$LINENO"; then :
16509 ac_cv_lib_svld_dlopen=yes
16511 ac_cv_lib_svld_dlopen=no
16513 rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
16515 LIBS=$ac_check_lib_save_LIBS
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16518 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16519 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16521 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16523 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16524 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16528 rm -f core conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16532 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16534 lt_save_LIBS="$LIBS"
16535 LIBS="$LIBS $LIBADD_DLOPEN"
16536 for ac_func in dlerror
16538 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16539 if test "x$ac_cv_func_dlerror" = xyes; then :
16540 cat >>confdefs.h <<_ACEOF
16541 #define HAVE_DLERROR 1
16547 LIBS="$lt_save_LIBS"
16552 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16553 if test "x$ac_cv_func_shl_load" = xyes; then :
16555 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16557 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16560 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16561 if ${ac_cv_lib_dld_shl_load+:} false; then :
16562 $as_echo_n "(cached) " >&6
16564 ac_check_lib_save_LIBS=$LIBS
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16569 /* Override any GCC internal prototype to avoid an error.
16570 Use char because int might match the return type of a GCC
16571 builtin and then its argument prototype would still apply. */
16579 return shl_load ();
16584 if ac_fn_c_try_link "$LINENO"; then :
16585 ac_cv_lib_dld_shl_load=yes
16587 ac_cv_lib_dld_shl_load=no
16589 rm -f core conftest.err conftest.$ac_objext \
16590 conftest$ac_exeext conftest.$ac_ext
16591 LIBS=$ac_check_lib_save_LIBS
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16594 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16595 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16597 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16599 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16600 LIBADD_SHL_LOAD="-ldld"
16609 # We only want this for pre-Mac OS X 10.4.
16610 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16611 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16613 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16615 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16620 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16622 cygwin* | mingw* | os2* | pw32*)
16623 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16625 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16631 cat >>confdefs.h <<_ACEOF
16632 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16635 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16640 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16641 if ${ac_cv_lib_dld_dld_link+:} false; then :
16642 $as_echo_n "(cached) " >&6
16644 ac_check_lib_save_LIBS=$LIBS
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16649 /* Override any GCC internal prototype to avoid an error.
16650 Use char because int might match the return type of a GCC
16651 builtin and then its argument prototype would still apply. */
16659 return dld_link ();
16664 if ac_fn_c_try_link "$LINENO"; then :
16665 ac_cv_lib_dld_dld_link=yes
16667 ac_cv_lib_dld_dld_link=no
16669 rm -f core conftest.err conftest.$ac_objext \
16670 conftest$ac_exeext conftest.$ac_ext
16671 LIBS=$ac_check_lib_save_LIBS
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16674 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16675 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16677 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16679 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16686 if test -n "$LT_DLLOADERS"
16688 for lt_loader in $LT_DLLOADERS; do
16689 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16692 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16697 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16701 ac_cpp='$CPP $CPPFLAGS'
16702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16709 if test x$use_libtool != xno; then
16710 DEFAULT_OBJECT_TYPE=".lo"
16711 DEFAULT_ARCHIVE_TYPE=".la"
16712 DEFAULT_SHARED_OBJECT_TYPE=".la"
16713 LIBTOOL="\$(LIBTOOL)"
16714 LIBTOOL_INSTALL_TARGET="libtool-install"
16715 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16716 LIBTOOL_CLEAN_TARGET="libtool-clean"
16717 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16718 FD_PLUGIN_DIR="src/plugins/fd"
16721 DEFAULT_OBJECT_TYPE=".o"
16722 DEFAULT_ARCHIVE_TYPE=".a"
16723 DEFAULT_SHARED_OBJECT_TYPE=".so"
16724 LIBTOOL="# \$(LIBTOOL)"
16725 LIBTOOL_INSTALL_TARGET=""
16726 LIBTOOL_UNINSTALL_TARGET=""
16727 LIBTOOL_CLEAN_TARGET=""
16728 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16743 # Check whether --enable-includes was given.
16744 if test "${enable_includes+set}" = set; then :
16745 enableval=$enable_includes;
16746 if test x$enableval = xyes; then
16747 install_includes=yes
16755 if test x$use_libtool != xno -a x$install_includes = xyes; then
16756 INCLUDE_INSTALL_TARGET="install-includes"
16757 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16759 INCLUDE_INSTALL_TARGET=""
16760 INCLUDE_UNINSTALL_TARGET=""
16768 *cygwin* ) CYGWIN=yes;;
16772 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16778 HAVE_SUN_OS_FALSE='#'
16780 HAVE_SUN_OS_TRUE='#'
16783 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16790 HAVE_SUN_OS_FALSE='#'
16792 HAVE_SUN_OS_TRUE='#'
16797 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16803 HAVE_OSF1_OS_FALSE='#'
16805 HAVE_OSF1_OS_TRUE='#'
16806 HAVE_OSF1_OS_FALSE=
16808 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16815 HAVE_OSF1_OS_FALSE='#'
16817 HAVE_OSF1_OS_TRUE='#'
16818 HAVE_OSF1_OS_FALSE=
16822 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16828 HAVE_AIX_OS_FALSE='#'
16830 HAVE_AIX_OS_TRUE='#'
16833 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16840 HAVE_AIX_OS_FALSE='#'
16842 HAVE_AIX_OS_TRUE='#'
16847 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16853 HAVE_HPUX_OS_FALSE='#'
16855 HAVE_HPUX_OS_TRUE='#'
16856 HAVE_HPUX_OS_FALSE=
16858 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16865 HAVE_HPUX_OS_FALSE='#'
16867 HAVE_HPUX_OS_TRUE='#'
16868 HAVE_HPUX_OS_FALSE=
16872 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16877 HAVE_LINUX_OS_TRUE=
16878 HAVE_LINUX_OS_FALSE='#'
16880 HAVE_LINUX_OS_TRUE='#'
16881 HAVE_LINUX_OS_FALSE=
16883 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16889 HAVE_LINUX_OS_TRUE=
16890 HAVE_LINUX_OS_FALSE='#'
16892 HAVE_LINUX_OS_TRUE='#'
16893 HAVE_LINUX_OS_FALSE=
16897 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16902 HAVE_FREEBSD_OS_TRUE=
16903 HAVE_FREEBSD_OS_FALSE='#'
16905 HAVE_FREEBSD_OS_TRUE='#'
16906 HAVE_FREEBSD_OS_FALSE=
16908 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16914 HAVE_FREEBSD_OS_TRUE=
16915 HAVE_FREEBSD_OS_FALSE='#'
16917 HAVE_FREEBSD_OS_TRUE='#'
16918 HAVE_FREEBSD_OS_FALSE=
16922 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16927 HAVE_NETBSD_OS_TRUE=
16928 HAVE_NETBSD_OS_FALSE='#'
16930 HAVE_NETBSD_OS_TRUE='#'
16931 HAVE_NETBSD_OS_FALSE=
16933 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16939 HAVE_NETBSD_OS_TRUE=
16940 HAVE_NETBSD_OS_FALSE='#'
16942 HAVE_NETBSD_OS_TRUE='#'
16943 HAVE_NETBSD_OS_FALSE=
16947 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16952 HAVE_OPENBSD_OS_TRUE=
16953 HAVE_OPENBSD_OS_FALSE='#'
16955 HAVE_OPENBSD_OS_TRUE='#'
16956 HAVE_OPENBSD_OS_FALSE=
16958 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16964 HAVE_OPENBSD_OS_TRUE=
16965 HAVE_OPENBSD_OS_FALSE='#'
16967 HAVE_OPENBSD_OS_TRUE='#'
16968 HAVE_OPENBSD_OS_FALSE=
16972 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16978 HAVE_BSDI_OS_FALSE='#'
16980 HAVE_BSDI_OS_TRUE='#'
16981 HAVE_BSDI_OS_FALSE=
16983 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16990 HAVE_BSDI_OS_FALSE='#'
16992 HAVE_BSDI_OS_TRUE='#'
16993 HAVE_BSDI_OS_FALSE=
16997 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17003 HAVE_SGI_OS_FALSE='#'
17005 HAVE_SGI_OS_TRUE='#'
17008 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17015 HAVE_SGI_OS_FALSE='#'
17017 HAVE_SGI_OS_TRUE='#'
17022 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17028 HAVE_IRIX_OS_FALSE='#'
17030 HAVE_IRIX_OS_TRUE='#'
17031 HAVE_IRIX_OS_FALSE=
17033 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17040 HAVE_IRIX_OS_FALSE='#'
17042 HAVE_IRIX_OS_TRUE='#'
17043 HAVE_IRIX_OS_FALSE=
17047 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17052 HAVE_DARWIN_OS_TRUE=
17053 HAVE_DARWIN_OS_FALSE='#'
17055 HAVE_DARWIN_OS_TRUE='#'
17056 HAVE_DARWIN_OS_FALSE=
17058 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17064 HAVE_DARWIN_OS_TRUE=
17065 HAVE_DARWIN_OS_FALSE='#'
17067 HAVE_DARWIN_OS_TRUE='#'
17068 HAVE_DARWIN_OS_FALSE=
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17074 $as_echo_n "checking for Operating System Distribution... " >&6; }
17075 if test "x$DISTNAME" != "x"
17077 echo "distname set to $DISTNAME"
17078 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17081 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17084 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17087 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17090 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17093 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17096 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17099 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17102 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17105 elif test -f /etc/SuSE-release
17108 elif test -d /etc/SuSEconfig
17111 elif test -f /etc/mandrake-release
17114 elif test -f /etc/whitebox-release
17117 elif test -f /etc/redhat-release
17120 elif test -f /etc/gentoo-release
17123 elif test -f /etc/debian_version
17126 elif test -f /etc/slackware-version
17129 elif test x$host_vendor = xapple
17132 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17135 elif test -f /etc/engarde-version
17138 elif test -f /etc/arch-release
17141 elif test "$CYGWIN" = yes
17144 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17150 $as_echo "done" >&6; }
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17154 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17156 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17157 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17158 $as_echo_n "(cached) " >&6
17160 cat >conftest.make <<\_ACEOF
17163 @echo '@@@%%%=$(MAKE)=@@@%%%'
17165 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17166 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17167 *@@@%%%=?*=@@@%%%*)
17168 eval ac_cv_prog_make_${ac_make}_set=yes;;
17170 eval ac_cv_prog_make_${ac_make}_set=no;;
17172 rm -f conftest.make
17174 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17176 $as_echo "yes" >&6; }
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17180 $as_echo "no" >&6; }
17181 SET_MAKE="MAKE=${MAKE-make}"
17187 if test -n "$ac_aux_dir"; then
17188 case "$ac_aux_dir" in
17189 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17190 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17193 if test -z "$MKINSTALLDIRS"; then
17194 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17200 $as_echo_n "checking whether NLS is requested... " >&6; }
17201 # Check whether --enable-nls was given.
17202 if test "${enable_nls+set}" = set; then :
17203 enableval=$enable_nls; USE_NLS=$enableval
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17209 $as_echo "$USE_NLS" >&6; }
17216 # Prepare PATH_SEPARATOR.
17217 # The user is always right.
17218 if test "${PATH_SEPARATOR+set}" != set; then
17219 echo "#! /bin/sh" >conf$$.sh
17220 echo "exit 0" >>conf$$.sh
17222 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17230 # Find out how to test for executable files. Don't use a zero-byte file,
17231 # as systems may use methods other than mode bits to determine executability.
17232 cat >conf$$.file <<_ASEOF
17236 chmod +x conf$$.file
17237 if test -x conf$$.file >/dev/null 2>&1; then
17238 ac_executable_p="test -x"
17240 ac_executable_p="test -f"
17244 # Extract the first word of "msgfmt", so it can be a program name with args.
17245 set dummy msgfmt; ac_word=$2
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17247 $as_echo_n "checking for $ac_word... " >&6; }
17248 if ${ac_cv_path_MSGFMT+:} false; then :
17249 $as_echo_n "(cached) " >&6
17253 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17256 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17257 for ac_dir in $PATH; do
17259 test -z "$ac_dir" && ac_dir=.
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17262 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17263 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17264 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17265 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17272 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17276 MSGFMT="$ac_cv_path_MSGFMT"
17277 if test "$MSGFMT" != ":"; then
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17279 $as_echo "$MSGFMT" >&6; }
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17285 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17286 set dummy gmsgfmt; ac_word=$2
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17288 $as_echo_n "checking for $ac_word... " >&6; }
17289 if ${ac_cv_path_GMSGFMT+:} false; then :
17290 $as_echo_n "(cached) " >&6
17294 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298 for as_dir in $PATH
17301 test -z "$as_dir" && as_dir=.
17302 for ac_exec_ext in '' $ac_executable_extensions; do
17303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17304 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17312 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17316 GMSGFMT=$ac_cv_path_GMSGFMT
17317 if test -n "$GMSGFMT"; then
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17319 $as_echo "$GMSGFMT" >&6; }
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 $as_echo "no" >&6; }
17328 # Prepare PATH_SEPARATOR.
17329 # The user is always right.
17330 if test "${PATH_SEPARATOR+set}" != set; then
17331 echo "#! /bin/sh" >conf$$.sh
17332 echo "exit 0" >>conf$$.sh
17334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17342 # Find out how to test for executable files. Don't use a zero-byte file,
17343 # as systems may use methods other than mode bits to determine executability.
17344 cat >conf$$.file <<_ASEOF
17348 chmod +x conf$$.file
17349 if test -x conf$$.file >/dev/null 2>&1; then
17350 ac_executable_p="test -x"
17352 ac_executable_p="test -f"
17356 # Extract the first word of "xgettext", so it can be a program name with args.
17357 set dummy xgettext; ac_word=$2
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17359 $as_echo_n "checking for $ac_word... " >&6; }
17360 if ${ac_cv_path_XGETTEXT+:} false; then :
17361 $as_echo_n "(cached) " >&6
17363 case "$XGETTEXT" in
17365 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17368 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17369 for ac_dir in $PATH; do
17371 test -z "$ac_dir" && ac_dir=.
17372 for ac_exec_ext in '' $ac_executable_extensions; do
17373 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17374 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17375 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17376 (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
17377 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17384 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17388 XGETTEXT="$ac_cv_path_XGETTEXT"
17389 if test "$XGETTEXT" != ":"; then
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17391 $as_echo "$XGETTEXT" >&6; }
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17394 $as_echo "no" >&6; }
17400 # Prepare PATH_SEPARATOR.
17401 # The user is always right.
17402 if test "${PATH_SEPARATOR+set}" != set; then
17403 echo "#! /bin/sh" >conf$$.sh
17404 echo "exit 0" >>conf$$.sh
17406 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17414 # Find out how to test for executable files. Don't use a zero-byte file,
17415 # as systems may use methods other than mode bits to determine executability.
17416 cat >conf$$.file <<_ASEOF
17420 chmod +x conf$$.file
17421 if test -x conf$$.file >/dev/null 2>&1; then
17422 ac_executable_p="test -x"
17424 ac_executable_p="test -f"
17428 # Extract the first word of "msgmerge", so it can be a program name with args.
17429 set dummy msgmerge; ac_word=$2
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17431 $as_echo_n "checking for $ac_word... " >&6; }
17432 if ${ac_cv_path_MSGMERGE+:} false; then :
17433 $as_echo_n "(cached) " >&6
17435 case "$MSGMERGE" in
17437 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17440 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17441 for ac_dir in $PATH; do
17443 test -z "$ac_dir" && ac_dir=.
17444 for ac_exec_ext in '' $ac_executable_extensions; do
17445 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17446 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17447 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17448 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17455 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17459 MSGMERGE="$ac_cv_path_MSGMERGE"
17460 if test "$MSGMERGE" != ":"; then
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17462 $as_echo "$MSGMERGE" >&6; }
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17465 $as_echo "no" >&6; }
17469 if test "$GMSGFMT" != ":"; then
17470 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17471 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17474 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17476 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17481 if test "$XGETTEXT" != ":"; then
17482 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17483 (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
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17487 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17493 ac_config_commands="$ac_config_commands default-1"
17497 if test "X$prefix" = "XNONE"; then
17498 acl_final_prefix="$ac_default_prefix"
17500 acl_final_prefix="$prefix"
17502 if test "X$exec_prefix" = "XNONE"; then
17503 acl_final_exec_prefix='${prefix}'
17505 acl_final_exec_prefix="$exec_prefix"
17507 acl_save_prefix="$prefix"
17508 prefix="$acl_final_prefix"
17509 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17510 prefix="$acl_save_prefix"
17513 # Check whether --with-gnu-ld was given.
17514 if test "${with_gnu_ld+set}" = set; then :
17515 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17520 # Prepare PATH_SEPARATOR.
17521 # The user is always right.
17522 if test "${PATH_SEPARATOR+set}" != set; then
17523 echo "#! /bin/sh" >conf$$.sh
17524 echo "exit 0" >>conf$$.sh
17526 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17534 if test "$GCC" = yes; then
17535 # Check if gcc -print-prog-name=ld gives a path.
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17537 $as_echo_n "checking for ld used by GCC... " >&6; }
17540 # gcc leaves a trailing carriage return which upsets mingw
17541 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17543 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17546 # Accept absolute paths.
17547 [\\/]* | [A-Za-z]:[\\/]*)
17548 re_direlt='/[^/][^/]*/\.\./'
17549 # Canonicalize the path of ld
17550 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17551 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17552 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17554 test -z "$LD" && LD="$ac_prog"
17557 # If it fails, then pretend we aren't using GCC.
17561 # If it is relative, then search for the first ld in PATH.
17562 with_gnu_ld=unknown
17565 elif test "$with_gnu_ld" = yes; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17567 $as_echo_n "checking for GNU ld... " >&6; }
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17570 $as_echo_n "checking for non-GNU ld... " >&6; }
17572 if ${acl_cv_path_LD+:} false; then :
17573 $as_echo_n "(cached) " >&6
17575 if test -z "$LD"; then
17576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17577 for ac_dir in $PATH; do
17578 test -z "$ac_dir" && ac_dir=.
17579 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17580 acl_cv_path_LD="$ac_dir/$ac_prog"
17581 # Check to see if the program is GNU ld. I'd rather use --version,
17582 # but apparently some GNU ld's only accept -v.
17583 # Break only if it was the GNU/non-GNU ld that we prefer.
17584 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17585 *GNU* | *'with BFD'*)
17586 test "$with_gnu_ld" != no && break ;;
17588 test "$with_gnu_ld" != yes && break ;;
17594 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17598 LD="$acl_cv_path_LD"
17599 if test -n "$LD"; then
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17601 $as_echo "$LD" >&6; }
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604 $as_echo "no" >&6; }
17606 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17608 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17609 if ${acl_cv_prog_gnu_ld+:} false; then :
17610 $as_echo_n "(cached) " >&6
17612 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17613 case `$LD -v 2>&1 </dev/null` in
17614 *GNU* | *'with BFD'*)
17615 acl_cv_prog_gnu_ld=yes ;;
17617 acl_cv_prog_gnu_ld=no ;;
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17621 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17622 with_gnu_ld=$acl_cv_prog_gnu_ld
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17628 $as_echo_n "checking for shared library run path origin... " >&6; }
17629 if ${acl_cv_rpath+:} false; then :
17630 $as_echo_n "(cached) " >&6
17633 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17634 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17636 rm -f ./conftest.sh
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17641 $as_echo "$acl_cv_rpath" >&6; }
17643 libext="$acl_cv_libext"
17644 shlibext="$acl_cv_shlibext"
17645 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17646 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17647 hardcode_direct="$acl_cv_hardcode_direct"
17648 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17649 # Check whether --enable-rpath was given.
17650 if test "${enable_rpath+set}" = set; then :
17651 enableval=$enable_rpath; :
17665 acl_save_prefix="$prefix"
17666 prefix="$acl_final_prefix"
17667 acl_save_exec_prefix="$exec_prefix"
17668 exec_prefix="$acl_final_exec_prefix"
17670 eval additional_includedir=\"$includedir\"
17671 eval additional_libdir=\"$libdir\"
17673 exec_prefix="$acl_save_exec_prefix"
17674 prefix="$acl_save_prefix"
17677 # Check whether --with-libiconv-prefix was given.
17678 if test "${with_libiconv_prefix+set}" = set; then :
17679 withval=$with_libiconv_prefix;
17680 if test "X$withval" = "Xno"; then
17683 if test "X$withval" = "X"; then
17685 acl_save_prefix="$prefix"
17686 prefix="$acl_final_prefix"
17687 acl_save_exec_prefix="$exec_prefix"
17688 exec_prefix="$acl_final_exec_prefix"
17690 eval additional_includedir=\"$includedir\"
17691 eval additional_libdir=\"$libdir\"
17693 exec_prefix="$acl_save_exec_prefix"
17694 prefix="$acl_save_prefix"
17697 additional_includedir="$withval/include"
17698 additional_libdir="$withval/lib"
17709 names_already_handled=
17710 names_next_round='iconv '
17711 while test -n "$names_next_round"; do
17712 names_this_round="$names_next_round"
17714 for name in $names_this_round; do
17716 for n in $names_already_handled; do
17717 if test "$n" = "$name"; then
17718 already_handled=yes
17722 if test -z "$already_handled"; then
17723 names_already_handled="$names_already_handled $name"
17724 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17725 eval value=\"\$HAVE_LIB$uppername\"
17726 if test -n "$value"; then
17727 if test "$value" = yes; then
17728 eval value=\"\$LIB$uppername\"
17729 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17730 eval value=\"\$LTLIB$uppername\"
17731 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17740 if test $use_additional = yes; then
17741 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17742 found_dir="$additional_libdir"
17743 found_so="$additional_libdir/lib$name.$shlibext"
17744 if test -f "$additional_libdir/lib$name.la"; then
17745 found_la="$additional_libdir/lib$name.la"
17748 if test -f "$additional_libdir/lib$name.$libext"; then
17749 found_dir="$additional_libdir"
17750 found_a="$additional_libdir/lib$name.$libext"
17751 if test -f "$additional_libdir/lib$name.la"; then
17752 found_la="$additional_libdir/lib$name.la"
17757 if test "X$found_dir" = "X"; then
17758 for x in $LDFLAGS $LTLIBICONV; do
17760 acl_save_prefix="$prefix"
17761 prefix="$acl_final_prefix"
17762 acl_save_exec_prefix="$exec_prefix"
17763 exec_prefix="$acl_final_exec_prefix"
17765 exec_prefix="$acl_save_exec_prefix"
17766 prefix="$acl_save_prefix"
17770 dir=`echo "X$x" | sed -e 's/^X-L//'`
17771 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17773 found_so="$dir/lib$name.$shlibext"
17774 if test -f "$dir/lib$name.la"; then
17775 found_la="$dir/lib$name.la"
17778 if test -f "$dir/lib$name.$libext"; then
17780 found_a="$dir/lib$name.$libext"
17781 if test -f "$dir/lib$name.la"; then
17782 found_la="$dir/lib$name.la"
17788 if test "X$found_dir" != "X"; then
17793 if test "X$found_dir" != "X"; then
17794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17795 if test "X$found_so" != "X"; then
17796 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17797 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17800 for x in $ltrpathdirs; do
17801 if test "X$x" = "X$found_dir"; then
17806 if test -z "$haveit"; then
17807 ltrpathdirs="$ltrpathdirs $found_dir"
17809 if test "$hardcode_direct" = yes; then
17810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17812 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17815 for x in $rpathdirs; do
17816 if test "X$x" = "X$found_dir"; then
17821 if test -z "$haveit"; then
17822 rpathdirs="$rpathdirs $found_dir"
17826 for x in $LDFLAGS $LIBICONV; do
17828 acl_save_prefix="$prefix"
17829 prefix="$acl_final_prefix"
17830 acl_save_exec_prefix="$exec_prefix"
17831 exec_prefix="$acl_final_exec_prefix"
17833 exec_prefix="$acl_save_exec_prefix"
17834 prefix="$acl_save_prefix"
17836 if test "X$x" = "X-L$found_dir"; then
17841 if test -z "$haveit"; then
17842 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17844 if test "$hardcode_minus_L" != no; then
17845 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17847 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17853 if test "X$found_a" != "X"; then
17854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17856 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17859 additional_includedir=
17860 case "$found_dir" in
17862 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17863 additional_includedir="$basedir/include"
17866 if test "X$additional_includedir" != "X"; then
17867 if test "X$additional_includedir" != "X/usr/include"; then
17869 if test "X$additional_includedir" = "X/usr/local/include"; then
17870 if test -n "$GCC"; then
17872 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17876 if test -z "$haveit"; then
17877 for x in $CPPFLAGS $INCICONV; do
17879 acl_save_prefix="$prefix"
17880 prefix="$acl_final_prefix"
17881 acl_save_exec_prefix="$exec_prefix"
17882 exec_prefix="$acl_final_exec_prefix"
17884 exec_prefix="$acl_save_exec_prefix"
17885 prefix="$acl_save_prefix"
17887 if test "X$x" = "X-I$additional_includedir"; then
17892 if test -z "$haveit"; then
17893 if test -d "$additional_includedir"; then
17894 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17900 if test -n "$found_la"; then
17901 save_libdir="$libdir"
17902 case "$found_la" in
17903 */* | *\\*) . "$found_la" ;;
17904 *) . "./$found_la" ;;
17906 libdir="$save_libdir"
17907 for dep in $dependency_libs; do
17910 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17911 if test "X$additional_libdir" != "X/usr/lib"; then
17913 if test "X$additional_libdir" = "X/usr/local/lib"; then
17914 if test -n "$GCC"; then
17916 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17920 if test -z "$haveit"; then
17922 for x in $LDFLAGS $LIBICONV; do
17924 acl_save_prefix="$prefix"
17925 prefix="$acl_final_prefix"
17926 acl_save_exec_prefix="$exec_prefix"
17927 exec_prefix="$acl_final_exec_prefix"
17929 exec_prefix="$acl_save_exec_prefix"
17930 prefix="$acl_save_prefix"
17932 if test "X$x" = "X-L$additional_libdir"; then
17937 if test -z "$haveit"; then
17938 if test -d "$additional_libdir"; then
17939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17943 for x in $LDFLAGS $LTLIBICONV; do
17945 acl_save_prefix="$prefix"
17946 prefix="$acl_final_prefix"
17947 acl_save_exec_prefix="$exec_prefix"
17948 exec_prefix="$acl_final_exec_prefix"
17950 exec_prefix="$acl_save_exec_prefix"
17951 prefix="$acl_save_prefix"
17953 if test "X$x" = "X-L$additional_libdir"; then
17958 if test -z "$haveit"; then
17959 if test -d "$additional_libdir"; then
17960 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17967 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17968 if test "$enable_rpath" != no; then
17970 for x in $rpathdirs; do
17971 if test "X$x" = "X$dir"; then
17976 if test -z "$haveit"; then
17977 rpathdirs="$rpathdirs $dir"
17980 for x in $ltrpathdirs; do
17981 if test "X$x" = "X$dir"; then
17986 if test -z "$haveit"; then
17987 ltrpathdirs="$ltrpathdirs $dir"
17992 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17995 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17998 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18005 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18006 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18012 if test "X$rpathdirs" != "X"; then
18013 if test -n "$hardcode_libdir_separator"; then
18015 for found_dir in $rpathdirs; do
18016 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18018 acl_save_libdir="$libdir"
18020 eval flag=\"$hardcode_libdir_flag_spec\"
18021 libdir="$acl_save_libdir"
18022 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18024 for found_dir in $rpathdirs; do
18025 acl_save_libdir="$libdir"
18026 libdir="$found_dir"
18027 eval flag=\"$hardcode_libdir_flag_spec\"
18028 libdir="$acl_save_libdir"
18029 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18033 if test "X$ltrpathdirs" != "X"; then
18034 for found_dir in $ltrpathdirs; do
18035 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18057 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18058 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18059 $as_echo_n "(cached) " >&6
18061 gt_save_CPPFLAGS="$CPPFLAGS"
18062 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18063 gt_save_LIBS="$LIBS"
18064 LIBS="$LIBS -framework CoreFoundation"
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18067 #include <CFPreferences.h>
18071 CFPreferencesCopyAppValue(NULL, NULL)
18076 if ac_fn_c_try_link "$LINENO"; then :
18077 gt_cv_func_CFPreferencesCopyAppValue=yes
18079 gt_cv_func_CFPreferencesCopyAppValue=no
18081 rm -f core conftest.err conftest.$ac_objext \
18082 conftest$ac_exeext conftest.$ac_ext
18083 CPPFLAGS="$gt_save_CPPFLAGS"
18084 LIBS="$gt_save_LIBS"
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18087 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18088 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18090 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18094 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18095 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18096 $as_echo_n "(cached) " >&6
18098 gt_save_CPPFLAGS="$CPPFLAGS"
18099 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18100 gt_save_LIBS="$LIBS"
18101 LIBS="$LIBS -framework CoreFoundation"
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18104 #include <CFLocale.h>
18108 CFLocaleCopyCurrent();
18113 if ac_fn_c_try_link "$LINENO"; then :
18114 gt_cv_func_CFLocaleCopyCurrent=yes
18116 gt_cv_func_CFLocaleCopyCurrent=no
18118 rm -f core conftest.err conftest.$ac_objext \
18119 conftest$ac_exeext conftest.$ac_ext
18120 CPPFLAGS="$gt_save_CPPFLAGS"
18121 LIBS="$gt_save_LIBS"
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18124 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18125 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18127 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18131 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18132 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18139 $as_echo_n "checking whether NLS is requested... " >&6; }
18140 # Check whether --enable-nls was given.
18141 if test "${enable_nls+set}" = set; then :
18142 enableval=$enable_nls; USE_NLS=$enableval
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18148 $as_echo "$USE_NLS" >&6; }
18157 if test "$USE_NLS" = "yes"; then
18158 gt_use_preinstalled_gnugettext=no
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18166 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18167 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18168 $as_echo_n "(cached) " >&6
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h. */
18172 #include <libintl.h>
18173 extern int _nl_msg_cat_cntr;
18174 extern int *_nl_domain_bindings;
18178 bindtextdomain ("", "");
18179 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18184 if ac_fn_c_try_link "$LINENO"; then :
18185 gt_cv_func_gnugettext1_libc=yes
18187 gt_cv_func_gnugettext1_libc=no
18189 rm -f core conftest.err conftest.$ac_objext \
18190 conftest$ac_exeext conftest.$ac_ext
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18193 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18195 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18201 am_save_CPPFLAGS="$CPPFLAGS"
18203 for element in $INCICONV; do
18205 for x in $CPPFLAGS; do
18207 acl_save_prefix="$prefix"
18208 prefix="$acl_final_prefix"
18209 acl_save_exec_prefix="$exec_prefix"
18210 exec_prefix="$acl_final_exec_prefix"
18212 exec_prefix="$acl_save_exec_prefix"
18213 prefix="$acl_save_prefix"
18215 if test "X$x" = "X$element"; then
18220 if test -z "$haveit"; then
18221 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18227 $as_echo_n "checking for iconv... " >&6; }
18228 if ${am_cv_func_iconv+:} false; then :
18229 $as_echo_n "(cached) " >&6
18232 am_cv_func_iconv="no, consider installing GNU libiconv"
18234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18235 /* end confdefs.h. */
18236 #include <stdlib.h>
18241 iconv_t cd = iconv_open("","");
18242 iconv(cd,NULL,NULL,NULL,NULL);
18248 if ac_fn_c_try_link "$LINENO"; then :
18249 am_cv_func_iconv=yes
18251 rm -f core conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
18253 if test "$am_cv_func_iconv" != yes; then
18254 am_save_LIBS="$LIBS"
18255 LIBS="$LIBS $LIBICONV"
18256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h. */
18258 #include <stdlib.h>
18263 iconv_t cd = iconv_open("","");
18264 iconv(cd,NULL,NULL,NULL,NULL);
18270 if ac_fn_c_try_link "$LINENO"; then :
18271 am_cv_lib_iconv=yes
18272 am_cv_func_iconv=yes
18274 rm -f core conftest.err conftest.$ac_objext \
18275 conftest$ac_exeext conftest.$ac_ext
18276 LIBS="$am_save_LIBS"
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18281 $as_echo "$am_cv_func_iconv" >&6; }
18282 if test "$am_cv_func_iconv" = yes; then
18284 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18287 if test "$am_cv_lib_iconv" = yes; then
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18289 $as_echo_n "checking how to link with libiconv... " >&6; }
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18291 $as_echo "$LIBICONV" >&6; }
18293 CPPFLAGS="$am_save_CPPFLAGS"
18305 acl_save_prefix="$prefix"
18306 prefix="$acl_final_prefix"
18307 acl_save_exec_prefix="$exec_prefix"
18308 exec_prefix="$acl_final_exec_prefix"
18310 eval additional_includedir=\"$includedir\"
18311 eval additional_libdir=\"$libdir\"
18313 exec_prefix="$acl_save_exec_prefix"
18314 prefix="$acl_save_prefix"
18317 # Check whether --with-libintl-prefix was given.
18318 if test "${with_libintl_prefix+set}" = set; then :
18319 withval=$with_libintl_prefix;
18320 if test "X$withval" = "Xno"; then
18323 if test "X$withval" = "X"; then
18325 acl_save_prefix="$prefix"
18326 prefix="$acl_final_prefix"
18327 acl_save_exec_prefix="$exec_prefix"
18328 exec_prefix="$acl_final_exec_prefix"
18330 eval additional_includedir=\"$includedir\"
18331 eval additional_libdir=\"$libdir\"
18333 exec_prefix="$acl_save_exec_prefix"
18334 prefix="$acl_save_prefix"
18337 additional_includedir="$withval/include"
18338 additional_libdir="$withval/lib"
18349 names_already_handled=
18350 names_next_round='intl '
18351 while test -n "$names_next_round"; do
18352 names_this_round="$names_next_round"
18354 for name in $names_this_round; do
18356 for n in $names_already_handled; do
18357 if test "$n" = "$name"; then
18358 already_handled=yes
18362 if test -z "$already_handled"; then
18363 names_already_handled="$names_already_handled $name"
18364 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18365 eval value=\"\$HAVE_LIB$uppername\"
18366 if test -n "$value"; then
18367 if test "$value" = yes; then
18368 eval value=\"\$LIB$uppername\"
18369 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18370 eval value=\"\$LTLIB$uppername\"
18371 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18380 if test $use_additional = yes; then
18381 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18382 found_dir="$additional_libdir"
18383 found_so="$additional_libdir/lib$name.$shlibext"
18384 if test -f "$additional_libdir/lib$name.la"; then
18385 found_la="$additional_libdir/lib$name.la"
18388 if test -f "$additional_libdir/lib$name.$libext"; then
18389 found_dir="$additional_libdir"
18390 found_a="$additional_libdir/lib$name.$libext"
18391 if test -f "$additional_libdir/lib$name.la"; then
18392 found_la="$additional_libdir/lib$name.la"
18397 if test "X$found_dir" = "X"; then
18398 for x in $LDFLAGS $LTLIBINTL; do
18400 acl_save_prefix="$prefix"
18401 prefix="$acl_final_prefix"
18402 acl_save_exec_prefix="$exec_prefix"
18403 exec_prefix="$acl_final_exec_prefix"
18405 exec_prefix="$acl_save_exec_prefix"
18406 prefix="$acl_save_prefix"
18410 dir=`echo "X$x" | sed -e 's/^X-L//'`
18411 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18413 found_so="$dir/lib$name.$shlibext"
18414 if test -f "$dir/lib$name.la"; then
18415 found_la="$dir/lib$name.la"
18418 if test -f "$dir/lib$name.$libext"; then
18420 found_a="$dir/lib$name.$libext"
18421 if test -f "$dir/lib$name.la"; then
18422 found_la="$dir/lib$name.la"
18428 if test "X$found_dir" != "X"; then
18433 if test "X$found_dir" != "X"; then
18434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18435 if test "X$found_so" != "X"; then
18436 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18437 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18440 for x in $ltrpathdirs; do
18441 if test "X$x" = "X$found_dir"; then
18446 if test -z "$haveit"; then
18447 ltrpathdirs="$ltrpathdirs $found_dir"
18449 if test "$hardcode_direct" = yes; then
18450 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18452 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18453 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18455 for x in $rpathdirs; do
18456 if test "X$x" = "X$found_dir"; then
18461 if test -z "$haveit"; then
18462 rpathdirs="$rpathdirs $found_dir"
18466 for x in $LDFLAGS $LIBINTL; do
18468 acl_save_prefix="$prefix"
18469 prefix="$acl_final_prefix"
18470 acl_save_exec_prefix="$exec_prefix"
18471 exec_prefix="$acl_final_exec_prefix"
18473 exec_prefix="$acl_save_exec_prefix"
18474 prefix="$acl_save_prefix"
18476 if test "X$x" = "X-L$found_dir"; then
18481 if test -z "$haveit"; then
18482 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18484 if test "$hardcode_minus_L" != no; then
18485 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18487 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18493 if test "X$found_a" != "X"; then
18494 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18496 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18499 additional_includedir=
18500 case "$found_dir" in
18502 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18503 additional_includedir="$basedir/include"
18506 if test "X$additional_includedir" != "X"; then
18507 if test "X$additional_includedir" != "X/usr/include"; then
18509 if test "X$additional_includedir" = "X/usr/local/include"; then
18510 if test -n "$GCC"; then
18512 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18516 if test -z "$haveit"; then
18517 for x in $CPPFLAGS $INCINTL; do
18519 acl_save_prefix="$prefix"
18520 prefix="$acl_final_prefix"
18521 acl_save_exec_prefix="$exec_prefix"
18522 exec_prefix="$acl_final_exec_prefix"
18524 exec_prefix="$acl_save_exec_prefix"
18525 prefix="$acl_save_prefix"
18527 if test "X$x" = "X-I$additional_includedir"; then
18532 if test -z "$haveit"; then
18533 if test -d "$additional_includedir"; then
18534 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18540 if test -n "$found_la"; then
18541 save_libdir="$libdir"
18542 case "$found_la" in
18543 */* | *\\*) . "$found_la" ;;
18544 *) . "./$found_la" ;;
18546 libdir="$save_libdir"
18547 for dep in $dependency_libs; do
18550 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18551 if test "X$additional_libdir" != "X/usr/lib"; then
18553 if test "X$additional_libdir" = "X/usr/local/lib"; then
18554 if test -n "$GCC"; then
18556 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18560 if test -z "$haveit"; then
18562 for x in $LDFLAGS $LIBINTL; do
18564 acl_save_prefix="$prefix"
18565 prefix="$acl_final_prefix"
18566 acl_save_exec_prefix="$exec_prefix"
18567 exec_prefix="$acl_final_exec_prefix"
18569 exec_prefix="$acl_save_exec_prefix"
18570 prefix="$acl_save_prefix"
18572 if test "X$x" = "X-L$additional_libdir"; then
18577 if test -z "$haveit"; then
18578 if test -d "$additional_libdir"; then
18579 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18583 for x in $LDFLAGS $LTLIBINTL; do
18585 acl_save_prefix="$prefix"
18586 prefix="$acl_final_prefix"
18587 acl_save_exec_prefix="$exec_prefix"
18588 exec_prefix="$acl_final_exec_prefix"
18590 exec_prefix="$acl_save_exec_prefix"
18591 prefix="$acl_save_prefix"
18593 if test "X$x" = "X-L$additional_libdir"; then
18598 if test -z "$haveit"; then
18599 if test -d "$additional_libdir"; then
18600 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18607 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18608 if test "$enable_rpath" != no; then
18610 for x in $rpathdirs; do
18611 if test "X$x" = "X$dir"; then
18616 if test -z "$haveit"; then
18617 rpathdirs="$rpathdirs $dir"
18620 for x in $ltrpathdirs; do
18621 if test "X$x" = "X$dir"; then
18626 if test -z "$haveit"; then
18627 ltrpathdirs="$ltrpathdirs $dir"
18632 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18635 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18638 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18639 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18645 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18646 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18652 if test "X$rpathdirs" != "X"; then
18653 if test -n "$hardcode_libdir_separator"; then
18655 for found_dir in $rpathdirs; do
18656 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18658 acl_save_libdir="$libdir"
18660 eval flag=\"$hardcode_libdir_flag_spec\"
18661 libdir="$acl_save_libdir"
18662 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18664 for found_dir in $rpathdirs; do
18665 acl_save_libdir="$libdir"
18666 libdir="$found_dir"
18667 eval flag=\"$hardcode_libdir_flag_spec\"
18668 libdir="$acl_save_libdir"
18669 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18673 if test "X$ltrpathdirs" != "X"; then
18674 for found_dir in $ltrpathdirs; do
18675 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18680 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18681 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18682 $as_echo_n "(cached) " >&6
18684 gt_save_CPPFLAGS="$CPPFLAGS"
18685 CPPFLAGS="$CPPFLAGS $INCINTL"
18686 gt_save_LIBS="$LIBS"
18687 LIBS="$LIBS $LIBINTL"
18688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689 /* end confdefs.h. */
18690 #include <libintl.h>
18691 extern int _nl_msg_cat_cntr;
18696 const char *_nl_expand_alias (const char *);
18700 bindtextdomain ("", "");
18701 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18706 if ac_fn_c_try_link "$LINENO"; then :
18707 gt_cv_func_gnugettext1_libintl=yes
18709 gt_cv_func_gnugettext1_libintl=no
18711 rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18714 LIBS="$LIBS $LIBICONV"
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717 #include <libintl.h>
18718 extern int _nl_msg_cat_cntr;
18723 const char *_nl_expand_alias (const char *);
18727 bindtextdomain ("", "");
18728 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18733 if ac_fn_c_try_link "$LINENO"; then :
18734 LIBINTL="$LIBINTL $LIBICONV"
18735 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18736 gt_cv_func_gnugettext1_libintl=yes
18739 rm -f core conftest.err conftest.$ac_objext \
18740 conftest$ac_exeext conftest.$ac_ext
18742 CPPFLAGS="$gt_save_CPPFLAGS"
18743 LIBS="$gt_save_LIBS"
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18746 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18749 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18750 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18751 && test "$PACKAGE" != gettext-runtime \
18752 && test "$PACKAGE" != gettext-tools; }; then
18753 gt_use_preinstalled_gnugettext=yes
18762 if test -n "$INTL_MACOSX_LIBS"; then
18763 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18764 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18765 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18766 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18770 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18771 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18773 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18781 $as_echo_n "checking whether to use NLS... " >&6; }
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18783 $as_echo "$USE_NLS" >&6; }
18784 if test "$USE_NLS" = "yes"; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18786 $as_echo_n "checking where the gettext function comes from... " >&6; }
18787 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18788 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18789 gt_source="external libintl"
18794 gt_source="included intl directory"
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18797 $as_echo "$gt_source" >&6; }
18800 if test "$USE_NLS" = "yes"; then
18802 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18803 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18805 $as_echo_n "checking how to link with libintl... " >&6; }
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18807 $as_echo "$LIBINTL" >&6; }
18809 for element in $INCINTL; do
18811 for x in $CPPFLAGS; do
18813 acl_save_prefix="$prefix"
18814 prefix="$acl_final_prefix"
18815 acl_save_exec_prefix="$exec_prefix"
18816 exec_prefix="$acl_final_exec_prefix"
18818 exec_prefix="$acl_save_exec_prefix"
18819 prefix="$acl_save_prefix"
18821 if test "X$x" = "X$element"; then
18826 if test -z "$haveit"; then
18827 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18834 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18837 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18846 INTLLIBS="$LIBINTL"
18854 os_name=`uname -s 2>/dev/null`
18855 if test x${prefix} = xNONE ; then
18856 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18857 sysconfdir=/etc/bacula
18860 if test `eval echo ${libdir}` = NONE/lib ; then
18863 os_processor=`uname -p 2>/dev/null`
18864 case ${os_processor} in
18879 if test `eval echo ${includedir}` = NONE/include ; then
18880 includedir=/usr/include
18883 if test `eval echo ${datarootdir}` = NONE/share ; then
18884 datarootdir=/usr/share
18889 if test x${exec_prefix} = xNONE ; then
18890 exec_prefix=${prefix}
18893 sysconfdir=`eval echo ${sysconfdir}`
18894 datarootdir=`eval echo ${datarootdir}`
18895 docdir=`eval echo ${docdir}`
18896 htmldir=`eval echo ${htmldir}`
18897 libdir=`eval echo ${libdir}`
18898 includedir=`eval echo ${includedir}`
18899 localedir=`eval echo ${datarootdir}/locale`
18900 cat >>confdefs.h <<_ACEOF
18901 #define SYSCONFDIR "$sysconfdir"
18904 cat >>confdefs.h <<_ACEOF
18905 #define LOCALEDIR "$localedir"
18909 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18910 sbindir=${exec_prefix}/sbin
18912 sbindir=`eval echo ${sbindir}`
18914 if test x$mandir = x'${prefix}/man' ; then
18915 mandir=/usr/share/man
18918 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18919 htmldir=`eval echo ${docdir}html`
18922 if test x$docdir = x'/usr/share/doc/' ; then
18923 docdir=`eval echo ${docdir}bacula`
18927 for ac_prog in msgfmt
18929 # Extract the first word of "$ac_prog", so it can be a program name with args.
18930 set dummy $ac_prog; ac_word=$2
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18932 $as_echo_n "checking for $ac_word... " >&6; }
18933 if ${ac_cv_path_MSGFMT+:} false; then :
18934 $as_echo_n "(cached) " >&6
18938 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18942 for as_dir in $PATH
18945 test -z "$as_dir" && as_dir=.
18946 for ac_exec_ext in '' $ac_executable_extensions; do
18947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18948 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18959 MSGFMT=$ac_cv_path_MSGFMT
18960 if test -n "$MSGFMT"; then
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18962 $as_echo "$MSGFMT" >&6; }
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18965 $as_echo "no" >&6; }
18969 test -n "$MSGFMT" && break
18971 test -n "$MSGFMT" || MSGFMT="no"
18973 if test "$MSGFMT" = "no"
18975 echo 'msgfmt program not found, disabling NLS !'
18977 USE_INCLUDED_LIBINTL=no
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18981 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18982 if ${ac_cv_gnu_library_2+:} false; then :
18983 $as_echo_n "(cached) " >&6
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18988 #include <features.h>
18989 #ifdef __GNU_LIBRARY__
18990 #if (__GLIBC__ >= 2)
18996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18997 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18998 ac_cv_gnu_library_2=yes
19000 ac_cv_gnu_library_2=no
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19008 $as_echo "$ac_cv_gnu_library_2" >&6; }
19010 GLIBC2="$ac_cv_gnu_library_2"
19013 if test -n "$ac_tool_prefix"; then
19014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19017 $as_echo_n "checking for $ac_word... " >&6; }
19018 if ${ac_cv_prog_RANLIB+:} false; then :
19019 $as_echo_n "(cached) " >&6
19021 if test -n "$RANLIB"; then
19022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19025 for as_dir in $PATH
19028 test -z "$as_dir" && as_dir=.
19029 for ac_exec_ext in '' $ac_executable_extensions; do
19030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19041 RANLIB=$ac_cv_prog_RANLIB
19042 if test -n "$RANLIB"; then
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19044 $as_echo "$RANLIB" >&6; }
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19047 $as_echo "no" >&6; }
19052 if test -z "$ac_cv_prog_RANLIB"; then
19053 ac_ct_RANLIB=$RANLIB
19054 # Extract the first word of "ranlib", so it can be a program name with args.
19055 set dummy ranlib; ac_word=$2
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19057 $as_echo_n "checking for $ac_word... " >&6; }
19058 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19059 $as_echo_n "(cached) " >&6
19061 if test -n "$ac_ct_RANLIB"; then
19062 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19065 for as_dir in $PATH
19068 test -z "$as_dir" && as_dir=.
19069 for ac_exec_ext in '' $ac_executable_extensions; do
19070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19071 ac_cv_prog_ac_ct_RANLIB="ranlib"
19072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19082 if test -n "$ac_ct_RANLIB"; then
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19084 $as_echo "$ac_ct_RANLIB" >&6; }
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19087 $as_echo "no" >&6; }
19090 if test "x$ac_ct_RANLIB" = x; then
19093 case $cross_compiling:$ac_tool_warned in
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19097 ac_tool_warned=yes ;;
19099 RANLIB=$ac_ct_RANLIB
19102 RANLIB="$ac_cv_prog_RANLIB"
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19107 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19108 if ${ac_cv_lib_cposix_strerror+:} false; then :
19109 $as_echo_n "(cached) " >&6
19111 ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-lcposix $LIBS"
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19116 /* Override any GCC internal prototype to avoid an error.
19117 Use char because int might match the return type of a GCC
19118 builtin and then its argument prototype would still apply. */
19126 return strerror ();
19131 if ac_fn_c_try_link "$LINENO"; then :
19132 ac_cv_lib_cposix_strerror=yes
19134 ac_cv_lib_cposix_strerror=no
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19141 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19142 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19143 LIBS="$LIBS -lcposix"
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19149 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19150 if ${ac_cv_c_const+:} false; then :
19151 $as_echo_n "(cached) " >&6
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19159 /* FIXME: Include the comments suggested by Paul. */
19160 #ifndef __cplusplus
19161 /* Ultrix mips cc rejects this. */
19162 typedef int charset[2];
19164 /* SunOS 4.1.1 cc rejects this. */
19165 char const *const *pcpcc;
19167 /* NEC SVR4.0.2 mips cc rejects this. */
19168 struct point {int x, y;};
19169 static struct point const zero = {0,0};
19170 /* AIX XL C 1.02.0.0 rejects this.
19171 It does not let you subtract one const X* pointer from another in
19172 an arm of an if-expression whose if-part is not a constant
19174 const char *g = "string";
19175 pcpcc = &g + (g ? g-g : 0);
19176 /* HPUX 7.0 cc rejects these. */
19178 ppc = (char**) pcpcc;
19179 pcpcc = (char const *const *) ppc;
19180 { /* SCO 3.2v4 cc rejects this. */
19182 char const *s = 0 ? (char *) 0 : (char const *) 0;
19187 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19188 int x[] = {25, 17};
19189 const int *foo = &x[0];
19192 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19193 typedef const int *iptr;
19197 { /* AIX XL C 1.02.0.0 rejects this saying
19198 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19199 struct s { int j; const int *ap[3]; };
19200 struct s *b; b->j = 5;
19202 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19203 const int foo = 10;
19204 if (!foo) return 0;
19206 return !cs[0] && !zero.x;
19213 if ac_fn_c_try_compile "$LINENO"; then :
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19221 $as_echo "$ac_cv_c_const" >&6; }
19222 if test $ac_cv_c_const = no; then
19224 $as_echo "#define const /**/" >>confdefs.h
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19230 $as_echo_n "checking for signed... " >&6; }
19231 if ${bh_cv_c_signed+:} false; then :
19232 $as_echo_n "(cached) " >&6
19234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235 /* end confdefs.h. */
19245 if ac_fn_c_try_compile "$LINENO"; then :
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19253 $as_echo "$bh_cv_c_signed" >&6; }
19254 if test $bh_cv_c_signed = no; then
19256 $as_echo "#define signed /**/" >>confdefs.h
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19261 $as_echo_n "checking for inline... " >&6; }
19262 if ${ac_cv_c_inline+:} false; then :
19263 $as_echo_n "(cached) " >&6
19266 for ac_kw in inline __inline__ __inline; do
19267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h. */
19269 #ifndef __cplusplus
19271 static $ac_kw foo_t static_foo () {return 0; }
19272 $ac_kw foo_t foo () {return 0; }
19276 if ac_fn_c_try_compile "$LINENO"; then :
19277 ac_cv_c_inline=$ac_kw
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280 test "$ac_cv_c_inline" != no && break
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19285 $as_echo "$ac_cv_c_inline" >&6; }
19287 case $ac_cv_c_inline in
19290 case $ac_cv_c_inline in
19292 *) ac_val=$ac_cv_c_inline;;
19294 cat >>confdefs.h <<_ACEOF
19295 #ifndef __cplusplus
19296 #define inline $ac_val
19302 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19303 if test "x$ac_cv_type_off_t" = xyes; then :
19307 cat >>confdefs.h <<_ACEOF
19308 #define off_t long int
19313 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19314 if test "x$ac_cv_type_size_t" = xyes; then :
19318 cat >>confdefs.h <<_ACEOF
19319 #define size_t unsigned int
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19326 $as_echo_n "checking for long long... " >&6; }
19327 if ${ac_cv_type_long_long+:} false; then :
19328 $as_echo_n "(cached) " >&6
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19332 long long ll = 1LL; int i = 63;
19336 long long llmax = (long long) -1;
19337 return ll << i | ll >> i | llmax / ll | llmax % ll;
19342 if ac_fn_c_try_link "$LINENO"; then :
19343 ac_cv_type_long_long=yes
19345 ac_cv_type_long_long=no
19347 rm -f core conftest.err conftest.$ac_objext \
19348 conftest$ac_exeext conftest.$ac_ext
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19351 $as_echo "$ac_cv_type_long_long" >&6; }
19352 if test $ac_cv_type_long_long = yes; then
19354 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19360 $as_echo_n "checking for long double... " >&6; }
19361 if ${gt_cv_c_long_double+:} false; then :
19362 $as_echo_n "(cached) " >&6
19364 if test "$GCC" = yes; then
19365 gt_cv_c_long_double=yes
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19370 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19371 long double foo = 0.0;
19372 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19373 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19383 if ac_fn_c_try_compile "$LINENO"; then :
19384 gt_cv_c_long_double=yes
19386 gt_cv_c_long_double=no
19388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19392 $as_echo "$gt_cv_c_long_double" >&6; }
19393 if test $gt_cv_c_long_double = yes; then
19395 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19401 $as_echo_n "checking for wchar_t... " >&6; }
19402 if ${gt_cv_c_wchar_t+:} false; then :
19403 $as_echo_n "(cached) " >&6
19405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406 /* end confdefs.h. */
19407 #include <stddef.h>
19408 wchar_t foo = (wchar_t)'\0';
19417 if ac_fn_c_try_compile "$LINENO"; then :
19418 gt_cv_c_wchar_t=yes
19422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19425 $as_echo "$gt_cv_c_wchar_t" >&6; }
19426 if test $gt_cv_c_wchar_t = yes; then
19428 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19434 $as_echo_n "checking for wint_t... " >&6; }
19435 if ${gt_cv_c_wint_t+:} false; then :
19436 $as_echo_n "(cached) " >&6
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19441 wint_t foo = (wchar_t)'\0';
19450 if ac_fn_c_try_compile "$LINENO"; then :
19455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19458 $as_echo "$gt_cv_c_wint_t" >&6; }
19459 if test $gt_cv_c_wint_t = yes; then
19461 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19467 $as_echo_n "checking for inttypes.h... " >&6; }
19468 if ${gl_cv_header_inttypes_h+:} false; then :
19469 $as_echo_n "(cached) " >&6
19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19472 /* end confdefs.h. */
19473 #include <sys/types.h>
19474 #include <inttypes.h>
19478 uintmax_t i = (uintmax_t) -1;
19483 if ac_fn_c_try_compile "$LINENO"; then :
19484 gl_cv_header_inttypes_h=yes
19486 gl_cv_header_inttypes_h=no
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19491 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19492 if test $gl_cv_header_inttypes_h = yes; then
19494 cat >>confdefs.h <<_ACEOF
19495 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19502 $as_echo_n "checking for stdint.h... " >&6; }
19503 if ${gl_cv_header_stdint_h+:} false; then :
19504 $as_echo_n "(cached) " >&6
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 #include <sys/types.h>
19509 #include <stdint.h>
19513 uintmax_t i = (uintmax_t) -1;
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519 gl_cv_header_stdint_h=yes
19521 gl_cv_header_stdint_h=no
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19526 $as_echo "$gl_cv_header_stdint_h" >&6; }
19527 if test $gl_cv_header_stdint_h = yes; then
19529 cat >>confdefs.h <<_ACEOF
19530 #define HAVE_STDINT_H_WITH_UINTMAX 1
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19539 $as_echo_n "checking for intmax_t... " >&6; }
19540 if ${gt_cv_c_intmax_t+:} false; then :
19541 $as_echo_n "(cached) " >&6
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19546 #include <stddef.h>
19547 #include <stdlib.h>
19548 #if HAVE_STDINT_H_WITH_UINTMAX
19549 #include <stdint.h>
19551 #if HAVE_INTTYPES_H_WITH_UINTMAX
19552 #include <inttypes.h>
19563 if ac_fn_c_try_compile "$LINENO"; then :
19564 gt_cv_c_intmax_t=yes
19566 gt_cv_c_intmax_t=no
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19571 $as_echo "$gt_cv_c_intmax_t" >&6; }
19572 if test $gt_cv_c_intmax_t = yes; then
19574 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19581 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19582 if ${gt_cv_func_printf_posix+:} false; then :
19583 $as_echo_n "(cached) " >&6
19586 if test "$cross_compiling" = yes; then :
19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h. */
19591 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19597 $EGREP "notposix" >/dev/null 2>&1; then :
19598 gt_cv_func_printf_posix="guessing no"
19600 gt_cv_func_printf_posix="guessing yes"
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19610 #include <string.h>
19611 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19612 dollar expansion (possibly an autoconf bug). */
19613 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19614 static char buf[100];
19617 sprintf (buf, format, 33, 55);
19618 return (strcmp (buf, "55 33") != 0);
19621 if ac_fn_c_try_run "$LINENO"; then :
19622 gt_cv_func_printf_posix=yes
19624 gt_cv_func_printf_posix=no
19626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19627 conftest.$ac_objext conftest.beam conftest.$ac_ext
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19633 $as_echo "$gt_cv_func_printf_posix" >&6; }
19634 case $gt_cv_func_printf_posix in
19637 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19643 # for constant arguments. Useless!
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19645 $as_echo_n "checking for working alloca.h... " >&6; }
19646 if ${ac_cv_working_alloca_h+:} false; then :
19647 $as_echo_n "(cached) " >&6
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19651 #include <alloca.h>
19655 char *p = (char *) alloca (2 * sizeof (int));
19661 if ac_fn_c_try_link "$LINENO"; then :
19662 ac_cv_working_alloca_h=yes
19664 ac_cv_working_alloca_h=no
19666 rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19670 $as_echo "$ac_cv_working_alloca_h" >&6; }
19671 if test $ac_cv_working_alloca_h = yes; then
19673 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19678 $as_echo_n "checking for alloca... " >&6; }
19679 if ${ac_cv_func_alloca_works+:} false; then :
19680 $as_echo_n "(cached) " >&6
19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h. */
19685 # define alloca __builtin_alloca
19688 # include <malloc.h>
19689 # define alloca _alloca
19691 # ifdef HAVE_ALLOCA_H
19692 # include <alloca.h>
19697 # ifndef alloca /* predefined by HP cc +Olibcalls */
19698 void *alloca (size_t);
19708 char *p = (char *) alloca (1);
19714 if ac_fn_c_try_link "$LINENO"; then :
19715 ac_cv_func_alloca_works=yes
19717 ac_cv_func_alloca_works=no
19719 rm -f core conftest.err conftest.$ac_objext \
19720 conftest$ac_exeext conftest.$ac_ext
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19723 $as_echo "$ac_cv_func_alloca_works" >&6; }
19725 if test $ac_cv_func_alloca_works = yes; then
19727 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19730 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19731 # that cause trouble. Some versions do not even contain alloca or
19732 # contain a buggy version. If you still want to use their alloca,
19733 # use ar to extract alloca.o from them instead of compiling alloca.c.
19735 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19737 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19741 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19742 if ${ac_cv_os_cray+:} false; then :
19743 $as_echo_n "(cached) " >&6
19745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746 /* end confdefs.h. */
19747 #if defined CRAY && ! defined CRAY2
19754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19755 $EGREP "webecray" >/dev/null 2>&1; then :
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19764 $as_echo "$ac_cv_os_cray" >&6; }
19765 if test $ac_cv_os_cray = yes; then
19766 for ac_func in _getb67 GETB67 getb67; do
19767 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19768 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19769 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19771 cat >>confdefs.h <<_ACEOF
19772 #define CRAY_STACKSEG_END $ac_func
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19782 $as_echo_n "checking stack direction for C alloca... " >&6; }
19783 if ${ac_cv_c_stack_direction+:} false; then :
19784 $as_echo_n "(cached) " >&6
19786 if test "$cross_compiling" = yes; then :
19787 ac_cv_c_stack_direction=0
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791 $ac_includes_default
19793 find_stack_direction ()
19795 static char *addr = 0;
19800 return find_stack_direction ();
19803 return (&dummy > addr) ? 1 : -1;
19809 return find_stack_direction () < 0;
19812 if ac_fn_c_try_run "$LINENO"; then :
19813 ac_cv_c_stack_direction=1
19815 ac_cv_c_stack_direction=-1
19817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19818 conftest.$ac_objext conftest.beam conftest.$ac_ext
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19823 $as_echo "$ac_cv_c_stack_direction" >&6; }
19824 cat >>confdefs.h <<_ACEOF
19825 #define STACK_DIRECTION $ac_cv_c_stack_direction
19834 for ac_header in $ac_header_list
19836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19840 cat >>confdefs.h <<_ACEOF
19841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19855 for ac_func in getpagesize
19857 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19858 if test "x$ac_cv_func_getpagesize" = xyes; then :
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_GETPAGESIZE 1
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19867 $as_echo_n "checking for working mmap... " >&6; }
19868 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19869 $as_echo_n "(cached) " >&6
19871 if test "$cross_compiling" = yes; then :
19872 ac_cv_func_mmap_fixed_mapped=no
19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h. */
19876 $ac_includes_default
19877 /* malloc might have been renamed as rpl_malloc. */
19880 /* Thanks to Mike Haertel and Jim Avera for this test.
19881 Here is a matrix of mmap possibilities:
19882 mmap private not fixed
19883 mmap private fixed at somewhere currently unmapped
19884 mmap private fixed at somewhere already mapped
19885 mmap shared not fixed
19886 mmap shared fixed at somewhere currently unmapped
19887 mmap shared fixed at somewhere already mapped
19888 For private mappings, we should verify that changes cannot be read()
19889 back from the file, nor mmap's back from the file at a different
19890 address. (There have been systems where private was not correctly
19891 implemented like the infamous i386 svr4.0, and systems where the
19892 VM page cache was not coherent with the file system buffer cache
19893 like early versions of FreeBSD and possibly contemporary NetBSD.)
19894 For shared mappings, we should conversely verify that changes get
19895 propagated back to all the places they're supposed to be.
19897 Grep wants private fixed already mapped.
19898 The main things grep needs to know about mmap are:
19899 * does it exist and is it safe to write into the mmap'd area
19900 * how to use it (BSD variants) */
19903 #include <sys/mman.h>
19905 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19909 /* This mess was copied from the GNU getpagesize.h. */
19910 #ifndef HAVE_GETPAGESIZE
19911 # ifdef _SC_PAGESIZE
19912 # define getpagesize() sysconf(_SC_PAGESIZE)
19913 # else /* no _SC_PAGESIZE */
19914 # ifdef HAVE_SYS_PARAM_H
19915 # include <sys/param.h>
19916 # ifdef EXEC_PAGESIZE
19917 # define getpagesize() EXEC_PAGESIZE
19918 # else /* no EXEC_PAGESIZE */
19920 # define getpagesize() NBPG * CLSIZE
19923 # endif /* no CLSIZE */
19924 # else /* no NBPG */
19926 # define getpagesize() NBPC
19927 # else /* no NBPC */
19929 # define getpagesize() PAGESIZE
19930 # endif /* PAGESIZE */
19931 # endif /* no NBPC */
19932 # endif /* no NBPG */
19933 # endif /* no EXEC_PAGESIZE */
19934 # else /* no HAVE_SYS_PARAM_H */
19935 # define getpagesize() 8192 /* punt totally */
19936 # endif /* no HAVE_SYS_PARAM_H */
19937 # endif /* no _SC_PAGESIZE */
19939 #endif /* no HAVE_GETPAGESIZE */
19944 char *data, *data2, *data3;
19945 const char *cdata2;
19949 pagesize = getpagesize ();
19951 /* First, make a file with some known garbage in it. */
19952 data = (char *) malloc (pagesize);
19955 for (i = 0; i < pagesize; ++i)
19956 *(data + i) = rand ();
19958 fd = creat ("conftest.mmap", 0600);
19961 if (write (fd, data, pagesize) != pagesize)
19965 /* Next, check that the tail of a page is zero-filled. File must have
19966 non-zero length, otherwise we risk SIGBUS for entire page. */
19967 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19971 if (write (fd2, cdata2, 1) != 1)
19973 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19974 if (data2 == MAP_FAILED)
19976 for (i = 0; i < pagesize; ++i)
19980 if (munmap (data2, pagesize))
19983 /* Next, try to mmap the file at a fixed address which already has
19984 something else allocated at it. If we can, also make sure that
19985 we see the same garbage. */
19986 fd = open ("conftest.mmap", O_RDWR);
19989 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19990 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19992 for (i = 0; i < pagesize; ++i)
19993 if (*(data + i) != *(data2 + i))
19996 /* Finally, make sure that changes to the mapped area do not
19997 percolate back to the file as seen by read(). (This is a bug on
19998 some variants of i386 svr4.0.) */
19999 for (i = 0; i < pagesize; ++i)
20000 *(data2 + i) = *(data2 + i) + 1;
20001 data3 = (char *) malloc (pagesize);
20004 if (read (fd, data3, pagesize) != pagesize)
20006 for (i = 0; i < pagesize; ++i)
20007 if (*(data + i) != *(data3 + i))
20013 if ac_fn_c_try_run "$LINENO"; then :
20014 ac_cv_func_mmap_fixed_mapped=yes
20016 ac_cv_func_mmap_fixed_mapped=no
20018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20019 conftest.$ac_objext conftest.beam conftest.$ac_ext
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20024 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20025 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20027 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20030 rm -f conftest.mmap conftest.txt
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20034 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20035 if ${ac_cv_gnu_library_2_1+:} false; then :
20036 $as_echo_n "(cached) " >&6
20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20041 #include <features.h>
20042 #ifdef __GNU_LIBRARY__
20043 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20050 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20051 ac_cv_gnu_library_2_1=yes
20053 ac_cv_gnu_library_2_1=no
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20061 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20063 GLIBC21="$ac_cv_gnu_library_2_1"
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20069 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20070 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20071 $as_echo_n "(cached) " >&6
20074 if test "$cross_compiling" = yes; then :
20076 # Guess based on the CPU.
20077 case "$host_cpu" in
20078 alpha* | i3456786 | m68k | s390*)
20079 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20081 gt_cv_int_divbyzero_sigfpe="guessing no";;
20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h. */
20088 #include <stdlib.h>
20089 #include <signal.h>
20093 sigfpe_handler (int sig)
20095 sigfpe_handler (sig) int sig;
20098 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20099 exit (sig != SIGFPE);
20109 signal (SIGFPE, sigfpe_handler);
20110 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20111 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20112 signal (SIGTRAP, sigfpe_handler);
20114 /* Linux/SPARC yields signal SIGILL. */
20115 #if defined (__sparc__) && defined (__linux__)
20116 signal (SIGILL, sigfpe_handler);
20125 if ac_fn_c_try_run "$LINENO"; then :
20126 gt_cv_int_divbyzero_sigfpe=yes
20128 gt_cv_int_divbyzero_sigfpe=no
20130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20131 conftest.$ac_objext conftest.beam conftest.$ac_ext
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20137 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20138 case "$gt_cv_int_divbyzero_sigfpe" in
20143 cat >>confdefs.h <<_ACEOF
20144 #define INTDIV0_RAISES_SIGFPE $value
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20150 $as_echo_n "checking for unsigned long long... " >&6; }
20151 if ${ac_cv_type_unsigned_long_long+:} false; then :
20152 $as_echo_n "(cached) " >&6
20154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h. */
20156 unsigned long long ull = 1ULL; int i = 63;
20160 unsigned long long ullmax = (unsigned long long) -1;
20161 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20166 if ac_fn_c_try_link "$LINENO"; then :
20167 ac_cv_type_unsigned_long_long=yes
20169 ac_cv_type_unsigned_long_long=no
20171 rm -f core conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20175 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20176 if test $ac_cv_type_unsigned_long_long = yes; then
20178 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20185 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20187 test $ac_cv_type_unsigned_long_long = yes \
20188 && ac_type='unsigned long long' \
20189 || ac_type='unsigned long'
20191 cat >>confdefs.h <<_ACEOF
20192 #define uintmax_t $ac_type
20197 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20203 $as_echo_n "checking for inttypes.h... " >&6; }
20204 if ${gt_cv_header_inttypes_h+:} false; then :
20205 $as_echo_n "(cached) " >&6
20208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h. */
20210 #include <sys/types.h>
20211 #include <inttypes.h>
20220 if ac_fn_c_try_compile "$LINENO"; then :
20221 gt_cv_header_inttypes_h=yes
20223 gt_cv_header_inttypes_h=no
20225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20229 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20230 if test $gt_cv_header_inttypes_h = yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define HAVE_INTTYPES_H 1
20240 if test $gt_cv_header_inttypes_h = yes; then
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20242 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20243 if ${gt_cv_inttypes_pri_broken+:} false; then :
20244 $as_echo_n "(cached) " >&6
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20249 #include <inttypes.h>
20262 if ac_fn_c_try_compile "$LINENO"; then :
20263 gt_cv_inttypes_pri_broken=no
20265 gt_cv_inttypes_pri_broken=yes
20267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20271 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20273 if test "$gt_cv_inttypes_pri_broken" = yes; then
20275 cat >>confdefs.h <<_ACEOF
20276 #define PRI_MACROS_BROKEN 1
20282 for ac_header in stdint.h
20284 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20285 if test "x$ac_cv_header_stdint_h" = xyes; then :
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_STDINT_H 1
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20295 $as_echo_n "checking for SIZE_MAX... " >&6; }
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20300 #include <limits.h>
20302 #include <stdint.h>
20309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20310 $EGREP "Found it" >/dev/null 2>&1; then :
20315 if test -z "$result"; then
20316 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20323 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20330 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20337 if test "$fits_in_uint" = 1; then
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20340 #include <stddef.h>
20342 extern unsigned long foo;
20352 if ac_fn_c_try_compile "$LINENO"; then :
20355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20357 if test -z "$result"; then
20358 if test "$fits_in_uint" = 1; then
20359 result="$res_hi$res_lo"U
20361 result="$res_hi$res_lo"UL
20364 result='~(size_t)0'
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20368 $as_echo "$result" >&6; }
20369 if test "$result" != yes; then
20371 cat >>confdefs.h <<_ACEOF
20372 #define SIZE_MAX $result
20380 for ac_header in stdint.h
20382 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20383 if test "x$ac_cv_header_stdint_h" = xyes; then :
20384 cat >>confdefs.h <<_ACEOF
20385 #define HAVE_STDINT_H 1
20399 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20400 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20404 $as_echo "#define ptrdiff_t long" >>confdefs.h
20409 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20410 stdlib.h string.h unistd.h sys/param.h
20412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20415 cat >>confdefs.h <<_ACEOF
20416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20423 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20424 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20425 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20431 cat >>confdefs.h <<_ACEOF
20432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20441 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20442 if ${ac_cv_have_decl__snprintf+:} false; then :
20443 $as_echo_n "(cached) " >&6
20445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446 /* end confdefs.h. */
20453 char *p = (char *) _snprintf;
20460 if ac_fn_c_try_compile "$LINENO"; then :
20461 ac_cv_have_decl__snprintf=yes
20463 ac_cv_have_decl__snprintf=no
20465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20468 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20469 if test $ac_cv_have_decl__snprintf = yes; then
20475 cat >>confdefs.h <<_ACEOF
20476 #define HAVE_DECL__SNPRINTF $gt_value
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20482 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20483 if ${ac_cv_have_decl__snwprintf+:} false; then :
20484 $as_echo_n "(cached) " >&6
20486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h. */
20494 char *p = (char *) _snwprintf;
20501 if ac_fn_c_try_compile "$LINENO"; then :
20502 ac_cv_have_decl__snwprintf=yes
20504 ac_cv_have_decl__snwprintf=no
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20509 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20510 if test $ac_cv_have_decl__snwprintf = yes; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_DECL__SNWPRINTF $gt_value
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20524 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20525 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20526 $as_echo_n "(cached) " >&6
20528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529 /* end confdefs.h. */
20535 #ifndef feof_unlocked
20536 char *p = (char *) feof_unlocked;
20543 if ac_fn_c_try_compile "$LINENO"; then :
20544 ac_cv_have_decl_feof_unlocked=yes
20546 ac_cv_have_decl_feof_unlocked=no
20548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20551 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20552 if test $ac_cv_have_decl_feof_unlocked = yes; then
20558 cat >>confdefs.h <<_ACEOF
20559 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20565 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20566 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20567 $as_echo_n "(cached) " >&6
20569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20570 /* end confdefs.h. */
20576 #ifndef fgets_unlocked
20577 char *p = (char *) fgets_unlocked;
20584 if ac_fn_c_try_compile "$LINENO"; then :
20585 ac_cv_have_decl_fgets_unlocked=yes
20587 ac_cv_have_decl_fgets_unlocked=no
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20592 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20593 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20599 cat >>confdefs.h <<_ACEOF
20600 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20606 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20607 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20608 $as_echo_n "(cached) " >&6
20610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20617 #ifndef getc_unlocked
20618 char *p = (char *) getc_unlocked;
20625 if ac_fn_c_try_compile "$LINENO"; then :
20626 ac_cv_have_decl_getc_unlocked=yes
20628 ac_cv_have_decl_getc_unlocked=no
20630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20633 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20634 if test $ac_cv_have_decl_getc_unlocked = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20646 case $gt_cv_func_printf_posix in
20647 *yes) HAVE_POSIX_PRINTF=1 ;;
20648 *) HAVE_POSIX_PRINTF=0 ;;
20651 if test "$ac_cv_func_asprintf" = yes; then
20657 if test "$ac_cv_func_snprintf" = yes; then
20663 if test "$ac_cv_func_wprintf" = yes; then
20675 am_save_CPPFLAGS="$CPPFLAGS"
20677 for element in $INCICONV; do
20679 for x in $CPPFLAGS; do
20681 acl_save_prefix="$prefix"
20682 prefix="$acl_final_prefix"
20683 acl_save_exec_prefix="$exec_prefix"
20684 exec_prefix="$acl_final_exec_prefix"
20686 exec_prefix="$acl_save_exec_prefix"
20687 prefix="$acl_save_prefix"
20689 if test "X$x" = "X$element"; then
20694 if test -z "$haveit"; then
20695 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20701 $as_echo_n "checking for iconv... " >&6; }
20702 if ${am_cv_func_iconv+:} false; then :
20703 $as_echo_n "(cached) " >&6
20706 am_cv_func_iconv="no, consider installing GNU libiconv"
20708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709 /* end confdefs.h. */
20710 #include <stdlib.h>
20715 iconv_t cd = iconv_open("","");
20716 iconv(cd,NULL,NULL,NULL,NULL);
20722 if ac_fn_c_try_link "$LINENO"; then :
20723 am_cv_func_iconv=yes
20725 rm -f core conftest.err conftest.$ac_objext \
20726 conftest$ac_exeext conftest.$ac_ext
20727 if test "$am_cv_func_iconv" != yes; then
20728 am_save_LIBS="$LIBS"
20729 LIBS="$LIBS $LIBICONV"
20730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 /* end confdefs.h. */
20732 #include <stdlib.h>
20737 iconv_t cd = iconv_open("","");
20738 iconv(cd,NULL,NULL,NULL,NULL);
20744 if ac_fn_c_try_link "$LINENO"; then :
20745 am_cv_lib_iconv=yes
20746 am_cv_func_iconv=yes
20748 rm -f core conftest.err conftest.$ac_objext \
20749 conftest$ac_exeext conftest.$ac_ext
20750 LIBS="$am_save_LIBS"
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20755 $as_echo "$am_cv_func_iconv" >&6; }
20756 if test "$am_cv_func_iconv" = yes; then
20758 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20761 if test "$am_cv_lib_iconv" = yes; then
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20763 $as_echo_n "checking how to link with libiconv... " >&6; }
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20765 $as_echo "$LIBICONV" >&6; }
20767 CPPFLAGS="$am_save_CPPFLAGS"
20774 if test "$am_cv_func_iconv" = yes; then
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20776 $as_echo_n "checking for iconv declaration... " >&6; }
20777 if ${am_cv_proto_iconv+:} false; then :
20778 $as_echo_n "(cached) " >&6
20781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20782 /* end confdefs.h. */
20784 #include <stdlib.h>
20790 #if defined(__STDC__) || defined(__cplusplus)
20791 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20804 if ac_fn_c_try_compile "$LINENO"; then :
20805 am_cv_proto_iconv_arg1=""
20807 am_cv_proto_iconv_arg1="const"
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810 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);"
20813 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20815 }$am_cv_proto_iconv" >&5
20817 }$am_cv_proto_iconv" >&6; }
20819 cat >>confdefs.h <<_ACEOF
20820 #define ICONV_CONST $am_cv_proto_iconv_arg1
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20827 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20828 if ${am_cv_langinfo_codeset+:} false; then :
20829 $as_echo_n "(cached) " >&6
20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h. */
20833 #include <langinfo.h>
20837 char* cs = nl_langinfo(CODESET);
20842 if ac_fn_c_try_link "$LINENO"; then :
20843 am_cv_langinfo_codeset=yes
20845 am_cv_langinfo_codeset=no
20847 rm -f core conftest.err conftest.$ac_objext \
20848 conftest$ac_exeext conftest.$ac_ext
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20852 $as_echo "$am_cv_langinfo_codeset" >&6; }
20853 if test $am_cv_langinfo_codeset = yes; then
20855 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20859 if test $ac_cv_header_locale_h = yes; then
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20862 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20863 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20864 $as_echo_n "(cached) " >&6
20866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20867 /* end confdefs.h. */
20868 #include <locale.h>
20877 if ac_fn_c_try_link "$LINENO"; then :
20878 gt_cv_val_LC_MESSAGES=yes
20880 gt_cv_val_LC_MESSAGES=no
20882 rm -f core conftest.err conftest.$ac_objext \
20883 conftest$ac_exeext conftest.$ac_ext
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20886 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20887 if test $gt_cv_val_LC_MESSAGES = yes; then
20889 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20895 if test -n "$INTL_MACOSX_LIBS"; then
20896 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20899 for ac_prog in bison
20901 # Extract the first word of "$ac_prog", so it can be a program name with args.
20902 set dummy $ac_prog; ac_word=$2
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20904 $as_echo_n "checking for $ac_word... " >&6; }
20905 if ${ac_cv_prog_INTLBISON+:} false; then :
20906 $as_echo_n "(cached) " >&6
20908 if test -n "$INTLBISON"; then
20909 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20912 for as_dir in $PATH
20915 test -z "$as_dir" && as_dir=.
20916 for ac_exec_ext in '' $ac_executable_extensions; do
20917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20918 ac_cv_prog_INTLBISON="$ac_prog"
20919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20928 INTLBISON=$ac_cv_prog_INTLBISON
20929 if test -n "$INTLBISON"; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20931 $as_echo "$INTLBISON" >&6; }
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934 $as_echo "no" >&6; }
20938 test -n "$INTLBISON" && break
20941 if test -z "$INTLBISON"; then
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20945 $as_echo_n "checking version of bison... " >&6; }
20946 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20947 case $ac_prog_version in
20948 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20949 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20950 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20951 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20954 $as_echo "$ac_prog_version" >&6; }
20956 if test $ac_verc_fail = yes; then
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20976 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20977 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20978 $as_echo_n "(cached) " >&6
20980 gt_save_CPPFLAGS="$CPPFLAGS"
20981 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20982 gt_save_LIBS="$LIBS"
20983 LIBS="$LIBS -framework CoreFoundation"
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h. */
20986 #include <CFPreferences.h>
20990 CFPreferencesCopyAppValue(NULL, NULL)
20995 if ac_fn_c_try_link "$LINENO"; then :
20996 gt_cv_func_CFPreferencesCopyAppValue=yes
20998 gt_cv_func_CFPreferencesCopyAppValue=no
21000 rm -f core conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
21002 CPPFLAGS="$gt_save_CPPFLAGS"
21003 LIBS="$gt_save_LIBS"
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21006 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21007 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21009 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21013 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21014 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21015 $as_echo_n "(cached) " >&6
21017 gt_save_CPPFLAGS="$CPPFLAGS"
21018 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21019 gt_save_LIBS="$LIBS"
21020 LIBS="$LIBS -framework CoreFoundation"
21021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21022 /* end confdefs.h. */
21023 #include <CFLocale.h>
21027 CFLocaleCopyCurrent();
21032 if ac_fn_c_try_link "$LINENO"; then :
21033 gt_cv_func_CFLocaleCopyCurrent=yes
21035 gt_cv_func_CFLocaleCopyCurrent=no
21037 rm -f core conftest.err conftest.$ac_objext \
21038 conftest$ac_exeext conftest.$ac_ext
21039 CPPFLAGS="$gt_save_CPPFLAGS"
21040 LIBS="$gt_save_LIBS"
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21043 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21044 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21046 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21050 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21051 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21058 $as_echo_n "checking whether NLS is requested... " >&6; }
21059 # Check whether --enable-nls was given.
21060 if test "${enable_nls+set}" = set; then :
21061 enableval=$enable_nls; USE_NLS=$enableval
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21067 $as_echo "$USE_NLS" >&6; }
21072 BUILD_INCLUDED_LIBINTL=no
21073 USE_INCLUDED_LIBINTL=no
21079 if test "$USE_NLS" = "yes"; then
21080 gt_use_preinstalled_gnugettext=no
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21083 $as_echo_n "checking whether included gettext is requested... " >&6; }
21085 # Check whether --with-included-gettext was given.
21086 if test "${with_included_gettext+set}" = set; then :
21087 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21089 nls_cv_force_use_gnu_gettext=no
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21093 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21095 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21096 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21104 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21105 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21106 $as_echo_n "(cached) " >&6
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21110 #include <libintl.h>
21111 extern int _nl_msg_cat_cntr;
21112 extern int *_nl_domain_bindings;
21116 bindtextdomain ("", "");
21117 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21122 if ac_fn_c_try_link "$LINENO"; then :
21123 gt_cv_func_gnugettext1_libc=yes
21125 gt_cv_func_gnugettext1_libc=no
21127 rm -f core conftest.err conftest.$ac_objext \
21128 conftest$ac_exeext conftest.$ac_ext
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21131 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21133 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21139 acl_save_prefix="$prefix"
21140 prefix="$acl_final_prefix"
21141 acl_save_exec_prefix="$exec_prefix"
21142 exec_prefix="$acl_final_exec_prefix"
21144 eval additional_includedir=\"$includedir\"
21145 eval additional_libdir=\"$libdir\"
21147 exec_prefix="$acl_save_exec_prefix"
21148 prefix="$acl_save_prefix"
21151 # Check whether --with-libintl-prefix was given.
21152 if test "${with_libintl_prefix+set}" = set; then :
21153 withval=$with_libintl_prefix;
21154 if test "X$withval" = "Xno"; then
21157 if test "X$withval" = "X"; then
21159 acl_save_prefix="$prefix"
21160 prefix="$acl_final_prefix"
21161 acl_save_exec_prefix="$exec_prefix"
21162 exec_prefix="$acl_final_exec_prefix"
21164 eval additional_includedir=\"$includedir\"
21165 eval additional_libdir=\"$libdir\"
21167 exec_prefix="$acl_save_exec_prefix"
21168 prefix="$acl_save_prefix"
21171 additional_includedir="$withval/include"
21172 additional_libdir="$withval/lib"
21183 names_already_handled=
21184 names_next_round='intl '
21185 while test -n "$names_next_round"; do
21186 names_this_round="$names_next_round"
21188 for name in $names_this_round; do
21190 for n in $names_already_handled; do
21191 if test "$n" = "$name"; then
21192 already_handled=yes
21196 if test -z "$already_handled"; then
21197 names_already_handled="$names_already_handled $name"
21198 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21199 eval value=\"\$HAVE_LIB$uppername\"
21200 if test -n "$value"; then
21201 if test "$value" = yes; then
21202 eval value=\"\$LIB$uppername\"
21203 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21204 eval value=\"\$LTLIB$uppername\"
21205 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21214 if test $use_additional = yes; then
21215 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21216 found_dir="$additional_libdir"
21217 found_so="$additional_libdir/lib$name.$shlibext"
21218 if test -f "$additional_libdir/lib$name.la"; then
21219 found_la="$additional_libdir/lib$name.la"
21222 if test -f "$additional_libdir/lib$name.$libext"; then
21223 found_dir="$additional_libdir"
21224 found_a="$additional_libdir/lib$name.$libext"
21225 if test -f "$additional_libdir/lib$name.la"; then
21226 found_la="$additional_libdir/lib$name.la"
21231 if test "X$found_dir" = "X"; then
21232 for x in $LDFLAGS $LTLIBINTL; do
21234 acl_save_prefix="$prefix"
21235 prefix="$acl_final_prefix"
21236 acl_save_exec_prefix="$exec_prefix"
21237 exec_prefix="$acl_final_exec_prefix"
21239 exec_prefix="$acl_save_exec_prefix"
21240 prefix="$acl_save_prefix"
21244 dir=`echo "X$x" | sed -e 's/^X-L//'`
21245 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21247 found_so="$dir/lib$name.$shlibext"
21248 if test -f "$dir/lib$name.la"; then
21249 found_la="$dir/lib$name.la"
21252 if test -f "$dir/lib$name.$libext"; then
21254 found_a="$dir/lib$name.$libext"
21255 if test -f "$dir/lib$name.la"; then
21256 found_la="$dir/lib$name.la"
21262 if test "X$found_dir" != "X"; then
21267 if test "X$found_dir" != "X"; then
21268 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21269 if test "X$found_so" != "X"; then
21270 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21271 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21274 for x in $ltrpathdirs; do
21275 if test "X$x" = "X$found_dir"; then
21280 if test -z "$haveit"; then
21281 ltrpathdirs="$ltrpathdirs $found_dir"
21283 if test "$hardcode_direct" = yes; then
21284 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21286 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21287 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21289 for x in $rpathdirs; do
21290 if test "X$x" = "X$found_dir"; then
21295 if test -z "$haveit"; then
21296 rpathdirs="$rpathdirs $found_dir"
21300 for x in $LDFLAGS $LIBINTL; do
21302 acl_save_prefix="$prefix"
21303 prefix="$acl_final_prefix"
21304 acl_save_exec_prefix="$exec_prefix"
21305 exec_prefix="$acl_final_exec_prefix"
21307 exec_prefix="$acl_save_exec_prefix"
21308 prefix="$acl_save_prefix"
21310 if test "X$x" = "X-L$found_dir"; then
21315 if test -z "$haveit"; then
21316 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21318 if test "$hardcode_minus_L" != no; then
21319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21321 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21327 if test "X$found_a" != "X"; then
21328 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21330 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21333 additional_includedir=
21334 case "$found_dir" in
21336 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21337 additional_includedir="$basedir/include"
21340 if test "X$additional_includedir" != "X"; then
21341 if test "X$additional_includedir" != "X/usr/include"; then
21343 if test "X$additional_includedir" = "X/usr/local/include"; then
21344 if test -n "$GCC"; then
21346 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21350 if test -z "$haveit"; then
21351 for x in $CPPFLAGS $INCINTL; do
21353 acl_save_prefix="$prefix"
21354 prefix="$acl_final_prefix"
21355 acl_save_exec_prefix="$exec_prefix"
21356 exec_prefix="$acl_final_exec_prefix"
21358 exec_prefix="$acl_save_exec_prefix"
21359 prefix="$acl_save_prefix"
21361 if test "X$x" = "X-I$additional_includedir"; then
21366 if test -z "$haveit"; then
21367 if test -d "$additional_includedir"; then
21368 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21374 if test -n "$found_la"; then
21375 save_libdir="$libdir"
21376 case "$found_la" in
21377 */* | *\\*) . "$found_la" ;;
21378 *) . "./$found_la" ;;
21380 libdir="$save_libdir"
21381 for dep in $dependency_libs; do
21384 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21385 if test "X$additional_libdir" != "X/usr/lib"; then
21387 if test "X$additional_libdir" = "X/usr/local/lib"; then
21388 if test -n "$GCC"; then
21390 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21394 if test -z "$haveit"; then
21396 for x in $LDFLAGS $LIBINTL; do
21398 acl_save_prefix="$prefix"
21399 prefix="$acl_final_prefix"
21400 acl_save_exec_prefix="$exec_prefix"
21401 exec_prefix="$acl_final_exec_prefix"
21403 exec_prefix="$acl_save_exec_prefix"
21404 prefix="$acl_save_prefix"
21406 if test "X$x" = "X-L$additional_libdir"; then
21411 if test -z "$haveit"; then
21412 if test -d "$additional_libdir"; then
21413 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21417 for x in $LDFLAGS $LTLIBINTL; do
21419 acl_save_prefix="$prefix"
21420 prefix="$acl_final_prefix"
21421 acl_save_exec_prefix="$exec_prefix"
21422 exec_prefix="$acl_final_exec_prefix"
21424 exec_prefix="$acl_save_exec_prefix"
21425 prefix="$acl_save_prefix"
21427 if test "X$x" = "X-L$additional_libdir"; then
21432 if test -z "$haveit"; then
21433 if test -d "$additional_libdir"; then
21434 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21441 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21442 if test "$enable_rpath" != no; then
21444 for x in $rpathdirs; do
21445 if test "X$x" = "X$dir"; then
21450 if test -z "$haveit"; then
21451 rpathdirs="$rpathdirs $dir"
21454 for x in $ltrpathdirs; do
21455 if test "X$x" = "X$dir"; then
21460 if test -z "$haveit"; then
21461 ltrpathdirs="$ltrpathdirs $dir"
21466 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21469 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21472 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21479 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21480 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21486 if test "X$rpathdirs" != "X"; then
21487 if test -n "$hardcode_libdir_separator"; then
21489 for found_dir in $rpathdirs; do
21490 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21492 acl_save_libdir="$libdir"
21494 eval flag=\"$hardcode_libdir_flag_spec\"
21495 libdir="$acl_save_libdir"
21496 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21498 for found_dir in $rpathdirs; do
21499 acl_save_libdir="$libdir"
21500 libdir="$found_dir"
21501 eval flag=\"$hardcode_libdir_flag_spec\"
21502 libdir="$acl_save_libdir"
21503 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21507 if test "X$ltrpathdirs" != "X"; then
21508 for found_dir in $ltrpathdirs; do
21509 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21514 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21515 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21516 $as_echo_n "(cached) " >&6
21518 gt_save_CPPFLAGS="$CPPFLAGS"
21519 CPPFLAGS="$CPPFLAGS $INCINTL"
21520 gt_save_LIBS="$LIBS"
21521 LIBS="$LIBS $LIBINTL"
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21524 #include <libintl.h>
21525 extern int _nl_msg_cat_cntr;
21530 const char *_nl_expand_alias (const char *);
21534 bindtextdomain ("", "");
21535 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21540 if ac_fn_c_try_link "$LINENO"; then :
21541 gt_cv_func_gnugettext1_libintl=yes
21543 gt_cv_func_gnugettext1_libintl=no
21545 rm -f core conftest.err conftest.$ac_objext \
21546 conftest$ac_exeext conftest.$ac_ext
21547 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21548 LIBS="$LIBS $LIBICONV"
21549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21550 /* end confdefs.h. */
21551 #include <libintl.h>
21552 extern int _nl_msg_cat_cntr;
21557 const char *_nl_expand_alias (const char *);
21561 bindtextdomain ("", "");
21562 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21567 if ac_fn_c_try_link "$LINENO"; then :
21568 LIBINTL="$LIBINTL $LIBICONV"
21569 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21570 gt_cv_func_gnugettext1_libintl=yes
21573 rm -f core conftest.err conftest.$ac_objext \
21574 conftest$ac_exeext conftest.$ac_ext
21576 CPPFLAGS="$gt_save_CPPFLAGS"
21577 LIBS="$gt_save_LIBS"
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21580 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21583 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21584 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21585 && test "$PACKAGE" != gettext-runtime \
21586 && test "$PACKAGE" != gettext-tools; }; then
21587 gt_use_preinstalled_gnugettext=yes
21595 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21596 nls_cv_use_gnu_gettext=yes
21600 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21601 BUILD_INCLUDED_LIBINTL=yes
21602 USE_INCLUDED_LIBINTL=yes
21603 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21604 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21605 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21609 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21610 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21615 if test -n "$INTL_MACOSX_LIBS"; then
21616 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21617 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21618 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21619 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21623 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21624 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21626 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21634 $as_echo_n "checking whether to use NLS... " >&6; }
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21636 $as_echo "$USE_NLS" >&6; }
21637 if test "$USE_NLS" = "yes"; then
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21639 $as_echo_n "checking where the gettext function comes from... " >&6; }
21640 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21641 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21642 gt_source="external libintl"
21647 gt_source="included intl directory"
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21650 $as_echo "$gt_source" >&6; }
21653 if test "$USE_NLS" = "yes"; then
21655 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21656 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21658 $as_echo_n "checking how to link with libintl... " >&6; }
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21660 $as_echo "$LIBINTL" >&6; }
21662 for element in $INCINTL; do
21664 for x in $CPPFLAGS; do
21666 acl_save_prefix="$prefix"
21667 prefix="$acl_final_prefix"
21668 acl_save_exec_prefix="$exec_prefix"
21669 exec_prefix="$acl_final_exec_prefix"
21671 exec_prefix="$acl_save_exec_prefix"
21672 prefix="$acl_save_prefix"
21674 if test "X$x" = "X$element"; then
21679 if test -z "$haveit"; then
21680 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21687 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21690 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21698 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21699 BUILD_INCLUDED_LIBINTL=yes
21706 nls_cv_header_intl=
21707 nls_cv_header_libgt=
21719 if test "$USE_INCLUDED_LIBINTL" = yes; then
21720 INTLOBJS="\$(GETTOBJS)"
21724 INTL_LIBTOOL_SUFFIX_PREFIX=
21728 INTLLIBS="$LIBINTL"
21737 support_smartalloc=yes
21738 support_readline=yes
21742 support_wx_console=no
21743 support_tray_monitor=no
21748 support_static_tools=no
21749 support_static_fd=no
21750 support_static_sd=no
21751 support_static_dir=no
21752 support_static_cons=no
21754 build_client_only=no
21758 batch_insert_db_backends=""
21762 # Check whether --enable-gnome was given.
21763 if test "${enable_gnome+set}" = set; then :
21764 enableval=$enable_gnome;
21765 if test x$enableval = xyes; then
21774 if test x$support_gnome = xyes; then
21775 as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21776 as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21778 # AC_SUBST(GNOME_DIR)
21780 # Check whether --enable-bat was given.
21781 if test "${enable_bat+set}" = set; then :
21782 enableval=$enable_bat;
21783 if test x$enableval = xyes; then
21785 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21795 if test x$support_bat = xyes; then
21796 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21798 if test $pkg = 0; then
21799 BAT_DIR=src/qt-console
21801 as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21819 # Check whether --enable-bwx-console was given.
21820 if test "${enable_bwx_console+set}" = set; then :
21821 enableval=$enable_bwx_console;
21822 if test x$enableval = xyes; then
21823 support_wx_console=yes
21831 if test x$support_wx_console = xyes; then
21832 abc=`$WXCONFIG $WXFLAGS --cppflags`
21834 if test $pkg = 0; then
21835 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21836 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21837 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21841 WX_DIR="src/wx-console"
21844 echo "wx-config program not found. bwx-console disabled."
21846 support_wx_console=no
21851 # Check whether --enable-tray-monitor was given.
21852 if test "${enable_tray_monitor+set}" = set; then :
21853 enableval=$enable_tray_monitor;
21854 if test x$enableval = xyes; then
21855 support_tray_monitor=yes
21863 if test x$support_tray_monitor = xyes; then
21864 abc=`$PKGCONFIG --exists gtk+-2.0`
21866 if test $pkg = 0; then
21867 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21868 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21871 TRAY_MONITOR_DIR=src/tray-monitor
21872 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21874 if test $pkg = 0; then
21876 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21883 # Check whether --enable-smartalloc was given.
21884 if test "${enable_smartalloc+set}" = set; then :
21885 enableval=$enable_smartalloc;
21886 if test x$enableval = xno; then
21887 support_smartalloc=no
21894 if test x$support_smartalloc = xyes; then
21896 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21900 # Check whether --enable-lockmgr was given.
21901 if test "${enable_lockmgr+set}" = set; then :
21902 enableval=$enable_lockmgr;
21903 if test x$enableval = xyes; then
21904 support_lockmgr=yes
21911 if test x$support_lockmgr = xyes; then
21913 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21918 # Check whether --enable-static-tools was given.
21919 if test "${enable_static_tools+set}" = set; then :
21920 enableval=$enable_static_tools;
21921 if test x$enableval = xyes; then
21922 if test x$use_libtool = xyes; then
21923 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21924 please rerun configure with --disable-libtool" "$LINENO" 5
21926 support_static_tools=yes
21934 if test x$support_static_tools = xyes; then
21935 TTOOL_LDFLAGS="-static"
21939 # Check whether --enable-static-fd was given.
21940 if test "${enable_static_fd+set}" = set; then :
21941 enableval=$enable_static_fd;
21942 if test x$enableval = xyes; then
21943 if test x$use_libtool = xyes; then
21944 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21945 please rerun configure with --disable-libtool" "$LINENO" 5
21947 support_static_fd=yes
21955 if test x$support_static_fd = xyes; then
21956 STATIC_FD="static-bacula-fd"
21960 # Check whether --enable-static-sd was given.
21961 if test "${enable_static_sd+set}" = set; then :
21962 enableval=$enable_static_sd;
21963 if test x$enableval = xyes; then
21964 if test x$use_libtool = xyes; then
21965 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21966 please rerun configure with --disable-libtool" "$LINENO" 5
21968 support_static_sd=yes
21976 if test x$support_static_sd = xyes; then
21977 STATIC_SD="static-bacula-sd"
21981 # Check whether --enable-static-dir was given.
21982 if test "${enable_static_dir+set}" = set; then :
21983 enableval=$enable_static_dir;
21984 if test x$enableval = xyes; then
21985 if test x$use_libtool = xyes; then
21986 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21987 please rerun configure with --disable-libtool" "$LINENO" 5
21989 support_static_dir=yes
21997 if test x$support_static_dir = xyes; then
21998 STATIC_DIR="static-bacula-dir"
22002 # Check whether --enable-static-cons was given.
22003 if test "${enable_static_cons+set}" = set; then :
22004 enableval=$enable_static_cons;
22005 if test x$enableval = xyes; then
22006 if test x$use_libtool = xyes; then
22007 as_fn_error $? "Libtool is enabled, not compatible with static tools,
22008 please rerun configure with --disable-libtool" "$LINENO" 5
22010 support_static_cons=yes
22020 if test x$support_static_cons = xyes; then
22021 STATIC_CONS="static-bconsole"
22022 STATIC_GNOME_CONS="static-bgnome-console"
22023 STATIC_WX_CONS="static-bwx-console"
22029 # Check whether --enable-client-only was given.
22030 if test "${enable_client_only+set}" = set; then :
22031 enableval=$enable_client_only;
22032 if test x$enableval = xyes; then
22033 build_client_only=yes
22041 if test x$build_client_only = xno; then
22048 # Check whether --enable-build-dird was given.
22049 if test "${enable_build_dird+set}" = set; then :
22050 enableval=$enable_build_dird;
22051 if test x$enableval = xno; then
22058 if test x$build_dird = xyes; then
22059 DIRD_DIR="src/dird"
22060 DIR_TOOLS="DIRTOOLS"
22063 DIR_TOOLS="NODIRTOOLS"
22068 # Check whether --enable-build-stored was given.
22069 if test "${enable_build_stored+set}" = set; then :
22070 enableval=$enable_build_stored;
22071 if test x$enableval = xno; then
22078 if test x$build_stored = xyes; then
22079 STORED_DIR="src/stored"
22085 # Check whether --enable-conio was given.
22086 if test "${enable_conio+set}" = set; then :
22087 enableval=$enable_conio;
22088 if test x$enableval = xno; then
22098 # Check whether --enable-ipv6 was given.
22099 if test "${enable_ipv6+set}" = set; then :
22100 enableval=$enable_ipv6;
22101 if test x$enableval = xno; then
22109 if test x$support_ipv6 = xyes; then
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22112 #include <sys/types.h>
22113 #include <sys/socket.h>
22114 #include <netinet/in.h>
22118 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22123 if ac_fn_c_try_link "$LINENO"; then :
22128 rm -f core conftest.err conftest.$ac_objext \
22129 conftest$ac_exeext conftest.$ac_ext
22132 if test x$support_ipv6 = xyes; then
22134 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22139 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22140 if test "x$ac_cv_header_curses_h" = xyes; then :
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22143 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22144 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22145 $as_echo_n "(cached) " >&6
22147 ac_check_lib_save_LIBS=$LIBS
22148 LIBS="-ltinfo $LIBS"
22149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h. */
22152 /* Override any GCC internal prototype to avoid an error.
22153 Use char because int might match the return type of a GCC
22154 builtin and then its argument prototype would still apply. */
22167 if ac_fn_c_try_link "$LINENO"; then :
22168 ac_cv_lib_tinfo_tgetent=yes
22170 ac_cv_lib_tinfo_tgetent=no
22172 rm -f core conftest.err conftest.$ac_objext \
22173 conftest$ac_exeext conftest.$ac_ext
22174 LIBS=$ac_check_lib_save_LIBS
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22177 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22178 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22183 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22184 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22185 $as_echo_n "(cached) " >&6
22187 ac_check_lib_save_LIBS=$LIBS
22188 LIBS="-lncurses $LIBS"
22189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22190 /* end confdefs.h. */
22192 /* Override any GCC internal prototype to avoid an error.
22193 Use char because int might match the return type of a GCC
22194 builtin and then its argument prototype would still apply. */
22207 if ac_fn_c_try_link "$LINENO"; then :
22208 ac_cv_lib_ncurses_tgetent=yes
22210 ac_cv_lib_ncurses_tgetent=no
22212 rm -f core conftest.err conftest.$ac_objext \
22213 conftest$ac_exeext conftest.$ac_ext
22214 LIBS=$ac_check_lib_save_LIBS
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22217 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22218 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22219 TERM_LIB="-lncurses"
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22223 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22224 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22225 $as_echo_n "(cached) " >&6
22227 ac_check_lib_save_LIBS=$LIBS
22228 LIBS="-ltermcap $LIBS"
22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22230 /* end confdefs.h. */
22232 /* Override any GCC internal prototype to avoid an error.
22233 Use char because int might match the return type of a GCC
22234 builtin and then its argument prototype would still apply. */
22247 if ac_fn_c_try_link "$LINENO"; then :
22248 ac_cv_lib_termcap_tgetent=yes
22250 ac_cv_lib_termcap_tgetent=no
22252 rm -f core conftest.err conftest.$ac_objext \
22253 conftest$ac_exeext conftest.$ac_ext
22254 LIBS=$ac_check_lib_save_LIBS
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22257 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22258 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22259 TERM_LIB="-ltermcap"
22270 for ac_header in curses.h
22272 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22273 if test "x$ac_cv_header_curses_h" = xyes; then :
22274 cat >>confdefs.h <<_ACEOF
22275 #define HAVE_CURSES_H 1
22282 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22283 if test "x$ac_cv_header_term_h" = xyes; then :
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22285 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22286 if ${ac_cv_lib_curses_tgetent+:} false; then :
22287 $as_echo_n "(cached) " >&6
22289 ac_check_lib_save_LIBS=$LIBS
22290 LIBS="-lcurses $LIBS"
22291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22292 /* end confdefs.h. */
22294 /* Override any GCC internal prototype to avoid an error.
22295 Use char because int might match the return type of a GCC
22296 builtin and then its argument prototype would still apply. */
22309 if ac_fn_c_try_link "$LINENO"; then :
22310 ac_cv_lib_curses_tgetent=yes
22312 ac_cv_lib_curses_tgetent=no
22314 rm -f core conftest.err conftest.$ac_objext \
22315 conftest$ac_exeext conftest.$ac_ext
22316 LIBS=$ac_check_lib_save_LIBS
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22319 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22320 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22321 TERM_LIB="-lcurses"
22335 if test x$support_conio = xyes; then
22336 if test x$TERM_LIB != x; then
22337 CONS_LIBS=$TERM_LIB
22341 support_readline=no
22343 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22346 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22351 # Check whether --enable-readline was given.
22352 if test "${enable_readline+set}" = set; then :
22353 enableval=$enable_readline;
22354 if test x$enableval = xno; then
22355 support_readline=no
22361 if test x$TERM_LIB = x ; then
22362 support_readline=no
22367 if test x$support_readline = xyes; then
22369 # Check whether --with-readline was given.
22370 if test "${with_readline+set}" = set; then :
22371 withval=$with_readline;
22372 case "$with_readline" in
22377 if test -f ${with_readline}/readline.h; then
22378 CONS_INC="-I${with_readline}"
22379 CONS_LDFLAGS="-L$with_readline"
22380 elif test -f ${with_readline}/include/readline/readline.h; then
22381 CONS_INC="-I${with_readline}/include/readline"
22382 CONS_LDFLAGS="-L${with_readline}/lib"
22383 with_readline="${with_readline}/include/readline"
22385 with_readline="/usr/include/readline"
22388 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22389 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22393 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22395 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22401 echo "readline.h not found. readline turned off ..."
22413 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22414 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22417 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22420 CONS_INC="-I/usr/include/readline"
22421 CONS_LIBS="-lreadline $TERM_LIB"
22425 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22426 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22430 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22433 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22434 CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22435 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22436 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22441 echo "readline.h not found. readline turned off ..."
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22469 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22470 if ${ac_cv_header_stat_broken+:} false; then :
22471 $as_echo_n "(cached) " >&6
22473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h. */
22475 #include <sys/types.h>
22476 #include <sys/stat.h>
22478 #if defined S_ISBLK && defined S_IFDIR
22479 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22482 #if defined S_ISBLK && defined S_IFCHR
22483 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22486 #if defined S_ISLNK && defined S_IFREG
22487 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22490 #if defined S_ISSOCK && defined S_IFREG
22491 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22495 if ac_fn_c_try_compile "$LINENO"; then :
22496 ac_cv_header_stat_broken=no
22498 ac_cv_header_stat_broken=yes
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22503 $as_echo "$ac_cv_header_stat_broken" >&6; }
22504 if test $ac_cv_header_stat_broken = yes; then
22506 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22510 ac_header_dirent=no
22511 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22512 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22514 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22515 if eval \${$as_ac_Header+:} false; then :
22516 $as_echo_n "(cached) " >&6
22518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h. */
22520 #include <sys/types.h>
22532 if ac_fn_c_try_compile "$LINENO"; then :
22533 eval "$as_ac_Header=yes"
22535 eval "$as_ac_Header=no"
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 eval ac_res=\$$as_ac_Header
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22541 $as_echo "$ac_res" >&6; }
22542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22543 cat >>confdefs.h <<_ACEOF
22544 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22547 ac_header_dirent=$ac_hdr; break
22551 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22552 if test $ac_header_dirent = dirent.h; then
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22554 $as_echo_n "checking for library containing opendir... " >&6; }
22555 if ${ac_cv_search_opendir+:} false; then :
22556 $as_echo_n "(cached) " >&6
22558 ac_func_search_save_LIBS=$LIBS
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h. */
22562 /* Override any GCC internal prototype to avoid an error.
22563 Use char because int might match the return type of a GCC
22564 builtin and then its argument prototype would still apply. */
22577 for ac_lib in '' dir; do
22578 if test -z "$ac_lib"; then
22579 ac_res="none required"
22582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22584 if ac_fn_c_try_link "$LINENO"; then :
22585 ac_cv_search_opendir=$ac_res
22587 rm -f core conftest.err conftest.$ac_objext \
22589 if ${ac_cv_search_opendir+:} false; then :
22593 if ${ac_cv_search_opendir+:} false; then :
22596 ac_cv_search_opendir=no
22598 rm conftest.$ac_ext
22599 LIBS=$ac_func_search_save_LIBS
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22602 $as_echo "$ac_cv_search_opendir" >&6; }
22603 ac_res=$ac_cv_search_opendir
22604 if test "$ac_res" != no; then :
22605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22611 $as_echo_n "checking for library containing opendir... " >&6; }
22612 if ${ac_cv_search_opendir+:} false; then :
22613 $as_echo_n "(cached) " >&6
22615 ac_func_search_save_LIBS=$LIBS
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22619 /* Override any GCC internal prototype to avoid an error.
22620 Use char because int might match the return type of a GCC
22621 builtin and then its argument prototype would still apply. */
22634 for ac_lib in '' x; do
22635 if test -z "$ac_lib"; then
22636 ac_res="none required"
22639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22641 if ac_fn_c_try_link "$LINENO"; then :
22642 ac_cv_search_opendir=$ac_res
22644 rm -f core conftest.err conftest.$ac_objext \
22646 if ${ac_cv_search_opendir+:} false; then :
22650 if ${ac_cv_search_opendir+:} false; then :
22653 ac_cv_search_opendir=no
22655 rm conftest.$ac_ext
22656 LIBS=$ac_func_search_save_LIBS
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22659 $as_echo "$ac_cv_search_opendir" >&6; }
22660 ac_res=$ac_cv_search_opendir
22661 if test "$ac_res" != no; then :
22662 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22668 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22670 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22671 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22672 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22673 cat >>confdefs.h <<_ACEOF
22674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22680 for ac_func in nanosleep nl_langinfo
22682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22683 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22684 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22685 cat >>confdefs.h <<_ACEOF
22686 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22692 for ac_header in varargs.h
22694 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22695 if test "x$ac_cv_header_varargs_h" = xyes; then :
22696 cat >>confdefs.h <<_ACEOF
22697 #define HAVE_VARARGS_H 1
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22707 $as_echo_n "checking for Python support... " >&6; }
22709 # Check whether --with-python was given.
22710 if test "${with_python+set}" = set; then :
22711 withval=$with_python;
22714 if test "$withval" != "no"; then
22715 if test "$withval" = "yes"; then
22716 if test -e /usr/bin/python-config ; then
22717 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22718 PYTHON_LIBS=`/usr/bin/python-config --libs`
22720 for python_root in /usr /usr/local /usr/sfw; do
22721 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python2.7 python3; do
22722 if test -f $python_root/include/${ver}/Python.h; then
22723 PYTHON_INCDIR=-I$python_root/include/${ver}
22724 if test -d $python_root/lib64/${ver}/config; then
22725 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22727 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22734 if test x$PYTHON_INCDIR = x; then
22735 if test -f $prefix/include/Python.h; then
22736 PYTHON_INCDIR=-I$prefix/include
22737 if test -d $prefix/lib64/config; then
22738 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22740 PYTHON_LIBS="-L$prefix/lib/config -lpython"
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22744 $as_echo "no" >&6; }
22745 as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22750 if test -e $withval/bin/python-config ; then
22751 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22752 PYTHON_LIBS=`$withval/bin/python-config --libs`
22753 elif test -f $withval/Python.h; then
22754 PYTHON_INCDIR=-I$withval
22755 PYTHON_LIBS="-L$withval/config -lpython"
22756 elif test -f $withval/include/Python.h; then
22757 PYTHON_INCDIR=-I$withval/include
22758 if test -d $withval/lib64/config; then
22759 PYTHON_LIBS="-L$withval/lib64/config -lpython"
22761 PYTHON_LIBS="-L$withval/lib/config -lpython"
22763 elif test -f $withval/include/python/Python.h; then
22764 PYTHON_INCDIR=-I$withval/include/python
22765 if test -d $withval/lib64/python/config; then
22766 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22768 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22772 $as_echo "no" >&6; }
22773 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22777 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22780 $as_echo "yes" >&6; }
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22783 $as_echo "$as_me: checking for more Python libs" >&6;}
22784 saved_LIBS="$LIBS"; LIBS=
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22786 $as_echo_n "checking for library containing shm_open... " >&6; }
22787 if ${ac_cv_search_shm_open+:} false; then :
22788 $as_echo_n "(cached) " >&6
22790 ac_func_search_save_LIBS=$LIBS
22791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22792 /* end confdefs.h. */
22794 /* Override any GCC internal prototype to avoid an error.
22795 Use char because int might match the return type of a GCC
22796 builtin and then its argument prototype would still apply. */
22804 return shm_open ();
22809 for ac_lib in '' rt; do
22810 if test -z "$ac_lib"; then
22811 ac_res="none required"
22814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22816 if ac_fn_c_try_link "$LINENO"; then :
22817 ac_cv_search_shm_open=$ac_res
22819 rm -f core conftest.err conftest.$ac_objext \
22821 if ${ac_cv_search_shm_open+:} false; then :
22825 if ${ac_cv_search_shm_open+:} false; then :
22828 ac_cv_search_shm_open=no
22830 rm conftest.$ac_ext
22831 LIBS=$ac_func_search_save_LIBS
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22834 $as_echo "$ac_cv_search_shm_open" >&6; }
22835 ac_res=$ac_cv_search_shm_open
22836 if test "$ac_res" != no; then :
22837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22842 $as_echo_n "checking for openpty in -lutil... " >&6; }
22843 if ${ac_cv_lib_util_openpty+:} false; then :
22844 $as_echo_n "(cached) " >&6
22846 ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lutil $LIBS"
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22851 /* Override any GCC internal prototype to avoid an error.
22852 Use char because int might match the return type of a GCC
22853 builtin and then its argument prototype would still apply. */
22866 if ac_fn_c_try_link "$LINENO"; then :
22867 ac_cv_lib_util_openpty=yes
22869 ac_cv_lib_util_openpty=no
22871 rm -f core conftest.err conftest.$ac_objext \
22872 conftest$ac_exeext conftest.$ac_ext
22873 LIBS=$ac_check_lib_save_LIBS
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22876 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22877 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22878 cat >>confdefs.h <<_ACEOF
22879 #define HAVE_LIBUTIL 1
22882 LIBS="-lutil $LIBS"
22886 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22896 $as_echo "no" >&6; }
22904 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22905 if test "x$ac_cv_func_socket" = xyes; then :
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22907 $as_echo "using libc's socket" >&6; }
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22910 $as_echo_n "checking for socket in -lxnet... " >&6; }
22911 if ${ac_cv_lib_xnet_socket+:} false; then :
22912 $as_echo_n "(cached) " >&6
22914 ac_check_lib_save_LIBS=$LIBS
22915 LIBS="-lxnet $LIBS"
22916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22917 /* end confdefs.h. */
22919 /* Override any GCC internal prototype to avoid an error.
22920 Use char because int might match the return type of a GCC
22921 builtin and then its argument prototype would still apply. */
22934 if ac_fn_c_try_link "$LINENO"; then :
22935 ac_cv_lib_xnet_socket=yes
22937 ac_cv_lib_xnet_socket=no
22939 rm -f core conftest.err conftest.$ac_objext \
22940 conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22944 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22945 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22946 cat >>confdefs.h <<_ACEOF
22947 #define HAVE_LIBXNET 1
22950 LIBS="-lxnet $LIBS"
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22955 $as_echo_n "checking for socket in -lsocket... " >&6; }
22956 if ${ac_cv_lib_socket_socket+:} false; then :
22957 $as_echo_n "(cached) " >&6
22959 ac_check_lib_save_LIBS=$LIBS
22960 LIBS="-lsocket $LIBS"
22961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22962 /* end confdefs.h. */
22964 /* Override any GCC internal prototype to avoid an error.
22965 Use char because int might match the return type of a GCC
22966 builtin and then its argument prototype would still apply. */
22979 if ac_fn_c_try_link "$LINENO"; then :
22980 ac_cv_lib_socket_socket=yes
22982 ac_cv_lib_socket_socket=no
22984 rm -f core conftest.err conftest.$ac_objext \
22985 conftest$ac_exeext conftest.$ac_ext
22986 LIBS=$ac_check_lib_save_LIBS
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22989 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22990 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22991 cat >>confdefs.h <<_ACEOF
22992 #define HAVE_LIBSOCKET 1
22995 LIBS="-lsocket $LIBS"
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
23000 $as_echo_n "checking for socket in -linet... " >&6; }
23001 if ${ac_cv_lib_inet_socket+:} false; then :
23002 $as_echo_n "(cached) " >&6
23004 ac_check_lib_save_LIBS=$LIBS
23005 LIBS="-linet $LIBS"
23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007 /* end confdefs.h. */
23009 /* Override any GCC internal prototype to avoid an error.
23010 Use char because int might match the return type of a GCC
23011 builtin and then its argument prototype would still apply. */
23024 if ac_fn_c_try_link "$LINENO"; then :
23025 ac_cv_lib_inet_socket=yes
23027 ac_cv_lib_inet_socket=no
23029 rm -f core conftest.err conftest.$ac_objext \
23030 conftest$ac_exeext conftest.$ac_ext
23031 LIBS=$ac_check_lib_save_LIBS
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
23034 $as_echo "$ac_cv_lib_inet_socket" >&6; }
23035 if test "x$ac_cv_lib_inet_socket" = xyes; then :
23036 cat >>confdefs.h <<_ACEOF
23037 #define HAVE_LIBINET 1
23040 LIBS="-linet $LIBS"
23050 # Check whether --with-tcp-wrappers was given.
23051 if test "${with_tcp_wrappers+set}" = set; then :
23052 withval=$with_tcp_wrappers;
23053 if test "x$withval" != "xno" ; then
23055 LIBS="$saved_LIBS -lwrap"
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
23057 $as_echo_n "checking for library containing nanosleep... " >&6; }
23058 if ${ac_cv_search_nanosleep+:} false; then :
23059 $as_echo_n "(cached) " >&6
23061 ac_func_search_save_LIBS=$LIBS
23062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23063 /* end confdefs.h. */
23065 /* Override any GCC internal prototype to avoid an error.
23066 Use char because int might match the return type of a GCC
23067 builtin and then its argument prototype would still apply. */
23075 return nanosleep ();
23080 for ac_lib in '' rt; do
23081 if test -z "$ac_lib"; then
23082 ac_res="none required"
23085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23087 if ac_fn_c_try_link "$LINENO"; then :
23088 ac_cv_search_nanosleep=$ac_res
23090 rm -f core conftest.err conftest.$ac_objext \
23092 if ${ac_cv_search_nanosleep+:} false; then :
23096 if ${ac_cv_search_nanosleep+:} false; then :
23099 ac_cv_search_nanosleep=no
23101 rm conftest.$ac_ext
23102 LIBS=$ac_func_search_save_LIBS
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
23105 $as_echo "$ac_cv_search_nanosleep" >&6; }
23106 ac_res=$ac_cv_search_nanosleep
23107 if test "$ac_res" != no; then :
23108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
23113 $as_echo_n "checking for libwrap... " >&6; }
23114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23115 /* end confdefs.h. */
23117 #include <sys/types.h>
23119 int deny_severity = 0;
23120 int allow_severity = 0;
23121 struct request_info *req;
23133 if ac_fn_c_try_link "$LINENO"; then :
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23136 $as_echo "yes" >&6; }
23138 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23146 LIBS="$saved_LIBS -lwrap -lnsl"
23147 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
23148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23149 /* end confdefs.h. */
23151 #include <sys/types.h>
23153 int deny_severity = 0;
23154 int allow_severity = 0;
23155 struct request_info *req;
23167 if ac_fn_c_try_link "$LINENO"; then :
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23170 $as_echo "yes" >&6; }
23172 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23180 as_fn_error $? "*** libwrap missing" "$LINENO" 5
23184 rm -f core conftest.err conftest.$ac_objext \
23185 conftest$ac_exeext conftest.$ac_ext
23189 rm -f core conftest.err conftest.$ac_objext \
23190 conftest$ac_exeext conftest.$ac_ext
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23198 $as_echo_n "checking for OpenSSL... " >&6; }
23200 # Check whether --with-openssl was given.
23201 if test "${with_openssl+set}" = set; then :
23202 withval=$with_openssl;
23203 with_openssl_directory=${withval}
23209 if test "x$with_openssl_directory" != "xno"; then
23210 OPENSSL_LIBS="-lssl -lcrypto"
23213 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23215 # Make sure the $with_openssl_directory also makes sense
23217 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23218 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23219 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23223 saved_LIBS="${LIBS}"
23224 saved_CFLAGS="${CFLAGS}"
23225 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23226 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229 /* end confdefs.h. */
23231 #include <openssl/ssl.h>
23237 CRYPTO_set_id_callback(NULL);
23243 if ac_fn_c_try_link "$LINENO"; then :
23246 support_crypto="yes"
23251 support_crypto="no"
23255 rm -f core conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h. */
23261 #include <openssl/evp.h>
23273 if ac_fn_c_try_link "$LINENO"; then :
23275 ac_cv_openssl_sha2="yes"
23279 ac_cv_openssl_sha2="no"
23283 rm -f core conftest.err conftest.$ac_objext \
23284 conftest$ac_exeext conftest.$ac_ext
23286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23287 /* end confdefs.h. */
23289 #include <openssl/evp.h>
23301 if ac_fn_c_try_link "$LINENO"; then :
23303 ac_cv_openssl_export="no"
23307 ac_cv_openssl_export="yes"
23311 rm -f core conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23315 $as_echo "$support_tls" >&6; }
23316 if test "$support_tls" = "yes"; then
23318 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23321 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23324 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23328 if test "$ac_cv_openssl_sha2" = "yes"; then
23330 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23334 if test "$ac_cv_openssl_export" = "yes"; then
23336 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23340 if test "$support_crypto" = "yes"; then
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23342 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23343 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23344 $as_echo_n "(cached) " >&6
23346 ac_check_lib_save_LIBS=$LIBS
23347 LIBS="-lcrypto $LIBS"
23348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349 /* end confdefs.h. */
23351 /* Override any GCC internal prototype to avoid an error.
23352 Use char because int might match the return type of a GCC
23353 builtin and then its argument prototype would still apply. */
23357 char EVP_PKEY_encrypt_old ();
23361 return EVP_PKEY_encrypt_old ();
23366 if ac_fn_c_try_link "$LINENO"; then :
23367 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23369 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23371 rm -f core conftest.err conftest.$ac_objext \
23372 conftest$ac_exeext conftest.$ac_ext
23373 LIBS=$ac_check_lib_save_LIBS
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23376 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23377 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23379 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23385 LIBS="${saved_LIBS}"
23386 CFLAGS="${saved_CFLAGS}"
23389 support_crypto="no"
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23391 $as_echo "$support_tls" >&6; }
23394 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23403 $as_echo_n "checking for library containing dlopen... " >&6; }
23404 if ${ac_cv_search_dlopen+:} false; then :
23405 $as_echo_n "(cached) " >&6
23407 ac_func_search_save_LIBS=$LIBS
23408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23409 /* end confdefs.h. */
23411 /* Override any GCC internal prototype to avoid an error.
23412 Use char because int might match the return type of a GCC
23413 builtin and then its argument prototype would still apply. */
23426 for ac_lib in '' dl; do
23427 if test -z "$ac_lib"; then
23428 ac_res="none required"
23431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23433 if ac_fn_c_try_link "$LINENO"; then :
23434 ac_cv_search_dlopen=$ac_res
23436 rm -f core conftest.err conftest.$ac_objext \
23438 if ${ac_cv_search_dlopen+:} false; then :
23442 if ${ac_cv_search_dlopen+:} false; then :
23445 ac_cv_search_dlopen=no
23447 rm conftest.$ac_ext
23448 LIBS=$ac_func_search_save_LIBS
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23451 $as_echo "$ac_cv_search_dlopen" >&6; }
23452 ac_res=$ac_cv_search_dlopen
23453 if test "$ac_res" != no; then :
23454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23459 working_dir=`eval echo ${prefix}/var/bacula/working`
23461 # Check whether --with-working-dir was given.
23462 if test "${with_working_dir+set}" = set; then :
23463 withval=$with_working_dir;
23464 if test "x$withval" != "xno" ; then
23465 working_dir=$withval
23476 # Check whether --with-archivedir was given.
23477 if test "${with_archivedir+set}" = set; then :
23478 withval=$with_archivedir;
23479 if test "x$withval" != "xno" ; then
23480 archivedir=$withval
23489 basename=`hostname`
23491 # Check whether --with-basename was given.
23492 if test "${with_basename+set}" = set; then :
23493 withval=$with_basename;
23494 if test "x$withval" != "xno" ; then
23504 hostname=`uname -n | cut -d '.' -f 1`
23505 if test x${hostname} = x ; then
23506 hostname="localhost"
23508 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23509 if test ! $? = 0; then
23510 hostname="localhost"
23513 # Check whether --with-hostname was given.
23514 if test "${with_hostname+set}" = set; then :
23515 withval=$with_hostname;
23516 if test "x$withval" != "xno" ; then
23527 scriptdir=`eval echo ${sysconfdir}`
23529 # Check whether --with-scriptdir was given.
23530 if test "${with_scriptdir+set}" = set; then :
23531 withval=$with_scriptdir;
23532 if test "x$withval" != "xno" ; then
23545 # Check whether --with-bsrdir was given.
23546 if test "${with_bsrdir+set}" = set; then :
23547 withval=$with_bsrdir;
23548 if test "x$withval" != "xno" ; then
23560 # Check whether --with-logdir was given.
23561 if test "${with_logdir+set}" = set; then :
23562 withval=$with_logdir;
23563 if test "x$withval" != "xno" ; then
23574 # ------------------------------------------
23575 # Where to place plugindir (plugin files)
23576 # ------------------------------------------
23577 plugindir=`eval echo ${libdir}`
23579 # Check whether --with-plugindir was given.
23580 if test "${with_plugindir+set}" = set; then :
23581 withval=$with_plugindir;
23582 if test "x$withval" != "xno" ; then
23592 dump_email=root@localhost
23594 # Check whether --with-dump-email was given.
23595 if test "${with_dump_email+set}" = set; then :
23596 withval=$with_dump_email;
23597 if test "x$withval" != "xno" ; then
23598 dump_email=$withval
23607 job_email=root@localhost
23609 # Check whether --with-job-email was given.
23610 if test "${with_job_email+set}" = set; then :
23611 withval=$with_job_email;
23612 if test "x$withval" != "xno" ; then
23622 smtp_host=localhost
23624 # Check whether --with-smtp_host was given.
23625 if test "${with_smtp_host+set}" = set; then :
23626 withval=$with_smtp_host;
23627 if test "x$withval" != "xno" ; then
23639 # Check whether --with-pid-dir was given.
23640 if test "${with_pid_dir+set}" = set; then :
23641 withval=$with_pid_dir;
23642 if test "x$withval" != "xno" ; then
23650 cat >>confdefs.h <<_ACEOF
23651 #define _PATH_BACULA_PIDDIR "$piddir"
23656 subsysdir=/var/run/subsys
23657 if test -d /var/run/subsys; then
23658 subsysdir=/var/run/subsys
23659 elif test -d /var/lock/subsys; then
23660 subsysdir=/var/lock/subsys
23662 subsysdir=/var/run/subsys
23665 # Check whether --with-subsys-dir was given.
23666 if test "${with_subsys_dir+set}" = set; then :
23667 withval=$with_subsys_dir;
23668 if test "x$withval" != "xno" ; then
23680 # Check whether --with-baseport was given.
23681 if test "${with_baseport+set}" = set; then :
23682 withval=$with_baseport;
23683 if test "x$withval" != "xno" ; then
23692 dir_port=`expr $baseport`
23693 fd_port=`expr $baseport + 1`
23694 sd_port=`expr $fd_port + 1`
23702 # Check whether --with-dir-password was given.
23703 if test "${with_dir_password+set}" = set; then :
23704 withval=$with_dir_password;
23705 if test "x$withval" != "xno" ; then
23706 dir_password=$withval
23713 if test "x$dir_password" = "x" ; then
23714 if test "x$OPENSSL" = "xnone" ; then
23715 key=`autoconf/randpass 33`
23717 key=`openssl rand -base64 33`
23724 # Check whether --with-fd-password was given.
23725 if test "${with_fd_password+set}" = set; then :
23726 withval=$with_fd_password;
23727 if test "x$withval" != "xno" ; then
23728 fd_password=$withval
23735 if test "x$fd_password" = "x" ; then
23736 if test "x$OPENSSL" = "xnone" ; then
23737 key=`autoconf/randpass 37`
23739 key=`openssl rand -base64 33`
23746 # Check whether --with-sd-password was given.
23747 if test "${with_sd_password+set}" = set; then :
23748 withval=$with_sd_password;
23749 if test "x$withval" != "xno" ; then
23750 sd_password=$withval
23757 if test "x$sd_password" = "x" ; then
23758 if test "x$OPENSSL" = "xnone" ; then
23759 key=`autoconf/randpass 41`
23761 key=`openssl rand -base64 33`
23768 # Check whether --with-mon-dir-password was given.
23769 if test "${with_mon_dir_password+set}" = set; then :
23770 withval=$with_mon_dir_password;
23771 if test "x$withval" != "xno" ; then
23772 mon_dir_password=$withval
23779 if test "x$mon_dir_password" = "x" ; then
23780 if test "x$OPENSSL" = "xnone" ; then
23781 key=`autoconf/randpass 33`
23783 key=`openssl rand -base64 33`
23785 mon_dir_password=$key
23790 # Check whether --with-mon-fd-password was given.
23791 if test "${with_mon_fd_password+set}" = set; then :
23792 withval=$with_mon_fd_password;
23793 if test "x$withval" != "xno" ; then
23794 mon_fd_password=$withval
23801 if test "x$mon_fd_password" = "x" ; then
23802 if test "x$OPENSSL" = "xnone" ; then
23803 key=`autoconf/randpass 37`
23805 key=`openssl rand -base64 33`
23807 mon_fd_password=$key
23812 # Check whether --with-mon-sd-password was given.
23813 if test "${with_mon_sd_password+set}" = set; then :
23814 withval=$with_mon_sd_password;
23815 if test "x$withval" != "xno" ; then
23816 mon_sd_password=$withval
23823 if test "x$mon_sd_password" = "x" ; then
23824 if test "x$OPENSSL" = "xnone" ; then
23825 key=`autoconf/randpass 41`
23827 key=`openssl rand -base64 33`
23829 mon_sd_password=$key
23841 # Check whether --with-db_name was given.
23842 if test "${with_db_name+set}" = set; then :
23843 withval=$with_db_name;
23844 if test "x$withval" != "x" ; then
23855 # Check whether --with-db_user was given.
23856 if test "${with_db_user+set}" = set; then :
23857 withval=$with_db_user;
23858 if test "x$withval" != "x" ; then
23869 # Check whether --with-db_password was given.
23870 if test "${with_db_password+set}" = set; then :
23871 withval=$with_db_password;
23872 if test "x$withval" != "x" ; then
23873 db_password=$withval
23883 # Check whether --with-db_port was given.
23884 if test "${with_db_port+set}" = set; then :
23885 withval=$with_db_port;
23886 if test "x$withval" != "x" ; then
23896 # Handle users and groups for each daemon
23900 # Check whether --with-dir_user was given.
23901 if test "${with_dir_user+set}" = set; then :
23902 withval=$with_dir_user;
23903 if test "x$withval" != "x" ; then
23913 # Check whether --with-dir_group was given.
23914 if test "${with_dir_group+set}" = set; then :
23915 withval=$with_dir_group;
23916 if test "x$withval" != "x" ; then
23926 # Check whether --with-sd_user was given.
23927 if test "${with_sd_user+set}" = set; then :
23928 withval=$with_sd_user;
23929 if test "x$withval" != "x" ; then
23939 # Check whether --with-sd_group was given.
23940 if test "${with_sd_group+set}" = set; then :
23941 withval=$with_sd_group;
23942 if test "x$withval" != "x" ; then
23952 # Check whether --with-fd_user was given.
23953 if test "${with_fd_user+set}" = set; then :
23954 withval=$with_fd_user;
23955 if test "x$withval" != "x" ; then
23965 # Check whether --with-fd_group was given.
23966 if test "${with_fd_group+set}" = set; then :
23967 withval=$with_fd_group;
23968 if test "x$withval" != "x" ; then
23985 # Check whether --with-sbin-perm was given.
23986 if test "${with_sbin_perm+set}" = set; then :
23987 withval=$with_sbin_perm;
23988 if test "x$withval" != "x" ; then
23998 support_batch_insert=yes
23999 # Check whether --enable-batch-insert was given.
24000 if test "${enable_batch_insert+set}" = set; then :
24001 enableval=$enable_batch_insert;
24002 if test x$enableval = xno; then
24003 support_batch_insert=no
24010 if test x$support_batch_insert = xyes; then
24012 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
24021 $as_echo_n "checking for PostgreSQL support... " >&6; }
24023 # Check whether --with-postgresql was given.
24024 if test "${with_postgresql+set}" = set; then :
24025 withval=$with_postgresql;
24026 if test "$withval" != "no"; then
24027 if test "$withval" = "yes"; then
24028 PG_CONFIG=`which pg_config 2>/dev/null`
24029 if test -n "$PG_CONFIG"; then
24030 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
24031 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
24032 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
24033 elif test -f /usr/local/include/libpq-fe.h; then
24034 POSTGRESQL_INCDIR=/usr/local/include
24035 if test -d /usr/local/lib64; then
24036 POSTGRESQL_LIBDIR=/usr/local/lib64
24038 POSTGRESQL_LIBDIR=/usr/local/lib
24040 POSTGRESQL_BINDIR=/usr/local/bin
24041 elif test -f /usr/include/libpq-fe.h; then
24042 POSTGRESQL_INCDIR=/usr/include
24043 if test -d /usr/lib64; then
24044 POSTGRESQL_LIBDIR=/usr/lib64
24046 POSTGRESQL_LIBDIR=/usr/lib
24048 POSTGRESQL_BINDIR=/usr/bin
24049 elif test -f /usr/include/pgsql/libpq-fe.h; then
24050 POSTGRESQL_INCDIR=/usr/include/pgsql
24051 if test -d /usr/lib64/pgsql; then
24052 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
24054 POSTGRESQL_LIBDIR=/usr/lib/pgsql
24056 POSTGRESQL_BINDIR=/usr/bin
24057 elif test -f /usr/include/postgresql/libpq-fe.h; then
24058 POSTGRESQL_INCDIR=/usr/include/postgresql
24059 if test -d /usr/lib64/postgresql; then
24060 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
24062 POSTGRESQL_LIBDIR=/usr/lib/postgresql
24064 POSTGRESQL_BINDIR=/usr/bin
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24067 $as_echo "no" >&6; }
24068 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
24070 elif test -f $withval/include/libpq-fe.h; then
24071 POSTGRESQL_INCDIR=$withval/include
24072 POSTGRESQL_LIBDIR=$withval/lib
24073 POSTGRESQL_BINDIR=$withval/bin
24074 elif test -f $withval/include/postgresql/libpq-fe.h; then
24075 POSTGRESQL_INCDIR=$withval/include/postgresql
24076 if test -d $withval/lib64; then
24077 POSTGRESQL_LIBDIR=$withval/lib64
24079 POSTGRESQL_LIBDIR=$withval/lib
24081 POSTGRESQL_BINDIR=$withval/bin
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24084 $as_echo "no" >&6; }
24085 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
24088 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24091 $as_echo "yes" >&6; }
24093 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
24094 if test x$use_libtool != xno; then
24095 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
24097 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
24099 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
24100 if test "x$ac_cv_func_crypt" = xyes; then :
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
24104 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
24105 if ${ac_cv_lib_crypt_crypt+:} false; then :
24106 $as_echo_n "(cached) " >&6
24108 ac_check_lib_save_LIBS=$LIBS
24109 LIBS="-lcrypt $LIBS"
24110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h. */
24113 /* Override any GCC internal prototype to avoid an error.
24114 Use char because int might match the return type of a GCC
24115 builtin and then its argument prototype would still apply. */
24128 if ac_fn_c_try_link "$LINENO"; then :
24129 ac_cv_lib_crypt_crypt=yes
24131 ac_cv_lib_crypt_crypt=no
24133 rm -f core conftest.err conftest.$ac_objext \
24134 conftest$ac_exeext conftest.$ac_ext
24135 LIBS=$ac_check_lib_save_LIBS
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24138 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24139 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24140 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
24145 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
24146 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
24148 if test -z "${db_backends}"; then
24149 db_backends="PostgreSQL"
24151 db_backends="${db_backends} PostgreSQL"
24153 if test -z "${DB_BACKENDS}"; then
24154 DB_BACKENDS="postgresql"
24156 DB_BACKENDS="${DB_BACKENDS} postgresql"
24159 if test "x$support_batch_insert" = "xyes"; then
24160 saved_LDFLAGS="${LDFLAGS}"
24161 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24162 saved_LIBS="${LIBS}"
24163 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24164 LIBS="${saved_LIBS} -lcrypt"
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24168 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24169 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24170 $as_echo_n "(cached) " >&6
24172 ac_check_lib_save_LIBS=$LIBS
24174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24175 /* end confdefs.h. */
24177 /* Override any GCC internal prototype to avoid an error.
24178 Use char because int might match the return type of a GCC
24179 builtin and then its argument prototype would still apply. */
24183 char PQisthreadsafe ();
24187 return PQisthreadsafe ();
24192 if ac_fn_c_try_link "$LINENO"; then :
24193 ac_cv_lib_pq_PQisthreadsafe=yes
24195 ac_cv_lib_pq_PQisthreadsafe=no
24197 rm -f core conftest.err conftest.$ac_objext \
24198 conftest$ac_exeext conftest.$ac_ext
24199 LIBS=$ac_check_lib_save_LIBS
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24202 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24203 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24205 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24210 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24211 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24212 $as_echo_n "(cached) " >&6
24214 ac_check_lib_save_LIBS=$LIBS
24216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24217 /* end confdefs.h. */
24219 /* Override any GCC internal prototype to avoid an error.
24220 Use char because int might match the return type of a GCC
24221 builtin and then its argument prototype would still apply. */
24225 char PQputCopyData ();
24229 return PQputCopyData ();
24234 if ac_fn_c_try_link "$LINENO"; then :
24235 ac_cv_lib_pq_PQputCopyData=yes
24237 ac_cv_lib_pq_PQputCopyData=no
24239 rm -f core conftest.err conftest.$ac_objext \
24240 conftest$ac_exeext conftest.$ac_ext
24241 LIBS=$ac_check_lib_save_LIBS
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24244 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24245 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24247 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24251 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24252 if test $support_batch_insert = yes ; then
24254 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24256 if test -z "${batch_insert_db_backends}"; then
24257 batch_insert_db_backends="PostgreSQL"
24259 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24264 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24266 echo "WARNING: Your PostgreSQL client library is too old to detect "
24267 echo "if it was compiled with --enable-thread-safety, consider to "
24268 echo "upgrade it in order to avoid problems with Batch insert mode"
24271 LDFLAGS="${saved_LDFLAGS}"
24272 LIBS="${saved_LIBS}"
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24276 $as_echo "no" >&6; }
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24282 $as_echo "no" >&6; }
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24294 $as_echo_n "checking for MySQL support... " >&6; }
24296 # Check whether --with-mysql was given.
24297 if test "${with_mysql+set}" = set; then :
24298 withval=$with_mysql;
24299 if test "$withval" != "no"; then
24300 if test "$withval" = "yes"; then
24302 # This code is very broken on older systems
24304 # MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24305 # if test "x${MYSQL_CONFIG}" != x; then
24306 # MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24307 # ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24308 # if test $? = 0 ; then
24309 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24310 # MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24312 # MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24313 # MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24315 # elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24316 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24317 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24318 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24319 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24320 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24322 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24324 MYSQL_BINDIR=/usr/local/mysql/bin
24325 elif test -f /usr/include/mysql/mysql.h; then
24326 MYSQL_INCDIR=/usr/include/mysql
24327 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24328 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24329 MYSQL_LIBDIR=/usr/lib64/mysql
24330 elif test -f /usr/lib64/libmysqlclient_r.a \
24331 -o -f /usr/lib64/libmysqlclient_r.so; then
24332 MYSQL_LIBDIR=/usr/lib64
24333 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24334 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24335 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24336 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24337 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24338 MYSQL_LIBDIR=/usr/lib/mysql
24340 MYSQL_LIBDIR=/usr/lib
24342 MYSQL_BINDIR=/usr/bin
24343 elif test -f /usr/include/mysql.h; then
24344 MYSQL_INCDIR=/usr/include
24345 if test -f /usr/lib64/libmysqlclient_r.a \
24346 -o -f /usr/lib64/libmysqlclient_r.so; then
24347 MYSQL_LIBDIR=/usr/lib64
24349 MYSQL_LIBDIR=/usr/lib
24351 MYSQL_BINDIR=/usr/bin
24352 elif test -f /usr/local/include/mysql/mysql.h; then
24353 MYSQL_INCDIR=/usr/local/include/mysql
24354 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24355 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24356 MYSQL_LIBDIR=/usr/local/lib64/mysql
24358 MYSQL_LIBDIR=/usr/local/lib/mysql
24360 MYSQL_BINDIR=/usr/local/bin
24361 elif test -f /usr/local/include/mysql.h; then
24362 MYSQL_INCDIR=/usr/local/include
24363 if test -f /usr/local/lib64/libmysqlclient_r.a \
24364 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24365 MYSQL_LIBDIR=/usr/local/lib64
24367 MYSQL_LIBDIR=/usr/local/lib
24369 MYSQL_BINDIR=/usr/local/bin
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24372 $as_echo "no" >&6; }
24373 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24376 if test -f $withval/include/mysql/mysql.h; then
24377 MYSQL_INCDIR=$withval/include/mysql
24378 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24379 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24380 MYSQL_LIBDIR=$withval/lib64/mysql
24381 elif test -f $withval/lib64/libmysqlclient_r.a \
24382 -o -f $withval/lib64/libmysqlclient_r.so; then
24383 MYSQL_LIBDIR=$withval/lib64
24384 elif test -f $withval/lib/libmysqlclient_r.a \
24385 -o -f $withval/lib/libmysqlclient_r.so; then
24386 MYSQL_LIBDIR=$withval/lib
24388 MYSQL_LIBDIR=$withval/lib/mysql
24390 MYSQL_BINDIR=$withval/bin
24391 elif test -f $withval/include/mysql.h; then
24392 MYSQL_INCDIR=$withval/include
24393 if test -f $withval/lib64/libmysqlclient_r.a \
24394 -o -f $withval/lib64/libmysqlclient_r.so; then
24395 MYSQL_LIBDIR=$withval/lib64
24397 MYSQL_LIBDIR=$withval/lib
24399 MYSQL_BINDIR=$withval/bin
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24403 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24406 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24407 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24408 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24409 if test x$use_libtool != xno; then
24410 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24412 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24414 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24416 MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24419 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24422 $as_echo "yes" >&6; }
24424 if test -z "${db_backends}" ; then
24425 db_backends="MySQL"
24427 db_backends="${db_backends} MySQL"
24429 if test -z "${DB_BACKENDS}" ; then
24430 DB_BACKENDS="mysql"
24432 DB_BACKENDS="${DB_BACKENDS} mysql"
24435 if test "x$support_batch_insert" = "xyes"; then
24436 saved_LDFLAGS="${LDFLAGS}"
24437 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24438 saved_LIBS="${LIBS}"
24439 LIBS="${saved_LIBS} -lz"
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24442 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24443 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24444 $as_echo_n "(cached) " >&6
24446 ac_check_lib_save_LIBS=$LIBS
24447 LIBS="-lmysqlclient_r $LIBS"
24448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24449 /* end confdefs.h. */
24451 /* Override any GCC internal prototype to avoid an error.
24452 Use char because int might match the return type of a GCC
24453 builtin and then its argument prototype would still apply. */
24457 char mysql_thread_safe ();
24461 return mysql_thread_safe ();
24466 if ac_fn_c_try_link "$LINENO"; then :
24467 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24469 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24471 rm -f core conftest.err conftest.$ac_objext \
24472 conftest$ac_exeext conftest.$ac_ext
24473 LIBS=$ac_check_lib_save_LIBS
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24476 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24477 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24479 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24483 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24484 if test -z "${batch_insert_db_backends}"; then
24485 batch_insert_db_backends="MySQL"
24487 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24491 LDFLAGS="${saved_LDFLAGS}"
24492 LIBS="${saved_LIBS}"
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24496 $as_echo "no" >&6; }
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24502 $as_echo "no" >&6; }
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24508 $as_echo_n "checking for MySQL embedded support... " >&6; }
24510 # Check whether --with-embedded-mysql was given.
24511 if test "${with_embedded_mysql+set}" = set; then :
24512 withval=$with_embedded_mysql;
24513 if test "$withval" != "no"; then
24514 if test "$withval" = "yes"; then
24515 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24516 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24517 if test -d /usr/local/mysql/lib64/mysql; then
24518 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24520 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24522 MYSQL_BINDIR=/usr/local/mysql/bin
24523 elif test -f /usr/include/mysql/mysql.h; then
24524 MYSQL_INCDIR=/usr/include/mysql
24525 if test -d /usr/lib64/mysql; then
24526 MYSQL_LIBDIR=/usr/lib64/mysql
24528 MYSQL_LIBDIR=/usr/lib/mysql
24530 MYSQL_BINDIR=/usr/bin
24531 elif test -f /usr/include/mysql.h; then
24532 MYSQL_INCDIR=/usr/include
24533 if test -d /usr/lib64; then
24534 MYSQL_LIBDIR=/usr/lib64
24536 MYSQL_LIBDIR=/usr/lib
24538 MYSQL_BINDIR=/usr/bin
24539 elif test -f /usr/local/include/mysql/mysql.h; then
24540 MYSQL_INCDIR=/usr/local/include/mysql
24541 if test -d /usr/local/lib64/mysql; then
24542 MYSQL_LIBDIR=/usr/local/lib64/mysql
24544 MYSQL_LIBDIR=/usr/local/lib/mysql
24546 MYSQL_BINDIR=/usr/local/bin
24547 elif test -f /usr/local/include/mysql.h; then
24548 MYSQL_INCDIR=/usr/local/include
24549 if test -d /usr/local/lib64; then
24550 MYSQL_LIBDIR=/usr/local/lib64
24552 MYSQL_LIBDIR=/usr/local/lib
24554 MYSQL_BINDIR=/usr/local/bin
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24557 $as_echo "no" >&6; }
24558 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24561 if test -f $withval/include/mysql/mysql.h; then
24562 MYSQL_INCDIR=$withval/include/mysql
24563 if test -d $withval/lib64/mysql; then
24564 MYSQL_LIBDIR=$withval/lib64/mysql
24566 MYSQL_LIBDIR=$withval/lib/mysql
24568 MYSQL_BINDIR=$withval/bin
24569 elif test -f $withval/include/mysql.h; then
24570 MYSQL_INCDIR=$withval/include
24571 if test -d $withval/lib64; then
24572 MYSQL_LIBDIR=$withval/lib64
24574 MYSQL_LIBDIR=$withval/lib
24576 MYSQL_BINDIR=$withval/bin
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24579 $as_echo "no" >&6; }
24580 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24583 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24584 if test x$use_libtool != xno; then
24585 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24587 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24589 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24590 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24593 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24596 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24599 $as_echo "yes" >&6; }
24601 if test -z "${db_backends}"; then
24602 db_backends="MySQL"
24604 db_backends="${db_backends} MySQL"
24606 if test -z "${DB_BACKENDS}"; then
24607 DB_BACKENDS="mysql"
24609 DB_BACKENDS="${DB_BACKENDS} mysql"
24612 if test "x$support_batch_insert" = "xyes"; then
24613 saved_LDFLAGS="${LDFLAGS}"
24614 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24615 saved_LIBS="${LIBS}"
24616 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24619 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24620 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24621 $as_echo_n "(cached) " >&6
24623 ac_check_lib_save_LIBS=$LIBS
24624 LIBS="-lmysqlclient_r $LIBS"
24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626 /* end confdefs.h. */
24628 /* Override any GCC internal prototype to avoid an error.
24629 Use char because int might match the return type of a GCC
24630 builtin and then its argument prototype would still apply. */
24634 char mysql_thread_safe ();
24638 return mysql_thread_safe ();
24643 if ac_fn_c_try_link "$LINENO"; then :
24644 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24646 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24648 rm -f core conftest.err conftest.$ac_objext \
24649 conftest$ac_exeext conftest.$ac_ext
24650 LIBS=$ac_check_lib_save_LIBS
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24653 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24654 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24656 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24660 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24661 if test -z "${batch_insert_db_backends}"; then
24662 batch_insert_db_backends="MySQL"
24664 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24668 LDFLAGS="${saved_LDFLAGS}"
24669 LIBS="${saved_LIBS}"
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24673 $as_echo "no" >&6; }
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24679 $as_echo "no" >&6; }
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24692 $as_echo_n "checking for SQLite3 support... " >&6; }
24694 # Check whether --with-sqlite3 was given.
24695 if test "${with_sqlite3+set}" = set; then :
24696 withval=$with_sqlite3;
24697 if test "$withval" != "no"; then
24698 if test "$withval" = "yes"; then
24699 if test -f /usr/local/include/sqlite3.h; then
24700 SQLITE_INCDIR=/usr/local/include
24701 if test -d /usr/local/lib64; then
24702 SQLITE_LIBDIR=/usr/local/lib64
24704 SQLITE_LIBDIR=/usr/local/lib
24706 SQLITE_BINDIR=/usr/local/bin
24707 elif test -f /usr/include/sqlite3.h; then
24708 SQLITE_INCDIR=/usr/include
24709 if test -d /usr/lib64; then
24710 SQLITE_LIBDIR=/usr/lib64
24712 SQLITE_LIBDIR=/usr/lib
24714 SQLITE_BINDIR=/usr/bin
24715 elif test -f $prefix/include/sqlite3.h; then
24716 SQLITE_INCDIR=$prefix/include
24717 if test -d $prefix/lib64; then
24718 SQLITE_LIBDIR=$prefix/lib64
24720 SQLITE_LIBDIR=$prefix/lib
24722 SQLITE_BINDIR=$prefix/bin
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24725 $as_echo "no" >&6; }
24726 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24729 if test -f $withval/sqlite3.h; then
24730 SQLITE_INCDIR=$withval
24731 SQLITE_LIBDIR=$withval
24732 SQLITE_BINDIR=$withval
24733 elif test -f $withval/include/sqlite3.h; then
24734 SQLITE_INCDIR=$withval/include
24735 if test -d $withval/lib64; then
24736 SQLITE_LIBDIR=$withval/lib64
24738 SQLITE_LIBDIR=$withval/lib
24740 SQLITE_BINDIR=$withval/bin
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24743 $as_echo "no" >&6; }
24744 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24747 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24748 if test x$use_libtool != xno; then
24749 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24751 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24753 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24754 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24757 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24760 $as_echo "yes" >&6; }
24762 if test -z "${db_backends}"; then
24763 db_backends="SQLite3"
24765 db_backends="${db_backends} SQLite3"
24767 if test -z "${DB_BACKENDS}"; then
24768 DB_BACKENDS="sqlite3"
24770 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24773 if test "x$support_batch_insert" = "xyes"; then
24774 saved_LDFLAGS="${LDFLAGS}"
24775 LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24778 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24779 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24780 $as_echo_n "(cached) " >&6
24782 ac_check_lib_save_LIBS=$LIBS
24783 LIBS="-lsqlite3 $LIBS"
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24787 /* Override any GCC internal prototype to avoid an error.
24788 Use char because int might match the return type of a GCC
24789 builtin and then its argument prototype would still apply. */
24793 char sqlite3_threadsafe ();
24797 return sqlite3_threadsafe ();
24802 if ac_fn_c_try_link "$LINENO"; then :
24803 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24805 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24807 rm -f core conftest.err conftest.$ac_objext \
24808 conftest$ac_exeext conftest.$ac_ext
24809 LIBS=$ac_check_lib_save_LIBS
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24812 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24813 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24815 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24819 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24820 if test -z "${batch_insert_db_backends}"; then
24821 batch_insert_db_backends="SQLite3"
24823 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24827 LDFLAGS="${saved_LDFLAGS}"
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24831 $as_echo "no" >&6; }
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24837 $as_echo "no" >&6; }
24847 #BA_CHECK_INGRES_DB
24851 #BA_CHECK_DBI_DRIVER
24853 if test -z "${batch_insert_db_backends}"; then
24854 batch_insert_db_backends="None"
24857 if test "x${db_backends}" = "x" ; then
24860 echo "You have not specified either --enable-client-only or one of the"
24861 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24862 echo "This is not permitted. Please reconfigure."
24864 echo "Aborting the configuration ..."
24870 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24872 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24873 if test x$use_libtool = xno; then
24874 SHARED_CATALOG_TARGETS=""
24876 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24880 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24882 if test x$use_libtool = xno; then
24885 echo "You have specified two or more of the"
24886 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24887 echo "This is not permitted when not using libtool Please reconfigure."
24889 echo "Aborting the configuration ..."
24895 SHARED_CATALOG_TARGETS=""
24896 for db_type in ${DB_BACKENDS}
24898 if test -z "${SHARED_CATALOG_TARGETS}"; then
24899 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24901 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24907 if test x$use_libtool = xyes; then
24917 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24920 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24921 if test -z "$CCOPTS"; then
24922 CCOPTS='-g -O2 -Wall'
24929 largefile_support="no"
24931 # Check whether --enable-largefile was given.
24932 if test "${enable_largefile+set}" = set; then :
24933 enableval=$enable_largefile;
24936 if test "$enable_largefile" != no; then
24937 if test -n "$ac_tool_prefix"; then
24938 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24939 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24941 $as_echo_n "checking for $ac_word... " >&6; }
24942 if ${ac_cv_prog_GETCONF+:} false; then :
24943 $as_echo_n "(cached) " >&6
24945 if test -n "$GETCONF"; then
24946 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24949 for as_dir in $PATH
24952 test -z "$as_dir" && as_dir=.
24953 for ac_exec_ext in '' $ac_executable_extensions; do
24954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24955 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24965 GETCONF=$ac_cv_prog_GETCONF
24966 if test -n "$GETCONF"; then
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24968 $as_echo "$GETCONF" >&6; }
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24971 $as_echo "no" >&6; }
24976 if test -z "$ac_cv_prog_GETCONF"; then
24977 ac_ct_GETCONF=$GETCONF
24978 # Extract the first word of "getconf", so it can be a program name with args.
24979 set dummy getconf; ac_word=$2
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24981 $as_echo_n "checking for $ac_word... " >&6; }
24982 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24983 $as_echo_n "(cached) " >&6
24985 if test -n "$ac_ct_GETCONF"; then
24986 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24989 for as_dir in $PATH
24992 test -z "$as_dir" && as_dir=.
24993 for ac_exec_ext in '' $ac_executable_extensions; do
24994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24995 ac_cv_prog_ac_ct_GETCONF="getconf"
24996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25005 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
25006 if test -n "$ac_ct_GETCONF"; then
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
25008 $as_echo "$ac_ct_GETCONF" >&6; }
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25011 $as_echo "no" >&6; }
25014 if test "x$ac_ct_GETCONF" = x; then
25017 case $cross_compiling:$ac_tool_warned in
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25021 ac_tool_warned=yes ;;
25023 GETCONF=$ac_ct_GETCONF
25026 GETCONF="$ac_cv_prog_GETCONF"
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
25030 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
25031 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
25032 $as_echo_n "(cached) " >&6
25034 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
25035 ac_cv_sys_largefile_CFLAGS=no
25037 # IRIX 6.2 and later require cc -n32.
25038 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
25039 if test "$GCC" != yes; then
25040 ac_cv_sys_largefile_CFLAGS=-n32
25043 CC="$CC $ac_cv_sys_largefile_CFLAGS"
25044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25045 /* end confdefs.h. */
25055 if ac_fn_c_try_link "$LINENO"; then :
25058 ac_cv_sys_largefile_CFLAGS=no
25060 rm -f core conftest.err conftest.$ac_objext \
25061 conftest$ac_exeext conftest.$ac_ext
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
25067 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
25069 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
25070 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
25071 $as_echo_n "(cached) " >&6
25073 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
25074 ac_cv_sys_largefile_LDFLAGS=no
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
25079 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
25081 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
25082 if ${ac_cv_sys_largefile_LIBS+:} false; then :
25083 $as_echo_n "(cached) " >&6
25085 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
25086 ac_cv_sys_largefile_LIBS=no
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
25091 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
25093 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25096 -D_FILE_OFFSET_BITS=*) ;;
25097 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
25098 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
25103 case "$CPPFLAGS" in
25104 '') CPPFLAGS="$ac_flag" ;;
25105 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
25113 '') CFLAGS="$ac_flag" ;;
25114 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25119 case "$ac_cv_sys_largefile_LDFLAGS" in
25123 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25124 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25127 case "$ac_cv_sys_largefile_LIBS" in
25131 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25132 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25136 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25137 if ${ac_cv_sys_file_offset_bits+:} false; then :
25138 $as_echo_n "(cached) " >&6
25140 ac_cv_sys_file_offset_bits=no
25141 ac_cv_sys_file_offset_bits=64
25142 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25144 -D_FILE_OFFSET_BITS)
25145 ac_cv_sys_file_offset_bits=1 ;;
25146 -D_FILE_OFFSET_BITS=*)
25147 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25153 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25154 if test "$ac_cv_sys_file_offset_bits" != no; then
25156 cat >>confdefs.h <<_ACEOF
25157 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25162 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25163 if ${ac_cv_sys_largefile_source+:} false; then :
25164 $as_echo_n "(cached) " >&6
25166 ac_cv_sys_largefile_source=no
25167 ac_cv_sys_largefile_source=1
25168 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25170 -D_LARGEFILE_SOURCE)
25171 ac_cv_sys_largefile_source=1 ;;
25172 -D_LARGEFILE_SOURCE=*)
25173 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25179 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25180 if test "$ac_cv_sys_largefile_source" != no; then
25182 cat >>confdefs.h <<_ACEOF
25183 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25188 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25189 if ${ac_cv_sys_large_files+:} false; then :
25190 $as_echo_n "(cached) " >&6
25192 ac_cv_sys_large_files=no
25193 ac_cv_sys_large_files=1
25194 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25197 ac_cv_sys_large_files=1 ;;
25199 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25205 $as_echo "$ac_cv_sys_large_files" >&6; }
25206 if test "$ac_cv_sys_large_files" != no; then
25208 cat >>confdefs.h <<_ACEOF
25209 #define _LARGE_FILES $ac_cv_sys_large_files
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25217 $as_echo_n "checking for X... " >&6; }
25220 # Check whether --with-x was given.
25221 if test "${with_x+set}" = set; then :
25225 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25226 if test "x$with_x" = xno; then
25227 # The user explicitly disabled X.
25230 case $x_includes,$x_libraries in #(
25231 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25232 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25233 $as_echo_n "(cached) " >&6
25235 # One or both of the vars are not set, and there is no cached value.
25236 ac_x_includes=no ac_x_libraries=no
25237 rm -f -r conftest.dir
25238 if mkdir conftest.dir; then
25240 cat >Imakefile <<'_ACEOF'
25242 @echo incroot='${INCROOT}'
25244 @echo usrlibdir='${USRLIBDIR}'
25246 @echo libdir='${LIBDIR}'
25248 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25249 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25250 for ac_var in incroot usrlibdir libdir; do
25251 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25253 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25254 for ac_extension in a so sl dylib la dll; do
25255 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25256 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25257 ac_im_usrlibdir=$ac_im_libdir; break
25260 # Screen out bogus values from the imake configuration. They are
25261 # bogus both because they are the default anyway, and because
25262 # using them would break gcc on systems where it needs fixed includes.
25263 case $ac_im_incroot in
25264 /usr/include) ac_x_includes= ;;
25265 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25267 case $ac_im_usrlibdir in
25268 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25269 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25273 rm -f -r conftest.dir
25276 # Standard set of common directories for X headers.
25277 # Check X11 before X11Rn because it is often a symlink to the current release.
25291 /usr/local/X11/include
25292 /usr/local/X11R7/include
25293 /usr/local/X11R6/include
25294 /usr/local/X11R5/include
25295 /usr/local/X11R4/include
25297 /usr/local/include/X11
25298 /usr/local/include/X11R7
25299 /usr/local/include/X11R6
25300 /usr/local/include/X11R5
25301 /usr/local/include/X11R4
25305 /usr/XFree86/include/X11
25309 /usr/unsupported/include
25310 /usr/athena/include
25311 /usr/local/x11r5/include
25312 /usr/lpp/Xamples/include
25314 /usr/openwin/include
25315 /usr/openwin/share/include'
25317 if test "$ac_x_includes" = no; then
25318 # Guess where to find include files, by looking for Xlib.h.
25319 # First, try using that file with no special directory specified.
25320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25321 /* end confdefs.h. */
25322 #include <X11/Xlib.h>
25324 if ac_fn_c_try_cpp "$LINENO"; then :
25325 # We can compile using X headers with no special include directory.
25328 for ac_dir in $ac_x_header_dirs; do
25329 if test -r "$ac_dir/X11/Xlib.h"; then
25330 ac_x_includes=$ac_dir
25335 rm -f conftest.err conftest.i conftest.$ac_ext
25336 fi # $ac_x_includes = no
25338 if test "$ac_x_libraries" = no; then
25339 # Check for the libraries.
25340 # See if we find them without any special options.
25341 # Don't add to $LIBS permanently.
25344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345 /* end confdefs.h. */
25346 #include <X11/Xlib.h>
25355 if ac_fn_c_try_link "$LINENO"; then :
25357 # We can link X programs with no special library path.
25361 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25363 # Don't even attempt the hair of trying to link an X program!
25364 for ac_extension in a so sl dylib la dll; do
25365 if test -r "$ac_dir/libX11.$ac_extension"; then
25366 ac_x_libraries=$ac_dir
25372 rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
25374 fi # $ac_x_libraries = no
25376 case $ac_x_includes,$ac_x_libraries in #(
25377 no,* | *,no | *\'*)
25378 # Didn't find X, or a directory has "'" in its name.
25379 ac_cv_have_x="have_x=no";; #(
25381 # Record where we found X for the cache.
25382 ac_cv_have_x="have_x=yes\
25383 ac_x_includes='$ac_x_includes'\
25384 ac_x_libraries='$ac_x_libraries'"
25390 eval "$ac_cv_have_x"
25393 if test "$have_x" != yes; then
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25395 $as_echo "$have_x" >&6; }
25398 # If each of the values was on the command line, it overrides each guess.
25399 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25400 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25401 # Update the cache value to reflect the command line values.
25402 ac_cv_have_x="have_x=yes\
25403 ac_x_includes='$x_includes'\
25404 ac_x_libraries='$x_libraries'"
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25406 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25409 if test "$no_x" = yes; then
25410 # Not all programs may use this symbol, but it does not hurt to define it.
25412 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25414 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25416 if test -n "$x_includes"; then
25417 X_CFLAGS="$X_CFLAGS -I$x_includes"
25420 # It would also be nice to do this for all -L options, not just this one.
25421 if test -n "$x_libraries"; then
25422 X_LIBS="$X_LIBS -L$x_libraries"
25423 # For Solaris; some versions of Sun CC require a space after -R and
25424 # others require no space. Words are not sufficient . . . .
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25426 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25427 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25428 ac_xsave_c_werror_flag=$ac_c_werror_flag
25429 ac_c_werror_flag=yes
25430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25431 /* end confdefs.h. */
25441 if ac_fn_c_try_link "$LINENO"; then :
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25443 $as_echo "no" >&6; }
25444 X_LIBS="$X_LIBS -R$x_libraries"
25446 LIBS="$ac_xsave_LIBS -R $x_libraries"
25447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25448 /* end confdefs.h. */
25458 if ac_fn_c_try_link "$LINENO"; then :
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25460 $as_echo "yes" >&6; }
25461 X_LIBS="$X_LIBS -R $x_libraries"
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25464 $as_echo "neither works" >&6; }
25466 rm -f core conftest.err conftest.$ac_objext \
25467 conftest$ac_exeext conftest.$ac_ext
25469 rm -f core conftest.err conftest.$ac_objext \
25470 conftest$ac_exeext conftest.$ac_ext
25471 ac_c_werror_flag=$ac_xsave_c_werror_flag
25472 LIBS=$ac_xsave_LIBS
25475 # Check for system-dependent libraries X programs must link with.
25476 # Do this before checking for the system-independent R6 libraries
25477 # (-lICE), since we may need -lsocket or whatever for X linking.
25479 if test "$ISC" = yes; then
25480 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25482 # Martyn Johnson says this is needed for Ultrix, if the X
25483 # libraries were built with DECnet support. And Karl Berry says
25484 # the Alpha needs dnet_stub (dnet does not exist).
25485 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25487 /* end confdefs.h. */
25489 /* Override any GCC internal prototype to avoid an error.
25490 Use char because int might match the return type of a GCC
25491 builtin and then its argument prototype would still apply. */
25495 char XOpenDisplay ();
25499 return XOpenDisplay ();
25504 if ac_fn_c_try_link "$LINENO"; then :
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25508 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25509 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25510 $as_echo_n "(cached) " >&6
25512 ac_check_lib_save_LIBS=$LIBS
25513 LIBS="-ldnet $LIBS"
25514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25515 /* end confdefs.h. */
25517 /* Override any GCC internal prototype to avoid an error.
25518 Use char because int might match the return type of a GCC
25519 builtin and then its argument prototype would still apply. */
25527 return dnet_ntoa ();
25532 if ac_fn_c_try_link "$LINENO"; then :
25533 ac_cv_lib_dnet_dnet_ntoa=yes
25535 ac_cv_lib_dnet_dnet_ntoa=no
25537 rm -f core conftest.err conftest.$ac_objext \
25538 conftest$ac_exeext conftest.$ac_ext
25539 LIBS=$ac_check_lib_save_LIBS
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25542 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25543 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25544 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25547 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25549 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25550 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25551 $as_echo_n "(cached) " >&6
25553 ac_check_lib_save_LIBS=$LIBS
25554 LIBS="-ldnet_stub $LIBS"
25555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25556 /* end confdefs.h. */
25558 /* Override any GCC internal prototype to avoid an error.
25559 Use char because int might match the return type of a GCC
25560 builtin and then its argument prototype would still apply. */
25568 return dnet_ntoa ();
25573 if ac_fn_c_try_link "$LINENO"; then :
25574 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25576 ac_cv_lib_dnet_stub_dnet_ntoa=no
25578 rm -f core conftest.err conftest.$ac_objext \
25579 conftest$ac_exeext conftest.$ac_ext
25580 LIBS=$ac_check_lib_save_LIBS
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25583 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25584 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25585 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25590 rm -f core conftest.err conftest.$ac_objext \
25591 conftest$ac_exeext conftest.$ac_ext
25592 LIBS="$ac_xsave_LIBS"
25594 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25595 # to get the SysV transport functions.
25596 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25598 # The nsl library prevents programs from opening the X display
25599 # on Irix 5.2, according to T.E. Dickey.
25600 # The functions gethostbyname, getservbyname, and inet_addr are
25601 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25602 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25603 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25607 if test $ac_cv_func_gethostbyname = no; then
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25609 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25610 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25611 $as_echo_n "(cached) " >&6
25613 ac_check_lib_save_LIBS=$LIBS
25615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25616 /* end confdefs.h. */
25618 /* Override any GCC internal prototype to avoid an error.
25619 Use char because int might match the return type of a GCC
25620 builtin and then its argument prototype would still apply. */
25624 char gethostbyname ();
25628 return gethostbyname ();
25633 if ac_fn_c_try_link "$LINENO"; then :
25634 ac_cv_lib_nsl_gethostbyname=yes
25636 ac_cv_lib_nsl_gethostbyname=no
25638 rm -f core conftest.err conftest.$ac_objext \
25639 conftest$ac_exeext conftest.$ac_ext
25640 LIBS=$ac_check_lib_save_LIBS
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25643 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25644 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25645 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25648 if test $ac_cv_lib_nsl_gethostbyname = no; then
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25650 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25651 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25652 $as_echo_n "(cached) " >&6
25654 ac_check_lib_save_LIBS=$LIBS
25656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25657 /* end confdefs.h. */
25659 /* Override any GCC internal prototype to avoid an error.
25660 Use char because int might match the return type of a GCC
25661 builtin and then its argument prototype would still apply. */
25665 char gethostbyname ();
25669 return gethostbyname ();
25674 if ac_fn_c_try_link "$LINENO"; then :
25675 ac_cv_lib_bsd_gethostbyname=yes
25677 ac_cv_lib_bsd_gethostbyname=no
25679 rm -f core conftest.err conftest.$ac_objext \
25680 conftest$ac_exeext conftest.$ac_ext
25681 LIBS=$ac_check_lib_save_LIBS
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25684 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25685 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25686 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25692 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25693 # socket/setsockopt and other routines are undefined under SCO ODT
25694 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25695 # on later versions), says Simon Leinen: it contains gethostby*
25696 # variants that don't use the name server (or something). -lsocket
25697 # must be given before -lnsl if both are needed. We assume that
25698 # if connect needs -lnsl, so does gethostbyname.
25699 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25700 if test "x$ac_cv_func_connect" = xyes; then :
25704 if test $ac_cv_func_connect = no; then
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25706 $as_echo_n "checking for connect in -lsocket... " >&6; }
25707 if ${ac_cv_lib_socket_connect+:} false; then :
25708 $as_echo_n "(cached) " >&6
25710 ac_check_lib_save_LIBS=$LIBS
25711 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25713 /* end confdefs.h. */
25715 /* Override any GCC internal prototype to avoid an error.
25716 Use char because int might match the return type of a GCC
25717 builtin and then its argument prototype would still apply. */
25730 if ac_fn_c_try_link "$LINENO"; then :
25731 ac_cv_lib_socket_connect=yes
25733 ac_cv_lib_socket_connect=no
25735 rm -f core conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
25737 LIBS=$ac_check_lib_save_LIBS
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25740 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25741 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25742 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25747 # Guillermo Gomez says -lposix is necessary on A/UX.
25748 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25749 if test "x$ac_cv_func_remove" = xyes; then :
25753 if test $ac_cv_func_remove = no; then
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25755 $as_echo_n "checking for remove in -lposix... " >&6; }
25756 if ${ac_cv_lib_posix_remove+:} false; then :
25757 $as_echo_n "(cached) " >&6
25759 ac_check_lib_save_LIBS=$LIBS
25760 LIBS="-lposix $LIBS"
25761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762 /* end confdefs.h. */
25764 /* Override any GCC internal prototype to avoid an error.
25765 Use char because int might match the return type of a GCC
25766 builtin and then its argument prototype would still apply. */
25779 if ac_fn_c_try_link "$LINENO"; then :
25780 ac_cv_lib_posix_remove=yes
25782 ac_cv_lib_posix_remove=no
25784 rm -f core conftest.err conftest.$ac_objext \
25785 conftest$ac_exeext conftest.$ac_ext
25786 LIBS=$ac_check_lib_save_LIBS
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25789 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25790 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25791 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25796 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25797 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25798 if test "x$ac_cv_func_shmat" = xyes; then :
25802 if test $ac_cv_func_shmat = no; then
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25804 $as_echo_n "checking for shmat in -lipc... " >&6; }
25805 if ${ac_cv_lib_ipc_shmat+:} false; then :
25806 $as_echo_n "(cached) " >&6
25808 ac_check_lib_save_LIBS=$LIBS
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25813 /* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
25828 if ac_fn_c_try_link "$LINENO"; then :
25829 ac_cv_lib_ipc_shmat=yes
25831 ac_cv_lib_ipc_shmat=no
25833 rm -f core conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25838 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25839 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25846 # Check for libraries that X11R6 Xt/Xaw programs need.
25847 ac_save_LDFLAGS=$LDFLAGS
25848 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25849 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25850 # check for ICE first), but we must link in the order -lSM -lICE or
25851 # we get undefined symbols. So assume we have SM if we have ICE.
25852 # These have to be linked with before -lX11, unlike the other
25853 # libraries we check for below, so use a different variable.
25854 # John Interrante, Karl Berry
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25856 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25857 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25858 $as_echo_n "(cached) " >&6
25860 ac_check_lib_save_LIBS=$LIBS
25861 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h. */
25865 /* Override any GCC internal prototype to avoid an error.
25866 Use char because int might match the return type of a GCC
25867 builtin and then its argument prototype would still apply. */
25871 char IceConnectionNumber ();
25875 return IceConnectionNumber ();
25880 if ac_fn_c_try_link "$LINENO"; then :
25881 ac_cv_lib_ICE_IceConnectionNumber=yes
25883 ac_cv_lib_ICE_IceConnectionNumber=no
25885 rm -f core conftest.err conftest.$ac_objext \
25886 conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25890 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25891 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25892 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25895 LDFLAGS=$ac_save_LDFLAGS
25933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25934 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25935 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25936 cat >>confdefs.h <<_ACEOF
25937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25945 $as_echo_n "checking for ANSI C header files... " >&6; }
25946 if ${ac_cv_header_stdc+:} false; then :
25947 $as_echo_n "(cached) " >&6
25949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h. */
25951 #include <stdlib.h>
25952 #include <stdarg.h>
25953 #include <string.h>
25964 if ac_fn_c_try_compile "$LINENO"; then :
25965 ac_cv_header_stdc=yes
25967 ac_cv_header_stdc=no
25969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25971 if test $ac_cv_header_stdc = yes; then
25972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25974 /* end confdefs.h. */
25975 #include <string.h>
25978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25979 $EGREP "memchr" >/dev/null 2>&1; then :
25982 ac_cv_header_stdc=no
25988 if test $ac_cv_header_stdc = yes; then
25989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h. */
25992 #include <stdlib.h>
25995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25996 $EGREP "free" >/dev/null 2>&1; then :
25999 ac_cv_header_stdc=no
26005 if test $ac_cv_header_stdc = yes; then
26006 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26007 if test "$cross_compiling" = yes; then :
26010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26011 /* end confdefs.h. */
26013 #include <stdlib.h>
26014 #if ((' ' & 0x0FF) == 0x020)
26015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26018 # define ISLOWER(c) \
26019 (('a' <= (c) && (c) <= 'i') \
26020 || ('j' <= (c) && (c) <= 'r') \
26021 || ('s' <= (c) && (c) <= 'z'))
26022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26030 for (i = 0; i < 256; i++)
26031 if (XOR (islower (i), ISLOWER (i))
26032 || toupper (i) != TOUPPER (i))
26037 if ac_fn_c_try_run "$LINENO"; then :
26040 ac_cv_header_stdc=no
26042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26043 conftest.$ac_objext conftest.beam conftest.$ac_ext
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
26049 $as_echo "$ac_cv_header_stdc" >&6; }
26050 if test $ac_cv_header_stdc = yes; then
26052 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
26057 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
26058 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
26059 $as_echo_n "(cached) " >&6
26061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26062 /* end confdefs.h. */
26063 #include <sys/types.h>
26067 return makedev(0, 0);
26072 if ac_fn_c_try_link "$LINENO"; then :
26073 ac_cv_header_sys_types_h_makedev=yes
26075 ac_cv_header_sys_types_h_makedev=no
26077 rm -f core conftest.err conftest.$ac_objext \
26078 conftest$ac_exeext conftest.$ac_ext
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
26082 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
26084 if test $ac_cv_header_sys_types_h_makedev = no; then
26085 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
26086 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
26088 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
26094 if test $ac_cv_header_sys_mkdev_h = no; then
26095 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
26096 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
26098 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
26106 ac_header_dirent=no
26107 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26108 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
26110 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26111 if eval \${$as_ac_Header+:} false; then :
26112 $as_echo_n "(cached) " >&6
26114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26115 /* end confdefs.h. */
26116 #include <sys/types.h>
26128 if ac_fn_c_try_compile "$LINENO"; then :
26129 eval "$as_ac_Header=yes"
26131 eval "$as_ac_Header=no"
26133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26135 eval ac_res=\$$as_ac_Header
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26137 $as_echo "$ac_res" >&6; }
26138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26139 cat >>confdefs.h <<_ACEOF
26140 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26143 ac_header_dirent=$ac_hdr; break
26147 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26148 if test $ac_header_dirent = dirent.h; then
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26150 $as_echo_n "checking for library containing opendir... " >&6; }
26151 if ${ac_cv_search_opendir+:} false; then :
26152 $as_echo_n "(cached) " >&6
26154 ac_func_search_save_LIBS=$LIBS
26155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26156 /* end confdefs.h. */
26158 /* Override any GCC internal prototype to avoid an error.
26159 Use char because int might match the return type of a GCC
26160 builtin and then its argument prototype would still apply. */
26173 for ac_lib in '' dir; do
26174 if test -z "$ac_lib"; then
26175 ac_res="none required"
26178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26180 if ac_fn_c_try_link "$LINENO"; then :
26181 ac_cv_search_opendir=$ac_res
26183 rm -f core conftest.err conftest.$ac_objext \
26185 if ${ac_cv_search_opendir+:} false; then :
26189 if ${ac_cv_search_opendir+:} false; then :
26192 ac_cv_search_opendir=no
26194 rm conftest.$ac_ext
26195 LIBS=$ac_func_search_save_LIBS
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26198 $as_echo "$ac_cv_search_opendir" >&6; }
26199 ac_res=$ac_cv_search_opendir
26200 if test "$ac_res" != no; then :
26201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26207 $as_echo_n "checking for library containing opendir... " >&6; }
26208 if ${ac_cv_search_opendir+:} false; then :
26209 $as_echo_n "(cached) " >&6
26211 ac_func_search_save_LIBS=$LIBS
26212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26213 /* end confdefs.h. */
26215 /* Override any GCC internal prototype to avoid an error.
26216 Use char because int might match the return type of a GCC
26217 builtin and then its argument prototype would still apply. */
26230 for ac_lib in '' x; do
26231 if test -z "$ac_lib"; then
26232 ac_res="none required"
26235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26237 if ac_fn_c_try_link "$LINENO"; then :
26238 ac_cv_search_opendir=$ac_res
26240 rm -f core conftest.err conftest.$ac_objext \
26242 if ${ac_cv_search_opendir+:} false; then :
26246 if ${ac_cv_search_opendir+:} false; then :
26249 ac_cv_search_opendir=no
26251 rm conftest.$ac_ext
26252 LIBS=$ac_func_search_save_LIBS
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26255 $as_echo "$ac_cv_search_opendir" >&6; }
26256 ac_res=$ac_cv_search_opendir
26257 if test "$ac_res" != no; then :
26258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26265 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26266 if ${ac_cv_header_stat_broken+:} false; then :
26267 $as_echo_n "(cached) " >&6
26269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26270 /* end confdefs.h. */
26271 #include <sys/types.h>
26272 #include <sys/stat.h>
26274 #if defined S_ISBLK && defined S_IFDIR
26275 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26278 #if defined S_ISBLK && defined S_IFCHR
26279 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26282 #if defined S_ISLNK && defined S_IFREG
26283 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26286 #if defined S_ISSOCK && defined S_IFREG
26287 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26291 if ac_fn_c_try_compile "$LINENO"; then :
26292 ac_cv_header_stat_broken=no
26294 ac_cv_header_stat_broken=yes
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26299 $as_echo "$ac_cv_header_stat_broken" >&6; }
26300 if test $ac_cv_header_stat_broken = yes; then
26302 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26307 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26308 if ${ac_cv_header_sys_wait_h+:} false; then :
26309 $as_echo_n "(cached) " >&6
26311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h. */
26313 #include <sys/types.h>
26314 #include <sys/wait.h>
26315 #ifndef WEXITSTATUS
26316 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26319 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26327 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26332 if ac_fn_c_try_compile "$LINENO"; then :
26333 ac_cv_header_sys_wait_h=yes
26335 ac_cv_header_sys_wait_h=no
26337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26340 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26341 if test $ac_cv_header_sys_wait_h = yes; then
26343 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26348 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26349 if ${ac_cv_header_time+:} false; then :
26350 $as_echo_n "(cached) " >&6
26352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h. */
26354 #include <sys/types.h>
26355 #include <sys/time.h>
26361 if ((struct tm *) 0)
26367 if ac_fn_c_try_compile "$LINENO"; then :
26368 ac_cv_header_time=yes
26370 ac_cv_header_time=no
26372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26375 $as_echo "$ac_cv_header_time" >&6; }
26376 if test $ac_cv_header_time = yes; then
26378 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26382 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26383 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26385 cat >>confdefs.h <<_ACEOF
26386 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26390 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26395 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26396 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26398 cat >>confdefs.h <<_ACEOF
26399 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26403 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26406 case " $LIBOBJS " in
26407 *" fileblocks.$ac_objext "* ) ;;
26408 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26416 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26417 if ${ac_cv_struct_tm+:} false; then :
26418 $as_echo_n "(cached) " >&6
26420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26421 /* end confdefs.h. */
26422 #include <sys/types.h>
26429 int *p = &tm.tm_sec;
26435 if ac_fn_c_try_compile "$LINENO"; then :
26436 ac_cv_struct_tm=time.h
26438 ac_cv_struct_tm=sys/time.h
26440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26443 $as_echo "$ac_cv_struct_tm" >&6; }
26444 if test $ac_cv_struct_tm = sys/time.h; then
26446 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26450 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26451 #include <$ac_cv_struct_tm>
26454 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26456 cat >>confdefs.h <<_ACEOF
26457 #define HAVE_STRUCT_TM_TM_ZONE 1
26463 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26465 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26468 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26470 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26476 cat >>confdefs.h <<_ACEOF
26477 #define HAVE_DECL_TZNAME $ac_have_decl
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26481 $as_echo_n "checking for tzname... " >&6; }
26482 if ${ac_cv_var_tzname+:} false; then :
26483 $as_echo_n "(cached) " >&6
26485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486 /* end confdefs.h. */
26488 #if !HAVE_DECL_TZNAME
26489 extern char *tzname[];
26495 return tzname[0][0];
26500 if ac_fn_c_try_link "$LINENO"; then :
26501 ac_cv_var_tzname=yes
26503 ac_cv_var_tzname=no
26505 rm -f core conftest.err conftest.$ac_objext \
26506 conftest$ac_exeext conftest.$ac_ext
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26509 $as_echo "$ac_cv_var_tzname" >&6; }
26510 if test $ac_cv_var_tzname = yes; then
26512 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26519 $as_echo_n "checking for utime.h... " >&6; }
26520 if ${ba_cv_header_utime_h+:} false; then :
26521 $as_echo_n "(cached) " >&6
26524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26525 /* end confdefs.h. */
26527 #include <sys/types.h>
26540 if ac_fn_c_try_compile "$LINENO"; then :
26542 ba_cv_header_utime_h=yes
26546 ba_cv_header_utime_h=no
26550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26555 $as_echo "$ba_cv_header_utime_h" >&6; }
26556 test $ba_cv_header_utime_h = yes &&
26557 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26561 $as_echo_n "checking for socklen_t... " >&6; }
26562 if ${ba_cv_header_socklen_t+:} false; then :
26563 $as_echo_n "(cached) " >&6
26566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26567 /* end confdefs.h. */
26569 #include <sys/types.h>
26570 #include <sys/socket.h>
26582 if ac_fn_c_try_compile "$LINENO"; then :
26584 ba_cv_header_socklen_t=yes
26588 ba_cv_header_socklen_t=no
26592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26597 $as_echo "$ba_cv_header_socklen_t" >&6; }
26598 test $ba_cv_header_socklen_t = yes &&
26599 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26603 ac_cpp='$CXXCPP $CPPFLAGS'
26604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26609 $as_echo_n "checking for ioctl_req_t... " >&6; }
26610 if ${ba_cv_header_ioctl_req_t+:} false; then :
26611 $as_echo_n "(cached) " >&6
26614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26615 /* end confdefs.h. */
26617 #include <unistd.h>
26618 #include <sys/types.h>
26619 #include <sys/ioctl.h>
26625 int (*d_ioctl)(int fd, unsigned long int request, ...);
26632 if ac_fn_cxx_try_compile "$LINENO"; then :
26634 ba_cv_header_ioctl_req_t=yes
26638 ba_cv_header_ioctl_req_t=no
26642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26647 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26648 test $ba_cv_header_ioctl_req_t = yes &&
26649 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26653 ac_cpp='$CPP $CPPFLAGS'
26654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26660 ac_cpp='$CXXCPP $CPPFLAGS'
26661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26666 $as_echo_n "checking for typeof... " >&6; }
26667 if ${ba_cv_have_typeof+:} false; then :
26668 $as_echo_n "(cached) " >&6
26671 if test "$cross_compiling" = yes; then :
26673 ba_cv_have_typeof=no
26677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26678 /* end confdefs.h. */
26680 main(){char *a = 0; a = (typeof a)a;}
26683 if ac_fn_cxx_try_run "$LINENO"; then :
26685 ba_cv_have_typeof=yes
26689 ba_cv_have_typeof=no
26692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26693 conftest.$ac_objext conftest.beam conftest.$ac_ext
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26700 $as_echo "$ba_cv_have_typeof" >&6; }
26701 test $ba_cv_have_typeof = yes &&
26702 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26705 ac_cpp='$CPP $CPPFLAGS'
26706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26712 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26713 if ${ac_cv_c_const+:} false; then :
26714 $as_echo_n "(cached) " >&6
26716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h. */
26722 /* FIXME: Include the comments suggested by Paul. */
26723 #ifndef __cplusplus
26724 /* Ultrix mips cc rejects this. */
26725 typedef int charset[2];
26727 /* SunOS 4.1.1 cc rejects this. */
26728 char const *const *pcpcc;
26730 /* NEC SVR4.0.2 mips cc rejects this. */
26731 struct point {int x, y;};
26732 static struct point const zero = {0,0};
26733 /* AIX XL C 1.02.0.0 rejects this.
26734 It does not let you subtract one const X* pointer from another in
26735 an arm of an if-expression whose if-part is not a constant
26737 const char *g = "string";
26738 pcpcc = &g + (g ? g-g : 0);
26739 /* HPUX 7.0 cc rejects these. */
26741 ppc = (char**) pcpcc;
26742 pcpcc = (char const *const *) ppc;
26743 { /* SCO 3.2v4 cc rejects this. */
26745 char const *s = 0 ? (char *) 0 : (char const *) 0;
26750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26751 int x[] = {25, 17};
26752 const int *foo = &x[0];
26755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26756 typedef const int *iptr;
26760 { /* AIX XL C 1.02.0.0 rejects this saying
26761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26762 struct s { int j; const int *ap[3]; };
26763 struct s *b; b->j = 5;
26765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26766 const int foo = 10;
26767 if (!foo) return 0;
26769 return !cs[0] && !zero.x;
26776 if ac_fn_c_try_compile "$LINENO"; then :
26781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26784 $as_echo "$ac_cv_c_const" >&6; }
26785 if test $ac_cv_c_const = no; then
26787 $as_echo "#define const /**/" >>confdefs.h
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26793 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26794 if ${ac_cv_c_bigendian+:} false; then :
26795 $as_echo_n "(cached) " >&6
26797 ac_cv_c_bigendian=unknown
26798 # See if we're dealing with a universal compiler.
26799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26800 /* end confdefs.h. */
26801 #ifndef __APPLE_CC__
26802 not a universal capable compiler
26807 if ac_fn_c_try_compile "$LINENO"; then :
26809 # Check for potential -arch flags. It is not universal unless
26810 # there are at least two -arch flags with different values.
26813 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26814 if test -n "$ac_prev"; then
26816 i?86 | x86_64 | ppc | ppc64)
26817 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26820 ac_cv_c_bigendian=universal
26826 elif test "x$ac_word" = "x-arch"; then
26831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26832 if test $ac_cv_c_bigendian = unknown; then
26833 # See if sys/param.h defines the BYTE_ORDER macro.
26834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26835 /* end confdefs.h. */
26836 #include <sys/types.h>
26837 #include <sys/param.h>
26842 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26843 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26845 bogus endian macros
26852 if ac_fn_c_try_compile "$LINENO"; then :
26853 # It does; now see whether it defined to BIG_ENDIAN or not.
26854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26855 /* end confdefs.h. */
26856 #include <sys/types.h>
26857 #include <sys/param.h>
26862 #if BYTE_ORDER != BIG_ENDIAN
26870 if ac_fn_c_try_compile "$LINENO"; then :
26871 ac_cv_c_bigendian=yes
26873 ac_cv_c_bigendian=no
26875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26879 if test $ac_cv_c_bigendian = unknown; then
26880 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26882 /* end confdefs.h. */
26883 #include <limits.h>
26888 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26889 bogus endian macros
26896 if ac_fn_c_try_compile "$LINENO"; then :
26897 # It does; now see whether it defined to _BIG_ENDIAN or not.
26898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26899 /* end confdefs.h. */
26900 #include <limits.h>
26905 #ifndef _BIG_ENDIAN
26913 if ac_fn_c_try_compile "$LINENO"; then :
26914 ac_cv_c_bigendian=yes
26916 ac_cv_c_bigendian=no
26918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26922 if test $ac_cv_c_bigendian = unknown; then
26923 # Compile a test program.
26924 if test "$cross_compiling" = yes; then :
26925 # Try to guess by grepping values from an object file.
26926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26927 /* end confdefs.h. */
26928 short int ascii_mm[] =
26929 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26930 short int ascii_ii[] =
26931 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26932 int use_ascii (int i) {
26933 return ascii_mm[i] + ascii_ii[i];
26935 short int ebcdic_ii[] =
26936 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26937 short int ebcdic_mm[] =
26938 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26939 int use_ebcdic (int i) {
26940 return ebcdic_mm[i] + ebcdic_ii[i];
26947 return use_ascii (foo) == use_ebcdic (foo);
26952 if ac_fn_c_try_compile "$LINENO"; then :
26953 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26954 ac_cv_c_bigendian=yes
26956 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26957 if test "$ac_cv_c_bigendian" = unknown; then
26958 ac_cv_c_bigendian=no
26960 # finding both strings is unlikely to happen, but who knows?
26961 ac_cv_c_bigendian=unknown
26965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26968 /* end confdefs.h. */
26969 $ac_includes_default
26974 /* Are we little or big endian? From Harbison&Steele. */
26978 char c[sizeof (long int)];
26981 return u.c[sizeof (long int) - 1] == 1;
26987 if ac_fn_c_try_run "$LINENO"; then :
26988 ac_cv_c_bigendian=no
26990 ac_cv_c_bigendian=yes
26992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26993 conftest.$ac_objext conftest.beam conftest.$ac_ext
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26999 $as_echo "$ac_cv_c_bigendian" >&6; }
27000 case $ac_cv_c_bigendian in #(
27003 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
27007 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
27011 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27015 as_fn_error $? "unknown endianness
27016 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
27021 $as_echo_n "checking how to get filesystem type... " >&6; }
27023 # The order of these tests is important.
27024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27025 /* end confdefs.h. */
27027 #include <sys/statvfs.h>
27028 #include <sys/fstyp.h>
27031 if ac_fn_c_try_cpp "$LINENO"; then :
27032 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
27036 rm -f conftest.err conftest.i conftest.$ac_ext
27037 if test $fstype = no; then
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h. */
27041 #include <sys/statfs.h>
27042 #include <sys/fstyp.h>
27045 if ac_fn_c_try_cpp "$LINENO"; then :
27046 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
27050 rm -f conftest.err conftest.i conftest.$ac_ext
27052 if test $fstype = no; then
27053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27054 /* end confdefs.h. */
27056 #include <sys/statfs.h>
27057 #include <sys/vmount.h>
27060 if ac_fn_c_try_cpp "$LINENO"; then :
27061 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
27065 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 <mntent.h>
27074 if ac_fn_c_try_cpp "$LINENO"; then :
27075 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
27079 rm -f conftest.err conftest.i conftest.$ac_ext
27081 if test $fstype = no; then
27082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27083 /* end confdefs.h. */
27084 #include <sys/mount.h>
27087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27088 $EGREP "f_type;" >/dev/null 2>&1; then :
27089 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
27095 if test $fstype = no; then
27096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h. */
27099 #include <sys/mount.h>
27100 #include <sys/fs_types.h>
27103 if ac_fn_c_try_cpp "$LINENO"; then :
27104 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
27108 rm -f conftest.err conftest.i conftest.$ac_ext
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
27111 $as_echo "$fstype" >&6; }
27113 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27114 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27116 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27123 ac_cpp='$CXXCPP $CPPFLAGS'
27124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27128 for ac_func in backtrace
27130 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27131 if test "x$ac_cv_func_backtrace" = xyes; then :
27132 cat >>confdefs.h <<_ACEOF
27133 #define HAVE_BACKTRACE 1
27140 ac_cpp='$CPP $CPPFLAGS'
27141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27147 $as_echo_n "checking return type of signal handlers... " >&6; }
27148 if ${ac_cv_type_signal+:} false; then :
27149 $as_echo_n "(cached) " >&6
27151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27152 /* end confdefs.h. */
27153 #include <sys/types.h>
27154 #include <signal.h>
27159 return *(signal (0, 0)) (0) == 1;
27164 if ac_fn_c_try_compile "$LINENO"; then :
27165 ac_cv_type_signal=int
27167 ac_cv_type_signal=void
27169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27172 $as_echo "$ac_cv_type_signal" >&6; }
27174 cat >>confdefs.h <<_ACEOF
27175 #define RETSIGTYPE $ac_cv_type_signal
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27181 $as_echo_n "checking for type of signal functions... " >&6; }
27182 if ${bash_cv_signal_vintage+:} false; then :
27183 $as_echo_n "(cached) " >&6
27186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27187 /* end confdefs.h. */
27188 #include <signal.h>
27194 struct sigaction sa;
27195 sigemptyset(&ss); sigsuspend(&ss);
27196 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27197 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27203 if ac_fn_c_try_link "$LINENO"; then :
27204 bash_cv_signal_vintage="posix"
27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h. */
27209 #include <signal.h>
27214 int mask = sigmask(SIGINT);
27215 sigsetmask(mask); sigblock(mask); sigpause(mask);
27221 if ac_fn_c_try_link "$LINENO"; then :
27222 bash_cv_signal_vintage="4.2bsd"
27225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27226 /* end confdefs.h. */
27228 #include <signal.h>
27229 RETSIGTYPE foo() { }
27234 int mask = sigmask(SIGINT);
27235 sigset(SIGINT, foo); sigrelse(SIGINT);
27236 sighold(SIGINT); sigpause(SIGINT);
27242 if ac_fn_c_try_link "$LINENO"; then :
27243 bash_cv_signal_vintage="svr3"
27245 bash_cv_signal_vintage="v7"
27248 rm -f core conftest.err conftest.$ac_objext \
27249 conftest$ac_exeext conftest.$ac_ext
27252 rm -f core conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext conftest.$ac_ext
27256 rm -f core conftest.err conftest.$ac_objext \
27257 conftest$ac_exeext conftest.$ac_ext
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27262 $as_echo "$bash_cv_signal_vintage" >&6; }
27263 if test "$bash_cv_signal_vintage" = "posix"; then
27264 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27266 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27267 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27269 elif test "$bash_cv_signal_vintage" = "svr3"; then
27270 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27274 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27275 if test "x$ac_cv_type_mode_t" = xyes; then :
27279 cat >>confdefs.h <<_ACEOF
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27286 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27287 if ${ac_cv_type_uid_t+:} false; then :
27288 $as_echo_n "(cached) " >&6
27290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27291 /* end confdefs.h. */
27292 #include <sys/types.h>
27295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27296 $EGREP "uid_t" >/dev/null 2>&1; then :
27297 ac_cv_type_uid_t=yes
27299 ac_cv_type_uid_t=no
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27305 $as_echo "$ac_cv_type_uid_t" >&6; }
27306 if test $ac_cv_type_uid_t = no; then
27308 $as_echo "#define uid_t int" >>confdefs.h
27311 $as_echo "#define gid_t int" >>confdefs.h
27315 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27316 if test "x$ac_cv_type_size_t" = xyes; then :
27320 cat >>confdefs.h <<_ACEOF
27321 #define size_t unsigned int
27326 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27327 if test "x$ac_cv_type_pid_t" = xyes; then :
27331 cat >>confdefs.h <<_ACEOF
27337 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27338 if test "x$ac_cv_type_off_t" = xyes; then :
27342 cat >>confdefs.h <<_ACEOF
27343 #define off_t long int
27349 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27350 if test "x$ac_cv_type_intptr_t" = xyes; then :
27352 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27355 for ac_type in 'int' 'long int' 'long long int'; do
27356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27357 /* end confdefs.h. */
27358 $ac_includes_default
27362 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27369 if ac_fn_c_try_compile "$LINENO"; then :
27371 cat >>confdefs.h <<_ACEOF
27372 #define intptr_t $ac_type
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27378 test -z "$ac_type" && break
27384 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27385 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27387 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27390 for ac_type in 'unsigned int' 'unsigned long int' \
27391 'unsigned long long int'; do
27392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27393 /* end confdefs.h. */
27394 $ac_includes_default
27398 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27405 if ac_fn_c_try_compile "$LINENO"; then :
27407 cat >>confdefs.h <<_ACEOF
27408 #define uintptr_t $ac_type
27413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27414 test -z "$ac_type" && break
27419 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27420 if test "x$ac_cv_type_ino_t" = xyes; then :
27424 cat >>confdefs.h <<_ACEOF
27425 #define ino_t unsigned long
27430 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27431 if test "x$ac_cv_type_dev_t" = xyes; then :
27435 cat >>confdefs.h <<_ACEOF
27436 #define dev_t unsigned long
27441 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27442 if test "x$ac_cv_type_daddr_t" = xyes; then :
27446 cat >>confdefs.h <<_ACEOF
27447 #define daddr_t long
27452 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27453 if test "x$ac_cv_type_major_t" = xyes; then :
27457 cat >>confdefs.h <<_ACEOF
27458 #define major_t int
27463 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27464 if test "x$ac_cv_type_minor_t" = xyes; then :
27468 cat >>confdefs.h <<_ACEOF
27469 #define minor_t int
27474 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27475 if test "x$ac_cv_type_ssize_t" = xyes; then :
27479 cat >>confdefs.h <<_ACEOF
27480 #define ssize_t int
27485 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27486 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27488 cat >>confdefs.h <<_ACEOF
27489 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27493 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27496 case " $LIBOBJS " in
27497 *" fileblocks.$ac_objext "* ) ;;
27498 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27505 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27506 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27508 cat >>confdefs.h <<_ACEOF
27509 #define HAVE_STRUCT_STAT_ST_RDEV 1
27513 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27519 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27520 if ${ac_cv_struct_tm+:} false; then :
27521 $as_echo_n "(cached) " >&6
27523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27524 /* end confdefs.h. */
27525 #include <sys/types.h>
27532 int *p = &tm.tm_sec;
27538 if ac_fn_c_try_compile "$LINENO"; then :
27539 ac_cv_struct_tm=time.h
27541 ac_cv_struct_tm=sys/time.h
27543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27546 $as_echo "$ac_cv_struct_tm" >&6; }
27547 if test $ac_cv_struct_tm = sys/time.h; then
27549 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27554 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27555 if ${ac_cv_c_const+:} false; then :
27556 $as_echo_n "(cached) " >&6
27558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27559 /* end confdefs.h. */
27564 /* FIXME: Include the comments suggested by Paul. */
27565 #ifndef __cplusplus
27566 /* Ultrix mips cc rejects this. */
27567 typedef int charset[2];
27569 /* SunOS 4.1.1 cc rejects this. */
27570 char const *const *pcpcc;
27572 /* NEC SVR4.0.2 mips cc rejects this. */
27573 struct point {int x, y;};
27574 static struct point const zero = {0,0};
27575 /* AIX XL C 1.02.0.0 rejects this.
27576 It does not let you subtract one const X* pointer from another in
27577 an arm of an if-expression whose if-part is not a constant
27579 const char *g = "string";
27580 pcpcc = &g + (g ? g-g : 0);
27581 /* HPUX 7.0 cc rejects these. */
27583 ppc = (char**) pcpcc;
27584 pcpcc = (char const *const *) ppc;
27585 { /* SCO 3.2v4 cc rejects this. */
27587 char const *s = 0 ? (char *) 0 : (char const *) 0;
27592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27593 int x[] = {25, 17};
27594 const int *foo = &x[0];
27597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27598 typedef const int *iptr;
27602 { /* AIX XL C 1.02.0.0 rejects this saying
27603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27604 struct s { int j; const int *ap[3]; };
27605 struct s *b; b->j = 5;
27607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27608 const int foo = 10;
27609 if (!foo) return 0;
27611 return !cs[0] && !zero.x;
27618 if ac_fn_c_try_compile "$LINENO"; then :
27623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27626 $as_echo "$ac_cv_c_const" >&6; }
27627 if test $ac_cv_c_const = no; then
27629 $as_echo "#define const /**/" >>confdefs.h
27634 # The cast to long int works around a bug in the HP C Compiler
27635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27637 # This bug is HP SR number 8606223364.
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27639 $as_echo_n "checking size of char... " >&6; }
27640 if ${ac_cv_sizeof_char+:} false; then :
27641 $as_echo_n "(cached) " >&6
27643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27646 if test "$ac_cv_type_char" = yes; then
27647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27649 as_fn_error 77 "cannot compute sizeof (char)
27650 See \`config.log' for more details" "$LINENO" 5; }
27652 ac_cv_sizeof_char=0
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27658 $as_echo "$ac_cv_sizeof_char" >&6; }
27662 cat >>confdefs.h <<_ACEOF
27663 #define SIZEOF_CHAR $ac_cv_sizeof_char
27667 # The cast to long int works around a bug in the HP C Compiler
27668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27670 # This bug is HP SR number 8606223364.
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27672 $as_echo_n "checking size of short int... " >&6; }
27673 if ${ac_cv_sizeof_short_int+:} false; then :
27674 $as_echo_n "(cached) " >&6
27676 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27679 if test "$ac_cv_type_short_int" = yes; then
27680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27682 as_fn_error 77 "cannot compute sizeof (short int)
27683 See \`config.log' for more details" "$LINENO" 5; }
27685 ac_cv_sizeof_short_int=0
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27691 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27695 cat >>confdefs.h <<_ACEOF
27696 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27700 # The cast to long int works around a bug in the HP C Compiler
27701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27703 # This bug is HP SR number 8606223364.
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27705 $as_echo_n "checking size of int... " >&6; }
27706 if ${ac_cv_sizeof_int+:} false; then :
27707 $as_echo_n "(cached) " >&6
27709 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27712 if test "$ac_cv_type_int" = yes; then
27713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27715 as_fn_error 77 "cannot compute sizeof (int)
27716 See \`config.log' for more details" "$LINENO" 5; }
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27724 $as_echo "$ac_cv_sizeof_int" >&6; }
27728 cat >>confdefs.h <<_ACEOF
27729 #define SIZEOF_INT $ac_cv_sizeof_int
27733 # The cast to long int works around a bug in the HP C Compiler
27734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27736 # This bug is HP SR number 8606223364.
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27738 $as_echo_n "checking size of long int... " >&6; }
27739 if ${ac_cv_sizeof_long_int+:} false; then :
27740 $as_echo_n "(cached) " >&6
27742 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27745 if test "$ac_cv_type_long_int" = yes; then
27746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27748 as_fn_error 77 "cannot compute sizeof (long int)
27749 See \`config.log' for more details" "$LINENO" 5; }
27751 ac_cv_sizeof_long_int=0
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27757 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27761 cat >>confdefs.h <<_ACEOF
27762 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27766 # The cast to long int works around a bug in the HP C Compiler
27767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27769 # This bug is HP SR number 8606223364.
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27771 $as_echo_n "checking size of long long int... " >&6; }
27772 if ${ac_cv_sizeof_long_long_int+:} false; then :
27773 $as_echo_n "(cached) " >&6
27775 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27778 if test "$ac_cv_type_long_long_int" = yes; then
27779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27781 as_fn_error 77 "cannot compute sizeof (long long int)
27782 See \`config.log' for more details" "$LINENO" 5; }
27784 ac_cv_sizeof_long_long_int=0
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27790 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27794 cat >>confdefs.h <<_ACEOF
27795 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27799 # The cast to long int works around a bug in the HP C Compiler
27800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27802 # This bug is HP SR number 8606223364.
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27804 $as_echo_n "checking size of int *... " >&6; }
27805 if ${ac_cv_sizeof_int_p+:} false; then :
27806 $as_echo_n "(cached) " >&6
27808 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27811 if test "$ac_cv_type_int_p" = yes; then
27812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27814 as_fn_error 77 "cannot compute sizeof (int *)
27815 See \`config.log' for more details" "$LINENO" 5; }
27817 ac_cv_sizeof_int_p=0
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27823 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27827 cat >>confdefs.h <<_ACEOF
27828 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27834 $as_echo_n "checking for u_int type... " >&6; }
27835 if ${ac_cv_have_u_int+:} false; then :
27836 $as_echo_n "(cached) " >&6
27839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840 /* end confdefs.h. */
27842 #include <sys/types.h>
27854 if ac_fn_c_try_compile "$LINENO"; then :
27856 ac_cv_have_u_int="yes"
27860 ac_cv_have_u_int="no"
27864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27869 $as_echo "$ac_cv_have_u_int" >&6; }
27870 if test "x$ac_cv_have_u_int" = "xyes" ; then
27871 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27877 $as_echo_n "checking for intmax_t type... " >&6; }
27878 if ${ac_cv_have_intmax_t+:} false; then :
27879 $as_echo_n "(cached) " >&6
27882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27883 /* end confdefs.h. */
27885 #include <sys/types.h>
27897 if ac_fn_c_try_compile "$LINENO"; then :
27899 ac_cv_have_intmax_t="yes"
27903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27904 /* end confdefs.h. */
27906 #include <stdint.h>
27918 if ac_fn_c_try_compile "$LINENO"; then :
27920 ac_cv_have_intmax_t="yes"
27924 ac_cv_have_intmax_t="no"
27928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27937 $as_echo "$ac_cv_have_intmax_t" >&6; }
27938 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27939 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27945 $as_echo_n "checking for u_intmax_t type... " >&6; }
27946 if ${ac_cv_have_u_intmax_t+:} false; then :
27947 $as_echo_n "(cached) " >&6
27950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27951 /* end confdefs.h. */
27953 #include <sys/types.h>
27959 u_intmax_t a; a = 1;
27965 if ac_fn_c_try_compile "$LINENO"; then :
27967 ac_cv_have_u_intmax_t="yes"
27971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972 /* end confdefs.h. */
27974 #include <stdint.h>
27980 u_intmax_t a; a = 1;
27986 if ac_fn_c_try_compile "$LINENO"; then :
27988 ac_cv_have_u_intmax_t="yes"
27992 ac_cv_have_u_intmax_t="no"
27996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28005 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28006 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28007 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28013 $as_echo_n "checking for intXX_t types... " >&6; }
28014 if ${ac_cv_have_intxx_t+:} false; then :
28015 $as_echo_n "(cached) " >&6
28018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28019 /* end confdefs.h. */
28021 #include <sys/types.h>
28027 int8_t a; int16_t b; int32_t c; a = b = c = 1;
28033 if ac_fn_c_try_compile "$LINENO"; then :
28035 ac_cv_have_intxx_t="yes"
28039 ac_cv_have_intxx_t="no"
28043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28048 $as_echo "$ac_cv_have_intxx_t" >&6; }
28049 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28050 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28056 $as_echo_n "checking for int64_t type... " >&6; }
28057 if ${ac_cv_have_int64_t+:} false; then :
28058 $as_echo_n "(cached) " >&6
28061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28062 /* end confdefs.h. */
28064 #include <sys/types.h>
28076 if ac_fn_c_try_compile "$LINENO"; then :
28078 ac_cv_have_int64_t="yes"
28082 ac_cv_have_int64_t="no"
28086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28091 $as_echo "$ac_cv_have_int64_t" >&6; }
28092 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28093 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28099 $as_echo_n "checking for u_intXX_t types... " >&6; }
28100 if ${ac_cv_have_u_intxx_t+:} false; then :
28101 $as_echo_n "(cached) " >&6
28104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28105 /* end confdefs.h. */
28107 #include <sys/types.h>
28113 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28119 if ac_fn_c_try_compile "$LINENO"; then :
28121 ac_cv_have_u_intxx_t="yes"
28125 ac_cv_have_u_intxx_t="no"
28129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28134 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28135 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28136 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28142 $as_echo_n "checking for u_int64_t types... " >&6; }
28143 if ${ac_cv_have_u_int64_t+:} false; then :
28144 $as_echo_n "(cached) " >&6
28147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28148 /* end confdefs.h. */
28150 #include <sys/types.h>
28156 u_int64_t a; a = 1;
28162 if ac_fn_c_try_compile "$LINENO"; then :
28164 ac_cv_have_u_int64_t="yes"
28168 ac_cv_have_u_int64_t="no"
28172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28177 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28178 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28179 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28184 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28185 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28188 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28190 /* end confdefs.h. */
28192 #include <sys/bitypes.h>
28198 int8_t a; int16_t b; int32_t c;
28199 u_int8_t e; u_int16_t f; u_int32_t g;
28200 a = b = c = e = f = g = 1;
28206 if ac_fn_c_try_compile "$LINENO"; then :
28208 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28210 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28212 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28215 $as_echo "yes" >&6; }
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28220 $as_echo "no" >&6; }
28224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28227 if test -z "$have_u_intxx_t" ; then
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28229 $as_echo_n "checking for uintXX_t types... " >&6; }
28230 if ${ac_cv_have_uintxx_t+:} false; then :
28231 $as_echo_n "(cached) " >&6
28234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h. */
28237 #include <sys/types.h>
28243 uint8_t a; uint16_t b;
28244 uint32_t c; a = b = c = 1;
28250 if ac_fn_c_try_compile "$LINENO"; then :
28252 ac_cv_have_uintxx_t="yes"
28256 ac_cv_have_uintxx_t="no"
28260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28265 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28266 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28267 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28272 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28273 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28276 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28278 /* end confdefs.h. */
28280 #include <sys/bitypes.h>
28286 int64_t a; u_int64_t b;
28293 if ac_fn_c_try_compile "$LINENO"; then :
28295 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28297 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28300 $as_echo "yes" >&6; }
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28305 $as_echo "no" >&6; }
28309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28312 if (test -z "$have_uintxx_t" && \
28313 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28316 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28318 /* end confdefs.h. */
28320 #include <sys/bitypes.h>
28326 uint8_t a; uint16_t b;
28327 uint32_t c; a = b = c = 1;
28333 if ac_fn_c_try_compile "$LINENO"; then :
28335 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28338 $as_echo "yes" >&6; }
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28343 $as_echo "no" >&6; }
28347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28369 cat >>confdefs.h <<_ACEOF
28370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28374 echo 'configure: cannot find needed function.'; exit 1
28380 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28383 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28385 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28390 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28391 if test "x$ac_cv_func_closefrom" = xyes; then :
28393 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28397 for ac_func in getpagesize
28399 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28400 if test "x$ac_cv_func_getpagesize" = xyes; then :
28401 cat >>confdefs.h <<_ACEOF
28402 #define HAVE_GETPAGESIZE 1
28405 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28410 for ac_func in malloc_trim
28412 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28413 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28414 cat >>confdefs.h <<_ACEOF
28415 #define HAVE_MALLOC_TRIM 1
28418 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28424 for ac_func in fchdir
28426 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28427 if test "x$ac_cv_func_fchdir" = xyes; then :
28428 cat >>confdefs.h <<_ACEOF
28429 #define HAVE_FCHDIR 1
28431 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28436 for ac_func in strtoll
28438 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28439 if test "x$ac_cv_func_strtoll" = xyes; then :
28440 cat >>confdefs.h <<_ACEOF
28441 #define HAVE_STRTOLL 1
28443 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28448 for ac_func in posix_fadvise
28450 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28451 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28452 cat >>confdefs.h <<_ACEOF
28453 #define HAVE_POSIX_FADVISE 1
28459 for ac_func in fdatasync
28461 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28462 if test "x$ac_cv_func_fdatasync" = xyes; then :
28463 cat >>confdefs.h <<_ACEOF
28464 #define HAVE_FDATASYNC 1
28471 for ac_func in chflags
28473 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28474 if test "x$ac_cv_func_chflags" = xyes; then :
28475 cat >>confdefs.h <<_ACEOF
28476 #define HAVE_CHFLAGS 1
28483 for ac_func in snprintf vsnprintf gethostid fseeko
28485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28488 cat >>confdefs.h <<_ACEOF
28489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28497 $as_echo_n "checking for va_copy... " >&6; }
28498 if ${ba_cv_va_copy+:} false; then :
28499 $as_echo_n "(cached) " >&6
28502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28503 /* end confdefs.h. */
28505 #include <stdarg.h>
28506 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28507 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28513 call_use_va_copy(1,2,3)
28519 if ac_fn_c_try_link "$LINENO"; then :
28529 rm -f core conftest.err conftest.$ac_objext \
28530 conftest$ac_exeext conftest.$ac_ext
28534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28535 $as_echo "$ba_cv_va_copy" >&6; }
28536 test $ba_cv_va_copy = yes &&
28537 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28540 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28542 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28544 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28545 cat >>confdefs.h <<_ACEOF
28546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28553 # If resolver functions are not in libc check for -lnsl or -lresolv.
28554 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28555 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28557 $as_echo "using libc's resolver" >&6; }
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28560 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28561 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28562 $as_echo_n "(cached) " >&6
28564 ac_check_lib_save_LIBS=$LIBS
28566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28567 /* end confdefs.h. */
28569 /* Override any GCC internal prototype to avoid an error.
28570 Use char because int might match the return type of a GCC
28571 builtin and then its argument prototype would still apply. */
28575 char gethostbyname_r ();
28579 return gethostbyname_r ();
28584 if ac_fn_c_try_link "$LINENO"; then :
28585 ac_cv_lib_nsl_gethostbyname_r=yes
28587 ac_cv_lib_nsl_gethostbyname_r=no
28589 rm -f core conftest.err conftest.$ac_objext \
28590 conftest$ac_exeext conftest.$ac_ext
28591 LIBS=$ac_check_lib_save_LIBS
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28594 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28595 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28596 cat >>confdefs.h <<_ACEOF
28597 #define HAVE_LIBNSL 1
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28605 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28606 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28607 $as_echo_n "(cached) " >&6
28609 ac_check_lib_save_LIBS=$LIBS
28610 LIBS="-lresolv $LIBS"
28611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28612 /* end confdefs.h. */
28614 /* Override any GCC internal prototype to avoid an error.
28615 Use char because int might match the return type of a GCC
28616 builtin and then its argument prototype would still apply. */
28620 char gethostbyname_r ();
28624 return gethostbyname_r ();
28629 if ac_fn_c_try_link "$LINENO"; then :
28630 ac_cv_lib_resolv_gethostbyname_r=yes
28632 ac_cv_lib_resolv_gethostbyname_r=no
28634 rm -f core conftest.err conftest.$ac_objext \
28635 conftest$ac_exeext conftest.$ac_ext
28636 LIBS=$ac_check_lib_save_LIBS
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28639 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28640 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28641 cat >>confdefs.h <<_ACEOF
28642 #define HAVE_LIBRESOLV 1
28645 LIBS="-lresolv $LIBS"
28652 for ac_func in inet_pton
28654 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28655 if test "x$ac_cv_func_inet_pton" = xyes; then :
28656 cat >>confdefs.h <<_ACEOF
28657 #define HAVE_INET_PTON 1
28659 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28664 for ac_func in inet_ntop
28666 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28667 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28668 cat >>confdefs.h <<_ACEOF
28669 #define HAVE_INET_NTOP 1
28671 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28676 for ac_func in gethostbyname2
28678 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28679 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28680 cat >>confdefs.h <<_ACEOF
28681 #define HAVE_GETHOSTBYNAME2 1
28683 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28690 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28691 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28692 $as_echo_n "(cached) " >&6
28695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28696 /* end confdefs.h. */
28698 #include <sys/socket.h>
28704 struct sockaddr s; s.sa_len;
28710 if ac_fn_c_try_compile "$LINENO"; then :
28712 ac_cv_struct_sockaddr_sa_len=yes
28715 ac_cv_struct_sockaddr_sa_len=no
28719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28724 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28726 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28728 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28733 $as_echo_n "checking for working getaddrinfo... " >&6; }
28734 if ${ac_cv_working_getaddrinfo+:} false; then :
28735 $as_echo_n "(cached) " >&6
28738 if test "$cross_compiling" = yes; then :
28740 ac_cv_working_getaddrinfo="yes"
28744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28745 /* end confdefs.h. */
28748 #include <string.h>
28749 #include <sys/types.h>
28750 #include <sys/socket.h>
28753 struct addrinfo hints, *ai;
28756 memset(&hints, 0, sizeof(hints));
28757 hints.ai_family = AF_UNSPEC;
28758 hints.ai_socktype = SOCK_STREAM;
28759 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28763 if (ai->ai_addr->sa_family != AF_INET) {
28770 if ac_fn_c_try_run "$LINENO"; then :
28772 ac_cv_working_getaddrinfo="yes"
28776 ac_cv_working_getaddrinfo="no"
28779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28780 conftest.$ac_objext conftest.beam conftest.$ac_ext
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28787 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28788 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28789 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28791 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28796 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28797 if test "$ac_cv_func_gai_strerror" != "yes"; then
28798 ac_cv_working_getaddrinfo="no"
28801 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28806 for ac_func in strftime
28808 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28809 if test "x$ac_cv_func_strftime" = xyes; then :
28810 cat >>confdefs.h <<_ACEOF
28811 #define HAVE_STRFTIME 1
28815 # strftime is in -lintl on SCO UNIX.
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28817 $as_echo_n "checking for strftime in -lintl... " >&6; }
28818 if ${ac_cv_lib_intl_strftime+:} false; then :
28819 $as_echo_n "(cached) " >&6
28821 ac_check_lib_save_LIBS=$LIBS
28822 LIBS="-lintl $LIBS"
28823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28824 /* end confdefs.h. */
28826 /* Override any GCC internal prototype to avoid an error.
28827 Use char because int might match the return type of a GCC
28828 builtin and then its argument prototype would still apply. */
28836 return strftime ();
28841 if ac_fn_c_try_link "$LINENO"; then :
28842 ac_cv_lib_intl_strftime=yes
28844 ac_cv_lib_intl_strftime=no
28846 rm -f core conftest.err conftest.$ac_objext \
28847 conftest$ac_exeext conftest.$ac_ext
28848 LIBS=$ac_check_lib_save_LIBS
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28851 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28852 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28853 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28855 LIBS="-lintl $LIBS"
28861 for ac_func in vprintf
28863 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28864 if test "x$ac_cv_func_vprintf" = xyes; then :
28865 cat >>confdefs.h <<_ACEOF
28866 #define HAVE_VPRINTF 1
28869 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28870 if test "x$ac_cv_func__doprnt" = xyes; then :
28872 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28881 # for constant arguments. Useless!
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28883 $as_echo_n "checking for working alloca.h... " >&6; }
28884 if ${ac_cv_working_alloca_h+:} false; then :
28885 $as_echo_n "(cached) " >&6
28887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28888 /* end confdefs.h. */
28889 #include <alloca.h>
28893 char *p = (char *) alloca (2 * sizeof (int));
28899 if ac_fn_c_try_link "$LINENO"; then :
28900 ac_cv_working_alloca_h=yes
28902 ac_cv_working_alloca_h=no
28904 rm -f core conftest.err conftest.$ac_objext \
28905 conftest$ac_exeext conftest.$ac_ext
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28908 $as_echo "$ac_cv_working_alloca_h" >&6; }
28909 if test $ac_cv_working_alloca_h = yes; then
28911 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28916 $as_echo_n "checking for alloca... " >&6; }
28917 if ${ac_cv_func_alloca_works+:} false; then :
28918 $as_echo_n "(cached) " >&6
28920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h. */
28923 # define alloca __builtin_alloca
28926 # include <malloc.h>
28927 # define alloca _alloca
28929 # ifdef HAVE_ALLOCA_H
28930 # include <alloca.h>
28935 # ifndef alloca /* predefined by HP cc +Olibcalls */
28936 void *alloca (size_t);
28946 char *p = (char *) alloca (1);
28952 if ac_fn_c_try_link "$LINENO"; then :
28953 ac_cv_func_alloca_works=yes
28955 ac_cv_func_alloca_works=no
28957 rm -f core conftest.err conftest.$ac_objext \
28958 conftest$ac_exeext conftest.$ac_ext
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28961 $as_echo "$ac_cv_func_alloca_works" >&6; }
28963 if test $ac_cv_func_alloca_works = yes; then
28965 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28968 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28969 # that cause trouble. Some versions do not even contain alloca or
28970 # contain a buggy version. If you still want to use their alloca,
28971 # use ar to extract alloca.o from them instead of compiling alloca.c.
28973 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28975 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28979 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28980 if ${ac_cv_os_cray+:} false; then :
28981 $as_echo_n "(cached) " >&6
28983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28984 /* end confdefs.h. */
28985 #if defined CRAY && ! defined CRAY2
28992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28993 $EGREP "webecray" >/dev/null 2>&1; then :
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29002 $as_echo "$ac_cv_os_cray" >&6; }
29003 if test $ac_cv_os_cray = yes; then
29004 for ac_func in _getb67 GETB67 getb67; do
29005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29007 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29009 cat >>confdefs.h <<_ACEOF
29010 #define CRAY_STACKSEG_END $ac_func
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29020 $as_echo_n "checking stack direction for C alloca... " >&6; }
29021 if ${ac_cv_c_stack_direction+:} false; then :
29022 $as_echo_n "(cached) " >&6
29024 if test "$cross_compiling" = yes; then :
29025 ac_cv_c_stack_direction=0
29027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29028 /* end confdefs.h. */
29029 $ac_includes_default
29031 find_stack_direction ()
29033 static char *addr = 0;
29038 return find_stack_direction ();
29041 return (&dummy > addr) ? 1 : -1;
29047 return find_stack_direction () < 0;
29050 if ac_fn_c_try_run "$LINENO"; then :
29051 ac_cv_c_stack_direction=1
29053 ac_cv_c_stack_direction=-1
29055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29056 conftest.$ac_objext conftest.beam conftest.$ac_ext
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29061 $as_echo "$ac_cv_c_stack_direction" >&6; }
29062 cat >>confdefs.h <<_ACEOF
29063 #define STACK_DIRECTION $ac_cv_c_stack_direction
29069 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29070 # -lseq on Dynix/PTX, -lgen on Unixware.
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29072 $as_echo_n "checking for library containing getmntent... " >&6; }
29073 if ${ac_cv_search_getmntent+:} false; then :
29074 $as_echo_n "(cached) " >&6
29076 ac_func_search_save_LIBS=$LIBS
29077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29078 /* end confdefs.h. */
29080 /* Override any GCC internal prototype to avoid an error.
29081 Use char because int might match the return type of a GCC
29082 builtin and then its argument prototype would still apply. */
29090 return getmntent ();
29095 for ac_lib in '' sun seq gen; do
29096 if test -z "$ac_lib"; then
29097 ac_res="none required"
29100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29102 if ac_fn_c_try_link "$LINENO"; then :
29103 ac_cv_search_getmntent=$ac_res
29105 rm -f core conftest.err conftest.$ac_objext \
29107 if ${ac_cv_search_getmntent+:} false; then :
29111 if ${ac_cv_search_getmntent+:} false; then :
29114 ac_cv_search_getmntent=no
29116 rm conftest.$ac_ext
29117 LIBS=$ac_func_search_save_LIBS
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29120 $as_echo "$ac_cv_search_getmntent" >&6; }
29121 ac_res=$ac_cv_search_getmntent
29122 if test "$ac_res" != no; then :
29123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29124 ac_cv_func_getmntent=yes
29126 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29129 ac_cv_func_getmntent=no
29133 for ac_func in getmntinfo
29135 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29136 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29137 cat >>confdefs.h <<_ACEOF
29138 #define HAVE_GETMNTINFO 1
29140 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29146 $as_echo_n "checking whether closedir returns void... " >&6; }
29147 if ${ac_cv_func_closedir_void+:} false; then :
29148 $as_echo_n "(cached) " >&6
29150 if test "$cross_compiling" = yes; then :
29151 ac_cv_func_closedir_void=yes
29153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29154 /* end confdefs.h. */
29155 $ac_includes_default
29156 #include <$ac_header_dirent>
29157 #ifndef __cplusplus
29164 return closedir (opendir (".")) != 0;
29169 if ac_fn_c_try_run "$LINENO"; then :
29170 ac_cv_func_closedir_void=no
29172 ac_cv_func_closedir_void=yes
29174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29175 conftest.$ac_objext conftest.beam conftest.$ac_ext
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29180 $as_echo "$ac_cv_func_closedir_void" >&6; }
29181 if test $ac_cv_func_closedir_void = yes; then
29183 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29188 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29189 if ${ac_cv_func_setpgrp_void+:} false; then :
29190 $as_echo_n "(cached) " >&6
29192 if test "$cross_compiling" = yes; then :
29193 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29196 /* end confdefs.h. */
29197 $ac_includes_default
29201 /* If this system has a BSD-style setpgrp which takes arguments,
29202 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29203 exit successfully. */
29204 return setpgrp (1,1) != -1;
29209 if ac_fn_c_try_run "$LINENO"; then :
29210 ac_cv_func_setpgrp_void=no
29212 ac_cv_func_setpgrp_void=yes
29214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29215 conftest.$ac_objext conftest.beam conftest.$ac_ext
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29220 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29221 if test $ac_cv_func_setpgrp_void = yes; then
29223 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29226 # AC_FUNC_FNMATCH dnl use local version
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29229 $as_echo_n "checking for gettext in -lintl... " >&6; }
29230 if ${ac_cv_lib_intl_gettext+:} false; then :
29231 $as_echo_n "(cached) " >&6
29233 ac_check_lib_save_LIBS=$LIBS
29234 LIBS="-lintl $LIBS"
29235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29236 /* end confdefs.h. */
29238 /* Override any GCC internal prototype to avoid an error.
29239 Use char because int might match the return type of a GCC
29240 builtin and then its argument prototype would still apply. */
29253 if ac_fn_c_try_link "$LINENO"; then :
29254 ac_cv_lib_intl_gettext=yes
29256 ac_cv_lib_intl_gettext=no
29258 rm -f core conftest.err conftest.$ac_objext \
29259 conftest$ac_exeext conftest.$ac_ext
29260 LIBS=$ac_check_lib_save_LIBS
29262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29263 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29264 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29265 LIBS="$LIBS -lintl"
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29270 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29271 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29272 $as_echo_n "(cached) " >&6
29274 ac_check_lib_save_LIBS=$LIBS
29276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29277 /* end confdefs.h. */
29279 /* Override any GCC internal prototype to avoid an error.
29280 Use char because int might match the return type of a GCC
29281 builtin and then its argument prototype would still apply. */
29289 return getpwnam ();
29294 if ac_fn_c_try_link "$LINENO"; then :
29295 ac_cv_lib_sun_getpwnam=yes
29297 ac_cv_lib_sun_getpwnam=no
29299 rm -f core conftest.err conftest.$ac_objext \
29300 conftest$ac_exeext conftest.$ac_ext
29301 LIBS=$ac_check_lib_save_LIBS
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29304 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29305 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29306 cat >>confdefs.h <<_ACEOF
29307 #define HAVE_LIBSUN 1
29315 for ac_header in zlib.h
29317 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29318 if test "x$ac_cv_header_zlib_h" = xyes; then :
29319 cat >>confdefs.h <<_ACEOF
29320 #define HAVE_ZLIB_H 1
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29328 $as_echo_n "checking for deflate in -lz... " >&6; }
29329 if ${ac_cv_lib_z_deflate+:} false; then :
29330 $as_echo_n "(cached) " >&6
29332 ac_check_lib_save_LIBS=$LIBS
29334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29335 /* end confdefs.h. */
29337 /* Override any GCC internal prototype to avoid an error.
29338 Use char because int might match the return type of a GCC
29339 builtin and then its argument prototype would still apply. */
29352 if ac_fn_c_try_link "$LINENO"; then :
29353 ac_cv_lib_z_deflate=yes
29355 ac_cv_lib_z_deflate=no
29357 rm -f core conftest.err conftest.$ac_objext \
29358 conftest$ac_exeext conftest.$ac_ext
29359 LIBS=$ac_check_lib_save_LIBS
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29362 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29363 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29368 if test x$ZLIBS = x-lz; then
29369 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29376 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29377 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29379 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29380 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29383 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29384 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29385 $as_echo_n "(cached) " >&6
29387 ac_check_lib_save_LIBS=$LIBS
29388 LIBS="-llzo2 $LIBS"
29389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29390 /* end confdefs.h. */
29392 /* Override any GCC internal prototype to avoid an error.
29393 Use char because int might match the return type of a GCC
29394 builtin and then its argument prototype would still apply. */
29398 char lzo1x_1_compress ();
29402 return lzo1x_1_compress ();
29407 if ac_fn_c_try_link "$LINENO"; then :
29408 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29410 ac_cv_lib_lzo2_lzo1x_1_compress=no
29412 rm -f core conftest.err conftest.$ac_objext \
29413 conftest$ac_exeext conftest.$ac_ext
29414 LIBS=$ac_check_lib_save_LIBS
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29417 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29418 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29422 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29441 # Check whether --enable-afs was given.
29442 if test "${enable_afs+set}" = set; then :
29443 enableval=$enable_afs;
29444 if test x$enableval = xyes; then
29446 elif test x$enableval = xno; then
29455 if test x$support_afs = xyes -o x$support_afs = xauto; then
29457 # Check whether --with-afsdir was given.
29458 if test "${with_afsdir+set}" = set; then :
29459 withval=$with_afsdir; with_afsdir=$withval
29464 if test x$with_afsdir = x; then
29465 for root in /usr /usr/local; do
29466 if test -d ${root}/include/afs/ ; then
29467 with_afsdir=${root}
29470 if test -d ${root}/include/openafs/afs/ ; then
29471 with_afsdir=${root}
29477 if test -d ${with_afsdir}/include/afs/ ; then
29478 AFS_CFLAGS="-I${with_afsdir}/include"
29480 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29481 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29485 saved_CFLAGS="${CFLAGS}"
29486 saved_CPPFLAGS="${CPPFLAGS}"
29487 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29488 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29490 for ac_header in afs/afsint.h
29492 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29493 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29494 cat >>confdefs.h <<_ACEOF
29495 #define HAVE_AFS_AFSINT_H 1
29502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29503 /* end confdefs.h. */
29505 #include <afs/afsint.h>
29506 #include <afs/venus.h>
29509 if ac_fn_c_try_cpp "$LINENO"; then :
29511 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29515 rm -f conftest.err conftest.i conftest.$ac_ext
29517 CFLAGS="${saved_CFLAGS}"
29518 CPPFLAGS="${saved_CPPFLAGS}"
29520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29521 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29522 for dir in ${with_afsdir}/lib \
29523 ${with_afsdir}/lib/afs \
29524 ${with_afsdir}/lib/openafs \
29525 ${with_afsdir}/lib64 \
29526 ${with_afsdir}/lib64/afs \
29527 ${with_afsdir}/lib64/openafs
29529 for arch_type in .a .so
29531 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29533 if test $pkg = 0; then
29535 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29541 if test $have_afs = yes; then
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543 $as_echo "yes" >&6; }
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29549 if test x$support_afs = xyes -a $have_afs != yes; then
29550 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29551 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29553 if test $have_afs = yes; then
29555 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29558 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29567 # Check whether --enable-acl was given.
29568 if test "${enable_acl+set}" = set; then :
29569 enableval=$enable_acl;
29570 if test x$enableval = xyes; then
29572 elif test x$enableval = xno; then
29581 have_extended_acl=no
29582 if test x$support_acl = xyes -o x$support_acl = xauto; then
29583 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29584 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29586 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29592 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29593 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29601 if test $have_acl = no; then
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29603 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29604 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29605 $as_echo_n "(cached) " >&6
29607 ac_check_lib_save_LIBS=$LIBS
29609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29610 /* end confdefs.h. */
29612 /* Override any GCC internal prototype to avoid an error.
29613 Use char because int might match the return type of a GCC
29614 builtin and then its argument prototype would still apply. */
29618 char acl_get_file ();
29622 return acl_get_file ();
29627 if ac_fn_c_try_link "$LINENO"; then :
29628 ac_cv_lib_acl_acl_get_file=yes
29630 ac_cv_lib_acl_acl_get_file=no
29632 rm -f core conftest.err conftest.$ac_objext \
29633 conftest$ac_exeext conftest.$ac_ext
29634 LIBS=$ac_check_lib_save_LIBS
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29637 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29638 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29641 if test $have_afs = yes; then
29642 if test -d /usr/lib64/; then
29643 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29645 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29648 FDLIBS="-lacl $FDLIBS"
29656 if test $have_acl = no -a \
29657 x${HAVE_OSF1_OS_TRUE} = x; then
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29659 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29660 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29661 $as_echo_n "(cached) " >&6
29663 ac_check_lib_save_LIBS=$LIBS
29664 LIBS="-lpacl $LIBS"
29665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29666 /* end confdefs.h. */
29668 /* Override any GCC internal prototype to avoid an error.
29669 Use char because int might match the return type of a GCC
29670 builtin and then its argument prototype would still apply. */
29674 char acl_get_file ();
29678 return acl_get_file ();
29683 if ac_fn_c_try_link "$LINENO"; then :
29684 ac_cv_lib_pacl_acl_get_file=yes
29686 ac_cv_lib_pacl_acl_get_file=no
29688 rm -f core conftest.err conftest.$ac_objext \
29689 conftest$ac_exeext conftest.$ac_ext
29690 LIBS=$ac_check_lib_save_LIBS
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29693 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29694 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29697 FDLIBS="-lpacl $FDLIBS"
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29704 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29705 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29706 if test $? = 0; then
29708 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29711 $as_echo "yes" >&6; }
29713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29714 $as_echo "no" >&6; }
29718 if test $have_acl = yes -a \
29719 x${HAVE_DARWIN_OS_TRUE} = x; then
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29721 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29722 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29723 if test $? = 0; then
29725 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29728 $as_echo "yes" >&6; }
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29731 $as_echo "no" >&6; }
29735 if test $have_acl = yes -a \
29736 x${HAVE_FREEBSD_OS_TRUE} = x; then
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29738 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29739 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29740 if test $? = 0; then
29742 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29745 $as_echo "yes" >&6; }
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29748 $as_echo "no" >&6; }
29752 if test $have_acl = no -a \
29753 x${HAVE_SUN_OS_TRUE} = x; then
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29755 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29756 if ${ac_cv_lib_sec_acltotext+:} false; then :
29757 $as_echo_n "(cached) " >&6
29759 ac_check_lib_save_LIBS=$LIBS
29761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29762 /* end confdefs.h. */
29764 /* Override any GCC internal prototype to avoid an error.
29765 Use char because int might match the return type of a GCC
29766 builtin and then its argument prototype would still apply. */
29774 return acltotext ();
29779 if ac_fn_c_try_link "$LINENO"; then :
29780 ac_cv_lib_sec_acltotext=yes
29782 ac_cv_lib_sec_acltotext=no
29784 rm -f core conftest.err conftest.$ac_objext \
29785 conftest$ac_exeext conftest.$ac_ext
29786 LIBS=$ac_check_lib_save_LIBS
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29789 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29790 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29793 FDLIBS="-lsec $FDLIBS"
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29796 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29797 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29798 $as_echo_n "(cached) " >&6
29800 ac_check_lib_save_LIBS=$LIBS
29802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29803 /* end confdefs.h. */
29805 /* Override any GCC internal prototype to avoid an error.
29806 Use char because int might match the return type of a GCC
29807 builtin and then its argument prototype would still apply. */
29811 char acl_totext ();
29815 return acl_totext ();
29820 if ac_fn_c_try_link "$LINENO"; then :
29821 ac_cv_lib_sec_acl_totext=yes
29823 ac_cv_lib_sec_acl_totext=no
29825 rm -f core conftest.err conftest.$ac_objext \
29826 conftest$ac_exeext conftest.$ac_ext
29827 LIBS=$ac_check_lib_save_LIBS
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29830 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29831 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29833 have_extended_acl=yes
29844 if test $have_acl = no -a \
29845 x${HAVE_AIX_OS_TRUE} = x; then
29846 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29847 if test "x$ac_cv_func_acl_get" = xyes; then :
29851 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29852 if test "x$ac_cv_func_aclx_get" = xyes; then :
29854 have_extended_acl=yes
29865 if test x$support_acl = xyes -a $have_acl != yes; then
29866 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29867 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29869 if test $have_acl = yes; then
29871 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29875 if test $have_extended_acl = yes; then
29877 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29884 # Check whether --enable-xattr was given.
29885 if test "${enable_xattr+set}" = set; then :
29886 enableval=$enable_xattr;
29887 if test x$enableval = xyes; then
29889 elif test x$enableval = xno; then
29898 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29899 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29900 x${HAVE_NETBSD_OS_TRUE} = x -o \
29901 x${HAVE_OPENBSD_OS_TRUE} = x; then
29902 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29903 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29905 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29910 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29911 if test "x$ac_cv_header_libutil_h" = xyes; then :
29913 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29918 for ac_func in extattr_get_link extattr_set_link extattr_list_link
29920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29922 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29923 cat >>confdefs.h <<_ACEOF
29924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29929 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29932 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29935 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29943 if test $have_xattr = no; then
29944 for ac_func in extattr_get_file extattr_set_file extattr_list_file
29946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29947 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29948 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29949 cat >>confdefs.h <<_ACEOF
29950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29955 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29958 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29961 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29970 if test $have_xattr = yes; then
29971 have_extattr_string_in_libc=no
29972 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29975 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29976 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29977 cat >>confdefs.h <<_ACEOF
29978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29981 have_extattr_string_in_libc=yes
29983 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29986 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29994 if test $have_extattr_string_in_libc = no; then
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29996 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29997 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29998 $as_echo_n "(cached) " >&6
30000 ac_check_lib_save_LIBS=$LIBS
30001 LIBS="-lutil $LIBS"
30002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30003 /* end confdefs.h. */
30005 /* Override any GCC internal prototype to avoid an error.
30006 Use char because int might match the return type of a GCC
30007 builtin and then its argument prototype would still apply. */
30011 char extattr_namespace_to_string extattr_string_to_namespace ();
30015 return extattr_namespace_to_string extattr_string_to_namespace ();
30020 if ac_fn_c_try_link "$LINENO"; then :
30021 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30023 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30025 rm -f core conftest.err conftest.$ac_objext \
30026 conftest$ac_exeext conftest.$ac_ext
30027 LIBS=$ac_check_lib_save_LIBS
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30030 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30031 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30034 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30037 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30039 FDLIBS="-lutil $FDLIBS"
30048 if test $have_xattr = no -a \
30049 x${HAVE_AIX_OS_TRUE} = x; then
30050 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30051 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30053 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30058 for ac_func in llistea lgetea lsetea
30060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30062 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30063 cat >>confdefs.h <<_ACEOF
30064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30069 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30072 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30075 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30083 if test $have_xattr = no; then
30084 for ac_func in listea getea setea
30086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30087 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30088 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30089 cat >>confdefs.h <<_ACEOF
30090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30095 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30098 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30101 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30111 if test $have_xattr = no -a \
30112 x${HAVE_OSF1_OS_TRUE} = x; then
30113 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30114 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30116 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30121 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30125 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30126 cat >>confdefs.h <<_ACEOF
30127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30132 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30135 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30138 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30141 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30144 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30153 if test $have_xattr = no -a \
30154 x${HAVE_SUN_OS_TRUE} = x; then
30155 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30156 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30158 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30163 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30164 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30166 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30171 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30172 if test "x$ac_cv_header_attr_h" = xyes; then :
30174 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30180 for ac_func in openat fstatat unlinkat fchownat futimesat
30182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30185 cat >>confdefs.h <<_ACEOF
30186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30191 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30194 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30197 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30200 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30203 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30211 if test $have_xattr = yes; then
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30213 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30214 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30215 $as_echo_n "(cached) " >&6
30217 ac_check_lib_save_LIBS=$LIBS
30218 LIBS="-lnvpair $LIBS"
30219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30220 /* end confdefs.h. */
30222 /* Override any GCC internal prototype to avoid an error.
30223 Use char because int might match the return type of a GCC
30224 builtin and then its argument prototype would still apply. */
30228 char nvlist_next_nvpair ();
30232 return nvlist_next_nvpair ();
30237 if ac_fn_c_try_link "$LINENO"; then :
30238 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30240 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30242 rm -f core conftest.err conftest.$ac_objext \
30243 conftest$ac_exeext conftest.$ac_ext
30244 LIBS=$ac_check_lib_save_LIBS
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30247 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30248 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30251 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30253 FDLIBS="-lnvpair $FDLIBS"
30261 if test $have_xattr = no; then
30262 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30263 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30265 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30270 for ac_func in llistxattr lgetxattr lsetxattr
30272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30275 cat >>confdefs.h <<_ACEOF
30276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30281 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30284 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30287 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30295 if test $have_xattr = no; then
30296 for ac_func in listxattr getxattr setxattr
30298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30300 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30301 cat >>confdefs.h <<_ACEOF
30302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30307 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30310 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30313 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30323 if test x$support_xattr = xyes -a $have_xattr != yes; then
30324 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30325 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30327 if test $have_xattr = yes; then
30329 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30337 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30338 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30339 $as_echo_n "(cached) " >&6
30341 ac_check_lib_save_LIBS=$LIBS
30342 LIBS="-lpthread $LIBS"
30343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30344 /* end confdefs.h. */
30346 /* Override any GCC internal prototype to avoid an error.
30347 Use char because int might match the return type of a GCC
30348 builtin and then its argument prototype would still apply. */
30352 char pthread_create ();
30356 return pthread_create ();
30361 if ac_fn_c_try_link "$LINENO"; then :
30362 ac_cv_lib_pthread_pthread_create=yes
30364 ac_cv_lib_pthread_pthread_create=no
30366 rm -f core conftest.err conftest.$ac_objext \
30367 conftest$ac_exeext conftest.$ac_ext
30368 LIBS=$ac_check_lib_save_LIBS
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30371 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30372 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30373 PTHREAD_LIB="-lpthread"
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30377 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30378 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30379 $as_echo_n "(cached) " >&6
30381 ac_check_lib_save_LIBS=$LIBS
30382 LIBS="-lpthreads $LIBS"
30383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30384 /* end confdefs.h. */
30386 /* Override any GCC internal prototype to avoid an error.
30387 Use char because int might match the return type of a GCC
30388 builtin and then its argument prototype would still apply. */
30392 char pthread_create ();
30396 return pthread_create ();
30401 if ac_fn_c_try_link "$LINENO"; then :
30402 ac_cv_lib_pthreads_pthread_create=yes
30404 ac_cv_lib_pthreads_pthread_create=no
30406 rm -f core conftest.err conftest.$ac_objext \
30407 conftest$ac_exeext conftest.$ac_ext
30408 LIBS=$ac_check_lib_save_LIBS
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30411 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30412 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30413 PTHREAD_LIB="-lpthreads"
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30417 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30418 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30419 $as_echo_n "(cached) " >&6
30421 ac_check_lib_save_LIBS=$LIBS
30423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30424 /* end confdefs.h. */
30426 /* Override any GCC internal prototype to avoid an error.
30427 Use char because int might match the return type of a GCC
30428 builtin and then its argument prototype would still apply. */
30432 char pthread_create ();
30436 return pthread_create ();
30441 if ac_fn_c_try_link "$LINENO"; then :
30442 ac_cv_lib_c_r_pthread_create=yes
30444 ac_cv_lib_c_r_pthread_create=no
30446 rm -f core conftest.err conftest.$ac_objext \
30447 conftest$ac_exeext conftest.$ac_ext
30448 LIBS=$ac_check_lib_save_LIBS
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30451 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30452 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30453 PTHREAD_LIB="-lc_r"
30456 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30457 if test "x$ac_cv_func_pthread_create" = xyes; then :
30474 for ac_header in sys/prctl.h sys/capability.h
30476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30479 cat >>confdefs.h <<_ACEOF
30480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30487 for ac_func in prctl setreuid
30489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30492 cat >>confdefs.h <<_ACEOF
30493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30500 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30501 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30502 $as_echo_n "(cached) " >&6
30504 ac_check_lib_save_LIBS=$LIBS
30506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30507 /* end confdefs.h. */
30509 /* Override any GCC internal prototype to avoid an error.
30510 Use char because int might match the return type of a GCC
30511 builtin and then its argument prototype would still apply. */
30515 char cap_set_proc ();
30519 return cap_set_proc ();
30524 if ac_fn_c_try_link "$LINENO"; then :
30525 ac_cv_lib_cap_cap_set_proc=yes
30527 ac_cv_lib_cap_cap_set_proc=no
30529 rm -f core conftest.err conftest.$ac_objext \
30530 conftest$ac_exeext conftest.$ac_ext
30531 LIBS=$ac_check_lib_save_LIBS
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30534 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30535 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30541 if test x$CAP_LIBS = x-lcap; then
30543 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30549 $as_echo "#define FDLIBS 1" >>confdefs.h
30552 CFLAGS=${CFLAGS--O}
30554 if test x$have_gcc = xyes ; then
30555 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30556 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30558 LDFLAGS=${LDFLAGS--O}
30559 CPPFLAGS="$CPPFLAGS"
30585 PFILES="platforms/Makefile"
30589 COMPRESS_MANPAGES=yes
30591 case "$DISTNAME" in
30594 PSCMD="ps -e -o pid,comm"
30595 PFILES="${PFILES} \
30596 platforms/aix/Makefile"
30597 TAPEDRIVE="/dev/rmt0.1"
30601 PTHREAD_LIB="-lpthread -lexc"
30602 if test "${CC}" = "gcc" ; then
30609 TAPEDRIVE="/dev/nrmt0"
30612 DISTVER=`uname -a |awk '{print $3}'`
30613 TAPEDRIVE="/dev/nrmt0"
30614 PTHREAD_LIB="-pthread"
30615 CFLAGS="${CFLAGS} -pthread"
30616 PSCMD="ps -ax -o pid,command"
30619 PFILES="${PFILES} \
30620 platforms/bsdi/Makefile \
30621 platforms/bsdi/bacula-fd \
30622 platforms/bsdi/bacula-sd \
30623 platforms/bsdi/bacula-dir"
30624 largefile_support="yes"
30627 DISTVER=`uname -a |awk '{print $3}'`
30628 TAPEDRIVE="/dev/nrst0"
30630 WCFLAGS="-mwindows"
30631 WLDFLAGS="-mwindows"
30635 TAPEDRIVE="/dev/nst0"
30636 PSCMD="ps -e -o pid,command"
30638 PFILES="${PFILES} \
30639 platforms/darwin/Makefile"
30643 TAPEDRIVE="/dev/nst0"
30644 PSCMD="ps -e -o pid,command"
30646 PFILES="${PFILES} \
30647 platforms/osx/Makefile"
30650 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30653 DISTVER=`cat /etc/debian_version`
30654 if test -f /etc/lsb-release ; then
30656 if test "x$DISTRIB_ID" != "x" ; then
30657 DISTNAME=$DISTRIB_ID
30659 if test "x$DISTRIB_RELEASE" != "x" ; then
30660 DISTVER=$DISTRIB_RELEASE
30663 if test "$DISTNAME" = "Ubuntu" ; then
30666 TAPEDRIVE="/dev/nst0"
30667 PSCMD="ps -e -o pid,command"
30668 if test "$DISTNAME" = "ubuntu" ; then
30669 PFILES="${PFILES} \
30670 platforms/ubuntu/Makefile \
30671 platforms/ubuntu/bacula-fd \
30672 platforms/ubuntu/bacula-sd \
30673 platforms/ubuntu/bacula-dir"
30675 PFILES="${PFILES} \
30676 platforms/debian/Makefile \
30677 platforms/debian/bacula-fd \
30678 platforms/debian/bacula-sd \
30679 platforms/debian/bacula-dir"
30683 DISTVER=`uname -a |awk '{print $3}'`
30684 VER=`echo $DISTVER | cut -c 1`
30685 if test x$VER = x4 ; then
30686 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30687 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30691 TAPEDRIVE="/dev/nrsa0"
30692 PSCMD="ps -ax -o pid,command"
30693 PFILES="${PFILES} \
30694 platforms/freebsd/Makefile \
30695 platforms/freebsd/bacula-fd \
30696 platforms/freebsd/bacula-sd \
30697 platforms/freebsd/bacula-dir"
30698 largefile_support="yes"
30701 PSCMD="UNIX95=1; ps -e -o pid,comm"
30702 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30704 TAPEDRIVE="/dev/rmt/0hnb"
30705 PTHREAD_LIB="-lpthread"
30706 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30711 TAPEDRIVE="/dev/rmt/0cbn"
30712 PSCMD="ps -e -o pid,comm"
30713 PFILES="${PFILES} \
30714 platforms/irix/Makefile \
30715 platforms/irix/bacula-fd \
30716 platforms/irix/bacula-sd \
30717 platforms/irix/bacula-dir"
30720 DISTVER=`uname -a |awk '{print $3}'`
30723 TAPEDRIVE="/dev/nrst0"
30724 PSCMD="ps -ax -o pid,command"
30725 PTHREAD_LIB="-pthread"
30726 CFLAGS="${CFLAGS} -pthread"
30729 DISTVER=`uname -a |awk '{print $3}'`
30732 TAPEDRIVE="/dev/nrst0"
30733 PSCMD="ps -ax -o pid,command"
30734 PTHREAD_LIB="-pthread"
30735 CFLAGS="${CFLAGS} -pthread"
30736 PFILES="${PFILES} \
30737 platforms/openbsd/Makefile \
30738 platforms/openbsd/bacula-fd \
30739 platforms/openbsd/bacula-sd \
30740 platforms/openbsd/bacula-dir"
30743 if test -f /etc/whitebox-release ; then
30744 f=/etc/whitebox-release
30746 f=/etc/redhat-release
30748 if test `cat $f | grep release |\
30749 cut -f 3 -d ' '`x = "Enterprise"x ; then
30750 DISTVER="Enterprise "`cat $f | grep release |\
30753 DISTVER=`cat /etc/redhat-release | grep release |\
30756 TAPEDRIVE="/dev/nst0"
30757 PSCMD="ps -e -o pid,command"
30758 PFILES="${PFILES} \
30759 platforms/redhat/Makefile \
30760 platforms/redhat/bacula-fd \
30761 platforms/redhat/bacula-sd \
30762 platforms/redhat/bacula-dir
30766 DISTVER=`cat /etc/mandrake-release | grep release |\
30768 TAPEDRIVE="/dev/nst0"
30769 PSCMD="ps -e -o pid,command"
30770 PFILES="${PFILES} \
30771 platforms/mandrake/Makefile \
30772 platforms/mandrake/bacula-fd \
30773 platforms/mandrake/bacula-sd \
30774 platforms/mandrake/bacula-dir \
30778 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30779 TAPEDRIVE="/dev/nst0"
30780 PSCMD="ps -e -o pid,command"
30781 PFILES="${PFILES} \
30782 platforms/gentoo/Makefile \
30783 platforms/gentoo/bacula-init \
30784 platforms/gentoo/bacula-fd \
30785 platforms/gentoo/bacula-sd \
30786 platforms/gentoo/bacula-dir"
30789 DISTVER=`cat /etc/slackware-version`
30790 TAPEDRIVE="/dev/nst0"
30791 PSCMD="ps -e -o pid,command"
30792 PFILES="${PFILES} \
30793 platforms/slackware/Makefile \
30794 platforms/slackware/rc.bacula-fd \
30795 platforms/slackware/rc.bacula-sd \
30796 platforms/slackware/rc.bacula-dir\
30797 platforms/slackware/functions.bacula"
30801 TAPEDRIVE="/dev/rmt/0cbn"
30802 PSCMD="ps -e -o pid,comm"
30803 PFILES="${PFILES} \
30804 platforms/solaris/Makefile \
30805 platforms/solaris/bacula-fd \
30806 platforms/solaris/bacula-sd \
30807 platforms/solaris/bacula-dir"
30811 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30813 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30817 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30823 LIBS="$LIBS -lresolv -lrt"
30826 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30828 TAPEDRIVE="/dev/nst0"
30829 PSCMD="ps -e -o pid,command"
30830 PFILES="${PFILES} \
30831 platforms/suse/Makefile \
30832 platforms/suse/bacula-fd \
30833 platforms/suse/bacula-sd \
30834 platforms/suse/bacula-dir \
30835 platforms/suse/bacula"
30840 TAPEDRIVE="/dev/nst0"
30841 PSCMD="ps -e -o pid,command"
30842 PFILES="${PFILES} \
30843 platforms/suse/Makefile \
30844 platforms/suse/bacula-fd \
30845 platforms/suse/bacula-sd \
30846 platforms/suse/bacula-dir"
30850 TAPEDRIVE="/dev/nst0"
30853 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30858 $as_echo_n "checking for systemd support... " >&6; }
30860 # Check whether --with-systemd was given.
30861 if test "${with_systemd+set}" = set; then :
30862 withval=$with_systemd;
30863 if test "$withval" != "no"; then
30864 if test "$withval" = "yes"; then
30865 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30867 SYSTEMD_UNITDIR="${withval}"
30870 PFILES="${PFILES} \
30871 platforms/systemd/Makefile \
30872 platforms/systemd/bacula.conf \
30873 platforms/systemd/bacula-dir.service \
30874 platforms/systemd/bacula-fd.service \
30875 platforms/systemd/bacula-sd.service"
30877 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30880 $as_echo "yes" >&6; }
30881 support_systemd="yes"
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30884 $as_echo "no" >&6; }
30885 support_systemd="no"
30890 support_systemd="no"
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30892 $as_echo "no" >&6; }
30901 LIBS="$PTHREAD_LIB $LIBS"
30903 cat >>confdefs.h <<_ACEOF
30907 cat >>confdefs.h <<_ACEOF
30919 MCOMMON=./autoconf/Make.common
30922 if test "x${subsysdir}" = "x${sbindir}" ; then
30925 echo "You have set both --sbindir and --with-subsys-dir"
30926 echo " equal to: ${subsysdir} "
30927 echo "This is not permitted. Please reconfigure."
30929 echo "Aborting configuration ..."
30935 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"
30937 ac_config_commands="$ac_config_commands default"
30939 cat >confcache <<\_ACEOF
30940 # This file is a shell script that caches the results of configure
30941 # tests run on this system so they can be shared between configure
30942 # scripts and configure runs, see configure's option --config-cache.
30943 # It is not useful on other systems. If it contains results you don't
30944 # want to keep, you may remove or edit it.
30946 # config.status only pays attention to the cache file if you give it
30947 # the --recheck option to rerun configure.
30949 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30951 # following values.
30955 # The following way of writing the cache mishandles newlines in values,
30956 # but we know of no workaround that is simple, portable, and efficient.
30957 # So, we kill variables containing newlines.
30958 # Ultrix sh set writes to stderr and can't be redirected directly,
30959 # and sets the high bit in the cache file unless we assign to the vars.
30961 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30962 eval ac_val=\$$ac_var
30966 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30967 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30970 _ | IFS | as_nl) ;; #(
30971 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30972 *) { eval $ac_var=; unset $ac_var;} ;;
30978 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30979 *${as_nl}ac_space=\ *)
30980 # `set' does not quote correctly, so add quotes: double-quote
30981 # substitution turns \\\\ into \\, and sed turns \\ into \.
30984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30987 # `set' quotes correctly as required by POSIX, so do not add quotes.
30988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30997 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30999 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31001 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31002 if test -w "$cache_file"; then
31003 if test "x$cache_file" != "x/dev/null"; then
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31005 $as_echo "$as_me: updating cache $cache_file" >&6;}
31006 if test ! -f "$cache_file" || test -h "$cache_file"; then
31007 cat confcache >"$cache_file"
31009 case $cache_file in #(
31011 mv -f confcache "$cache_file"$$ &&
31012 mv -f "$cache_file"$$ "$cache_file" ;; #(
31014 mv -f confcache "$cache_file" ;;
31019 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31020 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31025 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31026 # Let make expand exec_prefix.
31027 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31029 DEFS=-DHAVE_CONFIG_H
31034 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31035 # 1. Remove the extension, and $U if already installed.
31036 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31037 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31038 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31039 # will be set to the directory where LIBOBJS objects are built.
31040 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31041 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31043 LIBOBJS=$ac_libobjs
31045 LTLIBOBJS=$ac_ltlibobjs
31050 : "${CONFIG_STATUS=./config.status}"
31052 ac_clean_files_save=$ac_clean_files
31053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31055 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31057 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31059 # Generated by $as_me.
31060 # Run this file to recreate the current configuration.
31061 # Compiler output produced by configure, useful for debugging
31062 # configure, is in config.log if it exists.
31065 ac_cs_recheck=false
31068 SHELL=\${CONFIG_SHELL-$SHELL}
31071 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31072 ## -------------------- ##
31073 ## M4sh Initialization. ##
31074 ## -------------------- ##
31076 # Be more Bourne compatible
31077 DUALCASE=1; export DUALCASE # for MKS sh
31078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31082 # is contrary to our usage. Disable this feature.
31083 alias -g '${1+"$@"}'='"$@"'
31084 setopt NO_GLOB_SUBST
31086 case `(set -o) 2>/dev/null` in #(
31098 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31099 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31102 # Prefer a ksh shell builtin over an external printf program on Solaris,
31103 # but without wasting forks for bash or zsh.
31104 if test -z "$BASH_VERSION$ZSH_VERSION" \
31105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31106 as_echo='print -r --'
31107 as_echo_n='print -rn --'
31108 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31109 as_echo='printf %s\n'
31110 as_echo_n='printf %s'
31112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31114 as_echo_n='/usr/ucb/echo -n'
31116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31117 as_echo_n_body='eval
31121 expr "X$arg" : "X\\(.*\\)$as_nl";
31122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31126 export as_echo_n_body
31127 as_echo_n='sh -c $as_echo_n_body as_echo'
31129 export as_echo_body
31130 as_echo='sh -c $as_echo_body as_echo'
31133 # The user is always right.
31134 if test "${PATH_SEPARATOR+set}" != set; then
31136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31144 # We need space, tab and new line, in precisely that order. Quoting is
31145 # there to prevent editors from complaining about space-tab.
31146 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31147 # splitting by setting IFS to empty value.)
31150 # Find who we are. Look in the path if we contain no directory separator.
31153 *[\\/]* ) as_myself=$0 ;;
31154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31155 for as_dir in $PATH
31158 test -z "$as_dir" && as_dir=.
31159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31165 # We did not find ourselves, most probably we were run as `sh COMMAND'
31166 # in which case we are not to be found in the path.
31167 if test "x$as_myself" = x; then
31170 if test ! -f "$as_myself"; then
31171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31175 # Unset variables that we do not need and which cause bugs (e.g. in
31176 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31177 # suppresses any "Segmentation fault" message there. '((' could
31178 # trigger a bug in pdksh 5.2.14.
31179 for as_var in BASH_ENV ENV MAIL MAILPATH
31180 do eval test x\${$as_var+set} = xset \
31181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31194 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31198 # ----------------------------------------
31199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31201 # script with STATUS, using 1 if that was 0.
31204 as_status=$1; test $as_status -eq 0 && as_status=1
31206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31209 $as_echo "$as_me: error: $2" >&2
31210 as_fn_exit $as_status
31214 # as_fn_set_status STATUS
31215 # -----------------------
31216 # Set $? to STATUS, without forking.
31217 as_fn_set_status ()
31220 } # as_fn_set_status
31222 # as_fn_exit STATUS
31223 # -----------------
31224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31228 as_fn_set_status $1
31234 # Portably unset VAR.
31237 { eval $1=; unset $1;}
31239 as_unset=as_fn_unset
31240 # as_fn_append VAR VALUE
31241 # ----------------------
31242 # Append the text in VALUE to the end of the definition contained in VAR. Take
31243 # advantage of any shell optimizations that allow amortized linear growth over
31244 # repeated appends, instead of the typical quadratic growth present in naive
31246 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31247 eval 'as_fn_append ()
31258 # as_fn_arith ARG...
31259 # ------------------
31260 # Perform arithmetic evaluation on the ARGs, and store the result in the
31261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31262 # must be portable across $(()) and expr.
31263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31264 eval 'as_fn_arith ()
31271 as_val=`expr "$@" || test $? -eq 1`
31276 if expr a : '\(a\)' >/dev/null 2>&1 &&
31277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31283 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31284 as_basename=basename
31289 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31295 as_me=`$as_basename -- "$0" ||
31296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31297 X"$0" : 'X\(//\)$' \| \
31298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31300 sed '/^.*\/\([^/][^/]*\)\/*$/{
31314 # Avoid depending upon Character Ranges.
31315 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31316 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31317 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31318 as_cr_digits='0123456789'
31319 as_cr_alnum=$as_cr_Letters$as_cr_digits
31321 ECHO_C= ECHO_N= ECHO_T=
31322 case `echo -n x` in #(((((
31324 case `echo 'xy\c'` in
31325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31334 rm -f conf$$ conf$$.exe conf$$.file
31335 if test -d conf$$.dir; then
31336 rm -f conf$$.dir/conf$$.file
31339 mkdir conf$$.dir 2>/dev/null
31341 if (echo >conf$$.file) 2>/dev/null; then
31342 if ln -s conf$$.file conf$$ 2>/dev/null; then
31344 # ... but there are two gotchas:
31345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31347 # In both cases, we have to default to `cp -p'.
31348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31350 elif ln conf$$.file conf$$ 2>/dev/null; then
31358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31359 rmdir conf$$.dir 2>/dev/null
31364 # Create "$as_dir" as a directory, including parents if necessary.
31369 -*) as_dir=./$as_dir;;
31371 test -d "$as_dir" || eval $as_mkdir_p || {
31375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31376 *) as_qdir=$as_dir;;
31378 as_dirs="'$as_qdir' $as_dirs"
31379 as_dir=`$as_dirname -- "$as_dir" ||
31380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31381 X"$as_dir" : 'X\(//\)[^/]' \| \
31382 X"$as_dir" : 'X\(//\)$' \| \
31383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31384 $as_echo X"$as_dir" |
31385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31389 /^X\(\/\/\)[^/].*/{
31402 test -d "$as_dir" && break
31404 test -z "$as_dirs" || eval "mkdir $as_dirs"
31405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31409 if mkdir -p . 2>/dev/null; then
31410 as_mkdir_p='mkdir -p "$as_dir"'
31412 test -d ./-p && rmdir ./-p
31416 if test -x / >/dev/null 2>&1; then
31417 as_test_x='test -x'
31419 if ls -dL / >/dev/null 2>&1; then
31426 if test -d "$1"; then
31432 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31433 ???[sx]*):;;*)false;;esac;fi
31437 as_executable_p=$as_test_x
31439 # Sed expression to map a string onto a valid CPP name.
31440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31442 # Sed expression to map a string onto a valid variable name.
31443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31447 ## ----------------------------------- ##
31448 ## Main body of $CONFIG_STATUS script. ##
31449 ## ----------------------------------- ##
31451 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31454 # Save the log message, to keep $0 and so on meaningful, and to
31455 # report actual input values of CONFIG_FILES etc. instead of their
31456 # values after options handling.
31458 This file was extended by bacula $as_me 5.2.9, which was
31459 generated by GNU Autoconf 2.68. Invocation command line was
31461 CONFIG_FILES = $CONFIG_FILES
31462 CONFIG_HEADERS = $CONFIG_HEADERS
31463 CONFIG_LINKS = $CONFIG_LINKS
31464 CONFIG_COMMANDS = $CONFIG_COMMANDS
31467 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31472 case $ac_config_files in *"
31473 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31476 case $ac_config_headers in *"
31477 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31482 # Files that config.status was made for.
31483 config_files="$ac_config_files"
31484 config_headers="$ac_config_headers"
31485 config_commands="$ac_config_commands"
31489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31491 \`$as_me' instantiates files and other configuration actions
31492 from templates according to the current configuration. Unless the files
31493 and actions are specified as TAGs, all are instantiated by default.
31495 Usage: $0 [OPTION]... [TAG]...
31497 -h, --help print this help, then exit
31498 -V, --version print version number and configuration settings, then exit
31499 --config print configuration, then exit
31500 -q, --quiet, --silent
31501 do not print progress messages
31502 -d, --debug don't remove temporary files
31503 --recheck update $as_me by reconfiguring in the same conditions
31504 --file=FILE[:TEMPLATE]
31505 instantiate the configuration file FILE
31506 --header=FILE[:TEMPLATE]
31507 instantiate the configuration header FILE
31509 Configuration files:
31512 Configuration headers:
31515 Configuration commands:
31518 Report bugs to the package provider."
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31522 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31524 bacula config.status 5.2.9
31525 configured by $0, generated by GNU Autoconf 2.68,
31526 with options \\"\$ac_cs_config\\"
31528 Copyright (C) 2010 Free Software Foundation, Inc.
31529 This config.status script is free software; the Free Software Foundation
31530 gives unlimited permission to copy, distribute and modify it."
31536 test -n "\$AWK" || AWK=awk
31539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31540 # The default lists apply if the user does not specify any file.
31546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31547 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31551 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31563 # Handling of the options.
31564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31566 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31567 $as_echo "$ac_cs_version"; exit ;;
31568 --config | --confi | --conf | --con | --co | --c )
31569 $as_echo "$ac_cs_config"; exit ;;
31570 --debug | --debu | --deb | --de | --d | -d )
31572 --file | --fil | --fi | --f )
31575 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31576 '') as_fn_error $? "missing file argument" ;;
31578 as_fn_append CONFIG_FILES " '$ac_optarg'"
31579 ac_need_defaults=false;;
31580 --header | --heade | --head | --hea )
31583 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31585 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31586 ac_need_defaults=false;;
31588 # Conflict between --help and --header
31589 as_fn_error $? "ambiguous option: \`$1'
31590 Try \`$0 --help' for more information.";;
31591 --help | --hel | -h )
31592 $as_echo "$ac_cs_usage"; exit ;;
31593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31594 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31597 # This is an error.
31598 -*) as_fn_error $? "unrecognized option: \`$1'
31599 Try \`$0 --help' for more information." ;;
31601 *) as_fn_append ac_config_targets " $1"
31602 ac_need_defaults=false ;;
31608 ac_configure_extra_args=
31610 if $ac_cs_silent; then
31612 ac_configure_extra_args="$ac_configure_extra_args --silent"
31616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31617 if \$ac_cs_recheck; then
31618 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31620 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31621 CONFIG_SHELL='$SHELL'
31622 export CONFIG_SHELL
31627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31632 ## Running $as_me. ##
31638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31644 # The HP-UX ksh and POSIX shell print the target directory to stdout
31645 # if CDPATH is set.
31646 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31648 sed_quote_subst='$sed_quote_subst'
31649 double_quote_subst='$double_quote_subst'
31650 delay_variable_subst='$delay_variable_subst'
31651 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31652 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31653 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31654 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31655 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31656 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31657 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31658 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31659 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31660 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31661 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31662 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31663 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31664 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31665 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31666 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31667 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31668 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31669 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31670 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31671 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31672 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31673 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31674 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31675 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31676 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31677 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31678 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31679 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31680 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31681 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31682 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31683 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31684 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31685 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31686 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31687 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31688 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31689 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31690 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31691 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31692 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31693 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31694 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31695 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31696 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31697 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31698 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31699 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31700 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31701 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31702 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31703 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31704 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31705 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31706 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"`'
31707 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31708 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31709 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31710 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31711 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31712 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31713 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31714 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31715 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31716 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31717 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31718 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31719 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31720 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31721 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31722 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31723 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31724 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31725 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31726 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31727 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31728 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31729 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31730 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31731 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31732 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31733 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31734 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31735 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31736 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31737 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31738 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31739 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31740 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31741 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31742 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31743 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31744 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31745 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31746 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31747 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31748 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31749 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31750 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31751 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31752 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31753 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31754 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31755 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31756 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31757 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31758 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31759 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31760 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31761 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31762 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31763 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31764 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31765 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31766 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31767 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31768 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31769 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31770 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31771 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31772 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31773 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31774 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31775 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31776 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31777 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31778 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31779 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31780 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31781 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31782 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31783 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31784 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31785 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31786 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31787 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31788 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31789 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31790 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31791 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31792 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31793 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31794 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31795 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31796 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31797 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31798 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31799 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31800 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31801 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31802 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31803 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31804 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31805 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31806 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31807 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31808 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31809 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31810 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31811 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31812 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31813 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31814 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31815 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31816 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31817 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31818 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31819 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31820 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31821 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31822 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31823 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31824 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31825 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31826 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31827 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31828 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31829 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31830 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31831 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31832 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31833 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31834 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31835 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31838 LTCFLAGS='$LTCFLAGS'
31839 compiler='$compiler_DEFAULT'
31841 # A function that is used when there is no print builtin or printf.
31842 func_fallback_echo ()
31844 eval 'cat <<_LTECHO_EOF
31849 # Quote evaled strings.
31863 deplibs_check_method \
31868 sharedlib_from_linklib_cmd \
31871 archiver_list_spec \
31877 lt_cv_sys_global_symbol_pipe \
31878 lt_cv_sys_global_symbol_to_cdecl \
31879 lt_cv_sys_global_symbol_to_c_name_address \
31880 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31881 nm_file_list_spec \
31882 lt_prog_compiler_no_builtin_flag \
31883 lt_prog_compiler_pic \
31884 lt_prog_compiler_wl \
31885 lt_prog_compiler_static \
31886 lt_cv_prog_compiler_c_o \
31895 export_dynamic_flag_spec \
31896 whole_archive_flag_spec \
31897 compiler_needs_object \
31899 allow_undefined_flag \
31900 no_undefined_flag \
31901 hardcode_libdir_flag_spec \
31902 hardcode_libdir_flag_spec_ld \
31903 hardcode_libdir_separator \
31907 variables_saved_for_relink \
31909 library_names_spec \
31911 install_override_mode \
31915 compiler_lib_search_dirs \
31920 compiler_lib_search_path \
31924 lt_prog_compiler_no_builtin_flag_CXX \
31925 lt_prog_compiler_pic_CXX \
31926 lt_prog_compiler_wl_CXX \
31927 lt_prog_compiler_static_CXX \
31928 lt_cv_prog_compiler_c_o_CXX \
31929 export_dynamic_flag_spec_CXX \
31930 whole_archive_flag_spec_CXX \
31931 compiler_needs_object_CXX \
31933 allow_undefined_flag_CXX \
31934 no_undefined_flag_CXX \
31935 hardcode_libdir_flag_spec_CXX \
31936 hardcode_libdir_flag_spec_ld_CXX \
31937 hardcode_libdir_separator_CXX \
31938 exclude_expsyms_CXX \
31939 include_expsyms_CXX \
31940 file_list_spec_CXX \
31941 compiler_lib_search_dirs_CXX \
31942 predep_objects_CXX \
31943 postdep_objects_CXX \
31946 compiler_lib_search_path_CXX; do
31947 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31948 *[\\\\\\\`\\"\\\$]*)
31949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31957 # Double-quote double-evaled strings.
31958 for var in reload_cmds \
31959 old_postinstall_cmds \
31960 old_postuninstall_cmds \
31962 extract_expsyms_cmds \
31963 old_archive_from_new_cmds \
31964 old_archive_from_expsyms_cmds \
31966 archive_expsym_cmds \
31968 module_expsym_cmds \
31969 export_symbols_cmds \
31973 postuninstall_cmds \
31975 sys_lib_search_path_spec \
31976 sys_lib_dlsearch_path_spec \
31978 old_archive_cmds_CXX \
31979 old_archive_from_new_cmds_CXX \
31980 old_archive_from_expsyms_cmds_CXX \
31982 archive_expsym_cmds_CXX \
31984 module_expsym_cmds_CXX \
31985 export_symbols_cmds_CXX \
31987 postlink_cmds_CXX; do
31988 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31989 *[\\\\\\\`\\"\\\$]*)
31990 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31993 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31998 ac_aux_dir='$ac_aux_dir'
31999 xsi_shell='$xsi_shell'
32000 lt_shell_append='$lt_shell_append'
32002 # See if we are running on zsh, and set the options which allow our
32003 # commands through without removal of \ escapes INIT.
32004 if test -n "\${ZSH_VERSION+set}" ; then
32005 setopt NO_GLOB_SUBST
32011 TIMESTAMP='$TIMESTAMP'
32019 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32020 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32022 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32023 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32024 LINGUAS="${LINGUAS-%UNSET%}"
32029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32031 # Handling of arguments.
32032 for ac_config_target in $ac_config_targets
32034 case $ac_config_target in
32035 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32036 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32037 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32038 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32040 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32041 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32042 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32043 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32044 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32045 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32046 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32047 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32048 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32049 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32050 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
32051 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
32052 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
32053 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
32054 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
32055 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
32056 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32057 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32058 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32059 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32060 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32061 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32062 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32063 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
32064 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
32065 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
32066 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32067 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32068 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32069 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32070 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32071 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32072 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32073 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32074 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32075 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32076 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32077 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32078 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32079 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32080 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
32081 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
32082 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
32083 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
32084 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32085 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32086 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32087 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32088 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32089 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32090 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32091 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32092 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32093 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32094 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32095 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32096 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32097 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32098 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32099 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32100 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32101 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32102 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32103 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32104 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32105 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32106 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32107 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32108 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32109 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32110 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32111 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32112 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32113 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32114 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32115 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32116 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32117 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32118 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32119 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32120 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32121 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32122 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32123 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32124 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32125 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32126 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32127 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
32128 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32129 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32130 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32131 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32132 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32133 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32134 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32135 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32136 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32137 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32138 "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
32139 "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
32140 "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
32141 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32142 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32143 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32144 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32145 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32146 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32147 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32149 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32154 # If the user did not use the arguments to specify the items to instantiate,
32155 # then the envvar interface is used. Set only those that are not.
32156 # We use the long form for the default assignment because of an extremely
32157 # bizarre bug on SunOS 4.1.3.
32158 if $ac_need_defaults; then
32159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32164 # Have a temporary directory for convenience. Make it in the build tree
32165 # simply because there is no reason against having it here, and in addition,
32166 # creating and moving files from /tmp can sometimes cause problems.
32167 # Hook for its removal unless debugging.
32168 # Note that there is a small window in which the directory will not be cleaned:
32169 # after its creation but before its name has been assigned to `$tmp'.
32173 trap 'exit_status=$?
32174 : "${ac_tmp:=$tmp}"
32175 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32177 trap 'as_fn_exit 1' 1 2 13 15
32179 # Create a (secure) tmp directory for tmp files.
32182 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32186 tmp=./conf$$-$RANDOM
32187 (umask 077 && mkdir "$tmp")
32188 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32191 # Set up the scripts for CONFIG_FILES section.
32192 # No need to generate them if there are no CONFIG_FILES.
32193 # This happens for instance with `./config.status config.h'.
32194 if test -n "$CONFIG_FILES"; then
32196 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32197 ac_cs_awk_getline=:
32198 ac_cs_awk_pipe_init=
32199 ac_cs_awk_read_file='
32200 while ((getline aline < (F[key])) > 0)
32203 ac_cs_awk_pipe_fini=
32205 ac_cs_awk_getline=false
32206 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32207 ac_cs_awk_read_file='
32209 print "cat " F[key] " &&"
32210 '$ac_cs_awk_pipe_init
32211 # The final `:' finishes the AND list.
32212 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32214 ac_cr=`echo X | tr X '\015'`
32215 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32216 # But we know of no other shell where ac_cr would be empty at this
32217 # point, so we can use a bashism as a fallback.
32218 if test "x$ac_cr" = x; then
32219 eval ac_cr=\$\'\\r\'
32221 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32222 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32225 ac_cs_awk_cr=$ac_cr
32228 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32231 # Create commands to substitute file output variables.
32233 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32234 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32235 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32238 } >conf$$files.sh &&
32239 . ./conf$$files.sh ||
32240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32241 rm -f conf$$files.sh
32244 echo "cat >conf$$subs.awk <<_ACEOF" &&
32245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32247 } >conf$$subs.sh ||
32248 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32251 for ac_last_try in false false false false false :; do
32252 . ./conf$$subs.sh ||
32253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32255 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32256 if test $ac_delim_n = $ac_delim_num; then
32258 elif $ac_last_try; then
32259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32264 rm -f conf$$subs.sh
32266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32267 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32271 s/^/S["/; s/!.*/"]=/
32281 s/\(.\{148\}\)..*/\1/
32283 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32295 s/\(.\{148\}\)..*/\1/
32297 s/["\\]/\\&/g; s/^/"/; s/$/"/
32301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32306 ' <conf$$subs.awk | sed '
32311 ' >>$CONFIG_STATUS || ac_write_fail=1
32312 rm -f conf$$subs.awk
32313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32315 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32316 for (key in S) S_is_set[key] = 1
32318 \$ac_cs_awk_pipe_init
32322 nfields = split(line, field, "@")
32324 len = length(field[1])
32325 for (i = 2; i < nfields; i++) {
32327 keylen = length(key)
32328 if (S_is_set[key]) {
32330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32331 len += length(value) + length(field[++i])
32336 if (nfields == 3 && !substed) {
32338 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32339 \$ac_cs_awk_read_file
32345 \$ac_cs_awk_pipe_fini
32348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32349 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32350 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32353 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32354 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32357 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32358 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32359 # trailing colons and then remove the whole line if VPATH becomes empty
32360 # (actually we leave an empty line to preserve line numbers).
32361 if test "x$srcdir" = x.; then
32362 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32381 fi # test -n "$CONFIG_FILES"
32383 # Set up the scripts for CONFIG_HEADERS section.
32384 # No need to generate them if there are no CONFIG_HEADERS.
32385 # This happens for instance with `./config.status Makefile'.
32386 if test -n "$CONFIG_HEADERS"; then
32387 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32391 # Transform confdefs.h into an awk script `defines.awk', embedded as
32392 # here-document in config.status, that substitutes the proper values into
32393 # config.h.in to produce config.h.
32395 # Create a delimiter string that does not exist in confdefs.h, to ease
32396 # handling of long lines.
32398 for ac_last_try in false false :; do
32399 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32400 if test -z "$ac_tt"; then
32402 elif $ac_last_try; then
32403 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32409 # For the awk script, D is an array of macro values keyed by name,
32410 # likewise P contains macro parameters if any. Preserve backslash
32411 # newline sequences.
32413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32415 s/.\{148\}/&'"$ac_delim"'/g
32418 s/^[ ]*#[ ]*define[ ][ ]*/ /
32425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32432 D["\1"]=" \3\\\\\\n"\\/p
32434 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32439 s/.\{148\}/&'"$ac_delim"'/g
32444 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32447 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32449 ' <confdefs.h | sed '
32450 s/'"$ac_delim"'/"\\\
32451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32454 for (key in D) D_is_set[key] = 1
32457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32459 split(line, arg, " ")
32460 if (arg[1] == "#") {
32464 defundef = substr(arg[1], 2)
32467 split(mac1, mac2, "(") #)
32469 prefix = substr(line, 1, index(line, defundef) - 1)
32470 if (D_is_set[macro]) {
32471 # Preserve the white space surrounding the "#".
32472 print prefix "define", macro P[macro] D[macro]
32475 # Replace #undef with comments. This is necessary, for example,
32476 # in the case of _POSIX_SOURCE, which is predefined and required
32477 # on some systems where configure will not decide to define it.
32478 if (defundef == "undef") {
32479 print "/*", prefix defundef, macro, "*/"
32487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32488 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32489 fi # test -n "$CONFIG_HEADERS"
32492 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32497 :[FHLC]) ac_mode=$ac_tag; continue;;
32499 case $ac_mode$ac_tag in
32501 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32502 :[FH]-) ac_tag=-:-;;
32503 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32520 -) ac_f="$ac_tmp/stdin";;
32521 *) # Look for the file first in the build tree, then in the source tree
32522 # (if the path is not absolute). The absolute path cannot be DOS-style,
32523 # because $ac_f cannot contain `:'.
32527 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32529 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32531 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32532 as_fn_append ac_file_inputs " '$ac_f'"
32535 # Let's still pretend it is `configure' which instantiates (i.e., don't
32536 # use $as_me), people would be surprised to read:
32537 # /* config.h. Generated by config.status. */
32538 configure_input='Generated from '`
32539 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32541 if test x"$ac_file" != x-; then
32542 configure_input="$ac_file. $configure_input"
32543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32544 $as_echo "$as_me: creating $ac_file" >&6;}
32546 # Neutralize special characters interpreted by sed in replacement strings.
32547 case $configure_input in #(
32548 *\&* | *\|* | *\\* )
32549 ac_sed_conf_input=`$as_echo "$configure_input" |
32550 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32551 *) ac_sed_conf_input=$configure_input;;
32555 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32561 ac_dir=`$as_dirname -- "$ac_file" ||
32562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32563 X"$ac_file" : 'X\(//\)[^/]' \| \
32564 X"$ac_file" : 'X\(//\)$' \| \
32565 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32566 $as_echo X"$ac_file" |
32567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32571 /^X\(\/\/\)[^/].*/{
32584 as_dir="$ac_dir"; as_fn_mkdir_p
32588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32591 # A ".." for each directory in $ac_dir_suffix.
32592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32593 case $ac_top_builddir_sub in
32594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32598 ac_abs_top_builddir=$ac_pwd
32599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32600 # for backward compatibility:
32601 ac_top_builddir=$ac_top_build_prefix
32604 .) # We are building in place.
32606 ac_top_srcdir=$ac_top_builddir_sub
32607 ac_abs_top_srcdir=$ac_pwd ;;
32608 [\\/]* | ?:[\\/]* ) # Absolute name.
32609 ac_srcdir=$srcdir$ac_dir_suffix;
32610 ac_top_srcdir=$srcdir
32611 ac_abs_top_srcdir=$srcdir ;;
32612 *) # Relative name.
32613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32614 ac_top_srcdir=$ac_top_build_prefix$srcdir
32615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32627 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32628 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32633 # If the template does not know about datarootdir, expand it.
32634 # FIXME: This hack should be removed a few years after 2.60.
32635 ac_datarootdir_hack=; ac_datarootdir_seen=
32646 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32647 *datarootdir*) ac_datarootdir_seen=yes;;
32648 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32650 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32653 ac_datarootdir_hack='
32654 s&@datadir@&$datadir&g
32655 s&@docdir@&$docdir&g
32656 s&@infodir@&$infodir&g
32657 s&@localedir@&$localedir&g
32658 s&@mandir@&$mandir&g
32659 s&\\\${datarootdir}&$datarootdir&g' ;;
32663 # Neutralize VPATH when `$srcdir' = `.'.
32664 # Shell code in configure.ac might set extrasub.
32665 # FIXME: do we really want to maintain this feature?
32666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32667 ac_sed_extra="$ac_vpsub
32670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32673 s|@configure_input@|$ac_sed_conf_input|;t t
32674 s&@top_builddir@&$ac_top_builddir_sub&;t t
32675 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32676 s&@srcdir@&$ac_srcdir&;t t
32677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32678 s&@top_srcdir@&$ac_top_srcdir&;t t
32679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32680 s&@builddir@&$ac_builddir&;t t
32681 s&@abs_builddir@&$ac_abs_builddir&;t t
32682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32683 s&@INSTALL@&$ac_INSTALL&;t t
32684 $ac_datarootdir_hack
32686 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32687 if $ac_cs_awk_getline; then
32688 $AWK -f "$ac_tmp/subs.awk"
32690 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32692 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32695 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32696 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32697 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32699 which seems to be undefined. Please make sure it is defined" >&5
32700 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32701 which seems to be undefined. Please make sure it is defined" >&2;}
32703 rm -f "$ac_tmp/stdin"
32705 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32706 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32714 if test x"$ac_file" != x-; then
32716 $as_echo "/* $configure_input */" \
32717 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32718 } >"$ac_tmp/config.h" \
32719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32720 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32722 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32725 mv "$ac_tmp/config.h" "$ac_file" \
32726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32729 $as_echo "/* $configure_input */" \
32730 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32731 || as_fn_error $? "could not create -" "$LINENO" 5
32735 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32736 $as_echo "$as_me: executing $ac_file commands" >&6;}
32741 case $ac_file$ac_mode in
32744 # See if we are running on zsh, and set the options which allow our
32745 # commands through without removal of \ escapes.
32746 if test -n "${ZSH_VERSION+set}" ; then
32747 setopt NO_GLOB_SUBST
32750 cfgfile="${ofile}T"
32751 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32754 cat <<_LT_EOF >> "$cfgfile"
32757 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32758 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32760 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32762 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32763 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32765 # Written by Gordon Matzigkeit, 1996
32767 # This file is part of GNU Libtool.
32769 # GNU Libtool is free software; you can redistribute it and/or
32770 # modify it under the terms of the GNU General Public License as
32771 # published by the Free Software Foundation; either version 2 of
32772 # the License, or (at your option) any later version.
32774 # As a special exception to the GNU General Public License,
32775 # if you distribute this file as part of a program or library that
32776 # is built using GNU Libtool, you may include this file under the
32777 # same distribution terms that you use for the rest of that program.
32779 # GNU Libtool is distributed in the hope that it will be useful,
32780 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32781 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32782 # GNU General Public License for more details.
32784 # You should have received a copy of the GNU General Public License
32785 # along with GNU Libtool; see the file COPYING. If not, a copy
32786 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32787 # obtained by writing to the Free Software Foundation, Inc.,
32788 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32791 # The names of the tagged configurations supported by this script.
32792 available_tags="CXX "
32794 # ### BEGIN LIBTOOL CONFIG
32796 # Which release of libtool.m4 was used?
32797 macro_version=$macro_version
32798 macro_revision=$macro_revision
32800 # Whether or not to build shared libraries.
32801 build_libtool_libs=$enable_shared
32803 # Whether or not to build static libraries.
32804 build_old_libs=$enable_static
32806 # What type of objects to build.
32809 # Whether or not to optimize for fast installation.
32810 fast_install=$enable_fast_install
32812 # Shell to use when invoking shell scripts.
32815 # An echo program that protects backslashes.
32819 host_alias=$host_alias
32823 # The build system.
32824 build_alias=$build_alias
32828 # A sed program that does not truncate output.
32831 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32832 Xsed="\$SED -e 1s/^X//"
32834 # A grep program that handles long lines.
32840 # A literal string matcher.
32843 # A BSD- or MS-compatible name lister.
32846 # Whether we need soft or hard links.
32849 # What is the maximum length of a command?
32850 max_cmd_len=$max_cmd_len
32852 # Object file suffix (normally "o").
32855 # Executable file suffix (normally "").
32858 # whether the shell understands "unset".
32861 # turn spaces into newlines.
32864 # turn newlines into spaces.
32867 # convert \$build file names to \$host format.
32868 to_host_file_cmd=$lt_cv_to_host_file_cmd
32870 # convert \$build files to toolchain format.
32871 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32873 # An object symbol dumper.
32874 OBJDUMP=$lt_OBJDUMP
32876 # Method to check whether dependent libraries are shared objects.
32877 deplibs_check_method=$lt_deplibs_check_method
32879 # Command to use when deplibs_check_method = "file_magic".
32880 file_magic_cmd=$lt_file_magic_cmd
32882 # How to find potential files when deplibs_check_method = "file_magic".
32883 file_magic_glob=$lt_file_magic_glob
32885 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32886 want_nocaseglob=$lt_want_nocaseglob
32888 # DLL creation program.
32889 DLLTOOL=$lt_DLLTOOL
32891 # Command to associate shared and link libraries.
32892 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32897 # Flags to create an archive.
32898 AR_FLAGS=$lt_AR_FLAGS
32900 # How to feed a file listing to the archiver.
32901 archiver_list_spec=$lt_archiver_list_spec
32903 # A symbol stripping program.
32906 # Commands used to install an old-style archive.
32908 old_postinstall_cmds=$lt_old_postinstall_cmds
32909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32911 # Whether to use a lock for old archive extraction.
32912 lock_old_archive_extraction=$lock_old_archive_extraction
32917 # LTCC compiler flags.
32918 LTCFLAGS=$lt_CFLAGS
32920 # Take the output of nm and produce a listing of raw symbols and C names.
32921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32923 # Transform the output of nm in a proper C declaration.
32924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32926 # Transform the output of nm in a C name address pair.
32927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32929 # Transform the output of nm in a C name address pair when lib prefix is needed.
32930 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32932 # Specify filename containing input files for \$NM.
32933 nm_file_list_spec=$lt_nm_file_list_spec
32935 # The root where to search for dependent libraries,and in which our libraries should be installed.
32936 lt_sysroot=$lt_sysroot
32938 # The name of the directory that contains temporary libtool files.
32941 # Used to examine libraries when file_magic_cmd begins with "file".
32942 MAGIC_CMD=$MAGIC_CMD
32944 # Must we lock files when doing compilation?
32945 need_locks=$lt_need_locks
32948 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32950 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32951 DSYMUTIL=$lt_DSYMUTIL
32953 # Tool to change global to local symbols on Mac OS X.
32956 # Tool to manipulate fat objects and archives on Mac OS X.
32959 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32962 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32963 OTOOL64=$lt_OTOOL64
32965 # Old archive suffix (normally "a").
32968 # Shared library suffix (normally ".so").
32969 shrext_cmds=$lt_shrext_cmds
32971 # The commands to extract the exported symbol list from a shared archive.
32972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32974 # Variables whose values should be saved in libtool wrapper scripts and
32975 # restored at link time.
32976 variables_saved_for_relink=$lt_variables_saved_for_relink
32978 # Do we need the "lib" prefix for modules?
32979 need_lib_prefix=$need_lib_prefix
32981 # Do we need a version for libraries?
32982 need_version=$need_version
32984 # Library versioning type.
32985 version_type=$version_type
32987 # Shared library runtime path variable.
32988 runpath_var=$runpath_var
32990 # Shared library path variable.
32991 shlibpath_var=$shlibpath_var
32993 # Is shlibpath searched before the hard-coded library search path?
32994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32996 # Format of library name prefix.
32997 libname_spec=$lt_libname_spec
32999 # List of archive names. First name is the real one, the rest are links.
33000 # The last name is the one that the linker finds with -lNAME
33001 library_names_spec=$lt_library_names_spec
33003 # The coded name of the library, if different from the real name.
33004 soname_spec=$lt_soname_spec
33006 # Permission mode override for installation of shared libraries.
33007 install_override_mode=$lt_install_override_mode
33009 # Command to use after installation of a shared archive.
33010 postinstall_cmds=$lt_postinstall_cmds
33012 # Command to use after uninstallation of a shared archive.
33013 postuninstall_cmds=$lt_postuninstall_cmds
33015 # Commands used to finish a libtool library installation in a directory.
33016 finish_cmds=$lt_finish_cmds
33018 # As "finish_cmds", except a single script fragment to be evaled but
33020 finish_eval=$lt_finish_eval
33022 # Whether we should hardcode library paths into libraries.
33023 hardcode_into_libs=$hardcode_into_libs
33025 # Compile-time system search path for libraries.
33026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33028 # Run-time system search path for libraries.
33029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33031 # Whether dlopen is supported.
33032 dlopen_support=$enable_dlopen
33034 # Whether dlopen of programs is supported.
33035 dlopen_self=$enable_dlopen_self
33037 # Whether dlopen of statically linked programs is supported.
33038 dlopen_self_static=$enable_dlopen_self_static
33040 # Commands to strip libraries.
33041 old_striplib=$lt_old_striplib
33042 striplib=$lt_striplib
33045 # The linker used to build libraries.
33048 # How to create reloadable object files.
33049 reload_flag=$lt_reload_flag
33050 reload_cmds=$lt_reload_cmds
33052 # Commands used to build an old-style archive.
33053 old_archive_cmds=$lt_old_archive_cmds
33055 # A language specific compiler.
33058 # Is the compiler the GNU compiler?
33061 # Compiler flag to turn off builtin functions.
33062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33064 # Additional compiler flags for building library objects.
33065 pic_flag=$lt_lt_prog_compiler_pic
33067 # How to pass a linker flag through the compiler.
33068 wl=$lt_lt_prog_compiler_wl
33070 # Compiler flag to prevent dynamic linking.
33071 link_static_flag=$lt_lt_prog_compiler_static
33073 # Does compiler simultaneously support -c and -o options?
33074 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33076 # Whether or not to add -lc for building shared libraries.
33077 build_libtool_need_lc=$archive_cmds_need_lc
33079 # Whether or not to disallow shared libs when runtime libs are static.
33080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33082 # Compiler flag to allow reflexive dlopens.
33083 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33085 # Compiler flag to generate shared objects directly from archives.
33086 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33088 # Whether the compiler copes with passing no objects directly.
33089 compiler_needs_object=$lt_compiler_needs_object
33091 # Create an old-style archive from a shared archive.
33092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33094 # Create a temporary old-style archive to link instead of a shared archive.
33095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33097 # Commands used to build a shared archive.
33098 archive_cmds=$lt_archive_cmds
33099 archive_expsym_cmds=$lt_archive_expsym_cmds
33101 # Commands used to build a loadable module if different from building
33102 # a shared archive.
33103 module_cmds=$lt_module_cmds
33104 module_expsym_cmds=$lt_module_expsym_cmds
33106 # Whether we are building with GNU ld or not.
33107 with_gnu_ld=$lt_with_gnu_ld
33109 # Flag that allows shared libraries with undefined symbols to be built.
33110 allow_undefined_flag=$lt_allow_undefined_flag
33112 # Flag that enforces no undefined symbols.
33113 no_undefined_flag=$lt_no_undefined_flag
33115 # Flag to hardcode \$libdir into a binary during linking.
33116 # This must work even if \$libdir does not exist
33117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33119 # If ld is used when linking, flag to hardcode \$libdir into a binary
33120 # during linking. This must work even if \$libdir does not exist.
33121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33123 # Whether we need a single "-rpath" flag with a separated argument.
33124 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33126 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33127 # DIR into the resulting binary.
33128 hardcode_direct=$hardcode_direct
33130 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33131 # DIR into the resulting binary and the resulting library dependency is
33132 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33133 # library is relocated.
33134 hardcode_direct_absolute=$hardcode_direct_absolute
33136 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33137 # into the resulting binary.
33138 hardcode_minus_L=$hardcode_minus_L
33140 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33141 # into the resulting binary.
33142 hardcode_shlibpath_var=$hardcode_shlibpath_var
33144 # Set to "yes" if building a shared library automatically hardcodes DIR
33145 # into the library and all subsequent libraries and executables linked
33147 hardcode_automatic=$hardcode_automatic
33149 # Set to yes if linker adds runtime paths of dependent libraries
33150 # to runtime path list.
33151 inherit_rpath=$inherit_rpath
33153 # Whether libtool must link a program against all its dependency libraries.
33154 link_all_deplibs=$link_all_deplibs
33156 # Set to "yes" if exported symbols are required.
33157 always_export_symbols=$always_export_symbols
33159 # The commands to list exported symbols.
33160 export_symbols_cmds=$lt_export_symbols_cmds
33162 # Symbols that should not be listed in the preloaded symbols.
33163 exclude_expsyms=$lt_exclude_expsyms
33165 # Symbols that must always be exported.
33166 include_expsyms=$lt_include_expsyms
33168 # Commands necessary for linking programs (against libraries) with templates.
33169 prelink_cmds=$lt_prelink_cmds
33171 # Commands necessary for finishing linking programs.
33172 postlink_cmds=$lt_postlink_cmds
33174 # Specify filename containing input files.
33175 file_list_spec=$lt_file_list_spec
33177 # How to hardcode a shared library path into an executable.
33178 hardcode_action=$hardcode_action
33180 # The directories searched by this compiler when creating a shared library.
33181 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33183 # Dependencies to place before and after the objects being linked to
33184 # create a shared library.
33185 predep_objects=$lt_predep_objects
33186 postdep_objects=$lt_postdep_objects
33187 predeps=$lt_predeps
33188 postdeps=$lt_postdeps
33190 # The library search path used internally by the compiler when linking
33191 # a shared library.
33192 compiler_lib_search_path=$lt_compiler_lib_search_path
33194 # ### END LIBTOOL CONFIG
33200 cat <<\_LT_EOF >> "$cfgfile"
33201 # AIX sometimes has problems with the GCC collect2 program. For some
33202 # reason, if we set the COLLECT_NAMES environment variable, the problems
33203 # vanish in a puff of smoke.
33204 if test "X${COLLECT_NAMES+set}" != Xset; then
33206 export COLLECT_NAMES
33213 ltmain="$ac_aux_dir/ltmain.sh"
33216 # We use sed instead of cat because bash on DJGPP gets confused if
33217 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33218 # text mode, it properly converts lines to CR/LF. This bash problem
33219 # is reportedly fixed, but why not run on old versions too?
33220 sed '$q' "$ltmain" >> "$cfgfile" \
33221 || (rm -f "$cfgfile"; exit 1)
33223 if test x"$xsi_shell" = xyes; then
33224 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33228 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33229 \ * ) func_dirname_result="${3}" ;;\
33231 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33232 && mv -f "$cfgfile.tmp" "$cfgfile" \
33233 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33234 test 0 -eq $? || _lt_function_replace_fail=:
33237 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33240 \ func_basename_result="${1##*/}"\
33241 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33242 && mv -f "$cfgfile.tmp" "$cfgfile" \
33243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33244 test 0 -eq $? || _lt_function_replace_fail=:
33247 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33248 func_dirname_and_basename ()\
33251 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33252 \ * ) func_dirname_result="${3}" ;;\
33254 \ func_basename_result="${1##*/}"\
33255 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33256 && mv -f "$cfgfile.tmp" "$cfgfile" \
33257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33258 test 0 -eq $? || _lt_function_replace_fail=:
33261 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33264 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33265 \ # positional parameters, so assign one to ordinary parameter first.\
33266 \ func_stripname_result=${3}\
33267 \ func_stripname_result=${func_stripname_result#"${1}"}\
33268 \ func_stripname_result=${func_stripname_result%"${2}"}\
33269 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33270 && mv -f "$cfgfile.tmp" "$cfgfile" \
33271 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33272 test 0 -eq $? || _lt_function_replace_fail=:
33275 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33276 func_split_long_opt ()\
33278 \ func_split_long_opt_name=${1%%=*}\
33279 \ func_split_long_opt_arg=${1#*=}\
33280 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33281 && mv -f "$cfgfile.tmp" "$cfgfile" \
33282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33283 test 0 -eq $? || _lt_function_replace_fail=:
33286 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33287 func_split_short_opt ()\
33289 \ func_split_short_opt_arg=${1#??}\
33290 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33291 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33292 && mv -f "$cfgfile.tmp" "$cfgfile" \
33293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33294 test 0 -eq $? || _lt_function_replace_fail=:
33297 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33301 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33302 \ *) func_lo2o_result=${1} ;;\
33304 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33305 && mv -f "$cfgfile.tmp" "$cfgfile" \
33306 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33307 test 0 -eq $? || _lt_function_replace_fail=:
33310 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33313 func_xform_result=${1%.*}.lo\
33314 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33315 && mv -f "$cfgfile.tmp" "$cfgfile" \
33316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33317 test 0 -eq $? || _lt_function_replace_fail=:
33320 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33323 func_arith_result=$(( $* ))\
33324 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33325 && mv -f "$cfgfile.tmp" "$cfgfile" \
33326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33327 test 0 -eq $? || _lt_function_replace_fail=:
33330 sed -e '/^func_len ()$/,/^} # func_len /c\
33333 func_len_result=${#1}\
33334 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33335 && mv -f "$cfgfile.tmp" "$cfgfile" \
33336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33337 test 0 -eq $? || _lt_function_replace_fail=:
33341 if test x"$lt_shell_append" = xyes; then
33342 sed -e '/^func_append ()$/,/^} # func_append /c\
33345 eval "${1}+=\\${2}"\
33346 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33347 && mv -f "$cfgfile.tmp" "$cfgfile" \
33348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33349 test 0 -eq $? || _lt_function_replace_fail=:
33352 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33353 func_append_quoted ()\
33355 \ func_quote_for_eval "${2}"\
33356 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33357 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33358 && mv -f "$cfgfile.tmp" "$cfgfile" \
33359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33360 test 0 -eq $? || _lt_function_replace_fail=:
33363 # Save a `func_append' function call where possible by direct use of '+='
33364 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $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=:
33369 # Save a `func_append' function call even when '+=' is not available
33370 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33371 && mv -f "$cfgfile.tmp" "$cfgfile" \
33372 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33373 test 0 -eq $? || _lt_function_replace_fail=:
33376 if test x"$_lt_function_replace_fail" = x":"; then
33377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33378 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33382 mv -f "$cfgfile" "$ofile" ||
33383 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33387 cat <<_LT_EOF >> "$ofile"
33389 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33391 # The linker used to build libraries.
33394 # How to create reloadable object files.
33395 reload_flag=$lt_reload_flag_CXX
33396 reload_cmds=$lt_reload_cmds_CXX
33398 # Commands used to build an old-style archive.
33399 old_archive_cmds=$lt_old_archive_cmds_CXX
33401 # A language specific compiler.
33402 CC=$lt_compiler_CXX
33404 # Is the compiler the GNU compiler?
33407 # Compiler flag to turn off builtin functions.
33408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33410 # Additional compiler flags for building library objects.
33411 pic_flag=$lt_lt_prog_compiler_pic_CXX
33413 # How to pass a linker flag through the compiler.
33414 wl=$lt_lt_prog_compiler_wl_CXX
33416 # Compiler flag to prevent dynamic linking.
33417 link_static_flag=$lt_lt_prog_compiler_static_CXX
33419 # Does compiler simultaneously support -c and -o options?
33420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33422 # Whether or not to add -lc for building shared libraries.
33423 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33425 # Whether or not to disallow shared libs when runtime libs are static.
33426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33428 # Compiler flag to allow reflexive dlopens.
33429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33431 # Compiler flag to generate shared objects directly from archives.
33432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33434 # Whether the compiler copes with passing no objects directly.
33435 compiler_needs_object=$lt_compiler_needs_object_CXX
33437 # Create an old-style archive from a shared archive.
33438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33440 # Create a temporary old-style archive to link instead of a shared archive.
33441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33443 # Commands used to build a shared archive.
33444 archive_cmds=$lt_archive_cmds_CXX
33445 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33447 # Commands used to build a loadable module if different from building
33448 # a shared archive.
33449 module_cmds=$lt_module_cmds_CXX
33450 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33452 # Whether we are building with GNU ld or not.
33453 with_gnu_ld=$lt_with_gnu_ld_CXX
33455 # Flag that allows shared libraries with undefined symbols to be built.
33456 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33458 # Flag that enforces no undefined symbols.
33459 no_undefined_flag=$lt_no_undefined_flag_CXX
33461 # Flag to hardcode \$libdir into a binary during linking.
33462 # This must work even if \$libdir does not exist
33463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33465 # If ld is used when linking, flag to hardcode \$libdir into a binary
33466 # during linking. This must work even if \$libdir does not exist.
33467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33469 # Whether we need a single "-rpath" flag with a separated argument.
33470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33472 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33473 # DIR into the resulting binary.
33474 hardcode_direct=$hardcode_direct_CXX
33476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33477 # DIR into the resulting binary and the resulting library dependency is
33478 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33479 # library is relocated.
33480 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33482 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33483 # into the resulting binary.
33484 hardcode_minus_L=$hardcode_minus_L_CXX
33486 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33487 # into the resulting binary.
33488 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33490 # Set to "yes" if building a shared library automatically hardcodes DIR
33491 # into the library and all subsequent libraries and executables linked
33493 hardcode_automatic=$hardcode_automatic_CXX
33495 # Set to yes if linker adds runtime paths of dependent libraries
33496 # to runtime path list.
33497 inherit_rpath=$inherit_rpath_CXX
33499 # Whether libtool must link a program against all its dependency libraries.
33500 link_all_deplibs=$link_all_deplibs_CXX
33502 # Set to "yes" if exported symbols are required.
33503 always_export_symbols=$always_export_symbols_CXX
33505 # The commands to list exported symbols.
33506 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33508 # Symbols that should not be listed in the preloaded symbols.
33509 exclude_expsyms=$lt_exclude_expsyms_CXX
33511 # Symbols that must always be exported.
33512 include_expsyms=$lt_include_expsyms_CXX
33514 # Commands necessary for linking programs (against libraries) with templates.
33515 prelink_cmds=$lt_prelink_cmds_CXX
33517 # Commands necessary for finishing linking programs.
33518 postlink_cmds=$lt_postlink_cmds_CXX
33520 # Specify filename containing input files.
33521 file_list_spec=$lt_file_list_spec_CXX
33523 # How to hardcode a shared library path into an executable.
33524 hardcode_action=$hardcode_action_CXX
33526 # The directories searched by this compiler when creating a shared library.
33527 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33529 # Dependencies to place before and after the objects being linked to
33530 # create a shared library.
33531 predep_objects=$lt_predep_objects_CXX
33532 postdep_objects=$lt_postdep_objects_CXX
33533 predeps=$lt_predeps_CXX
33534 postdeps=$lt_postdeps_CXX
33536 # The library search path used internally by the compiler when linking
33537 # a shared library.
33538 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33540 # ### END LIBTOOL TAG CONFIG: CXX
33545 for ac_file in $CONFIG_FILES; do
33546 # Support "outfile[:infile[:infile...]]"
33548 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33550 # PO directories have a Makefile.in generated from Makefile.in.in.
33551 case "$ac_file" in */Makefile.in)
33552 # Adjust a relative srcdir.
33553 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33554 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33555 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33556 # In autoconf-2.13 it is called $ac_given_srcdir.
33557 # In autoconf-2.50 it is called $srcdir.
33558 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33559 case "$ac_given_srcdir" in
33560 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33561 /*) top_srcdir="$ac_given_srcdir" ;;
33562 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33564 # Treat a directory as a PO directory if and only if it has a
33565 # POTFILES.in file. This allows packages to have multiple PO
33566 # directories under different names or in different locations.
33567 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33568 rm -f "$ac_dir/POTFILES"
33569 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33570 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33571 POMAKEFILEDEPS="POTFILES.in"
33572 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33573 # on $ac_dir but don't depend on user-specified configuration
33575 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33576 # The LINGUAS file contains the set of available languages.
33577 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33578 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33580 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33581 # Hide the ALL_LINGUAS assigment from automake.
33582 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33583 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33585 # The set of available languages was given in configure.in.
33586 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33589 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33590 # Compute UPDATEPOFILES
33591 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33592 # Compute DUMMYPOFILES
33593 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33595 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33596 case "$ac_given_srcdir" in
33598 *) srcdirpre='$(srcdir)/' ;;
33604 for lang in $ALL_LINGUAS; do
33605 POFILES="$POFILES $srcdirpre$lang.po"
33606 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33607 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33608 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33610 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33611 # environment variable.
33613 if test -n "$ALL_LINGUAS"; then
33614 for presentlang in $ALL_LINGUAS; do
33616 if test "%UNSET%" != "$LINGUAS"; then
33617 desiredlanguages="$LINGUAS"
33619 desiredlanguages="$ALL_LINGUAS"
33621 for desiredlang in $desiredlanguages; do
33622 # Use the presentlang catalog if desiredlang is
33623 # a. equal to presentlang, or
33624 # b. a variant of presentlang (because in this case,
33625 # presentlang can be used as a fallback for messages
33626 # which are not translated in the desiredlang catalog).
33627 case "$desiredlang" in
33628 "$presentlang"*) useit=yes;;
33631 if test $useit = yes; then
33632 INST_LINGUAS="$INST_LINGUAS $presentlang"
33637 if test -n "$INST_LINGUAS"; then
33638 for lang in $INST_LINGUAS; do
33639 CATALOGS="$CATALOGS $lang.gmo"
33642 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33643 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"
33644 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33645 if test -f "$f"; then
33647 *.orig | *.bak | *~) ;;
33648 *) cat "$f" >> "$ac_dir/Makefile" ;;
33665 ac_clean_files=$ac_clean_files_save
33667 test $ac_write_fail = 0 ||
33668 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33671 # configure is writing to config.log, and then calls config.status.
33672 # config.status does its own redirection, appending to config.log.
33673 # Unfortunately, on DOS this fails, as config.log is still kept open
33674 # by configure, so config.status won't be able to write to it; its
33675 # output is simply discarded. So we exec the FD to /dev/null,
33676 # effectively closing config.log, so it can be properly (re)opened and
33677 # appended to by config.status. When coming back to configure, we
33678 # need to make the FD available again.
33679 if test "$no_create" != yes; then
33681 ac_config_status_args=
33682 test "$silent" = yes &&
33683 ac_config_status_args="$ac_config_status_args --quiet"
33685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33688 # would make configure fail if this is the last instruction.
33689 $ac_cs_success || as_fn_exit 1
33691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33697 if test "${support_bat}" = "yes" ; then
33698 if test "x$QMAKE" = "xnone"; then
33699 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33703 echo "Creating bat Makefile"
33708 ${MAKE:-make} clean
33712 if test X"$GCC" = "Xyes" ; then
33713 echo "Doing make of dependencies"
33714 ${MAKE:-make} depend
33718 chmod 755 install_conf_file build-depkgs-qt-console
33722 chmod 755 bacula btraceback mtx-changer
33723 chmod 755 dvd-handler dvd-simulator
33724 chmod 755 bconsole mtx-changer devel_bacula logrotate
33728 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33729 chmod 755 $c/update_postgresql_tables_10_to_11
33730 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33731 chmod 755 $c/update_postgresql_tables_11_to_12
33736 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33737 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33739 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33740 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33742 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33743 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33745 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33746 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33748 #chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
33749 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
33752 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33753 chmod 755 $c/sqlite
33756 chmod 755 $c/install-default-backend
33758 chmod 755 src/win32/build-depkgs-mingw32
33760 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33761 largefile_support="yes"
33764 if test X"$GCC" = "Xyes" ; then
33765 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33766 if test "x${CCVERSION}" = "x" ; then
33767 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33769 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33770 if test x"${CXXVERSION}" = x ; then
33771 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33775 # clean up any old junk
33779 ${MAKE:-make} clean
33782 Configuration on `date`:
33784 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33785 Bacula version: ${BACULA} ${VERSION} (${DATE})
33786 Source code location: ${srcdir}
33787 Install binaries: ${sbindir}
33788 Install libraries: ${libdir}
33789 Install config files: ${sysconfdir}
33790 Scripts directory: ${scriptdir}
33791 Archive directory: ${archivedir}
33792 Working directory: ${working_dir}
33793 PID directory: ${piddir}
33794 Subsys directory: ${subsysdir}
33795 Man directory: ${mandir}
33796 Data directory: ${datarootdir}
33797 Plugin directory: ${plugindir}
33798 C Compiler: ${CC} ${CCVERSION}
33799 C++ Compiler: ${CXX} ${CXXVERSION}
33800 Compiler flags: ${WCFLAGS} ${CFLAGS}
33801 Linker flags: ${WLDFLAGS} ${LDFLAGS}
33803 Statically Linked Tools: ${support_static_tools}
33804 Statically Linked FD: ${support_static_fd}
33805 Statically Linked SD: ${support_static_sd}
33806 Statically Linked DIR: ${support_static_dir}
33807 Statically Linked CONS: ${support_static_cons}
33808 Database backends: ${db_backends}
33809 Database port: ${db_port}
33810 Database name: ${db_name}
33811 Database user: ${db_user}
33813 Job Output Email: ${job_email}
33814 Traceback Email: ${dump_email}
33815 SMTP Host Address: ${smtp_host}
33817 Director Port: ${dir_port}
33818 File daemon Port: ${fd_port}
33819 Storage daemon Port: ${sd_port}
33821 Director User: ${dir_user}
33822 Director Group: ${dir_group}
33823 Storage Daemon User: ${sd_user}
33824 Storage DaemonGroup: ${sd_group}
33825 File Daemon User: ${fd_user}
33826 File Daemon Group: ${fd_group}
33828 Large file support: $largefile_support
33829 Bacula conio support: ${got_conio} ${CONS_LIBS}
33830 readline support: ${got_readline} ${PRTREADLINE_SRC}
33831 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
33832 TLS support: ${support_tls}
33833 Encryption support: ${support_crypto}
33834 ZLIB support: ${have_zlib}
33835 LZO support: ${have_lzo}
33836 enable-smartalloc: ${support_smartalloc}
33837 enable-lockmgr: ${support_lockmgr}
33838 bat support: ${support_bat}
33839 enable-gnome: ${support_gnome} ${gnome_version}
33840 enable-bwx-console: ${support_wx_console} ${wx_version}
33841 enable-tray-monitor: ${support_tray_monitor}
33842 client-only: ${build_client_only}
33843 build-dird: ${build_dird}
33844 build-stored: ${build_stored}
33845 Plugin support: ${have_plugins}
33846 AFS support: ${have_afs}
33847 ACL support: ${have_acl}
33848 XATTR support: ${have_xattr}
33849 Python support: ${support_python} ${PYTHON_LIBS}
33850 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
33851 Batch insert enabled: ${batch_insert_db_backends}
33855 # create a small shell script useful for support with
33856 # configure options and config.out info
33857 cat > scripts/bacula_config << EOF
33860 $ $0 $ac_configure_args
33862 cat config.out >> scripts/bacula_config
33863 echo __EOC__ >> scripts/bacula_config
33864 chmod 755 scripts/bacula_config