2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.6.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='9.0.6'
591 PACKAGE_STRING='bacula 9.0.6'
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars='LTLIBOBJS
665 SHARED_CATALOG_TARGETS
736 INTL_LIBTOOL_SUFFIX_PREFIX
743 BUILD_INCLUDED_LIBINTL
766 HAVE_KFREEBSD_OS_FALSE
767 HAVE_KFREEBSD_OS_TRUE
776 HAVE_OPENBSD_OS_FALSE
780 HAVE_FREEBSD_OS_FALSE
794 INCLUDE_UNINSTALL_TARGET
795 INCLUDE_INSTALL_TARGET
799 LIBTOOL_UNINSTALL_TARGET
800 LIBTOOL_INSTALL_TARGET
801 DEFAULT_SHARED_OBJECT_TYPE
880 LIBBACFIND_LT_RELEASE
881 LIBBACCATS_LT_RELEASE
930 program_transform_name
941 ac_subst_files='MCOMMON'
943 enable_option_checking
957 with_included_gettext
992 with_mon_dir_password
1023 ac_precious_vars='build_alias
1039 # Initialize some variables set by options.
1041 ac_init_version=false
1042 ac_unrecognized_opts=
1043 ac_unrecognized_sep=
1044 # The variables have the same names as the options, with
1045 # dashes changed to underlines.
1046 cache_file=/dev/null
1053 program_transform_name=s,x,x,
1061 # Installation directory options.
1062 # These are left unexpanded so users can "make install exec_prefix=/foo"
1063 # and all the variables that are supposed to be based on exec_prefix
1064 # by default will actually change.
1065 # Use braces instead of parens because sh, perl, etc. also accept them.
1066 # (The list follows the same order as the GNU Coding Standards.)
1067 bindir='${exec_prefix}/bin'
1068 sbindir='${exec_prefix}/sbin'
1069 libexecdir='${exec_prefix}/libexec'
1070 datarootdir='${prefix}/share'
1071 datadir='${datarootdir}'
1072 sysconfdir='${prefix}/etc'
1073 sharedstatedir='${prefix}/com'
1074 localstatedir='${prefix}/var'
1075 runstatedir='${localstatedir}/run'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1079 infodir='${datarootdir}/info'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1092 # If the previous option needs an argument, assign it.
1093 if test -n "$ac_prev"; then
1094 eval $ac_prev=\$ac_option
1100 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1105 # Accept the important Cygnus configure options, so we can diagnose typos.
1107 case $ac_dashdash$ac_option in
1111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114 bindir=$ac_optarg ;;
1116 -build | --build | --buil | --bui | --bu)
1117 ac_prev=build_alias ;;
1118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119 build_alias=$ac_optarg ;;
1121 -cache-file | --cache-file | --cache-fil | --cache-fi \
1122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123 ac_prev=cache_file ;;
1124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126 cache_file=$ac_optarg ;;
1128 --config-cache | -C)
1129 cache_file=config.cache ;;
1131 -datadir | --datadir | --datadi | --datad)
1133 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134 datadir=$ac_optarg ;;
1136 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137 | --dataroo | --dataro | --datar)
1138 ac_prev=datarootdir ;;
1139 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141 datarootdir=$ac_optarg ;;
1143 -disable-* | --disable-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid feature name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "enable_$ac_useropt"
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval enable_$ac_useropt=no ;;
1159 -docdir | --docdir | --docdi | --doc | --do)
1161 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162 docdir=$ac_optarg ;;
1164 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1166 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167 dvidir=$ac_optarg ;;
1169 -enable-* | --enable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_$ac_useropt"
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval enable_$ac_useropt=\$ac_optarg ;;
1185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187 | --exec | --exe | --ex)
1188 ac_prev=exec_prefix ;;
1189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191 | --exec=* | --exe=* | --ex=*)
1192 exec_prefix=$ac_optarg ;;
1194 -gas | --gas | --ga | --g)
1195 # Obsolete; use --with-gas.
1198 -help | --help | --hel | --he | -h)
1199 ac_init_help=long ;;
1200 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201 ac_init_help=recursive ;;
1202 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203 ac_init_help=short ;;
1205 -host | --host | --hos | --ho)
1206 ac_prev=host_alias ;;
1207 -host=* | --host=* | --hos=* | --ho=*)
1208 host_alias=$ac_optarg ;;
1210 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1212 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1214 htmldir=$ac_optarg ;;
1216 -includedir | --includedir | --includedi | --included | --include \
1217 | --includ | --inclu | --incl | --inc)
1218 ac_prev=includedir ;;
1219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220 | --includ=* | --inclu=* | --incl=* | --inc=*)
1221 includedir=$ac_optarg ;;
1223 -infodir | --infodir | --infodi | --infod | --info | --inf)
1225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226 infodir=$ac_optarg ;;
1228 -libdir | --libdir | --libdi | --libd)
1230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231 libdir=$ac_optarg ;;
1233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234 | --libexe | --libex | --libe)
1235 ac_prev=libexecdir ;;
1236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237 | --libexe=* | --libex=* | --libe=*)
1238 libexecdir=$ac_optarg ;;
1240 -localedir | --localedir | --localedi | --localed | --locale)
1241 ac_prev=localedir ;;
1242 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243 localedir=$ac_optarg ;;
1245 -localstatedir | --localstatedir | --localstatedi | --localstated \
1246 | --localstate | --localstat | --localsta | --localst | --locals)
1247 ac_prev=localstatedir ;;
1248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250 localstatedir=$ac_optarg ;;
1252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255 mandir=$ac_optarg ;;
1257 -nfp | --nfp | --nf)
1258 # Obsolete; use --without-fp.
1261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262 | --no-cr | --no-c | -n)
1265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271 | --oldin | --oldi | --old | --ol | --o)
1272 ac_prev=oldincludedir ;;
1273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276 oldincludedir=$ac_optarg ;;
1278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281 prefix=$ac_optarg ;;
1283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284 | --program-pre | --program-pr | --program-p)
1285 ac_prev=program_prefix ;;
1286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288 program_prefix=$ac_optarg ;;
1290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291 | --program-suf | --program-su | --program-s)
1292 ac_prev=program_suffix ;;
1293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295 program_suffix=$ac_optarg ;;
1297 -program-transform-name | --program-transform-name \
1298 | --program-transform-nam | --program-transform-na \
1299 | --program-transform-n | --program-transform- \
1300 | --program-transform | --program-transfor \
1301 | --program-transfo | --program-transf \
1302 | --program-trans | --program-tran \
1303 | --progr-tra | --program-tr | --program-t)
1304 ac_prev=program_transform_name ;;
1305 -program-transform-name=* | --program-transform-name=* \
1306 | --program-transform-nam=* | --program-transform-na=* \
1307 | --program-transform-n=* | --program-transform-=* \
1308 | --program-transform=* | --program-transfor=* \
1309 | --program-transfo=* | --program-transf=* \
1310 | --program-trans=* | --program-tran=* \
1311 | --progr-tra=* | --program-tr=* | --program-t=*)
1312 program_transform_name=$ac_optarg ;;
1314 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1316 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317 pdfdir=$ac_optarg ;;
1319 -psdir | --psdir | --psdi | --psd | --ps)
1321 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325 | -silent | --silent | --silen | --sile | --sil)
1328 -runstatedir | --runstatedir | --runstatedi | --runstated \
1329 | --runstate | --runstat | --runsta | --runst | --runs \
1330 | --run | --ru | --r)
1331 ac_prev=runstatedir ;;
1332 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1333 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1334 | --run=* | --ru=* | --r=*)
1335 runstatedir=$ac_optarg ;;
1337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1341 sbindir=$ac_optarg ;;
1343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1345 | --sharedst | --shareds | --shared | --share | --shar \
1347 ac_prev=sharedstatedir ;;
1348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1352 sharedstatedir=$ac_optarg ;;
1354 -site | --site | --sit)
1356 -site=* | --site=* | --sit=*)
1359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1362 srcdir=$ac_optarg ;;
1364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1365 | --syscon | --sysco | --sysc | --sys | --sy)
1366 ac_prev=sysconfdir ;;
1367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1369 sysconfdir=$ac_optarg ;;
1371 -target | --target | --targe | --targ | --tar | --ta | --t)
1372 ac_prev=target_alias ;;
1373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1374 target_alias=$ac_optarg ;;
1376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379 -version | --version | --versio | --versi | --vers | -V)
1380 ac_init_version=: ;;
1383 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1384 # Reject names that are not valid shell variable names.
1385 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1386 as_fn_error $? "invalid package name: $ac_useropt"
1387 ac_useropt_orig=$ac_useropt
1388 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1389 case $ac_user_opts in
1393 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1394 ac_unrecognized_sep=', ';;
1396 eval with_$ac_useropt=\$ac_optarg ;;
1398 -without-* | --without-*)
1399 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1402 as_fn_error $? "invalid package name: $ac_useropt"
1403 ac_useropt_orig=$ac_useropt
1404 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1405 case $ac_user_opts in
1409 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1410 ac_unrecognized_sep=', ';;
1412 eval with_$ac_useropt=no ;;
1415 # Obsolete; use --with-x.
1418 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419 | --x-incl | --x-inc | --x-in | --x-i)
1420 ac_prev=x_includes ;;
1421 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423 x_includes=$ac_optarg ;;
1425 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427 ac_prev=x_libraries ;;
1428 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430 x_libraries=$ac_optarg ;;
1432 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1433 Try \`$0 --help' for more information"
1437 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438 # Reject names that are not valid shell variable names.
1439 case $ac_envvar in #(
1440 '' | [0-9]* | *[!_$as_cr_alnum]* )
1441 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1443 eval $ac_envvar=\$ac_optarg
1444 export $ac_envvar ;;
1447 # FIXME: should be removed in autoconf 3.0.
1448 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1457 if test -n "$ac_prev"; then
1458 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1459 as_fn_error $? "missing argument to $ac_option"
1462 if test -n "$ac_unrecognized_opts"; then
1463 case $enable_option_checking in
1465 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1466 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1470 # Check all directory arguments for consistency.
1471 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1472 datadir sysconfdir sharedstatedir localstatedir includedir \
1473 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1474 libdir localedir mandir runstatedir
1476 eval ac_val=\$$ac_var
1477 # Remove trailing slashes.
1480 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1481 eval $ac_var=\$ac_val;;
1483 # Be sure to have absolute directory names.
1485 [\\/$]* | ?:[\\/]* ) continue;;
1486 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1488 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1491 # There might be people who depend on the old broken behavior: `$host'
1492 # used to hold the argument of --host etc.
1493 # FIXME: To remove some day.
1496 target=$target_alias
1498 # FIXME: To remove some day.
1499 if test "x$host_alias" != x; then
1500 if test "x$build_alias" = x; then
1501 cross_compiling=maybe
1502 elif test "x$build_alias" != "x$host_alias"; then
1508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1510 test "$silent" = yes && exec 6>/dev/null
1513 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1514 ac_ls_di=`ls -di .` &&
1515 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1516 as_fn_error $? "working directory cannot be determined"
1517 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1518 as_fn_error $? "pwd does not report name of working directory"
1521 # Find the source files, if location was not specified.
1522 if test -z "$srcdir"; then
1523 ac_srcdir_defaulted=yes
1524 # Try the directory containing this script, then the parent directory.
1525 ac_confdir=`$as_dirname -- "$as_myself" ||
1526 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1527 X"$as_myself" : 'X\(//\)[^/]' \| \
1528 X"$as_myself" : 'X\(//\)$' \| \
1529 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1530 $as_echo X"$as_myself" |
1531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1553 ac_srcdir_defaulted=no
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1557 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1559 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1561 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1563 # When building in place, set srcdir=.
1564 if test "$ac_abs_confdir" = "$ac_pwd"; then
1567 # Remove unnecessary trailing slashes from srcdir.
1568 # Double slashes in file names in object file debugging info
1569 # mess up M-x gdb in Emacs.
1571 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1573 for ac_var in $ac_precious_vars; do
1574 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1575 eval ac_env_${ac_var}_value=\$${ac_var}
1576 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1577 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1581 # Report the --help message.
1583 if test "$ac_init_help" = "long"; then
1584 # Omit some internal or obsolete options to make the list less imposing.
1585 # This message is too long to be a string in the A/UX 3.1 sh.
1587 \`configure' configures bacula 9.0.6 to adapt to many kinds of systems.
1589 Usage: $0 [OPTION]... [VAR=VALUE]...
1591 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1592 VAR=VALUE. See below for descriptions of some of the useful variables.
1594 Defaults for the options are specified in brackets.
1597 -h, --help display this help and exit
1598 --help=short display options specific to this package
1599 --help=recursive display the short help of all the included packages
1600 -V, --version display version information and exit
1601 -q, --quiet, --silent do not print \`checking ...' messages
1602 --cache-file=FILE cache test results in FILE [disabled]
1603 -C, --config-cache alias for \`--cache-file=config.cache'
1604 -n, --no-create do not create output files
1605 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1607 Installation directories:
1608 --prefix=PREFIX install architecture-independent files in PREFIX
1609 [$ac_default_prefix]
1610 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1613 By default, \`make install' will install all the files in
1614 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1615 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1616 for instance \`--prefix=\$HOME'.
1618 For better control, use the options below.
1620 Fine tuning of the installation directories:
1621 --bindir=DIR user executables [EPREFIX/bin]
1622 --sbindir=DIR system admin executables [EPREFIX/sbin]
1623 --libexecdir=DIR program executables [EPREFIX/libexec]
1624 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1625 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1626 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1627 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1628 --libdir=DIR object code libraries [EPREFIX/lib]
1629 --includedir=DIR C header files [PREFIX/include]
1630 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1631 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1632 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1633 --infodir=DIR info documentation [DATAROOTDIR/info]
1634 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1635 --mandir=DIR man documentation [DATAROOTDIR/man]
1636 --docdir=DIR documentation root [DATAROOTDIR/doc/bacula]
1637 --htmldir=DIR html documentation [DOCDIR]
1638 --dvidir=DIR dvi documentation [DOCDIR]
1639 --pdfdir=DIR pdf documentation [DOCDIR]
1640 --psdir=DIR ps documentation [DOCDIR]
1646 --x-includes=DIR X include files are in DIR
1647 --x-libraries=DIR X library files are in DIR
1650 --build=BUILD configure for building on BUILD [guessed]
1651 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1655 if test -n "$ac_init_help"; then
1656 case $ac_init_help in
1657 short | recursive ) echo "Configuration of bacula 9.0.6:";;
1662 --disable-option-checking ignore unrecognized --enable/--with options
1663 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1664 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1665 --enable-libtool enable building using GNU libtool [default=yes]
1666 --enable-shared[=PKGS] build shared libraries [default=yes]
1667 --enable-static[=PKGS] build static libraries [default=no]
1668 --enable-fast-install[=PKGS]
1669 optimize for fast installation [default=yes]
1670 --disable-libtool-lock avoid locking (might break parallel builds)
1671 --enable-includes enable installing of include files [default=no]
1672 --disable-nls do not use Native Language Support
1673 --disable-rpath do not hardcode runtime library paths
1674 --enable-bat enable build of bat Qt GUI [default=no]
1675 --enable-smartalloc enable smartalloc debugging support [default=no]
1676 --enable-lockmgr enable lock manager support [default=no]
1677 --enable-static-tools enable static tape tools [default=no]
1678 --enable-static-fd enable static File daemon [default=no]
1679 --enable-static-sd enable static Storage daemon [default=no]
1680 --enable-static-dir enable static Director [default=no]
1681 --enable-static-cons enable static Console [default=no]
1682 --enable-client-only build client (File daemon) only [default=no]
1683 --enable-build-dird enable building of dird (Director) [default=yes]
1684 --enable-build-stored enable building of stored (Storage daemon)
1686 --disable-conio disable conio support [default=no]
1687 --enable-ipv6 enable ipv6 support [default=yes]
1688 --disable-readline disable readline support [default=yes]
1689 --enable-batch-insert enable the DB batch insert code [default=yes]
1690 --disable-largefile omit support for large files
1691 --disable-afs disable afs support [default=auto]
1692 --disable-lzo disable lzo support [default=yes]
1693 --disable-acl disable acl support [default=auto]
1694 --disable-xattr disable xattr support [default=auto]
1697 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1698 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1699 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1701 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1702 --with-sysroot=DIR Search for dependent libraries within DIR
1703 (or the compiler's sysroot if not specified).
1704 --with-gnu-ld assume the C compiler uses GNU ld default=no
1705 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1706 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1707 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1708 --without-libintl-prefix don't search for libintl in includedir and libdir
1709 --with-included-gettext use the GNU gettext library included here
1710 --with-readline[=DIR] specify readline library directory
1711 --with-tcp-wrappers[=DIR]
1712 enable tcpwrappers support
1713 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1714 --with-working-dir=PATH specify path of Bacula working directory
1715 --with-archivedir=PATH specify path of SD archive directory
1716 --with-basename=RESNAME specify base resource name for daemons
1717 --with-hostname=RESNAME specify host name for daemons
1718 --with-scriptdir=PATH specify path of Bacula scripts directory
1719 --with-bsrdir=PATH specify path of Bacula bsrs directory
1720 --with-logdir=PATH specify path of Bacula logs directory
1721 --with-plugindir=PATH specify path of Bacula plugins directory
1722 --with-dump-email=EMAIL dump email address
1723 --with-job-email=EMAIL job output email address
1724 --with-smtp-host=HOST SMTP mail host address
1725 --with-pid-dir=PATH specify location of Bacula pid files
1726 --with-subsys-dir=PATH specify location of Bacula subsys file
1727 --with-baseport=PORT specify base port address for daemons
1728 --with-dir-password=PASSWORD
1729 specify Director's password
1730 --with-fd-password=PASSWORD
1731 specify Client's password
1732 --with-sd-password=PASSWORD
1733 specify Storage daemon's password
1734 --with-mon-dir-password=PASSWORD
1735 specify Director's password used by the monitor
1736 --with-mon-fd-password=PASSWORD
1737 specify Client's password used by the monitor
1738 --with-mon-sd-password=PASSWORD
1739 specify Storage daemon's password used by the
1741 --with-db-name=DBNAME specify database name [default=bacula]
1742 --with-db-user=UNAME specify database user [default=bacula]
1743 --with-db-password=PWD specify database password [default=*none*]
1744 --with-db-port=DBPORT specify a database port [default=null]
1745 --with-db-ssl-options=DBSSLOPTIONS
1746 specify SSL options for database user connection
1748 --with-dir-user=USER specify user for Director daemon
1749 --with-dir-group=GROUP specify group for Director daemon
1750 --with-sd-user=USER specify user for Storage daemon
1751 --with-sd-group=GROUP specify group for Storage daemon
1752 --with-fd-user=USER specify user for File daemon
1753 --with-fd-group=GROUP specify group for File daemon
1754 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0750]
1755 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1756 base install directory, [default=/usr/local/pgsql]
1757 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1758 directory, default is to search through a number of
1759 common places for the MySQL files.
1760 --with-embedded-mysql[=DIR]
1761 Include MySQL support. DIR is the MySQL base install
1762 directory, default is to search through a number of
1763 common places for the MySQL files.
1764 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1765 install directory, default is to search through a
1766 number of common places for the SQLite3 files.
1767 --with-x use the X Window System
1768 --with-s3[=DIR] specify s3 library directory
1769 --with-afsdir[=DIR] Directory holding AFS includes/libs
1770 --with-lzo[=DIR] specify lzo library directory
1771 --with-systemd[=UNITDIR]
1772 Include systemd support. UNITDIR is where systemd
1773 system .service files are located, default is to ask
1776 Some influential environment variables:
1777 CC C compiler command
1778 CFLAGS C compiler flags
1779 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1780 nonstandard directory <lib dir>
1781 LIBS libraries to pass to the linker, e.g. -l<library>
1782 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1783 you have headers in a nonstandard directory <include dir>
1784 CXX C++ compiler command
1785 CXXFLAGS C++ compiler flags
1787 CXXCPP C++ preprocessor
1788 XMKMF Path to xmkmf, Makefile generator for X Window System
1790 Use these variables to override the choices made by `configure' or to help
1791 it to find libraries and programs with nonstandard names/locations.
1793 Report bugs to the package provider.
1798 if test "$ac_init_help" = "recursive"; then
1799 # If there are subdirs, report their specific --help.
1800 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1801 test -d "$ac_dir" ||
1802 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1810 # A ".." for each directory in $ac_dir_suffix.
1811 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1812 case $ac_top_builddir_sub in
1813 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1817 ac_abs_top_builddir=$ac_pwd
1818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1819 # for backward compatibility:
1820 ac_top_builddir=$ac_top_build_prefix
1823 .) # We are building in place.
1825 ac_top_srcdir=$ac_top_builddir_sub
1826 ac_abs_top_srcdir=$ac_pwd ;;
1827 [\\/]* | ?:[\\/]* ) # Absolute name.
1828 ac_srcdir=$srcdir$ac_dir_suffix;
1829 ac_top_srcdir=$srcdir
1830 ac_abs_top_srcdir=$srcdir ;;
1832 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1833 ac_top_srcdir=$ac_top_build_prefix$srcdir
1834 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1838 cd "$ac_dir" || { ac_status=$?; continue; }
1839 # Check for guested configure.
1840 if test -f "$ac_srcdir/configure.gnu"; then
1842 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1843 elif test -f "$ac_srcdir/configure"; then
1845 $SHELL "$ac_srcdir/configure" --help=recursive
1847 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1849 cd "$ac_pwd" || { ac_status=$?; break; }
1853 test -n "$ac_init_help" && exit $ac_status
1854 if $ac_init_version; then
1856 bacula configure 9.0.6
1857 generated by GNU Autoconf 2.69
1859 Copyright (C) 2012 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1866 ## ------------------------ ##
1867 ## Autoconf initialization. ##
1868 ## ------------------------ ##
1870 # ac_fn_c_try_compile LINENO
1871 # --------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1906 } # ac_fn_c_try_compile
1908 # ac_fn_cxx_try_compile LINENO
1909 # ----------------------------
1910 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_compile ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 rm -f conftest.$ac_objext
1915 if { { ac_try="$ac_compile"
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_compile") 2>conftest.err
1924 if test -s conftest.err; then
1925 grep -v '^ *+' conftest.err >conftest.er1
1926 cat conftest.er1 >&5
1927 mv -f conftest.er1 conftest.err
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && {
1931 test -z "$ac_cxx_werror_flag" ||
1932 test ! -s conftest.err
1933 } && test -s conftest.$ac_objext; then :
1936 $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1944 } # ac_fn_cxx_try_compile
1946 # ac_fn_c_try_cpp LINENO
1947 # ----------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_cpp conftest.$ac_ext"
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } > conftest.i && {
1968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1983 # ac_fn_c_try_link LINENO
1984 # -----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded.
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 rm -f conftest.$ac_objext conftest$ac_exeext
1990 if { { ac_try="$ac_link"
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>conftest.err
1999 if test -s conftest.err; then
2000 grep -v '^ *+' conftest.err >conftest.er1
2001 cat conftest.er1 >&5
2002 mv -f conftest.er1 conftest.err
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; } && {
2006 test -z "$ac_c_werror_flag" ||
2007 test ! -s conftest.err
2008 } && test -s conftest$ac_exeext && {
2009 test "$cross_compiling" = yes ||
2010 test -x conftest$ac_exeext
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2019 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2020 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2021 # interfere with the next link command; also delete a directory that is
2022 # left behind by Apple's compiler. We do this before executing the actions.
2023 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status $ac_retval
2027 } # ac_fn_c_try_link
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2046 if ac_fn_c_try_compile "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } # ac_fn_c_check_header_compile
2060 # ac_fn_c_try_run LINENO
2061 # ----------------------
2062 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2063 # that executables *can* be run.
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if { { ac_try="$ac_link"
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_link") 2>&5
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2078 { { case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_try") 2>&5
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; }; }; then :
2090 $as_echo "$as_me: program exited with status $ac_status" >&5
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2094 ac_retval=$ac_status
2096 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status $ac_retval
2102 # ac_fn_c_check_func LINENO FUNC VAR
2103 # ----------------------------------
2104 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2105 ac_fn_c_check_func ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111 $as_echo_n "(cached) " >&6
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2117 #define $2 innocuous_$2
2119 /* System header to define __stub macros and hopefully few prototypes,
2120 which can conflict with char $2 (); below.
2121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2122 <limits.h> exists even on freestanding compilers. */
2125 # include <limits.h>
2127 # include <assert.h>
2132 /* Override any GCC internal prototype to avoid an error.
2133 Use char because int might match the return type of a GCC
2134 builtin and then its argument prototype would still apply. */
2139 /* The GNU C library defines this for functions which it implements
2140 to always fail with ENOSYS. Some functions are actually named
2141 something starting with __ and the normal name is an alias. */
2142 #if defined __stub_$2 || defined __stub___$2
2154 if ac_fn_c_try_link "$LINENO"; then :
2159 rm -f core conftest.err conftest.$ac_objext \
2160 conftest$ac_exeext conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_func
2169 # ac_fn_cxx_try_cpp LINENO
2170 # ------------------------
2171 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_cpp ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if { { ac_try="$ac_cpp conftest.$ac_ext"
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } > conftest.i && {
2191 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2192 test ! -s conftest.err
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_cxx_try_cpp
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 rm -f conftest.$ac_objext conftest$ac_exeext
2213 if { { ac_try="$ac_link"
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>conftest.err
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_cxx_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest$ac_exeext && {
2232 test "$cross_compiling" = yes ||
2233 test -x conftest$ac_exeext
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244 # interfere with the next link command; also delete a directory that is
2245 # left behind by Apple's compiler. We do this before executing the actions.
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 as_fn_set_status $ac_retval
2250 } # ac_fn_cxx_try_link
2252 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2253 # ---------------------------------------------
2254 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2256 ac_fn_c_check_decl ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 as_decl_name=`echo $2|sed 's/ *(.*//'`
2260 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2262 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2263 if eval \${$3+:} false; then :
2264 $as_echo_n "(cached) " >&6
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2272 #ifndef $as_decl_name
2274 (void) $as_decl_use;
2276 (void) $as_decl_name;
2284 if ac_fn_c_try_compile "$LINENO"; then :
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296 } # ac_fn_c_check_decl
2298 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2299 # -------------------------------------------
2300 # Tests whether TYPE exists after having included INCLUDES, setting cache
2301 # variable VAR accordingly.
2302 ac_fn_c_check_type ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if eval \${$3+:} false; then :
2308 $as_echo_n "(cached) " >&6
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2336 if ac_fn_c_try_compile "$LINENO"; then :
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350 } # ac_fn_c_check_type
2352 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2353 # -------------------------------------------------------
2354 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2355 # the include files in INCLUDES and setting the cache variable VAR
2357 ac_fn_c_check_header_mongrel ()
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 if eval \${$3+:} false; then :
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if eval \${$3+:} false; then :
2364 $as_echo_n "(cached) " >&6
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2370 # Is the header compilable?
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2372 $as_echo_n "checking $2 usability... " >&6; }
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379 ac_header_compiler=yes
2381 ac_header_compiler=no
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2385 $as_echo "$ac_header_compiler" >&6; }
2387 # Is the header present?
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2389 $as_echo_n "checking $2 presence... " >&6; }
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2394 if ac_fn_c_try_cpp "$LINENO"; then :
2395 ac_header_preproc=yes
2397 ac_header_preproc=no
2399 rm -f conftest.err conftest.i conftest.$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2401 $as_echo "$ac_header_preproc" >&6; }
2403 # So? What about this header?
2404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2407 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2409 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2413 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2415 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2417 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2419 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2421 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if eval \${$3+:} false; then :
2427 $as_echo_n "(cached) " >&6
2429 eval "$3=\$ac_header_compiler"
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437 } # ac_fn_c_check_header_mongrel
2439 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2440 # --------------------------------------------
2441 # Tries to find the compile-time value of EXPR in a program that includes
2442 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2444 ac_fn_c_compute_int ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 if test "$cross_compiling" = yes; then
2448 # Depending upon the size, compute the lo and hi bounds.
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2455 static int test_array [1 - 2 * !(($2) >= 0)];
2457 return test_array [0];
2463 if ac_fn_c_try_compile "$LINENO"; then :
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2472 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2474 return test_array [0];
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481 ac_hi=$ac_mid; break
2483 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2484 if test $ac_lo -le $ac_mid; then
2488 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2499 static int test_array [1 - 2 * !(($2) < 0)];
2501 return test_array [0];
2507 if ac_fn_c_try_compile "$LINENO"; then :
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2516 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2518 return test_array [0];
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_lo=$ac_mid; break
2527 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2528 if test $ac_mid -le $ac_hi; then
2532 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 # Binary search between lo and hi bounds.
2543 while test "x$ac_lo" != "x$ac_hi"; do
2544 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2551 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2553 return test_array [0];
2559 if ac_fn_c_try_compile "$LINENO"; then :
2562 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2574 static long int longval () { return $2; }
2575 static unsigned long int ulongval () { return $2; }
2582 FILE *f = fopen ("conftest.val", "w");
2587 long int i = longval ();
2590 fprintf (f, "%ld", i);
2594 unsigned long int i = ulongval ();
2597 fprintf (f, "%lu", i);
2599 /* Do not output a trailing newline, as this causes \r\n confusion
2600 on some platforms. */
2601 return ferror (f) || fclose (f) != 0;
2607 if ac_fn_c_try_run "$LINENO"; then :
2608 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2613 conftest.$ac_objext conftest.beam conftest.$ac_ext
2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618 as_fn_set_status $ac_retval
2620 } # ac_fn_c_compute_int
2622 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2623 # ----------------------------------------------------
2624 # Tries to find if the field MEMBER exists in type AGGR, after including
2625 # INCLUDES, setting cache variable VAR accordingly.
2626 ac_fn_c_check_member ()
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2630 $as_echo_n "checking for $2.$3... " >&6; }
2631 if eval \${$4+:} false; then :
2632 $as_echo_n "(cached) " >&6
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2647 if ac_fn_c_try_compile "$LINENO"; then :
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h. */
2657 if (sizeof ac_aggr.$3)
2663 if ac_fn_c_try_compile "$LINENO"; then :
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677 } # ac_fn_c_check_member
2679 # ac_fn_cxx_try_run LINENO
2680 # ------------------------
2681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2682 # that executables *can* be run.
2683 ac_fn_cxx_try_run ()
2685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686 if { { ac_try="$ac_link"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_link") 2>&5
2695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2697 { { case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703 (eval "$ac_try") 2>&5
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; }; }; then :
2709 $as_echo "$as_me: program exited with status $ac_status" >&5
2710 $as_echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2713 ac_retval=$ac_status
2715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2717 as_fn_set_status $ac_retval
2719 } # ac_fn_cxx_try_run
2721 # ac_fn_cxx_check_func LINENO FUNC VAR
2722 # ------------------------------------
2723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2724 ac_fn_cxx_check_func ()
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2736 #define $2 innocuous_$2
2738 /* System header to define __stub macros and hopefully few prototypes,
2739 which can conflict with char $2 (); below.
2740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2741 <limits.h> exists even on freestanding compilers. */
2744 # include <limits.h>
2746 # include <assert.h>
2751 /* Override any GCC internal prototype to avoid an error.
2752 Use char because int might match the return type of a GCC
2753 builtin and then its argument prototype would still apply. */
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined __stub_$2 || defined __stub___$2
2773 if ac_fn_cxx_try_link "$LINENO"; then :
2778 rm -f core conftest.err conftest.$ac_objext \
2779 conftest$ac_exeext conftest.$ac_ext
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783 $as_echo "$ac_res" >&6; }
2784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2786 } # ac_fn_cxx_check_func
2787 cat >config.log <<_ACEOF
2788 This file contains any messages produced by compilers while
2789 running configure, to aid debugging if configure makes a mistake.
2791 It was created by bacula $as_me 9.0.6, which was
2792 generated by GNU Autoconf 2.69. Invocation command line was
2804 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2805 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2806 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2807 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2808 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2810 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2811 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2813 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2814 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2815 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2816 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2817 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2818 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2819 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 $as_echo "PATH: $as_dir"
2844 # Keep a trace of the command line.
2845 # Strip out --no-create and --no-recursion so they do not pile up.
2846 # Strip out --silent because we don't want to record it for future runs.
2847 # Also quote any args containing shell meta-characters.
2848 # Make two passes to allow for proper duplicate-argument suppression.
2852 ac_must_keep_next=false
2858 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2860 | -silent | --silent | --silen | --sile | --sil)
2863 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2866 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2868 as_fn_append ac_configure_args1 " '$ac_arg'"
2869 if test $ac_must_keep_next = true; then
2870 ac_must_keep_next=false # Got value, back to normal.
2873 *=* | --config-cache | -C | -disable-* | --disable-* \
2874 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2875 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2876 | -with-* | --with-* | -without-* | --without-* | --x)
2877 case "$ac_configure_args0 " in
2878 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2881 -* ) ac_must_keep_next=true ;;
2884 as_fn_append ac_configure_args " '$ac_arg'"
2889 { ac_configure_args0=; unset ac_configure_args0;}
2890 { ac_configure_args1=; unset ac_configure_args1;}
2892 # When interrupted or exit'd, cleanup temporary files, and complete
2893 # config.log. We remove comments because anyway the quotes in there
2894 # would cause problems or look ugly.
2895 # WARNING: Use '\'' to represent an apostrophe within the trap.
2896 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2897 trap 'exit_status=$?
2898 # Save into config.log some information that might help in debugging.
2902 $as_echo "## ---------------- ##
2903 ## Cache variables. ##
2904 ## ---------------- ##"
2906 # The following way of writing the cache mishandles newlines in values,
2908 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2909 eval ac_val=\$$ac_var
2913 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2914 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2917 _ | IFS | as_nl) ;; #(
2918 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2919 *) { eval $ac_var=; unset $ac_var;} ;;
2924 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2925 *${as_nl}ac_space=\ *)
2927 "s/'\''/'\''\\\\'\'''\''/g;
2928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2938 $as_echo "## ----------------- ##
2939 ## Output variables. ##
2940 ## ----------------- ##"
2942 for ac_var in $ac_subst_vars
2944 eval ac_val=\$$ac_var
2946 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2948 $as_echo "$ac_var='\''$ac_val'\''"
2952 if test -n "$ac_subst_files"; then
2953 $as_echo "## ------------------- ##
2954 ## File substitutions. ##
2955 ## ------------------- ##"
2957 for ac_var in $ac_subst_files
2959 eval ac_val=\$$ac_var
2961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2963 $as_echo "$ac_var='\''$ac_val'\''"
2968 if test -s confdefs.h; then
2969 $as_echo "## ----------- ##
2976 test "$ac_signal" != 0 &&
2977 $as_echo "$as_me: caught signal $ac_signal"
2978 $as_echo "$as_me: exit $exit_status"
2980 rm -f core *.core core.conftest.* &&
2981 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2984 for ac_signal in 1 2 13 15; do
2985 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2990 rm -f -r conftest* confdefs.h
2992 $as_echo "/* confdefs.h */" > confdefs.h
2994 # Predefined preprocessor variables.
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_NAME "$PACKAGE_NAME"
3000 cat >>confdefs.h <<_ACEOF
3001 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3004 cat >>confdefs.h <<_ACEOF
3005 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_STRING "$PACKAGE_STRING"
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_URL "$PACKAGE_URL"
3021 # Let the site file select an alternate cache file if it wants to.
3022 # Prefer an explicitly selected file to automatically selected ones.
3025 if test -n "$CONFIG_SITE"; then
3026 # We do not want a PATH search for config.site.
3027 case $CONFIG_SITE in #((
3028 -*) ac_site_file1=./$CONFIG_SITE;;
3029 */*) ac_site_file1=$CONFIG_SITE;;
3030 *) ac_site_file1=./$CONFIG_SITE;;
3032 elif test "x$prefix" != xNONE; then
3033 ac_site_file1=$prefix/share/config.site
3034 ac_site_file2=$prefix/etc/config.site
3036 ac_site_file1=$ac_default_prefix/share/config.site
3037 ac_site_file2=$ac_default_prefix/etc/config.site
3039 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3041 test "x$ac_site_file" = xNONE && continue
3042 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3044 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3045 sed 's/^/| /' "$ac_site_file" >&5
3047 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error $? "failed to load site script $ac_site_file
3050 See \`config.log' for more details" "$LINENO" 5; }
3054 if test -r "$cache_file"; then
3055 # Some versions of bash will fail to source /dev/null (special files
3056 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3057 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3059 $as_echo "$as_me: loading cache $cache_file" >&6;}
3061 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3062 *) . "./$cache_file";;
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3067 $as_echo "$as_me: creating cache $cache_file" >&6;}
3071 as_fn_append ac_header_list " stdlib.h"
3072 as_fn_append ac_header_list " unistd.h"
3073 as_fn_append ac_header_list " sys/param.h"
3074 # Check that the precious variables saved in the cache have kept the same
3076 ac_cache_corrupted=false
3077 for ac_var in $ac_precious_vars; do
3078 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3079 eval ac_new_set=\$ac_env_${ac_var}_set
3080 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3081 eval ac_new_val=\$ac_env_${ac_var}_value
3082 case $ac_old_set,$ac_new_set in
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3085 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3086 ac_cache_corrupted=: ;;
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3089 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3090 ac_cache_corrupted=: ;;
3093 if test "x$ac_old_val" != "x$ac_new_val"; then
3094 # differences in whitespace do not lead to failure.
3095 ac_old_val_w=`echo x $ac_old_val`
3096 ac_new_val_w=`echo x $ac_new_val`
3097 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3099 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3100 ac_cache_corrupted=:
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3103 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3104 eval $ac_var=\$ac_old_val
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3107 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3109 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3112 # Pass precious variables to config.status.
3113 if test "$ac_new_set" = set; then
3115 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3116 *) ac_arg=$ac_var=$ac_new_val ;;
3118 case " $ac_configure_args " in
3119 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3120 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3124 if $ac_cache_corrupted; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3128 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3129 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3131 ## -------------------- ##
3132 ## Main body of script. ##
3133 ## -------------------- ##
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3152 if test -f "$ac_dir/install-sh"; then
3154 ac_install_sh="$ac_aux_dir/install-sh -c"
3156 elif test -f "$ac_dir/install.sh"; then
3158 ac_install_sh="$ac_aux_dir/install.sh -c"
3160 elif test -f "$ac_dir/shtool"; then
3162 ac_install_sh="$ac_aux_dir/shtool install -c"
3166 if test -z "$ac_aux_dir"; then
3167 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3170 # These three variables are undocumented and unsupported,
3171 # and are intended to be withdrawn in a future Autoconf release.
3172 # They can cause serious problems if a builder's source tree is in a directory
3173 # whose full name contains unusual characters.
3174 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3175 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3176 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3179 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3184 # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_path_TRUEPRG+:} false; then :
3189 $as_echo_n "(cached) " >&6
3193 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 TRUEPRG=$ac_cv_path_TRUEPRG
3215 if test -n "$TRUEPRG"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3217 $as_echo "$TRUEPRG" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3224 test -n "$TRUEPRG" && break
3226 test -n "$TRUEPRG" || TRUEPRG=":"
3228 for ac_prog in false
3230 # Extract the first word of "$ac_prog", so it can be a program name with args.
3231 set dummy $ac_prog; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_path_FALSEPRG+:} false; then :
3235 $as_echo_n "(cached) " >&6
3239 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 FALSEPRG=$ac_cv_path_FALSEPRG
3261 if test -n "$FALSEPRG"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3263 $as_echo "$FALSEPRG" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3270 test -n "$FALSEPRG" && break
3272 test -n "$FALSEPRG" || FALSEPRG=":"
3277 if test "x$BACULA" != x; then
3278 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3280 BACULA=${BACULA:-Bacula}
3281 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3282 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3283 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3286 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3287 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3290 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3295 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3299 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3300 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3303 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3304 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3306 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3307 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3310 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3312 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3315 PFILES="platforms/Makefile"
3317 echo "configuring for ${BACULA} $VERSION ($DATE)"
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_CC"; then
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_CC" = x; then
3406 case $cross_compiling:$ac_tool_warned in
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected=yes
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy $ac_cv_prog_CC
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in cl.exe
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3556 test -n "$CC" && break
3559 if test -z "$CC"; then
3561 for ac_prog in cl.exe
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3568 $as_echo_n "(cached) " >&6
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_prog_ac_ct_CC="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$ac_ct_CC" && break
3603 if test "x$ac_ct_CC" = x; then
3606 case $cross_compiling:$ac_tool_warned in
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details" "$LINENO" 5; }
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3628 for ac_option in --version -v -V -qversion; do
3629 { { ac_try="$ac_compiler $ac_option >&5"
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3638 if test -s conftest.err; then
3640 ... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3644 rm -f conftest.er1 conftest.err
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3666 $as_echo_n "checking whether the C compiler works... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3673 for ac_file in $ac_files
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3682 if { { ac_try="$ac_link_default"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link_default") 2>&5
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3698 for ac_file in $ac_files ''
3700 test -f "$ac_file" || continue
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3705 # We found the default executable, but exeext='' is most
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3711 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3728 if test -z "$ac_file"; then :
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error 77 "C compiler cannot create executables
3737 See \`config.log' for more details" "$LINENO" 5; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 $as_echo "yes" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3743 $as_echo_n "checking for C compiler default output file name... " >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3745 $as_echo "$ac_file" >&6; }
3746 ac_exeext=$ac_cv_exeext
3748 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3749 ac_clean_files=$ac_clean_files_save
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3751 $as_echo_n "checking for suffix of executables... " >&6; }
3752 if { { ac_try="$ac_link"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_link") 2>&5
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; then :
3763 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3764 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3765 # work properly (i.e., refer to `conftest.exe'), while it won't with
3767 for ac_file in conftest.exe conftest conftest.*; do
3768 test -f "$ac_file" || continue
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3780 See \`config.log' for more details" "$LINENO" 5; }
3782 rm -f conftest conftest$ac_cv_exeext
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3784 $as_echo "$ac_cv_exeext" >&6; }
3786 rm -f conftest.$ac_ext
3787 EXEEXT=$ac_cv_exeext
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3795 FILE *f = fopen ("conftest.out", "w");
3796 return ferror (f) || fclose (f) != 0;
3802 ac_clean_files="$ac_clean_files conftest.out"
3803 # Check that the compiler produces executables we can run. If not, either
3804 # the compiler is broken, or we cross compile.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3806 $as_echo_n "checking whether we are cross compiling... " >&6; }
3807 if test "$cross_compiling" != yes; then
3808 { { ac_try="$ac_link"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_link") 2>&5
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3819 if { ac_try='./conftest$ac_cv_exeext'
3820 { { case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_try") 2>&5
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; }; then
3832 if test "$cross_compiling" = maybe; then
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error $? "cannot run C compiled programs.
3838 If you meant to cross compile, use \`--host'.
3839 See \`config.log' for more details" "$LINENO" 5; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3844 $as_echo "$cross_compiling" >&6; }
3846 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3847 ac_clean_files=$ac_clean_files_save
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3849 $as_echo_n "checking for suffix of object files... " >&6; }
3850 if ${ac_cv_objext+:} false; then :
3851 $as_echo_n "(cached) " >&6
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3864 rm -f conftest.o conftest.obj
3865 if { { ac_try="$ac_compile"
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_compile") 2>&5
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }; then :
3876 for ac_file in conftest.o conftest.obj conftest.*; do
3877 test -f "$ac_file" || continue;
3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3880 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3885 $as_echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error $? "cannot compute suffix of object files: cannot compile
3891 See \`config.log' for more details" "$LINENO" 5; }
3893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3896 $as_echo "$ac_cv_objext" >&6; }
3897 OBJEXT=$ac_cv_objext
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3900 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3901 if ${ac_cv_c_compiler_gnu+:} false; then :
3902 $as_echo_n "(cached) " >&6
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3918 if ac_fn_c_try_compile "$LINENO"; then :
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3928 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3929 if test $ac_compiler_gnu = yes; then
3934 ac_test_CFLAGS=${CFLAGS+set}
3935 ac_save_CFLAGS=$CFLAGS
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3937 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3938 if ${ac_cv_prog_cc_g+:} false; then :
3939 $as_echo_n "(cached) " >&6
3941 ac_save_c_werror_flag=$ac_c_werror_flag
3942 ac_c_werror_flag=yes
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3956 if ac_fn_c_try_compile "$LINENO"; then :
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3971 if ac_fn_c_try_compile "$LINENO"; then :
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3987 if ac_fn_c_try_compile "$LINENO"; then :
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_c_werror_flag=$ac_save_c_werror_flag
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3998 $as_echo "$ac_cv_prog_cc_g" >&6; }
3999 if test "$ac_test_CFLAGS" = set; then
4000 CFLAGS=$ac_save_CFLAGS
4001 elif test $ac_cv_prog_cc_g = yes; then
4002 if test "$GCC" = yes; then
4008 if test "$GCC" = yes; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4015 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4016 if ${ac_cv_prog_cc_c89+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 ac_cv_prog_cc_c89=no
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4026 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4027 struct buf { int x; };
4028 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4029 static char *e (p, i)
4035 static char *f (char * (*g) (char **, int), char **p, ...)
4040 s = g (p, va_arg (v,int));
4045 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4046 function prototypes and stuff, but not '\xHH' hex character constants.
4047 These don't provoke an error unfortunately, instead are silently treated
4048 as 'x'. The following induces an error, until -std is added to get
4049 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4050 array size at least. It's necessary to write '\x00'==0 to get something
4051 that's true only with -std. */
4052 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4054 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4055 inside strings and character constants. */
4057 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4059 int test (int i, double x);
4060 struct s1 {int (*f) (int a);};
4061 struct s2 {int (*f) (double a);};
4062 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4068 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4073 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4074 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4076 CC="$ac_save_CC $ac_arg"
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_prog_cc_c89=$ac_arg
4080 rm -f core conftest.err conftest.$ac_objext
4081 test "x$ac_cv_prog_cc_c89" != "xno" && break
4083 rm -f conftest.$ac_ext
4088 case "x$ac_cv_prog_cc_c89" in
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4091 $as_echo "none needed" >&6; } ;;
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4094 $as_echo "unsupported" >&6; } ;;
4096 CC="$CC $ac_cv_prog_cc_c89"
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4098 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4100 if test "x$ac_cv_prog_cc_c89" != xno; then :
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 ac_cpp='$CXXCPP $CPPFLAGS'
4111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4114 if test -z "$CXX"; then
4115 if test -n "$CCC"; then
4118 if test -n "$ac_tool_prefix"; then
4119 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_CXX+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 if test -n "$CXX"; then
4129 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 if test -n "$CXX"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4151 $as_echo "$CXX" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4158 test -n "$CXX" && break
4161 if test -z "$CXX"; then
4163 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4165 # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy $ac_prog; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4170 $as_echo_n "(cached) " >&6
4172 if test -n "$ac_ct_CXX"; then
4173 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_ac_ct_CXX="$ac_prog"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4193 if test -n "$ac_ct_CXX"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4195 $as_echo "$ac_ct_CXX" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4202 test -n "$ac_ct_CXX" && break
4205 if test "x$ac_ct_CXX" = x; then
4208 case $cross_compiling:$ac_tool_warned in
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4212 ac_tool_warned=yes ;;
4220 # Provide some information about the compiler.
4221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4224 for ac_option in --version -v -V -qversion; do
4225 { { ac_try="$ac_compiler $ac_option >&5"
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4234 if test -s conftest.err; then
4236 ... rest of stderr output deleted ...
4237 10q' conftest.err >conftest.er1
4238 cat conftest.er1 >&5
4240 rm -f conftest.er1 conftest.err
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4246 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4247 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4248 $as_echo_n "(cached) " >&6
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4264 if ac_fn_cxx_try_compile "$LINENO"; then :
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4274 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4275 if test $ac_compiler_gnu = yes; then
4280 ac_test_CXXFLAGS=${CXXFLAGS+set}
4281 ac_save_CXXFLAGS=$CXXFLAGS
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4283 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4284 if ${ac_cv_prog_cxx_g+:} false; then :
4285 $as_echo_n "(cached) " >&6
4287 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4288 ac_cxx_werror_flag=yes
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4302 if ac_fn_cxx_try_compile "$LINENO"; then :
4303 ac_cv_prog_cxx_g=yes
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4317 if ac_fn_cxx_try_compile "$LINENO"; then :
4320 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4333 if ac_fn_cxx_try_compile "$LINENO"; then :
4334 ac_cv_prog_cxx_g=yes
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4344 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4345 if test "$ac_test_CXXFLAGS" = set; then
4346 CXXFLAGS=$ac_save_CXXFLAGS
4347 elif test $ac_cv_prog_cxx_g = yes; then
4348 if test "$GXX" = yes; then
4354 if test "$GXX" = yes; then
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366 if test "x$CC" != xcc; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4368 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4371 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4373 set dummy $CC; ac_cc=`$as_echo "$2" |
4374 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4375 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4376 $as_echo_n "(cached) " >&6
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 # Make sure it works both with $CC and with simple cc.
4390 # We do the test twice because some compilers refuse to overwrite an
4391 # existing .o file with -o, though they will create one.
4392 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4394 if { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; } &&
4404 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410 (eval "$ac_try") 2>&5
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; };
4415 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4416 if test "x$CC" != xcc; then
4417 # Test first that cc exists at all.
4418 if { ac_try='cc -c conftest.$ac_ext >&5'
4419 { { case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_try") 2>&5
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }; }; then
4429 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4431 if { { case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_try") 2>&5
4439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440 test $ac_status = 0; } &&
4441 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_try") 2>&5
4449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; };
4455 # cc exists but doesn't like -o.
4456 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4461 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4463 rm -f core conftest*
4466 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468 $as_echo "yes" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4473 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4483 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4484 # On Suns, sometimes $CPP names a directory.
4485 if test -n "$CPP" && test -d "$CPP"; then
4488 if test -z "$CPP"; then
4489 if ${ac_cv_prog_CPP+:} false; then :
4490 $as_echo_n "(cached) " >&6
4492 # Double quotes because CPP needs to be expanded
4493 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4496 for ac_c_preproc_warn_flag in '' yes
4498 # Use a header file that comes with gcc, so configuring glibc
4499 # with a fresh cross-compiler works.
4500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4501 # <limits.h> exists even on freestanding compilers.
4502 # On the NeXT, cc -E runs the code through the compiler's parser,
4503 # not just through cpp. "Syntax error" is here to catch this case.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4507 # include <limits.h>
4509 # include <assert.h>
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4516 # Broken: fails on valid input.
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4521 # OK, works on sane cases. Now check whether nonexistent headers
4522 # can be detected and how.
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525 #include <ac_nonexistent.h>
4527 if ac_fn_c_try_cpp "$LINENO"; then :
4528 # Broken: success on invalid input.
4531 # Passes both tests.
4535 rm -f conftest.err conftest.i conftest.$ac_ext
4538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539 rm -f conftest.i conftest.err conftest.$ac_ext
4540 if $ac_preproc_ok; then :
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4553 $as_echo "$CPP" >&6; }
4555 for ac_c_preproc_warn_flag in '' yes
4557 # Use a header file that comes with gcc, so configuring glibc
4558 # with a fresh cross-compiler works.
4559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560 # <limits.h> exists even on freestanding compilers.
4561 # On the NeXT, cc -E runs the code through the compiler's parser,
4562 # not just through cpp. "Syntax error" is here to catch this case.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4566 # include <limits.h>
4568 # include <assert.h>
4572 if ac_fn_c_try_cpp "$LINENO"; then :
4575 # Broken: fails on valid input.
4578 rm -f conftest.err conftest.i conftest.$ac_ext
4580 # OK, works on sane cases. Now check whether nonexistent headers
4581 # can be detected and how.
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 #include <ac_nonexistent.h>
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4587 # Broken: success on invalid input.
4590 # Passes both tests.
4594 rm -f conftest.err conftest.i conftest.$ac_ext
4597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4598 rm -f conftest.i conftest.err conftest.$ac_ext
4599 if $ac_preproc_ok; then :
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4605 See \`config.log' for more details" "$LINENO" 5; }
4609 ac_cpp='$CPP $CPPFLAGS'
4610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4616 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4617 if ${ac_cv_path_GREP+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 if test -z "$GREP"; then
4621 ac_path_GREP_found=false
4622 # Loop through the user's path and test for each of PROGNAME-LIST
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 test -z "$as_dir" && as_dir=.
4628 for ac_prog in grep ggrep; do
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4631 as_fn_executable_p "$ac_path_GREP" || continue
4632 # Check for GNU ac_path_GREP and select it if it is found.
4633 # Check for GNU $ac_path_GREP
4634 case `"$ac_path_GREP" --version 2>&1` in
4636 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4639 $as_echo_n 0123456789 >"conftest.in"
4642 cat "conftest.in" "conftest.in" >"conftest.tmp"
4643 mv "conftest.tmp" "conftest.in"
4644 cp "conftest.in" "conftest.nl"
4645 $as_echo 'GREP' >> "conftest.nl"
4646 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4648 as_fn_arith $ac_count + 1 && ac_count=$as_val
4649 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4650 # Best one so far, save it but keep looking for a better one
4651 ac_cv_path_GREP="$ac_path_GREP"
4652 ac_path_GREP_max=$ac_count
4654 # 10*(2^10) chars as input seems more than enough
4655 test $ac_count -gt 10 && break
4657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 $ac_path_GREP_found && break 3
4665 if test -z "$ac_cv_path_GREP"; then
4666 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 ac_cv_path_GREP=$GREP
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4674 $as_echo "$ac_cv_path_GREP" >&6; }
4675 GREP="$ac_cv_path_GREP"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4679 $as_echo_n "checking for egrep... " >&6; }
4680 if ${ac_cv_path_EGREP+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4684 then ac_cv_path_EGREP="$GREP -E"
4686 if test -z "$EGREP"; then
4687 ac_path_EGREP_found=false
4688 # Loop through the user's path and test for each of PROGNAME-LIST
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4693 test -z "$as_dir" && as_dir=.
4694 for ac_prog in egrep; do
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4697 as_fn_executable_p "$ac_path_EGREP" || continue
4698 # Check for GNU ac_path_EGREP and select it if it is found.
4699 # Check for GNU $ac_path_EGREP
4700 case `"$ac_path_EGREP" --version 2>&1` in
4702 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4705 $as_echo_n 0123456789 >"conftest.in"
4708 cat "conftest.in" "conftest.in" >"conftest.tmp"
4709 mv "conftest.tmp" "conftest.in"
4710 cp "conftest.in" "conftest.nl"
4711 $as_echo 'EGREP' >> "conftest.nl"
4712 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4714 as_fn_arith $ac_count + 1 && ac_count=$as_val
4715 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4716 # Best one so far, save it but keep looking for a better one
4717 ac_cv_path_EGREP="$ac_path_EGREP"
4718 ac_path_EGREP_max=$ac_count
4720 # 10*(2^10) chars as input seems more than enough
4721 test $ac_count -gt 10 && break
4723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 $ac_path_EGREP_found && break 3
4731 if test -z "$ac_cv_path_EGREP"; then
4732 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4735 ac_cv_path_EGREP=$EGREP
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4741 $as_echo "$ac_cv_path_EGREP" >&6; }
4742 EGREP="$ac_cv_path_EGREP"
4745 if test $ac_cv_c_compiler_gnu = yes; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4747 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4748 if ${ac_cv_prog_gcc_traditional+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 ac_pattern="Autoconf.*'x'"
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4759 ac_cv_prog_gcc_traditional=yes
4761 ac_cv_prog_gcc_traditional=no
4766 if test $ac_cv_prog_gcc_traditional = no; then
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4774 ac_cv_prog_gcc_traditional=yes
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4781 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4782 if test $ac_cv_prog_gcc_traditional = yes; then
4783 CC="$CC -traditional"
4787 BASECC=`basename $CC`
4789 if test x"$GCC" = "xyes"; then
4790 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4794 # Extract the first word of "$CXX", so it can be a program name with args.
4795 set dummy $CXX; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_path_CXX+:} false; then :
4799 $as_echo_n "(cached) " >&6
4803 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4826 if test -n "$CXX"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4828 $as_echo "$CXX" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4835 if test ! -e $CXX; then
4836 as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4839 # Find a good install program. We prefer a C program (faster),
4840 # so one script is as good as another. But avoid the broken or
4841 # incompatible versions:
4842 # SysV /etc/install, /usr/sbin/install
4843 # SunOS /usr/etc/install
4844 # IRIX /sbin/install
4846 # AmigaOS /C/install, which installs bootblocks on floppy discs
4847 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4850 # OS/2's system install, which has a completely different semantic
4851 # ./install, which can be erroneously created by make from ./install.sh.
4852 # Reject install programs that cannot install multiple files.
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4854 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4855 if test -z "$INSTALL"; then
4856 if ${ac_cv_path_install+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 test -z "$as_dir" && as_dir=.
4864 # Account for people who put trailing slashes in PATH elements.
4865 case $as_dir/ in #((
4866 ./ | .// | /[cC]/* | \
4867 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4868 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4871 # OSF1 and SCO ODT 3.0 have their own names for install.
4872 # Don't use installbsd from OSF since it installs stuff as root
4874 for ac_prog in ginstall scoinst install; do
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4877 if test $ac_prog = install &&
4878 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4879 # AIX install. It has an incompatible calling convention.
4881 elif test $ac_prog = install &&
4882 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4883 # program-specific install script used by HP pwplus--don't use.
4886 rm -rf conftest.one conftest.two conftest.dir
4887 echo one > conftest.one
4888 echo two > conftest.two
4890 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4891 test -s conftest.one && test -s conftest.two &&
4892 test -s conftest.dir/conftest.one &&
4893 test -s conftest.dir/conftest.two
4895 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4908 rm -rf conftest.one conftest.two conftest.dir
4911 if test "${ac_cv_path_install+set}" = set; then
4912 INSTALL=$ac_cv_path_install
4914 # As a last resort, use the slow shell script. Don't cache a
4915 # value for INSTALL within a source directory, because that will
4916 # break other packages using the cache if that directory is
4917 # removed, or if the value is a relative name.
4918 INSTALL=$ac_install_sh
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4922 $as_echo "$INSTALL" >&6; }
4924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4925 # It thinks the first close brace ends the variable substitution.
4926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4928 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4930 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4932 # Extract the first word of "mv", so it can be a program name with args.
4933 set dummy mv; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_path_MV+:} false; then :
4937 $as_echo_n "(cached) " >&6
4941 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4964 if test -n "$MV"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4966 $as_echo "$MV" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 # Extract the first word of "rm", so it can be a program name with args.
4974 set dummy rm; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_path_REMOVE+:} false; then :
4978 $as_echo_n "(cached) " >&6
4982 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5004 REMOVE=$ac_cv_path_REMOVE
5005 if test -n "$REMOVE"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5007 $as_echo "$REMOVE" >&6; }
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5014 # Extract the first word of "cp", so it can be a program name with args.
5015 set dummy cp; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_path_CP+:} false; then :
5019 $as_echo_n "(cached) " >&6
5023 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5046 if test -n "$CP"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5048 $as_echo "$CP" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5055 # Extract the first word of "sed", so it can be a program name with args.
5056 set dummy sed; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_path_SED+:} false; then :
5060 $as_echo_n "(cached) " >&6
5064 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5087 if test -n "$SED"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5089 $as_echo "$SED" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5096 # Extract the first word of "echo", so it can be a program name with args.
5097 set dummy echo; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_path_ECHO+:} false; then :
5101 $as_echo_n "(cached) " >&6
5105 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5127 ECHO=$ac_cv_path_ECHO
5128 if test -n "$ECHO"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5130 $as_echo "$ECHO" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 # Extract the first word of "cmp", so it can be a program name with args.
5138 set dummy cmp; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_path_CMP+:} false; then :
5142 $as_echo_n "(cached) " >&6
5146 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5169 if test -n "$CMP"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5171 $as_echo "$CMP" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5178 # Extract the first word of "tbl", so it can be a program name with args.
5179 set dummy tbl; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_path_TBL+:} false; then :
5183 $as_echo_n "(cached) " >&6
5187 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5210 if test -n "$TBL"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5212 $as_echo "$TBL" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5219 # Extract the first word of "ar", so it can be a program name with args.
5220 set dummy ar; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_path_AR+:} false; then :
5224 $as_echo_n "(cached) " >&6
5228 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5251 if test -n "$AR"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5253 $as_echo "$AR" >&6; }
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 # Extract the first word of "openssl", so it can be a program name with args.
5261 set dummy openssl; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_path_OPENSSL+:} false; then :
5265 $as_echo_n "(cached) " >&6
5269 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5291 OPENSSL=$ac_cv_path_OPENSSL
5292 if test -n "$OPENSSL"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5294 $as_echo "$OPENSSL" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5301 # Extract the first word of "mtx", so it can be a program name with args.
5302 set dummy mtx; ac_word=$2
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 $as_echo_n "checking for $ac_word... " >&6; }
5305 if ${ac_cv_path_MTX+:} false; then :
5306 $as_echo_n "(cached) " >&6
5310 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5333 if test -n "$MTX"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5335 $as_echo "$MTX" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5342 # Extract the first word of "dd", so it can be a program name with args.
5343 set dummy dd; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_path_DD+:} false; then :
5347 $as_echo_n "(cached) " >&6
5351 ac_cv_path_DD="$DD" # Let the user override the test with a path.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5374 if test -n "$DD"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5376 $as_echo "$DD" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 # Extract the first word of "mkisofs", so it can be a program name with args.
5384 set dummy mkisofs; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_path_MKISOFS+:} false; then :
5388 $as_echo_n "(cached) " >&6
5392 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5414 MKISOFS=$ac_cv_path_MKISOFS
5415 if test -n "$MKISOFS"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5417 $as_echo "$MKISOFS" >&6; }
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5424 # Extract the first word of "python", so it can be a program name with args.
5425 set dummy python; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_path_PYTHON+:} false; then :
5429 $as_echo_n "(cached) " >&6
5433 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5455 PYTHON=$ac_cv_path_PYTHON
5456 if test -n "$PYTHON"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5458 $as_echo "$PYTHON" >&6; }
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5465 # Extract the first word of "growisofs", so it can be a program name with args.
5466 set dummy growisofs; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_path_GROWISOFS+:} false; then :
5470 $as_echo_n "(cached) " >&6
5474 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5496 GROWISOFS=$ac_cv_path_GROWISOFS
5497 if test -n "$GROWISOFS"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5499 $as_echo "$GROWISOFS" >&6; }
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5506 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5507 set dummy dvd+rw-mediainfo; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5511 $as_echo_n "(cached) " >&6
5513 case $DVDRWMEDIAINFO in
5515 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5537 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5538 if test -n "$DVDRWMEDIAINFO"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5540 $as_echo "$DVDRWMEDIAINFO" >&6; }
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5547 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5548 set dummy dvd+rw-format; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5552 $as_echo_n "(cached) " >&6
5554 case $DVDRWFORMAT in
5556 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5578 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5579 if test -n "$DVDRWFORMAT"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5581 $as_echo "$DVDRWFORMAT" >&6; }
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5588 # Extract the first word of "pkg-config", so it can be a program name with args.
5589 set dummy pkg-config; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_path_PKGCONFIG+:} false; then :
5593 $as_echo_n "(cached) " >&6
5597 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5619 PKGCONFIG=$ac_cv_path_PKGCONFIG
5620 if test -n "$PKGCONFIG"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5622 $as_echo "$PKGCONFIG" >&6; }
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5629 # Extract the first word of "qmake", so it can be a program name with args.
5630 set dummy qmake; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_path_QMAKE+:} false; then :
5634 $as_echo_n "(cached) " >&6
5638 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5660 QMAKE=$ac_cv_path_QMAKE
5661 if test -n "$QMAKE"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5663 $as_echo "$QMAKE" >&6; }
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5670 # Extract the first word of "gmake", so it can be a program name with args.
5671 set dummy gmake; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_path_GMAKE+:} false; then :
5675 $as_echo_n "(cached) " >&6
5679 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5701 GMAKE=$ac_cv_path_GMAKE
5702 if test -n "$GMAKE"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5704 $as_echo "$GMAKE" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5711 # Extract the first word of "pidof", so it can be a program name with args.
5712 set dummy pidof; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_path_PIDOF+:} false; then :
5716 $as_echo_n "(cached) " >&6
5720 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5742 PIDOF=$ac_cv_path_PIDOF
5743 if test -n "$PIDOF"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5745 $as_echo "$PIDOF" >&6; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5752 for ac_prog in gawk mawk nawk awk
5754 # Extract the first word of "$ac_prog", so it can be a program name with args.
5755 set dummy $ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_AWK+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 if test -n "$AWK"; then
5762 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_AWK="$ac_prog"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 if test -n "$AWK"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5784 $as_echo "$AWK" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5791 test -n "$AWK" && break
5794 # Some AWK programs fail, so test it and warn the user
5795 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5796 { if ((prog == $2) || (("(" prog ")") == $2) ||
5797 (("" prog "") == $2) ||
5798 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5800 as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5801 The regex engine of $AWK is too broken to be used you
5802 might want to install GNU AWK.
5803 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5806 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5807 set dummy $THE_AWK; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_path_AWK+:} false; then :
5811 $as_echo_n "(cached) " >&6
5815 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5838 if test -n "$AWK"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5840 $as_echo "$AWK" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5849 test -n "$ARFLAG" || ARFLAGS="cr"
5861 # Check whether --enable-libtool was given.
5862 if test "${enable_libtool+set}" = set; then :
5863 enableval=$enable_libtool;
5864 if test x$enableval = xno; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5879 macro_version='2.4.2'
5880 macro_revision='1.3337'
5894 ltmain="$ac_aux_dir/ltmain.sh"
5896 # Make sure we can run config.sub.
5897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5898 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5901 $as_echo_n "checking build system type... " >&6; }
5902 if ${ac_cv_build+:} false; then :
5903 $as_echo_n "(cached) " >&6
5905 ac_build_alias=$build_alias
5906 test "x$ac_build_alias" = x &&
5907 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5908 test "x$ac_build_alias" = x &&
5909 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5911 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5915 $as_echo "$ac_cv_build" >&6; }
5916 case $ac_cv_build in
5918 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5921 ac_save_IFS=$IFS; IFS='-'
5927 # Remember, the first character of IFS is used to create $*,
5928 # except with old shells:
5931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5935 $as_echo_n "checking host system type... " >&6; }
5936 if ${ac_cv_host+:} false; then :
5937 $as_echo_n "(cached) " >&6
5939 if test "x$host_alias" = x; then
5940 ac_cv_host=$ac_cv_build
5942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5943 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5948 $as_echo "$ac_cv_host" >&6; }
5951 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5954 ac_save_IFS=$IFS; IFS='-'
5960 # Remember, the first character of IFS is used to create $*,
5961 # except with old shells:
5964 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5967 # Backslashify metacharacters that are still active within
5968 # double-quoted strings.
5969 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5971 # Same as above, but do not quote variable references.
5972 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5974 # Sed substitution to delay expansion of an escaped shell variable in a
5975 # double_quote_subst'ed string.
5976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5978 # Sed substitution to delay expansion of an escaped single quote.
5979 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5981 # Sed substitution to avoid accidental globbing in evaled expressions
5982 no_glob_subst='s/\*/\\\*/g'
5984 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5989 $as_echo_n "checking how to print strings... " >&6; }
5990 # Test print first, because it will be a builtin if present.
5991 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5992 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5994 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5997 # Use this function as a fallback that always works.
5998 func_fallback_echo ()
6000 eval 'cat <<_LTECHO_EOF
6004 ECHO='func_fallback_echo'
6007 # func_echo_all arg...
6008 # Invoke $ECHO with all args, space-separated.
6015 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6016 $as_echo "printf" >&6; } ;;
6017 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6018 $as_echo "print -r" >&6; } ;;
6019 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6020 $as_echo "cat" >&6; } ;;
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6038 if ${ac_cv_path_SED+:} false; then :
6039 $as_echo_n "(cached) " >&6
6041 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6042 for ac_i in 1 2 3 4 5 6 7; do
6043 ac_script="$ac_script$as_nl$ac_script"
6045 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6046 { ac_script=; unset ac_script;}
6047 if test -z "$SED"; then
6048 ac_path_SED_found=false
6049 # Loop through the user's path and test for each of PROGNAME-LIST
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_prog in sed gsed; do
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6058 as_fn_executable_p "$ac_path_SED" || continue
6059 # Check for GNU ac_path_SED and select it if it is found.
6060 # Check for GNU $ac_path_SED
6061 case `"$ac_path_SED" --version 2>&1` in
6063 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6066 $as_echo_n 0123456789 >"conftest.in"
6069 cat "conftest.in" "conftest.in" >"conftest.tmp"
6070 mv "conftest.tmp" "conftest.in"
6071 cp "conftest.in" "conftest.nl"
6072 $as_echo '' >> "conftest.nl"
6073 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6075 as_fn_arith $ac_count + 1 && ac_count=$as_val
6076 if test $ac_count -gt ${ac_path_SED_max-0}; then
6077 # Best one so far, save it but keep looking for a better one
6078 ac_cv_path_SED="$ac_path_SED"
6079 ac_path_SED_max=$ac_count
6081 # 10*(2^10) chars as input seems more than enough
6082 test $ac_count -gt 10 && break
6084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6087 $ac_path_SED_found && break 3
6092 if test -z "$ac_cv_path_SED"; then
6093 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6101 $as_echo "$ac_cv_path_SED" >&6; }
6102 SED="$ac_cv_path_SED"
6105 test -z "$SED" && SED=sed
6106 Xsed="$SED -e 1s/^X//"
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6119 $as_echo_n "checking for fgrep... " >&6; }
6120 if ${ac_cv_path_FGREP+:} false; then :
6121 $as_echo_n "(cached) " >&6
6123 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6124 then ac_cv_path_FGREP="$GREP -F"
6126 if test -z "$FGREP"; then
6127 ac_path_FGREP_found=false
6128 # Loop through the user's path and test for each of PROGNAME-LIST
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6133 test -z "$as_dir" && as_dir=.
6134 for ac_prog in fgrep; do
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6137 as_fn_executable_p "$ac_path_FGREP" || continue
6138 # Check for GNU ac_path_FGREP and select it if it is found.
6139 # Check for GNU $ac_path_FGREP
6140 case `"$ac_path_FGREP" --version 2>&1` in
6142 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6145 $as_echo_n 0123456789 >"conftest.in"
6148 cat "conftest.in" "conftest.in" >"conftest.tmp"
6149 mv "conftest.tmp" "conftest.in"
6150 cp "conftest.in" "conftest.nl"
6151 $as_echo 'FGREP' >> "conftest.nl"
6152 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154 as_fn_arith $ac_count + 1 && ac_count=$as_val
6155 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6156 # Best one so far, save it but keep looking for a better one
6157 ac_cv_path_FGREP="$ac_path_FGREP"
6158 ac_path_FGREP_max=$ac_count
6160 # 10*(2^10) chars as input seems more than enough
6161 test $ac_count -gt 10 && break
6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6166 $ac_path_FGREP_found && break 3
6171 if test -z "$ac_cv_path_FGREP"; then
6172 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6175 ac_cv_path_FGREP=$FGREP
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6181 $as_echo "$ac_cv_path_FGREP" >&6; }
6182 FGREP="$ac_cv_path_FGREP"
6185 test -z "$GREP" && GREP=grep
6205 # Check whether --with-gnu-ld was given.
6206 if test "${with_gnu_ld+set}" = set; then :
6207 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6213 if test "$GCC" = yes; then
6214 # Check if gcc -print-prog-name=ld gives a path.
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6216 $as_echo_n "checking for ld used by $CC... " >&6; }
6219 # gcc leaves a trailing carriage return which upsets mingw
6220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6225 # Accept absolute paths.
6227 re_direlt='/[^/][^/]*/\.\./'
6228 # Canonicalize the pathname of ld
6229 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6230 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6231 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6233 test -z "$LD" && LD="$ac_prog"
6236 # If it fails, then pretend we aren't using GCC.
6240 # If it is relative, then search for the first ld in PATH.
6244 elif test "$with_gnu_ld" = yes; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6246 $as_echo_n "checking for GNU ld... " >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6249 $as_echo_n "checking for non-GNU ld... " >&6; }
6251 if ${lt_cv_path_LD+:} false; then :
6252 $as_echo_n "(cached) " >&6
6254 if test -z "$LD"; then
6255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256 for ac_dir in $PATH; do
6258 test -z "$ac_dir" && ac_dir=.
6259 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6260 lt_cv_path_LD="$ac_dir/$ac_prog"
6261 # Check to see if the program is GNU ld. I'd rather use --version,
6262 # but apparently some variants of GNU ld only accept -v.
6263 # Break only if it was the GNU/non-GNU ld that we prefer.
6264 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6265 *GNU* | *'with BFD'*)
6266 test "$with_gnu_ld" != no && break
6269 test "$with_gnu_ld" != yes && break
6276 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6281 if test -n "$LD"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6283 $as_echo "$LD" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6291 if ${lt_cv_prog_gnu_ld+:} false; then :
6292 $as_echo_n "(cached) " >&6
6294 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6295 case `$LD -v 2>&1 </dev/null` in
6296 *GNU* | *'with BFD'*)
6297 lt_cv_prog_gnu_ld=yes
6300 lt_cv_prog_gnu_ld=no
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6306 with_gnu_ld=$lt_cv_prog_gnu_ld
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6317 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6318 if ${lt_cv_path_NM+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 if test -n "$NM"; then
6322 # Let the user override the test.
6325 lt_nm_to_check="${ac_tool_prefix}nm"
6326 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6327 lt_nm_to_check="$lt_nm_to_check nm"
6329 for lt_tmp_nm in $lt_nm_to_check; do
6330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6331 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6333 test -z "$ac_dir" && ac_dir=.
6334 tmp_nm="$ac_dir/$lt_tmp_nm"
6335 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6336 # Check to see if the nm accepts a BSD-compat flag.
6337 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6338 # nm: unknown option "B" ignored
6339 # Tru64's nm complains that /dev/null is an invalid object file
6340 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6341 */dev/null* | *'Invalid file or object type'*)
6342 lt_cv_path_NM="$tmp_nm -B"
6346 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6348 lt_cv_path_NM="$tmp_nm -p"
6352 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6353 continue # so that we can try to find one that supports BSD flags
6362 : ${lt_cv_path_NM=no}
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6366 $as_echo "$lt_cv_path_NM" >&6; }
6367 if test "$lt_cv_path_NM" != "no"; then
6370 # Didn't find any BSD compatible name lister, look for dumpbin.
6371 if test -n "$DUMPBIN"; then :
6372 # Let the user override the test.
6374 if test -n "$ac_tool_prefix"; then
6375 for ac_prog in dumpbin "link -dump"
6377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_DUMPBIN+:} false; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$DUMPBIN"; then
6385 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 DUMPBIN=$ac_cv_prog_DUMPBIN
6405 if test -n "$DUMPBIN"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6407 $as_echo "$DUMPBIN" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6414 test -n "$DUMPBIN" && break
6417 if test -z "$DUMPBIN"; then
6418 ac_ct_DUMPBIN=$DUMPBIN
6419 for ac_prog in dumpbin "link -dump"
6421 # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy $ac_prog; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6426 $as_echo_n "(cached) " >&6
6428 if test -n "$ac_ct_DUMPBIN"; then
6429 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6449 if test -n "$ac_ct_DUMPBIN"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6451 $as_echo "$ac_ct_DUMPBIN" >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6458 test -n "$ac_ct_DUMPBIN" && break
6461 if test "x$ac_ct_DUMPBIN" = x; then
6464 case $cross_compiling:$ac_tool_warned in
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6470 DUMPBIN=$ac_ct_DUMPBIN
6474 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6476 DUMPBIN="$DUMPBIN -symbols"
6484 if test "$DUMPBIN" != ":"; then
6488 test -z "$NM" && NM=nm
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6496 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6497 if ${lt_cv_nm_interface+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 lt_cv_nm_interface="BSD nm"
6501 echo "int some_variable = 0;" > conftest.$ac_ext
6502 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6503 (eval "$ac_compile" 2>conftest.err)
6504 cat conftest.err >&5
6505 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6506 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6507 cat conftest.err >&5
6508 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6509 cat conftest.out >&5
6510 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6511 lt_cv_nm_interface="MS dumpbin"
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6516 $as_echo "$lt_cv_nm_interface" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6519 $as_echo_n "checking whether ln -s works... " >&6; }
6521 if test "$LN_S" = "ln -s"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6523 $as_echo "yes" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6526 $as_echo "no, using $LN_S" >&6; }
6529 # find the maximum length of command line arguments
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6531 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6532 if ${lt_cv_sys_max_cmd_len+:} false; then :
6533 $as_echo_n "(cached) " >&6
6540 # On DJGPP, this test can blow up pretty badly due to problems in libc
6541 # (any single argument exceeding 2000 bytes causes a buffer overrun
6542 # during glob expansion). Even if it were fixed, the result of this
6543 # check would be larger than it should be.
6544 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6548 # Under GNU Hurd, this test is not required because there is
6549 # no limit to the length of command line arguments.
6550 # Libtool will interpret -1 as no limit whatsoever
6551 lt_cv_sys_max_cmd_len=-1;
6554 cygwin* | mingw* | cegcc*)
6555 # On Win9x/ME, this test blows up -- it succeeds, but takes
6556 # about 5 minutes as the teststring grows exponentially.
6557 # Worse, since 9x/ME are not pre-emptively multitasking,
6558 # you end up with a "frozen" computer, even though with patience
6559 # the test eventually succeeds (with a max line length of 256k).
6560 # Instead, let's just punt: use the minimum linelength reported by
6561 # all of the supported platforms: 8192 (on NT/2K/XP).
6562 lt_cv_sys_max_cmd_len=8192;
6566 # On MiNT this can take a long time and run out of memory.
6567 lt_cv_sys_max_cmd_len=8192;
6571 # On AmigaOS with pdksh, this test takes hours, literally.
6572 # So we just punt and use a minimum line length of 8192.
6573 lt_cv_sys_max_cmd_len=8192;
6576 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6577 # This has been around since 386BSD, at least. Likely further.
6578 if test -x /sbin/sysctl; then
6579 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6580 elif test -x /usr/sbin/sysctl; then
6581 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6583 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6585 # And add a safety zone
6586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6591 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6592 lt_cv_sys_max_cmd_len=196608
6596 # The test takes a long time on OS/2.
6597 lt_cv_sys_max_cmd_len=8192
6601 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6602 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6603 # nice to cause kernel panics so lets avoid the loop below.
6604 # First set a reasonable default.
6605 lt_cv_sys_max_cmd_len=16384
6607 if test -x /sbin/sysconfig; then
6608 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6609 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6614 lt_cv_sys_max_cmd_len=102400
6616 sysv5* | sco5v6* | sysv4.2uw2*)
6617 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6618 if test -n "$kargmax"; then
6619 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6621 lt_cv_sys_max_cmd_len=32768
6625 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6626 if test -n "$lt_cv_sys_max_cmd_len" && \
6627 test undefined != "$lt_cv_sys_max_cmd_len"; then
6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6631 # Make teststring a little bigger before we do anything with it.
6632 # a 1K string should be a reasonable start.
6633 for i in 1 2 3 4 5 6 7 8 ; do
6634 teststring=$teststring$teststring
6636 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6637 # If test is not a shell built-in, we'll probably end up computing a
6638 # maximum length that is only half of the actual maximum length, but
6640 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6641 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6642 test $i != 17 # 1/2 MB should be enough
6645 teststring=$teststring$teststring
6647 # Only check the string length outside the loop.
6648 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6650 # Add a significant safety factor because C++ compilers can tack on
6651 # massive amounts of additional arguments before passing them to the
6652 # linker. It appears as though 1/2 is a usable value.
6653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6660 if test -n $lt_cv_sys_max_cmd_len ; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6662 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6665 $as_echo "none" >&6; }
6667 max_cmd_len=$lt_cv_sys_max_cmd_len
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6679 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6680 # Try some XSI features
6683 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6685 && eval 'test $(( 1 + 1 )) -eq 2 \
6686 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6689 $as_echo "$xsi_shell" >&6; }
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6693 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6695 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6697 && lt_shell_append=yes
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6699 $as_echo "$lt_shell_append" >&6; }
6702 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6712 # test EBCDIC or ASCII
6713 case `echo X|tr X '\101'` in
6714 A) # ASCII based system
6715 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6716 lt_SP2NL='tr \040 \012'
6717 lt_NL2SP='tr \015\012 \040\040'
6719 *) # EBCDIC based system
6720 lt_SP2NL='tr \100 \n'
6721 lt_NL2SP='tr \r\n \100\100'
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6734 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6735 if ${lt_cv_to_host_file_cmd+:} false; then :
6736 $as_echo_n "(cached) " >&6
6741 *-*-mingw* ) # actually msys
6742 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6745 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6747 * ) # otherwise, assume *nix
6748 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6754 *-*-mingw* ) # actually msys
6755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6758 lt_cv_to_host_file_cmd=func_convert_file_noop
6760 * ) # otherwise, assume *nix
6761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6765 * ) # unhandled hosts (and "normal" native builds)
6766 lt_cv_to_host_file_cmd=func_convert_file_noop
6772 to_host_file_cmd=$lt_cv_to_host_file_cmd
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6774 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6781 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6782 if ${lt_cv_to_tool_file_cmd+:} false; then :
6783 $as_echo_n "(cached) " >&6
6785 #assume ordinary cross tools, or native build.
6786 lt_cv_to_tool_file_cmd=func_convert_file_noop
6790 *-*-mingw* ) # actually msys
6791 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6799 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6801 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6808 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6809 if ${lt_cv_ld_reload_flag+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 lt_cv_ld_reload_flag='-r'
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6815 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6816 reload_flag=$lt_cv_ld_reload_flag
6817 case $reload_flag in
6819 *) reload_flag=" $reload_flag" ;;
6821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6823 cygwin* | mingw* | pw32* | cegcc*)
6824 if test "$GCC" != yes; then
6829 if test "$GCC" = yes; then
6830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_OBJDUMP+:} false; then :
6851 $as_echo_n "(cached) " >&6
6853 if test -n "$OBJDUMP"; then
6854 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 OBJDUMP=$ac_cv_prog_OBJDUMP
6874 if test -n "$OBJDUMP"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6876 $as_echo "$OBJDUMP" >&6; }
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6884 if test -z "$ac_cv_prog_OBJDUMP"; then
6885 ac_ct_OBJDUMP=$OBJDUMP
6886 # Extract the first word of "objdump", so it can be a program name with args.
6887 set dummy objdump; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6891 $as_echo_n "(cached) " >&6
6893 if test -n "$ac_ct_OBJDUMP"; then
6894 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6914 if test -n "$ac_ct_OBJDUMP"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6916 $as_echo "$ac_ct_OBJDUMP" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6922 if test "x$ac_ct_OBJDUMP" = x; then
6925 case $cross_compiling:$ac_tool_warned in
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6931 OBJDUMP=$ac_ct_OBJDUMP
6934 OBJDUMP="$ac_cv_prog_OBJDUMP"
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6948 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6949 if ${lt_cv_deplibs_check_method+:} false; then :
6950 $as_echo_n "(cached) " >&6
6952 lt_cv_file_magic_cmd='$MAGIC_CMD'
6953 lt_cv_file_magic_test_file=
6954 lt_cv_deplibs_check_method='unknown'
6955 # Need to set the preceding variable on all platforms that support
6956 # interlibrary dependencies.
6957 # 'none' -- dependencies not supported.
6958 # `unknown' -- same as none, but documents that we really don't know.
6959 # 'pass_all' -- all dependencies passed with no checks.
6960 # 'test_compile' -- check by making test program.
6961 # 'file_magic [[regex]]' -- check by looking for files in library path
6962 # which responds to the $file_magic_cmd with a given extended regex.
6963 # If you have `file' or equivalent on your system and you're not sure
6964 # whether `pass_all' will *always* work, you probably want this one.
6968 lt_cv_deplibs_check_method=pass_all
6972 lt_cv_deplibs_check_method=pass_all
6976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6977 lt_cv_file_magic_cmd='/usr/bin/file -L'
6978 lt_cv_file_magic_test_file=/shlib/libc.so
6982 # func_win32_libid is a shell function defined in ltmain.sh
6983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6984 lt_cv_file_magic_cmd='func_win32_libid'
6988 # Base MSYS/MinGW do not provide the 'file' command needed by
6989 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6990 # unless we find 'file', for example because we are cross-compiling.
6991 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6992 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6994 lt_cv_file_magic_cmd='func_win32_libid'
6996 # Keep this pattern in sync with the one in func_win32_libid.
6997 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6998 lt_cv_file_magic_cmd='$OBJDUMP -f'
7003 # use the weaker test based on 'objdump'. See mingw*.
7004 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7005 lt_cv_file_magic_cmd='$OBJDUMP -f'
7008 darwin* | rhapsody*)
7009 lt_cv_deplibs_check_method=pass_all
7012 freebsd* | dragonfly*)
7013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7016 # Not sure whether the presence of OpenBSD here was a mistake.
7017 # Let's accept both of them until this is cleared up.
7018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7019 lt_cv_file_magic_cmd=/usr/bin/file
7020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7024 lt_cv_deplibs_check_method=pass_all
7029 lt_cv_deplibs_check_method=pass_all
7032 hpux10.20* | hpux11*)
7033 lt_cv_file_magic_cmd=/usr/bin/file
7036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7037 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7040 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]'
7041 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7051 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7055 irix5* | irix6* | nonstopux*)
7057 *-32|*"-32 ") libmagic=32-bit;;
7058 *-n32|*"-n32 ") libmagic=N32;;
7059 *-64|*"-64 ") libmagic=64-bit;;
7060 *) libmagic=never-match;;
7062 lt_cv_deplibs_check_method=pass_all
7065 # This must be glibc/ELF.
7066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7067 lt_cv_deplibs_check_method=pass_all
7070 netbsd* | netbsdelf*-gnu)
7071 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7080 lt_cv_file_magic_cmd=/usr/bin/file
7081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7085 lt_cv_deplibs_check_method=pass_all
7089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7096 osf3* | osf4* | osf5*)
7097 lt_cv_deplibs_check_method=pass_all
7101 lt_cv_deplibs_check_method=pass_all
7105 lt_cv_deplibs_check_method=pass_all
7108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7109 lt_cv_deplibs_check_method=pass_all
7113 case $host_vendor in
7115 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]'
7116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7119 lt_cv_deplibs_check_method=pass_all
7122 lt_cv_file_magic_cmd='/bin/file'
7123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7126 lt_cv_file_magic_cmd='/bin/file'
7127 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7128 lt_cv_file_magic_test_file=/lib/libc.so
7131 lt_cv_deplibs_check_method=pass_all
7134 lt_cv_deplibs_check_method=pass_all
7140 lt_cv_deplibs_check_method=pass_all
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7146 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7150 if test "$build" = "$host"; then
7153 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7156 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7162 file_magic_cmd=$lt_cv_file_magic_cmd
7163 deplibs_check_method=$lt_cv_deplibs_check_method
7164 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7187 if test -n "$ac_tool_prefix"; then
7188 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_DLLTOOL+:} false; then :
7193 $as_echo_n "(cached) " >&6
7195 if test -n "$DLLTOOL"; then
7196 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 DLLTOOL=$ac_cv_prog_DLLTOOL
7216 if test -n "$DLLTOOL"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7218 $as_echo "$DLLTOOL" >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7226 if test -z "$ac_cv_prog_DLLTOOL"; then
7227 ac_ct_DLLTOOL=$DLLTOOL
7228 # Extract the first word of "dlltool", so it can be a program name with args.
7229 set dummy dlltool; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7233 $as_echo_n "(cached) " >&6
7235 if test -n "$ac_ct_DLLTOOL"; then
7236 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7256 if test -n "$ac_ct_DLLTOOL"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7258 $as_echo "$ac_ct_DLLTOOL" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7264 if test "x$ac_ct_DLLTOOL" = x; then
7267 case $cross_compiling:$ac_tool_warned in
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7273 DLLTOOL=$ac_ct_DLLTOOL
7276 DLLTOOL="$ac_cv_prog_DLLTOOL"
7279 test -z "$DLLTOOL" && DLLTOOL=dlltool
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7291 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7292 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7293 $as_echo_n "(cached) " >&6
7295 lt_cv_sharedlib_from_linklib_cmd='unknown'
7298 cygwin* | mingw* | pw32* | cegcc*)
7299 # two different shell functions defined in ltmain.sh
7300 # decide which to use based on capabilities of $DLLTOOL
7301 case `$DLLTOOL --help 2>&1` in
7302 *--identify-strict*)
7303 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7306 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7311 # fallback: assume linklib IS sharedlib
7312 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7318 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7319 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7320 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7328 if test -n "$ac_tool_prefix"; then
7331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_AR+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$AR"; then
7339 ac_cv_prog_AR="$AR" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 if test -n "$AR"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7361 $as_echo "$AR" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7368 test -n "$AR" && break
7371 if test -z "$AR"; then
7375 # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7380 $as_echo_n "(cached) " >&6
7382 if test -n "$ac_ct_AR"; then
7383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_ac_ct_AR="$ac_prog"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7403 if test -n "$ac_ct_AR"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7405 $as_echo "$ac_ct_AR" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7412 test -n "$ac_ct_AR" && break
7415 if test "x$ac_ct_AR" = x; then
7418 case $cross_compiling:$ac_tool_warned in
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7442 $as_echo_n "checking for archiver @FILE support... " >&6; }
7443 if ${lt_cv_ar_at_file+:} false; then :
7444 $as_echo_n "(cached) " >&6
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7458 if ac_fn_c_try_compile "$LINENO"; then :
7459 echo conftest.$ac_objext > conftest.lst
7460 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7462 (eval $lt_ar_try) 2>&5
7464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465 test $ac_status = 0; }
7466 if test "$ac_status" -eq 0; then
7467 # Ensure the archiver fails upon bogus file names.
7468 rm -f conftest.$ac_objext libconftest.a
7469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7470 (eval $lt_ar_try) 2>&5
7472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473 test $ac_status = 0; }
7474 if test "$ac_status" -ne 0; then
7478 rm -f conftest.* libconftest.a
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7485 $as_echo "$lt_cv_ar_at_file" >&6; }
7487 if test "x$lt_cv_ar_at_file" = xno; then
7490 archiver_list_spec=$lt_cv_ar_at_file
7499 if test -n "$ac_tool_prefix"; then
7500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}strip; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_STRIP+:} false; then :
7505 $as_echo_n "(cached) " >&6
7507 if test -n "$STRIP"; then
7508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 STRIP=$ac_cv_prog_STRIP
7528 if test -n "$STRIP"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7530 $as_echo "$STRIP" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7538 if test -z "$ac_cv_prog_STRIP"; then
7540 # Extract the first word of "strip", so it can be a program name with args.
7541 set dummy strip; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7545 $as_echo_n "(cached) " >&6
7547 if test -n "$ac_ct_STRIP"; then
7548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_prog_ac_ct_STRIP="strip"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7568 if test -n "$ac_ct_STRIP"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7570 $as_echo "$ac_ct_STRIP" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7576 if test "x$ac_ct_STRIP" = x; then
7579 case $cross_compiling:$ac_tool_warned in
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583 ac_tool_warned=yes ;;
7588 STRIP="$ac_cv_prog_STRIP"
7591 test -z "$STRIP" && STRIP=:
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_RANLIB+:} false; then :
7604 $as_echo_n "(cached) " >&6
7606 if test -n "$RANLIB"; then
7607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 RANLIB=$ac_cv_prog_RANLIB
7627 if test -n "$RANLIB"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7629 $as_echo "$RANLIB" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7637 if test -z "$ac_cv_prog_RANLIB"; then
7638 ac_ct_RANLIB=$RANLIB
7639 # Extract the first word of "ranlib", so it can be a program name with args.
7640 set dummy ranlib; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7644 $as_echo_n "(cached) " >&6
7646 if test -n "$ac_ct_RANLIB"; then
7647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_ac_ct_RANLIB="ranlib"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7667 if test -n "$ac_ct_RANLIB"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7669 $as_echo "$ac_ct_RANLIB" >&6; }
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7675 if test "x$ac_ct_RANLIB" = x; then
7678 case $cross_compiling:$ac_tool_warned in
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682 ac_tool_warned=yes ;;
7684 RANLIB=$ac_ct_RANLIB
7687 RANLIB="$ac_cv_prog_RANLIB"
7690 test -z "$RANLIB" && RANLIB=:
7697 # Determine commands to create old-style static archives.
7698 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7699 old_postinstall_cmds='chmod 644 $oldlib'
7700 old_postuninstall_cmds=
7702 if test -n "$RANLIB"; then
7705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7711 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7716 lock_old_archive_extraction=yes ;;
7718 lock_old_archive_extraction=no ;;
7759 # If no C compiler was specified, use CC.
7762 # If no C compiler flags were specified, use CFLAGS.
7763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7765 # Allow CC to be a program name with arguments.
7769 # Check for command to grab the raw symbol name followed by C symbol from nm.
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7771 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7772 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7773 $as_echo_n "(cached) " >&6
7776 # These are sane defaults that work on at least a few old systems.
7777 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7779 # Character class describing NM global symbol codes.
7780 symcode='[BCDEGRST]'
7782 # Regexp to match symbols that can be accessed directly from C.
7783 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7785 # Define system-specific variables.
7790 cygwin* | mingw* | pw32* | cegcc*)
7791 symcode='[ABCDGISTW]'
7794 if test "$host_cpu" = ia64; then
7795 symcode='[ABCDEGRST]'
7799 symcode='[BCDEGRST]'
7802 symcode='[BCDEGQRST]'
7813 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7821 # If we're using GNU nm, then use its standard symbol codes.
7822 case `$NM -V 2>&1` in
7823 *GNU* | *'with BFD'*)
7824 symcode='[ABCDGIRSTW]' ;;
7827 # Transform an extracted symbol line into a proper C declaration.
7828 # Some systems (esp. on ia64) link data and code symbols differently,
7829 # so use this general approach.
7830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7832 # Transform an extracted symbol line into symbol name and symbol address
7833 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7834 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'"
7836 # Handle CRLF in mingw tool chain
7840 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7844 # Try without a prefix underscore, then with it.
7845 for ac_symprfx in "" "_"; do
7847 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7848 symxfrm="\\1 $ac_symprfx\\2 \\2"
7850 # Write the raw and C identifiers.
7851 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7852 # Fake it for dumpbin and say T for any non-static function
7853 # and D for any global variable.
7854 # Also find C++ and __fastcall symbols from MSVC++,
7855 # which start with @ or ?.
7856 lt_cv_sys_global_symbol_pipe="$AWK '"\
7857 " {last_section=section; section=\$ 3};"\
7858 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7859 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7860 " \$ 0!~/External *\|/{next};"\
7861 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7862 " {if(hide[section]) next};"\
7863 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7864 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7865 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7866 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7867 " ' prfx=^$ac_symprfx"
7869 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7871 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7873 # Check to see that the pipe works correctly.
7877 cat > conftest.$ac_ext <<_LT_EOF
7882 void nm_test_func(void);
7883 void nm_test_func(void){}
7887 int main(){nm_test_var='a';nm_test_func();return(0);}
7890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7891 (eval $ac_compile) 2>&5
7893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894 test $ac_status = 0; }; then
7895 # Now try to grab the symbols.
7897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7898 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901 test $ac_status = 0; } && test -s "$nlist"; then
7902 # Try sorting and uniquifying the output.
7903 if sort "$nlist" | uniq > "$nlist"T; then
7904 mv -f "$nlist"T "$nlist"
7909 # Make sure that we snagged all the symbols we need.
7910 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7911 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7912 cat <<_LT_EOF > conftest.$ac_ext
7913 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7914 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7915 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7916 relocations are performed -- see ld's documentation on pseudo-relocs. */
7917 # define LT_DLSYM_CONST
7918 #elif defined(__osf__)
7919 /* This system does not cope well with relocations in const data. */
7920 # define LT_DLSYM_CONST
7922 # define LT_DLSYM_CONST const
7930 # Now generate the symbol file.
7931 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7933 cat <<_LT_EOF >> conftest.$ac_ext
7935 /* The mapping between symbol names and symbols. */
7936 LT_DLSYM_CONST struct {
7940 lt__PROGRAM__LTX_preloaded_symbols[] =
7942 { "@PROGRAM@", (void *) 0 },
7944 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7945 cat <<\_LT_EOF >> conftest.$ac_ext
7949 /* This works around a problem in FreeBSD linker */
7950 #ifdef FREEBSD_WORKAROUND
7951 static const void *lt_preloaded_setup() {
7952 return lt__PROGRAM__LTX_preloaded_symbols;
7960 # Now try linking the two files.
7961 mv conftest.$ac_objext conftstm.$ac_objext
7962 lt_globsym_save_LIBS=$LIBS
7963 lt_globsym_save_CFLAGS=$CFLAGS
7964 LIBS="conftstm.$ac_objext"
7965 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7967 (eval $ac_link) 2>&5
7969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7970 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7973 LIBS=$lt_globsym_save_LIBS
7974 CFLAGS=$lt_globsym_save_CFLAGS
7976 echo "cannot find nm_test_func in $nlist" >&5
7979 echo "cannot find nm_test_var in $nlist" >&5
7982 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7985 echo "$progname: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7988 rm -rf conftest* conftst*
7990 # Do not use the global_symbol_pipe unless it works.
7991 if test "$pipe_works" = yes; then
7994 lt_cv_sys_global_symbol_pipe=
8000 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8001 lt_cv_sys_global_symbol_to_cdecl=
8003 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8005 $as_echo "failed" >&6; }
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8008 $as_echo "ok" >&6; }
8011 # Response file support.
8012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8013 nm_file_list_spec='@'
8014 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8015 nm_file_list_spec='@'
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8045 $as_echo_n "checking for sysroot... " >&6; }
8047 # Check whether --with-sysroot was given.
8048 if test "${with_sysroot+set}" = set; then :
8049 withval=$with_sysroot;
8056 case ${with_sysroot} in #(
8058 if test "$GCC" = yes; then
8059 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8063 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8069 $as_echo "${with_sysroot}" >&6; }
8070 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8075 $as_echo "${lt_sysroot:-no}" >&6; }
8081 # Check whether --enable-libtool-lock was given.
8082 if test "${enable_libtool_lock+set}" = set; then :
8083 enableval=$enable_libtool_lock;
8086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8088 # Some flags need to be propagated to the compiler or linker for good
8092 # Find out which ABI we are using.
8093 echo 'int i;' > conftest.$ac_ext
8094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8095 (eval $ac_compile) 2>&5
8097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8098 test $ac_status = 0; }; then
8099 case `/usr/bin/file conftest.$ac_objext` in
8111 # Find out which ABI we are using.
8112 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8114 (eval $ac_compile) 2>&5
8116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117 test $ac_status = 0; }; then
8118 if test "$lt_cv_prog_gnu_ld" = yes; then
8119 case `/usr/bin/file conftest.$ac_objext` in
8121 LD="${LD-ld} -melf32bsmip"
8124 LD="${LD-ld} -melf32bmipn32"
8127 LD="${LD-ld} -melf64bmip"
8131 case `/usr/bin/file conftest.$ac_objext` in
8147 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8148 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8149 # Find out which ABI we are using.
8150 echo 'int i;' > conftest.$ac_ext
8151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8152 (eval $ac_compile) 2>&5
8154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8155 test $ac_status = 0; }; then
8156 case `/usr/bin/file conftest.o` in
8159 x86_64-*kfreebsd*-gnu)
8160 LD="${LD-ld} -m elf_i386_fbsd"
8163 case `/usr/bin/file conftest.o` in
8165 LD="${LD-ld} -m elf32_x86_64"
8168 LD="${LD-ld} -m elf_i386"
8173 LD="${LD-ld} -m elf32lppclinux"
8176 LD="${LD-ld} -m elf32ppclinux"
8179 LD="${LD-ld} -m elf_s390"
8182 LD="${LD-ld} -m elf32_sparc"
8188 x86_64-*kfreebsd*-gnu)
8189 LD="${LD-ld} -m elf_x86_64_fbsd"
8192 LD="${LD-ld} -m elf_x86_64"
8195 LD="${LD-ld} -m elf64lppc"
8198 LD="${LD-ld} -m elf64ppc"
8200 s390*-*linux*|s390*-*tpf*)
8201 LD="${LD-ld} -m elf64_s390"
8204 LD="${LD-ld} -m elf64_sparc"
8214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8215 SAVE_CFLAGS="$CFLAGS"
8216 CFLAGS="$CFLAGS -belf"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8218 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8219 if ${lt_cv_cc_needs_belf+:} false; then :
8220 $as_echo_n "(cached) " >&6
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8239 if ac_fn_c_try_link "$LINENO"; then :
8240 lt_cv_cc_needs_belf=yes
8242 lt_cv_cc_needs_belf=no
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8247 ac_cpp='$CPP $CPPFLAGS'
8248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8254 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8255 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8256 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8257 CFLAGS="$SAVE_CFLAGS"
8261 # Find out which ABI we are using.
8262 echo 'int i;' > conftest.$ac_ext
8263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8264 (eval $ac_compile) 2>&5
8266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8267 test $ac_status = 0; }; then
8268 case `/usr/bin/file conftest.o` in
8270 case $lt_cv_prog_gnu_ld in
8274 LD="${LD-ld} -m elf_x86_64"
8277 LD="${LD-ld} -m elf64_sparc"
8280 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8281 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8298 need_locks="$enable_libtool_lock"
8300 if test -n "$ac_tool_prefix"; then
8301 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8302 set dummy ${ac_tool_prefix}mt; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8306 $as_echo_n "(cached) " >&6
8308 if test -n "$MANIFEST_TOOL"; then
8309 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8329 if test -n "$MANIFEST_TOOL"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8331 $as_echo "$MANIFEST_TOOL" >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8339 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8340 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8341 # Extract the first word of "mt", so it can be a program name with args.
8342 set dummy mt; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8346 $as_echo_n "(cached) " >&6
8348 if test -n "$ac_ct_MANIFEST_TOOL"; then
8349 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8369 if test -n "$ac_ct_MANIFEST_TOOL"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8371 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8377 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8380 case $cross_compiling:$ac_tool_warned in
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8384 ac_tool_warned=yes ;;
8386 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8389 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8392 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8394 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8395 if ${lt_cv_path_mainfest_tool+:} false; then :
8396 $as_echo_n "(cached) " >&6
8398 lt_cv_path_mainfest_tool=no
8399 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8400 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8401 cat conftest.err >&5
8402 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8403 lt_cv_path_mainfest_tool=yes
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8408 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8409 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8419 rhapsody* | darwin*)
8420 if test -n "$ac_tool_prefix"; then
8421 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8422 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8426 $as_echo_n "(cached) " >&6
8428 if test -n "$DSYMUTIL"; then
8429 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 test -z "$as_dir" && as_dir=.
8436 for ac_exec_ext in '' $ac_executable_extensions; do
8437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8438 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8449 if test -n "$DSYMUTIL"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8451 $as_echo "$DSYMUTIL" >&6; }
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8459 if test -z "$ac_cv_prog_DSYMUTIL"; then
8460 ac_ct_DSYMUTIL=$DSYMUTIL
8461 # Extract the first word of "dsymutil", so it can be a program name with args.
8462 set dummy dsymutil; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8466 $as_echo_n "(cached) " >&6
8468 if test -n "$ac_ct_DSYMUTIL"; then
8469 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8489 if test -n "$ac_ct_DSYMUTIL"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8491 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8497 if test "x$ac_ct_DSYMUTIL" = x; then
8500 case $cross_compiling:$ac_tool_warned in
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8504 ac_tool_warned=yes ;;
8506 DSYMUTIL=$ac_ct_DSYMUTIL
8509 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8512 if test -n "$ac_tool_prefix"; then
8513 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8514 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_prog_NMEDIT+:} false; then :
8518 $as_echo_n "(cached) " >&6
8520 if test -n "$NMEDIT"; then
8521 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 NMEDIT=$ac_cv_prog_NMEDIT
8541 if test -n "$NMEDIT"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8543 $as_echo "$NMEDIT" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8551 if test -z "$ac_cv_prog_NMEDIT"; then
8552 ac_ct_NMEDIT=$NMEDIT
8553 # Extract the first word of "nmedit", so it can be a program name with args.
8554 set dummy nmedit; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8558 $as_echo_n "(cached) " >&6
8560 if test -n "$ac_ct_NMEDIT"; then
8561 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8570 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8581 if test -n "$ac_ct_NMEDIT"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8583 $as_echo "$ac_ct_NMEDIT" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8589 if test "x$ac_ct_NMEDIT" = x; then
8592 case $cross_compiling:$ac_tool_warned in
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8596 ac_tool_warned=yes ;;
8598 NMEDIT=$ac_ct_NMEDIT
8601 NMEDIT="$ac_cv_prog_NMEDIT"
8604 if test -n "$ac_tool_prefix"; then
8605 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_prog_LIPO+:} false; then :
8610 $as_echo_n "(cached) " >&6
8612 if test -n "$LIPO"; then
8613 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8622 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 LIPO=$ac_cv_prog_LIPO
8633 if test -n "$LIPO"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8635 $as_echo "$LIPO" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8643 if test -z "$ac_cv_prog_LIPO"; then
8645 # Extract the first word of "lipo", so it can be a program name with args.
8646 set dummy lipo; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8650 $as_echo_n "(cached) " >&6
8652 if test -n "$ac_ct_LIPO"; then
8653 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_ac_ct_LIPO="lipo"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8673 if test -n "$ac_ct_LIPO"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8675 $as_echo "$ac_ct_LIPO" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8681 if test "x$ac_ct_LIPO" = x; then
8684 case $cross_compiling:$ac_tool_warned in
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688 ac_tool_warned=yes ;;
8693 LIPO="$ac_cv_prog_LIPO"
8696 if test -n "$ac_tool_prefix"; then
8697 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8698 set dummy ${ac_tool_prefix}otool; ac_word=$2
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700 $as_echo_n "checking for $ac_word... " >&6; }
8701 if ${ac_cv_prog_OTOOL+:} false; then :
8702 $as_echo_n "(cached) " >&6
8704 if test -n "$OTOOL"; then
8705 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 OTOOL=$ac_cv_prog_OTOOL
8725 if test -n "$OTOOL"; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8727 $as_echo "$OTOOL" >&6; }
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8735 if test -z "$ac_cv_prog_OTOOL"; then
8737 # Extract the first word of "otool", so it can be a program name with args.
8738 set dummy otool; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8742 $as_echo_n "(cached) " >&6
8744 if test -n "$ac_ct_OTOOL"; then
8745 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_ac_ct_OTOOL="otool"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8765 if test -n "$ac_ct_OTOOL"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8767 $as_echo "$ac_ct_OTOOL" >&6; }
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8773 if test "x$ac_ct_OTOOL" = x; then
8776 case $cross_compiling:$ac_tool_warned in
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8780 ac_tool_warned=yes ;;
8785 OTOOL="$ac_cv_prog_OTOOL"
8788 if test -n "$ac_tool_prefix"; then
8789 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8790 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if ${ac_cv_prog_OTOOL64+:} false; then :
8794 $as_echo_n "(cached) " >&6
8796 if test -n "$OTOOL64"; then
8797 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 OTOOL64=$ac_cv_prog_OTOOL64
8817 if test -n "$OTOOL64"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8819 $as_echo "$OTOOL64" >&6; }
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8827 if test -z "$ac_cv_prog_OTOOL64"; then
8828 ac_ct_OTOOL64=$OTOOL64
8829 # Extract the first word of "otool64", so it can be a program name with args.
8830 set dummy otool64; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 $as_echo_n "checking for $ac_word... " >&6; }
8833 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8834 $as_echo_n "(cached) " >&6
8836 if test -n "$ac_ct_OTOOL64"; then
8837 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_prog_ac_ct_OTOOL64="otool64"
8847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8857 if test -n "$ac_ct_OTOOL64"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8859 $as_echo "$ac_ct_OTOOL64" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8865 if test "x$ac_ct_OTOOL64" = x; then
8868 case $cross_compiling:$ac_tool_warned in
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8872 ac_tool_warned=yes ;;
8874 OTOOL64=$ac_ct_OTOOL64
8877 OTOOL64="$ac_cv_prog_OTOOL64"
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8907 $as_echo_n "checking for -single_module linker flag... " >&6; }
8908 if ${lt_cv_apple_cc_single_mod+:} false; then :
8909 $as_echo_n "(cached) " >&6
8911 lt_cv_apple_cc_single_mod=no
8912 if test -z "${LT_MULTI_MODULE}"; then
8913 # By default we will add the -single_module flag. You can override
8914 # by either setting the environment variable LT_MULTI_MODULE
8915 # non-empty at configure time, or by adding -multi_module to the
8917 rm -rf libconftest.dylib*
8918 echo "int foo(void){return 1;}" > conftest.c
8919 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8920 -dynamiclib -Wl,-single_module conftest.c" >&5
8921 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8922 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8924 # If there is a non-empty error log, and "single_module"
8925 # appears in it, assume the flag caused a linker warning
8926 if test -s conftest.err && $GREP single_module conftest.err; then
8927 cat conftest.err >&5
8928 # Otherwise, if the output was created with a 0 exit code from
8929 # the compiler, it worked.
8930 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8931 lt_cv_apple_cc_single_mod=yes
8933 cat conftest.err >&5
8935 rm -rf libconftest.dylib*
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8940 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8943 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8944 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8945 $as_echo_n "(cached) " >&6
8947 lt_cv_ld_exported_symbols_list=no
8948 save_LDFLAGS=$LDFLAGS
8949 echo "_main" > conftest.sym
8950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8962 if ac_fn_c_try_link "$LINENO"; then :
8963 lt_cv_ld_exported_symbols_list=yes
8965 lt_cv_ld_exported_symbols_list=no
8967 rm -f core conftest.err conftest.$ac_objext \
8968 conftest$ac_exeext conftest.$ac_ext
8969 LDFLAGS="$save_LDFLAGS"
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8973 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8976 $as_echo_n "checking for -force_load linker flag... " >&6; }
8977 if ${lt_cv_ld_force_load+:} false; then :
8978 $as_echo_n "(cached) " >&6
8980 lt_cv_ld_force_load=no
8981 cat > conftest.c << _LT_EOF
8982 int forced_loaded() { return 2;}
8984 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8985 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8986 echo "$AR cru libconftest.a conftest.o" >&5
8987 $AR cru libconftest.a conftest.o 2>&5
8988 echo "$RANLIB libconftest.a" >&5
8989 $RANLIB libconftest.a 2>&5
8990 cat > conftest.c << _LT_EOF
8991 int main() { return 0;}
8993 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8994 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8996 if test -s conftest.err && $GREP force_load conftest.err; then
8997 cat conftest.err >&5
8998 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8999 lt_cv_ld_force_load=yes
9001 cat conftest.err >&5
9003 rm -f conftest.err libconftest.a conftest conftest.c
9004 rm -rf conftest.dSYM
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9008 $as_echo "$lt_cv_ld_force_load" >&6; }
9010 rhapsody* | darwin1.[012])
9011 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9014 darwin*) # darwin 5.x on
9015 # if running on 10.5 or later, the deployment target defaults
9016 # to the OS version, if on x86, and 10.4, the deployment
9017 # target defaults to 10.4. Don't you love it?
9018 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9019 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9020 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9024 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9028 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9029 _lt_dar_single_mod='$single_module'
9031 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9032 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9034 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9036 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9037 _lt_dsymutil='~$DSYMUTIL $lib || :'
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9045 $as_echo_n "checking for ANSI C header files... " >&6; }
9046 if ${ac_cv_header_stdc+:} false; then :
9047 $as_echo_n "(cached) " >&6
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065 ac_cv_header_stdc=yes
9067 ac_cv_header_stdc=no
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 if test $ac_cv_header_stdc = yes; then
9072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9079 $EGREP "memchr" >/dev/null 2>&1; then :
9082 ac_cv_header_stdc=no
9088 if test $ac_cv_header_stdc = yes; then
9089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096 $EGREP "free" >/dev/null 2>&1; then :
9099 ac_cv_header_stdc=no
9105 if test $ac_cv_header_stdc = yes; then
9106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9107 if test "$cross_compiling" = yes; then :
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9114 #if ((' ' & 0x0FF) == 0x020)
9115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9118 # define ISLOWER(c) \
9119 (('a' <= (c) && (c) <= 'i') \
9120 || ('j' <= (c) && (c) <= 'r') \
9121 || ('s' <= (c) && (c) <= 'z'))
9122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9130 for (i = 0; i < 256; i++)
9131 if (XOR (islower (i), ISLOWER (i))
9132 || toupper (i) != TOUPPER (i))
9137 if ac_fn_c_try_run "$LINENO"; then :
9140 ac_cv_header_stdc=no
9142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9143 conftest.$ac_objext conftest.beam conftest.$ac_ext
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9149 $as_echo "$ac_cv_header_stdc" >&6; }
9150 if test $ac_cv_header_stdc = yes; then
9152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9156 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9157 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9158 inttypes.h stdint.h unistd.h
9160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9161 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9163 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9164 cat >>confdefs.h <<_ACEOF
9165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9173 for ac_header in dlfcn.h
9175 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9177 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9178 cat >>confdefs.h <<_ACEOF
9179 #define HAVE_DLFCN_H 1
9189 func_stripname_cnf ()
9192 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9193 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9195 } # func_stripname_cnf
9202 # Check whether --enable-shared was given.
9203 if test "${enable_shared+set}" = set; then :
9204 enableval=$enable_shared; p=${PACKAGE-default}
9206 yes) enable_shared=yes ;;
9207 no) enable_shared=no ;;
9210 # Look at the argument we got. We use all the common list separators.
9211 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9212 for pkg in $enableval; do
9214 if test "X$pkg" = "X$p"; then
9231 # Check whether --enable-static was given.
9232 if test "${enable_static+set}" = set; then :
9233 enableval=$enable_static; p=${PACKAGE-default}
9235 yes) enable_static=yes ;;
9236 no) enable_static=no ;;
9239 # Look at the argument we got. We use all the common list separators.
9240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9241 for pkg in $enableval; do
9243 if test "X$pkg" = "X$p"; then
9272 # Check whether --with-pic was given.
9273 if test "${with_pic+set}" = set; then :
9274 withval=$with_pic; lt_p=${PACKAGE-default}
9276 yes|no) pic_mode=$withval ;;
9279 # Look at the argument we got. We use all the common list separators.
9280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9281 for lt_pkg in $withval; do
9283 if test "X$lt_pkg" = "X$lt_p"; then
9295 test -z "$pic_mode" && pic_mode=default
9303 # Check whether --enable-fast-install was given.
9304 if test "${enable_fast_install+set}" = set; then :
9305 enableval=$enable_fast_install; p=${PACKAGE-default}
9307 yes) enable_fast_install=yes ;;
9308 no) enable_fast_install=no ;;
9310 enable_fast_install=no
9311 # Look at the argument we got. We use all the common list separators.
9312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9313 for pkg in $enableval; do
9315 if test "X$pkg" = "X$p"; then
9316 enable_fast_install=yes
9323 enable_fast_install=yes
9336 # This can be used to rebuild libtool when needed
9337 LIBTOOL_DEPS="$ltmain"
9339 # Always use our own libtool.
9340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9371 test -z "$LN_S" && LN_S="ln -s"
9386 if test -n "${ZSH_VERSION+set}" ; then
9387 setopt NO_GLOB_SUBST
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9391 $as_echo_n "checking for objdir... " >&6; }
9392 if ${lt_cv_objdir+:} false; then :
9393 $as_echo_n "(cached) " >&6
9395 rm -f .libs 2>/dev/null
9396 mkdir .libs 2>/dev/null
9397 if test -d .libs; then
9400 # MS-DOS does not allow filenames that begin with a dot.
9403 rmdir .libs 2>/dev/null
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9406 $as_echo "$lt_cv_objdir" >&6; }
9407 objdir=$lt_cv_objdir
9413 cat >>confdefs.h <<_ACEOF
9414 #define LT_OBJDIR "$lt_cv_objdir/"
9422 # AIX sometimes has problems with the GCC collect2 program. For some
9423 # reason, if we set the COLLECT_NAMES environment variable, the problems
9424 # vanish in a puff of smoke.
9425 if test "X${COLLECT_NAMES+set}" != Xset; then
9427 export COLLECT_NAMES
9434 can_build_shared=yes
9436 # All known linkers require a `.a' archive for static linking (except MSVC,
9437 # which needs '.lib').
9440 with_gnu_ld="$lt_cv_prog_gnu_ld"
9443 old_CFLAGS="$CFLAGS"
9445 # Set sane defaults for various variables
9446 test -z "$CC" && CC=cc
9447 test -z "$LTCC" && LTCC=$CC
9448 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9449 test -z "$LD" && LD=ld
9450 test -z "$ac_objext" && ac_objext=o
9452 for cc_temp in $compiler""; do
9454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9460 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9463 # Only perform the check for file, if the check method requires it
9464 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9465 case $deplibs_check_method in
9467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9469 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9471 $as_echo_n "(cached) " >&6
9475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9478 lt_save_MAGIC_CMD="$MAGIC_CMD"
9479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9481 for ac_dir in $ac_dummy; do
9483 test -z "$ac_dir" && ac_dir=.
9484 if test -f $ac_dir/${ac_tool_prefix}file; then
9485 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9486 if test -n "$file_magic_test_file"; then
9487 case $deplibs_check_method in
9489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9492 $EGREP "$file_magic_regex" > /dev/null; then
9497 *** Warning: the command libtool uses to detect shared libraries,
9498 *** $file_magic_cmd, produces output that libtool cannot recognize.
9499 *** The result is that libtool may fail to recognize shared libraries
9500 *** as such. This will affect the creation of libtool libraries that
9501 *** depend on shared libraries, but programs linked with such libtool
9502 *** libraries will work regardless of this problem. Nevertheless, you
9503 *** may want to report the problem to your system manager and/or to
9504 *** bug-libtool@gnu.org
9514 MAGIC_CMD="$lt_save_MAGIC_CMD"
9519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9520 if test -n "$MAGIC_CMD"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9522 $as_echo "$MAGIC_CMD" >&6; }
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9532 if test -z "$lt_cv_path_MAGIC_CMD"; then
9533 if test -n "$ac_tool_prefix"; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9535 $as_echo_n "checking for file... " >&6; }
9536 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9537 $as_echo_n "(cached) " >&6
9541 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9544 lt_save_MAGIC_CMD="$MAGIC_CMD"
9545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9546 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9547 for ac_dir in $ac_dummy; do
9549 test -z "$ac_dir" && ac_dir=.
9550 if test -f $ac_dir/file; then
9551 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9552 if test -n "$file_magic_test_file"; then
9553 case $deplibs_check_method in
9555 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9558 $EGREP "$file_magic_regex" > /dev/null; then
9563 *** Warning: the command libtool uses to detect shared libraries,
9564 *** $file_magic_cmd, produces output that libtool cannot recognize.
9565 *** The result is that libtool may fail to recognize shared libraries
9566 *** as such. This will affect the creation of libtool libraries that
9567 *** depend on shared libraries, but programs linked with such libtool
9568 *** libraries will work regardless of this problem. Nevertheless, you
9569 *** may want to report the problem to your system manager and/or to
9570 *** bug-libtool@gnu.org
9580 MAGIC_CMD="$lt_save_MAGIC_CMD"
9585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9586 if test -n "$MAGIC_CMD"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9588 $as_echo "$MAGIC_CMD" >&6; }
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9604 # Use C for the default configuration in the libtool script
9608 ac_cpp='$CPP $CPPFLAGS'
9609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9614 # Source file extension for C test sources.
9617 # Object file extension for compiled C test sources.
9621 # Code to be used in simple compile tests
9622 lt_simple_compile_test_code="int some_variable = 0;"
9624 # Code to be used in simple link tests
9625 lt_simple_link_test_code='int main(){return(0);}'
9633 # If no C compiler was specified, use CC.
9636 # If no C compiler flags were specified, use CFLAGS.
9637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9639 # Allow CC to be a program name with arguments.
9642 # Save the default compiler, since it gets overwritten when the other
9643 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9644 compiler_DEFAULT=$CC
9646 # save warnings/boilerplate of simple test code
9647 ac_outfile=conftest.$ac_objext
9648 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9650 _lt_compiler_boilerplate=`cat conftest.err`
9653 ac_outfile=conftest.$ac_objext
9654 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9656 _lt_linker_boilerplate=`cat conftest.err`
9661 ## There is no encapsulation within the following macros, do not change
9662 ## the running order or otherwise move them around unless you know exactly
9663 ## what you are doing...
9664 if test -n "$compiler"; then
9666 lt_prog_compiler_no_builtin_flag=
9668 if test "$GCC" = yes; then
9669 case $cc_basename in
9671 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9673 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9677 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9678 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9679 $as_echo_n "(cached) " >&6
9681 lt_cv_prog_compiler_rtti_exceptions=no
9682 ac_outfile=conftest.$ac_objext
9683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9684 lt_compiler_flag="-fno-rtti -fno-exceptions"
9685 # Insert the option either (1) after the last *FLAGS variable, or
9686 # (2) before a word containing "conftest.", or (3) at the end.
9687 # Note that $ac_compile itself does not contain backslashes and begins
9688 # with a dollar sign (not a hyphen), so the echo should work correctly.
9689 # The option is referenced via a variable to avoid confusing sed.
9690 lt_compile=`echo "$ac_compile" | $SED \
9691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9693 -e 's:$: $lt_compiler_flag:'`
9694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9695 (eval "$lt_compile" 2>conftest.err)
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 if (exit $ac_status) && test -s "$ac_outfile"; then
9700 # The compiler can only warn and ignore the option if not recognized
9701 # So say no if there are warnings other than the usual output.
9702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9705 lt_cv_prog_compiler_rtti_exceptions=yes
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9712 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9714 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9715 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9727 lt_prog_compiler_wl=
9728 lt_prog_compiler_pic=
9729 lt_prog_compiler_static=
9732 if test "$GCC" = yes; then
9733 lt_prog_compiler_wl='-Wl,'
9734 lt_prog_compiler_static='-static'
9738 # All AIX code is PIC.
9739 if test "$host_cpu" = ia64; then
9740 # AIX 5 now supports IA64 processor
9741 lt_prog_compiler_static='-Bstatic'
9748 # see comment about AmigaOS4 .so support
9749 lt_prog_compiler_pic='-fPIC'
9752 # FIXME: we need at least 68020 code to build shared libraries, but
9753 # adding the `-m68020' flag to GCC prevents building anything better,
9755 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9760 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9761 # PIC is the default for these OSes.
9764 mingw* | cygwin* | pw32* | os2* | cegcc*)
9765 # This hack is so that the source file can tell whether it is being
9766 # built for inclusion in a dll (and should export symbols for example).
9767 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9768 # (--disable-auto-import) libraries
9769 lt_prog_compiler_pic='-DDLL_EXPORT'
9772 darwin* | rhapsody*)
9773 # PIC is the default on this platform
9774 # Common symbols not allowed in MH_DYLIB files
9775 lt_prog_compiler_pic='-fno-common'
9779 # PIC is the default for Haiku.
9780 # The "-static" flag exists, but is broken.
9781 lt_prog_compiler_static=
9785 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9786 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9787 # sets the default TLS model and affects inlining.
9793 lt_prog_compiler_pic='-fPIC'
9799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9800 # Instead, we relocate shared libraries at runtime.
9804 # Just because we use GCC doesn't mean we suddenly get shared libraries
9805 # on systems that don't support them.
9806 lt_prog_compiler_can_build_shared=no
9811 # QNX uses GNU C++, but need to define -shared option too, otherwise
9813 lt_prog_compiler_pic='-fPIC -shared'
9817 if test -d /usr/nec; then
9818 lt_prog_compiler_pic=-Kconform_pic
9823 lt_prog_compiler_pic='-fPIC'
9827 case $cc_basename in
9828 nvcc*) # Cuda Compiler Driver 2.2
9829 lt_prog_compiler_wl='-Xlinker '
9830 if test -n "$lt_prog_compiler_pic"; then
9831 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9836 # PORTME Check for flag to pass linker flags through the system compiler.
9839 lt_prog_compiler_wl='-Wl,'
9840 if test "$host_cpu" = ia64; then
9841 # AIX 5 now supports IA64 processor
9842 lt_prog_compiler_static='-Bstatic'
9844 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9848 mingw* | cygwin* | pw32* | os2* | cegcc*)
9849 # This hack is so that the source file can tell whether it is being
9850 # built for inclusion in a dll (and should export symbols for example).
9851 lt_prog_compiler_pic='-DDLL_EXPORT'
9854 hpux9* | hpux10* | hpux11*)
9855 lt_prog_compiler_wl='-Wl,'
9856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9863 lt_prog_compiler_pic='+Z'
9866 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9867 lt_prog_compiler_static='${wl}-a ${wl}archive'
9870 irix5* | irix6* | nonstopux*)
9871 lt_prog_compiler_wl='-Wl,'
9872 # PIC (with -KPIC) is the default.
9873 lt_prog_compiler_static='-non_shared'
9876 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9877 case $cc_basename in
9878 # old Intel for x86_64 which still supported -KPIC.
9880 lt_prog_compiler_wl='-Wl,'
9881 lt_prog_compiler_pic='-KPIC'
9882 lt_prog_compiler_static='-static'
9884 # icc used to be incompatible with GCC.
9885 # ICC 10 doesn't accept -KPIC any more.
9887 lt_prog_compiler_wl='-Wl,'
9888 lt_prog_compiler_pic='-fPIC'
9889 lt_prog_compiler_static='-static'
9891 # Lahey Fortran 8.1.
9893 lt_prog_compiler_wl='-Wl,'
9894 lt_prog_compiler_pic='--shared'
9895 lt_prog_compiler_static='--static'
9898 # NAG Fortran compiler
9899 lt_prog_compiler_wl='-Wl,-Wl,,'
9900 lt_prog_compiler_pic='-PIC'
9901 lt_prog_compiler_static='-Bstatic'
9903 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9904 # Portland Group compilers (*not* the Pentium gcc compiler,
9905 # which looks to be a dead project)
9906 lt_prog_compiler_wl='-Wl,'
9907 lt_prog_compiler_pic='-fpic'
9908 lt_prog_compiler_static='-Bstatic'
9911 lt_prog_compiler_wl='-Wl,'
9912 # All Alpha code is PIC.
9913 lt_prog_compiler_static='-non_shared'
9915 xl* | bgxl* | bgf* | mpixl*)
9916 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_pic='-qpic'
9919 lt_prog_compiler_static='-qstaticlink'
9922 case `$CC -V 2>&1 | sed 5q` in
9923 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9924 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9925 lt_prog_compiler_pic='-KPIC'
9926 lt_prog_compiler_static='-Bstatic'
9927 lt_prog_compiler_wl=''
9929 *Sun\ F* | *Sun*Fortran*)
9930 lt_prog_compiler_pic='-KPIC'
9931 lt_prog_compiler_static='-Bstatic'
9932 lt_prog_compiler_wl='-Qoption ld '
9936 lt_prog_compiler_pic='-KPIC'
9937 lt_prog_compiler_static='-Bstatic'
9938 lt_prog_compiler_wl='-Wl,'
9940 *Intel*\ [CF]*Compiler*)
9941 lt_prog_compiler_wl='-Wl,'
9942 lt_prog_compiler_pic='-fPIC'
9943 lt_prog_compiler_static='-static'
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_pic='-fpic'
9948 lt_prog_compiler_static='-Bstatic'
9956 lt_prog_compiler_pic='-KPIC'
9957 lt_prog_compiler_static='-Bstatic'
9961 # QNX uses GNU C++, but need to define -shared option too, otherwise
9963 lt_prog_compiler_pic='-fPIC -shared'
9966 osf3* | osf4* | osf5*)
9967 lt_prog_compiler_wl='-Wl,'
9968 # All OSF/1 code is PIC.
9969 lt_prog_compiler_static='-non_shared'
9973 lt_prog_compiler_static='-non_shared'
9977 lt_prog_compiler_pic='-KPIC'
9978 lt_prog_compiler_static='-Bstatic'
9979 case $cc_basename in
9980 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9981 lt_prog_compiler_wl='-Qoption ld ';;
9983 lt_prog_compiler_wl='-Wl,';;
9988 lt_prog_compiler_wl='-Qoption ld '
9989 lt_prog_compiler_pic='-PIC'
9990 lt_prog_compiler_static='-Bstatic'
9993 sysv4 | sysv4.2uw2* | sysv4.3*)
9994 lt_prog_compiler_wl='-Wl,'
9995 lt_prog_compiler_pic='-KPIC'
9996 lt_prog_compiler_static='-Bstatic'
10000 if test -d /usr/nec ;then
10001 lt_prog_compiler_pic='-Kconform_pic'
10002 lt_prog_compiler_static='-Bstatic'
10006 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10007 lt_prog_compiler_wl='-Wl,'
10008 lt_prog_compiler_pic='-KPIC'
10009 lt_prog_compiler_static='-Bstatic'
10013 lt_prog_compiler_wl='-Wl,'
10014 lt_prog_compiler_can_build_shared=no
10018 lt_prog_compiler_pic='-pic'
10019 lt_prog_compiler_static='-Bstatic'
10023 lt_prog_compiler_can_build_shared=no
10029 # For platforms which do not support PIC, -DPIC is meaningless:
10031 lt_prog_compiler_pic=
10034 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10039 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10040 if ${lt_cv_prog_compiler_pic+:} false; then :
10041 $as_echo_n "(cached) " >&6
10043 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10046 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10047 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10050 # Check to make sure the PIC flag actually works.
10052 if test -n "$lt_prog_compiler_pic"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10054 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10055 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10056 $as_echo_n "(cached) " >&6
10058 lt_cv_prog_compiler_pic_works=no
10059 ac_outfile=conftest.$ac_objext
10060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10061 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10062 # Insert the option either (1) after the last *FLAGS variable, or
10063 # (2) before a word containing "conftest.", or (3) at the end.
10064 # Note that $ac_compile itself does not contain backslashes and begins
10065 # with a dollar sign (not a hyphen), so the echo should work correctly.
10066 # The option is referenced via a variable to avoid confusing sed.
10067 lt_compile=`echo "$ac_compile" | $SED \
10068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10070 -e 's:$: $lt_compiler_flag:'`
10071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10072 (eval "$lt_compile" 2>conftest.err)
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 if (exit $ac_status) && test -s "$ac_outfile"; then
10077 # The compiler can only warn and ignore the option if not recognized
10078 # So say no if there are warnings other than the usual output.
10079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10082 lt_cv_prog_compiler_pic_works=yes
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10089 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10091 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10092 case $lt_prog_compiler_pic in
10094 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10097 lt_prog_compiler_pic=
10098 lt_prog_compiler_can_build_shared=no
10114 # Check to make sure the static flag actually works.
10116 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10118 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10119 if ${lt_cv_prog_compiler_static_works+:} false; then :
10120 $as_echo_n "(cached) " >&6
10122 lt_cv_prog_compiler_static_works=no
10123 save_LDFLAGS="$LDFLAGS"
10124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10127 # The linker can only warn and ignore the option if not recognized
10128 # So say no if there are warnings
10129 if test -s conftest.err; then
10130 # Append any errors to the config.log.
10131 cat conftest.err 1>&5
10132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10134 if diff conftest.exp conftest.er2 >/dev/null; then
10135 lt_cv_prog_compiler_static_works=yes
10138 lt_cv_prog_compiler_static_works=yes
10142 LDFLAGS="$save_LDFLAGS"
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10146 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10148 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10151 lt_prog_compiler_static=
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10162 if ${lt_cv_prog_compiler_c_o+:} false; then :
10163 $as_echo_n "(cached) " >&6
10165 lt_cv_prog_compiler_c_o=no
10166 $RM -r conftest 2>/dev/null
10170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10172 lt_compiler_flag="-o out/conftest2.$ac_objext"
10173 # Insert the option either (1) after the last *FLAGS variable, or
10174 # (2) before a word containing "conftest.", or (3) at the end.
10175 # Note that $ac_compile itself does not contain backslashes and begins
10176 # with a dollar sign (not a hyphen), so the echo should work correctly.
10177 lt_compile=`echo "$ac_compile" | $SED \
10178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10180 -e 's:$: $lt_compiler_flag:'`
10181 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10182 (eval "$lt_compile" 2>out/conftest.err)
10184 cat out/conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10188 # The compiler can only warn and ignore the option if not recognized
10189 # So say no if there are warnings
10190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10193 lt_cv_prog_compiler_c_o=yes
10198 # SGI C++ compiler will create directory out/ii_files/ for
10199 # template instantiation
10200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10201 $RM out/* && rmdir out
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10216 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10217 if ${lt_cv_prog_compiler_c_o+:} false; then :
10218 $as_echo_n "(cached) " >&6
10220 lt_cv_prog_compiler_c_o=no
10221 $RM -r conftest 2>/dev/null
10225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10227 lt_compiler_flag="-o out/conftest2.$ac_objext"
10228 # Insert the option either (1) after the last *FLAGS variable, or
10229 # (2) before a word containing "conftest.", or (3) at the end.
10230 # Note that $ac_compile itself does not contain backslashes and begins
10231 # with a dollar sign (not a hyphen), so the echo should work correctly.
10232 lt_compile=`echo "$ac_compile" | $SED \
10233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10235 -e 's:$: $lt_compiler_flag:'`
10236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10237 (eval "$lt_compile" 2>out/conftest.err)
10239 cat out/conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10243 # The compiler can only warn and ignore the option if not recognized
10244 # So say no if there are warnings
10245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10246 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10247 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10248 lt_cv_prog_compiler_c_o=yes
10253 # SGI C++ compiler will create directory out/ii_files/ for
10254 # template instantiation
10255 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10256 $RM out/* && rmdir out
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10263 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10268 hard_links="nottested"
10269 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10270 # do not overwrite the value of need_locks provided by the user
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10272 $as_echo_n "checking if we can lock with hard links... " >&6; }
10275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10277 ln conftest.a conftest.b 2>&5 || hard_links=no
10278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10280 $as_echo "$hard_links" >&6; }
10281 if test "$hard_links" = no; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10283 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10296 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10299 allow_undefined_flag=
10300 always_export_symbols=no
10302 archive_expsym_cmds=
10303 compiler_needs_object=no
10304 enable_shared_with_static_runtimes=no
10305 export_dynamic_flag_spec=
10306 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10307 hardcode_automatic=no
10309 hardcode_direct_absolute=no
10310 hardcode_libdir_flag_spec=
10311 hardcode_libdir_separator=
10312 hardcode_minus_L=no
10313 hardcode_shlibpath_var=unsupported
10315 link_all_deplibs=unknown
10317 module_expsym_cmds=
10318 old_archive_from_new_cmds=
10319 old_archive_from_expsyms_cmds=
10320 thread_safe_flag_spec=
10321 whole_archive_flag_spec=
10322 # include_expsyms should be a list of space-separated symbols to be *always*
10323 # included in the symbol list
10325 # exclude_expsyms can be an extended regexp of symbols to exclude
10326 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10327 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10328 # as well as any symbol that contains `d'.
10329 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10330 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10331 # platforms (ab)use it in PIC code, but their linkers get confused if
10332 # the symbol is explicitly referenced. Since portable code cannot
10333 # rely on this symbol name, it's probably fine to never include it in
10334 # preloaded symbol tables.
10335 # Exclude shared library initialization/finalization symbols.
10336 extract_expsyms_cmds=
10339 cygwin* | mingw* | pw32* | cegcc*)
10340 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10341 # When not using gcc, we currently assume that we are using
10342 # Microsoft Visual C++.
10343 if test "$GCC" != yes; then
10348 # we just hope/assume this is gcc and not c89 (= MSVC++)
10354 linux* | k*bsd*-gnu | gnu*)
10355 link_all_deplibs=no
10361 # On some targets, GNU ld is compatible enough with the native linker
10362 # that we're better off using the native interface for both.
10363 lt_use_gnu_ld_interface=no
10364 if test "$with_gnu_ld" = yes; then
10367 # The AIX port of GNU ld has always aspired to compatibility
10368 # with the native linker. However, as the warning in the GNU ld
10369 # block says, versions before 2.19.5* couldn't really create working
10370 # shared libraries, regardless of the interface used.
10371 case `$LD -v 2>&1` in
10372 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10373 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10374 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10376 lt_use_gnu_ld_interface=yes
10381 lt_use_gnu_ld_interface=yes
10386 if test "$lt_use_gnu_ld_interface" = yes; then
10387 # If archive_cmds runs LD, not CC, wlarc should be empty
10390 # Set some defaults for GNU ld with shared library support. These
10391 # are reset later if shared libraries are not supported. Putting them
10392 # here allows them to be overridden if necessary.
10393 runpath_var=LD_RUN_PATH
10394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10395 export_dynamic_flag_spec='${wl}--export-dynamic'
10396 # ancient GNU ld didn't support --whole-archive et. al.
10397 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10398 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10400 whole_archive_flag_spec=
10402 supports_anon_versioning=no
10403 case `$LD -v 2>&1` in
10404 *GNU\ gold*) supports_anon_versioning=yes ;;
10405 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10406 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10407 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10408 *\ 2.11.*) ;; # other 2.11 versions
10409 *) supports_anon_versioning=yes ;;
10412 # See if GNU ld supports shared libraries.
10415 # On AIX/PPC, the GNU linker is very broken
10416 if test "$host_cpu" != ia64; then
10420 *** Warning: the GNU linker, at least up to release 2.19, is reported
10421 *** to be unable to reliably create shared libraries on AIX.
10422 *** Therefore, libtool is disabling shared libraries support. If you
10423 *** really care for shared libraries, you may want to install binutils
10424 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10425 *** You will then need to restart the configuration process.
10434 # see comment about AmigaOS4 .so support
10435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436 archive_expsym_cmds=''
10439 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)'
10440 hardcode_libdir_flag_spec='-L$libdir'
10441 hardcode_minus_L=yes
10447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10448 allow_undefined_flag=unsupported
10449 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10450 # support --undefined. This deserves some investigation. FIXME
10451 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10457 cygwin* | mingw* | pw32* | cegcc*)
10458 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10459 # as there is no search path for DLLs.
10460 hardcode_libdir_flag_spec='-L$libdir'
10461 export_dynamic_flag_spec='${wl}--export-all-symbols'
10462 allow_undefined_flag=unsupported
10463 always_export_symbols=no
10464 enable_shared_with_static_runtimes=yes
10465 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'
10466 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10468 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10470 # If the export-symbols file already is a .def file (1st line
10471 # is EXPORTS), use it as is; otherwise, prepend...
10472 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10473 cp $export_symbols $output_objdir/$soname.def;
10475 echo EXPORTS > $output_objdir/$soname.def;
10476 cat $export_symbols >> $output_objdir/$soname.def;
10478 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486 link_all_deplibs=yes
10491 hardcode_shlibpath_var=no
10492 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10493 export_dynamic_flag_spec='${wl}-E'
10494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10495 # Instead, shared libraries are loaded at an image base (0x10000000 by
10496 # default) and relocated if they conflict, which is a slow very memory
10497 # consuming and fragmenting process. To avoid this, we pick a random,
10498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10501 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'
10504 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10506 if test "$host_os" = linux-dietlibc; then
10507 case $cc_basename in
10508 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10511 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10512 && test "$tmp_diet" = no
10514 tmp_addflag=' $pic_flag'
10515 tmp_sharedflag='-shared'
10516 case $cc_basename,$host_cpu in
10517 pgcc*) # Portland Group C compiler
10518 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'
10519 tmp_addflag=' $pic_flag'
10521 pgf77* | pgf90* | pgf95* | pgfortran*)
10522 # Portland Group f77 and f90 compilers
10523 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'
10524 tmp_addflag=' $pic_flag -Mnomain' ;;
10525 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10526 tmp_addflag=' -i_dynamic' ;;
10527 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10528 tmp_addflag=' -i_dynamic -nofor_main' ;;
10529 ifc* | ifort*) # Intel Fortran compiler
10530 tmp_addflag=' -nofor_main' ;;
10531 lf95*) # Lahey Fortran 8.1
10532 whole_archive_flag_spec=
10533 tmp_sharedflag='--shared' ;;
10534 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10535 tmp_sharedflag='-qmkshrobj'
10537 nvcc*) # Cuda Compiler Driver 2.2
10538 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'
10539 compiler_needs_object=yes
10542 case `$CC -V 2>&1 | sed 5q` in
10543 *Sun\ C*) # Sun C 5.9
10544 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'
10545 compiler_needs_object=yes
10546 tmp_sharedflag='-G' ;;
10547 *Sun\ F*) # Sun Fortran 8.3
10548 tmp_sharedflag='-G' ;;
10550 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10552 if test "x$supports_anon_versioning" = xyes; then
10553 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10554 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10555 echo "local: *; };" >> $output_objdir/$libname.ver~
10556 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10559 case $cc_basename in
10560 xlf* | bgf* | bgxlf* | mpixlf*)
10561 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10562 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10564 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10565 if test "x$supports_anon_versioning" = xyes; then
10566 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10568 echo "local: *; };" >> $output_objdir/$libname.ver~
10569 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10578 netbsd* | netbsdelf*-gnu)
10579 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10580 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10584 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10589 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10593 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10594 *** create shared libraries on Solaris systems. Therefore, libtool
10595 *** is disabling shared libraries support. We urge you to upgrade GNU
10596 *** binutils to release 2.9.1 or newer. Another option is to modify
10597 *** your PATH or compiler configuration so that the native linker is
10598 *** used, and then restart.
10601 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10602 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10610 case `$LD -v 2>&1` in
10611 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10615 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10616 *** reliably create shared libraries on SCO systems. Therefore, libtool
10617 *** is disabling shared libraries support. We urge you to upgrade GNU
10618 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10619 *** your PATH or compiler configuration so that the native linker is
10620 *** used, and then restart.
10625 # For security reasons, it is highly recommended that you always
10626 # use absolute paths for naming shared libraries, and exclude the
10627 # DT_RUNPATH tag from executables and libraries. But doing so
10628 # requires that you compile everything twice, which is a pain.
10629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10632 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10641 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_direct=yes
10644 hardcode_shlibpath_var=no
10648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10650 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10657 if test "$ld_shlibs" = no; then
10659 hardcode_libdir_flag_spec=
10660 export_dynamic_flag_spec=
10661 whole_archive_flag_spec=
10664 # PORTME fill in a description of your system's linker (not GNU ld)
10667 allow_undefined_flag=unsupported
10668 always_export_symbols=yes
10669 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'
10670 # Note: this linker hardcodes the directories in LIBPATH if there
10671 # are no directories specified by -L.
10672 hardcode_minus_L=yes
10673 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10674 # Neither direct hardcoding nor static linking is supported with a
10676 hardcode_direct=unsupported
10681 if test "$host_cpu" = ia64; then
10682 # On IA64, the linker does run time linking by default, so we don't
10683 # have to do anything special.
10684 aix_use_runtimelinking=no
10685 exp_sym_flag='-Bexport'
10688 # If we're using GNU nm, then we don't want the "-C" option.
10689 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10690 # Also, AIX nm treats weak defined symbols like other global
10691 # defined symbols, whereas GNU nm marks them as "W".
10692 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10693 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'
10695 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'
10697 aix_use_runtimelinking=no
10699 # Test if we are trying to use run time linking or normal
10700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10701 # need to do runtime linking.
10702 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10703 for ld_flag in $LDFLAGS; do
10704 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10705 aix_use_runtimelinking=yes
10712 exp_sym_flag='-bexport'
10713 no_entry_flag='-bnoentry'
10716 # When large executables or shared objects are built, AIX ld can
10717 # have problems creating the table of contents. If linking a library
10718 # or program results in "error TOC overflow" add -mminimal-toc to
10719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10723 hardcode_direct=yes
10724 hardcode_direct_absolute=yes
10725 hardcode_libdir_separator=':'
10726 link_all_deplibs=yes
10727 file_list_spec='${wl}-f,'
10729 if test "$GCC" = yes; then
10730 case $host_os in aix4.[012]|aix4.[012].*)
10731 # We only want to do this on AIX 4.2 and lower, the check
10732 # below for broken collect2 doesn't work under 4.3+
10733 collect2name=`${CC} -print-prog-name=collect2`
10734 if test -f "$collect2name" &&
10735 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10737 # We have reworked collect2
10740 # We have old collect2
10741 hardcode_direct=unsupported
10742 # It fails to find uninstalled libraries when the uninstalled
10743 # path is not listed in the libpath. Setting hardcode_minus_L
10744 # to unsupported forces relinking
10745 hardcode_minus_L=yes
10746 hardcode_libdir_flag_spec='-L$libdir'
10747 hardcode_libdir_separator=
10751 shared_flag='-shared'
10752 if test "$aix_use_runtimelinking" = yes; then
10753 shared_flag="$shared_flag "'${wl}-G'
10755 link_all_deplibs=no
10758 if test "$host_cpu" = ia64; then
10759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10760 # chokes on -Wl,-G. The following line is correct:
10763 if test "$aix_use_runtimelinking" = yes; then
10764 shared_flag='${wl}-G'
10766 shared_flag='${wl}-bM:SRE'
10771 export_dynamic_flag_spec='${wl}-bexpall'
10772 # It seems that -bexpall does not export symbols beginning with
10773 # underscore (_), so it is better to generate a list of symbols to export.
10774 always_export_symbols=yes
10775 if test "$aix_use_runtimelinking" = yes; then
10776 # Warning - without using the other runtime loading flags (-brtl),
10777 # -berok will link without error, but may produce a broken library.
10778 allow_undefined_flag='-berok'
10779 # Determine the default libpath from the value encoded in an
10780 # empty executable.
10781 if test "${lt_cv_aix_libpath+set}" = set; then
10782 aix_libpath=$lt_cv_aix_libpath
10784 if ${lt_cv_aix_libpath_+:} false; then :
10785 $as_echo_n "(cached) " >&6
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10798 if ac_fn_c_try_link "$LINENO"; then :
10800 lt_aix_libpath_sed='
10801 /Import File Strings/,/^$/ {
10803 s/^0 *\([^ ]*\) *$/\1/
10807 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10808 # Check for a 64-bit object if we didn't find anything.
10809 if test -z "$lt_cv_aix_libpath_"; then
10810 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10813 rm -f core conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
10815 if test -z "$lt_cv_aix_libpath_"; then
10816 lt_cv_aix_libpath_="/usr/lib:/lib"
10821 aix_libpath=$lt_cv_aix_libpath_
10824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10825 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"
10827 if test "$host_cpu" = ia64; then
10828 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10829 allow_undefined_flag="-z nodefs"
10830 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"
10832 # Determine the default libpath from the value encoded in an
10833 # empty executable.
10834 if test "${lt_cv_aix_libpath+set}" = set; then
10835 aix_libpath=$lt_cv_aix_libpath
10837 if ${lt_cv_aix_libpath_+:} false; then :
10838 $as_echo_n "(cached) " >&6
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10851 if ac_fn_c_try_link "$LINENO"; then :
10853 lt_aix_libpath_sed='
10854 /Import File Strings/,/^$/ {
10856 s/^0 *\([^ ]*\) *$/\1/
10860 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10861 # Check for a 64-bit object if we didn't find anything.
10862 if test -z "$lt_cv_aix_libpath_"; then
10863 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 if test -z "$lt_cv_aix_libpath_"; then
10869 lt_cv_aix_libpath_="/usr/lib:/lib"
10874 aix_libpath=$lt_cv_aix_libpath_
10877 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10878 # Warning - without using the other run time loading flags,
10879 # -berok will link without error, but may produce a broken library.
10880 no_undefined_flag=' ${wl}-bernotok'
10881 allow_undefined_flag=' ${wl}-berok'
10882 if test "$with_gnu_ld" = yes; then
10883 # We only use this code for GNU lds that support --whole-archive.
10884 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10886 # Exported symbols can be pulled into shared objects from archives
10887 whole_archive_flag_spec='$convenience'
10889 archive_cmds_need_lc=yes
10890 # This is similar to how AIX traditionally builds its shared libraries.
10891 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'
10899 # see comment about AmigaOS4 .so support
10900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10901 archive_expsym_cmds=''
10904 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)'
10905 hardcode_libdir_flag_spec='-L$libdir'
10906 hardcode_minus_L=yes
10912 export_dynamic_flag_spec=-rdynamic
10915 cygwin* | mingw* | pw32* | cegcc*)
10916 # When not using gcc, we currently assume that we are using
10917 # Microsoft Visual C++.
10918 # hardcode_libdir_flag_spec is actually meaningless, as there is
10919 # no search path for DLLs.
10920 case $cc_basename in
10923 hardcode_libdir_flag_spec=' '
10924 allow_undefined_flag=unsupported
10925 always_export_symbols=yes
10927 # Tell ltmain to make .lib files, not .a files.
10929 # Tell ltmain to make .dll files, not .so files.
10931 # FIXME: Setting linknames here is a bad hack.
10932 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10933 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10934 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10936 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10938 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10940 # The linker will not automatically build a static lib if we build a DLL.
10941 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10942 enable_shared_with_static_runtimes=yes
10943 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10944 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10946 old_postinstall_cmds='chmod 644 $oldlib'
10947 postlink_cmds='lt_outputfile="@OUTPUT@"~
10948 lt_tool_outputfile="@TOOL_OUTPUT@"~
10949 case $lt_outputfile in
10952 lt_outputfile="$lt_outputfile.exe"
10953 lt_tool_outputfile="$lt_tool_outputfile.exe"
10956 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10957 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10958 $RM "$lt_outputfile.manifest";
10962 # Assume MSVC wrapper
10963 hardcode_libdir_flag_spec=' '
10964 allow_undefined_flag=unsupported
10965 # Tell ltmain to make .lib files, not .a files.
10967 # Tell ltmain to make .dll files, not .so files.
10969 # FIXME: Setting linknames here is a bad hack.
10970 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10971 # The linker will automatically build a .lib file if we build a DLL.
10972 old_archive_from_new_cmds='true'
10973 # FIXME: Should let the user specify the lib program.
10974 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10975 enable_shared_with_static_runtimes=yes
10980 darwin* | rhapsody*)
10983 archive_cmds_need_lc=no
10985 hardcode_automatic=yes
10986 hardcode_shlibpath_var=unsupported
10987 if test "$lt_cv_ld_force_load" = "yes"; then
10988 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\"`'
10991 whole_archive_flag_spec=''
10993 link_all_deplibs=yes
10994 allow_undefined_flag="$_lt_dar_allow_undefined"
10995 case $cc_basename in
10996 ifort*) _lt_dar_can_shared=yes ;;
10997 *) _lt_dar_can_shared=$GCC ;;
10999 if test "$_lt_dar_can_shared" = "yes"; then
11000 output_verbose_link_cmd=func_echo_all
11001 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11002 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11003 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}"
11004 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}"
11013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11014 hardcode_libdir_flag_spec='-L$libdir'
11015 hardcode_shlibpath_var=no
11018 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11019 # support. Future versions do this automatically, but an explicit c++rt0.o
11020 # does not break anything, and helps significantly (at the cost of a little
11023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11024 hardcode_libdir_flag_spec='-R$libdir'
11025 hardcode_direct=yes
11026 hardcode_shlibpath_var=no
11029 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11031 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11032 hardcode_direct=yes
11033 hardcode_minus_L=yes
11034 hardcode_shlibpath_var=no
11037 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11038 freebsd* | dragonfly*)
11039 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11040 hardcode_libdir_flag_spec='-R$libdir'
11041 hardcode_direct=yes
11042 hardcode_shlibpath_var=no
11046 if test "$GCC" = yes; then
11047 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'
11049 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'
11051 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11052 hardcode_libdir_separator=:
11053 hardcode_direct=yes
11055 # hardcode_minus_L: Not really in the search PATH,
11056 # but as the default location of the library.
11057 hardcode_minus_L=yes
11058 export_dynamic_flag_spec='${wl}-E'
11062 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11063 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11067 if test "$with_gnu_ld" = no; then
11068 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11069 hardcode_libdir_separator=:
11070 hardcode_direct=yes
11071 hardcode_direct_absolute=yes
11072 export_dynamic_flag_spec='${wl}-E'
11073 # hardcode_minus_L: Not really in the search PATH,
11074 # but as the default location of the library.
11075 hardcode_minus_L=yes
11080 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11083 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11086 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11089 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11102 # Older versions of the 11.00 compiler do not understand -b yet
11103 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11105 $as_echo_n "checking if $CC understands -b... " >&6; }
11106 if ${lt_cv_prog_compiler__b+:} false; then :
11107 $as_echo_n "(cached) " >&6
11109 lt_cv_prog_compiler__b=no
11110 save_LDFLAGS="$LDFLAGS"
11111 LDFLAGS="$LDFLAGS -b"
11112 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11113 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11114 # The linker can only warn and ignore the option if not recognized
11115 # So say no if there are warnings
11116 if test -s conftest.err; then
11117 # Append any errors to the config.log.
11118 cat conftest.err 1>&5
11119 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11121 if diff conftest.exp conftest.er2 >/dev/null; then
11122 lt_cv_prog_compiler__b=yes
11125 lt_cv_prog_compiler__b=yes
11129 LDFLAGS="$save_LDFLAGS"
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11133 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11135 if test x"$lt_cv_prog_compiler__b" = xyes; then
11136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11138 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11144 if test "$with_gnu_ld" = no; then
11145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11146 hardcode_libdir_separator=:
11151 hardcode_shlibpath_var=no
11154 hardcode_direct=yes
11155 hardcode_direct_absolute=yes
11156 export_dynamic_flag_spec='${wl}-E'
11158 # hardcode_minus_L: Not really in the search PATH,
11159 # but as the default location of the library.
11160 hardcode_minus_L=yes
11166 irix5* | irix6* | nonstopux*)
11167 if test "$GCC" = yes; then
11168 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'
11169 # Try to use the -exported_symbol ld option, if it does not
11170 # work, assume that -exports_file does not work either and
11171 # implicitly export all symbols.
11172 # This should be the same for all languages, so no per-tag cache variable.
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11174 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11175 if ${lt_cv_irix_exported_symbol+:} false; then :
11176 $as_echo_n "(cached) " >&6
11178 save_LDFLAGS="$LDFLAGS"
11179 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182 int foo (void) { return 0; }
11184 if ac_fn_c_try_link "$LINENO"; then :
11185 lt_cv_irix_exported_symbol=yes
11187 lt_cv_irix_exported_symbol=no
11189 rm -f core conftest.err conftest.$ac_objext \
11190 conftest$ac_exeext conftest.$ac_ext
11191 LDFLAGS="$save_LDFLAGS"
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11194 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11195 if test "$lt_cv_irix_exported_symbol" = yes; then
11196 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'
11199 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'
11200 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'
11202 archive_cmds_need_lc='no'
11203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11204 hardcode_libdir_separator=:
11206 link_all_deplibs=yes
11209 netbsd* | netbsdelf*-gnu)
11210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11213 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11215 hardcode_libdir_flag_spec='-R$libdir'
11216 hardcode_direct=yes
11217 hardcode_shlibpath_var=no
11221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11222 hardcode_direct=yes
11223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11224 hardcode_libdir_separator=:
11225 hardcode_shlibpath_var=no
11232 if test -f /usr/libexec/ld.so; then
11233 hardcode_direct=yes
11234 hardcode_shlibpath_var=no
11235 hardcode_direct_absolute=yes
11236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11238 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11239 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11240 export_dynamic_flag_spec='${wl}-E'
11243 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11245 hardcode_libdir_flag_spec='-R$libdir'
11248 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11249 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11259 hardcode_libdir_flag_spec='-L$libdir'
11260 hardcode_minus_L=yes
11261 allow_undefined_flag=unsupported
11262 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'
11263 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11267 if test "$GCC" = yes; then
11268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11269 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'
11271 allow_undefined_flag=' -expect_unresolved \*'
11272 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'
11274 archive_cmds_need_lc='no'
11275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11276 hardcode_libdir_separator=:
11279 osf4* | osf5*) # as osf3* with the addition of -msym flag
11280 if test "$GCC" = yes; then
11281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11282 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'
11283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11285 allow_undefined_flag=' -expect_unresolved \*'
11286 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'
11287 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~
11288 $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'
11290 # Both c and cxx compiler support -rpath directly
11291 hardcode_libdir_flag_spec='-rpath $libdir'
11293 archive_cmds_need_lc='no'
11294 hardcode_libdir_separator=:
11298 no_undefined_flag=' -z defs'
11299 if test "$GCC" = yes; then
11301 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303 $CC -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'
11305 case `$CC -V 2>&1` in
11308 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11310 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11314 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11316 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11320 hardcode_libdir_flag_spec='-R$libdir'
11321 hardcode_shlibpath_var=no
11323 solaris2.[0-5] | solaris2.[0-5].*) ;;
11325 # The compiler driver will combine and reorder linker options,
11326 # but understands `-z linker_flag'. GCC discards it without `$wl',
11327 # but is careful enough not to reorder.
11328 # Supported since Solaris 2.6 (maybe 2.5.1?)
11329 if test "$GCC" = yes; then
11330 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11332 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11336 link_all_deplibs=yes
11340 if test "x$host_vendor" = xsequent; then
11341 # Use $CC to link under sequent, because it throws in some extra .o
11342 # files that make .init and .fini sections work.
11343 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11345 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_libdir_flag_spec='-L$libdir'
11348 hardcode_direct=yes
11349 hardcode_minus_L=yes
11350 hardcode_shlibpath_var=no
11354 case $host_vendor in
11356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11357 hardcode_direct=yes # is this really true???
11360 ## LD is ld it makes a PLAMLIB
11361 ## CC just makes a GrossModule.
11362 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11363 reload_cmds='$CC -r -o $output$reload_objs'
11367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11368 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11371 runpath_var='LD_RUN_PATH'
11372 hardcode_shlibpath_var=no
11376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377 hardcode_shlibpath_var=no
11378 export_dynamic_flag_spec='-Bexport'
11382 if test -d /usr/nec; then
11383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11384 hardcode_shlibpath_var=no
11385 runpath_var=LD_RUN_PATH
11386 hardcode_runpath_var=yes
11391 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11392 no_undefined_flag='${wl}-z,text'
11393 archive_cmds_need_lc=no
11394 hardcode_shlibpath_var=no
11395 runpath_var='LD_RUN_PATH'
11397 if test "$GCC" = yes; then
11398 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 sysv5* | sco3.2v5* | sco5v6*)
11407 # Note: We can NOT use -z defs as we might desire, because we do not
11408 # link with -lc, and that would cause any symbols used from libc to
11409 # always be unresolved, which means just about no library would
11410 # ever link correctly. If we're not using GNU ld we use -z text
11411 # though, which does catch some bad symbols but isn't as heavy-handed
11413 no_undefined_flag='${wl}-z,text'
11414 allow_undefined_flag='${wl}-z,nodefs'
11415 archive_cmds_need_lc=no
11416 hardcode_shlibpath_var=no
11417 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11418 hardcode_libdir_separator=':'
11419 link_all_deplibs=yes
11420 export_dynamic_flag_spec='${wl}-Bexport'
11421 runpath_var='LD_RUN_PATH'
11423 if test "$GCC" = yes; then
11424 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11425 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11427 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11428 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11434 hardcode_libdir_flag_spec='-L$libdir'
11435 hardcode_shlibpath_var=no
11443 if test x$host_vendor = xsni; then
11445 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11446 export_dynamic_flag_spec='${wl}-Blargedynsym'
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11453 $as_echo "$ld_shlibs" >&6; }
11454 test "$ld_shlibs" = no && can_build_shared=no
11456 with_gnu_ld=$with_gnu_ld
11473 # Do we need to explicitly link libc?
11475 case "x$archive_cmds_need_lc" in
11477 # Assume -lc should be added
11478 archive_cmds_need_lc=yes
11480 if test "$enable_shared" = yes && test "$GCC" = yes; then
11481 case $archive_cmds in
11483 # FIXME: we may have to deal with multi-command sequences.
11486 # Test whether the compiler implicitly links with -lc since on some
11487 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11488 # to ld, don't add -lc before -lgcc.
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11490 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11491 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11492 $as_echo_n "(cached) " >&6
11495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11498 (eval $ac_compile) 2>&5
11500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11501 test $ac_status = 0; } 2>conftest.err; then
11504 libobjs=conftest.$ac_objext
11506 wl=$lt_prog_compiler_wl
11507 pic_flag=$lt_prog_compiler_pic
11513 lt_save_allow_undefined_flag=$allow_undefined_flag
11514 allow_undefined_flag=
11515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11516 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11519 test $ac_status = 0; }
11521 lt_cv_archive_cmds_need_lc=no
11523 lt_cv_archive_cmds_need_lc=yes
11525 allow_undefined_flag=$lt_save_allow_undefined_flag
11527 cat conftest.err 1>&5
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11533 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11534 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11693 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11695 if test "$GCC" = yes; then
11697 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11698 *) lt_awk_arg="/^libraries:/" ;;
11701 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11702 *) lt_sed_strip_eq="s,=/,/,g" ;;
11704 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11705 case $lt_search_path_spec in
11707 # if the path contains ";" then we assume it to be the separator
11708 # otherwise default to the standard path separator (i.e. ":") - it is
11709 # assumed that no part of a normal pathname contains ";" but that should
11710 # okay in the real world where ";" in dirpaths is itself problematic.
11711 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11717 # Ok, now we have the path, separated by spaces, we can step through it
11718 # and add multilib dir if necessary.
11719 lt_tmp_lt_search_path_spec=
11720 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11721 for lt_sys_path in $lt_search_path_spec; do
11722 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11725 test -d "$lt_sys_path" && \
11726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11729 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11730 BEGIN {RS=" "; FS="/|\n";} {
11733 for (lt_i = NF; lt_i > 0; lt_i--) {
11734 if ($lt_i != "" && $lt_i != ".") {
11735 if ($lt_i == "..") {
11738 if (lt_count == 0) {
11739 lt_foo="/" $lt_i lt_foo;
11746 if (lt_foo != "") { lt_freq[lt_foo]++; }
11747 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11749 # AWK program above erroneously prepends '/' to C:/dos/paths
11752 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11753 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11755 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11759 library_names_spec=
11760 libname_spec='lib$name'
11764 postuninstall_cmds=
11768 shlibpath_overrides_runpath=unknown
11770 dynamic_linker="$host_os ld.so"
11771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11772 need_lib_prefix=unknown
11773 hardcode_into_libs=no
11775 # when you set need_version to no, make sure it does not cause -set_version
11776 # flags to be left without arguments
11777 need_version=unknown
11781 version_type=linux # correct to gnu/linux during the next big refactor
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11783 shlibpath_var=LIBPATH
11785 # AIX 3 has no versioning support, so we append a major version to the name.
11786 soname_spec='${libname}${release}${shared_ext}$major'
11790 version_type=linux # correct to gnu/linux during the next big refactor
11793 hardcode_into_libs=yes
11794 if test "$host_cpu" = ia64; then
11795 # AIX 5 supports IA64
11796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11797 shlibpath_var=LD_LIBRARY_PATH
11799 # With GCC up to 2.95.x, collect2 would create an import file
11800 # for dependence libraries. The import file would start with
11801 # the line `#! .'. This would cause the generated library to
11802 # depend on `.', always an invalid library. This was fixed in
11803 # development snapshots of GCC prior to 3.0.
11805 aix4 | aix4.[01] | aix4.[01].*)
11806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11808 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11811 can_build_shared=no
11815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11816 # soname into executable. Probably we can add versioning support to
11817 # collect2, so additional links can be useful in future.
11818 if test "$aix_use_runtimelinking" = yes; then
11819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11820 # instead of lib<name>.a to let people know that these are not
11821 # typical AIX shared libraries.
11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824 # We preserve .a as extension for shared libraries through AIX4.2
11825 # and later when we are not doing run time linking.
11826 library_names_spec='${libname}${release}.a $libname.a'
11827 soname_spec='${libname}${release}${shared_ext}$major'
11829 shlibpath_var=LIBPATH
11836 # Since July 2007 AmigaOS4 officially supports .so libraries.
11837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841 library_names_spec='$libname.ixlibrary $libname.a'
11842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11843 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'
11849 library_names_spec='${libname}${shared_ext}'
11850 dynamic_linker="$host_os ld.so"
11851 shlibpath_var=LIBRARY_PATH
11855 version_type=linux # correct to gnu/linux during the next big refactor
11857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 soname_spec='${libname}${release}${shared_ext}$major'
11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11863 # the default ld.so.conf also contains /usr/contrib/lib and
11864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11865 # libtool to hard-code these into programs
11868 cygwin* | mingw* | pw32* | cegcc*)
11869 version_type=windows
11874 case $GCC,$cc_basename in
11877 library_names_spec='$libname.dll.a'
11878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11879 postinstall_cmds='base_file=`basename \${file}`~
11880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11881 dldir=$destdir/`dirname \$dlpath`~
11882 test -d \$dldir || mkdir -p \$dldir~
11883 $install_prog $dir/$dlname \$dldir/$dlname~
11884 chmod a+x \$dldir/$dlname~
11885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11889 dlpath=$dir/\$dldll~
11891 shlibpath_overrides_runpath=yes
11895 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11896 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11898 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11901 # MinGW DLLs use traditional 'lib' prefix
11902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11905 # pw32 DLLs use 'pw' prefix rather than 'lib'
11906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909 dynamic_linker='Win32 ld.exe'
11914 libname_spec='$name'
11915 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11916 library_names_spec='${libname}.dll.lib'
11920 sys_lib_search_path_spec=
11923 for lt_path in $LIB
11926 # Let DOS variable expansion print the short 8.3 style file name.
11927 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11928 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11931 # Convert to MSYS style.
11932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11935 # Convert to unix form, then to dos form, then back to unix form
11936 # but this time dos style (no spaces!) so that the unix form looks
11937 # like /cygdrive/c/PROGRA~1:/cygdr...
11938 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11939 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11940 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11943 sys_lib_search_path_spec="$LIB"
11944 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11945 # It is most probably a Windows format PATH.
11946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11950 # FIXME: find the short name or the path components, as spaces are
11951 # common. (e.g. "Program Files" -> "PROGRA~1")
11955 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11956 postinstall_cmds='base_file=`basename \${file}`~
11957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11958 dldir=$destdir/`dirname \$dlpath`~
11959 test -d \$dldir || mkdir -p \$dldir~
11960 $install_prog $dir/$dlname \$dldir/$dlname'
11961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11962 dlpath=$dir/\$dldll~
11964 shlibpath_overrides_runpath=yes
11965 dynamic_linker='Win32 link.exe'
11969 # Assume MSVC wrapper
11970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11971 dynamic_linker='Win32 ld.exe'
11974 # FIXME: first we should search . and the directory the executable is in
11978 darwin* | rhapsody*)
11979 dynamic_linker="$host_os dyld"
11980 version_type=darwin
11983 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11984 soname_spec='${libname}${release}${major}$shared_ext'
11985 shlibpath_overrides_runpath=yes
11986 shlibpath_var=DYLD_LIBRARY_PATH
11987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11989 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11994 version_type=linux # correct to gnu/linux during the next big refactor
11997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11998 soname_spec='${libname}${release}${shared_ext}$major'
11999 shlibpath_var=LD_LIBRARY_PATH
12002 freebsd* | dragonfly*)
12003 # DragonFly does not have aout. When/if they implement a new
12004 # versioning mechanism, adjust this.
12005 if test -x /usr/bin/objformat; then
12006 objformat=`/usr/bin/objformat`
12009 freebsd[23].*) objformat=aout ;;
12010 *) objformat=elf ;;
12013 version_type=freebsd-$objformat
12014 case $version_type in
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12025 shlibpath_var=LD_LIBRARY_PATH
12028 shlibpath_overrides_runpath=yes
12030 freebsd3.[01]* | freebsdelf3.[01]*)
12031 shlibpath_overrides_runpath=yes
12032 hardcode_into_libs=yes
12034 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12035 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12036 shlibpath_overrides_runpath=no
12037 hardcode_into_libs=yes
12039 *) # from 4.6 on, and DragonFly
12040 shlibpath_overrides_runpath=yes
12041 hardcode_into_libs=yes
12047 version_type=linux # correct to gnu/linux during the next big refactor
12050 dynamic_linker="$host_os runtime_loader"
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12052 soname_spec='${libname}${release}${shared_ext}$major'
12053 shlibpath_var=LIBRARY_PATH
12054 shlibpath_overrides_runpath=yes
12055 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12056 hardcode_into_libs=yes
12059 hpux9* | hpux10* | hpux11*)
12060 # Give a soname corresponding to the major version so that dld.sl refuses to
12061 # link against other versions.
12068 hardcode_into_libs=yes
12069 dynamic_linker="$host_os dld.so"
12070 shlibpath_var=LD_LIBRARY_PATH
12071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073 soname_spec='${libname}${release}${shared_ext}$major'
12074 if test "X$HPUX_IA64_MODE" = X32; then
12075 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12077 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12083 hardcode_into_libs=yes
12084 dynamic_linker="$host_os dld.sl"
12085 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088 soname_spec='${libname}${release}${shared_ext}$major'
12089 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12094 dynamic_linker="$host_os dld.sl"
12095 shlibpath_var=SHLIB_PATH
12096 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12098 soname_spec='${libname}${release}${shared_ext}$major'
12101 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12102 postinstall_cmds='chmod 555 $lib'
12103 # or fails outright, so override atomically:
12104 install_override_mode=555
12108 version_type=linux # correct to gnu/linux during the next big refactor
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12112 soname_spec='${libname}${release}${shared_ext}$major'
12113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12114 shlibpath_var=LD_LIBRARY_PATH
12115 shlibpath_overrides_runpath=no
12116 hardcode_into_libs=yes
12119 irix5* | irix6* | nonstopux*)
12121 nonstopux*) version_type=nonstopux ;;
12123 if test "$lt_cv_prog_gnu_ld" = yes; then
12124 version_type=linux # correct to gnu/linux during the next big refactor
12131 soname_spec='${libname}${release}${shared_ext}$major'
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12134 irix5* | nonstopux*)
12135 libsuff= shlibsuff=
12138 case $LD in # libtool.m4 will add one of these switches to LD
12139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12140 libsuff= shlibsuff= libmagic=32-bit;;
12141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12142 libsuff=32 shlibsuff=N32 libmagic=N32;;
12143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12145 *) libsuff= shlibsuff= libmagic=never-match;;
12149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12150 shlibpath_overrides_runpath=no
12151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12153 hardcode_into_libs=yes
12156 # No shared lib support for Linux oldld, aout, or coff.
12157 linux*oldld* | linux*aout* | linux*coff*)
12161 # This must be glibc/ELF.
12162 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12163 version_type=linux # correct to gnu/linux during the next big refactor
12166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12167 soname_spec='${libname}${release}${shared_ext}$major'
12168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12169 shlibpath_var=LD_LIBRARY_PATH
12170 shlibpath_overrides_runpath=no
12172 # Some binutils ld are patched to set DT_RUNPATH
12173 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12174 $as_echo_n "(cached) " >&6
12176 lt_cv_shlibpath_overrides_runpath=no
12177 save_LDFLAGS=$LDFLAGS
12178 save_libdir=$libdir
12179 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12180 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12194 lt_cv_shlibpath_overrides_runpath=yes
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LDFLAGS=$save_LDFLAGS
12200 libdir=$save_libdir
12204 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12206 # This implies no fast_install, which is unacceptable.
12207 # Some rework will be needed to allow for fast_install
12208 # before this can be enabled.
12209 hardcode_into_libs=yes
12211 # Append ld.so.conf contents to the search path
12212 if test -f /etc/ld.so.conf; then
12213 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' ' '`
12214 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12217 # We used to test for /lib/ld.so.1 and disable shared libraries on
12218 # powerpc, because MkLinux only supported shared libraries with the
12219 # GNU dynamic linker. Since this was broken with cross compilers,
12220 # most powerpc-linux boxes support dynamic linking these days and
12221 # people can always --disable-shared, the test was removed, and we
12222 # assume the GNU/Linux dynamic linker is in use.
12223 dynamic_linker='GNU/Linux ld.so'
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12231 soname_spec='${libname}${release}${shared_ext}$major'
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=no
12234 hardcode_into_libs=yes
12235 dynamic_linker='NetBSD ld.elf_so'
12242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12245 dynamic_linker='NetBSD (a.out) ld.so'
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12248 soname_spec='${libname}${release}${shared_ext}$major'
12249 dynamic_linker='NetBSD ld.elf_so'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=yes
12253 hardcode_into_libs=yes
12257 version_type=linux # correct to gnu/linux during the next big refactor
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259 shlibpath_var=LD_LIBRARY_PATH
12260 shlibpath_overrides_runpath=yes
12267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268 soname_spec='${libname}${release}${shared_ext}$major'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 shlibpath_overrides_runpath=no
12271 hardcode_into_libs=yes
12272 dynamic_linker='ldqnx.so'
12277 sys_lib_dlsearch_path_spec="/usr/lib"
12279 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12281 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12282 *) need_version=no ;;
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12286 shlibpath_var=LD_LIBRARY_PATH
12287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12289 openbsd2.[89] | openbsd2.[89].*)
12290 shlibpath_overrides_runpath=no
12293 shlibpath_overrides_runpath=yes
12297 shlibpath_overrides_runpath=yes
12302 libname_spec='$name'
12305 library_names_spec='$libname${shared_ext} $libname.a'
12306 dynamic_linker='OS/2 ld.exe'
12307 shlibpath_var=LIBPATH
12310 osf3* | osf4* | osf5*)
12314 soname_spec='${libname}${release}${shared_ext}$major'
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12318 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12326 version_type=linux # correct to gnu/linux during the next big refactor
12329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330 soname_spec='${libname}${release}${shared_ext}$major'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=yes
12333 hardcode_into_libs=yes
12334 # ldd complains unless libraries are executable
12335 postinstall_cmds='chmod +x $lib'
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12342 shlibpath_var=LD_LIBRARY_PATH
12343 shlibpath_overrides_runpath=yes
12344 if test "$with_gnu_ld" = yes; then
12351 version_type=linux # correct to gnu/linux during the next big refactor
12352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353 soname_spec='${libname}${release}${shared_ext}$major'
12354 shlibpath_var=LD_LIBRARY_PATH
12355 case $host_vendor in
12357 shlibpath_overrides_runpath=no
12359 runpath_var=LD_RUN_PATH
12367 shlibpath_overrides_runpath=no
12368 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12374 if test -d /usr/nec ;then
12375 version_type=linux # correct to gnu/linux during the next big refactor
12376 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12377 soname_spec='$libname${shared_ext}.$major'
12378 shlibpath_var=LD_LIBRARY_PATH
12382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12383 version_type=freebsd-elf
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12387 soname_spec='${libname}${release}${shared_ext}$major'
12388 shlibpath_var=LD_LIBRARY_PATH
12389 shlibpath_overrides_runpath=yes
12390 hardcode_into_libs=yes
12391 if test "$with_gnu_ld" = yes; then
12392 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12394 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12397 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12401 sys_lib_dlsearch_path_spec='/usr/lib'
12405 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12406 version_type=linux # correct to gnu/linux during the next big refactor
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410 shlibpath_var=LD_LIBRARY_PATH
12411 shlibpath_overrides_runpath=no
12412 hardcode_into_libs=yes
12416 version_type=linux # correct to gnu/linux during the next big refactor
12417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 shlibpath_var=LD_LIBRARY_PATH
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12427 $as_echo "$dynamic_linker" >&6; }
12428 test "$dynamic_linker" = no && can_build_shared=no
12430 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12431 if test "$GCC" = yes; then
12432 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12435 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12436 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12438 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12439 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12534 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12536 if test -n "$hardcode_libdir_flag_spec" ||
12537 test -n "$runpath_var" ||
12538 test "X$hardcode_automatic" = "Xyes" ; then
12540 # We can hardcode non-existent directories.
12541 if test "$hardcode_direct" != no &&
12542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12543 # have to relink, otherwise we might link with an installed library
12544 # when we should be linking with a yet-to-be-installed one
12545 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12546 test "$hardcode_minus_L" != no; then
12547 # Linking always hardcodes the temporary library directory.
12548 hardcode_action=relink
12550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12551 hardcode_action=immediate
12554 # We cannot hardcode anything, or else we can only hardcode existing
12556 hardcode_action=unsupported
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12559 $as_echo "$hardcode_action" >&6; }
12561 if test "$hardcode_action" = relink ||
12562 test "$inherit_rpath" = yes; then
12563 # Fast installation is not supported
12564 enable_fast_install=no
12565 elif test "$shlibpath_overrides_runpath" = yes ||
12566 test "$enable_shared" = no; then
12567 # Fast installation is not necessary
12568 enable_fast_install=needless
12576 if test "x$enable_dlopen" != xyes; then
12577 enable_dlopen=unknown
12578 enable_dlopen_self=unknown
12579 enable_dlopen_self_static=unknown
12586 lt_cv_dlopen="load_add_on"
12588 lt_cv_dlopen_self=yes
12591 mingw* | pw32* | cegcc*)
12592 lt_cv_dlopen="LoadLibrary"
12597 lt_cv_dlopen="dlopen"
12602 # if libdl is installed we need to link against it
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12604 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12605 if ${ac_cv_lib_dl_dlopen+:} false; then :
12606 $as_echo_n "(cached) " >&6
12608 ac_check_lib_save_LIBS=$LIBS
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12613 /* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply. */
12628 if ac_fn_c_try_link "$LINENO"; then :
12629 ac_cv_lib_dl_dlopen=yes
12631 ac_cv_lib_dl_dlopen=no
12633 rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12639 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12643 lt_cv_dlopen="dyld"
12645 lt_cv_dlopen_self=yes
12652 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12653 if test "x$ac_cv_func_shl_load" = xyes; then :
12654 lt_cv_dlopen="shl_load"
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12657 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12658 if ${ac_cv_lib_dld_shl_load+:} false; then :
12659 $as_echo_n "(cached) " >&6
12661 ac_check_lib_save_LIBS=$LIBS
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12666 /* Override any GCC internal prototype to avoid an error.
12667 Use char because int might match the return type of a GCC
12668 builtin and then its argument prototype would still apply. */
12676 return shl_load ();
12681 if ac_fn_c_try_link "$LINENO"; then :
12682 ac_cv_lib_dld_shl_load=yes
12684 ac_cv_lib_dld_shl_load=no
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12691 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12692 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12693 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12695 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12696 if test "x$ac_cv_func_dlopen" = xyes; then :
12697 lt_cv_dlopen="dlopen"
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12700 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12701 if ${ac_cv_lib_dl_dlopen+:} false; then :
12702 $as_echo_n "(cached) " >&6
12704 ac_check_lib_save_LIBS=$LIBS
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12724 if ac_fn_c_try_link "$LINENO"; then :
12725 ac_cv_lib_dl_dlopen=yes
12727 ac_cv_lib_dl_dlopen=no
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12734 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12735 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12736 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12739 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12740 if ${ac_cv_lib_svld_dlopen+:} false; then :
12741 $as_echo_n "(cached) " >&6
12743 ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-lsvld $LIBS"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12748 /* Override any GCC internal prototype to avoid an error.
12749 Use char because int might match the return type of a GCC
12750 builtin and then its argument prototype would still apply. */
12763 if ac_fn_c_try_link "$LINENO"; then :
12764 ac_cv_lib_svld_dlopen=yes
12766 ac_cv_lib_svld_dlopen=no
12768 rm -f core conftest.err conftest.$ac_objext \
12769 conftest$ac_exeext conftest.$ac_ext
12770 LIBS=$ac_check_lib_save_LIBS
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12773 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12774 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12778 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12779 if ${ac_cv_lib_dld_dld_link+:} false; then :
12780 $as_echo_n "(cached) " >&6
12782 ac_check_lib_save_LIBS=$LIBS
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12787 /* Override any GCC internal prototype to avoid an error.
12788 Use char because int might match the return type of a GCC
12789 builtin and then its argument prototype would still apply. */
12797 return dld_link ();
12802 if ac_fn_c_try_link "$LINENO"; then :
12803 ac_cv_lib_dld_dld_link=yes
12805 ac_cv_lib_dld_dld_link=no
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12812 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12813 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12814 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12835 if test "x$lt_cv_dlopen" != xno; then
12841 case $lt_cv_dlopen in
12843 save_CPPFLAGS="$CPPFLAGS"
12844 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12846 save_LDFLAGS="$LDFLAGS"
12847 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12850 LIBS="$lt_cv_dlopen_libs $LIBS"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12853 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12854 if ${lt_cv_dlopen_self+:} false; then :
12855 $as_echo_n "(cached) " >&6
12857 if test "$cross_compiling" = yes; then :
12858 lt_cv_dlopen_self=cross
12860 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12861 lt_status=$lt_dlunknown
12862 cat > conftest.$ac_ext <<_LT_EOF
12863 #line $LINENO "configure"
12864 #include "confdefs.h"
12873 # define LT_DLGLOBAL RTLD_GLOBAL
12876 # define LT_DLGLOBAL DL_GLOBAL
12878 # define LT_DLGLOBAL 0
12882 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12883 find out it does not work in some platform. */
12884 #ifndef LT_DLLAZY_OR_NOW
12886 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12889 # define LT_DLLAZY_OR_NOW DL_LAZY
12892 # define LT_DLLAZY_OR_NOW RTLD_NOW
12895 # define LT_DLLAZY_OR_NOW DL_NOW
12897 # define LT_DLLAZY_OR_NOW 0
12904 /* When -fvisbility=hidden is used, assume the code has been annotated
12905 correspondingly for the symbols needed. */
12906 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12907 int fnord () __attribute__((visibility("default")));
12910 int fnord () { return 42; }
12913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12914 int status = $lt_dlunknown;
12918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12921 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12922 else puts (dlerror ());
12924 /* dlclose (self); */
12932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12933 (eval $ac_link) 2>&5
12935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12937 (./conftest; exit; ) >&5 2>/dev/null
12939 case x$lt_status in
12940 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12941 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12942 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12945 # compilation failed
12946 lt_cv_dlopen_self=no
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12954 $as_echo "$lt_cv_dlopen_self" >&6; }
12956 if test "x$lt_cv_dlopen_self" = xyes; then
12957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12959 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12960 if ${lt_cv_dlopen_self_static+:} false; then :
12961 $as_echo_n "(cached) " >&6
12963 if test "$cross_compiling" = yes; then :
12964 lt_cv_dlopen_self_static=cross
12966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12967 lt_status=$lt_dlunknown
12968 cat > conftest.$ac_ext <<_LT_EOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12979 # define LT_DLGLOBAL RTLD_GLOBAL
12982 # define LT_DLGLOBAL DL_GLOBAL
12984 # define LT_DLGLOBAL 0
12988 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12989 find out it does not work in some platform. */
12990 #ifndef LT_DLLAZY_OR_NOW
12992 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12995 # define LT_DLLAZY_OR_NOW DL_LAZY
12998 # define LT_DLLAZY_OR_NOW RTLD_NOW
13001 # define LT_DLLAZY_OR_NOW DL_NOW
13003 # define LT_DLLAZY_OR_NOW 0
13010 /* When -fvisbility=hidden is used, assume the code has been annotated
13011 correspondingly for the symbols needed. */
13012 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13013 int fnord () __attribute__((visibility("default")));
13016 int fnord () { return 42; }
13019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13020 int status = $lt_dlunknown;
13024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13027 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13028 else puts (dlerror ());
13030 /* dlclose (self); */
13038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13039 (eval $ac_link) 2>&5
13041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13042 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13043 (./conftest; exit; ) >&5 2>/dev/null
13045 case x$lt_status in
13046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13048 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13051 # compilation failed
13052 lt_cv_dlopen_self_static=no
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13060 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13063 CPPFLAGS="$save_CPPFLAGS"
13064 LDFLAGS="$save_LDFLAGS"
13069 case $lt_cv_dlopen_self in
13070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13071 *) enable_dlopen_self=unknown ;;
13074 case $lt_cv_dlopen_self_static in
13075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13076 *) enable_dlopen_self_static=unknown ;;
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13099 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13100 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13102 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; }
13106 # FIXME - insert some real tests, host_os isn't really good enough
13109 if test -n "$STRIP" ; then
13110 striplib="$STRIP -x"
13111 old_striplib="$STRIP -S"
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113 $as_echo "yes" >&6; }
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13137 # Report which library types will actually be built
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13139 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13141 $as_echo "$can_build_shared" >&6; }
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13144 $as_echo_n "checking whether to build shared libraries... " >&6; }
13145 test "$can_build_shared" = "no" && enable_shared=no
13147 # On AIX, shared libraries and static libraries use the same namespace, and
13148 # are all built from PIC.
13151 test "$enable_shared" = yes && enable_static=no
13152 if test -n "$RANLIB"; then
13153 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13154 postinstall_cmds='$RANLIB $lib'
13159 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13160 test "$enable_shared" = yes && enable_static=no
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13165 $as_echo "$enable_shared" >&6; }
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13168 $as_echo_n "checking whether to build static libraries... " >&6; }
13169 # Make sure either enable_shared or enable_static is yes.
13170 test "$enable_shared" = yes || enable_static=yes
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13172 $as_echo "$enable_static" >&6; }
13179 ac_cpp='$CPP $CPPFLAGS'
13180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13187 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13188 (test "X$CXX" != "Xg++"))) ; then
13190 ac_cpp='$CXXCPP $CPPFLAGS'
13191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13195 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13196 if test -z "$CXXCPP"; then
13197 if ${ac_cv_prog_CXXCPP+:} false; then :
13198 $as_echo_n "(cached) " >&6
13200 # Double quotes because CXXCPP needs to be expanded
13201 for CXXCPP in "$CXX -E" "/lib/cpp"
13203 ac_preproc_ok=false
13204 for ac_cxx_preproc_warn_flag in '' yes
13206 # Use a header file that comes with gcc, so configuring glibc
13207 # with a fresh cross-compiler works.
13208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13209 # <limits.h> exists even on freestanding compilers.
13210 # On the NeXT, cc -E runs the code through the compiler's parser,
13211 # not just through cpp. "Syntax error" is here to catch this case.
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13215 # include <limits.h>
13217 # include <assert.h>
13221 if ac_fn_cxx_try_cpp "$LINENO"; then :
13224 # Broken: fails on valid input.
13227 rm -f conftest.err conftest.i conftest.$ac_ext
13229 # OK, works on sane cases. Now check whether nonexistent headers
13230 # can be detected and how.
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233 #include <ac_nonexistent.h>
13235 if ac_fn_cxx_try_cpp "$LINENO"; then :
13236 # Broken: success on invalid input.
13239 # Passes both tests.
13243 rm -f conftest.err conftest.i conftest.$ac_ext
13246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13247 rm -f conftest.i conftest.err conftest.$ac_ext
13248 if $ac_preproc_ok; then :
13253 ac_cv_prog_CXXCPP=$CXXCPP
13256 CXXCPP=$ac_cv_prog_CXXCPP
13258 ac_cv_prog_CXXCPP=$CXXCPP
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13261 $as_echo "$CXXCPP" >&6; }
13262 ac_preproc_ok=false
13263 for ac_cxx_preproc_warn_flag in '' yes
13265 # Use a header file that comes with gcc, so configuring glibc
13266 # with a fresh cross-compiler works.
13267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13268 # <limits.h> exists even on freestanding compilers.
13269 # On the NeXT, cc -E runs the code through the compiler's parser,
13270 # not just through cpp. "Syntax error" is here to catch this case.
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13274 # include <limits.h>
13276 # include <assert.h>
13280 if ac_fn_cxx_try_cpp "$LINENO"; then :
13283 # Broken: fails on valid input.
13286 rm -f conftest.err conftest.i conftest.$ac_ext
13288 # OK, works on sane cases. Now check whether nonexistent headers
13289 # can be detected and how.
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 #include <ac_nonexistent.h>
13294 if ac_fn_cxx_try_cpp "$LINENO"; then :
13295 # Broken: success on invalid input.
13298 # Passes both tests.
13302 rm -f conftest.err conftest.i conftest.$ac_ext
13305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13306 rm -f conftest.i conftest.err conftest.$ac_ext
13307 if $ac_preproc_ok; then :
13310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13312 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13313 See \`config.log' for more details" "$LINENO" 5; }
13317 ac_cpp='$CPP $CPPFLAGS'
13318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323 _lt_caught_CXX_error=yes
13327 ac_cpp='$CXXCPP $CPPFLAGS'
13328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13332 archive_cmds_need_lc_CXX=no
13333 allow_undefined_flag_CXX=
13334 always_export_symbols_CXX=no
13335 archive_expsym_cmds_CXX=
13336 compiler_needs_object_CXX=no
13337 export_dynamic_flag_spec_CXX=
13338 hardcode_direct_CXX=no
13339 hardcode_direct_absolute_CXX=no
13340 hardcode_libdir_flag_spec_CXX=
13341 hardcode_libdir_separator_CXX=
13342 hardcode_minus_L_CXX=no
13343 hardcode_shlibpath_var_CXX=unsupported
13344 hardcode_automatic_CXX=no
13345 inherit_rpath_CXX=no
13347 module_expsym_cmds_CXX=
13348 link_all_deplibs_CXX=unknown
13349 old_archive_cmds_CXX=$old_archive_cmds
13350 reload_flag_CXX=$reload_flag
13351 reload_cmds_CXX=$reload_cmds
13352 no_undefined_flag_CXX=
13353 whole_archive_flag_spec_CXX=
13354 enable_shared_with_static_runtimes_CXX=no
13356 # Source file extension for C++ test sources.
13359 # Object file extension for compiled C++ test sources.
13363 # No sense in running all these tests if we already determined that
13364 # the CXX compiler isn't working. Some variables (like enable_shared)
13365 # are currently assumed to apply to all compilers on this platform,
13366 # and will be corrupted by setting them based on a non-working compiler.
13367 if test "$_lt_caught_CXX_error" != yes; then
13368 # Code to be used in simple compile tests
13369 lt_simple_compile_test_code="int some_variable = 0;"
13371 # Code to be used in simple link tests
13372 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13374 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13381 # If no C compiler was specified, use CC.
13384 # If no C compiler flags were specified, use CFLAGS.
13385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13387 # Allow CC to be a program name with arguments.
13391 # save warnings/boilerplate of simple test code
13392 ac_outfile=conftest.$ac_objext
13393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13395 _lt_compiler_boilerplate=`cat conftest.err`
13398 ac_outfile=conftest.$ac_objext
13399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13401 _lt_linker_boilerplate=`cat conftest.err`
13405 # Allow CC to be a program name with arguments.
13407 lt_save_CFLAGS=$CFLAGS
13411 lt_save_with_gnu_ld=$with_gnu_ld
13412 lt_save_path_LD=$lt_cv_path_LD
13413 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13414 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13416 $as_unset lt_cv_prog_gnu_ld
13418 if test -n "${lt_cv_path_LDCXX+set}"; then
13419 lt_cv_path_LD=$lt_cv_path_LDCXX
13421 $as_unset lt_cv_path_LD
13423 test -z "${LDCXX+set}" || LD=$LDCXX
13428 for cc_temp in $compiler""; do
13430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13439 if test -n "$compiler"; then
13440 # We don't want -fno-exception when compiling C++ code, so set the
13441 # no_builtin_flag separately
13442 if test "$GXX" = yes; then
13443 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13445 lt_prog_compiler_no_builtin_flag_CXX=
13448 if test "$GXX" = yes; then
13449 # Set up default GNU C++ configuration
13453 # Check whether --with-gnu-ld was given.
13454 if test "${with_gnu_ld+set}" = set; then :
13455 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13461 if test "$GCC" = yes; then
13462 # Check if gcc -print-prog-name=ld gives a path.
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13464 $as_echo_n "checking for ld used by $CC... " >&6; }
13467 # gcc leaves a trailing carriage return which upsets mingw
13468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13473 # Accept absolute paths.
13475 re_direlt='/[^/][^/]*/\.\./'
13476 # Canonicalize the pathname of ld
13477 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13478 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13479 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13481 test -z "$LD" && LD="$ac_prog"
13484 # If it fails, then pretend we aren't using GCC.
13488 # If it is relative, then search for the first ld in PATH.
13489 with_gnu_ld=unknown
13492 elif test "$with_gnu_ld" = yes; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13494 $as_echo_n "checking for GNU ld... " >&6; }
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13497 $as_echo_n "checking for non-GNU ld... " >&6; }
13499 if ${lt_cv_path_LD+:} false; then :
13500 $as_echo_n "(cached) " >&6
13502 if test -z "$LD"; then
13503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13504 for ac_dir in $PATH; do
13506 test -z "$ac_dir" && ac_dir=.
13507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13508 lt_cv_path_LD="$ac_dir/$ac_prog"
13509 # Check to see if the program is GNU ld. I'd rather use --version,
13510 # but apparently some variants of GNU ld only accept -v.
13511 # Break only if it was the GNU/non-GNU ld that we prefer.
13512 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13513 *GNU* | *'with BFD'*)
13514 test "$with_gnu_ld" != no && break
13517 test "$with_gnu_ld" != yes && break
13524 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13528 LD="$lt_cv_path_LD"
13529 if test -n "$LD"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13531 $as_echo "$LD" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13536 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13538 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13539 if ${lt_cv_prog_gnu_ld+:} false; then :
13540 $as_echo_n "(cached) " >&6
13542 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13543 case `$LD -v 2>&1 </dev/null` in
13544 *GNU* | *'with BFD'*)
13545 lt_cv_prog_gnu_ld=yes
13548 lt_cv_prog_gnu_ld=no
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13553 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13554 with_gnu_ld=$lt_cv_prog_gnu_ld
13562 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13563 # archiving commands below assume that GNU ld is being used.
13564 if test "$with_gnu_ld" = yes; then
13565 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13566 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'
13568 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13569 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13571 # If archive_cmds runs LD, not CC, wlarc should be empty
13572 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13573 # investigate it a little bit more. (MM)
13576 # ancient GNU ld didn't support --whole-archive et. al.
13577 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13578 $GREP 'no-whole-archive' > /dev/null; then
13579 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13581 whole_archive_flag_spec_CXX=
13587 # A generic and very simple default shared library creation
13588 # command for GNU C++ for the case where it uses the native
13589 # linker, instead of GNU ld. If possible, this setting should
13590 # overridden to take advantage of the native linker features on
13591 # the platform it is being used on.
13592 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13595 # Commands to make compiler produce verbose output that lists
13596 # what "hidden" libraries, object files and flags are used when
13597 # linking a shared library.
13598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13606 # PORTME: fill in a description of your system's C++ link characteristics
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13608 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13612 # FIXME: insert proper C++ library support
13616 if test "$host_cpu" = ia64; then
13617 # On IA64, the linker does run time linking by default, so we don't
13618 # have to do anything special.
13619 aix_use_runtimelinking=no
13620 exp_sym_flag='-Bexport'
13623 aix_use_runtimelinking=no
13625 # Test if we are trying to use run time linking or normal
13626 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13627 # need to do runtime linking.
13628 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13629 for ld_flag in $LDFLAGS; do
13632 aix_use_runtimelinking=yes
13640 exp_sym_flag='-bexport'
13641 no_entry_flag='-bnoentry'
13644 # When large executables or shared objects are built, AIX ld can
13645 # have problems creating the table of contents. If linking a library
13646 # or program results in "error TOC overflow" add -mminimal-toc to
13647 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13648 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13650 archive_cmds_CXX=''
13651 hardcode_direct_CXX=yes
13652 hardcode_direct_absolute_CXX=yes
13653 hardcode_libdir_separator_CXX=':'
13654 link_all_deplibs_CXX=yes
13655 file_list_spec_CXX='${wl}-f,'
13657 if test "$GXX" = yes; then
13658 case $host_os in aix4.[012]|aix4.[012].*)
13659 # We only want to do this on AIX 4.2 and lower, the check
13660 # below for broken collect2 doesn't work under 4.3+
13661 collect2name=`${CC} -print-prog-name=collect2`
13662 if test -f "$collect2name" &&
13663 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13665 # We have reworked collect2
13668 # We have old collect2
13669 hardcode_direct_CXX=unsupported
13670 # It fails to find uninstalled libraries when the uninstalled
13671 # path is not listed in the libpath. Setting hardcode_minus_L
13672 # to unsupported forces relinking
13673 hardcode_minus_L_CXX=yes
13674 hardcode_libdir_flag_spec_CXX='-L$libdir'
13675 hardcode_libdir_separator_CXX=
13678 shared_flag='-shared'
13679 if test "$aix_use_runtimelinking" = yes; then
13680 shared_flag="$shared_flag "'${wl}-G'
13684 if test "$host_cpu" = ia64; then
13685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13686 # chokes on -Wl,-G. The following line is correct:
13689 if test "$aix_use_runtimelinking" = yes; then
13690 shared_flag='${wl}-G'
13692 shared_flag='${wl}-bM:SRE'
13697 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13698 # It seems that -bexpall does not export symbols beginning with
13699 # underscore (_), so it is better to generate a list of symbols to
13701 always_export_symbols_CXX=yes
13702 if test "$aix_use_runtimelinking" = yes; then
13703 # Warning - without using the other runtime loading flags (-brtl),
13704 # -berok will link without error, but may produce a broken library.
13705 allow_undefined_flag_CXX='-berok'
13706 # Determine the default libpath from the value encoded in an empty
13708 if test "${lt_cv_aix_libpath+set}" = set; then
13709 aix_libpath=$lt_cv_aix_libpath
13711 if ${lt_cv_aix_libpath__CXX+:} false; then :
13712 $as_echo_n "(cached) " >&6
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13725 if ac_fn_cxx_try_link "$LINENO"; then :
13727 lt_aix_libpath_sed='
13728 /Import File Strings/,/^$/ {
13730 s/^0 *\([^ ]*\) *$/\1/
13734 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13735 # Check for a 64-bit object if we didn't find anything.
13736 if test -z "$lt_cv_aix_libpath__CXX"; then
13737 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742 if test -z "$lt_cv_aix_libpath__CXX"; then
13743 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13748 aix_libpath=$lt_cv_aix_libpath__CXX
13751 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13753 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"
13755 if test "$host_cpu" = ia64; then
13756 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13757 allow_undefined_flag_CXX="-z nodefs"
13758 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"
13760 # Determine the default libpath from the value encoded in an
13761 # empty executable.
13762 if test "${lt_cv_aix_libpath+set}" = set; then
13763 aix_libpath=$lt_cv_aix_libpath
13765 if ${lt_cv_aix_libpath__CXX+:} false; then :
13766 $as_echo_n "(cached) " >&6
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13779 if ac_fn_cxx_try_link "$LINENO"; then :
13781 lt_aix_libpath_sed='
13782 /Import File Strings/,/^$/ {
13784 s/^0 *\([^ ]*\) *$/\1/
13788 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13789 # Check for a 64-bit object if we didn't find anything.
13790 if test -z "$lt_cv_aix_libpath__CXX"; then
13791 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13794 rm -f core conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13796 if test -z "$lt_cv_aix_libpath__CXX"; then
13797 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13802 aix_libpath=$lt_cv_aix_libpath__CXX
13805 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13806 # Warning - without using the other run time loading flags,
13807 # -berok will link without error, but may produce a broken library.
13808 no_undefined_flag_CXX=' ${wl}-bernotok'
13809 allow_undefined_flag_CXX=' ${wl}-berok'
13810 if test "$with_gnu_ld" = yes; then
13811 # We only use this code for GNU lds that support --whole-archive.
13812 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13814 # Exported symbols can be pulled into shared objects from archives
13815 whole_archive_flag_spec_CXX='$convenience'
13817 archive_cmds_need_lc_CXX=yes
13818 # This is similar to how AIX traditionally builds its shared
13820 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'
13826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13827 allow_undefined_flag_CXX=unsupported
13828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13829 # support --undefined. This deserves some investigation. FIXME
13830 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13837 case $cc_basename in
13839 # FIXME: insert proper C++ library support
13845 cygwin* | mingw* | pw32* | cegcc*)
13846 case $GXX,$cc_basename in
13849 # hardcode_libdir_flag_spec is actually meaningless, as there is
13850 # no search path for DLLs.
13851 hardcode_libdir_flag_spec_CXX=' '
13852 allow_undefined_flag_CXX=unsupported
13853 always_export_symbols_CXX=yes
13854 file_list_spec_CXX='@'
13855 # Tell ltmain to make .lib files, not .a files.
13857 # Tell ltmain to make .dll files, not .so files.
13859 # FIXME: Setting linknames here is a bad hack.
13860 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13861 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13862 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13864 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13866 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13868 # The linker will not automatically build a static lib if we build a DLL.
13869 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13870 enable_shared_with_static_runtimes_CXX=yes
13872 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13873 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13874 lt_tool_outputfile="@TOOL_OUTPUT@"~
13875 case $lt_outputfile in
13878 lt_outputfile="$lt_outputfile.exe"
13879 lt_tool_outputfile="$lt_tool_outputfile.exe"
13882 func_to_tool_file "$lt_outputfile"~
13883 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13884 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13885 $RM "$lt_outputfile.manifest";
13890 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13891 # as there is no search path for DLLs.
13892 hardcode_libdir_flag_spec_CXX='-L$libdir'
13893 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13894 allow_undefined_flag_CXX=unsupported
13895 always_export_symbols_CXX=no
13896 enable_shared_with_static_runtimes_CXX=yes
13898 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13899 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'
13900 # If the export-symbols file already is a .def file (1st line
13901 # is EXPORTS), use it as is; otherwise, prepend...
13902 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13903 cp $export_symbols $output_objdir/$soname.def;
13905 echo EXPORTS > $output_objdir/$soname.def;
13906 cat $export_symbols >> $output_objdir/$soname.def;
13908 $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'
13915 darwin* | rhapsody*)
13918 archive_cmds_need_lc_CXX=no
13919 hardcode_direct_CXX=no
13920 hardcode_automatic_CXX=yes
13921 hardcode_shlibpath_var_CXX=unsupported
13922 if test "$lt_cv_ld_force_load" = "yes"; then
13923 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\"`'
13926 whole_archive_flag_spec_CXX=''
13928 link_all_deplibs_CXX=yes
13929 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13930 case $cc_basename in
13931 ifort*) _lt_dar_can_shared=yes ;;
13932 *) _lt_dar_can_shared=$GCC ;;
13934 if test "$_lt_dar_can_shared" = "yes"; then
13935 output_verbose_link_cmd=func_echo_all
13936 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}"
13937 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13938 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}"
13939 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}"
13940 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13941 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}"
13942 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}"
13952 case $cc_basename in
13954 # FIXME: insert proper C++ library support
13958 # Green Hills C++ Compiler
13959 # FIXME: insert proper C++ library support
13963 # FIXME: insert proper C++ library support
13970 # C++ shared libraries reported to be fairly broken before
13976 archive_cmds_need_lc_CXX=no
13979 freebsd* | dragonfly*)
13980 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13986 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987 link_all_deplibs_CXX=yes
13991 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13992 hardcode_libdir_separator_CXX=:
13993 export_dynamic_flag_spec_CXX='${wl}-E'
13994 hardcode_direct_CXX=yes
13995 hardcode_minus_L_CXX=yes # Not in the search PATH,
13996 # but as the default
13997 # location of the library.
13999 case $cc_basename in
14001 # FIXME: insert proper C++ library support
14005 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'
14006 # Commands to make compiler produce verbose output that lists
14007 # what "hidden" libraries, object files and flags are used when
14008 # linking a shared library.
14010 # There doesn't appear to be a way to prevent this compiler from
14011 # explicitly linking system object files so we need to strip them
14012 # from the output so that they don't get included in the library
14014 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"'
14017 if test "$GXX" = yes; then
14018 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'
14020 # FIXME: insert proper C++ library support
14028 if test $with_gnu_ld = no; then
14029 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14030 hardcode_libdir_separator_CXX=:
14036 export_dynamic_flag_spec_CXX='${wl}-E'
14042 hardcode_direct_CXX=no
14043 hardcode_shlibpath_var_CXX=no
14046 hardcode_direct_CXX=yes
14047 hardcode_direct_absolute_CXX=yes
14048 hardcode_minus_L_CXX=yes # Not in the search PATH,
14049 # but as the default
14050 # location of the library.
14054 case $cc_basename in
14056 # FIXME: insert proper C++ library support
14062 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14065 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14068 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14071 # Commands to make compiler produce verbose output that lists
14072 # what "hidden" libraries, object files and flags are used when
14073 # linking a shared library.
14075 # There doesn't appear to be a way to prevent this compiler from
14076 # explicitly linking system object files so we need to strip them
14077 # from the output so that they don't get included in the library
14079 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"'
14082 if test "$GXX" = yes; then
14083 if test $with_gnu_ld = no; then
14086 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14089 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14092 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'
14097 # FIXME: insert proper C++ library support
14105 hardcode_direct_CXX=no
14106 hardcode_shlibpath_var_CXX=no
14107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14108 export_dynamic_flag_spec_CXX='${wl}-E'
14109 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14110 # Instead, shared libraries are loaded at an image base (0x10000000 by
14111 # default) and relocated if they conflict, which is a slow very memory
14112 # consuming and fragmenting process. To avoid this, we pick a random,
14113 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14114 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14115 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'
14116 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'
14119 case $cc_basename in
14122 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'
14124 # Archives containing C++ object files must be created using
14125 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14126 # necessary to make sure instantiated templates are included
14128 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14131 if test "$GXX" = yes; then
14132 if test "$with_gnu_ld" = no; then
14133 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'
14135 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'
14138 link_all_deplibs_CXX=yes
14141 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14142 hardcode_libdir_separator_CXX=:
14143 inherit_rpath_CXX=yes
14146 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14147 case $cc_basename in
14149 # Kuck and Associates, Inc. (KAI) C++ Compiler
14151 # KCC will only create a shared library if the output file
14152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14153 # to its proper name (with version) after linking.
14154 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'
14155 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'
14156 # Commands to make compiler produce verbose output that lists
14157 # what "hidden" libraries, object files and flags are used when
14158 # linking a shared library.
14160 # There doesn't appear to be a way to prevent this compiler from
14161 # explicitly linking system object files so we need to strip them
14162 # from the output so that they don't get included in the library
14164 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"'
14166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14167 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14169 # Archives containing C++ object files must be created using
14170 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14171 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14176 # version 8.0 and above of icpc choke on multiply defined symbols
14177 # if we add $predep_objects and $postdep_objects, however 7.1 and
14178 # earlier do not add the objects themselves.
14179 case `$CC -V 2>&1` in
14181 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14182 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'
14184 *) # Version 8.0 or newer
14187 ia64*) tmp_idyn=' -i_dynamic';;
14189 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14190 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'
14193 archive_cmds_need_lc_CXX=no
14194 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14195 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14196 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14199 # Portland Group C++ compiler
14201 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14202 prelink_cmds_CXX='tpldir=Template.dir~
14204 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14205 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14206 old_archive_cmds_CXX='tpldir=Template.dir~
14208 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14209 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14211 archive_cmds_CXX='tpldir=Template.dir~
14213 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14214 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14215 archive_expsym_cmds_CXX='tpldir=Template.dir~
14217 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14218 $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'
14220 *) # Version 6 and above use weak symbols
14221 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14222 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'
14226 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14227 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14228 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'
14232 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14233 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'
14235 runpath_var=LD_RUN_PATH
14236 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14237 hardcode_libdir_separator_CXX=:
14239 # Commands to make compiler produce verbose output that lists
14240 # what "hidden" libraries, object files and flags are used when
14241 # linking a shared library.
14243 # There doesn't appear to be a way to prevent this compiler from
14244 # explicitly linking system object files so we need to strip them
14245 # from the output so that they don't get included in the library
14247 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'
14249 xl* | mpixl* | bgxl*)
14250 # IBM XL 8.0 on PPC, with GNU ld
14251 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14252 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14253 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14254 if test "x$supports_anon_versioning" = xyes; then
14255 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14257 echo "local: *; };" >> $output_objdir/$libname.ver~
14258 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14262 case `$CC -V 2>&1 | sed 5q` in
14265 no_undefined_flag_CXX=' -zdefs'
14266 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14267 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'
14268 hardcode_libdir_flag_spec_CXX='-R$libdir'
14269 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'
14270 compiler_needs_object_CXX=yes
14272 # Not sure whether something based on
14273 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14275 output_verbose_link_cmd='func_echo_all'
14277 # Archives containing C++ object files must be created using
14278 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14279 # necessary to make sure instantiated templates are included
14281 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14289 # FIXME: insert proper C++ library support
14294 # FIXME: insert proper C++ library support
14299 case $cc_basename in
14301 # FIXME: insert proper C++ library support
14305 # FIXME: insert proper C++ library support
14312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14313 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14315 hardcode_libdir_flag_spec_CXX='-R$libdir'
14316 hardcode_direct_CXX=yes
14317 hardcode_shlibpath_var_CXX=no
14319 # Workaround some broken pre-1.5 toolchains
14320 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14328 # C++ shared libraries are fairly broken
14333 if test -f /usr/libexec/ld.so; then
14334 hardcode_direct_CXX=yes
14335 hardcode_shlibpath_var_CXX=no
14336 hardcode_direct_absolute_CXX=yes
14337 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14338 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14340 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14341 export_dynamic_flag_spec_CXX='${wl}-E'
14342 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14344 output_verbose_link_cmd=func_echo_all
14350 osf3* | osf4* | osf5*)
14351 case $cc_basename in
14353 # Kuck and Associates, Inc. (KAI) C++ Compiler
14355 # KCC will only create a shared library if the output file
14356 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14357 # to its proper name (with version) after linking.
14358 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'
14360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14361 hardcode_libdir_separator_CXX=:
14363 # Archives containing C++ object files must be created using
14364 # the KAI C++ compiler.
14366 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14367 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14371 # Rational C++ 2.4.1
14372 # FIXME: insert proper C++ library support
14378 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14379 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'
14380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14383 allow_undefined_flag_CXX=' -expect_unresolved \*'
14384 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'
14385 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14386 echo "-hidden">> $lib.exp~
14387 $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~
14389 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14393 hardcode_libdir_separator_CXX=:
14395 # Commands to make compiler produce verbose output that lists
14396 # what "hidden" libraries, object files and flags are used when
14397 # linking a shared library.
14399 # There doesn't appear to be a way to prevent this compiler from
14400 # explicitly linking system object files so we need to strip them
14401 # from the output so that they don't get included in the library
14403 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"'
14406 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14407 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14410 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'
14413 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'
14417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14418 hardcode_libdir_separator_CXX=:
14420 # Commands to make compiler produce verbose output that lists
14421 # what "hidden" libraries, object files and flags are used when
14422 # linking a shared library.
14423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14426 # FIXME: insert proper C++ library support
14434 # FIXME: insert proper C++ library support
14439 case $cc_basename in
14442 # FIXME: insert proper C++ library support
14447 # FIXME: insert proper C++ library support
14451 # FIXME: insert proper C++ library support
14458 case $cc_basename in
14460 # Sun C++ 4.2, 5.x and Centerline C++
14461 archive_cmds_need_lc_CXX=yes
14462 no_undefined_flag_CXX=' -zdefs'
14463 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14464 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14465 $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'
14467 hardcode_libdir_flag_spec_CXX='-R$libdir'
14468 hardcode_shlibpath_var_CXX=no
14470 solaris2.[0-5] | solaris2.[0-5].*) ;;
14472 # The compiler driver will combine and reorder linker options,
14473 # but understands `-z linker_flag'.
14474 # Supported since Solaris 2.6 (maybe 2.5.1?)
14475 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14478 link_all_deplibs_CXX=yes
14480 output_verbose_link_cmd='func_echo_all'
14482 # Archives containing C++ object files must be created using
14483 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14484 # necessary to make sure instantiated templates are included
14486 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14489 # Green Hills C++ Compiler
14490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14492 # The C++ compiler must be used to create the archive.
14493 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14496 # GNU C++ compiler with Solaris linker
14497 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14498 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14499 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14500 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14501 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14502 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14504 # Commands to make compiler produce verbose output that lists
14505 # what "hidden" libraries, object files and flags are used when
14506 # linking a shared library.
14507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14509 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14511 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14512 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14513 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14515 # Commands to make compiler produce verbose output that lists
14516 # what "hidden" libraries, object files and flags are used when
14517 # linking a shared library.
14518 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14521 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14523 solaris2.[0-5] | solaris2.[0-5].*) ;;
14525 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14534 no_undefined_flag_CXX='${wl}-z,text'
14535 archive_cmds_need_lc_CXX=no
14536 hardcode_shlibpath_var_CXX=no
14537 runpath_var='LD_RUN_PATH'
14539 case $cc_basename in
14541 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14545 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14551 sysv5* | sco3.2v5* | sco5v6*)
14552 # Note: We can NOT use -z defs as we might desire, because we do not
14553 # link with -lc, and that would cause any symbols used from libc to
14554 # always be unresolved, which means just about no library would
14555 # ever link correctly. If we're not using GNU ld we use -z text
14556 # though, which does catch some bad symbols but isn't as heavy-handed
14558 no_undefined_flag_CXX='${wl}-z,text'
14559 allow_undefined_flag_CXX='${wl}-z,nodefs'
14560 archive_cmds_need_lc_CXX=no
14561 hardcode_shlibpath_var_CXX=no
14562 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14563 hardcode_libdir_separator_CXX=':'
14564 link_all_deplibs_CXX=yes
14565 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14566 runpath_var='LD_RUN_PATH'
14568 case $cc_basename in
14570 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14571 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14572 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14573 '"$old_archive_cmds_CXX"
14574 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14575 '"$reload_cmds_CXX"
14578 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14585 case $cc_basename in
14587 # NonStop-UX NCC 3.20
14588 # FIXME: insert proper C++ library support
14592 # FIXME: insert proper C++ library support
14599 # FIXME: insert proper C++ library support
14604 # FIXME: insert proper C++ library support
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14610 $as_echo "$ld_shlibs_CXX" >&6; }
14611 test "$ld_shlibs_CXX" = no && can_build_shared=no
14617 ## There is no encapsulation within the following macros, do not change
14618 ## the running order or otherwise move them around unless you know exactly
14619 ## what you are doing...
14620 # Dependencies to place before and after the object being linked:
14621 predep_objects_CXX=
14622 postdep_objects_CXX=
14625 compiler_lib_search_path_CXX=
14627 cat > conftest.$ac_ext <<_LT_EOF
14631 Foo (void) { a = 0; }
14638 _lt_libdeps_save_CFLAGS=$CFLAGS
14639 case "$CC $CFLAGS " in #(
14640 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14641 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14642 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14646 (eval $ac_compile) 2>&5
14648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14649 test $ac_status = 0; }; then
14650 # Parse the compiler output and extract the necessary
14651 # objects, libraries and library flags.
14653 # Sentinel used to keep track of whether or not we are before
14654 # the conftest object file.
14655 pre_test_object_deps_done=no
14657 for p in `eval "$output_verbose_link_cmd"`; do
14658 case ${prev}${p} in
14661 # Some compilers place space between "-{L,R}" and the path.
14662 # Remove the space.
14663 if test $p = "-L" ||
14664 test $p = "-R"; then
14669 # Expand the sysroot to ease extracting the directories later.
14670 if test -z "$prev"; then
14672 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14673 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14674 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14678 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14680 if test "$pre_test_object_deps_done" = no; then
14683 # Internal compiler library paths should come after those
14684 # provided the user. The postdeps already come after the
14685 # user supplied libs so there is no need to process them.
14686 if test -z "$compiler_lib_search_path_CXX"; then
14687 compiler_lib_search_path_CXX="${prev}${p}"
14689 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14692 # The "-l" case would never come before the object being
14693 # linked, so don't bother handling this case.
14696 if test -z "$postdeps_CXX"; then
14697 postdeps_CXX="${prev}${p}"
14699 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14705 *.lto.$objext) ;; # Ignore GCC LTO objects
14707 # This assumes that the test object file only shows up
14708 # once in the compiler output.
14709 if test "$p" = "conftest.$objext"; then
14710 pre_test_object_deps_done=yes
14714 if test "$pre_test_object_deps_done" = no; then
14715 if test -z "$predep_objects_CXX"; then
14716 predep_objects_CXX="$p"
14718 predep_objects_CXX="$predep_objects_CXX $p"
14721 if test -z "$postdep_objects_CXX"; then
14722 postdep_objects_CXX="$p"
14724 postdep_objects_CXX="$postdep_objects_CXX $p"
14729 *) ;; # Ignore the rest.
14737 echo "libtool.m4: error: problem compiling CXX test program"
14740 $RM -f confest.$objext
14741 CFLAGS=$_lt_libdeps_save_CFLAGS
14743 # PORTME: override above test on systems where it is broken
14746 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14747 # hack all around it, let's just trust "g++" to DTRT.
14748 predep_objects_CXX=
14749 postdep_objects_CXX=
14754 case `$CC -V 2>&1 | sed 5q` in
14758 # The more standards-conforming stlport4 library is
14759 # incompatible with the Cstd library. Avoid specifying
14760 # it if it's in CXXFLAGS. Ignore libCrun as
14761 # -library=stlport4 depends on it.
14762 case " $CXX $CXXFLAGS " in
14763 *" -library=stlport4 "*)
14764 solaris_use_stlport4=yes
14768 if test "$solaris_use_stlport4" != yes; then
14769 postdeps_CXX='-library=Cstd -library=Crun'
14776 case $cc_basename in
14778 # The more standards-conforming stlport4 library is
14779 # incompatible with the Cstd library. Avoid specifying
14780 # it if it's in CXXFLAGS. Ignore libCrun as
14781 # -library=stlport4 depends on it.
14782 case " $CXX $CXXFLAGS " in
14783 *" -library=stlport4 "*)
14784 solaris_use_stlport4=yes
14788 # Adding this requires a known-good setup of shared libraries for
14789 # Sun compiler versions before 5.6, else PIC objects from an old
14790 # archive will be linked into the output, leading to subtle bugs.
14791 if test "$solaris_use_stlport4" != yes; then
14792 postdeps_CXX='-library=Cstd -library=Crun'
14800 case " $postdeps_CXX " in
14801 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14803 compiler_lib_search_dirs_CXX=
14804 if test -n "${compiler_lib_search_path_CXX}"; then
14805 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14838 lt_prog_compiler_wl_CXX=
14839 lt_prog_compiler_pic_CXX=
14840 lt_prog_compiler_static_CXX=
14843 # C++ specific cases for pic, static, wl, etc.
14844 if test "$GXX" = yes; then
14845 lt_prog_compiler_wl_CXX='-Wl,'
14846 lt_prog_compiler_static_CXX='-static'
14850 # All AIX code is PIC.
14851 if test "$host_cpu" = ia64; then
14852 # AIX 5 now supports IA64 processor
14853 lt_prog_compiler_static_CXX='-Bstatic'
14860 # see comment about AmigaOS4 .so support
14861 lt_prog_compiler_pic_CXX='-fPIC'
14864 # FIXME: we need at least 68020 code to build shared libraries, but
14865 # adding the `-m68020' flag to GCC prevents building anything better,
14867 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14873 # PIC is the default for these OSes.
14875 mingw* | cygwin* | os2* | pw32* | cegcc*)
14876 # This hack is so that the source file can tell whether it is being
14877 # built for inclusion in a dll (and should export symbols for example).
14878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14879 # (--disable-auto-import) libraries
14880 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14882 darwin* | rhapsody*)
14883 # PIC is the default on this platform
14884 # Common symbols not allowed in MH_DYLIB files
14885 lt_prog_compiler_pic_CXX='-fno-common'
14888 # DJGPP does not support shared libraries at all
14889 lt_prog_compiler_pic_CXX=
14892 # PIC is the default for Haiku.
14893 # The "-static" flag exists, but is broken.
14894 lt_prog_compiler_static_CXX=
14897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14898 # Instead, we relocate shared libraries at runtime.
14901 if test -d /usr/nec; then
14902 lt_prog_compiler_pic_CXX=-Kconform_pic
14906 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14907 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14908 # sets the default TLS model and affects inlining.
14913 lt_prog_compiler_pic_CXX='-fPIC'
14918 # QNX uses GNU C++, but need to define -shared option too, otherwise
14919 # it will coredump.
14920 lt_prog_compiler_pic_CXX='-fPIC -shared'
14923 lt_prog_compiler_pic_CXX='-fPIC'
14929 # All AIX code is PIC.
14930 if test "$host_cpu" = ia64; then
14931 # AIX 5 now supports IA64 processor
14932 lt_prog_compiler_static_CXX='-Bstatic'
14934 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14938 case $cc_basename in
14940 # Green Hills C++ Compiler
14941 # _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"
14945 mingw* | cygwin* | os2* | pw32* | cegcc*)
14946 # This hack is so that the source file can tell whether it is being
14947 # built for inclusion in a dll (and should export symbols for example).
14948 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14951 case $cc_basename in
14953 lt_prog_compiler_pic_CXX='-KPIC'
14956 # Green Hills C++ Compiler
14957 lt_prog_compiler_pic_CXX='-pic'
14963 freebsd* | dragonfly*)
14964 # FreeBSD uses GNU C++
14966 hpux9* | hpux10* | hpux11*)
14967 case $cc_basename in
14969 lt_prog_compiler_wl_CXX='-Wl,'
14970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14971 if test "$host_cpu" != ia64; then
14972 lt_prog_compiler_pic_CXX='+Z'
14976 lt_prog_compiler_wl_CXX='-Wl,'
14977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14983 lt_prog_compiler_pic_CXX='+Z'
14992 # This is c89, which is MS Visual C++ (no shared libs)
14993 # Anyone wants to do a port?
14995 irix5* | irix6* | nonstopux*)
14996 case $cc_basename in
14998 lt_prog_compiler_wl_CXX='-Wl,'
14999 lt_prog_compiler_static_CXX='-non_shared'
15000 # CC pic flag -KPIC is the default.
15006 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15007 case $cc_basename in
15010 lt_prog_compiler_wl_CXX='--backend -Wl,'
15011 lt_prog_compiler_pic_CXX='-fPIC'
15014 # old Intel C++ for x86_64 which still supported -KPIC.
15015 lt_prog_compiler_wl_CXX='-Wl,'
15016 lt_prog_compiler_pic_CXX='-KPIC'
15017 lt_prog_compiler_static_CXX='-static'
15020 # Intel C++, used to be incompatible with GCC.
15021 # ICC 10 doesn't accept -KPIC any more.
15022 lt_prog_compiler_wl_CXX='-Wl,'
15023 lt_prog_compiler_pic_CXX='-fPIC'
15024 lt_prog_compiler_static_CXX='-static'
15027 # Portland Group C++ compiler
15028 lt_prog_compiler_wl_CXX='-Wl,'
15029 lt_prog_compiler_pic_CXX='-fpic'
15030 lt_prog_compiler_static_CXX='-Bstatic'
15034 # Make sure the PIC flag is empty. It appears that all Alpha
15035 # Linux and Compaq Tru64 Unix objects are PIC.
15036 lt_prog_compiler_pic_CXX=
15037 lt_prog_compiler_static_CXX='-non_shared'
15039 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15040 # IBM XL 8.0, 9.0 on PPC and BlueGene
15041 lt_prog_compiler_wl_CXX='-Wl,'
15042 lt_prog_compiler_pic_CXX='-qpic'
15043 lt_prog_compiler_static_CXX='-qstaticlink'
15046 case `$CC -V 2>&1 | sed 5q` in
15049 lt_prog_compiler_pic_CXX='-KPIC'
15050 lt_prog_compiler_static_CXX='-Bstatic'
15051 lt_prog_compiler_wl_CXX='-Qoption ld '
15062 case $cc_basename in
15064 lt_prog_compiler_pic_CXX='-W c,exportall'
15070 netbsd* | netbsdelf*-gnu)
15073 # QNX uses GNU C++, but need to define -shared option too, otherwise
15074 # it will coredump.
15075 lt_prog_compiler_pic_CXX='-fPIC -shared'
15077 osf3* | osf4* | osf5*)
15078 case $cc_basename in
15080 lt_prog_compiler_wl_CXX='--backend -Wl,'
15083 # Rational C++ 2.4.1
15084 lt_prog_compiler_pic_CXX='-pic'
15087 # Digital/Compaq C++
15088 lt_prog_compiler_wl_CXX='-Wl,'
15089 # Make sure the PIC flag is empty. It appears that all Alpha
15090 # Linux and Compaq Tru64 Unix objects are PIC.
15091 lt_prog_compiler_pic_CXX=
15092 lt_prog_compiler_static_CXX='-non_shared'
15101 case $cc_basename in
15103 # Sun C++ 4.2, 5.x and Centerline C++
15104 lt_prog_compiler_pic_CXX='-KPIC'
15105 lt_prog_compiler_static_CXX='-Bstatic'
15106 lt_prog_compiler_wl_CXX='-Qoption ld '
15109 # Green Hills C++ Compiler
15110 lt_prog_compiler_pic_CXX='-PIC'
15117 case $cc_basename in
15120 lt_prog_compiler_pic_CXX='-pic'
15121 lt_prog_compiler_static_CXX='-Bstatic'
15125 lt_prog_compiler_pic_CXX='-pic'
15131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15132 case $cc_basename in
15134 lt_prog_compiler_wl_CXX='-Wl,'
15135 lt_prog_compiler_pic_CXX='-KPIC'
15136 lt_prog_compiler_static_CXX='-Bstatic'
15141 case $cc_basename in
15143 # NonStop-UX NCC 3.20
15144 lt_prog_compiler_pic_CXX='-KPIC'
15153 lt_prog_compiler_can_build_shared_CXX=no
15159 # For platforms which do not support PIC, -DPIC is meaningless:
15161 lt_prog_compiler_pic_CXX=
15164 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15170 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15171 $as_echo_n "(cached) " >&6
15173 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15176 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15177 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15180 # Check to make sure the PIC flag actually works.
15182 if test -n "$lt_prog_compiler_pic_CXX"; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15184 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15185 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15186 $as_echo_n "(cached) " >&6
15188 lt_cv_prog_compiler_pic_works_CXX=no
15189 ac_outfile=conftest.$ac_objext
15190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15191 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15192 # Insert the option either (1) after the last *FLAGS variable, or
15193 # (2) before a word containing "conftest.", or (3) at the end.
15194 # Note that $ac_compile itself does not contain backslashes and begins
15195 # with a dollar sign (not a hyphen), so the echo should work correctly.
15196 # The option is referenced via a variable to avoid confusing sed.
15197 lt_compile=`echo "$ac_compile" | $SED \
15198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15200 -e 's:$: $lt_compiler_flag:'`
15201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15202 (eval "$lt_compile" 2>conftest.err)
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 if (exit $ac_status) && test -s "$ac_outfile"; then
15207 # The compiler can only warn and ignore the option if not recognized
15208 # So say no if there are warnings other than the usual output.
15209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15212 lt_cv_prog_compiler_pic_works_CXX=yes
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15219 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15221 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15222 case $lt_prog_compiler_pic_CXX in
15224 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15227 lt_prog_compiler_pic_CXX=
15228 lt_prog_compiler_can_build_shared_CXX=no
15238 # Check to make sure the static flag actually works.
15240 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15242 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15243 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15244 $as_echo_n "(cached) " >&6
15246 lt_cv_prog_compiler_static_works_CXX=no
15247 save_LDFLAGS="$LDFLAGS"
15248 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15251 # The linker can only warn and ignore the option if not recognized
15252 # So say no if there are warnings
15253 if test -s conftest.err; then
15254 # Append any errors to the config.log.
15255 cat conftest.err 1>&5
15256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15258 if diff conftest.exp conftest.er2 >/dev/null; then
15259 lt_cv_prog_compiler_static_works_CXX=yes
15262 lt_cv_prog_compiler_static_works_CXX=yes
15266 LDFLAGS="$save_LDFLAGS"
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15270 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15272 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15275 lt_prog_compiler_static_CXX=
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15283 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15284 $as_echo_n "(cached) " >&6
15286 lt_cv_prog_compiler_c_o_CXX=no
15287 $RM -r conftest 2>/dev/null
15291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15293 lt_compiler_flag="-o out/conftest2.$ac_objext"
15294 # Insert the option either (1) after the last *FLAGS variable, or
15295 # (2) before a word containing "conftest.", or (3) at the end.
15296 # Note that $ac_compile itself does not contain backslashes and begins
15297 # with a dollar sign (not a hyphen), so the echo should work correctly.
15298 lt_compile=`echo "$ac_compile" | $SED \
15299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15301 -e 's:$: $lt_compiler_flag:'`
15302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15303 (eval "$lt_compile" 2>out/conftest.err)
15305 cat out/conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15309 # The compiler can only warn and ignore the option if not recognized
15310 # So say no if there are warnings
15311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15314 lt_cv_prog_compiler_c_o_CXX=yes
15319 # SGI C++ compiler will create directory out/ii_files/ for
15320 # template instantiation
15321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15322 $RM out/* && rmdir out
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15329 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15335 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15336 $as_echo_n "(cached) " >&6
15338 lt_cv_prog_compiler_c_o_CXX=no
15339 $RM -r conftest 2>/dev/null
15343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15345 lt_compiler_flag="-o out/conftest2.$ac_objext"
15346 # Insert the option either (1) after the last *FLAGS variable, or
15347 # (2) before a word containing "conftest.", or (3) at the end.
15348 # Note that $ac_compile itself does not contain backslashes and begins
15349 # with a dollar sign (not a hyphen), so the echo should work correctly.
15350 lt_compile=`echo "$ac_compile" | $SED \
15351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15353 -e 's:$: $lt_compiler_flag:'`
15354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15355 (eval "$lt_compile" 2>out/conftest.err)
15357 cat out/conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15361 # The compiler can only warn and ignore the option if not recognized
15362 # So say no if there are warnings
15363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15366 lt_cv_prog_compiler_c_o_CXX=yes
15371 # SGI C++ compiler will create directory out/ii_files/ for
15372 # template instantiation
15373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15374 $RM out/* && rmdir out
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15381 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15386 hard_links="nottested"
15387 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15388 # do not overwrite the value of need_locks provided by the user
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15390 $as_echo_n "checking if we can lock with hard links... " >&6; }
15393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15395 ln conftest.a conftest.b 2>&5 || hard_links=no
15396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15398 $as_echo "$hard_links" >&6; }
15399 if test "$hard_links" = no; then
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15401 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15411 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15413 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15414 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15417 # If we're using GNU nm, then we don't want the "-C" option.
15418 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15419 # Also, AIX nm treats weak defined symbols like other global defined
15420 # symbols, whereas GNU nm marks them as "W".
15421 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15422 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'
15424 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'
15428 export_symbols_cmds_CXX="$ltdll_cmds"
15430 cygwin* | mingw* | cegcc*)
15431 case $cc_basename in
15433 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15436 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'
15437 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15441 linux* | k*bsd*-gnu | gnu*)
15442 link_all_deplibs_CXX=no
15445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15450 $as_echo "$ld_shlibs_CXX" >&6; }
15451 test "$ld_shlibs_CXX" = no && can_build_shared=no
15453 with_gnu_ld_CXX=$with_gnu_ld
15461 # Do we need to explicitly link libc?
15463 case "x$archive_cmds_need_lc_CXX" in
15465 # Assume -lc should be added
15466 archive_cmds_need_lc_CXX=yes
15468 if test "$enable_shared" = yes && test "$GCC" = yes; then
15469 case $archive_cmds_CXX in
15471 # FIXME: we may have to deal with multi-command sequences.
15474 # Test whether the compiler implicitly links with -lc since on some
15475 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15476 # to ld, don't add -lc before -lgcc.
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15478 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15479 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15480 $as_echo_n "(cached) " >&6
15483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15486 (eval $ac_compile) 2>&5
15488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15489 test $ac_status = 0; } 2>conftest.err; then
15492 libobjs=conftest.$ac_objext
15494 wl=$lt_prog_compiler_wl_CXX
15495 pic_flag=$lt_prog_compiler_pic_CXX
15501 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15502 allow_undefined_flag_CXX=
15503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15504 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15507 test $ac_status = 0; }
15509 lt_cv_archive_cmds_need_lc_CXX=no
15511 lt_cv_archive_cmds_need_lc_CXX=yes
15513 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15515 cat conftest.err 1>&5
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15521 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15522 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15593 library_names_spec=
15594 libname_spec='lib$name'
15598 postuninstall_cmds=
15602 shlibpath_overrides_runpath=unknown
15604 dynamic_linker="$host_os ld.so"
15605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15606 need_lib_prefix=unknown
15607 hardcode_into_libs=no
15609 # when you set need_version to no, make sure it does not cause -set_version
15610 # flags to be left without arguments
15611 need_version=unknown
15615 version_type=linux # correct to gnu/linux during the next big refactor
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15617 shlibpath_var=LIBPATH
15619 # AIX 3 has no versioning support, so we append a major version to the name.
15620 soname_spec='${libname}${release}${shared_ext}$major'
15624 version_type=linux # correct to gnu/linux during the next big refactor
15627 hardcode_into_libs=yes
15628 if test "$host_cpu" = ia64; then
15629 # AIX 5 supports IA64
15630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15631 shlibpath_var=LD_LIBRARY_PATH
15633 # With GCC up to 2.95.x, collect2 would create an import file
15634 # for dependence libraries. The import file would start with
15635 # the line `#! .'. This would cause the generated library to
15636 # depend on `.', always an invalid library. This was fixed in
15637 # development snapshots of GCC prior to 3.0.
15639 aix4 | aix4.[01] | aix4.[01].*)
15640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15642 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15645 can_build_shared=no
15649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15650 # soname into executable. Probably we can add versioning support to
15651 # collect2, so additional links can be useful in future.
15652 if test "$aix_use_runtimelinking" = yes; then
15653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15654 # instead of lib<name>.a to let people know that these are not
15655 # typical AIX shared libraries.
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 # We preserve .a as extension for shared libraries through AIX4.2
15659 # and later when we are not doing run time linking.
15660 library_names_spec='${libname}${release}.a $libname.a'
15661 soname_spec='${libname}${release}${shared_ext}$major'
15663 shlibpath_var=LIBPATH
15670 # Since July 2007 AmigaOS4 officially supports .so libraries.
15671 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675 library_names_spec='$libname.ixlibrary $libname.a'
15676 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15677 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'
15683 library_names_spec='${libname}${shared_ext}'
15684 dynamic_linker="$host_os ld.so"
15685 shlibpath_var=LIBRARY_PATH
15689 version_type=linux # correct to gnu/linux during the next big refactor
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15697 # the default ld.so.conf also contains /usr/contrib/lib and
15698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15699 # libtool to hard-code these into programs
15702 cygwin* | mingw* | pw32* | cegcc*)
15703 version_type=windows
15708 case $GCC,$cc_basename in
15711 library_names_spec='$libname.dll.a'
15712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15713 postinstall_cmds='base_file=`basename \${file}`~
15714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15715 dldir=$destdir/`dirname \$dlpath`~
15716 test -d \$dldir || mkdir -p \$dldir~
15717 $install_prog $dir/$dlname \$dldir/$dlname~
15718 chmod a+x \$dldir/$dlname~
15719 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15720 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15723 dlpath=$dir/\$dldll~
15725 shlibpath_overrides_runpath=yes
15729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15734 # MinGW DLLs use traditional 'lib' prefix
15735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15738 # pw32 DLLs use 'pw' prefix rather than 'lib'
15739 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15742 dynamic_linker='Win32 ld.exe'
15747 libname_spec='$name'
15748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15749 library_names_spec='${libname}.dll.lib'
15753 sys_lib_search_path_spec=
15756 for lt_path in $LIB
15759 # Let DOS variable expansion print the short 8.3 style file name.
15760 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15761 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15764 # Convert to MSYS style.
15765 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15768 # Convert to unix form, then to dos form, then back to unix form
15769 # but this time dos style (no spaces!) so that the unix form looks
15770 # like /cygdrive/c/PROGRA~1:/cygdr...
15771 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15772 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15773 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15776 sys_lib_search_path_spec="$LIB"
15777 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15778 # It is most probably a Windows format PATH.
15779 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15781 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15783 # FIXME: find the short name or the path components, as spaces are
15784 # common. (e.g. "Program Files" -> "PROGRA~1")
15788 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15789 postinstall_cmds='base_file=`basename \${file}`~
15790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15791 dldir=$destdir/`dirname \$dlpath`~
15792 test -d \$dldir || mkdir -p \$dldir~
15793 $install_prog $dir/$dlname \$dldir/$dlname'
15794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15795 dlpath=$dir/\$dldll~
15797 shlibpath_overrides_runpath=yes
15798 dynamic_linker='Win32 link.exe'
15802 # Assume MSVC wrapper
15803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15804 dynamic_linker='Win32 ld.exe'
15807 # FIXME: first we should search . and the directory the executable is in
15811 darwin* | rhapsody*)
15812 dynamic_linker="$host_os dyld"
15813 version_type=darwin
15816 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15817 soname_spec='${libname}${release}${major}$shared_ext'
15818 shlibpath_overrides_runpath=yes
15819 shlibpath_var=DYLD_LIBRARY_PATH
15820 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15822 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15826 version_type=linux # correct to gnu/linux during the next big refactor
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15834 freebsd* | dragonfly*)
15835 # DragonFly does not have aout. When/if they implement a new
15836 # versioning mechanism, adjust this.
15837 if test -x /usr/bin/objformat; then
15838 objformat=`/usr/bin/objformat`
15841 freebsd[23].*) objformat=aout ;;
15842 *) objformat=elf ;;
15845 version_type=freebsd-$objformat
15846 case $version_type in
15848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15857 shlibpath_var=LD_LIBRARY_PATH
15860 shlibpath_overrides_runpath=yes
15862 freebsd3.[01]* | freebsdelf3.[01]*)
15863 shlibpath_overrides_runpath=yes
15864 hardcode_into_libs=yes
15866 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15867 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15868 shlibpath_overrides_runpath=no
15869 hardcode_into_libs=yes
15871 *) # from 4.6 on, and DragonFly
15872 shlibpath_overrides_runpath=yes
15873 hardcode_into_libs=yes
15879 version_type=linux # correct to gnu/linux during the next big refactor
15882 dynamic_linker="$host_os runtime_loader"
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15884 soname_spec='${libname}${release}${shared_ext}$major'
15885 shlibpath_var=LIBRARY_PATH
15886 shlibpath_overrides_runpath=yes
15887 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15888 hardcode_into_libs=yes
15891 hpux9* | hpux10* | hpux11*)
15892 # Give a soname corresponding to the major version so that dld.sl refuses to
15893 # link against other versions.
15900 hardcode_into_libs=yes
15901 dynamic_linker="$host_os dld.so"
15902 shlibpath_var=LD_LIBRARY_PATH
15903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15906 if test "X$HPUX_IA64_MODE" = X32; then
15907 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15909 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15915 hardcode_into_libs=yes
15916 dynamic_linker="$host_os dld.sl"
15917 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15926 dynamic_linker="$host_os dld.sl"
15927 shlibpath_var=SHLIB_PATH
15928 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15933 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15934 postinstall_cmds='chmod 555 $lib'
15935 # or fails outright, so override atomically:
15936 install_override_mode=555
15940 version_type=linux # correct to gnu/linux during the next big refactor
15943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15944 soname_spec='${libname}${release}${shared_ext}$major'
15945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 shlibpath_overrides_runpath=no
15948 hardcode_into_libs=yes
15951 irix5* | irix6* | nonstopux*)
15953 nonstopux*) version_type=nonstopux ;;
15955 if test "$lt_cv_prog_gnu_ld" = yes; then
15956 version_type=linux # correct to gnu/linux during the next big refactor
15963 soname_spec='${libname}${release}${shared_ext}$major'
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15966 irix5* | nonstopux*)
15967 libsuff= shlibsuff=
15970 case $LD in # libtool.m4 will add one of these switches to LD
15971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15972 libsuff= shlibsuff= libmagic=32-bit;;
15973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15974 libsuff=32 shlibsuff=N32 libmagic=N32;;
15975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15977 *) libsuff= shlibsuff= libmagic=never-match;;
15981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15982 shlibpath_overrides_runpath=no
15983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15985 hardcode_into_libs=yes
15988 # No shared lib support for Linux oldld, aout, or coff.
15989 linux*oldld* | linux*aout* | linux*coff*)
15993 # This must be glibc/ELF.
15994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15995 version_type=linux # correct to gnu/linux during the next big refactor
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 shlibpath_overrides_runpath=no
16004 # Some binutils ld are patched to set DT_RUNPATH
16005 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16006 $as_echo_n "(cached) " >&6
16008 lt_cv_shlibpath_overrides_runpath=no
16009 save_LDFLAGS=$LDFLAGS
16010 save_libdir=$libdir
16011 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16012 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16024 if ac_fn_cxx_try_link "$LINENO"; then :
16025 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16026 lt_cv_shlibpath_overrides_runpath=yes
16029 rm -f core conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
16031 LDFLAGS=$save_LDFLAGS
16032 libdir=$save_libdir
16036 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16038 # This implies no fast_install, which is unacceptable.
16039 # Some rework will be needed to allow for fast_install
16040 # before this can be enabled.
16041 hardcode_into_libs=yes
16043 # Append ld.so.conf contents to the search path
16044 if test -f /etc/ld.so.conf; then
16045 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' ' '`
16046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16049 # We used to test for /lib/ld.so.1 and disable shared libraries on
16050 # powerpc, because MkLinux only supported shared libraries with the
16051 # GNU dynamic linker. Since this was broken with cross compilers,
16052 # most powerpc-linux boxes support dynamic linking these days and
16053 # people can always --disable-shared, the test was removed, and we
16054 # assume the GNU/Linux dynamic linker is in use.
16055 dynamic_linker='GNU/Linux ld.so'
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 shlibpath_overrides_runpath=no
16066 hardcode_into_libs=yes
16067 dynamic_linker='NetBSD ld.elf_so'
16074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16077 dynamic_linker='NetBSD (a.out) ld.so'
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 dynamic_linker='NetBSD ld.elf_so'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 shlibpath_overrides_runpath=yes
16085 hardcode_into_libs=yes
16089 version_type=linux # correct to gnu/linux during the next big refactor
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath=yes
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100 soname_spec='${libname}${release}${shared_ext}$major'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=no
16103 hardcode_into_libs=yes
16104 dynamic_linker='ldqnx.so'
16109 sys_lib_dlsearch_path_spec="/usr/lib"
16111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16114 *) need_version=no ;;
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16121 openbsd2.[89] | openbsd2.[89].*)
16122 shlibpath_overrides_runpath=no
16125 shlibpath_overrides_runpath=yes
16129 shlibpath_overrides_runpath=yes
16134 libname_spec='$name'
16137 library_names_spec='$libname${shared_ext} $libname.a'
16138 dynamic_linker='OS/2 ld.exe'
16139 shlibpath_var=LIBPATH
16142 osf3* | osf4* | osf5*)
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148 shlibpath_var=LD_LIBRARY_PATH
16149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16158 version_type=linux # correct to gnu/linux during the next big refactor
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 shlibpath_var=LD_LIBRARY_PATH
16164 shlibpath_overrides_runpath=yes
16165 hardcode_into_libs=yes
16166 # ldd complains unless libraries are executable
16167 postinstall_cmds='chmod +x $lib'
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16174 shlibpath_var=LD_LIBRARY_PATH
16175 shlibpath_overrides_runpath=yes
16176 if test "$with_gnu_ld" = yes; then
16183 version_type=linux # correct to gnu/linux during the next big refactor
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 case $host_vendor in
16189 shlibpath_overrides_runpath=no
16191 runpath_var=LD_RUN_PATH
16199 shlibpath_overrides_runpath=no
16200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16206 if test -d /usr/nec ;then
16207 version_type=linux # correct to gnu/linux during the next big refactor
16208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16209 soname_spec='$libname${shared_ext}.$major'
16210 shlibpath_var=LD_LIBRARY_PATH
16214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16215 version_type=freebsd-elf
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16223 if test "$with_gnu_ld" = yes; then
16224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16233 sys_lib_dlsearch_path_spec='/usr/lib'
16237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16238 version_type=linux # correct to gnu/linux during the next big refactor
16241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 shlibpath_overrides_runpath=no
16244 hardcode_into_libs=yes
16248 version_type=linux # correct to gnu/linux during the next big refactor
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 shlibpath_var=LD_LIBRARY_PATH
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16259 $as_echo "$dynamic_linker" >&6; }
16260 test "$dynamic_linker" = no && can_build_shared=no
16262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16263 if test "$GCC" = yes; then
16264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16267 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16268 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16313 hardcode_action_CXX=
16314 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16315 test -n "$runpath_var_CXX" ||
16316 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16318 # We can hardcode non-existent directories.
16319 if test "$hardcode_direct_CXX" != no &&
16320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16321 # have to relink, otherwise we might link with an installed library
16322 # when we should be linking with a yet-to-be-installed one
16323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16324 test "$hardcode_minus_L_CXX" != no; then
16325 # Linking always hardcodes the temporary library directory.
16326 hardcode_action_CXX=relink
16328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16329 hardcode_action_CXX=immediate
16332 # We cannot hardcode anything, or else we can only hardcode existing
16334 hardcode_action_CXX=unsupported
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16337 $as_echo "$hardcode_action_CXX" >&6; }
16339 if test "$hardcode_action_CXX" = relink ||
16340 test "$inherit_rpath_CXX" = yes; then
16341 # Fast installation is not supported
16342 enable_fast_install=no
16343 elif test "$shlibpath_overrides_runpath" = yes ||
16344 test "$enable_shared" = no; then
16345 # Fast installation is not necessary
16346 enable_fast_install=needless
16355 fi # test -n "$compiler"
16358 CFLAGS=$lt_save_CFLAGS
16362 with_gnu_ld=$lt_save_with_gnu_ld
16363 lt_cv_path_LDCXX=$lt_cv_path_LD
16364 lt_cv_path_LD=$lt_save_path_LD
16365 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16366 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16367 fi # test "$_lt_caught_CXX_error" != yes
16370 ac_cpp='$CPP $CPPFLAGS'
16371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16389 ac_config_commands="$ac_config_commands libtool"
16394 # Only expand once:
16402 ac_cpp='$CPP $CPPFLAGS'
16403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16410 $as_echo_n "checking for library containing dlopen... " >&6; }
16411 if ${ac_cv_search_dlopen+:} false; then :
16412 $as_echo_n "(cached) " >&6
16414 ac_func_search_save_LIBS=$LIBS
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16418 /* Override any GCC internal prototype to avoid an error.
16419 Use char because int might match the return type of a GCC
16420 builtin and then its argument prototype would still apply. */
16433 for ac_lib in '' dl; do
16434 if test -z "$ac_lib"; then
16435 ac_res="none required"
16438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16440 if ac_fn_c_try_link "$LINENO"; then :
16441 ac_cv_search_dlopen=$ac_res
16443 rm -f core conftest.err conftest.$ac_objext \
16445 if ${ac_cv_search_dlopen+:} false; then :
16449 if ${ac_cv_search_dlopen+:} false; then :
16452 ac_cv_search_dlopen=no
16454 rm conftest.$ac_ext
16455 LIBS=$ac_func_search_save_LIBS
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16458 $as_echo "$ac_cv_search_dlopen" >&6; }
16459 ac_res=$ac_cv_search_dlopen
16460 if test "$ac_res" != no; then :
16461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16463 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16465 if test "$ac_cv_search_dlopen" != "none required" ; then
16466 LIBADD_DLOPEN="-ldl"
16468 libltdl_cv_lib_dl_dlopen="yes"
16469 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16474 # include <dlfcn.h>
16485 if ac_fn_c_try_link "$LINENO"; then :
16487 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16489 libltdl_cv_func_dlopen="yes"
16490 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16493 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16494 if ${ac_cv_lib_svld_dlopen+:} false; then :
16495 $as_echo_n "(cached) " >&6
16497 ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lsvld $LIBS"
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16517 if ac_fn_c_try_link "$LINENO"; then :
16518 ac_cv_lib_svld_dlopen=yes
16520 ac_cv_lib_svld_dlopen=no
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16527 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16528 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16530 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16532 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16533 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16537 rm -f core conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16541 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16543 lt_save_LIBS="$LIBS"
16544 LIBS="$LIBS $LIBADD_DLOPEN"
16545 for ac_func in dlerror
16547 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16548 if test "x$ac_cv_func_dlerror" = xyes; then :
16549 cat >>confdefs.h <<_ACEOF
16550 #define HAVE_DLERROR 1
16556 LIBS="$lt_save_LIBS"
16561 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16562 if test "x$ac_cv_func_shl_load" = xyes; then :
16564 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16566 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16569 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16570 if ${ac_cv_lib_dld_shl_load+:} false; then :
16571 $as_echo_n "(cached) " >&6
16573 ac_check_lib_save_LIBS=$LIBS
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16578 /* Override any GCC internal prototype to avoid an error.
16579 Use char because int might match the return type of a GCC
16580 builtin and then its argument prototype would still apply. */
16588 return shl_load ();
16593 if ac_fn_c_try_link "$LINENO"; then :
16594 ac_cv_lib_dld_shl_load=yes
16596 ac_cv_lib_dld_shl_load=no
16598 rm -f core conftest.err conftest.$ac_objext \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16603 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16604 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16606 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16608 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16609 LIBADD_SHL_LOAD="-ldld"
16618 # We only want this for pre-Mac OS X 10.4.
16619 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16620 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16622 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16624 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16629 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16631 cygwin* | mingw* | os2* | pw32*)
16632 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16634 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16640 cat >>confdefs.h <<_ACEOF
16641 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16644 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16649 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16650 if ${ac_cv_lib_dld_dld_link+:} false; then :
16651 $as_echo_n "(cached) " >&6
16653 ac_check_lib_save_LIBS=$LIBS
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16658 /* Override any GCC internal prototype to avoid an error.
16659 Use char because int might match the return type of a GCC
16660 builtin and then its argument prototype would still apply. */
16668 return dld_link ();
16673 if ac_fn_c_try_link "$LINENO"; then :
16674 ac_cv_lib_dld_dld_link=yes
16676 ac_cv_lib_dld_dld_link=no
16678 rm -f core conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16683 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16684 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16686 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16688 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16695 if test -n "$LT_DLLOADERS"
16697 for lt_loader in $LT_DLLOADERS; do
16698 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16701 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16706 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16710 ac_cpp='$CPP $CPPFLAGS'
16711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16718 if test x$use_libtool != xno; then
16719 DEFAULT_OBJECT_TYPE=".lo"
16720 DEFAULT_ARCHIVE_TYPE=".la"
16721 DEFAULT_SHARED_OBJECT_TYPE=".la"
16722 LIBTOOL="\$(LIBTOOL)"
16723 LIBTOOL_INSTALL_TARGET="libtool-install"
16724 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16725 LIBTOOL_CLEAN_TARGET="libtool-clean"
16726 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16727 FD_PLUGIN_DIR="src/plugins/fd"
16730 DEFAULT_OBJECT_TYPE=".o"
16731 DEFAULT_ARCHIVE_TYPE=".a"
16732 DEFAULT_SHARED_OBJECT_TYPE=".so"
16733 LIBTOOL="# \$(LIBTOOL)"
16734 LIBTOOL_INSTALL_TARGET=""
16735 LIBTOOL_UNINSTALL_TARGET=""
16736 LIBTOOL_CLEAN_TARGET=""
16737 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16752 # Check whether --enable-includes was given.
16753 if test "${enable_includes+set}" = set; then :
16754 enableval=$enable_includes;
16755 if test x$enableval = xyes; then
16756 install_includes=yes
16764 if test x$use_libtool != xno -a x$install_includes = xyes; then
16765 INCLUDE_INSTALL_TARGET="install-includes"
16766 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16768 INCLUDE_INSTALL_TARGET=""
16769 INCLUDE_UNINSTALL_TARGET=""
16777 *cygwin* ) CYGWIN=yes;;
16781 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16787 HAVE_SUN_OS_FALSE='#'
16789 HAVE_SUN_OS_TRUE='#'
16792 $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16799 HAVE_SUN_OS_FALSE='#'
16801 HAVE_SUN_OS_TRUE='#'
16806 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16812 HAVE_HURD_OS_FALSE='#'
16814 HAVE_HURD_OS_TRUE='#'
16815 HAVE_HURD_OS_FALSE=
16817 $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16824 HAVE_HURD_OS_FALSE='#'
16826 HAVE_HURD_OS_TRUE='#'
16827 HAVE_HURD_OS_FALSE=
16831 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16837 HAVE_OSF1_OS_FALSE='#'
16839 HAVE_OSF1_OS_TRUE='#'
16840 HAVE_OSF1_OS_FALSE=
16842 $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16849 HAVE_OSF1_OS_FALSE='#'
16851 HAVE_OSF1_OS_TRUE='#'
16852 HAVE_OSF1_OS_FALSE=
16856 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16862 HAVE_AIX_OS_FALSE='#'
16864 HAVE_AIX_OS_TRUE='#'
16867 $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16874 HAVE_AIX_OS_FALSE='#'
16876 HAVE_AIX_OS_TRUE='#'
16881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16887 HAVE_HPUX_OS_FALSE='#'
16889 HAVE_HPUX_OS_TRUE='#'
16890 HAVE_HPUX_OS_FALSE=
16892 $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16899 HAVE_HPUX_OS_FALSE='#'
16901 HAVE_HPUX_OS_TRUE='#'
16902 HAVE_HPUX_OS_FALSE=
16906 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16911 HAVE_LINUX_OS_TRUE=
16912 HAVE_LINUX_OS_FALSE='#'
16914 HAVE_LINUX_OS_TRUE='#'
16915 HAVE_LINUX_OS_FALSE=
16917 $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16923 HAVE_LINUX_OS_TRUE=
16924 HAVE_LINUX_OS_FALSE='#'
16926 HAVE_LINUX_OS_TRUE='#'
16927 HAVE_LINUX_OS_FALSE=
16931 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16936 HAVE_FREEBSD_OS_TRUE=
16937 HAVE_FREEBSD_OS_FALSE='#'
16939 HAVE_FREEBSD_OS_TRUE='#'
16940 HAVE_FREEBSD_OS_FALSE=
16942 $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16948 HAVE_FREEBSD_OS_TRUE=
16949 HAVE_FREEBSD_OS_FALSE='#'
16951 HAVE_FREEBSD_OS_TRUE='#'
16952 HAVE_FREEBSD_OS_FALSE=
16956 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16961 HAVE_NETBSD_OS_TRUE=
16962 HAVE_NETBSD_OS_FALSE='#'
16964 HAVE_NETBSD_OS_TRUE='#'
16965 HAVE_NETBSD_OS_FALSE=
16967 $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16973 HAVE_NETBSD_OS_TRUE=
16974 HAVE_NETBSD_OS_FALSE='#'
16976 HAVE_NETBSD_OS_TRUE='#'
16977 HAVE_NETBSD_OS_FALSE=
16981 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16986 HAVE_OPENBSD_OS_TRUE=
16987 HAVE_OPENBSD_OS_FALSE='#'
16989 HAVE_OPENBSD_OS_TRUE='#'
16990 HAVE_OPENBSD_OS_FALSE=
16992 $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16998 HAVE_OPENBSD_OS_TRUE=
16999 HAVE_OPENBSD_OS_FALSE='#'
17001 HAVE_OPENBSD_OS_TRUE='#'
17002 HAVE_OPENBSD_OS_FALSE=
17006 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17012 HAVE_BSDI_OS_FALSE='#'
17014 HAVE_BSDI_OS_TRUE='#'
17015 HAVE_BSDI_OS_FALSE=
17017 $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17024 HAVE_BSDI_OS_FALSE='#'
17026 HAVE_BSDI_OS_TRUE='#'
17027 HAVE_BSDI_OS_FALSE=
17031 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17037 HAVE_SGI_OS_FALSE='#'
17039 HAVE_SGI_OS_TRUE='#'
17042 $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17049 HAVE_SGI_OS_FALSE='#'
17051 HAVE_SGI_OS_TRUE='#'
17056 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17062 HAVE_IRIX_OS_FALSE='#'
17064 HAVE_IRIX_OS_TRUE='#'
17065 HAVE_IRIX_OS_FALSE=
17067 $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17074 HAVE_IRIX_OS_FALSE='#'
17076 HAVE_IRIX_OS_TRUE='#'
17077 HAVE_IRIX_OS_FALSE=
17081 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17086 HAVE_DARWIN_OS_TRUE=
17087 HAVE_DARWIN_OS_FALSE='#'
17089 HAVE_DARWIN_OS_TRUE='#'
17090 HAVE_DARWIN_OS_FALSE=
17092 $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17098 HAVE_DARWIN_OS_TRUE=
17099 HAVE_DARWIN_OS_FALSE='#'
17101 HAVE_DARWIN_OS_TRUE='#'
17102 HAVE_DARWIN_OS_FALSE=
17106 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17111 HAVE_KFREEBSD_OS_TRUE=
17112 HAVE_KFREEBSD_OS_FALSE='#'
17114 HAVE_KFREEBSD_OS_TRUE='#'
17115 HAVE_KFREEBSD_OS_FALSE=
17117 $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17123 HAVE_KFREEBSD_OS_TRUE=
17124 HAVE_KFREEBSD_OS_FALSE='#'
17126 HAVE_KFREEBSD_OS_TRUE='#'
17127 HAVE_KFREEBSD_OS_FALSE=
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17133 $as_echo_n "checking for Operating System Distribution... " >&6; }
17134 if test "x$DISTNAME" != "x"
17136 echo "distname set to $DISTNAME"
17137 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17140 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17143 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17146 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17149 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17167 elif test -f /etc/SuSE-release
17170 elif test -d /etc/SuSEconfig
17173 elif test -f /etc/mandrake-release
17176 elif test -f /etc/whitebox-release
17179 elif test -f /etc/redhat-release
17182 elif test -f /etc/gentoo-release
17185 elif test -f /etc/debian_version
17188 elif test -f /etc/slackware-version
17191 elif test x$host_vendor = xapple
17194 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17197 elif test -f /etc/engarde-version
17200 elif test -f /etc/arch-release
17203 elif test "$CYGWIN" = yes
17206 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17212 $as_echo "done" >&6; }
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17219 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17220 $as_echo_n "(cached) " >&6
17222 cat >conftest.make <<\_ACEOF
17225 @echo '@@@%%%=$(MAKE)=@@@%%%'
17227 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17229 *@@@%%%=?*=@@@%%%*)
17230 eval ac_cv_prog_make_${ac_make}_set=yes;;
17232 eval ac_cv_prog_make_${ac_make}_set=no;;
17234 rm -f conftest.make
17236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17238 $as_echo "yes" >&6; }
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242 $as_echo "no" >&6; }
17243 SET_MAKE="MAKE=${MAKE-make}"
17249 if test -n "$ac_aux_dir"; then
17250 case "$ac_aux_dir" in
17251 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17252 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17255 if test -z "$MKINSTALLDIRS"; then
17256 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17262 $as_echo_n "checking whether NLS is requested... " >&6; }
17263 # Check whether --enable-nls was given.
17264 if test "${enable_nls+set}" = set; then :
17265 enableval=$enable_nls; USE_NLS=$enableval
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17271 $as_echo "$USE_NLS" >&6; }
17278 # Prepare PATH_SEPARATOR.
17279 # The user is always right.
17280 if test "${PATH_SEPARATOR+set}" != set; then
17281 echo "#! /bin/sh" >conf$$.sh
17282 echo "exit 0" >>conf$$.sh
17284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17292 # Find out how to test for executable files. Don't use a zero-byte file,
17293 # as systems may use methods other than mode bits to determine executability.
17294 cat >conf$$.file <<_ASEOF
17298 chmod +x conf$$.file
17299 if test -x conf$$.file >/dev/null 2>&1; then
17300 ac_executable_p="test -x"
17302 ac_executable_p="test -f"
17306 # Extract the first word of "msgfmt", so it can be a program name with args.
17307 set dummy msgfmt; ac_word=$2
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17309 $as_echo_n "checking for $ac_word... " >&6; }
17310 if ${ac_cv_path_MSGFMT+:} false; then :
17311 $as_echo_n "(cached) " >&6
17315 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17318 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17319 for ac_dir in $PATH; do
17321 test -z "$ac_dir" && ac_dir=.
17322 for ac_exec_ext in '' $ac_executable_extensions; do
17323 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17324 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17325 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17326 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17327 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17334 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17338 MSGFMT="$ac_cv_path_MSGFMT"
17339 if test "$MSGFMT" != ":"; then
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17341 $as_echo "$MSGFMT" >&6; }
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17347 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17348 set dummy gmsgfmt; ac_word=$2
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17350 $as_echo_n "checking for $ac_word... " >&6; }
17351 if ${ac_cv_path_GMSGFMT+:} false; then :
17352 $as_echo_n "(cached) " >&6
17356 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17360 for as_dir in $PATH
17363 test -z "$as_dir" && as_dir=.
17364 for ac_exec_ext in '' $ac_executable_extensions; do
17365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17366 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17374 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17378 GMSGFMT=$ac_cv_path_GMSGFMT
17379 if test -n "$GMSGFMT"; then
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17381 $as_echo "$GMSGFMT" >&6; }
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17390 # Prepare PATH_SEPARATOR.
17391 # The user is always right.
17392 if test "${PATH_SEPARATOR+set}" != set; then
17393 echo "#! /bin/sh" >conf$$.sh
17394 echo "exit 0" >>conf$$.sh
17396 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17404 # Find out how to test for executable files. Don't use a zero-byte file,
17405 # as systems may use methods other than mode bits to determine executability.
17406 cat >conf$$.file <<_ASEOF
17410 chmod +x conf$$.file
17411 if test -x conf$$.file >/dev/null 2>&1; then
17412 ac_executable_p="test -x"
17414 ac_executable_p="test -f"
17418 # Extract the first word of "xgettext", so it can be a program name with args.
17419 set dummy xgettext; ac_word=$2
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17421 $as_echo_n "checking for $ac_word... " >&6; }
17422 if ${ac_cv_path_XGETTEXT+:} false; then :
17423 $as_echo_n "(cached) " >&6
17425 case "$XGETTEXT" in
17427 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17430 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17431 for ac_dir in $PATH; do
17433 test -z "$ac_dir" && ac_dir=.
17434 for ac_exec_ext in '' $ac_executable_extensions; do
17435 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17436 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17437 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17438 (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
17439 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17446 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17450 XGETTEXT="$ac_cv_path_XGETTEXT"
17451 if test "$XGETTEXT" != ":"; then
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17453 $as_echo "$XGETTEXT" >&6; }
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456 $as_echo "no" >&6; }
17462 # Prepare PATH_SEPARATOR.
17463 # The user is always right.
17464 if test "${PATH_SEPARATOR+set}" != set; then
17465 echo "#! /bin/sh" >conf$$.sh
17466 echo "exit 0" >>conf$$.sh
17468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17476 # Find out how to test for executable files. Don't use a zero-byte file,
17477 # as systems may use methods other than mode bits to determine executability.
17478 cat >conf$$.file <<_ASEOF
17482 chmod +x conf$$.file
17483 if test -x conf$$.file >/dev/null 2>&1; then
17484 ac_executable_p="test -x"
17486 ac_executable_p="test -f"
17490 # Extract the first word of "msgmerge", so it can be a program name with args.
17491 set dummy msgmerge; ac_word=$2
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17493 $as_echo_n "checking for $ac_word... " >&6; }
17494 if ${ac_cv_path_MSGMERGE+:} false; then :
17495 $as_echo_n "(cached) " >&6
17497 case "$MSGMERGE" in
17499 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17502 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17503 for ac_dir in $PATH; do
17505 test -z "$ac_dir" && ac_dir=.
17506 for ac_exec_ext in '' $ac_executable_extensions; do
17507 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17508 echo "$as_me: trying $ac_dir/$ac_word..." >&5
17509 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17510 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17517 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17521 MSGMERGE="$ac_cv_path_MSGMERGE"
17522 if test "$MSGMERGE" != ":"; then
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17524 $as_echo "$MSGMERGE" >&6; }
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17527 $as_echo "no" >&6; }
17531 if test "$GMSGFMT" != ":"; then
17532 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17533 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17536 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17538 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17543 if test "$XGETTEXT" != ":"; then
17544 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17545 (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
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17549 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17555 ac_config_commands="$ac_config_commands default-1"
17559 if test "X$prefix" = "XNONE"; then
17560 acl_final_prefix="$ac_default_prefix"
17562 acl_final_prefix="$prefix"
17564 if test "X$exec_prefix" = "XNONE"; then
17565 acl_final_exec_prefix='${prefix}'
17567 acl_final_exec_prefix="$exec_prefix"
17569 acl_save_prefix="$prefix"
17570 prefix="$acl_final_prefix"
17571 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17572 prefix="$acl_save_prefix"
17575 # Check whether --with-gnu-ld was given.
17576 if test "${with_gnu_ld+set}" = set; then :
17577 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17582 # Prepare PATH_SEPARATOR.
17583 # The user is always right.
17584 if test "${PATH_SEPARATOR+set}" != set; then
17585 echo "#! /bin/sh" >conf$$.sh
17586 echo "exit 0" >>conf$$.sh
17588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17596 if test "$GCC" = yes; then
17597 # Check if gcc -print-prog-name=ld gives a path.
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17599 $as_echo_n "checking for ld used by GCC... " >&6; }
17602 # gcc leaves a trailing carriage return which upsets mingw
17603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17608 # Accept absolute paths.
17609 [\\/]* | [A-Za-z]:[\\/]*)
17610 re_direlt='/[^/][^/]*/\.\./'
17611 # Canonicalize the path of ld
17612 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17613 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17614 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17616 test -z "$LD" && LD="$ac_prog"
17619 # If it fails, then pretend we aren't using GCC.
17623 # If it is relative, then search for the first ld in PATH.
17624 with_gnu_ld=unknown
17627 elif test "$with_gnu_ld" = yes; then
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17629 $as_echo_n "checking for GNU ld... " >&6; }
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17632 $as_echo_n "checking for non-GNU ld... " >&6; }
17634 if ${acl_cv_path_LD+:} false; then :
17635 $as_echo_n "(cached) " >&6
17637 if test -z "$LD"; then
17638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17639 for ac_dir in $PATH; do
17640 test -z "$ac_dir" && ac_dir=.
17641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17642 acl_cv_path_LD="$ac_dir/$ac_prog"
17643 # Check to see if the program is GNU ld. I'd rather use --version,
17644 # but apparently some GNU ld's only accept -v.
17645 # Break only if it was the GNU/non-GNU ld that we prefer.
17646 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17647 *GNU* | *'with BFD'*)
17648 test "$with_gnu_ld" != no && break ;;
17650 test "$with_gnu_ld" != yes && break ;;
17656 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17660 LD="$acl_cv_path_LD"
17661 if test -n "$LD"; then
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17663 $as_echo "$LD" >&6; }
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666 $as_echo "no" >&6; }
17668 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17670 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17671 if ${acl_cv_prog_gnu_ld+:} false; then :
17672 $as_echo_n "(cached) " >&6
17674 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17675 case `$LD -v 2>&1 </dev/null` in
17676 *GNU* | *'with BFD'*)
17677 acl_cv_prog_gnu_ld=yes ;;
17679 acl_cv_prog_gnu_ld=no ;;
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17683 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17684 with_gnu_ld=$acl_cv_prog_gnu_ld
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17690 $as_echo_n "checking for shared library run path origin... " >&6; }
17691 if ${acl_cv_rpath+:} false; then :
17692 $as_echo_n "(cached) " >&6
17695 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17696 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17698 rm -f ./conftest.sh
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17703 $as_echo "$acl_cv_rpath" >&6; }
17705 libext="$acl_cv_libext"
17706 shlibext="$acl_cv_shlibext"
17707 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17708 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17709 hardcode_direct="$acl_cv_hardcode_direct"
17710 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17711 # Check whether --enable-rpath was given.
17712 if test "${enable_rpath+set}" = set; then :
17713 enableval=$enable_rpath; :
17727 acl_save_prefix="$prefix"
17728 prefix="$acl_final_prefix"
17729 acl_save_exec_prefix="$exec_prefix"
17730 exec_prefix="$acl_final_exec_prefix"
17732 eval additional_includedir=\"$includedir\"
17733 eval additional_libdir=\"$libdir\"
17735 exec_prefix="$acl_save_exec_prefix"
17736 prefix="$acl_save_prefix"
17739 # Check whether --with-libiconv-prefix was given.
17740 if test "${with_libiconv_prefix+set}" = set; then :
17741 withval=$with_libiconv_prefix;
17742 if test "X$withval" = "Xno"; then
17745 if test "X$withval" = "X"; then
17747 acl_save_prefix="$prefix"
17748 prefix="$acl_final_prefix"
17749 acl_save_exec_prefix="$exec_prefix"
17750 exec_prefix="$acl_final_exec_prefix"
17752 eval additional_includedir=\"$includedir\"
17753 eval additional_libdir=\"$libdir\"
17755 exec_prefix="$acl_save_exec_prefix"
17756 prefix="$acl_save_prefix"
17759 additional_includedir="$withval/include"
17760 additional_libdir="$withval/lib"
17771 names_already_handled=
17772 names_next_round='iconv '
17773 while test -n "$names_next_round"; do
17774 names_this_round="$names_next_round"
17776 for name in $names_this_round; do
17778 for n in $names_already_handled; do
17779 if test "$n" = "$name"; then
17780 already_handled=yes
17784 if test -z "$already_handled"; then
17785 names_already_handled="$names_already_handled $name"
17786 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17787 eval value=\"\$HAVE_LIB$uppername\"
17788 if test -n "$value"; then
17789 if test "$value" = yes; then
17790 eval value=\"\$LIB$uppername\"
17791 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17792 eval value=\"\$LTLIB$uppername\"
17793 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17802 if test $use_additional = yes; then
17803 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17804 found_dir="$additional_libdir"
17805 found_so="$additional_libdir/lib$name.$shlibext"
17806 if test -f "$additional_libdir/lib$name.la"; then
17807 found_la="$additional_libdir/lib$name.la"
17810 if test -f "$additional_libdir/lib$name.$libext"; then
17811 found_dir="$additional_libdir"
17812 found_a="$additional_libdir/lib$name.$libext"
17813 if test -f "$additional_libdir/lib$name.la"; then
17814 found_la="$additional_libdir/lib$name.la"
17819 if test "X$found_dir" = "X"; then
17820 for x in $LDFLAGS $LTLIBICONV; do
17822 acl_save_prefix="$prefix"
17823 prefix="$acl_final_prefix"
17824 acl_save_exec_prefix="$exec_prefix"
17825 exec_prefix="$acl_final_exec_prefix"
17827 exec_prefix="$acl_save_exec_prefix"
17828 prefix="$acl_save_prefix"
17832 dir=`echo "X$x" | sed -e 's/^X-L//'`
17833 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17835 found_so="$dir/lib$name.$shlibext"
17836 if test -f "$dir/lib$name.la"; then
17837 found_la="$dir/lib$name.la"
17840 if test -f "$dir/lib$name.$libext"; then
17842 found_a="$dir/lib$name.$libext"
17843 if test -f "$dir/lib$name.la"; then
17844 found_la="$dir/lib$name.la"
17850 if test "X$found_dir" != "X"; then
17855 if test "X$found_dir" != "X"; then
17856 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17857 if test "X$found_so" != "X"; then
17858 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17859 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17862 for x in $ltrpathdirs; do
17863 if test "X$x" = "X$found_dir"; then
17868 if test -z "$haveit"; then
17869 ltrpathdirs="$ltrpathdirs $found_dir"
17871 if test "$hardcode_direct" = yes; then
17872 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17874 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17877 for x in $rpathdirs; do
17878 if test "X$x" = "X$found_dir"; then
17883 if test -z "$haveit"; then
17884 rpathdirs="$rpathdirs $found_dir"
17888 for x in $LDFLAGS $LIBICONV; do
17890 acl_save_prefix="$prefix"
17891 prefix="$acl_final_prefix"
17892 acl_save_exec_prefix="$exec_prefix"
17893 exec_prefix="$acl_final_exec_prefix"
17895 exec_prefix="$acl_save_exec_prefix"
17896 prefix="$acl_save_prefix"
17898 if test "X$x" = "X-L$found_dir"; then
17903 if test -z "$haveit"; then
17904 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17906 if test "$hardcode_minus_L" != no; then
17907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17909 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17915 if test "X$found_a" != "X"; then
17916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17918 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17921 additional_includedir=
17922 case "$found_dir" in
17924 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17925 additional_includedir="$basedir/include"
17928 if test "X$additional_includedir" != "X"; then
17929 if test "X$additional_includedir" != "X/usr/include"; then
17931 if test "X$additional_includedir" = "X/usr/local/include"; then
17932 if test -n "$GCC"; then
17934 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17938 if test -z "$haveit"; then
17939 for x in $CPPFLAGS $INCICONV; do
17941 acl_save_prefix="$prefix"
17942 prefix="$acl_final_prefix"
17943 acl_save_exec_prefix="$exec_prefix"
17944 exec_prefix="$acl_final_exec_prefix"
17946 exec_prefix="$acl_save_exec_prefix"
17947 prefix="$acl_save_prefix"
17949 if test "X$x" = "X-I$additional_includedir"; then
17954 if test -z "$haveit"; then
17955 if test -d "$additional_includedir"; then
17956 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17962 if test -n "$found_la"; then
17963 save_libdir="$libdir"
17964 case "$found_la" in
17965 */* | *\\*) . "$found_la" ;;
17966 *) . "./$found_la" ;;
17968 libdir="$save_libdir"
17969 for dep in $dependency_libs; do
17972 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17973 if test "X$additional_libdir" != "X/usr/lib"; then
17975 if test "X$additional_libdir" = "X/usr/local/lib"; then
17976 if test -n "$GCC"; then
17978 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17982 if test -z "$haveit"; then
17984 for x in $LDFLAGS $LIBICONV; do
17986 acl_save_prefix="$prefix"
17987 prefix="$acl_final_prefix"
17988 acl_save_exec_prefix="$exec_prefix"
17989 exec_prefix="$acl_final_exec_prefix"
17991 exec_prefix="$acl_save_exec_prefix"
17992 prefix="$acl_save_prefix"
17994 if test "X$x" = "X-L$additional_libdir"; then
17999 if test -z "$haveit"; then
18000 if test -d "$additional_libdir"; then
18001 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18005 for x in $LDFLAGS $LTLIBICONV; do
18007 acl_save_prefix="$prefix"
18008 prefix="$acl_final_prefix"
18009 acl_save_exec_prefix="$exec_prefix"
18010 exec_prefix="$acl_final_exec_prefix"
18012 exec_prefix="$acl_save_exec_prefix"
18013 prefix="$acl_save_prefix"
18015 if test "X$x" = "X-L$additional_libdir"; then
18020 if test -z "$haveit"; then
18021 if test -d "$additional_libdir"; then
18022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18029 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18030 if test "$enable_rpath" != no; then
18032 for x in $rpathdirs; do
18033 if test "X$x" = "X$dir"; then
18038 if test -z "$haveit"; then
18039 rpathdirs="$rpathdirs $dir"
18042 for x in $ltrpathdirs; do
18043 if test "X$x" = "X$dir"; then
18048 if test -z "$haveit"; then
18049 ltrpathdirs="$ltrpathdirs $dir"
18054 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18057 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18060 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18061 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18067 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18068 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18074 if test "X$rpathdirs" != "X"; then
18075 if test -n "$hardcode_libdir_separator"; then
18077 for found_dir in $rpathdirs; do
18078 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18080 acl_save_libdir="$libdir"
18082 eval flag=\"$hardcode_libdir_flag_spec\"
18083 libdir="$acl_save_libdir"
18084 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18086 for found_dir in $rpathdirs; do
18087 acl_save_libdir="$libdir"
18088 libdir="$found_dir"
18089 eval flag=\"$hardcode_libdir_flag_spec\"
18090 libdir="$acl_save_libdir"
18091 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18095 if test "X$ltrpathdirs" != "X"; then
18096 for found_dir in $ltrpathdirs; do
18097 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18119 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18120 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18121 $as_echo_n "(cached) " >&6
18123 gt_save_CPPFLAGS="$CPPFLAGS"
18124 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18125 gt_save_LIBS="$LIBS"
18126 LIBS="$LIBS -framework CoreFoundation"
18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h. */
18129 #include <CFPreferences.h>
18133 CFPreferencesCopyAppValue(NULL, NULL)
18138 if ac_fn_c_try_link "$LINENO"; then :
18139 gt_cv_func_CFPreferencesCopyAppValue=yes
18141 gt_cv_func_CFPreferencesCopyAppValue=no
18143 rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18145 CPPFLAGS="$gt_save_CPPFLAGS"
18146 LIBS="$gt_save_LIBS"
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18149 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18150 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18152 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18156 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18157 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18158 $as_echo_n "(cached) " >&6
18160 gt_save_CPPFLAGS="$CPPFLAGS"
18161 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18162 gt_save_LIBS="$LIBS"
18163 LIBS="$LIBS -framework CoreFoundation"
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h. */
18166 #include <CFLocale.h>
18170 CFLocaleCopyCurrent();
18175 if ac_fn_c_try_link "$LINENO"; then :
18176 gt_cv_func_CFLocaleCopyCurrent=yes
18178 gt_cv_func_CFLocaleCopyCurrent=no
18180 rm -f core conftest.err conftest.$ac_objext \
18181 conftest$ac_exeext conftest.$ac_ext
18182 CPPFLAGS="$gt_save_CPPFLAGS"
18183 LIBS="$gt_save_LIBS"
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18186 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18187 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18189 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18193 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18194 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18201 $as_echo_n "checking whether NLS is requested... " >&6; }
18202 # Check whether --enable-nls was given.
18203 if test "${enable_nls+set}" = set; then :
18204 enableval=$enable_nls; USE_NLS=$enableval
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18210 $as_echo "$USE_NLS" >&6; }
18219 if test "$USE_NLS" = "yes"; then
18220 gt_use_preinstalled_gnugettext=no
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18228 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18229 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18230 $as_echo_n "(cached) " >&6
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234 #include <libintl.h>
18235 extern int _nl_msg_cat_cntr;
18236 extern int *_nl_domain_bindings;
18240 bindtextdomain ("", "");
18241 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18246 if ac_fn_c_try_link "$LINENO"; then :
18247 gt_cv_func_gnugettext1_libc=yes
18249 gt_cv_func_gnugettext1_libc=no
18251 rm -f core conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18255 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18257 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18263 am_save_CPPFLAGS="$CPPFLAGS"
18265 for element in $INCICONV; do
18267 for x in $CPPFLAGS; do
18269 acl_save_prefix="$prefix"
18270 prefix="$acl_final_prefix"
18271 acl_save_exec_prefix="$exec_prefix"
18272 exec_prefix="$acl_final_exec_prefix"
18274 exec_prefix="$acl_save_exec_prefix"
18275 prefix="$acl_save_prefix"
18277 if test "X$x" = "X$element"; then
18282 if test -z "$haveit"; then
18283 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18289 $as_echo_n "checking for iconv... " >&6; }
18290 if ${am_cv_func_iconv+:} false; then :
18291 $as_echo_n "(cached) " >&6
18294 am_cv_func_iconv="no, consider installing GNU libiconv"
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18298 #include <stdlib.h>
18303 iconv_t cd = iconv_open("","");
18304 iconv(cd,NULL,NULL,NULL,NULL);
18310 if ac_fn_c_try_link "$LINENO"; then :
18311 am_cv_func_iconv=yes
18313 rm -f core conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18315 if test "$am_cv_func_iconv" != yes; then
18316 am_save_LIBS="$LIBS"
18317 LIBS="$LIBS $LIBICONV"
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18320 #include <stdlib.h>
18325 iconv_t cd = iconv_open("","");
18326 iconv(cd,NULL,NULL,NULL,NULL);
18332 if ac_fn_c_try_link "$LINENO"; then :
18333 am_cv_lib_iconv=yes
18334 am_cv_func_iconv=yes
18336 rm -f core conftest.err conftest.$ac_objext \
18337 conftest$ac_exeext conftest.$ac_ext
18338 LIBS="$am_save_LIBS"
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18343 $as_echo "$am_cv_func_iconv" >&6; }
18344 if test "$am_cv_func_iconv" = yes; then
18346 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18349 if test "$am_cv_lib_iconv" = yes; then
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18351 $as_echo_n "checking how to link with libiconv... " >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18353 $as_echo "$LIBICONV" >&6; }
18355 CPPFLAGS="$am_save_CPPFLAGS"
18367 acl_save_prefix="$prefix"
18368 prefix="$acl_final_prefix"
18369 acl_save_exec_prefix="$exec_prefix"
18370 exec_prefix="$acl_final_exec_prefix"
18372 eval additional_includedir=\"$includedir\"
18373 eval additional_libdir=\"$libdir\"
18375 exec_prefix="$acl_save_exec_prefix"
18376 prefix="$acl_save_prefix"
18379 # Check whether --with-libintl-prefix was given.
18380 if test "${with_libintl_prefix+set}" = set; then :
18381 withval=$with_libintl_prefix;
18382 if test "X$withval" = "Xno"; then
18385 if test "X$withval" = "X"; then
18387 acl_save_prefix="$prefix"
18388 prefix="$acl_final_prefix"
18389 acl_save_exec_prefix="$exec_prefix"
18390 exec_prefix="$acl_final_exec_prefix"
18392 eval additional_includedir=\"$includedir\"
18393 eval additional_libdir=\"$libdir\"
18395 exec_prefix="$acl_save_exec_prefix"
18396 prefix="$acl_save_prefix"
18399 additional_includedir="$withval/include"
18400 additional_libdir="$withval/lib"
18411 names_already_handled=
18412 names_next_round='intl '
18413 while test -n "$names_next_round"; do
18414 names_this_round="$names_next_round"
18416 for name in $names_this_round; do
18418 for n in $names_already_handled; do
18419 if test "$n" = "$name"; then
18420 already_handled=yes
18424 if test -z "$already_handled"; then
18425 names_already_handled="$names_already_handled $name"
18426 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18427 eval value=\"\$HAVE_LIB$uppername\"
18428 if test -n "$value"; then
18429 if test "$value" = yes; then
18430 eval value=\"\$LIB$uppername\"
18431 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18432 eval value=\"\$LTLIB$uppername\"
18433 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18442 if test $use_additional = yes; then
18443 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18444 found_dir="$additional_libdir"
18445 found_so="$additional_libdir/lib$name.$shlibext"
18446 if test -f "$additional_libdir/lib$name.la"; then
18447 found_la="$additional_libdir/lib$name.la"
18450 if test -f "$additional_libdir/lib$name.$libext"; then
18451 found_dir="$additional_libdir"
18452 found_a="$additional_libdir/lib$name.$libext"
18453 if test -f "$additional_libdir/lib$name.la"; then
18454 found_la="$additional_libdir/lib$name.la"
18459 if test "X$found_dir" = "X"; then
18460 for x in $LDFLAGS $LTLIBINTL; do
18462 acl_save_prefix="$prefix"
18463 prefix="$acl_final_prefix"
18464 acl_save_exec_prefix="$exec_prefix"
18465 exec_prefix="$acl_final_exec_prefix"
18467 exec_prefix="$acl_save_exec_prefix"
18468 prefix="$acl_save_prefix"
18472 dir=`echo "X$x" | sed -e 's/^X-L//'`
18473 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18475 found_so="$dir/lib$name.$shlibext"
18476 if test -f "$dir/lib$name.la"; then
18477 found_la="$dir/lib$name.la"
18480 if test -f "$dir/lib$name.$libext"; then
18482 found_a="$dir/lib$name.$libext"
18483 if test -f "$dir/lib$name.la"; then
18484 found_la="$dir/lib$name.la"
18490 if test "X$found_dir" != "X"; then
18495 if test "X$found_dir" != "X"; then
18496 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18497 if test "X$found_so" != "X"; then
18498 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18499 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18502 for x in $ltrpathdirs; do
18503 if test "X$x" = "X$found_dir"; then
18508 if test -z "$haveit"; then
18509 ltrpathdirs="$ltrpathdirs $found_dir"
18511 if test "$hardcode_direct" = yes; then
18512 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18514 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18515 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18517 for x in $rpathdirs; do
18518 if test "X$x" = "X$found_dir"; then
18523 if test -z "$haveit"; then
18524 rpathdirs="$rpathdirs $found_dir"
18528 for x in $LDFLAGS $LIBINTL; do
18530 acl_save_prefix="$prefix"
18531 prefix="$acl_final_prefix"
18532 acl_save_exec_prefix="$exec_prefix"
18533 exec_prefix="$acl_final_exec_prefix"
18535 exec_prefix="$acl_save_exec_prefix"
18536 prefix="$acl_save_prefix"
18538 if test "X$x" = "X-L$found_dir"; then
18543 if test -z "$haveit"; then
18544 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18546 if test "$hardcode_minus_L" != no; then
18547 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18549 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18555 if test "X$found_a" != "X"; then
18556 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18558 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18561 additional_includedir=
18562 case "$found_dir" in
18564 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18565 additional_includedir="$basedir/include"
18568 if test "X$additional_includedir" != "X"; then
18569 if test "X$additional_includedir" != "X/usr/include"; then
18571 if test "X$additional_includedir" = "X/usr/local/include"; then
18572 if test -n "$GCC"; then
18574 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18578 if test -z "$haveit"; then
18579 for x in $CPPFLAGS $INCINTL; do
18581 acl_save_prefix="$prefix"
18582 prefix="$acl_final_prefix"
18583 acl_save_exec_prefix="$exec_prefix"
18584 exec_prefix="$acl_final_exec_prefix"
18586 exec_prefix="$acl_save_exec_prefix"
18587 prefix="$acl_save_prefix"
18589 if test "X$x" = "X-I$additional_includedir"; then
18594 if test -z "$haveit"; then
18595 if test -d "$additional_includedir"; then
18596 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18602 if test -n "$found_la"; then
18603 save_libdir="$libdir"
18604 case "$found_la" in
18605 */* | *\\*) . "$found_la" ;;
18606 *) . "./$found_la" ;;
18608 libdir="$save_libdir"
18609 for dep in $dependency_libs; do
18612 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18613 if test "X$additional_libdir" != "X/usr/lib"; then
18615 if test "X$additional_libdir" = "X/usr/local/lib"; then
18616 if test -n "$GCC"; then
18618 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18622 if test -z "$haveit"; then
18624 for x in $LDFLAGS $LIBINTL; do
18626 acl_save_prefix="$prefix"
18627 prefix="$acl_final_prefix"
18628 acl_save_exec_prefix="$exec_prefix"
18629 exec_prefix="$acl_final_exec_prefix"
18631 exec_prefix="$acl_save_exec_prefix"
18632 prefix="$acl_save_prefix"
18634 if test "X$x" = "X-L$additional_libdir"; then
18639 if test -z "$haveit"; then
18640 if test -d "$additional_libdir"; then
18641 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18645 for x in $LDFLAGS $LTLIBINTL; do
18647 acl_save_prefix="$prefix"
18648 prefix="$acl_final_prefix"
18649 acl_save_exec_prefix="$exec_prefix"
18650 exec_prefix="$acl_final_exec_prefix"
18652 exec_prefix="$acl_save_exec_prefix"
18653 prefix="$acl_save_prefix"
18655 if test "X$x" = "X-L$additional_libdir"; then
18660 if test -z "$haveit"; then
18661 if test -d "$additional_libdir"; then
18662 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18669 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18670 if test "$enable_rpath" != no; then
18672 for x in $rpathdirs; do
18673 if test "X$x" = "X$dir"; then
18678 if test -z "$haveit"; then
18679 rpathdirs="$rpathdirs $dir"
18682 for x in $ltrpathdirs; do
18683 if test "X$x" = "X$dir"; then
18688 if test -z "$haveit"; then
18689 ltrpathdirs="$ltrpathdirs $dir"
18694 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18697 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18700 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18701 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18707 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18708 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18714 if test "X$rpathdirs" != "X"; then
18715 if test -n "$hardcode_libdir_separator"; then
18717 for found_dir in $rpathdirs; do
18718 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18720 acl_save_libdir="$libdir"
18722 eval flag=\"$hardcode_libdir_flag_spec\"
18723 libdir="$acl_save_libdir"
18724 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18726 for found_dir in $rpathdirs; do
18727 acl_save_libdir="$libdir"
18728 libdir="$found_dir"
18729 eval flag=\"$hardcode_libdir_flag_spec\"
18730 libdir="$acl_save_libdir"
18731 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18735 if test "X$ltrpathdirs" != "X"; then
18736 for found_dir in $ltrpathdirs; do
18737 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18742 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18743 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18744 $as_echo_n "(cached) " >&6
18746 gt_save_CPPFLAGS="$CPPFLAGS"
18747 CPPFLAGS="$CPPFLAGS $INCINTL"
18748 gt_save_LIBS="$LIBS"
18749 LIBS="$LIBS $LIBINTL"
18750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751 /* end confdefs.h. */
18752 #include <libintl.h>
18753 extern int _nl_msg_cat_cntr;
18758 const char *_nl_expand_alias (const char *);
18762 bindtextdomain ("", "");
18763 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18768 if ac_fn_c_try_link "$LINENO"; then :
18769 gt_cv_func_gnugettext1_libintl=yes
18771 gt_cv_func_gnugettext1_libintl=no
18773 rm -f core conftest.err conftest.$ac_objext \
18774 conftest$ac_exeext conftest.$ac_ext
18775 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18776 LIBS="$LIBS $LIBICONV"
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779 #include <libintl.h>
18780 extern int _nl_msg_cat_cntr;
18785 const char *_nl_expand_alias (const char *);
18789 bindtextdomain ("", "");
18790 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18795 if ac_fn_c_try_link "$LINENO"; then :
18796 LIBINTL="$LIBINTL $LIBICONV"
18797 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18798 gt_cv_func_gnugettext1_libintl=yes
18801 rm -f core conftest.err conftest.$ac_objext \
18802 conftest$ac_exeext conftest.$ac_ext
18804 CPPFLAGS="$gt_save_CPPFLAGS"
18805 LIBS="$gt_save_LIBS"
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18808 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18811 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18812 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18813 && test "$PACKAGE" != gettext-runtime \
18814 && test "$PACKAGE" != gettext-tools; }; then
18815 gt_use_preinstalled_gnugettext=yes
18824 if test -n "$INTL_MACOSX_LIBS"; then
18825 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18826 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18827 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18828 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18832 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18833 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18835 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18843 $as_echo_n "checking whether to use NLS... " >&6; }
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18845 $as_echo "$USE_NLS" >&6; }
18846 if test "$USE_NLS" = "yes"; then
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18848 $as_echo_n "checking where the gettext function comes from... " >&6; }
18849 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18850 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18851 gt_source="external libintl"
18856 gt_source="included intl directory"
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18859 $as_echo "$gt_source" >&6; }
18862 if test "$USE_NLS" = "yes"; then
18864 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18865 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18867 $as_echo_n "checking how to link with libintl... " >&6; }
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18869 $as_echo "$LIBINTL" >&6; }
18871 for element in $INCINTL; do
18873 for x in $CPPFLAGS; do
18875 acl_save_prefix="$prefix"
18876 prefix="$acl_final_prefix"
18877 acl_save_exec_prefix="$exec_prefix"
18878 exec_prefix="$acl_final_exec_prefix"
18880 exec_prefix="$acl_save_exec_prefix"
18881 prefix="$acl_save_prefix"
18883 if test "X$x" = "X$element"; then
18888 if test -z "$haveit"; then
18889 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18896 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18899 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18908 INTLLIBS="$LIBINTL"
18916 os_name=`uname -s 2>/dev/null`
18917 if test x${prefix} = xNONE ; then
18918 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18919 sysconfdir=/etc/bacula
18922 if test `eval echo ${libdir}` = NONE/lib ; then
18925 os_processor=`uname -p 2>/dev/null`
18926 case ${os_processor} in
18941 if test `eval echo ${includedir}` = NONE/include ; then
18942 includedir=/usr/include
18945 if test `eval echo ${datarootdir}` = NONE/share ; then
18946 datarootdir=/usr/share
18951 if test x${exec_prefix} = xNONE ; then
18952 exec_prefix=${prefix}
18955 sysconfdir=`eval echo ${sysconfdir}`
18956 datarootdir=`eval echo ${datarootdir}`
18957 docdir=`eval echo ${docdir}`
18958 htmldir=`eval echo ${htmldir}`
18959 libdir=`eval echo ${libdir}`
18960 includedir=`eval echo ${includedir}`
18961 localedir=`eval echo ${datarootdir}/locale`
18962 cat >>confdefs.h <<_ACEOF
18963 #define SYSCONFDIR "$sysconfdir"
18966 cat >>confdefs.h <<_ACEOF
18967 #define LOCALEDIR "$localedir"
18971 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18972 sbindir=${exec_prefix}/sbin
18974 sbindir=`eval echo ${sbindir}`
18976 if test x$mandir = x'${prefix}/man' ; then
18977 mandir=/usr/share/man
18980 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18981 htmldir=`eval echo ${docdir}html`
18984 if test x$docdir = x'/usr/share/doc/' ; then
18985 docdir=`eval echo ${docdir}bacula`
18989 for ac_prog in msgfmt
18991 # Extract the first word of "$ac_prog", so it can be a program name with args.
18992 set dummy $ac_prog; ac_word=$2
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18994 $as_echo_n "checking for $ac_word... " >&6; }
18995 if ${ac_cv_path_MSGFMT+:} false; then :
18996 $as_echo_n "(cached) " >&6
19000 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19004 for as_dir in $PATH
19007 test -z "$as_dir" && as_dir=.
19008 for ac_exec_ext in '' $ac_executable_extensions; do
19009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19010 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19021 MSGFMT=$ac_cv_path_MSGFMT
19022 if test -n "$MSGFMT"; then
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19024 $as_echo "$MSGFMT" >&6; }
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027 $as_echo "no" >&6; }
19031 test -n "$MSGFMT" && break
19033 test -n "$MSGFMT" || MSGFMT="no"
19035 if test "$MSGFMT" = "no"
19037 echo 'msgfmt program not found, disabling NLS !'
19039 USE_INCLUDED_LIBINTL=no
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19043 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19044 if ${ac_cv_gnu_library_2+:} false; then :
19045 $as_echo_n "(cached) " >&6
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19050 #include <features.h>
19051 #ifdef __GNU_LIBRARY__
19052 #if (__GLIBC__ >= 2)
19058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19059 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19060 ac_cv_gnu_library_2=yes
19062 ac_cv_gnu_library_2=no
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19070 $as_echo "$ac_cv_gnu_library_2" >&6; }
19072 GLIBC2="$ac_cv_gnu_library_2"
19075 if test -n "$ac_tool_prefix"; then
19076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19079 $as_echo_n "checking for $ac_word... " >&6; }
19080 if ${ac_cv_prog_RANLIB+:} false; then :
19081 $as_echo_n "(cached) " >&6
19083 if test -n "$RANLIB"; then
19084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH
19090 test -z "$as_dir" && as_dir=.
19091 for ac_exec_ext in '' $ac_executable_extensions; do
19092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19103 RANLIB=$ac_cv_prog_RANLIB
19104 if test -n "$RANLIB"; then
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19106 $as_echo "$RANLIB" >&6; }
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19109 $as_echo "no" >&6; }
19114 if test -z "$ac_cv_prog_RANLIB"; then
19115 ac_ct_RANLIB=$RANLIB
19116 # Extract the first word of "ranlib", so it can be a program name with args.
19117 set dummy ranlib; ac_word=$2
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19119 $as_echo_n "checking for $ac_word... " >&6; }
19120 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19121 $as_echo_n "(cached) " >&6
19123 if test -n "$ac_ct_RANLIB"; then
19124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 for as_dir in $PATH
19130 test -z "$as_dir" && as_dir=.
19131 for ac_exec_ext in '' $ac_executable_extensions; do
19132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19133 ac_cv_prog_ac_ct_RANLIB="ranlib"
19134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19144 if test -n "$ac_ct_RANLIB"; then
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19146 $as_echo "$ac_ct_RANLIB" >&6; }
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19149 $as_echo "no" >&6; }
19152 if test "x$ac_ct_RANLIB" = x; then
19155 case $cross_compiling:$ac_tool_warned in
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19159 ac_tool_warned=yes ;;
19161 RANLIB=$ac_ct_RANLIB
19164 RANLIB="$ac_cv_prog_RANLIB"
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19169 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19170 if ${ac_cv_lib_cposix_strerror+:} false; then :
19171 $as_echo_n "(cached) " >&6
19173 ac_check_lib_save_LIBS=$LIBS
19174 LIBS="-lcposix $LIBS"
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h. */
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19188 return strerror ();
19193 if ac_fn_c_try_link "$LINENO"; then :
19194 ac_cv_lib_cposix_strerror=yes
19196 ac_cv_lib_cposix_strerror=no
19198 rm -f core conftest.err conftest.$ac_objext \
19199 conftest$ac_exeext conftest.$ac_ext
19200 LIBS=$ac_check_lib_save_LIBS
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19203 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19204 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19205 LIBS="$LIBS -lcposix"
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19211 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19212 if ${ac_cv_c_const+:} false; then :
19213 $as_echo_n "(cached) " >&6
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19222 #ifndef __cplusplus
19223 /* Ultrix mips cc rejects this sort of thing. */
19224 typedef int charset[2];
19225 const charset cs = { 0, 0 };
19226 /* SunOS 4.1.1 cc rejects this. */
19227 char const *const *pcpcc;
19229 /* NEC SVR4.0.2 mips cc rejects this. */
19230 struct point {int x, y;};
19231 static struct point const zero = {0,0};
19232 /* AIX XL C 1.02.0.0 rejects this.
19233 It does not let you subtract one const X* pointer from another in
19234 an arm of an if-expression whose if-part is not a constant
19236 const char *g = "string";
19237 pcpcc = &g + (g ? g-g : 0);
19238 /* HPUX 7.0 cc rejects these. */
19240 ppc = (char**) pcpcc;
19241 pcpcc = (char const *const *) ppc;
19242 { /* SCO 3.2v4 cc rejects this sort of thing. */
19245 char const *s = 0 ? (char *) 0 : (char const *) 0;
19250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19251 int x[] = {25, 17};
19252 const int *foo = &x[0];
19255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19256 typedef const int *iptr;
19260 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19262 struct s { int j; const int *ap[3]; } bx;
19263 struct s *b = &bx; b->j = 5;
19265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19266 const int foo = 10;
19267 if (!foo) return 0;
19269 return !cs[0] && !zero.x;
19276 if ac_fn_c_try_compile "$LINENO"; then :
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19284 $as_echo "$ac_cv_c_const" >&6; }
19285 if test $ac_cv_c_const = no; then
19287 $as_echo "#define const /**/" >>confdefs.h
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19293 $as_echo_n "checking for signed... " >&6; }
19294 if ${bh_cv_c_signed+:} false; then :
19295 $as_echo_n "(cached) " >&6
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h. */
19308 if ac_fn_c_try_compile "$LINENO"; then :
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19316 $as_echo "$bh_cv_c_signed" >&6; }
19317 if test $bh_cv_c_signed = no; then
19319 $as_echo "#define signed /**/" >>confdefs.h
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19324 $as_echo_n "checking for inline... " >&6; }
19325 if ${ac_cv_c_inline+:} false; then :
19326 $as_echo_n "(cached) " >&6
19329 for ac_kw in inline __inline__ __inline; do
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19332 #ifndef __cplusplus
19334 static $ac_kw foo_t static_foo () {return 0; }
19335 $ac_kw foo_t foo () {return 0; }
19339 if ac_fn_c_try_compile "$LINENO"; then :
19340 ac_cv_c_inline=$ac_kw
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 test "$ac_cv_c_inline" != no && break
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19348 $as_echo "$ac_cv_c_inline" >&6; }
19350 case $ac_cv_c_inline in
19353 case $ac_cv_c_inline in
19355 *) ac_val=$ac_cv_c_inline;;
19357 cat >>confdefs.h <<_ACEOF
19358 #ifndef __cplusplus
19359 #define inline $ac_val
19365 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19366 if test "x$ac_cv_type_off_t" = xyes; then :
19370 cat >>confdefs.h <<_ACEOF
19371 #define off_t long int
19376 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19377 if test "x$ac_cv_type_size_t" = xyes; then :
19381 cat >>confdefs.h <<_ACEOF
19382 #define size_t unsigned int
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19389 $as_echo_n "checking for long long... " >&6; }
19390 if ${ac_cv_type_long_long+:} false; then :
19391 $as_echo_n "(cached) " >&6
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19395 long long ll = 1LL; int i = 63;
19399 long long llmax = (long long) -1;
19400 return ll << i | ll >> i | llmax / ll | llmax % ll;
19405 if ac_fn_c_try_link "$LINENO"; then :
19406 ac_cv_type_long_long=yes
19408 ac_cv_type_long_long=no
19410 rm -f core conftest.err conftest.$ac_objext \
19411 conftest$ac_exeext conftest.$ac_ext
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19414 $as_echo "$ac_cv_type_long_long" >&6; }
19415 if test $ac_cv_type_long_long = yes; then
19417 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19423 $as_echo_n "checking for long double... " >&6; }
19424 if ${gt_cv_c_long_double+:} false; then :
19425 $as_echo_n "(cached) " >&6
19427 if test "$GCC" = yes; then
19428 gt_cv_c_long_double=yes
19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h. */
19433 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19434 long double foo = 0.0;
19435 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19436 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19446 if ac_fn_c_try_compile "$LINENO"; then :
19447 gt_cv_c_long_double=yes
19449 gt_cv_c_long_double=no
19451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19455 $as_echo "$gt_cv_c_long_double" >&6; }
19456 if test $gt_cv_c_long_double = yes; then
19458 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19464 $as_echo_n "checking for wchar_t... " >&6; }
19465 if ${gt_cv_c_wchar_t+:} false; then :
19466 $as_echo_n "(cached) " >&6
19468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19470 #include <stddef.h>
19471 wchar_t foo = (wchar_t)'\0';
19480 if ac_fn_c_try_compile "$LINENO"; then :
19481 gt_cv_c_wchar_t=yes
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19488 $as_echo "$gt_cv_c_wchar_t" >&6; }
19489 if test $gt_cv_c_wchar_t = yes; then
19491 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19497 $as_echo_n "checking for wint_t... " >&6; }
19498 if ${gt_cv_c_wint_t+:} false; then :
19499 $as_echo_n "(cached) " >&6
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19504 wint_t foo = (wchar_t)'\0';
19513 if ac_fn_c_try_compile "$LINENO"; then :
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19521 $as_echo "$gt_cv_c_wint_t" >&6; }
19522 if test $gt_cv_c_wint_t = yes; then
19524 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19530 $as_echo_n "checking for inttypes.h... " >&6; }
19531 if ${gl_cv_header_inttypes_h+:} false; then :
19532 $as_echo_n "(cached) " >&6
19534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h. */
19536 #include <sys/types.h>
19537 #include <inttypes.h>
19541 uintmax_t i = (uintmax_t) -1;
19546 if ac_fn_c_try_compile "$LINENO"; then :
19547 gl_cv_header_inttypes_h=yes
19549 gl_cv_header_inttypes_h=no
19551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19554 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19555 if test $gl_cv_header_inttypes_h = yes; then
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19565 $as_echo_n "checking for stdint.h... " >&6; }
19566 if ${gl_cv_header_stdint_h+:} false; then :
19567 $as_echo_n "(cached) " >&6
19569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19570 /* end confdefs.h. */
19571 #include <sys/types.h>
19572 #include <stdint.h>
19576 uintmax_t i = (uintmax_t) -1;
19581 if ac_fn_c_try_compile "$LINENO"; then :
19582 gl_cv_header_stdint_h=yes
19584 gl_cv_header_stdint_h=no
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19589 $as_echo "$gl_cv_header_stdint_h" >&6; }
19590 if test $gl_cv_header_stdint_h = yes; then
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_STDINT_H_WITH_UINTMAX 1
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19602 $as_echo_n "checking for intmax_t... " >&6; }
19603 if ${gt_cv_c_intmax_t+:} false; then :
19604 $as_echo_n "(cached) " >&6
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19609 #include <stddef.h>
19610 #include <stdlib.h>
19611 #if HAVE_STDINT_H_WITH_UINTMAX
19612 #include <stdint.h>
19614 #if HAVE_INTTYPES_H_WITH_UINTMAX
19615 #include <inttypes.h>
19626 if ac_fn_c_try_compile "$LINENO"; then :
19627 gt_cv_c_intmax_t=yes
19629 gt_cv_c_intmax_t=no
19631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19634 $as_echo "$gt_cv_c_intmax_t" >&6; }
19635 if test $gt_cv_c_intmax_t = yes; then
19637 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19644 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19645 if ${gt_cv_func_printf_posix+:} false; then :
19646 $as_echo_n "(cached) " >&6
19649 if test "$cross_compiling" = yes; then :
19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h. */
19654 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19660 $EGREP "notposix" >/dev/null 2>&1; then :
19661 gt_cv_func_printf_posix="guessing no"
19663 gt_cv_func_printf_posix="guessing yes"
19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19673 #include <string.h>
19674 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19675 dollar expansion (possibly an autoconf bug). */
19676 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19677 static char buf[100];
19680 sprintf (buf, format, 33, 55);
19681 return (strcmp (buf, "55 33") != 0);
19684 if ac_fn_c_try_run "$LINENO"; then :
19685 gt_cv_func_printf_posix=yes
19687 gt_cv_func_printf_posix=no
19689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19690 conftest.$ac_objext conftest.beam conftest.$ac_ext
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19696 $as_echo "$gt_cv_func_printf_posix" >&6; }
19697 case $gt_cv_func_printf_posix in
19700 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19706 # for constant arguments. Useless!
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19708 $as_echo_n "checking for working alloca.h... " >&6; }
19709 if ${ac_cv_working_alloca_h+:} false; then :
19710 $as_echo_n "(cached) " >&6
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h. */
19714 #include <alloca.h>
19718 char *p = (char *) alloca (2 * sizeof (int));
19724 if ac_fn_c_try_link "$LINENO"; then :
19725 ac_cv_working_alloca_h=yes
19727 ac_cv_working_alloca_h=no
19729 rm -f core conftest.err conftest.$ac_objext \
19730 conftest$ac_exeext conftest.$ac_ext
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19733 $as_echo "$ac_cv_working_alloca_h" >&6; }
19734 if test $ac_cv_working_alloca_h = yes; then
19736 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19741 $as_echo_n "checking for alloca... " >&6; }
19742 if ${ac_cv_func_alloca_works+:} false; then :
19743 $as_echo_n "(cached) " >&6
19745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746 /* end confdefs.h. */
19748 # define alloca __builtin_alloca
19751 # include <malloc.h>
19752 # define alloca _alloca
19754 # ifdef HAVE_ALLOCA_H
19755 # include <alloca.h>
19760 # ifndef alloca /* predefined by HP cc +Olibcalls */
19761 void *alloca (size_t);
19771 char *p = (char *) alloca (1);
19777 if ac_fn_c_try_link "$LINENO"; then :
19778 ac_cv_func_alloca_works=yes
19780 ac_cv_func_alloca_works=no
19782 rm -f core conftest.err conftest.$ac_objext \
19783 conftest$ac_exeext conftest.$ac_ext
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19786 $as_echo "$ac_cv_func_alloca_works" >&6; }
19788 if test $ac_cv_func_alloca_works = yes; then
19790 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19793 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19794 # that cause trouble. Some versions do not even contain alloca or
19795 # contain a buggy version. If you still want to use their alloca,
19796 # use ar to extract alloca.o from them instead of compiling alloca.c.
19798 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19800 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19804 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19805 if ${ac_cv_os_cray+:} false; then :
19806 $as_echo_n "(cached) " >&6
19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19810 #if defined CRAY && ! defined CRAY2
19817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19818 $EGREP "webecray" >/dev/null 2>&1; then :
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19827 $as_echo "$ac_cv_os_cray" >&6; }
19828 if test $ac_cv_os_cray = yes; then
19829 for ac_func in _getb67 GETB67 getb67; do
19830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19834 cat >>confdefs.h <<_ACEOF
19835 #define CRAY_STACKSEG_END $ac_func
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19845 $as_echo_n "checking stack direction for C alloca... " >&6; }
19846 if ${ac_cv_c_stack_direction+:} false; then :
19847 $as_echo_n "(cached) " >&6
19849 if test "$cross_compiling" = yes; then :
19850 ac_cv_c_stack_direction=0
19852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853 /* end confdefs.h. */
19854 $ac_includes_default
19856 find_stack_direction (int *addr, int depth)
19858 int dir, dummy = 0;
19861 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19862 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19863 return dir + dummy;
19867 main (int argc, char **argv)
19869 return find_stack_direction (0, argc + !argv + 20) < 0;
19872 if ac_fn_c_try_run "$LINENO"; then :
19873 ac_cv_c_stack_direction=1
19875 ac_cv_c_stack_direction=-1
19877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19878 conftest.$ac_objext conftest.beam conftest.$ac_ext
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19883 $as_echo "$ac_cv_c_stack_direction" >&6; }
19884 cat >>confdefs.h <<_ACEOF
19885 #define STACK_DIRECTION $ac_cv_c_stack_direction
19894 for ac_header in $ac_header_list
19896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19897 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19900 cat >>confdefs.h <<_ACEOF
19901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19915 for ac_func in getpagesize
19917 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19918 if test "x$ac_cv_func_getpagesize" = xyes; then :
19919 cat >>confdefs.h <<_ACEOF
19920 #define HAVE_GETPAGESIZE 1
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19927 $as_echo_n "checking for working mmap... " >&6; }
19928 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19929 $as_echo_n "(cached) " >&6
19931 if test "$cross_compiling" = yes; then :
19932 ac_cv_func_mmap_fixed_mapped=no
19934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h. */
19936 $ac_includes_default
19937 /* malloc might have been renamed as rpl_malloc. */
19940 /* Thanks to Mike Haertel and Jim Avera for this test.
19941 Here is a matrix of mmap possibilities:
19942 mmap private not fixed
19943 mmap private fixed at somewhere currently unmapped
19944 mmap private fixed at somewhere already mapped
19945 mmap shared not fixed
19946 mmap shared fixed at somewhere currently unmapped
19947 mmap shared fixed at somewhere already mapped
19948 For private mappings, we should verify that changes cannot be read()
19949 back from the file, nor mmap's back from the file at a different
19950 address. (There have been systems where private was not correctly
19951 implemented like the infamous i386 svr4.0, and systems where the
19952 VM page cache was not coherent with the file system buffer cache
19953 like early versions of FreeBSD and possibly contemporary NetBSD.)
19954 For shared mappings, we should conversely verify that changes get
19955 propagated back to all the places they're supposed to be.
19957 Grep wants private fixed already mapped.
19958 The main things grep needs to know about mmap are:
19959 * does it exist and is it safe to write into the mmap'd area
19960 * how to use it (BSD variants) */
19963 #include <sys/mman.h>
19965 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19969 /* This mess was copied from the GNU getpagesize.h. */
19970 #ifndef HAVE_GETPAGESIZE
19971 # ifdef _SC_PAGESIZE
19972 # define getpagesize() sysconf(_SC_PAGESIZE)
19973 # else /* no _SC_PAGESIZE */
19974 # ifdef HAVE_SYS_PARAM_H
19975 # include <sys/param.h>
19976 # ifdef EXEC_PAGESIZE
19977 # define getpagesize() EXEC_PAGESIZE
19978 # else /* no EXEC_PAGESIZE */
19980 # define getpagesize() NBPG * CLSIZE
19983 # endif /* no CLSIZE */
19984 # else /* no NBPG */
19986 # define getpagesize() NBPC
19987 # else /* no NBPC */
19989 # define getpagesize() PAGESIZE
19990 # endif /* PAGESIZE */
19991 # endif /* no NBPC */
19992 # endif /* no NBPG */
19993 # endif /* no EXEC_PAGESIZE */
19994 # else /* no HAVE_SYS_PARAM_H */
19995 # define getpagesize() 8192 /* punt totally */
19996 # endif /* no HAVE_SYS_PARAM_H */
19997 # endif /* no _SC_PAGESIZE */
19999 #endif /* no HAVE_GETPAGESIZE */
20004 char *data, *data2, *data3;
20005 const char *cdata2;
20009 pagesize = getpagesize ();
20011 /* First, make a file with some known garbage in it. */
20012 data = (char *) malloc (pagesize);
20015 for (i = 0; i < pagesize; ++i)
20016 *(data + i) = rand ();
20018 fd = creat ("conftest.mmap", 0600);
20021 if (write (fd, data, pagesize) != pagesize)
20025 /* Next, check that the tail of a page is zero-filled. File must have
20026 non-zero length, otherwise we risk SIGBUS for entire page. */
20027 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20031 if (write (fd2, cdata2, 1) != 1)
20033 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20034 if (data2 == MAP_FAILED)
20036 for (i = 0; i < pagesize; ++i)
20040 if (munmap (data2, pagesize))
20043 /* Next, try to mmap the file at a fixed address which already has
20044 something else allocated at it. If we can, also make sure that
20045 we see the same garbage. */
20046 fd = open ("conftest.mmap", O_RDWR);
20049 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20050 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20052 for (i = 0; i < pagesize; ++i)
20053 if (*(data + i) != *(data2 + i))
20056 /* Finally, make sure that changes to the mapped area do not
20057 percolate back to the file as seen by read(). (This is a bug on
20058 some variants of i386 svr4.0.) */
20059 for (i = 0; i < pagesize; ++i)
20060 *(data2 + i) = *(data2 + i) + 1;
20061 data3 = (char *) malloc (pagesize);
20064 if (read (fd, data3, pagesize) != pagesize)
20066 for (i = 0; i < pagesize; ++i)
20067 if (*(data + i) != *(data3 + i))
20073 if ac_fn_c_try_run "$LINENO"; then :
20074 ac_cv_func_mmap_fixed_mapped=yes
20076 ac_cv_func_mmap_fixed_mapped=no
20078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20079 conftest.$ac_objext conftest.beam conftest.$ac_ext
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20084 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20085 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20087 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20090 rm -f conftest.mmap conftest.txt
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20094 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20095 if ${ac_cv_gnu_library_2_1+:} false; then :
20096 $as_echo_n "(cached) " >&6
20098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20101 #include <features.h>
20102 #ifdef __GNU_LIBRARY__
20103 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20110 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20111 ac_cv_gnu_library_2_1=yes
20113 ac_cv_gnu_library_2_1=no
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20121 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20123 GLIBC21="$ac_cv_gnu_library_2_1"
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20129 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20130 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20131 $as_echo_n "(cached) " >&6
20134 if test "$cross_compiling" = yes; then :
20136 # Guess based on the CPU.
20137 case "$host_cpu" in
20138 alpha* | i3456786 | m68k | s390*)
20139 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20141 gt_cv_int_divbyzero_sigfpe="guessing no";;
20145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h. */
20148 #include <stdlib.h>
20149 #include <signal.h>
20153 sigfpe_handler (int sig)
20155 sigfpe_handler (sig) int sig;
20158 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20159 exit (sig != SIGFPE);
20169 signal (SIGFPE, sigfpe_handler);
20170 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20171 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20172 signal (SIGTRAP, sigfpe_handler);
20174 /* Linux/SPARC yields signal SIGILL. */
20175 #if defined (__sparc__) && defined (__linux__)
20176 signal (SIGILL, sigfpe_handler);
20185 if ac_fn_c_try_run "$LINENO"; then :
20186 gt_cv_int_divbyzero_sigfpe=yes
20188 gt_cv_int_divbyzero_sigfpe=no
20190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20191 conftest.$ac_objext conftest.beam conftest.$ac_ext
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20197 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20198 case "$gt_cv_int_divbyzero_sigfpe" in
20203 cat >>confdefs.h <<_ACEOF
20204 #define INTDIV0_RAISES_SIGFPE $value
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20210 $as_echo_n "checking for unsigned long long... " >&6; }
20211 if ${ac_cv_type_unsigned_long_long+:} false; then :
20212 $as_echo_n "(cached) " >&6
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h. */
20216 unsigned long long ull = 1ULL; int i = 63;
20220 unsigned long long ullmax = (unsigned long long) -1;
20221 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20226 if ac_fn_c_try_link "$LINENO"; then :
20227 ac_cv_type_unsigned_long_long=yes
20229 ac_cv_type_unsigned_long_long=no
20231 rm -f core conftest.err conftest.$ac_objext \
20232 conftest$ac_exeext conftest.$ac_ext
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20235 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20236 if test $ac_cv_type_unsigned_long_long = yes; then
20238 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20245 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20247 test $ac_cv_type_unsigned_long_long = yes \
20248 && ac_type='unsigned long long' \
20249 || ac_type='unsigned long'
20251 cat >>confdefs.h <<_ACEOF
20252 #define uintmax_t $ac_type
20257 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20263 $as_echo_n "checking for inttypes.h... " >&6; }
20264 if ${gt_cv_header_inttypes_h+:} false; then :
20265 $as_echo_n "(cached) " >&6
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h. */
20270 #include <sys/types.h>
20271 #include <inttypes.h>
20280 if ac_fn_c_try_compile "$LINENO"; then :
20281 gt_cv_header_inttypes_h=yes
20283 gt_cv_header_inttypes_h=no
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20289 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20290 if test $gt_cv_header_inttypes_h = yes; then
20292 cat >>confdefs.h <<_ACEOF
20293 #define HAVE_INTTYPES_H 1
20300 if test $gt_cv_header_inttypes_h = yes; then
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20302 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20303 if ${gt_cv_inttypes_pri_broken+:} false; then :
20304 $as_echo_n "(cached) " >&6
20307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308 /* end confdefs.h. */
20309 #include <inttypes.h>
20322 if ac_fn_c_try_compile "$LINENO"; then :
20323 gt_cv_inttypes_pri_broken=no
20325 gt_cv_inttypes_pri_broken=yes
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20331 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20333 if test "$gt_cv_inttypes_pri_broken" = yes; then
20335 cat >>confdefs.h <<_ACEOF
20336 #define PRI_MACROS_BROKEN 1
20342 for ac_header in stdint.h
20344 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20345 if test "x$ac_cv_header_stdint_h" = xyes; then :
20346 cat >>confdefs.h <<_ACEOF
20347 #define HAVE_STDINT_H 1
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20355 $as_echo_n "checking for SIZE_MAX... " >&6; }
20357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h. */
20360 #include <limits.h>
20362 #include <stdint.h>
20369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20370 $EGREP "Found it" >/dev/null 2>&1; then :
20375 if test -z "$result"; then
20376 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
20383 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
20390 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20397 if test "$fits_in_uint" = 1; then
20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h. */
20400 #include <stddef.h>
20402 extern unsigned long foo;
20412 if ac_fn_c_try_compile "$LINENO"; then :
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20417 if test -z "$result"; then
20418 if test "$fits_in_uint" = 1; then
20419 result="$res_hi$res_lo"U
20421 result="$res_hi$res_lo"UL
20424 result='~(size_t)0'
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20428 $as_echo "$result" >&6; }
20429 if test "$result" != yes; then
20431 cat >>confdefs.h <<_ACEOF
20432 #define SIZE_MAX $result
20440 for ac_header in stdint.h
20442 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20443 if test "x$ac_cv_header_stdint_h" = xyes; then :
20444 cat >>confdefs.h <<_ACEOF
20445 #define HAVE_STDINT_H 1
20459 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20460 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20464 $as_echo "#define ptrdiff_t long" >>confdefs.h
20469 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20470 stdlib.h string.h unistd.h sys/param.h
20472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20473 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20475 cat >>confdefs.h <<_ACEOF
20476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20483 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20484 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20485 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20491 cat >>confdefs.h <<_ACEOF
20492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20501 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20502 if ${ac_cv_have_decl__snprintf+:} false; then :
20503 $as_echo_n "(cached) " >&6
20505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h. */
20513 char *p = (char *) _snprintf;
20520 if ac_fn_c_try_compile "$LINENO"; then :
20521 ac_cv_have_decl__snprintf=yes
20523 ac_cv_have_decl__snprintf=no
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20528 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20529 if test $ac_cv_have_decl__snprintf = yes; then
20535 cat >>confdefs.h <<_ACEOF
20536 #define HAVE_DECL__SNPRINTF $gt_value
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20542 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20543 if ${ac_cv_have_decl__snwprintf+:} false; then :
20544 $as_echo_n "(cached) " >&6
20546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h. */
20554 char *p = (char *) _snwprintf;
20561 if ac_fn_c_try_compile "$LINENO"; then :
20562 ac_cv_have_decl__snwprintf=yes
20564 ac_cv_have_decl__snwprintf=no
20566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20569 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20570 if test $ac_cv_have_decl__snwprintf = yes; then
20576 cat >>confdefs.h <<_ACEOF
20577 #define HAVE_DECL__SNWPRINTF $gt_value
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20584 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20585 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20586 $as_echo_n "(cached) " >&6
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h. */
20595 #ifndef feof_unlocked
20596 char *p = (char *) feof_unlocked;
20603 if ac_fn_c_try_compile "$LINENO"; then :
20604 ac_cv_have_decl_feof_unlocked=yes
20606 ac_cv_have_decl_feof_unlocked=no
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20611 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20612 if test $ac_cv_have_decl_feof_unlocked = yes; then
20618 cat >>confdefs.h <<_ACEOF
20619 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20625 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20626 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20627 $as_echo_n "(cached) " >&6
20629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20630 /* end confdefs.h. */
20636 #ifndef fgets_unlocked
20637 char *p = (char *) fgets_unlocked;
20644 if ac_fn_c_try_compile "$LINENO"; then :
20645 ac_cv_have_decl_fgets_unlocked=yes
20647 ac_cv_have_decl_fgets_unlocked=no
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20652 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20653 if test $ac_cv_have_decl_fgets_unlocked = yes; then
20659 cat >>confdefs.h <<_ACEOF
20660 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20666 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20667 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20668 $as_echo_n "(cached) " >&6
20670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h. */
20677 #ifndef getc_unlocked
20678 char *p = (char *) getc_unlocked;
20685 if ac_fn_c_try_compile "$LINENO"; then :
20686 ac_cv_have_decl_getc_unlocked=yes
20688 ac_cv_have_decl_getc_unlocked=no
20690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20693 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20694 if test $ac_cv_have_decl_getc_unlocked = yes; then
20700 cat >>confdefs.h <<_ACEOF
20701 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20706 case $gt_cv_func_printf_posix in
20707 *yes) HAVE_POSIX_PRINTF=1 ;;
20708 *) HAVE_POSIX_PRINTF=0 ;;
20711 if test "$ac_cv_func_asprintf" = yes; then
20717 if test "$ac_cv_func_snprintf" = yes; then
20723 if test "$ac_cv_func_wprintf" = yes; then
20735 am_save_CPPFLAGS="$CPPFLAGS"
20737 for element in $INCICONV; do
20739 for x in $CPPFLAGS; do
20741 acl_save_prefix="$prefix"
20742 prefix="$acl_final_prefix"
20743 acl_save_exec_prefix="$exec_prefix"
20744 exec_prefix="$acl_final_exec_prefix"
20746 exec_prefix="$acl_save_exec_prefix"
20747 prefix="$acl_save_prefix"
20749 if test "X$x" = "X$element"; then
20754 if test -z "$haveit"; then
20755 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20761 $as_echo_n "checking for iconv... " >&6; }
20762 if ${am_cv_func_iconv+:} false; then :
20763 $as_echo_n "(cached) " >&6
20766 am_cv_func_iconv="no, consider installing GNU libiconv"
20768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h. */
20770 #include <stdlib.h>
20775 iconv_t cd = iconv_open("","");
20776 iconv(cd,NULL,NULL,NULL,NULL);
20782 if ac_fn_c_try_link "$LINENO"; then :
20783 am_cv_func_iconv=yes
20785 rm -f core conftest.err conftest.$ac_objext \
20786 conftest$ac_exeext conftest.$ac_ext
20787 if test "$am_cv_func_iconv" != yes; then
20788 am_save_LIBS="$LIBS"
20789 LIBS="$LIBS $LIBICONV"
20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h. */
20792 #include <stdlib.h>
20797 iconv_t cd = iconv_open("","");
20798 iconv(cd,NULL,NULL,NULL,NULL);
20804 if ac_fn_c_try_link "$LINENO"; then :
20805 am_cv_lib_iconv=yes
20806 am_cv_func_iconv=yes
20808 rm -f core conftest.err conftest.$ac_objext \
20809 conftest$ac_exeext conftest.$ac_ext
20810 LIBS="$am_save_LIBS"
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20815 $as_echo "$am_cv_func_iconv" >&6; }
20816 if test "$am_cv_func_iconv" = yes; then
20818 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20821 if test "$am_cv_lib_iconv" = yes; then
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20823 $as_echo_n "checking how to link with libiconv... " >&6; }
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20825 $as_echo "$LIBICONV" >&6; }
20827 CPPFLAGS="$am_save_CPPFLAGS"
20834 if test "$am_cv_func_iconv" = yes; then
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20836 $as_echo_n "checking for iconv declaration... " >&6; }
20837 if ${am_cv_proto_iconv+:} false; then :
20838 $as_echo_n "(cached) " >&6
20841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h. */
20844 #include <stdlib.h>
20850 #if defined(__STDC__) || defined(__cplusplus)
20851 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20864 if ac_fn_c_try_compile "$LINENO"; then :
20865 am_cv_proto_iconv_arg1=""
20867 am_cv_proto_iconv_arg1="const"
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870 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);"
20873 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20875 }$am_cv_proto_iconv" >&5
20877 }$am_cv_proto_iconv" >&6; }
20879 cat >>confdefs.h <<_ACEOF
20880 #define ICONV_CONST $am_cv_proto_iconv_arg1
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20887 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20888 if ${am_cv_langinfo_codeset+:} false; then :
20889 $as_echo_n "(cached) " >&6
20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h. */
20893 #include <langinfo.h>
20897 char* cs = nl_langinfo(CODESET);
20902 if ac_fn_c_try_link "$LINENO"; then :
20903 am_cv_langinfo_codeset=yes
20905 am_cv_langinfo_codeset=no
20907 rm -f core conftest.err conftest.$ac_objext \
20908 conftest$ac_exeext conftest.$ac_ext
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20912 $as_echo "$am_cv_langinfo_codeset" >&6; }
20913 if test $am_cv_langinfo_codeset = yes; then
20915 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20919 if test $ac_cv_header_locale_h = yes; then
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20922 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20923 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20924 $as_echo_n "(cached) " >&6
20926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20927 /* end confdefs.h. */
20928 #include <locale.h>
20937 if ac_fn_c_try_link "$LINENO"; then :
20938 gt_cv_val_LC_MESSAGES=yes
20940 gt_cv_val_LC_MESSAGES=no
20942 rm -f core conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20946 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20947 if test $gt_cv_val_LC_MESSAGES = yes; then
20949 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20955 if test -n "$INTL_MACOSX_LIBS"; then
20956 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20959 for ac_prog in bison
20961 # Extract the first word of "$ac_prog", so it can be a program name with args.
20962 set dummy $ac_prog; ac_word=$2
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20964 $as_echo_n "checking for $ac_word... " >&6; }
20965 if ${ac_cv_prog_INTLBISON+:} false; then :
20966 $as_echo_n "(cached) " >&6
20968 if test -n "$INTLBISON"; then
20969 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20972 for as_dir in $PATH
20975 test -z "$as_dir" && as_dir=.
20976 for ac_exec_ext in '' $ac_executable_extensions; do
20977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20978 ac_cv_prog_INTLBISON="$ac_prog"
20979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20988 INTLBISON=$ac_cv_prog_INTLBISON
20989 if test -n "$INTLBISON"; then
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20991 $as_echo "$INTLBISON" >&6; }
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20994 $as_echo "no" >&6; }
20998 test -n "$INTLBISON" && break
21001 if test -z "$INTLBISON"; then
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21005 $as_echo_n "checking version of bison... " >&6; }
21006 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21007 case $ac_prog_version in
21008 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21009 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21010 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21011 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21014 $as_echo "$ac_prog_version" >&6; }
21016 if test $ac_verc_fail = yes; then
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21036 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21037 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21038 $as_echo_n "(cached) " >&6
21040 gt_save_CPPFLAGS="$CPPFLAGS"
21041 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21042 gt_save_LIBS="$LIBS"
21043 LIBS="$LIBS -framework CoreFoundation"
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21046 #include <CFPreferences.h>
21050 CFPreferencesCopyAppValue(NULL, NULL)
21055 if ac_fn_c_try_link "$LINENO"; then :
21056 gt_cv_func_CFPreferencesCopyAppValue=yes
21058 gt_cv_func_CFPreferencesCopyAppValue=no
21060 rm -f core conftest.err conftest.$ac_objext \
21061 conftest$ac_exeext conftest.$ac_ext
21062 CPPFLAGS="$gt_save_CPPFLAGS"
21063 LIBS="$gt_save_LIBS"
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21066 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21067 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21069 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21073 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21074 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21075 $as_echo_n "(cached) " >&6
21077 gt_save_CPPFLAGS="$CPPFLAGS"
21078 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21079 gt_save_LIBS="$LIBS"
21080 LIBS="$LIBS -framework CoreFoundation"
21081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21082 /* end confdefs.h. */
21083 #include <CFLocale.h>
21087 CFLocaleCopyCurrent();
21092 if ac_fn_c_try_link "$LINENO"; then :
21093 gt_cv_func_CFLocaleCopyCurrent=yes
21095 gt_cv_func_CFLocaleCopyCurrent=no
21097 rm -f core conftest.err conftest.$ac_objext \
21098 conftest$ac_exeext conftest.$ac_ext
21099 CPPFLAGS="$gt_save_CPPFLAGS"
21100 LIBS="$gt_save_LIBS"
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21103 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21104 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21106 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21110 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21111 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21118 $as_echo_n "checking whether NLS is requested... " >&6; }
21119 # Check whether --enable-nls was given.
21120 if test "${enable_nls+set}" = set; then :
21121 enableval=$enable_nls; USE_NLS=$enableval
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21127 $as_echo "$USE_NLS" >&6; }
21132 BUILD_INCLUDED_LIBINTL=no
21133 USE_INCLUDED_LIBINTL=no
21139 if test "$USE_NLS" = "yes"; then
21140 gt_use_preinstalled_gnugettext=no
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21143 $as_echo_n "checking whether included gettext is requested... " >&6; }
21145 # Check whether --with-included-gettext was given.
21146 if test "${with_included_gettext+set}" = set; then :
21147 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21149 nls_cv_force_use_gnu_gettext=no
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21153 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21155 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21156 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21164 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21165 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21166 $as_echo_n "(cached) " >&6
21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h. */
21170 #include <libintl.h>
21171 extern int _nl_msg_cat_cntr;
21172 extern int *_nl_domain_bindings;
21176 bindtextdomain ("", "");
21177 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21182 if ac_fn_c_try_link "$LINENO"; then :
21183 gt_cv_func_gnugettext1_libc=yes
21185 gt_cv_func_gnugettext1_libc=no
21187 rm -f core conftest.err conftest.$ac_objext \
21188 conftest$ac_exeext conftest.$ac_ext
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21191 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21193 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21199 acl_save_prefix="$prefix"
21200 prefix="$acl_final_prefix"
21201 acl_save_exec_prefix="$exec_prefix"
21202 exec_prefix="$acl_final_exec_prefix"
21204 eval additional_includedir=\"$includedir\"
21205 eval additional_libdir=\"$libdir\"
21207 exec_prefix="$acl_save_exec_prefix"
21208 prefix="$acl_save_prefix"
21211 # Check whether --with-libintl-prefix was given.
21212 if test "${with_libintl_prefix+set}" = set; then :
21213 withval=$with_libintl_prefix;
21214 if test "X$withval" = "Xno"; then
21217 if test "X$withval" = "X"; then
21219 acl_save_prefix="$prefix"
21220 prefix="$acl_final_prefix"
21221 acl_save_exec_prefix="$exec_prefix"
21222 exec_prefix="$acl_final_exec_prefix"
21224 eval additional_includedir=\"$includedir\"
21225 eval additional_libdir=\"$libdir\"
21227 exec_prefix="$acl_save_exec_prefix"
21228 prefix="$acl_save_prefix"
21231 additional_includedir="$withval/include"
21232 additional_libdir="$withval/lib"
21243 names_already_handled=
21244 names_next_round='intl '
21245 while test -n "$names_next_round"; do
21246 names_this_round="$names_next_round"
21248 for name in $names_this_round; do
21250 for n in $names_already_handled; do
21251 if test "$n" = "$name"; then
21252 already_handled=yes
21256 if test -z "$already_handled"; then
21257 names_already_handled="$names_already_handled $name"
21258 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21259 eval value=\"\$HAVE_LIB$uppername\"
21260 if test -n "$value"; then
21261 if test "$value" = yes; then
21262 eval value=\"\$LIB$uppername\"
21263 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21264 eval value=\"\$LTLIB$uppername\"
21265 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21274 if test $use_additional = yes; then
21275 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21276 found_dir="$additional_libdir"
21277 found_so="$additional_libdir/lib$name.$shlibext"
21278 if test -f "$additional_libdir/lib$name.la"; then
21279 found_la="$additional_libdir/lib$name.la"
21282 if test -f "$additional_libdir/lib$name.$libext"; then
21283 found_dir="$additional_libdir"
21284 found_a="$additional_libdir/lib$name.$libext"
21285 if test -f "$additional_libdir/lib$name.la"; then
21286 found_la="$additional_libdir/lib$name.la"
21291 if test "X$found_dir" = "X"; then
21292 for x in $LDFLAGS $LTLIBINTL; do
21294 acl_save_prefix="$prefix"
21295 prefix="$acl_final_prefix"
21296 acl_save_exec_prefix="$exec_prefix"
21297 exec_prefix="$acl_final_exec_prefix"
21299 exec_prefix="$acl_save_exec_prefix"
21300 prefix="$acl_save_prefix"
21304 dir=`echo "X$x" | sed -e 's/^X-L//'`
21305 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21307 found_so="$dir/lib$name.$shlibext"
21308 if test -f "$dir/lib$name.la"; then
21309 found_la="$dir/lib$name.la"
21312 if test -f "$dir/lib$name.$libext"; then
21314 found_a="$dir/lib$name.$libext"
21315 if test -f "$dir/lib$name.la"; then
21316 found_la="$dir/lib$name.la"
21322 if test "X$found_dir" != "X"; then
21327 if test "X$found_dir" != "X"; then
21328 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21329 if test "X$found_so" != "X"; then
21330 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21331 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21334 for x in $ltrpathdirs; do
21335 if test "X$x" = "X$found_dir"; then
21340 if test -z "$haveit"; then
21341 ltrpathdirs="$ltrpathdirs $found_dir"
21343 if test "$hardcode_direct" = yes; then
21344 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21346 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21347 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21349 for x in $rpathdirs; do
21350 if test "X$x" = "X$found_dir"; then
21355 if test -z "$haveit"; then
21356 rpathdirs="$rpathdirs $found_dir"
21360 for x in $LDFLAGS $LIBINTL; do
21362 acl_save_prefix="$prefix"
21363 prefix="$acl_final_prefix"
21364 acl_save_exec_prefix="$exec_prefix"
21365 exec_prefix="$acl_final_exec_prefix"
21367 exec_prefix="$acl_save_exec_prefix"
21368 prefix="$acl_save_prefix"
21370 if test "X$x" = "X-L$found_dir"; then
21375 if test -z "$haveit"; then
21376 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21378 if test "$hardcode_minus_L" != no; then
21379 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21381 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21387 if test "X$found_a" != "X"; then
21388 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21390 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21393 additional_includedir=
21394 case "$found_dir" in
21396 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21397 additional_includedir="$basedir/include"
21400 if test "X$additional_includedir" != "X"; then
21401 if test "X$additional_includedir" != "X/usr/include"; then
21403 if test "X$additional_includedir" = "X/usr/local/include"; then
21404 if test -n "$GCC"; then
21406 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21410 if test -z "$haveit"; then
21411 for x in $CPPFLAGS $INCINTL; do
21413 acl_save_prefix="$prefix"
21414 prefix="$acl_final_prefix"
21415 acl_save_exec_prefix="$exec_prefix"
21416 exec_prefix="$acl_final_exec_prefix"
21418 exec_prefix="$acl_save_exec_prefix"
21419 prefix="$acl_save_prefix"
21421 if test "X$x" = "X-I$additional_includedir"; then
21426 if test -z "$haveit"; then
21427 if test -d "$additional_includedir"; then
21428 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21434 if test -n "$found_la"; then
21435 save_libdir="$libdir"
21436 case "$found_la" in
21437 */* | *\\*) . "$found_la" ;;
21438 *) . "./$found_la" ;;
21440 libdir="$save_libdir"
21441 for dep in $dependency_libs; do
21444 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21445 if test "X$additional_libdir" != "X/usr/lib"; then
21447 if test "X$additional_libdir" = "X/usr/local/lib"; then
21448 if test -n "$GCC"; then
21450 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21454 if test -z "$haveit"; then
21456 for x in $LDFLAGS $LIBINTL; do
21458 acl_save_prefix="$prefix"
21459 prefix="$acl_final_prefix"
21460 acl_save_exec_prefix="$exec_prefix"
21461 exec_prefix="$acl_final_exec_prefix"
21463 exec_prefix="$acl_save_exec_prefix"
21464 prefix="$acl_save_prefix"
21466 if test "X$x" = "X-L$additional_libdir"; then
21471 if test -z "$haveit"; then
21472 if test -d "$additional_libdir"; then
21473 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21477 for x in $LDFLAGS $LTLIBINTL; do
21479 acl_save_prefix="$prefix"
21480 prefix="$acl_final_prefix"
21481 acl_save_exec_prefix="$exec_prefix"
21482 exec_prefix="$acl_final_exec_prefix"
21484 exec_prefix="$acl_save_exec_prefix"
21485 prefix="$acl_save_prefix"
21487 if test "X$x" = "X-L$additional_libdir"; then
21492 if test -z "$haveit"; then
21493 if test -d "$additional_libdir"; then
21494 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21501 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21502 if test "$enable_rpath" != no; then
21504 for x in $rpathdirs; do
21505 if test "X$x" = "X$dir"; then
21510 if test -z "$haveit"; then
21511 rpathdirs="$rpathdirs $dir"
21514 for x in $ltrpathdirs; do
21515 if test "X$x" = "X$dir"; then
21520 if test -z "$haveit"; then
21521 ltrpathdirs="$ltrpathdirs $dir"
21526 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21529 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21532 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21533 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21539 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21540 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21546 if test "X$rpathdirs" != "X"; then
21547 if test -n "$hardcode_libdir_separator"; then
21549 for found_dir in $rpathdirs; do
21550 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21552 acl_save_libdir="$libdir"
21554 eval flag=\"$hardcode_libdir_flag_spec\"
21555 libdir="$acl_save_libdir"
21556 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21558 for found_dir in $rpathdirs; do
21559 acl_save_libdir="$libdir"
21560 libdir="$found_dir"
21561 eval flag=\"$hardcode_libdir_flag_spec\"
21562 libdir="$acl_save_libdir"
21563 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21567 if test "X$ltrpathdirs" != "X"; then
21568 for found_dir in $ltrpathdirs; do
21569 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21574 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21575 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21576 $as_echo_n "(cached) " >&6
21578 gt_save_CPPFLAGS="$CPPFLAGS"
21579 CPPFLAGS="$CPPFLAGS $INCINTL"
21580 gt_save_LIBS="$LIBS"
21581 LIBS="$LIBS $LIBINTL"
21582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h. */
21584 #include <libintl.h>
21585 extern int _nl_msg_cat_cntr;
21590 const char *_nl_expand_alias (const char *);
21594 bindtextdomain ("", "");
21595 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21600 if ac_fn_c_try_link "$LINENO"; then :
21601 gt_cv_func_gnugettext1_libintl=yes
21603 gt_cv_func_gnugettext1_libintl=no
21605 rm -f core conftest.err conftest.$ac_objext \
21606 conftest$ac_exeext conftest.$ac_ext
21607 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21608 LIBS="$LIBS $LIBICONV"
21609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h. */
21611 #include <libintl.h>
21612 extern int _nl_msg_cat_cntr;
21617 const char *_nl_expand_alias (const char *);
21621 bindtextdomain ("", "");
21622 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21627 if ac_fn_c_try_link "$LINENO"; then :
21628 LIBINTL="$LIBINTL $LIBICONV"
21629 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21630 gt_cv_func_gnugettext1_libintl=yes
21633 rm -f core conftest.err conftest.$ac_objext \
21634 conftest$ac_exeext conftest.$ac_ext
21636 CPPFLAGS="$gt_save_CPPFLAGS"
21637 LIBS="$gt_save_LIBS"
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21640 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21643 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21644 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21645 && test "$PACKAGE" != gettext-runtime \
21646 && test "$PACKAGE" != gettext-tools; }; then
21647 gt_use_preinstalled_gnugettext=yes
21655 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21656 nls_cv_use_gnu_gettext=yes
21660 if test "$nls_cv_use_gnu_gettext" = "yes"; then
21661 BUILD_INCLUDED_LIBINTL=yes
21662 USE_INCLUDED_LIBINTL=yes
21663 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21664 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21665 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21669 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21670 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21675 if test -n "$INTL_MACOSX_LIBS"; then
21676 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21677 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21678 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21679 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21683 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21684 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21686 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21694 $as_echo_n "checking whether to use NLS... " >&6; }
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21696 $as_echo "$USE_NLS" >&6; }
21697 if test "$USE_NLS" = "yes"; then
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21699 $as_echo_n "checking where the gettext function comes from... " >&6; }
21700 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21701 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21702 gt_source="external libintl"
21707 gt_source="included intl directory"
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21710 $as_echo "$gt_source" >&6; }
21713 if test "$USE_NLS" = "yes"; then
21715 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21716 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21718 $as_echo_n "checking how to link with libintl... " >&6; }
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21720 $as_echo "$LIBINTL" >&6; }
21722 for element in $INCINTL; do
21724 for x in $CPPFLAGS; do
21726 acl_save_prefix="$prefix"
21727 prefix="$acl_final_prefix"
21728 acl_save_exec_prefix="$exec_prefix"
21729 exec_prefix="$acl_final_exec_prefix"
21731 exec_prefix="$acl_save_exec_prefix"
21732 prefix="$acl_save_prefix"
21734 if test "X$x" = "X$element"; then
21739 if test -z "$haveit"; then
21740 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21747 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21750 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21758 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21759 BUILD_INCLUDED_LIBINTL=yes
21766 nls_cv_header_intl=
21767 nls_cv_header_libgt=
21779 if test "$USE_INCLUDED_LIBINTL" = yes; then
21780 INTLOBJS="\$(GETTOBJS)"
21784 INTL_LIBTOOL_SUFFIX_PREFIX=
21788 INTLLIBS="$LIBINTL"
21797 support_smartalloc=yes
21798 support_readline=yes
21804 support_static_tools=no
21805 support_static_fd=no
21806 support_static_sd=no
21807 support_static_dir=no
21808 support_static_cons=no
21809 build_client_only=no
21813 batch_insert_db_backends=""
21817 # Check whether --enable-bat was given.
21818 if test "${enable_bat+set}" = set; then :
21819 enableval=$enable_bat;
21820 if test x$enableval = xyes; then
21822 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21832 if test x$support_bat = xyes; then
21833 abc=`$PKGCONFIG QtGui`
21835 if test $pkg = 0; then
21836 BAT_DIR=src/qt-console
21838 as_fn_error $? "Unable to find Qt installation needed by bat" "$LINENO" 5
21848 # Check whether --enable-smartalloc was given.
21849 if test "${enable_smartalloc+set}" = set; then :
21850 enableval=$enable_smartalloc;
21851 if test x$enableval = xno; then
21852 support_smartalloc=no
21859 if test x$support_smartalloc = xyes; then
21861 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21865 # Check whether --enable-lockmgr was given.
21866 if test "${enable_lockmgr+set}" = set; then :
21867 enableval=$enable_lockmgr;
21868 if test x$enableval = xyes; then
21869 support_lockmgr=yes
21876 if test x$support_lockmgr = xyes; then
21878 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21883 # Check whether --enable-static-tools was given.
21884 if test "${enable_static_tools+set}" = set; then :
21885 enableval=$enable_static_tools;
21886 if test x$enableval = xyes; then
21887 if test x$use_libtool = xyes; then
21888 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21889 please rerun configure with --disable-libtool" "$LINENO" 5
21891 support_static_tools=yes
21899 if test x$support_static_tools = xyes; then
21900 TTOOL_LDFLAGS="-static"
21904 # Check whether --enable-static-fd was given.
21905 if test "${enable_static_fd+set}" = set; then :
21906 enableval=$enable_static_fd;
21907 if test x$enableval = xyes; then
21908 if test x$use_libtool = xyes; then
21909 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21910 please rerun configure with --disable-libtool" "$LINENO" 5
21912 support_static_fd=yes
21920 if test x$support_static_fd = xyes; then
21921 STATIC_FD="static-bacula-fd"
21925 # Check whether --enable-static-sd was given.
21926 if test "${enable_static_sd+set}" = set; then :
21927 enableval=$enable_static_sd;
21928 if test x$enableval = xyes; then
21929 if test x$use_libtool = xyes; then
21930 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21931 please rerun configure with --disable-libtool" "$LINENO" 5
21933 support_static_sd=yes
21941 if test x$support_static_sd = xyes; then
21942 STATIC_SD="static-bacula-sd"
21946 # Check whether --enable-static-dir was given.
21947 if test "${enable_static_dir+set}" = set; then :
21948 enableval=$enable_static_dir;
21949 if test x$enableval = xyes; then
21950 if test x$use_libtool = xyes; then
21951 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21952 please rerun configure with --disable-libtool" "$LINENO" 5
21954 support_static_dir=yes
21962 if test x$support_static_dir = xyes; then
21963 STATIC_DIR="static-bacula-dir"
21967 # Check whether --enable-static-cons was given.
21968 if test "${enable_static_cons+set}" = set; then :
21969 enableval=$enable_static_cons;
21970 if test x$enableval = xyes; then
21971 if test x$use_libtool = xyes; then
21972 as_fn_error $? "Libtool is enabled, not compatible with static tools,
21973 please rerun configure with --disable-libtool" "$LINENO" 5
21975 support_static_cons=yes
21983 if test x$support_static_cons = xyes; then
21984 STATIC_CONS="static-bconsole"
21988 # Check whether --enable-client-only was given.
21989 if test "${enable_client_only+set}" = set; then :
21990 enableval=$enable_client_only;
21991 if test x$enableval = xyes; then
21992 build_client_only=yes
22000 if test x$build_client_only = xno; then
22007 # Check whether --enable-build-dird was given.
22008 if test "${enable_build_dird+set}" = set; then :
22009 enableval=$enable_build_dird;
22010 if test x$enableval = xno; then
22018 DIRD_DIR="src/dird"
22019 DIR_TOOLS="DIRTOOLS"
22024 # Check whether --enable-build-stored was given.
22025 if test "${enable_build_stored+set}" = set; then :
22026 enableval=$enable_build_stored;
22027 if test x$enableval = xno; then
22034 if test x$build_stored = xyes; then
22035 STORED_DIR="src/stored"
22041 # Check whether --enable-conio was given.
22042 if test "${enable_conio+set}" = set; then :
22043 enableval=$enable_conio;
22044 if test x$enableval = xno; then
22054 # Check whether --enable-ipv6 was given.
22055 if test "${enable_ipv6+set}" = set; then :
22056 enableval=$enable_ipv6;
22057 if test x$enableval = xno; then
22065 if test x$support_ipv6 = xyes; then
22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h. */
22068 #include <sys/types.h>
22069 #include <sys/socket.h>
22070 #include <netinet/in.h>
22074 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22079 if ac_fn_c_try_link "$LINENO"; then :
22080 support_in6addr_any=yes
22082 support_in6addr_any=no
22084 rm -f core conftest.err conftest.$ac_objext \
22085 conftest$ac_exeext conftest.$ac_ext
22087 if test x$support_in6addr_any = xno ; then
22088 in6addr_any="const struct in6_addr in6addr_any"
22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h. */
22095 #include <sys/types.h>
22096 #include <sys/socket.h>
22097 #include <netinet/in.h>
22101 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22106 if ac_fn_c_try_link "$LINENO"; then :
22111 rm -f core conftest.err conftest.$ac_objext \
22112 conftest$ac_exeext conftest.$ac_ext
22115 if test x$support_ipv6 = xyes; then
22117 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22120 if test x$support_in6addr_any = xno ; then
22122 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22128 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22129 if test "x$ac_cv_header_curses_h" = xyes; then :
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22132 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22133 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22134 $as_echo_n "(cached) " >&6
22136 ac_check_lib_save_LIBS=$LIBS
22137 LIBS="-ltinfo $LIBS"
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22141 /* Override any GCC internal prototype to avoid an error.
22142 Use char because int might match the return type of a GCC
22143 builtin and then its argument prototype would still apply. */
22156 if ac_fn_c_try_link "$LINENO"; then :
22157 ac_cv_lib_tinfo_tgetent=yes
22159 ac_cv_lib_tinfo_tgetent=no
22161 rm -f core conftest.err conftest.$ac_objext \
22162 conftest$ac_exeext conftest.$ac_ext
22163 LIBS=$ac_check_lib_save_LIBS
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22166 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22167 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22172 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22173 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22174 $as_echo_n "(cached) " >&6
22176 ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lncurses $LIBS"
22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179 /* end confdefs.h. */
22181 /* Override any GCC internal prototype to avoid an error.
22182 Use char because int might match the return type of a GCC
22183 builtin and then its argument prototype would still apply. */
22196 if ac_fn_c_try_link "$LINENO"; then :
22197 ac_cv_lib_ncurses_tgetent=yes
22199 ac_cv_lib_ncurses_tgetent=no
22201 rm -f core conftest.err conftest.$ac_objext \
22202 conftest$ac_exeext conftest.$ac_ext
22203 LIBS=$ac_check_lib_save_LIBS
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22206 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22207 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22208 TERM_LIB="-lncurses"
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22212 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22213 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22214 $as_echo_n "(cached) " >&6
22216 ac_check_lib_save_LIBS=$LIBS
22217 LIBS="-ltermcap $LIBS"
22218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219 /* end confdefs.h. */
22221 /* Override any GCC internal prototype to avoid an error.
22222 Use char because int might match the return type of a GCC
22223 builtin and then its argument prototype would still apply. */
22236 if ac_fn_c_try_link "$LINENO"; then :
22237 ac_cv_lib_termcap_tgetent=yes
22239 ac_cv_lib_termcap_tgetent=no
22241 rm -f core conftest.err conftest.$ac_objext \
22242 conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22246 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22247 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22248 TERM_LIB="-ltermcap"
22259 for ac_header in curses.h
22261 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22262 if test "x$ac_cv_header_curses_h" = xyes; then :
22263 cat >>confdefs.h <<_ACEOF
22264 #define HAVE_CURSES_H 1
22271 ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22272 if test "x$ac_cv_header_term_h" = xyes; then :
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22274 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22275 if ${ac_cv_lib_curses_tgetent+:} false; then :
22276 $as_echo_n "(cached) " >&6
22278 ac_check_lib_save_LIBS=$LIBS
22279 LIBS="-lcurses $LIBS"
22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281 /* end confdefs.h. */
22283 /* Override any GCC internal prototype to avoid an error.
22284 Use char because int might match the return type of a GCC
22285 builtin and then its argument prototype would still apply. */
22298 if ac_fn_c_try_link "$LINENO"; then :
22299 ac_cv_lib_curses_tgetent=yes
22301 ac_cv_lib_curses_tgetent=no
22303 rm -f core conftest.err conftest.$ac_objext \
22304 conftest$ac_exeext conftest.$ac_ext
22305 LIBS=$ac_check_lib_save_LIBS
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22308 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22309 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22310 TERM_LIB="-lcurses"
22324 if test x$support_conio = xyes; then
22325 if test x$TERM_LIB != x; then
22326 CONS_LIBS=$TERM_LIB
22330 support_readline=no
22332 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22335 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22340 # Check whether --enable-readline was given.
22341 if test "${enable_readline+set}" = set; then :
22342 enableval=$enable_readline;
22343 if test x$enableval = xno; then
22344 support_readline=no
22353 if test x$support_readline = xyes; then
22355 # Check whether --with-readline was given.
22356 if test "${with_readline+set}" = set; then :
22357 withval=$with_readline;
22358 case "$with_readline" in
22363 if test -f ${with_readline}/readline.h; then
22364 CONS_INC="-I${with_readline}"
22365 CONS_LDFLAGS="-L$with_readline"
22366 elif test -f ${with_readline}/include/readline/readline.h; then
22367 CONS_INC="-I${with_readline}/include/readline"
22368 CONS_LDFLAGS="-L${with_readline}/lib"
22369 with_readline="${with_readline}/include/readline"
22371 with_readline="/usr/include/readline"
22374 as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22375 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22379 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22381 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22387 echo "readline.h not found. readline turned off ..."
22399 ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22400 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22403 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22406 CONS_INC="-I/usr/include/readline"
22407 CONS_LIBS="-lreadline ${TERM_LIB}"
22411 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22412 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22416 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22419 CONS_INC="-I${TOP_DIR}/depkgs/readline"
22420 CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22421 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22422 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22427 echo "readline.h not found. readline turned off ..."
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22455 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22456 if ${ac_cv_header_stat_broken+:} false; then :
22457 $as_echo_n "(cached) " >&6
22459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461 #include <sys/types.h>
22462 #include <sys/stat.h>
22464 #if defined S_ISBLK && defined S_IFDIR
22465 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22468 #if defined S_ISBLK && defined S_IFCHR
22469 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22472 #if defined S_ISLNK && defined S_IFREG
22473 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22476 #if defined S_ISSOCK && defined S_IFREG
22477 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22481 if ac_fn_c_try_compile "$LINENO"; then :
22482 ac_cv_header_stat_broken=no
22484 ac_cv_header_stat_broken=yes
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22489 $as_echo "$ac_cv_header_stat_broken" >&6; }
22490 if test $ac_cv_header_stat_broken = yes; then
22492 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22496 ac_header_dirent=no
22497 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22498 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22500 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22501 if eval \${$as_ac_Header+:} false; then :
22502 $as_echo_n "(cached) " >&6
22504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22506 #include <sys/types.h>
22518 if ac_fn_c_try_compile "$LINENO"; then :
22519 eval "$as_ac_Header=yes"
22521 eval "$as_ac_Header=no"
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 eval ac_res=\$$as_ac_Header
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22527 $as_echo "$ac_res" >&6; }
22528 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22529 cat >>confdefs.h <<_ACEOF
22530 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22533 ac_header_dirent=$ac_hdr; break
22537 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22538 if test $ac_header_dirent = dirent.h; then
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22540 $as_echo_n "checking for library containing opendir... " >&6; }
22541 if ${ac_cv_search_opendir+:} false; then :
22542 $as_echo_n "(cached) " >&6
22544 ac_func_search_save_LIBS=$LIBS
22545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22546 /* end confdefs.h. */
22548 /* Override any GCC internal prototype to avoid an error.
22549 Use char because int might match the return type of a GCC
22550 builtin and then its argument prototype would still apply. */
22563 for ac_lib in '' dir; do
22564 if test -z "$ac_lib"; then
22565 ac_res="none required"
22568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22570 if ac_fn_c_try_link "$LINENO"; then :
22571 ac_cv_search_opendir=$ac_res
22573 rm -f core conftest.err conftest.$ac_objext \
22575 if ${ac_cv_search_opendir+:} false; then :
22579 if ${ac_cv_search_opendir+:} false; then :
22582 ac_cv_search_opendir=no
22584 rm conftest.$ac_ext
22585 LIBS=$ac_func_search_save_LIBS
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22588 $as_echo "$ac_cv_search_opendir" >&6; }
22589 ac_res=$ac_cv_search_opendir
22590 if test "$ac_res" != no; then :
22591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22597 $as_echo_n "checking for library containing opendir... " >&6; }
22598 if ${ac_cv_search_opendir+:} false; then :
22599 $as_echo_n "(cached) " >&6
22601 ac_func_search_save_LIBS=$LIBS
22602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603 /* end confdefs.h. */
22605 /* Override any GCC internal prototype to avoid an error.
22606 Use char because int might match the return type of a GCC
22607 builtin and then its argument prototype would still apply. */
22620 for ac_lib in '' x; do
22621 if test -z "$ac_lib"; then
22622 ac_res="none required"
22625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22627 if ac_fn_c_try_link "$LINENO"; then :
22628 ac_cv_search_opendir=$ac_res
22630 rm -f core conftest.err conftest.$ac_objext \
22632 if ${ac_cv_search_opendir+:} false; then :
22636 if ${ac_cv_search_opendir+:} false; then :
22639 ac_cv_search_opendir=no
22641 rm conftest.$ac_ext
22642 LIBS=$ac_func_search_save_LIBS
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22645 $as_echo "$ac_cv_search_opendir" >&6; }
22646 ac_res=$ac_cv_search_opendir
22647 if test "$ac_res" != no; then :
22648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22654 for ac_func in strcasecmp select setenv putenv tcgetattr
22656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22659 cat >>confdefs.h <<_ACEOF
22660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22666 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22668 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22669 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22670 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22671 cat >>confdefs.h <<_ACEOF
22672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22678 for ac_func in nanosleep nl_langinfo
22680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22682 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22683 cat >>confdefs.h <<_ACEOF
22684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22690 for ac_func in be64toh htobe64
22692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22695 cat >>confdefs.h <<_ACEOF
22696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22702 for ac_header in varargs.h
22704 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22705 if test "x$ac_cv_header_varargs_h" = xyes; then :
22706 cat >>confdefs.h <<_ACEOF
22707 #define HAVE_VARARGS_H 1
22716 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22717 if test "x$ac_cv_func_socket" = xyes; then :
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22719 $as_echo "using libc's socket" >&6; }
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22722 $as_echo_n "checking for socket in -lxnet... " >&6; }
22723 if ${ac_cv_lib_xnet_socket+:} false; then :
22724 $as_echo_n "(cached) " >&6
22726 ac_check_lib_save_LIBS=$LIBS
22727 LIBS="-lxnet $LIBS"
22728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h. */
22731 /* Override any GCC internal prototype to avoid an error.
22732 Use char because int might match the return type of a GCC
22733 builtin and then its argument prototype would still apply. */
22746 if ac_fn_c_try_link "$LINENO"; then :
22747 ac_cv_lib_xnet_socket=yes
22749 ac_cv_lib_xnet_socket=no
22751 rm -f core conftest.err conftest.$ac_objext \
22752 conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22756 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22757 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22758 cat >>confdefs.h <<_ACEOF
22759 #define HAVE_LIBXNET 1
22762 LIBS="-lxnet $LIBS"
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22767 $as_echo_n "checking for socket in -lsocket... " >&6; }
22768 if ${ac_cv_lib_socket_socket+:} false; then :
22769 $as_echo_n "(cached) " >&6
22771 ac_check_lib_save_LIBS=$LIBS
22772 LIBS="-lsocket $LIBS"
22773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774 /* end confdefs.h. */
22776 /* Override any GCC internal prototype to avoid an error.
22777 Use char because int might match the return type of a GCC
22778 builtin and then its argument prototype would still apply. */
22791 if ac_fn_c_try_link "$LINENO"; then :
22792 ac_cv_lib_socket_socket=yes
22794 ac_cv_lib_socket_socket=no
22796 rm -f core conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext conftest.$ac_ext
22798 LIBS=$ac_check_lib_save_LIBS
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22801 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22802 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22803 cat >>confdefs.h <<_ACEOF
22804 #define HAVE_LIBSOCKET 1
22807 LIBS="-lsocket $LIBS"
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22812 $as_echo_n "checking for socket in -linet... " >&6; }
22813 if ${ac_cv_lib_inet_socket+:} false; then :
22814 $as_echo_n "(cached) " >&6
22816 ac_check_lib_save_LIBS=$LIBS
22817 LIBS="-linet $LIBS"
22818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22819 /* end confdefs.h. */
22821 /* Override any GCC internal prototype to avoid an error.
22822 Use char because int might match the return type of a GCC
22823 builtin and then its argument prototype would still apply. */
22836 if ac_fn_c_try_link "$LINENO"; then :
22837 ac_cv_lib_inet_socket=yes
22839 ac_cv_lib_inet_socket=no
22841 rm -f core conftest.err conftest.$ac_objext \
22842 conftest$ac_exeext conftest.$ac_ext
22843 LIBS=$ac_check_lib_save_LIBS
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22846 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22847 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22848 cat >>confdefs.h <<_ACEOF
22849 #define HAVE_LIBINET 1
22852 LIBS="-linet $LIBS"
22862 # Check whether --with-tcp-wrappers was given.
22863 if test "${with_tcp_wrappers+set}" = set; then :
22864 withval=$with_tcp_wrappers;
22865 if test "x$withval" != "xno" ; then
22867 LIBS="$saved_LIBS -lwrap"
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22869 $as_echo_n "checking for library containing nanosleep... " >&6; }
22870 if ${ac_cv_search_nanosleep+:} false; then :
22871 $as_echo_n "(cached) " >&6
22873 ac_func_search_save_LIBS=$LIBS
22874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22875 /* end confdefs.h. */
22877 /* Override any GCC internal prototype to avoid an error.
22878 Use char because int might match the return type of a GCC
22879 builtin and then its argument prototype would still apply. */
22887 return nanosleep ();
22892 for ac_lib in '' rt; do
22893 if test -z "$ac_lib"; then
22894 ac_res="none required"
22897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22899 if ac_fn_c_try_link "$LINENO"; then :
22900 ac_cv_search_nanosleep=$ac_res
22902 rm -f core conftest.err conftest.$ac_objext \
22904 if ${ac_cv_search_nanosleep+:} false; then :
22908 if ${ac_cv_search_nanosleep+:} false; then :
22911 ac_cv_search_nanosleep=no
22913 rm conftest.$ac_ext
22914 LIBS=$ac_func_search_save_LIBS
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22917 $as_echo "$ac_cv_search_nanosleep" >&6; }
22918 ac_res=$ac_cv_search_nanosleep
22919 if test "$ac_res" != no; then :
22920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22925 $as_echo_n "checking for libwrap... " >&6; }
22926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h. */
22929 #include <sys/types.h>
22931 int deny_severity = 0;
22932 int allow_severity = 0;
22933 struct request_info *req;
22945 if ac_fn_c_try_link "$LINENO"; then :
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22948 $as_echo "yes" >&6; }
22950 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22958 LIBS="$saved_LIBS -lwrap -lnsl"
22959 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h. */
22963 #include <sys/types.h>
22965 int deny_severity = 0;
22966 int allow_severity = 0;
22967 struct request_info *req;
22979 if ac_fn_c_try_link "$LINENO"; then :
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22982 $as_echo "yes" >&6; }
22984 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22992 as_fn_error $? "*** libwrap missing" "$LINENO" 5
22996 rm -f core conftest.err conftest.$ac_objext \
22997 conftest$ac_exeext conftest.$ac_ext
23001 rm -f core conftest.err conftest.$ac_objext \
23002 conftest$ac_exeext conftest.$ac_ext
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23010 $as_echo_n "checking for OpenSSL... " >&6; }
23012 # Check whether --with-openssl was given.
23013 if test "${with_openssl+set}" = set; then :
23014 withval=$with_openssl;
23015 with_openssl_directory=${withval}
23021 if test "x$with_openssl_directory" != "xno"; then
23022 OPENSSL_LIBS="-lssl -lcrypto"
23025 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23027 # Make sure the $with_openssl_directory also makes sense
23029 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23030 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23031 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23035 saved_LIBS="${LIBS}"
23036 saved_CFLAGS="${CFLAGS}"
23037 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23038 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h. */
23043 #include <openssl/ssl.h>
23049 CRYPTO_set_id_callback(NULL);
23055 if ac_fn_c_try_link "$LINENO"; then :
23058 support_crypto="yes"
23063 support_crypto="no"
23067 rm -f core conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
23070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23071 /* end confdefs.h. */
23073 #include <openssl/evp.h>
23085 if ac_fn_c_try_link "$LINENO"; then :
23087 ac_cv_openssl_sha2="yes"
23091 ac_cv_openssl_sha2="no"
23095 rm -f core conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
23098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23099 /* end confdefs.h. */
23101 #include <openssl/evp.h>
23113 if ac_fn_c_try_link "$LINENO"; then :
23115 ac_cv_openssl_export="no"
23119 ac_cv_openssl_export="yes"
23123 rm -f core conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23127 $as_echo "$support_tls" >&6; }
23128 if test "$support_tls" = "yes"; then
23130 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23133 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23136 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23140 if test "$ac_cv_openssl_sha2" = "yes"; then
23142 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23146 if test "$ac_cv_openssl_export" = "yes"; then
23148 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23152 if test "$support_crypto" = "yes"; then
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23154 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23155 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23156 $as_echo_n "(cached) " >&6
23158 ac_check_lib_save_LIBS=$LIBS
23159 LIBS="-lcrypto $LIBS"
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h. */
23163 /* Override any GCC internal prototype to avoid an error.
23164 Use char because int might match the return type of a GCC
23165 builtin and then its argument prototype would still apply. */
23169 char EVP_PKEY_encrypt_old ();
23173 return EVP_PKEY_encrypt_old ();
23178 if ac_fn_c_try_link "$LINENO"; then :
23179 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23181 ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23183 rm -f core conftest.err conftest.$ac_objext \
23184 conftest$ac_exeext conftest.$ac_ext
23185 LIBS=$ac_check_lib_save_LIBS
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23188 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23189 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23191 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23197 LIBS="${saved_LIBS}"
23198 CFLAGS="${saved_CFLAGS}"
23201 support_crypto="no"
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23203 $as_echo "$support_tls" >&6; }
23206 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23215 $as_echo_n "checking for library containing dlopen... " >&6; }
23216 if ${ac_cv_search_dlopen+:} false; then :
23217 $as_echo_n "(cached) " >&6
23219 ac_func_search_save_LIBS=$LIBS
23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h. */
23223 /* Override any GCC internal prototype to avoid an error.
23224 Use char because int might match the return type of a GCC
23225 builtin and then its argument prototype would still apply. */
23238 for ac_lib in '' dl; do
23239 if test -z "$ac_lib"; then
23240 ac_res="none required"
23243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23245 if ac_fn_c_try_link "$LINENO"; then :
23246 ac_cv_search_dlopen=$ac_res
23248 rm -f core conftest.err conftest.$ac_objext \
23250 if ${ac_cv_search_dlopen+:} false; then :
23254 if ${ac_cv_search_dlopen+:} false; then :
23257 ac_cv_search_dlopen=no
23259 rm conftest.$ac_ext
23260 LIBS=$ac_func_search_save_LIBS
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23263 $as_echo "$ac_cv_search_dlopen" >&6; }
23264 ac_res=$ac_cv_search_dlopen
23265 if test "$ac_res" != no; then :
23266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23271 working_dir=`eval echo /opt/bacula/working`
23273 # Check whether --with-working-dir was given.
23274 if test "${with_working_dir+set}" = set; then :
23275 withval=$with_working_dir;
23276 if test "x$withval" != "xno" ; then
23277 working_dir=$withval
23288 # Check whether --with-archivedir was given.
23289 if test "${with_archivedir+set}" = set; then :
23290 withval=$with_archivedir;
23291 if test "x$withval" != "xno" ; then
23292 archivedir=$withval
23301 basename=`hostname`
23303 # Check whether --with-basename was given.
23304 if test "${with_basename+set}" = set; then :
23305 withval=$with_basename;
23306 if test "x$withval" != "xno" ; then
23316 hostname=`uname -n | cut -d '.' -f 1`
23317 if test x${hostname} = x ; then
23318 hostname="localhost"
23320 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23321 if test ! $? = 0; then
23322 hostname="localhost"
23325 # Check whether --with-hostname was given.
23326 if test "${with_hostname+set}" = set; then :
23327 withval=$with_hostname;
23328 if test "x$withval" != "xno" ; then
23339 scriptdir=`eval echo ${sysconfdir}`
23341 # Check whether --with-scriptdir was given.
23342 if test "${with_scriptdir+set}" = set; then :
23343 withval=$with_scriptdir;
23344 if test "x$withval" != "xno" ; then
23355 bsrdir=`eval echo /opt/bacula/bsr`
23357 # Check whether --with-bsrdir was given.
23358 if test "${with_bsrdir+set}" = set; then :
23359 withval=$with_bsrdir;
23360 if test "x$withval" != "xno" ; then
23370 logdir=`eval echo /opt/bacula/log`
23372 # Check whether --with-logdir was given.
23373 if test "${with_logdir+set}" = set; then :
23374 withval=$with_logdir;
23375 if test "x$withval" != "xno" ; then
23386 # ------------------------------------------
23387 # Where to place plugindir (plugin files)
23388 # ------------------------------------------
23389 plugindir=`eval echo ${libdir}`
23391 # Check whether --with-plugindir was given.
23392 if test "${with_plugindir+set}" = set; then :
23393 withval=$with_plugindir;
23394 if test "x$withval" != "xno" ; then
23405 dump_email=root@localhost
23407 # Check whether --with-dump-email was given.
23408 if test "${with_dump_email+set}" = set; then :
23409 withval=$with_dump_email;
23410 if test "x$withval" != "xno" ; then
23411 dump_email=$withval
23420 job_email=root@localhost
23422 # Check whether --with-job-email was given.
23423 if test "${with_job_email+set}" = set; then :
23424 withval=$with_job_email;
23425 if test "x$withval" != "xno" ; then
23435 smtp_host=localhost
23437 # Check whether --with-smtp_host was given.
23438 if test "${with_smtp_host+set}" = set; then :
23439 withval=$with_smtp_host;
23440 if test "x$withval" != "xno" ; then
23452 # Check whether --with-pid-dir was given.
23453 if test "${with_pid_dir+set}" = set; then :
23454 withval=$with_pid_dir;
23455 if test "x$withval" != "xno" ; then
23463 cat >>confdefs.h <<_ACEOF
23464 #define _PATH_BACULA_PIDDIR "$piddir"
23469 subsysdir=/var/run/subsys
23470 if test -d /var/run/subsys; then
23471 subsysdir=/var/run/subsys
23472 elif test -d /var/lock/subsys; then
23473 subsysdir=/var/lock/subsys
23475 subsysdir=/var/run/subsys
23478 # Check whether --with-subsys-dir was given.
23479 if test "${with_subsys_dir+set}" = set; then :
23480 withval=$with_subsys_dir;
23481 if test "x$withval" != "xno" ; then
23493 # Check whether --with-baseport was given.
23494 if test "${with_baseport+set}" = set; then :
23495 withval=$with_baseport;
23496 if test "x$withval" != "xno" ; then
23505 dir_port=`expr $baseport`
23506 fd_port=`expr $baseport + 1`
23507 sd_port=`expr $fd_port + 1`
23515 # Check whether --with-dir-password was given.
23516 if test "${with_dir_password+set}" = set; then :
23517 withval=$with_dir_password;
23518 if test "x$withval" != "xno" ; then
23519 dir_password=$withval
23526 if test "x$dir_password" = "x" ; then
23527 if test "x$OPENSSL" = "xnone" ; then
23528 key=`autoconf/randpass 33`
23530 key=`openssl rand -base64 33`
23537 # Check whether --with-fd-password was given.
23538 if test "${with_fd_password+set}" = set; then :
23539 withval=$with_fd_password;
23540 if test "x$withval" != "xno" ; then
23541 fd_password=$withval
23548 if test "x$fd_password" = "x" ; then
23549 if test "x$OPENSSL" = "xnone" ; then
23550 key=`autoconf/randpass 37`
23552 key=`openssl rand -base64 33`
23559 # Check whether --with-sd-password was given.
23560 if test "${with_sd_password+set}" = set; then :
23561 withval=$with_sd_password;
23562 if test "x$withval" != "xno" ; then
23563 sd_password=$withval
23570 if test "x$sd_password" = "x" ; then
23571 if test "x$OPENSSL" = "xnone" ; then
23572 key=`autoconf/randpass 41`
23574 key=`openssl rand -base64 33`
23581 # Check whether --with-mon-dir-password was given.
23582 if test "${with_mon_dir_password+set}" = set; then :
23583 withval=$with_mon_dir_password;
23584 if test "x$withval" != "xno" ; then
23585 mon_dir_password=$withval
23592 if test "x$mon_dir_password" = "x" ; then
23593 if test "x$OPENSSL" = "xnone" ; then
23594 key=`autoconf/randpass 33`
23596 key=`openssl rand -base64 33`
23598 mon_dir_password=$key
23603 # Check whether --with-mon-fd-password was given.
23604 if test "${with_mon_fd_password+set}" = set; then :
23605 withval=$with_mon_fd_password;
23606 if test "x$withval" != "xno" ; then
23607 mon_fd_password=$withval
23614 if test "x$mon_fd_password" = "x" ; then
23615 if test "x$OPENSSL" = "xnone" ; then
23616 key=`autoconf/randpass 37`
23618 key=`openssl rand -base64 33`
23620 mon_fd_password=$key
23625 # Check whether --with-mon-sd-password was given.
23626 if test "${with_mon_sd_password+set}" = set; then :
23627 withval=$with_mon_sd_password;
23628 if test "x$withval" != "xno" ; then
23629 mon_sd_password=$withval
23636 if test "x$mon_sd_password" = "x" ; then
23637 if test "x$OPENSSL" = "xnone" ; then
23638 key=`autoconf/randpass 41`
23640 key=`openssl rand -base64 33`
23642 mon_sd_password=$key
23654 # Check whether --with-db_name was given.
23655 if test "${with_db_name+set}" = set; then :
23656 withval=$with_db_name;
23657 if test "x$withval" != "x" ; then
23668 # Check whether --with-db_user was given.
23669 if test "${with_db_user+set}" = set; then :
23670 withval=$with_db_user;
23671 if test "x$withval" != "x" ; then
23682 # Check whether --with-db_password was given.
23683 if test "${with_db_password+set}" = set; then :
23684 withval=$with_db_password;
23685 if test "x$withval" != "x" ; then
23686 db_password=$withval
23696 # Check whether --with-db_port was given.
23697 if test "${with_db_port+set}" = set; then :
23698 withval=$with_db_port;
23699 if test "x$withval" != "x" ; then
23710 # Check whether --with-db_ssl_options was given.
23711 if test "${with_db_ssl_options+set}" = set; then :
23712 withval=$with_db_ssl_options;
23713 if test "x$withval" != "x" ; then
23714 db_ssl_options=$withval
23723 # Handle users and groups for each daemon
23727 # Check whether --with-dir_user was given.
23728 if test "${with_dir_user+set}" = set; then :
23729 withval=$with_dir_user;
23730 if test "x$withval" != "x" ; then
23740 # Check whether --with-dir_group was given.
23741 if test "${with_dir_group+set}" = set; then :
23742 withval=$with_dir_group;
23743 if test "x$withval" != "x" ; then
23753 # Check whether --with-sd_user was given.
23754 if test "${with_sd_user+set}" = set; then :
23755 withval=$with_sd_user;
23756 if test "x$withval" != "x" ; then
23766 # Check whether --with-sd_group was given.
23767 if test "${with_sd_group+set}" = set; then :
23768 withval=$with_sd_group;
23769 if test "x$withval" != "x" ; then
23779 # Check whether --with-fd_user was given.
23780 if test "${with_fd_user+set}" = set; then :
23781 withval=$with_fd_user;
23782 if test "x$withval" != "x" ; then
23792 # Check whether --with-fd_group was given.
23793 if test "${with_fd_group+set}" = set; then :
23794 withval=$with_fd_group;
23795 if test "x$withval" != "x" ; then
23812 # Check whether --with-sbin-perm was given.
23813 if test "${with_sbin_perm+set}" = set; then :
23814 withval=$with_sbin_perm;
23815 if test "x$withval" != "x" ; then
23825 support_batch_insert=yes
23826 # Check whether --enable-batch-insert was given.
23827 if test "${enable_batch_insert+set}" = set; then :
23828 enableval=$enable_batch_insert;
23829 if test x$enableval = xno; then
23830 support_batch_insert=no
23837 if test x$support_batch_insert = xyes; then
23839 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23848 $as_echo_n "checking for PostgreSQL support... " >&6; }
23850 # Check whether --with-postgresql was given.
23851 if test "${with_postgresql+set}" = set; then :
23852 withval=$with_postgresql;
23853 if test "$withval" != "no"; then
23854 if test "$withval" = "yes"; then
23855 PG_CONFIG=`which pg_config 2>/dev/null`
23856 if test -n "$PG_CONFIG"; then
23857 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23858 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23859 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23860 elif test -f /usr/local/include/libpq-fe.h; then
23861 POSTGRESQL_INCDIR=/usr/local/include
23862 if test -d /usr/local/lib64; then
23863 POSTGRESQL_LIBDIR=/usr/local/lib64
23865 POSTGRESQL_LIBDIR=/usr/local/lib
23867 POSTGRESQL_BINDIR=/usr/local/bin
23868 elif test -f /usr/include/libpq-fe.h; then
23869 POSTGRESQL_INCDIR=/usr/include
23870 if test -d /usr/lib64; then
23871 POSTGRESQL_LIBDIR=/usr/lib64
23873 POSTGRESQL_LIBDIR=/usr/lib
23875 POSTGRESQL_BINDIR=/usr/bin
23876 elif test -f /usr/include/pgsql/libpq-fe.h; then
23877 POSTGRESQL_INCDIR=/usr/include/pgsql
23878 if test -d /usr/lib64/pgsql; then
23879 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23881 POSTGRESQL_LIBDIR=/usr/lib/pgsql
23883 POSTGRESQL_BINDIR=/usr/bin
23884 elif test -f /usr/include/postgresql/libpq-fe.h; then
23885 POSTGRESQL_INCDIR=/usr/include/postgresql
23886 if test -d /usr/lib64/postgresql; then
23887 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23889 POSTGRESQL_LIBDIR=/usr/lib/postgresql
23891 POSTGRESQL_BINDIR=/usr/bin
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23894 $as_echo "no" >&6; }
23895 as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23897 elif test -f $withval/include/libpq-fe.h; then
23898 POSTGRESQL_INCDIR=$withval/include
23899 POSTGRESQL_LIBDIR=$withval/lib
23900 POSTGRESQL_BINDIR=$withval/bin
23901 elif test -f $withval/include/postgresql/libpq-fe.h; then
23902 POSTGRESQL_INCDIR=$withval/include/postgresql
23903 if test -d $withval/lib64; then
23904 POSTGRESQL_LIBDIR=$withval/lib64
23906 POSTGRESQL_LIBDIR=$withval/lib
23908 POSTGRESQL_BINDIR=$withval/bin
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23911 $as_echo "no" >&6; }
23912 as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23915 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23918 $as_echo "yes" >&6; }
23920 POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23921 if test x$use_libtool != xno; then
23922 POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23924 POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23926 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23927 if test "x$ac_cv_func_crypt" = xyes; then :
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23931 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23932 if ${ac_cv_lib_crypt_crypt+:} false; then :
23933 $as_echo_n "(cached) " >&6
23935 ac_check_lib_save_LIBS=$LIBS
23936 LIBS="-lcrypt $LIBS"
23937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23938 /* end confdefs.h. */
23940 /* Override any GCC internal prototype to avoid an error.
23941 Use char because int might match the return type of a GCC
23942 builtin and then its argument prototype would still apply. */
23955 if ac_fn_c_try_link "$LINENO"; then :
23956 ac_cv_lib_crypt_crypt=yes
23958 ac_cv_lib_crypt_crypt=no
23960 rm -f core conftest.err conftest.$ac_objext \
23961 conftest$ac_exeext conftest.$ac_ext
23962 LIBS=$ac_check_lib_save_LIBS
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23965 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23966 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23967 POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23972 POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23973 DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23975 if test -z "${db_backends}"; then
23976 db_backends="PostgreSQL"
23978 db_backends="${db_backends} PostgreSQL"
23980 if test -z "${DB_BACKENDS}"; then
23981 DB_BACKENDS="postgresql"
23983 DB_BACKENDS="${DB_BACKENDS} postgresql"
23986 if test "x$support_batch_insert" = "xyes"; then
23987 saved_LDFLAGS="${LDFLAGS}"
23988 LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23989 saved_LIBS="${LIBS}"
23990 if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23991 LIBS="${saved_LIBS} -lcrypt"
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23995 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23996 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23997 $as_echo_n "(cached) " >&6
23999 ac_check_lib_save_LIBS=$LIBS
24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h. */
24004 /* Override any GCC internal prototype to avoid an error.
24005 Use char because int might match the return type of a GCC
24006 builtin and then its argument prototype would still apply. */
24010 char PQisthreadsafe ();
24014 return PQisthreadsafe ();
24019 if ac_fn_c_try_link "$LINENO"; then :
24020 ac_cv_lib_pq_PQisthreadsafe=yes
24022 ac_cv_lib_pq_PQisthreadsafe=no
24024 rm -f core conftest.err conftest.$ac_objext \
24025 conftest$ac_exeext conftest.$ac_ext
24026 LIBS=$ac_check_lib_save_LIBS
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24029 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24030 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24032 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24037 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24038 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24039 $as_echo_n "(cached) " >&6
24041 ac_check_lib_save_LIBS=$LIBS
24043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24044 /* end confdefs.h. */
24046 /* Override any GCC internal prototype to avoid an error.
24047 Use char because int might match the return type of a GCC
24048 builtin and then its argument prototype would still apply. */
24052 char PQputCopyData ();
24056 return PQputCopyData ();
24061 if ac_fn_c_try_link "$LINENO"; then :
24062 ac_cv_lib_pq_PQputCopyData=yes
24064 ac_cv_lib_pq_PQputCopyData=no
24066 rm -f core conftest.err conftest.$ac_objext \
24067 conftest$ac_exeext conftest.$ac_ext
24068 LIBS=$ac_check_lib_save_LIBS
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24071 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24072 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24074 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24078 if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24079 if test $support_batch_insert = yes ; then
24081 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24083 if test -z "${batch_insert_db_backends}"; then
24084 batch_insert_db_backends="PostgreSQL"
24086 batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24091 if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24093 echo "WARNING: Your PostgreSQL client library is too old to detect "
24094 echo "if it was compiled with --enable-thread-safety, consider to "
24095 echo "upgrade it in order to avoid problems with Batch insert mode"
24098 LDFLAGS="${saved_LDFLAGS}"
24099 LIBS="${saved_LIBS}"
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24103 $as_echo "no" >&6; }
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24109 $as_echo "no" >&6; }
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24121 $as_echo_n "checking for MySQL support... " >&6; }
24123 # Check whether --with-mysql was given.
24124 if test "${with_mysql+set}" = set; then :
24125 withval=$with_mysql;
24127 if test "$withval" != "no"; then
24128 if test "$withval" = "yes"; then
24129 MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24130 if test "x${MYSQL_CONFIG}" != x; then
24131 MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24132 ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24133 if test $? = 0; then
24134 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24135 MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24138 ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24139 if test $? = 0 ; then
24140 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24141 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24145 # if something wrong fall back to old method
24146 if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24147 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24148 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24149 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24150 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24151 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24153 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24155 MYSQL_BINDIR=/usr/local/mysql/bin
24156 elif test -f /usr/include/mysql/mysql.h; then
24157 MYSQL_INCDIR=/usr/include/mysql
24158 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24159 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24160 MYSQL_LIBDIR=/usr/lib64/mysql
24161 elif test -f /usr/lib64/libmysqlclient_r.a \
24162 -o -f /usr/lib64/libmysqlclient_r.so; then
24163 MYSQL_LIBDIR=/usr/lib64
24164 elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24165 -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24166 MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24167 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24168 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24169 MYSQL_LIBDIR=/usr/lib/mysql
24171 MYSQL_LIBDIR=/usr/lib
24173 MYSQL_BINDIR=/usr/bin
24174 elif test -f /usr/include/mysql.h; then
24175 MYSQL_INCDIR=/usr/include
24176 if test -f /usr/lib64/libmysqlclient_r.a \
24177 -o -f /usr/lib64/libmysqlclient_r.so; then
24178 MYSQL_LIBDIR=/usr/lib64
24180 MYSQL_LIBDIR=/usr/lib
24182 MYSQL_BINDIR=/usr/bin
24183 elif test -f /usr/local/include/mysql/mysql.h; then
24184 MYSQL_INCDIR=/usr/local/include/mysql
24185 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24186 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24187 MYSQL_LIBDIR=/usr/local/lib64/mysql
24189 MYSQL_LIBDIR=/usr/local/lib/mysql
24191 MYSQL_BINDIR=/usr/local/bin
24192 elif test -f /usr/local/include/mysql.h; then
24193 MYSQL_INCDIR=/usr/local/include
24194 if test -f /usr/local/lib64/libmysqlclient_r.a \
24195 -o -f /usr/local/lib64/libmysqlclient_r.so; then
24196 MYSQL_LIBDIR=/usr/local/lib64
24198 MYSQL_LIBDIR=/usr/local/lib
24200 MYSQL_BINDIR=/usr/local/bin
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24203 $as_echo "no" >&6; }
24204 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24208 if test -f $withval/include/mysql/mysql.h; then
24209 MYSQL_INCDIR=$withval/include/mysql
24210 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24211 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24212 MYSQL_LIBDIR=$withval/lib64/mysql
24213 elif test -f $withval/lib64/libmysqlclient_r.a \
24214 -o -f $withval/lib64/libmysqlclient_r.so; then
24215 MYSQL_LIBDIR=$withval/lib64
24216 elif test -f $withval/lib/libmysqlclient_r.a \
24217 -o -f $withval/lib/libmysqlclient_r.so; then
24218 MYSQL_LIBDIR=$withval/lib
24220 MYSQL_LIBDIR=$withval/lib/mysql
24222 MYSQL_BINDIR=$withval/bin
24223 elif test -f $withval/include/mysql.h; then
24224 MYSQL_INCDIR=$withval/include
24225 if test -f $withval/lib64/libmysqlclient_r.a \
24226 -o -f $withval/lib64/libmysqlclient_r.so; then
24227 MYSQL_LIBDIR=$withval/lib64
24229 MYSQL_LIBDIR=$withval/lib
24231 MYSQL_BINDIR=$withval/bin
24232 elif test -f $withval/mysql.h; then
24233 MYSQL_INCDIR=$withval
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24235 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24236 case $MYSQL_INCDIR in
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24239 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24240 if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24241 -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24243 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24244 MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24246 MYSQL_BINDIR=$prefix/lib/mysql55/bin
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24250 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24251 if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24252 -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24254 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24255 MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24257 MYSQL_BINDIR=$prefix/lib/mysql51/bin
24260 if test -z "${MYSQL_LIBDIR}" ; then
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24262 $as_echo "no" >&6; }
24263 as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 $as_echo "no" >&6; }
24268 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24271 if test "x${MYSQL_LIBDIR}" != x; then
24272 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24273 if test "x$HAVE_LIBSR" = "xyes"; then
24274 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24275 MYSQL_LIBS="$MYSQL_LIBDIR"
24276 MYSQL_INCLUDE="$MYSQL_INCDIR"
24278 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24280 if test -z "${batch_insert_db_backends}"; then
24281 batch_insert_db_backends="MySQL"
24283 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24285 elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24286 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24287 if test x$use_libtool != xno; then
24288 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24290 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24292 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24294 if test "x${MYSQL_LIBS}" = x; then
24295 MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24299 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24302 $as_echo "yes" >&6; }
24304 if test -z "${db_backends}" ; then
24305 db_backends="MySQL"
24307 db_backends="${db_backends} MySQL"
24309 if test -z "${DB_BACKENDS}" ; then
24310 DB_BACKENDS="mysql"
24312 DB_BACKENDS="${DB_BACKENDS} mysql"
24315 if test "x$HAVE_LIBSR" = "xno"; then
24316 if test "x$support_batch_insert" = "xyes"; then
24317 saved_LDFLAGS="${LDFLAGS}"
24318 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24319 saved_LIBS="${LIBS}"
24320 LIBS="${saved_LIBS} -lz"
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24323 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24324 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24325 $as_echo_n "(cached) " >&6
24327 ac_check_lib_save_LIBS=$LIBS
24328 LIBS="-lmysqlclient_r $LIBS"
24329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24330 /* end confdefs.h. */
24332 /* Override any GCC internal prototype to avoid an error.
24333 Use char because int might match the return type of a GCC
24334 builtin and then its argument prototype would still apply. */
24338 char mysql_thread_safe ();
24342 return mysql_thread_safe ();
24347 if ac_fn_c_try_link "$LINENO"; then :
24348 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24350 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24352 rm -f core conftest.err conftest.$ac_objext \
24353 conftest$ac_exeext conftest.$ac_ext
24354 LIBS=$ac_check_lib_save_LIBS
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24357 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24358 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24360 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24364 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24365 if test -z "${batch_insert_db_backends}"; then
24366 batch_insert_db_backends="MySQL"
24368 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24372 LDFLAGS="${saved_LDFLAGS}"
24373 LIBS="${saved_LIBS}"
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24378 $as_echo "no" >&6; }
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24385 $as_echo "no" >&6; }
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24391 $as_echo_n "checking for MySQL embedded support... " >&6; }
24393 # Check whether --with-embedded-mysql was given.
24394 if test "${with_embedded_mysql+set}" = set; then :
24395 withval=$with_embedded_mysql;
24396 if test "$withval" != "no"; then
24397 if test "$withval" = "yes"; then
24398 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24399 MYSQL_INCDIR=/usr/local/mysql/include/mysql
24400 if test -d /usr/local/mysql/lib64/mysql; then
24401 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24403 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24405 MYSQL_BINDIR=/usr/local/mysql/bin
24406 elif test -f /usr/include/mysql/mysql.h; then
24407 MYSQL_INCDIR=/usr/include/mysql
24408 if test -d /usr/lib64/mysql; then
24409 MYSQL_LIBDIR=/usr/lib64/mysql
24411 MYSQL_LIBDIR=/usr/lib/mysql
24413 MYSQL_BINDIR=/usr/bin
24414 elif test -f /usr/include/mysql.h; then
24415 MYSQL_INCDIR=/usr/include
24416 if test -d /usr/lib64; then
24417 MYSQL_LIBDIR=/usr/lib64
24419 MYSQL_LIBDIR=/usr/lib
24421 MYSQL_BINDIR=/usr/bin
24422 elif test -f /usr/local/include/mysql/mysql.h; then
24423 MYSQL_INCDIR=/usr/local/include/mysql
24424 if test -d /usr/local/lib64/mysql; then
24425 MYSQL_LIBDIR=/usr/local/lib64/mysql
24427 MYSQL_LIBDIR=/usr/local/lib/mysql
24429 MYSQL_BINDIR=/usr/local/bin
24430 elif test -f /usr/local/include/mysql.h; then
24431 MYSQL_INCDIR=/usr/local/include
24432 if test -d /usr/local/lib64; then
24433 MYSQL_LIBDIR=/usr/local/lib64
24435 MYSQL_LIBDIR=/usr/local/lib
24437 MYSQL_BINDIR=/usr/local/bin
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440 $as_echo "no" >&6; }
24441 as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24444 if test -f $withval/include/mysql/mysql.h; then
24445 MYSQL_INCDIR=$withval/include/mysql
24446 if test -d $withval/lib64/mysql; then
24447 MYSQL_LIBDIR=$withval/lib64/mysql
24449 MYSQL_LIBDIR=$withval/lib/mysql
24451 MYSQL_BINDIR=$withval/bin
24452 elif test -f $withval/include/mysql.h; then
24453 MYSQL_INCDIR=$withval/include
24454 if test -d $withval/lib64; then
24455 MYSQL_LIBDIR=$withval/lib64
24457 MYSQL_LIBDIR=$withval/lib
24459 MYSQL_BINDIR=$withval/bin
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24462 $as_echo "no" >&6; }
24463 as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24466 MYSQL_INCLUDE=-I$MYSQL_INCDIR
24467 if test x$use_libtool != xno; then
24468 MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24470 MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24472 MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24473 DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24476 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24479 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24482 $as_echo "yes" >&6; }
24484 if test -z "${db_backends}"; then
24485 db_backends="MySQL"
24487 db_backends="${db_backends} MySQL"
24489 if test -z "${DB_BACKENDS}"; then
24490 DB_BACKENDS="mysql"
24492 DB_BACKENDS="${DB_BACKENDS} mysql"
24495 if test "x$support_batch_insert" = "xyes"; then
24496 saved_LDFLAGS="${LDFLAGS}"
24497 LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24498 saved_LIBS="${LIBS}"
24499 LIBS="${saved_LIBS} -lz -lm -lcrypt"
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24502 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24503 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24504 $as_echo_n "(cached) " >&6
24506 ac_check_lib_save_LIBS=$LIBS
24507 LIBS="-lmysqlclient_r $LIBS"
24508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24509 /* end confdefs.h. */
24511 /* Override any GCC internal prototype to avoid an error.
24512 Use char because int might match the return type of a GCC
24513 builtin and then its argument prototype would still apply. */
24517 char mysql_thread_safe ();
24521 return mysql_thread_safe ();
24526 if ac_fn_c_try_link "$LINENO"; then :
24527 ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24529 ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24531 rm -f core conftest.err conftest.$ac_objext \
24532 conftest$ac_exeext conftest.$ac_ext
24533 LIBS=$ac_check_lib_save_LIBS
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24536 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24537 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24539 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24543 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24544 if test -z "${batch_insert_db_backends}"; then
24545 batch_insert_db_backends="MySQL"
24547 batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24551 LDFLAGS="${saved_LDFLAGS}"
24552 LIBS="${saved_LIBS}"
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24556 $as_echo "no" >&6; }
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24562 $as_echo "no" >&6; }
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24575 $as_echo_n "checking for SQLite3 support... " >&6; }
24577 # Check whether --with-sqlite3 was given.
24578 if test "${with_sqlite3+set}" = set; then :
24579 withval=$with_sqlite3;
24580 if test "$withval" != "no"; then
24581 if test "$withval" = "yes"; then
24582 if test -f /usr/local/include/sqlite3.h; then
24583 SQLITE_INCDIR=/usr/local/include
24584 if test -d /usr/local/lib64; then
24585 SQLITE_LIBDIR=/usr/local/lib64
24587 SQLITE_LIBDIR=/usr/local/lib
24589 SQLITE_BINDIR=/usr/local/bin
24590 elif test -f /usr/include/sqlite3.h; then
24591 SQLITE_INCDIR=/usr/include
24592 if test -d /usr/lib64; then
24593 SQLITE_LIBDIR=/usr/lib64
24595 SQLITE_LIBDIR=/usr/lib
24597 SQLITE_BINDIR=/usr/bin
24598 elif test -f $prefix/include/sqlite3.h; then
24599 SQLITE_INCDIR=$prefix/include
24600 if test -d $prefix/lib64; then
24601 SQLITE_LIBDIR=$prefix/lib64
24603 SQLITE_LIBDIR=$prefix/lib
24605 SQLITE_BINDIR=$prefix/bin
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24608 $as_echo "no" >&6; }
24609 as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24612 if test -f $withval/sqlite3.h; then
24613 SQLITE_INCDIR=$withval
24614 SQLITE_LIBDIR=$withval
24615 SQLITE_BINDIR=$withval
24616 elif test -f $withval/include/sqlite3.h; then
24617 SQLITE_INCDIR=$withval/include
24618 if test -d $withval/lib64; then
24619 SQLITE_LIBDIR=$withval/lib64
24621 SQLITE_LIBDIR=$withval/lib
24623 SQLITE_BINDIR=$withval/bin
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24626 $as_echo "no" >&6; }
24627 as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24630 SQLITE_INCLUDE=-I$SQLITE_INCDIR
24631 if test x$use_libtool != xno; then
24632 SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24634 SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24636 SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24637 DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24640 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24643 $as_echo "yes" >&6; }
24645 if test -z "${db_backends}"; then
24646 db_backends="SQLite3"
24648 db_backends="${db_backends} SQLite3"
24650 if test -z "${DB_BACKENDS}"; then
24651 DB_BACKENDS="sqlite3"
24653 DB_BACKENDS="${DB_BACKENDS} sqlite3"
24656 if test "x$support_batch_insert" = "xyes"; then
24657 saved_LDFLAGS="${LDFLAGS}"
24658 LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24661 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24662 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24663 $as_echo_n "(cached) " >&6
24665 ac_check_lib_save_LIBS=$LIBS
24666 LIBS="-lsqlite3 $LIBS"
24667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24668 /* end confdefs.h. */
24670 /* Override any GCC internal prototype to avoid an error.
24671 Use char because int might match the return type of a GCC
24672 builtin and then its argument prototype would still apply. */
24676 char sqlite3_threadsafe ();
24680 return sqlite3_threadsafe ();
24685 if ac_fn_c_try_link "$LINENO"; then :
24686 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24688 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24690 rm -f core conftest.err conftest.$ac_objext \
24691 conftest$ac_exeext conftest.$ac_ext
24692 LIBS=$ac_check_lib_save_LIBS
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24695 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24696 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24698 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24702 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24703 if test -z "${batch_insert_db_backends}"; then
24704 batch_insert_db_backends="SQLite3"
24706 batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24710 LDFLAGS="${saved_LDFLAGS}"
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24714 $as_echo "no" >&6; }
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24720 $as_echo "no" >&6; }
24730 if test -z "${batch_insert_db_backends}"; then
24731 batch_insert_db_backends="None"
24734 if test "x${db_backends}" = "x" ; then
24737 echo "You have not specified either --enable-client-only or one of the"
24738 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24739 echo "This is not permitted. Please reconfigure."
24741 echo "Aborting the configuration ..."
24747 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24749 DEFAULT_DB_TYPE="${DB_BACKENDS}"
24750 if test x$use_libtool = xno; then
24751 SHARED_CATALOG_TARGETS=""
24753 SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24757 DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24759 if test x$use_libtool = xno; then
24762 echo "You have specified two or more of the"
24763 echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24764 echo "This is not permitted when not using libtool Please reconfigure."
24766 echo "Aborting the configuration ..."
24772 SHARED_CATALOG_TARGETS=""
24773 for db_type in ${DB_BACKENDS}
24775 if test -z "${SHARED_CATALOG_TARGETS}"; then
24776 SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24778 SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24784 if test x$use_libtool = xyes; then
24794 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24797 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24798 if test -z "$CCOPTS"; then
24799 CCOPTS='-g -O2 -Wall'
24806 largefile_support="no"
24808 # Check whether --enable-largefile was given.
24809 if test "${enable_largefile+set}" = set; then :
24810 enableval=$enable_largefile;
24813 if test "$enable_largefile" != no; then
24814 if test -n "$ac_tool_prefix"; then
24815 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24816 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24818 $as_echo_n "checking for $ac_word... " >&6; }
24819 if ${ac_cv_prog_GETCONF+:} false; then :
24820 $as_echo_n "(cached) " >&6
24822 if test -n "$GETCONF"; then
24823 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24826 for as_dir in $PATH
24829 test -z "$as_dir" && as_dir=.
24830 for ac_exec_ext in '' $ac_executable_extensions; do
24831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24832 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24842 GETCONF=$ac_cv_prog_GETCONF
24843 if test -n "$GETCONF"; then
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24845 $as_echo "$GETCONF" >&6; }
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24848 $as_echo "no" >&6; }
24853 if test -z "$ac_cv_prog_GETCONF"; then
24854 ac_ct_GETCONF=$GETCONF
24855 # Extract the first word of "getconf", so it can be a program name with args.
24856 set dummy getconf; ac_word=$2
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24858 $as_echo_n "checking for $ac_word... " >&6; }
24859 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24860 $as_echo_n "(cached) " >&6
24862 if test -n "$ac_ct_GETCONF"; then
24863 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24866 for as_dir in $PATH
24869 test -z "$as_dir" && as_dir=.
24870 for ac_exec_ext in '' $ac_executable_extensions; do
24871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24872 ac_cv_prog_ac_ct_GETCONF="getconf"
24873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24882 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24883 if test -n "$ac_ct_GETCONF"; then
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24885 $as_echo "$ac_ct_GETCONF" >&6; }
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24888 $as_echo "no" >&6; }
24891 if test "x$ac_ct_GETCONF" = x; then
24894 case $cross_compiling:$ac_tool_warned in
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24898 ac_tool_warned=yes ;;
24900 GETCONF=$ac_ct_GETCONF
24903 GETCONF="$ac_cv_prog_GETCONF"
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24907 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24908 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24909 $as_echo_n "(cached) " >&6
24911 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24912 ac_cv_sys_largefile_CFLAGS=no
24914 # IRIX 6.2 and later require cc -n32.
24915 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24916 if test "$GCC" != yes; then
24917 ac_cv_sys_largefile_CFLAGS=-n32
24920 CC="$CC $ac_cv_sys_largefile_CFLAGS"
24921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24922 /* end confdefs.h. */
24932 if ac_fn_c_try_link "$LINENO"; then :
24935 ac_cv_sys_largefile_CFLAGS=no
24937 rm -f core conftest.err conftest.$ac_objext \
24938 conftest$ac_exeext conftest.$ac_ext
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24944 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24946 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24947 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24948 $as_echo_n "(cached) " >&6
24950 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24951 ac_cv_sys_largefile_LDFLAGS=no
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24956 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24958 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24959 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24960 $as_echo_n "(cached) " >&6
24962 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24963 ac_cv_sys_largefile_LIBS=no
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24968 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24970 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24973 -D_FILE_OFFSET_BITS=*) ;;
24974 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24975 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24980 case "$CPPFLAGS" in
24981 '') CPPFLAGS="$ac_flag" ;;
24982 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24990 '') CFLAGS="$ac_flag" ;;
24991 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24996 case "$ac_cv_sys_largefile_LDFLAGS" in
25000 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25001 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25004 case "$ac_cv_sys_largefile_LIBS" in
25008 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25009 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25013 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25014 if ${ac_cv_sys_file_offset_bits+:} false; then :
25015 $as_echo_n "(cached) " >&6
25017 ac_cv_sys_file_offset_bits=no
25018 ac_cv_sys_file_offset_bits=64
25019 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25021 -D_FILE_OFFSET_BITS)
25022 ac_cv_sys_file_offset_bits=1 ;;
25023 -D_FILE_OFFSET_BITS=*)
25024 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25030 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25031 if test "$ac_cv_sys_file_offset_bits" != no; then
25033 cat >>confdefs.h <<_ACEOF
25034 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25039 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25040 if ${ac_cv_sys_largefile_source+:} false; then :
25041 $as_echo_n "(cached) " >&6
25043 ac_cv_sys_largefile_source=no
25044 ac_cv_sys_largefile_source=1
25045 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25047 -D_LARGEFILE_SOURCE)
25048 ac_cv_sys_largefile_source=1 ;;
25049 -D_LARGEFILE_SOURCE=*)
25050 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25056 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25057 if test "$ac_cv_sys_largefile_source" != no; then
25059 cat >>confdefs.h <<_ACEOF
25060 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25065 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25066 if ${ac_cv_sys_large_files+:} false; then :
25067 $as_echo_n "(cached) " >&6
25069 ac_cv_sys_large_files=no
25070 ac_cv_sys_large_files=1
25071 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25074 ac_cv_sys_large_files=1 ;;
25076 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25082 $as_echo "$ac_cv_sys_large_files" >&6; }
25083 if test "$ac_cv_sys_large_files" != no; then
25085 cat >>confdefs.h <<_ACEOF
25086 #define _LARGE_FILES $ac_cv_sys_large_files
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25094 $as_echo_n "checking for X... " >&6; }
25097 # Check whether --with-x was given.
25098 if test "${with_x+set}" = set; then :
25102 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25103 if test "x$with_x" = xno; then
25104 # The user explicitly disabled X.
25107 case $x_includes,$x_libraries in #(
25108 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25109 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25110 $as_echo_n "(cached) " >&6
25112 # One or both of the vars are not set, and there is no cached value.
25113 ac_x_includes=no ac_x_libraries=no
25114 rm -f -r conftest.dir
25115 if mkdir conftest.dir; then
25117 cat >Imakefile <<'_ACEOF'
25119 @echo incroot='${INCROOT}'
25121 @echo usrlibdir='${USRLIBDIR}'
25123 @echo libdir='${LIBDIR}'
25125 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25126 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25127 for ac_var in incroot usrlibdir libdir; do
25128 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25130 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25131 for ac_extension in a so sl dylib la dll; do
25132 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25133 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25134 ac_im_usrlibdir=$ac_im_libdir; break
25137 # Screen out bogus values from the imake configuration. They are
25138 # bogus both because they are the default anyway, and because
25139 # using them would break gcc on systems where it needs fixed includes.
25140 case $ac_im_incroot in
25141 /usr/include) ac_x_includes= ;;
25142 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25144 case $ac_im_usrlibdir in
25145 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25146 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25150 rm -f -r conftest.dir
25153 # Standard set of common directories for X headers.
25154 # Check X11 before X11Rn because it is often a symlink to the current release.
25168 /usr/local/X11/include
25169 /usr/local/X11R7/include
25170 /usr/local/X11R6/include
25171 /usr/local/X11R5/include
25172 /usr/local/X11R4/include
25174 /usr/local/include/X11
25175 /usr/local/include/X11R7
25176 /usr/local/include/X11R6
25177 /usr/local/include/X11R5
25178 /usr/local/include/X11R4
25182 /usr/XFree86/include/X11
25186 /usr/unsupported/include
25187 /usr/athena/include
25188 /usr/local/x11r5/include
25189 /usr/lpp/Xamples/include
25191 /usr/openwin/include
25192 /usr/openwin/share/include'
25194 if test "$ac_x_includes" = no; then
25195 # Guess where to find include files, by looking for Xlib.h.
25196 # First, try using that file with no special directory specified.
25197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h. */
25199 #include <X11/Xlib.h>
25201 if ac_fn_c_try_cpp "$LINENO"; then :
25202 # We can compile using X headers with no special include directory.
25205 for ac_dir in $ac_x_header_dirs; do
25206 if test -r "$ac_dir/X11/Xlib.h"; then
25207 ac_x_includes=$ac_dir
25212 rm -f conftest.err conftest.i conftest.$ac_ext
25213 fi # $ac_x_includes = no
25215 if test "$ac_x_libraries" = no; then
25216 # Check for the libraries.
25217 # See if we find them without any special options.
25218 # Don't add to $LIBS permanently.
25221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25222 /* end confdefs.h. */
25223 #include <X11/Xlib.h>
25232 if ac_fn_c_try_link "$LINENO"; then :
25234 # We can link X programs with no special library path.
25238 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25240 # Don't even attempt the hair of trying to link an X program!
25241 for ac_extension in a so sl dylib la dll; do
25242 if test -r "$ac_dir/libX11.$ac_extension"; then
25243 ac_x_libraries=$ac_dir
25249 rm -f core conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
25251 fi # $ac_x_libraries = no
25253 case $ac_x_includes,$ac_x_libraries in #(
25254 no,* | *,no | *\'*)
25255 # Didn't find X, or a directory has "'" in its name.
25256 ac_cv_have_x="have_x=no";; #(
25258 # Record where we found X for the cache.
25259 ac_cv_have_x="have_x=yes\
25260 ac_x_includes='$ac_x_includes'\
25261 ac_x_libraries='$ac_x_libraries'"
25267 eval "$ac_cv_have_x"
25270 if test "$have_x" != yes; then
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25272 $as_echo "$have_x" >&6; }
25275 # If each of the values was on the command line, it overrides each guess.
25276 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25277 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25278 # Update the cache value to reflect the command line values.
25279 ac_cv_have_x="have_x=yes\
25280 ac_x_includes='$x_includes'\
25281 ac_x_libraries='$x_libraries'"
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25283 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25286 if test "$no_x" = yes; then
25287 # Not all programs may use this symbol, but it does not hurt to define it.
25289 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25291 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25293 if test -n "$x_includes"; then
25294 X_CFLAGS="$X_CFLAGS -I$x_includes"
25297 # It would also be nice to do this for all -L options, not just this one.
25298 if test -n "$x_libraries"; then
25299 X_LIBS="$X_LIBS -L$x_libraries"
25300 # For Solaris; some versions of Sun CC require a space after -R and
25301 # others require no space. Words are not sufficient . . . .
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25303 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25304 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25305 ac_xsave_c_werror_flag=$ac_c_werror_flag
25306 ac_c_werror_flag=yes
25307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25308 /* end confdefs.h. */
25318 if ac_fn_c_try_link "$LINENO"; then :
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25320 $as_echo "no" >&6; }
25321 X_LIBS="$X_LIBS -R$x_libraries"
25323 LIBS="$ac_xsave_LIBS -R $x_libraries"
25324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25325 /* end confdefs.h. */
25335 if ac_fn_c_try_link "$LINENO"; then :
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25337 $as_echo "yes" >&6; }
25338 X_LIBS="$X_LIBS -R $x_libraries"
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25341 $as_echo "neither works" >&6; }
25343 rm -f core conftest.err conftest.$ac_objext \
25344 conftest$ac_exeext conftest.$ac_ext
25346 rm -f core conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
25348 ac_c_werror_flag=$ac_xsave_c_werror_flag
25349 LIBS=$ac_xsave_LIBS
25352 # Check for system-dependent libraries X programs must link with.
25353 # Do this before checking for the system-independent R6 libraries
25354 # (-lICE), since we may need -lsocket or whatever for X linking.
25356 if test "$ISC" = yes; then
25357 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25359 # Martyn Johnson says this is needed for Ultrix, if the X
25360 # libraries were built with DECnet support. And Karl Berry says
25361 # the Alpha needs dnet_stub (dnet does not exist).
25362 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25364 /* end confdefs.h. */
25366 /* Override any GCC internal prototype to avoid an error.
25367 Use char because int might match the return type of a GCC
25368 builtin and then its argument prototype would still apply. */
25372 char XOpenDisplay ();
25376 return XOpenDisplay ();
25381 if ac_fn_c_try_link "$LINENO"; then :
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25385 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25386 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25387 $as_echo_n "(cached) " >&6
25389 ac_check_lib_save_LIBS=$LIBS
25390 LIBS="-ldnet $LIBS"
25391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25392 /* end confdefs.h. */
25394 /* Override any GCC internal prototype to avoid an error.
25395 Use char because int might match the return type of a GCC
25396 builtin and then its argument prototype would still apply. */
25404 return dnet_ntoa ();
25409 if ac_fn_c_try_link "$LINENO"; then :
25410 ac_cv_lib_dnet_dnet_ntoa=yes
25412 ac_cv_lib_dnet_dnet_ntoa=no
25414 rm -f core conftest.err conftest.$ac_objext \
25415 conftest$ac_exeext conftest.$ac_ext
25416 LIBS=$ac_check_lib_save_LIBS
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25419 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25420 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25421 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25424 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25426 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25427 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25428 $as_echo_n "(cached) " >&6
25430 ac_check_lib_save_LIBS=$LIBS
25431 LIBS="-ldnet_stub $LIBS"
25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433 /* end confdefs.h. */
25435 /* Override any GCC internal prototype to avoid an error.
25436 Use char because int might match the return type of a GCC
25437 builtin and then its argument prototype would still apply. */
25445 return dnet_ntoa ();
25450 if ac_fn_c_try_link "$LINENO"; then :
25451 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25453 ac_cv_lib_dnet_stub_dnet_ntoa=no
25455 rm -f core conftest.err conftest.$ac_objext \
25456 conftest$ac_exeext conftest.$ac_ext
25457 LIBS=$ac_check_lib_save_LIBS
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25460 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25461 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25462 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25467 rm -f core conftest.err conftest.$ac_objext \
25468 conftest$ac_exeext conftest.$ac_ext
25469 LIBS="$ac_xsave_LIBS"
25471 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25472 # to get the SysV transport functions.
25473 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25475 # The nsl library prevents programs from opening the X display
25476 # on Irix 5.2, according to T.E. Dickey.
25477 # The functions gethostbyname, getservbyname, and inet_addr are
25478 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25479 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25480 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25484 if test $ac_cv_func_gethostbyname = no; then
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25486 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25487 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25488 $as_echo_n "(cached) " >&6
25490 ac_check_lib_save_LIBS=$LIBS
25492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25493 /* end confdefs.h. */
25495 /* Override any GCC internal prototype to avoid an error.
25496 Use char because int might match the return type of a GCC
25497 builtin and then its argument prototype would still apply. */
25501 char gethostbyname ();
25505 return gethostbyname ();
25510 if ac_fn_c_try_link "$LINENO"; then :
25511 ac_cv_lib_nsl_gethostbyname=yes
25513 ac_cv_lib_nsl_gethostbyname=no
25515 rm -f core conftest.err conftest.$ac_objext \
25516 conftest$ac_exeext conftest.$ac_ext
25517 LIBS=$ac_check_lib_save_LIBS
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25520 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25521 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25525 if test $ac_cv_lib_nsl_gethostbyname = no; then
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25527 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25528 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25529 $as_echo_n "(cached) " >&6
25531 ac_check_lib_save_LIBS=$LIBS
25533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h. */
25536 /* Override any GCC internal prototype to avoid an error.
25537 Use char because int might match the return type of a GCC
25538 builtin and then its argument prototype would still apply. */
25542 char gethostbyname ();
25546 return gethostbyname ();
25551 if ac_fn_c_try_link "$LINENO"; then :
25552 ac_cv_lib_bsd_gethostbyname=yes
25554 ac_cv_lib_bsd_gethostbyname=no
25556 rm -f core conftest.err conftest.$ac_objext \
25557 conftest$ac_exeext conftest.$ac_ext
25558 LIBS=$ac_check_lib_save_LIBS
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25561 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25562 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25563 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25569 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25570 # socket/setsockopt and other routines are undefined under SCO ODT
25571 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25572 # on later versions), says Simon Leinen: it contains gethostby*
25573 # variants that don't use the name server (or something). -lsocket
25574 # must be given before -lnsl if both are needed. We assume that
25575 # if connect needs -lnsl, so does gethostbyname.
25576 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25577 if test "x$ac_cv_func_connect" = xyes; then :
25581 if test $ac_cv_func_connect = no; then
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25583 $as_echo_n "checking for connect in -lsocket... " >&6; }
25584 if ${ac_cv_lib_socket_connect+:} false; then :
25585 $as_echo_n "(cached) " >&6
25587 ac_check_lib_save_LIBS=$LIBS
25588 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25590 /* end confdefs.h. */
25592 /* Override any GCC internal prototype to avoid an error.
25593 Use char because int might match the return type of a GCC
25594 builtin and then its argument prototype would still apply. */
25607 if ac_fn_c_try_link "$LINENO"; then :
25608 ac_cv_lib_socket_connect=yes
25610 ac_cv_lib_socket_connect=no
25612 rm -f core conftest.err conftest.$ac_objext \
25613 conftest$ac_exeext conftest.$ac_ext
25614 LIBS=$ac_check_lib_save_LIBS
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25617 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25618 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25619 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25624 # Guillermo Gomez says -lposix is necessary on A/UX.
25625 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25626 if test "x$ac_cv_func_remove" = xyes; then :
25630 if test $ac_cv_func_remove = no; then
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25632 $as_echo_n "checking for remove in -lposix... " >&6; }
25633 if ${ac_cv_lib_posix_remove+:} false; then :
25634 $as_echo_n "(cached) " >&6
25636 ac_check_lib_save_LIBS=$LIBS
25637 LIBS="-lposix $LIBS"
25638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25639 /* end confdefs.h. */
25641 /* Override any GCC internal prototype to avoid an error.
25642 Use char because int might match the return type of a GCC
25643 builtin and then its argument prototype would still apply. */
25656 if ac_fn_c_try_link "$LINENO"; then :
25657 ac_cv_lib_posix_remove=yes
25659 ac_cv_lib_posix_remove=no
25661 rm -f core conftest.err conftest.$ac_objext \
25662 conftest$ac_exeext conftest.$ac_ext
25663 LIBS=$ac_check_lib_save_LIBS
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25666 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25667 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25673 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25674 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25675 if test "x$ac_cv_func_shmat" = xyes; then :
25679 if test $ac_cv_func_shmat = no; then
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25681 $as_echo_n "checking for shmat in -lipc... " >&6; }
25682 if ${ac_cv_lib_ipc_shmat+:} false; then :
25683 $as_echo_n "(cached) " >&6
25685 ac_check_lib_save_LIBS=$LIBS
25687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25688 /* end confdefs.h. */
25690 /* Override any GCC internal prototype to avoid an error.
25691 Use char because int might match the return type of a GCC
25692 builtin and then its argument prototype would still apply. */
25705 if ac_fn_c_try_link "$LINENO"; then :
25706 ac_cv_lib_ipc_shmat=yes
25708 ac_cv_lib_ipc_shmat=no
25710 rm -f core conftest.err conftest.$ac_objext \
25711 conftest$ac_exeext conftest.$ac_ext
25712 LIBS=$ac_check_lib_save_LIBS
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25715 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25716 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25723 # Check for libraries that X11R6 Xt/Xaw programs need.
25724 ac_save_LDFLAGS=$LDFLAGS
25725 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25726 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25727 # check for ICE first), but we must link in the order -lSM -lICE or
25728 # we get undefined symbols. So assume we have SM if we have ICE.
25729 # These have to be linked with before -lX11, unlike the other
25730 # libraries we check for below, so use a different variable.
25731 # John Interrante, Karl Berry
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25733 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25734 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25735 $as_echo_n "(cached) " >&6
25737 ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h. */
25742 /* Override any GCC internal prototype to avoid an error.
25743 Use char because int might match the return type of a GCC
25744 builtin and then its argument prototype would still apply. */
25748 char IceConnectionNumber ();
25752 return IceConnectionNumber ();
25757 if ac_fn_c_try_link "$LINENO"; then :
25758 ac_cv_lib_ICE_IceConnectionNumber=yes
25760 ac_cv_lib_ICE_IceConnectionNumber=no
25762 rm -f core conftest.err conftest.$ac_objext \
25763 conftest$ac_exeext conftest.$ac_ext
25764 LIBS=$ac_check_lib_save_LIBS
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25767 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25768 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25769 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25772 LDFLAGS=$ac_save_LDFLAGS
25810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25811 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25812 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25813 cat >>confdefs.h <<_ACEOF
25814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25822 $as_echo_n "checking for ANSI C header files... " >&6; }
25823 if ${ac_cv_header_stdc+:} false; then :
25824 $as_echo_n "(cached) " >&6
25826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25827 /* end confdefs.h. */
25828 #include <stdlib.h>
25829 #include <stdarg.h>
25830 #include <string.h>
25841 if ac_fn_c_try_compile "$LINENO"; then :
25842 ac_cv_header_stdc=yes
25844 ac_cv_header_stdc=no
25846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848 if test $ac_cv_header_stdc = yes; then
25849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h. */
25852 #include <string.h>
25855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25856 $EGREP "memchr" >/dev/null 2>&1; then :
25859 ac_cv_header_stdc=no
25865 if test $ac_cv_header_stdc = yes; then
25866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25868 /* end confdefs.h. */
25869 #include <stdlib.h>
25872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25873 $EGREP "free" >/dev/null 2>&1; then :
25876 ac_cv_header_stdc=no
25882 if test $ac_cv_header_stdc = yes; then
25883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25884 if test "$cross_compiling" = yes; then :
25887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25888 /* end confdefs.h. */
25890 #include <stdlib.h>
25891 #if ((' ' & 0x0FF) == 0x020)
25892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25895 # define ISLOWER(c) \
25896 (('a' <= (c) && (c) <= 'i') \
25897 || ('j' <= (c) && (c) <= 'r') \
25898 || ('s' <= (c) && (c) <= 'z'))
25899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25907 for (i = 0; i < 256; i++)
25908 if (XOR (islower (i), ISLOWER (i))
25909 || toupper (i) != TOUPPER (i))
25914 if ac_fn_c_try_run "$LINENO"; then :
25917 ac_cv_header_stdc=no
25919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25920 conftest.$ac_objext conftest.beam conftest.$ac_ext
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25926 $as_echo "$ac_cv_header_stdc" >&6; }
25927 if test $ac_cv_header_stdc = yes; then
25929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25934 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25935 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25936 $as_echo_n "(cached) " >&6
25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h. */
25940 #include <sys/types.h>
25944 return makedev(0, 0);
25949 if ac_fn_c_try_link "$LINENO"; then :
25950 ac_cv_header_sys_types_h_makedev=yes
25952 ac_cv_header_sys_types_h_makedev=no
25954 rm -f core conftest.err conftest.$ac_objext \
25955 conftest$ac_exeext conftest.$ac_ext
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25959 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25961 if test $ac_cv_header_sys_types_h_makedev = no; then
25962 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25963 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25965 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25971 if test $ac_cv_header_sys_mkdev_h = no; then
25972 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25973 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25975 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25983 ac_header_dirent=no
25984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25985 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25987 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25988 if eval \${$as_ac_Header+:} false; then :
25989 $as_echo_n "(cached) " >&6
25991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25992 /* end confdefs.h. */
25993 #include <sys/types.h>
26005 if ac_fn_c_try_compile "$LINENO"; then :
26006 eval "$as_ac_Header=yes"
26008 eval "$as_ac_Header=no"
26010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012 eval ac_res=\$$as_ac_Header
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26014 $as_echo "$ac_res" >&6; }
26015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26016 cat >>confdefs.h <<_ACEOF
26017 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26020 ac_header_dirent=$ac_hdr; break
26024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26025 if test $ac_header_dirent = dirent.h; then
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26027 $as_echo_n "checking for library containing opendir... " >&6; }
26028 if ${ac_cv_search_opendir+:} false; then :
26029 $as_echo_n "(cached) " >&6
26031 ac_func_search_save_LIBS=$LIBS
26032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26033 /* end confdefs.h. */
26035 /* Override any GCC internal prototype to avoid an error.
26036 Use char because int might match the return type of a GCC
26037 builtin and then its argument prototype would still apply. */
26050 for ac_lib in '' dir; do
26051 if test -z "$ac_lib"; then
26052 ac_res="none required"
26055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26057 if ac_fn_c_try_link "$LINENO"; then :
26058 ac_cv_search_opendir=$ac_res
26060 rm -f core conftest.err conftest.$ac_objext \
26062 if ${ac_cv_search_opendir+:} false; then :
26066 if ${ac_cv_search_opendir+:} false; then :
26069 ac_cv_search_opendir=no
26071 rm conftest.$ac_ext
26072 LIBS=$ac_func_search_save_LIBS
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26075 $as_echo "$ac_cv_search_opendir" >&6; }
26076 ac_res=$ac_cv_search_opendir
26077 if test "$ac_res" != no; then :
26078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26084 $as_echo_n "checking for library containing opendir... " >&6; }
26085 if ${ac_cv_search_opendir+:} false; then :
26086 $as_echo_n "(cached) " >&6
26088 ac_func_search_save_LIBS=$LIBS
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h. */
26092 /* Override any GCC internal prototype to avoid an error.
26093 Use char because int might match the return type of a GCC
26094 builtin and then its argument prototype would still apply. */
26107 for ac_lib in '' x; do
26108 if test -z "$ac_lib"; then
26109 ac_res="none required"
26112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26114 if ac_fn_c_try_link "$LINENO"; then :
26115 ac_cv_search_opendir=$ac_res
26117 rm -f core conftest.err conftest.$ac_objext \
26119 if ${ac_cv_search_opendir+:} false; then :
26123 if ${ac_cv_search_opendir+:} false; then :
26126 ac_cv_search_opendir=no
26128 rm conftest.$ac_ext
26129 LIBS=$ac_func_search_save_LIBS
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26132 $as_echo "$ac_cv_search_opendir" >&6; }
26133 ac_res=$ac_cv_search_opendir
26134 if test "$ac_res" != no; then :
26135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26142 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26143 if ${ac_cv_header_stat_broken+:} false; then :
26144 $as_echo_n "(cached) " >&6
26146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26147 /* end confdefs.h. */
26148 #include <sys/types.h>
26149 #include <sys/stat.h>
26151 #if defined S_ISBLK && defined S_IFDIR
26152 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26155 #if defined S_ISBLK && defined S_IFCHR
26156 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26159 #if defined S_ISLNK && defined S_IFREG
26160 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26163 #if defined S_ISSOCK && defined S_IFREG
26164 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26168 if ac_fn_c_try_compile "$LINENO"; then :
26169 ac_cv_header_stat_broken=no
26171 ac_cv_header_stat_broken=yes
26173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26176 $as_echo "$ac_cv_header_stat_broken" >&6; }
26177 if test $ac_cv_header_stat_broken = yes; then
26179 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26184 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26185 if ${ac_cv_header_sys_wait_h+:} false; then :
26186 $as_echo_n "(cached) " >&6
26188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189 /* end confdefs.h. */
26190 #include <sys/types.h>
26191 #include <sys/wait.h>
26192 #ifndef WEXITSTATUS
26193 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26196 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26204 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26209 if ac_fn_c_try_compile "$LINENO"; then :
26210 ac_cv_header_sys_wait_h=yes
26212 ac_cv_header_sys_wait_h=no
26214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26217 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26218 if test $ac_cv_header_sys_wait_h = yes; then
26220 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26225 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26226 if ${ac_cv_header_time+:} false; then :
26227 $as_echo_n "(cached) " >&6
26229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26230 /* end confdefs.h. */
26231 #include <sys/types.h>
26232 #include <sys/time.h>
26238 if ((struct tm *) 0)
26244 if ac_fn_c_try_compile "$LINENO"; then :
26245 ac_cv_header_time=yes
26247 ac_cv_header_time=no
26249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26252 $as_echo "$ac_cv_header_time" >&6; }
26253 if test $ac_cv_header_time = yes; then
26255 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26259 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26260 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26262 cat >>confdefs.h <<_ACEOF
26263 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26267 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26272 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26273 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26275 cat >>confdefs.h <<_ACEOF
26276 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26280 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26283 case " $LIBOBJS " in
26284 *" fileblocks.$ac_objext "* ) ;;
26285 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26293 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26294 if ${ac_cv_struct_tm+:} false; then :
26295 $as_echo_n "(cached) " >&6
26297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26298 /* end confdefs.h. */
26299 #include <sys/types.h>
26306 int *p = &tm.tm_sec;
26312 if ac_fn_c_try_compile "$LINENO"; then :
26313 ac_cv_struct_tm=time.h
26315 ac_cv_struct_tm=sys/time.h
26317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26320 $as_echo "$ac_cv_struct_tm" >&6; }
26321 if test $ac_cv_struct_tm = sys/time.h; then
26323 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26327 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26328 #include <$ac_cv_struct_tm>
26331 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26333 cat >>confdefs.h <<_ACEOF
26334 #define HAVE_STRUCT_TM_TM_ZONE 1
26340 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26342 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26345 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26347 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26353 cat >>confdefs.h <<_ACEOF
26354 #define HAVE_DECL_TZNAME $ac_have_decl
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26358 $as_echo_n "checking for tzname... " >&6; }
26359 if ${ac_cv_var_tzname+:} false; then :
26360 $as_echo_n "(cached) " >&6
26362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363 /* end confdefs.h. */
26365 #if !HAVE_DECL_TZNAME
26366 extern char *tzname[];
26372 return tzname[0][0];
26377 if ac_fn_c_try_link "$LINENO"; then :
26378 ac_cv_var_tzname=yes
26380 ac_cv_var_tzname=no
26382 rm -f core conftest.err conftest.$ac_objext \
26383 conftest$ac_exeext conftest.$ac_ext
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26386 $as_echo "$ac_cv_var_tzname" >&6; }
26387 if test $ac_cv_var_tzname = yes; then
26389 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26396 $as_echo_n "checking for utime.h... " >&6; }
26397 if ${ba_cv_header_utime_h+:} false; then :
26398 $as_echo_n "(cached) " >&6
26401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26402 /* end confdefs.h. */
26404 #include <sys/types.h>
26417 if ac_fn_c_try_compile "$LINENO"; then :
26419 ba_cv_header_utime_h=yes
26423 ba_cv_header_utime_h=no
26427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26432 $as_echo "$ba_cv_header_utime_h" >&6; }
26433 test $ba_cv_header_utime_h = yes &&
26434 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26438 $as_echo_n "checking for socklen_t... " >&6; }
26439 if ${ba_cv_header_socklen_t+:} false; then :
26440 $as_echo_n "(cached) " >&6
26443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26444 /* end confdefs.h. */
26446 #include <sys/types.h>
26447 #include <sys/socket.h>
26459 if ac_fn_c_try_compile "$LINENO"; then :
26461 ba_cv_header_socklen_t=yes
26465 ba_cv_header_socklen_t=no
26469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26474 $as_echo "$ba_cv_header_socklen_t" >&6; }
26475 test $ba_cv_header_socklen_t = yes &&
26476 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26480 ac_cpp='$CXXCPP $CPPFLAGS'
26481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26486 $as_echo_n "checking for ioctl_req_t... " >&6; }
26487 if ${ba_cv_header_ioctl_req_t+:} false; then :
26488 $as_echo_n "(cached) " >&6
26491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492 /* end confdefs.h. */
26494 #include <unistd.h>
26495 #include <sys/types.h>
26496 #include <sys/ioctl.h>
26502 int (*d_ioctl)(int fd, unsigned long int request, ...);
26509 if ac_fn_cxx_try_compile "$LINENO"; then :
26511 ba_cv_header_ioctl_req_t=yes
26515 ba_cv_header_ioctl_req_t=no
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26524 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26525 test $ba_cv_header_ioctl_req_t = yes &&
26526 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26530 ac_cpp='$CPP $CPPFLAGS'
26531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26537 ac_cpp='$CXXCPP $CPPFLAGS'
26538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26543 $as_echo_n "checking for typeof... " >&6; }
26544 if ${ba_cv_have_typeof+:} false; then :
26545 $as_echo_n "(cached) " >&6
26548 if test "$cross_compiling" = yes; then :
26550 ba_cv_have_typeof=no
26554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26555 /* end confdefs.h. */
26557 main(){char *a = 0; a = (typeof a)a;}
26560 if ac_fn_cxx_try_run "$LINENO"; then :
26562 ba_cv_have_typeof=yes
26566 ba_cv_have_typeof=no
26569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26570 conftest.$ac_objext conftest.beam conftest.$ac_ext
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26577 $as_echo "$ba_cv_have_typeof" >&6; }
26578 test $ba_cv_have_typeof = yes &&
26579 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26582 ac_cpp='$CPP $CPPFLAGS'
26583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26589 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26590 if ${ac_cv_c_const+:} false; then :
26591 $as_echo_n "(cached) " >&6
26593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26594 /* end confdefs.h. */
26600 #ifndef __cplusplus
26601 /* Ultrix mips cc rejects this sort of thing. */
26602 typedef int charset[2];
26603 const charset cs = { 0, 0 };
26604 /* SunOS 4.1.1 cc rejects this. */
26605 char const *const *pcpcc;
26607 /* NEC SVR4.0.2 mips cc rejects this. */
26608 struct point {int x, y;};
26609 static struct point const zero = {0,0};
26610 /* AIX XL C 1.02.0.0 rejects this.
26611 It does not let you subtract one const X* pointer from another in
26612 an arm of an if-expression whose if-part is not a constant
26614 const char *g = "string";
26615 pcpcc = &g + (g ? g-g : 0);
26616 /* HPUX 7.0 cc rejects these. */
26618 ppc = (char**) pcpcc;
26619 pcpcc = (char const *const *) ppc;
26620 { /* SCO 3.2v4 cc rejects this sort of thing. */
26623 char const *s = 0 ? (char *) 0 : (char const *) 0;
26628 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26629 int x[] = {25, 17};
26630 const int *foo = &x[0];
26633 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26634 typedef const int *iptr;
26638 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26639 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26640 struct s { int j; const int *ap[3]; } bx;
26641 struct s *b = &bx; b->j = 5;
26643 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26644 const int foo = 10;
26645 if (!foo) return 0;
26647 return !cs[0] && !zero.x;
26654 if ac_fn_c_try_compile "$LINENO"; then :
26659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26662 $as_echo "$ac_cv_c_const" >&6; }
26663 if test $ac_cv_c_const = no; then
26665 $as_echo "#define const /**/" >>confdefs.h
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26671 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26672 if ${ac_cv_c_bigendian+:} false; then :
26673 $as_echo_n "(cached) " >&6
26675 ac_cv_c_bigendian=unknown
26676 # See if we're dealing with a universal compiler.
26677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26678 /* end confdefs.h. */
26679 #ifndef __APPLE_CC__
26680 not a universal capable compiler
26685 if ac_fn_c_try_compile "$LINENO"; then :
26687 # Check for potential -arch flags. It is not universal unless
26688 # there are at least two -arch flags with different values.
26691 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26692 if test -n "$ac_prev"; then
26694 i?86 | x86_64 | ppc | ppc64)
26695 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26698 ac_cv_c_bigendian=universal
26704 elif test "x$ac_word" = "x-arch"; then
26709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26710 if test $ac_cv_c_bigendian = unknown; then
26711 # See if sys/param.h defines the BYTE_ORDER macro.
26712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26713 /* end confdefs.h. */
26714 #include <sys/types.h>
26715 #include <sys/param.h>
26720 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26721 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26723 bogus endian macros
26730 if ac_fn_c_try_compile "$LINENO"; then :
26731 # It does; now see whether it defined to BIG_ENDIAN or not.
26732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26733 /* end confdefs.h. */
26734 #include <sys/types.h>
26735 #include <sys/param.h>
26740 #if BYTE_ORDER != BIG_ENDIAN
26748 if ac_fn_c_try_compile "$LINENO"; then :
26749 ac_cv_c_bigendian=yes
26751 ac_cv_c_bigendian=no
26753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26757 if test $ac_cv_c_bigendian = unknown; then
26758 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26760 /* end confdefs.h. */
26761 #include <limits.h>
26766 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26767 bogus endian macros
26774 if ac_fn_c_try_compile "$LINENO"; then :
26775 # It does; now see whether it defined to _BIG_ENDIAN or not.
26776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26777 /* end confdefs.h. */
26778 #include <limits.h>
26783 #ifndef _BIG_ENDIAN
26791 if ac_fn_c_try_compile "$LINENO"; then :
26792 ac_cv_c_bigendian=yes
26794 ac_cv_c_bigendian=no
26796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800 if test $ac_cv_c_bigendian = unknown; then
26801 # Compile a test program.
26802 if test "$cross_compiling" = yes; then :
26803 # Try to guess by grepping values from an object file.
26804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26805 /* end confdefs.h. */
26806 short int ascii_mm[] =
26807 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26808 short int ascii_ii[] =
26809 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26810 int use_ascii (int i) {
26811 return ascii_mm[i] + ascii_ii[i];
26813 short int ebcdic_ii[] =
26814 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26815 short int ebcdic_mm[] =
26816 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26817 int use_ebcdic (int i) {
26818 return ebcdic_mm[i] + ebcdic_ii[i];
26825 return use_ascii (foo) == use_ebcdic (foo);
26830 if ac_fn_c_try_compile "$LINENO"; then :
26831 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26832 ac_cv_c_bigendian=yes
26834 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26835 if test "$ac_cv_c_bigendian" = unknown; then
26836 ac_cv_c_bigendian=no
26838 # finding both strings is unlikely to happen, but who knows?
26839 ac_cv_c_bigendian=unknown
26843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26846 /* end confdefs.h. */
26847 $ac_includes_default
26852 /* Are we little or big endian? From Harbison&Steele. */
26856 char c[sizeof (long int)];
26859 return u.c[sizeof (long int) - 1] == 1;
26865 if ac_fn_c_try_run "$LINENO"; then :
26866 ac_cv_c_bigendian=no
26868 ac_cv_c_bigendian=yes
26870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26871 conftest.$ac_objext conftest.beam conftest.$ac_ext
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26877 $as_echo "$ac_cv_c_bigendian" >&6; }
26878 case $ac_cv_c_bigendian in #(
26881 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26885 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26889 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26893 as_fn_error $? "unknown endianness
26894 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26899 $as_echo_n "checking how to get filesystem type... " >&6; }
26901 # The order of these tests is important.
26902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26903 /* end confdefs.h. */
26905 #include <sys/statvfs.h>
26906 #include <sys/fstyp.h>
26909 if ac_fn_c_try_cpp "$LINENO"; then :
26910 $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26914 rm -f conftest.err conftest.i conftest.$ac_ext
26915 if test $fstype = no; then
26916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26917 /* end confdefs.h. */
26919 #include <sys/statfs.h>
26920 #include <sys/fstyp.h>
26923 if ac_fn_c_try_cpp "$LINENO"; then :
26924 $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26928 rm -f conftest.err conftest.i conftest.$ac_ext
26930 if test $fstype = no; then
26931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26932 /* end confdefs.h. */
26934 #include <sys/statfs.h>
26935 #include <sys/vmount.h>
26938 if ac_fn_c_try_cpp "$LINENO"; then :
26939 $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26943 rm -f conftest.err conftest.i conftest.$ac_ext
26945 if test $fstype = no; then
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26949 #include <mntent.h>
26952 if ac_fn_c_try_cpp "$LINENO"; then :
26953 $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26957 rm -f conftest.err conftest.i conftest.$ac_ext
26959 if test $fstype = no; then
26960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26961 /* end confdefs.h. */
26962 #include <sys/mount.h>
26965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26966 $EGREP "f_type;" >/dev/null 2>&1; then :
26967 $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26973 if test $fstype = no; then
26974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h. */
26977 #include <sys/mount.h>
26978 #include <sys/fs_types.h>
26981 if ac_fn_c_try_cpp "$LINENO"; then :
26982 $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26986 rm -f conftest.err conftest.i conftest.$ac_ext
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26989 $as_echo "$fstype" >&6; }
26991 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26992 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26994 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27000 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
27001 #ifdef HAVE_FCNTL_H
27002 # include <fcntl.h>
27006 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
27012 cat >>confdefs.h <<_ACEOF
27013 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
27015 if test $ac_have_decl = 1; then :
27019 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
27024 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
27025 #ifdef HAVE_FCNTL_H
27026 # include <fcntl.h>
27030 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
27036 cat >>confdefs.h <<_ACEOF
27037 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
27039 if test $ac_have_decl = 1; then :
27043 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
27048 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
27049 #ifdef HAVE_SYS_SOCKET_H
27050 # include <sys/socket.h>
27054 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
27060 cat >>confdefs.h <<_ACEOF
27061 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
27063 if test $ac_have_decl = 1; then :
27067 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
27073 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
27074 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
27075 $as_echo_n "(cached) " >&6
27077 if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
27078 if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
27079 ac_cv_feature_stream_cloexec_flag="e"
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
27084 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
27086 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
27088 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
27093 cat >>confdefs.h <<_ACEOF
27094 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
27098 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
27099 if test "x$ac_cv_func_accept4" = xyes; then :
27101 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27111 if test x$support_s3 = xyes; then
27113 # Check whether --with-s3 was given.
27114 if test "${with_s3+set}" = set; then :
27121 if test -f ${with_s3}/include/libs3.h; then
27122 S3_INC="-I${with_s3}/include"
27123 S3_LDFLAGS="-L${with_s3}/lib"
27124 with_s3="${with_s3}/include"
27126 with_s3="/usr/include"
27129 as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
27130 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
27131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27134 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27136 S3_LIBS="${S3_LDFLAGS} -ls3"
27142 echo "libs3.h not found. s3 turned off ..."
27154 ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27155 if test "x$ac_cv_header_libs3_h" = xyes; then :
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27158 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27159 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27160 $as_echo_n "(cached) " >&6
27162 ac_check_lib_save_LIBS=$LIBS
27164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27165 /* end confdefs.h. */
27167 /* Override any GCC internal prototype to avoid an error.
27168 Use char because int might match the return type of a GCC
27169 builtin and then its argument prototype would still apply. */
27173 char S3_initialize ();
27177 return S3_initialize ();
27182 if ac_fn_c_try_link "$LINENO"; then :
27183 ac_cv_lib_s3_S3_initialize=yes
27185 ac_cv_lib_s3_S3_initialize=no
27187 rm -f core conftest.err conftest.$ac_objext \
27188 conftest$ac_exeext conftest.$ac_ext
27189 LIBS=$ac_check_lib_save_LIBS
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27192 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27193 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27197 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27216 ac_cpp='$CXXCPP $CPPFLAGS'
27217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27221 for ac_func in backtrace
27223 ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27224 if test "x$ac_cv_func_backtrace" = xyes; then :
27225 cat >>confdefs.h <<_ACEOF
27226 #define HAVE_BACKTRACE 1
27233 ac_cpp='$CPP $CPPFLAGS'
27234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27240 $as_echo_n "checking return type of signal handlers... " >&6; }
27241 if ${ac_cv_type_signal+:} false; then :
27242 $as_echo_n "(cached) " >&6
27244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27245 /* end confdefs.h. */
27246 #include <sys/types.h>
27247 #include <signal.h>
27252 return *(signal (0, 0)) (0) == 1;
27257 if ac_fn_c_try_compile "$LINENO"; then :
27258 ac_cv_type_signal=int
27260 ac_cv_type_signal=void
27262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27265 $as_echo "$ac_cv_type_signal" >&6; }
27267 cat >>confdefs.h <<_ACEOF
27268 #define RETSIGTYPE $ac_cv_type_signal
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27274 $as_echo_n "checking for type of signal functions... " >&6; }
27275 if ${bash_cv_signal_vintage+:} false; then :
27276 $as_echo_n "(cached) " >&6
27279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27280 /* end confdefs.h. */
27281 #include <signal.h>
27287 struct sigaction sa;
27288 sigemptyset(&ss); sigsuspend(&ss);
27289 sigaction(SIGINT, &sa, (struct sigaction *) 0);
27290 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27296 if ac_fn_c_try_link "$LINENO"; then :
27297 bash_cv_signal_vintage="posix"
27300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27301 /* end confdefs.h. */
27302 #include <signal.h>
27307 int mask = sigmask(SIGINT);
27308 sigsetmask(mask); sigblock(mask); sigpause(mask);
27314 if ac_fn_c_try_link "$LINENO"; then :
27315 bash_cv_signal_vintage="4.2bsd"
27318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27319 /* end confdefs.h. */
27321 #include <signal.h>
27322 RETSIGTYPE foo() { }
27327 int mask = sigmask(SIGINT);
27328 sigset(SIGINT, foo); sigrelse(SIGINT);
27329 sighold(SIGINT); sigpause(SIGINT);
27335 if ac_fn_c_try_link "$LINENO"; then :
27336 bash_cv_signal_vintage="svr3"
27338 bash_cv_signal_vintage="v7"
27341 rm -f core conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
27345 rm -f core conftest.err conftest.$ac_objext \
27346 conftest$ac_exeext conftest.$ac_ext
27349 rm -f core conftest.err conftest.$ac_objext \
27350 conftest$ac_exeext conftest.$ac_ext
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27355 $as_echo "$bash_cv_signal_vintage" >&6; }
27356 if test "$bash_cv_signal_vintage" = "posix"; then
27357 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27359 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27360 $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27362 elif test "$bash_cv_signal_vintage" = "svr3"; then
27363 $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27367 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27368 if test "x$ac_cv_type_mode_t" = xyes; then :
27372 cat >>confdefs.h <<_ACEOF
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27379 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27380 if ${ac_cv_type_uid_t+:} false; then :
27381 $as_echo_n "(cached) " >&6
27383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27384 /* end confdefs.h. */
27385 #include <sys/types.h>
27388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27389 $EGREP "uid_t" >/dev/null 2>&1; then :
27390 ac_cv_type_uid_t=yes
27392 ac_cv_type_uid_t=no
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27398 $as_echo "$ac_cv_type_uid_t" >&6; }
27399 if test $ac_cv_type_uid_t = no; then
27401 $as_echo "#define uid_t int" >>confdefs.h
27404 $as_echo "#define gid_t int" >>confdefs.h
27408 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27409 if test "x$ac_cv_type_size_t" = xyes; then :
27413 cat >>confdefs.h <<_ACEOF
27414 #define size_t unsigned int
27419 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27420 if test "x$ac_cv_type_pid_t" = xyes; then :
27424 cat >>confdefs.h <<_ACEOF
27430 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27431 if test "x$ac_cv_type_off_t" = xyes; then :
27435 cat >>confdefs.h <<_ACEOF
27436 #define off_t long int
27442 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27443 if test "x$ac_cv_type_intptr_t" = xyes; then :
27445 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27448 for ac_type in 'int' 'long int' 'long long int'; do
27449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450 /* end confdefs.h. */
27451 $ac_includes_default
27455 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27456 test_array [0] = 0;
27457 return test_array [0];
27463 if ac_fn_c_try_compile "$LINENO"; then :
27465 cat >>confdefs.h <<_ACEOF
27466 #define intptr_t $ac_type
27471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27472 test -z "$ac_type" && break
27478 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27479 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27481 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27484 for ac_type in 'unsigned int' 'unsigned long int' \
27485 'unsigned long long int'; do
27486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27487 /* end confdefs.h. */
27488 $ac_includes_default
27492 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27493 test_array [0] = 0;
27494 return test_array [0];
27500 if ac_fn_c_try_compile "$LINENO"; then :
27502 cat >>confdefs.h <<_ACEOF
27503 #define uintptr_t $ac_type
27508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27509 test -z "$ac_type" && break
27514 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27515 if test "x$ac_cv_type_ino_t" = xyes; then :
27519 cat >>confdefs.h <<_ACEOF
27520 #define ino_t unsigned long
27525 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27526 if test "x$ac_cv_type_dev_t" = xyes; then :
27530 cat >>confdefs.h <<_ACEOF
27531 #define dev_t unsigned long
27536 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27537 if test "x$ac_cv_type_daddr_t" = xyes; then :
27541 cat >>confdefs.h <<_ACEOF
27542 #define daddr_t long
27547 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27548 if test "x$ac_cv_type_major_t" = xyes; then :
27552 cat >>confdefs.h <<_ACEOF
27553 #define major_t int
27558 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27559 if test "x$ac_cv_type_minor_t" = xyes; then :
27563 cat >>confdefs.h <<_ACEOF
27564 #define minor_t int
27569 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27570 if test "x$ac_cv_type_ssize_t" = xyes; then :
27574 cat >>confdefs.h <<_ACEOF
27575 #define ssize_t int
27580 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27581 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27583 cat >>confdefs.h <<_ACEOF
27584 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27588 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27591 case " $LIBOBJS " in
27592 *" fileblocks.$ac_objext "* ) ;;
27593 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27600 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27601 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27603 cat >>confdefs.h <<_ACEOF
27604 #define HAVE_STRUCT_STAT_ST_RDEV 1
27608 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27614 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27615 if ${ac_cv_struct_tm+:} false; then :
27616 $as_echo_n "(cached) " >&6
27618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h. */
27620 #include <sys/types.h>
27627 int *p = &tm.tm_sec;
27633 if ac_fn_c_try_compile "$LINENO"; then :
27634 ac_cv_struct_tm=time.h
27636 ac_cv_struct_tm=sys/time.h
27638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27641 $as_echo "$ac_cv_struct_tm" >&6; }
27642 if test $ac_cv_struct_tm = sys/time.h; then
27644 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27649 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27650 if ${ac_cv_c_const+:} false; then :
27651 $as_echo_n "(cached) " >&6
27653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27654 /* end confdefs.h. */
27660 #ifndef __cplusplus
27661 /* Ultrix mips cc rejects this sort of thing. */
27662 typedef int charset[2];
27663 const charset cs = { 0, 0 };
27664 /* SunOS 4.1.1 cc rejects this. */
27665 char const *const *pcpcc;
27667 /* NEC SVR4.0.2 mips cc rejects this. */
27668 struct point {int x, y;};
27669 static struct point const zero = {0,0};
27670 /* AIX XL C 1.02.0.0 rejects this.
27671 It does not let you subtract one const X* pointer from another in
27672 an arm of an if-expression whose if-part is not a constant
27674 const char *g = "string";
27675 pcpcc = &g + (g ? g-g : 0);
27676 /* HPUX 7.0 cc rejects these. */
27678 ppc = (char**) pcpcc;
27679 pcpcc = (char const *const *) ppc;
27680 { /* SCO 3.2v4 cc rejects this sort of thing. */
27683 char const *s = 0 ? (char *) 0 : (char const *) 0;
27688 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27689 int x[] = {25, 17};
27690 const int *foo = &x[0];
27693 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27694 typedef const int *iptr;
27698 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27699 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27700 struct s { int j; const int *ap[3]; } bx;
27701 struct s *b = &bx; b->j = 5;
27703 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27704 const int foo = 10;
27705 if (!foo) return 0;
27707 return !cs[0] && !zero.x;
27714 if ac_fn_c_try_compile "$LINENO"; then :
27719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27722 $as_echo "$ac_cv_c_const" >&6; }
27723 if test $ac_cv_c_const = no; then
27725 $as_echo "#define const /**/" >>confdefs.h
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27730 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27731 if ${ac_cv_c_restrict+:} false; then :
27732 $as_echo_n "(cached) " >&6
27734 ac_cv_c_restrict=no
27735 # The order here caters to the fact that C++ does not require restrict.
27736 for ac_kw in __restrict __restrict__ _Restrict restrict; do
27737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27738 /* end confdefs.h. */
27739 typedef int * int_ptr;
27740 int foo (int_ptr $ac_kw ip) {
27747 int * $ac_kw t = s;
27754 if ac_fn_c_try_compile "$LINENO"; then :
27755 ac_cv_c_restrict=$ac_kw
27757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758 test "$ac_cv_c_restrict" != no && break
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27763 $as_echo "$ac_cv_c_restrict" >&6; }
27765 case $ac_cv_c_restrict in
27767 no) $as_echo "#define restrict /**/" >>confdefs.h
27769 *) cat >>confdefs.h <<_ACEOF
27770 #define restrict $ac_cv_c_restrict
27776 # The cast to long int works around a bug in the HP C Compiler
27777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27779 # This bug is HP SR number 8606223364.
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27781 $as_echo_n "checking size of char... " >&6; }
27782 if ${ac_cv_sizeof_char+:} false; then :
27783 $as_echo_n "(cached) " >&6
27785 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
27788 if test "$ac_cv_type_char" = yes; then
27789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27791 as_fn_error 77 "cannot compute sizeof (char)
27792 See \`config.log' for more details" "$LINENO" 5; }
27794 ac_cv_sizeof_char=0
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27800 $as_echo "$ac_cv_sizeof_char" >&6; }
27804 cat >>confdefs.h <<_ACEOF
27805 #define SIZEOF_CHAR $ac_cv_sizeof_char
27809 # The cast to long int works around a bug in the HP C Compiler
27810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27812 # This bug is HP SR number 8606223364.
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27814 $as_echo_n "checking size of short int... " >&6; }
27815 if ${ac_cv_sizeof_short_int+:} false; then :
27816 $as_echo_n "(cached) " >&6
27818 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
27821 if test "$ac_cv_type_short_int" = yes; then
27822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27824 as_fn_error 77 "cannot compute sizeof (short int)
27825 See \`config.log' for more details" "$LINENO" 5; }
27827 ac_cv_sizeof_short_int=0
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27833 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27837 cat >>confdefs.h <<_ACEOF
27838 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27842 # The cast to long int works around a bug in the HP C Compiler
27843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27845 # This bug is HP SR number 8606223364.
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27847 $as_echo_n "checking size of int... " >&6; }
27848 if ${ac_cv_sizeof_int+:} false; then :
27849 $as_echo_n "(cached) " >&6
27851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
27854 if test "$ac_cv_type_int" = yes; then
27855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27857 as_fn_error 77 "cannot compute sizeof (int)
27858 See \`config.log' for more details" "$LINENO" 5; }
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27866 $as_echo "$ac_cv_sizeof_int" >&6; }
27870 cat >>confdefs.h <<_ACEOF
27871 #define SIZEOF_INT $ac_cv_sizeof_int
27875 # The cast to long int works around a bug in the HP C Compiler
27876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27878 # This bug is HP SR number 8606223364.
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27880 $as_echo_n "checking size of long int... " >&6; }
27881 if ${ac_cv_sizeof_long_int+:} false; then :
27882 $as_echo_n "(cached) " >&6
27884 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
27887 if test "$ac_cv_type_long_int" = yes; then
27888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27890 as_fn_error 77 "cannot compute sizeof (long int)
27891 See \`config.log' for more details" "$LINENO" 5; }
27893 ac_cv_sizeof_long_int=0
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27899 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27903 cat >>confdefs.h <<_ACEOF
27904 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27908 # The cast to long int works around a bug in the HP C Compiler
27909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27911 # This bug is HP SR number 8606223364.
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27913 $as_echo_n "checking size of long long int... " >&6; }
27914 if ${ac_cv_sizeof_long_long_int+:} false; then :
27915 $as_echo_n "(cached) " >&6
27917 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
27920 if test "$ac_cv_type_long_long_int" = yes; then
27921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27923 as_fn_error 77 "cannot compute sizeof (long long int)
27924 See \`config.log' for more details" "$LINENO" 5; }
27926 ac_cv_sizeof_long_long_int=0
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27932 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27936 cat >>confdefs.h <<_ACEOF
27937 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27941 # The cast to long int works around a bug in the HP C Compiler
27942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27944 # This bug is HP SR number 8606223364.
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27946 $as_echo_n "checking size of int *... " >&6; }
27947 if ${ac_cv_sizeof_int_p+:} false; then :
27948 $as_echo_n "(cached) " >&6
27950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27953 if test "$ac_cv_type_int_p" = yes; then
27954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27956 as_fn_error 77 "cannot compute sizeof (int *)
27957 See \`config.log' for more details" "$LINENO" 5; }
27959 ac_cv_sizeof_int_p=0
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27965 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27969 cat >>confdefs.h <<_ACEOF
27970 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27976 $as_echo_n "checking for u_int type... " >&6; }
27977 if ${ac_cv_have_u_int+:} false; then :
27978 $as_echo_n "(cached) " >&6
27981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27982 /* end confdefs.h. */
27984 #include <sys/types.h>
27996 if ac_fn_c_try_compile "$LINENO"; then :
27998 ac_cv_have_u_int="yes"
28002 ac_cv_have_u_int="no"
28006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
28011 $as_echo "$ac_cv_have_u_int" >&6; }
28012 if test "x$ac_cv_have_u_int" = "xyes" ; then
28013 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
28019 $as_echo_n "checking for intmax_t type... " >&6; }
28020 if ${ac_cv_have_intmax_t+:} false; then :
28021 $as_echo_n "(cached) " >&6
28024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28025 /* end confdefs.h. */
28027 #include <sys/types.h>
28039 if ac_fn_c_try_compile "$LINENO"; then :
28041 ac_cv_have_intmax_t="yes"
28045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28046 /* end confdefs.h. */
28048 #include <stdint.h>
28060 if ac_fn_c_try_compile "$LINENO"; then :
28062 ac_cv_have_intmax_t="yes"
28066 ac_cv_have_intmax_t="no"
28070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
28079 $as_echo "$ac_cv_have_intmax_t" >&6; }
28080 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28081 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
28087 $as_echo_n "checking for u_intmax_t type... " >&6; }
28088 if ${ac_cv_have_u_intmax_t+:} false; then :
28089 $as_echo_n "(cached) " >&6
28092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28093 /* end confdefs.h. */
28095 #include <sys/types.h>
28101 u_intmax_t a; a = 1;
28107 if ac_fn_c_try_compile "$LINENO"; then :
28109 ac_cv_have_u_intmax_t="yes"
28113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28114 /* end confdefs.h. */
28116 #include <stdint.h>
28122 u_intmax_t a; a = 1;
28128 if ac_fn_c_try_compile "$LINENO"; then :
28130 ac_cv_have_u_intmax_t="yes"
28134 ac_cv_have_u_intmax_t="no"
28138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28147 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28148 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28149 $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28155 $as_echo_n "checking for intXX_t types... " >&6; }
28156 if ${ac_cv_have_intxx_t+:} false; then :
28157 $as_echo_n "(cached) " >&6
28160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28161 /* end confdefs.h. */
28163 #include <sys/types.h>
28169 int8_t a; int16_t b; int32_t c; a = b = c = 1;
28175 if ac_fn_c_try_compile "$LINENO"; then :
28177 ac_cv_have_intxx_t="yes"
28181 ac_cv_have_intxx_t="no"
28185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28190 $as_echo "$ac_cv_have_intxx_t" >&6; }
28191 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28192 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28198 $as_echo_n "checking for int64_t type... " >&6; }
28199 if ${ac_cv_have_int64_t+:} false; then :
28200 $as_echo_n "(cached) " >&6
28203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28204 /* end confdefs.h. */
28206 #include <sys/types.h>
28218 if ac_fn_c_try_compile "$LINENO"; then :
28220 ac_cv_have_int64_t="yes"
28224 ac_cv_have_int64_t="no"
28228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28233 $as_echo "$ac_cv_have_int64_t" >&6; }
28234 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28235 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28241 $as_echo_n "checking for u_intXX_t types... " >&6; }
28242 if ${ac_cv_have_u_intxx_t+:} false; then :
28243 $as_echo_n "(cached) " >&6
28246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28247 /* end confdefs.h. */
28249 #include <sys/types.h>
28255 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28261 if ac_fn_c_try_compile "$LINENO"; then :
28263 ac_cv_have_u_intxx_t="yes"
28267 ac_cv_have_u_intxx_t="no"
28271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28276 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28277 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28278 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28284 $as_echo_n "checking for u_int64_t types... " >&6; }
28285 if ${ac_cv_have_u_int64_t+:} false; then :
28286 $as_echo_n "(cached) " >&6
28289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28290 /* end confdefs.h. */
28292 #include <sys/types.h>
28298 u_int64_t a; a = 1;
28304 if ac_fn_c_try_compile "$LINENO"; then :
28306 ac_cv_have_u_int64_t="yes"
28310 ac_cv_have_u_int64_t="no"
28314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28319 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28320 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28321 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28326 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28327 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28330 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28332 /* end confdefs.h. */
28334 #include <sys/bitypes.h>
28340 int8_t a; int16_t b; int32_t c;
28341 u_int8_t e; u_int16_t f; u_int32_t g;
28342 a = b = c = e = f = g = 1;
28348 if ac_fn_c_try_compile "$LINENO"; then :
28350 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28352 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28354 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28357 $as_echo "yes" >&6; }
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28362 $as_echo "no" >&6; }
28366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28369 if test -z "$have_u_intxx_t" ; then
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28371 $as_echo_n "checking for uintXX_t types... " >&6; }
28372 if ${ac_cv_have_uintxx_t+:} false; then :
28373 $as_echo_n "(cached) " >&6
28376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28377 /* end confdefs.h. */
28379 #include <sys/types.h>
28385 uint8_t a; uint16_t b;
28386 uint32_t c; a = b = c = 1;
28392 if ac_fn_c_try_compile "$LINENO"; then :
28394 ac_cv_have_uintxx_t="yes"
28398 ac_cv_have_uintxx_t="no"
28402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28407 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28408 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28409 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28414 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28415 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28418 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28420 /* end confdefs.h. */
28422 #include <sys/bitypes.h>
28428 int64_t a; u_int64_t b;
28435 if ac_fn_c_try_compile "$LINENO"; then :
28437 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28439 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28442 $as_echo "yes" >&6; }
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28447 $as_echo "no" >&6; }
28451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28454 if (test -z "$have_uintxx_t" && \
28455 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28458 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28460 /* end confdefs.h. */
28462 #include <sys/bitypes.h>
28468 uint8_t a; uint16_t b;
28469 uint32_t c; a = b = c = 1;
28475 if ac_fn_c_try_compile "$LINENO"; then :
28477 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28480 $as_echo "yes" >&6; }
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28485 $as_echo "no" >&6; }
28489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28510 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28511 cat >>confdefs.h <<_ACEOF
28512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28516 echo 'configure: cannot find needed function.'; exit 1
28522 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28525 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28527 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28532 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28535 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28537 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28542 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28543 if test "x$ac_cv_func_closefrom" = xyes; then :
28545 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28549 for ac_func in getpagesize
28551 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28552 if test "x$ac_cv_func_getpagesize" = xyes; then :
28553 cat >>confdefs.h <<_ACEOF
28554 #define HAVE_GETPAGESIZE 1
28557 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28562 for ac_func in malloc_trim
28564 ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28565 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28566 cat >>confdefs.h <<_ACEOF
28567 #define HAVE_MALLOC_TRIM 1
28570 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28576 for ac_func in fchdir
28578 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28579 if test "x$ac_cv_func_fchdir" = xyes; then :
28580 cat >>confdefs.h <<_ACEOF
28581 #define HAVE_FCHDIR 1
28583 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28588 for ac_func in strtoll
28590 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28591 if test "x$ac_cv_func_strtoll" = xyes; then :
28592 cat >>confdefs.h <<_ACEOF
28593 #define HAVE_STRTOLL 1
28595 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28600 for ac_func in posix_fadvise
28602 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28603 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28604 cat >>confdefs.h <<_ACEOF
28605 #define HAVE_POSIX_FADVISE 1
28611 for ac_func in posix_fallocate
28613 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28614 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28615 cat >>confdefs.h <<_ACEOF
28616 #define HAVE_POSIX_FALLOCATE 1
28622 for ac_func in fdatasync
28624 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28625 if test "x$ac_cv_func_fdatasync" = xyes; then :
28626 cat >>confdefs.h <<_ACEOF
28627 #define HAVE_FDATASYNC 1
28634 for ac_func in chflags
28636 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28637 if test "x$ac_cv_func_chflags" = xyes; then :
28638 cat >>confdefs.h <<_ACEOF
28639 #define HAVE_CHFLAGS 1
28646 for ac_func in snprintf vsnprintf gethostid fseeko
28648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28650 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28651 cat >>confdefs.h <<_ACEOF
28652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28660 $as_echo_n "checking for va_copy... " >&6; }
28661 if ${ba_cv_va_copy+:} false; then :
28662 $as_echo_n "(cached) " >&6
28665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28666 /* end confdefs.h. */
28668 #include <stdarg.h>
28669 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28670 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28676 call_use_va_copy(1,2,3)
28682 if ac_fn_c_try_link "$LINENO"; then :
28692 rm -f core conftest.err conftest.$ac_objext \
28693 conftest$ac_exeext conftest.$ac_ext
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28698 $as_echo "$ba_cv_va_copy" >&6; }
28699 test $ba_cv_va_copy = yes &&
28700 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28703 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28706 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28707 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28708 cat >>confdefs.h <<_ACEOF
28709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28716 # If resolver functions are not in libc check for -lnsl or -lresolv.
28717 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28718 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28720 $as_echo "using libc's resolver" >&6; }
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28723 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28724 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28725 $as_echo_n "(cached) " >&6
28727 ac_check_lib_save_LIBS=$LIBS
28729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28730 /* end confdefs.h. */
28732 /* Override any GCC internal prototype to avoid an error.
28733 Use char because int might match the return type of a GCC
28734 builtin and then its argument prototype would still apply. */
28738 char gethostbyname_r ();
28742 return gethostbyname_r ();
28747 if ac_fn_c_try_link "$LINENO"; then :
28748 ac_cv_lib_nsl_gethostbyname_r=yes
28750 ac_cv_lib_nsl_gethostbyname_r=no
28752 rm -f core conftest.err conftest.$ac_objext \
28753 conftest$ac_exeext conftest.$ac_ext
28754 LIBS=$ac_check_lib_save_LIBS
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28757 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28758 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28759 cat >>confdefs.h <<_ACEOF
28760 #define HAVE_LIBNSL 1
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28768 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28769 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28770 $as_echo_n "(cached) " >&6
28772 ac_check_lib_save_LIBS=$LIBS
28773 LIBS="-lresolv $LIBS"
28774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28775 /* end confdefs.h. */
28777 /* Override any GCC internal prototype to avoid an error.
28778 Use char because int might match the return type of a GCC
28779 builtin and then its argument prototype would still apply. */
28783 char gethostbyname_r ();
28787 return gethostbyname_r ();
28792 if ac_fn_c_try_link "$LINENO"; then :
28793 ac_cv_lib_resolv_gethostbyname_r=yes
28795 ac_cv_lib_resolv_gethostbyname_r=no
28797 rm -f core conftest.err conftest.$ac_objext \
28798 conftest$ac_exeext conftest.$ac_ext
28799 LIBS=$ac_check_lib_save_LIBS
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28802 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28803 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28804 cat >>confdefs.h <<_ACEOF
28805 #define HAVE_LIBRESOLV 1
28808 LIBS="-lresolv $LIBS"
28815 for ac_func in inet_pton
28817 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28818 if test "x$ac_cv_func_inet_pton" = xyes; then :
28819 cat >>confdefs.h <<_ACEOF
28820 #define HAVE_INET_PTON 1
28822 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28827 for ac_func in inet_ntop
28829 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28830 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28831 cat >>confdefs.h <<_ACEOF
28832 #define HAVE_INET_NTOP 1
28834 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28839 for ac_func in gethostbyname2
28841 ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28842 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28843 cat >>confdefs.h <<_ACEOF
28844 #define HAVE_GETHOSTBYNAME2 1
28846 $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28851 for ac_func in getnameinfo
28853 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28854 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28855 cat >>confdefs.h <<_ACEOF
28856 #define HAVE_GETNAMEINFO 1
28858 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28866 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28867 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28868 $as_echo_n "(cached) " >&6
28871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28872 /* end confdefs.h. */
28874 #include <sys/socket.h>
28880 struct sockaddr s; s.sa_len;
28886 if ac_fn_c_try_compile "$LINENO"; then :
28888 ac_cv_struct_sockaddr_sa_len=yes
28891 ac_cv_struct_sockaddr_sa_len=no
28895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28900 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28902 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28904 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28909 $as_echo_n "checking for working getaddrinfo... " >&6; }
28910 if ${ac_cv_working_getaddrinfo+:} false; then :
28911 $as_echo_n "(cached) " >&6
28914 if test "$cross_compiling" = yes; then :
28916 ac_cv_working_getaddrinfo="yes"
28920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h. */
28924 #include <string.h>
28925 #include <sys/types.h>
28926 #include <sys/socket.h>
28929 struct addrinfo hints, *ai;
28932 memset(&hints, 0, sizeof(hints));
28933 hints.ai_family = AF_UNSPEC;
28934 hints.ai_socktype = SOCK_STREAM;
28935 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28939 if (ai->ai_addr->sa_family != AF_INET) {
28946 if ac_fn_c_try_run "$LINENO"; then :
28948 ac_cv_working_getaddrinfo="yes"
28952 ac_cv_working_getaddrinfo="no"
28955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28956 conftest.$ac_objext conftest.beam conftest.$ac_ext
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28963 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28964 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28965 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28967 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28972 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28973 if test "$ac_cv_func_gai_strerror" != "yes"; then
28974 ac_cv_working_getaddrinfo="no"
28977 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28982 for ac_func in strftime
28984 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28985 if test "x$ac_cv_func_strftime" = xyes; then :
28986 cat >>confdefs.h <<_ACEOF
28987 #define HAVE_STRFTIME 1
28991 # strftime is in -lintl on SCO UNIX.
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28993 $as_echo_n "checking for strftime in -lintl... " >&6; }
28994 if ${ac_cv_lib_intl_strftime+:} false; then :
28995 $as_echo_n "(cached) " >&6
28997 ac_check_lib_save_LIBS=$LIBS
28998 LIBS="-lintl $LIBS"
28999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29000 /* end confdefs.h. */
29002 /* Override any GCC internal prototype to avoid an error.
29003 Use char because int might match the return type of a GCC
29004 builtin and then its argument prototype would still apply. */
29012 return strftime ();
29017 if ac_fn_c_try_link "$LINENO"; then :
29018 ac_cv_lib_intl_strftime=yes
29020 ac_cv_lib_intl_strftime=no
29022 rm -f core conftest.err conftest.$ac_objext \
29023 conftest$ac_exeext conftest.$ac_ext
29024 LIBS=$ac_check_lib_save_LIBS
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
29027 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
29028 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
29029 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
29031 LIBS="-lintl $LIBS"
29037 for ac_func in vprintf
29039 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
29040 if test "x$ac_cv_func_vprintf" = xyes; then :
29041 cat >>confdefs.h <<_ACEOF
29042 #define HAVE_VPRINTF 1
29045 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
29046 if test "x$ac_cv_func__doprnt" = xyes; then :
29048 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
29056 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29057 # for constant arguments. Useless!
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
29059 $as_echo_n "checking for working alloca.h... " >&6; }
29060 if ${ac_cv_working_alloca_h+:} false; then :
29061 $as_echo_n "(cached) " >&6
29063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29064 /* end confdefs.h. */
29065 #include <alloca.h>
29069 char *p = (char *) alloca (2 * sizeof (int));
29075 if ac_fn_c_try_link "$LINENO"; then :
29076 ac_cv_working_alloca_h=yes
29078 ac_cv_working_alloca_h=no
29080 rm -f core conftest.err conftest.$ac_objext \
29081 conftest$ac_exeext conftest.$ac_ext
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
29084 $as_echo "$ac_cv_working_alloca_h" >&6; }
29085 if test $ac_cv_working_alloca_h = yes; then
29087 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
29092 $as_echo_n "checking for alloca... " >&6; }
29093 if ${ac_cv_func_alloca_works+:} false; then :
29094 $as_echo_n "(cached) " >&6
29096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29097 /* end confdefs.h. */
29099 # define alloca __builtin_alloca
29102 # include <malloc.h>
29103 # define alloca _alloca
29105 # ifdef HAVE_ALLOCA_H
29106 # include <alloca.h>
29111 # ifndef alloca /* predefined by HP cc +Olibcalls */
29112 void *alloca (size_t);
29122 char *p = (char *) alloca (1);
29128 if ac_fn_c_try_link "$LINENO"; then :
29129 ac_cv_func_alloca_works=yes
29131 ac_cv_func_alloca_works=no
29133 rm -f core conftest.err conftest.$ac_objext \
29134 conftest$ac_exeext conftest.$ac_ext
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
29137 $as_echo "$ac_cv_func_alloca_works" >&6; }
29139 if test $ac_cv_func_alloca_works = yes; then
29141 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29144 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29145 # that cause trouble. Some versions do not even contain alloca or
29146 # contain a buggy version. If you still want to use their alloca,
29147 # use ar to extract alloca.o from them instead of compiling alloca.c.
29149 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29151 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29155 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29156 if ${ac_cv_os_cray+:} false; then :
29157 $as_echo_n "(cached) " >&6
29159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29160 /* end confdefs.h. */
29161 #if defined CRAY && ! defined CRAY2
29168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29169 $EGREP "webecray" >/dev/null 2>&1; then :
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29178 $as_echo "$ac_cv_os_cray" >&6; }
29179 if test $ac_cv_os_cray = yes; then
29180 for ac_func in _getb67 GETB67 getb67; do
29181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29185 cat >>confdefs.h <<_ACEOF
29186 #define CRAY_STACKSEG_END $ac_func
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29196 $as_echo_n "checking stack direction for C alloca... " >&6; }
29197 if ${ac_cv_c_stack_direction+:} false; then :
29198 $as_echo_n "(cached) " >&6
29200 if test "$cross_compiling" = yes; then :
29201 ac_cv_c_stack_direction=0
29203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29204 /* end confdefs.h. */
29205 $ac_includes_default
29207 find_stack_direction (int *addr, int depth)
29209 int dir, dummy = 0;
29212 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29213 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29214 return dir + dummy;
29218 main (int argc, char **argv)
29220 return find_stack_direction (0, argc + !argv + 20) < 0;
29223 if ac_fn_c_try_run "$LINENO"; then :
29224 ac_cv_c_stack_direction=1
29226 ac_cv_c_stack_direction=-1
29228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29229 conftest.$ac_objext conftest.beam conftest.$ac_ext
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29234 $as_echo "$ac_cv_c_stack_direction" >&6; }
29235 cat >>confdefs.h <<_ACEOF
29236 #define STACK_DIRECTION $ac_cv_c_stack_direction
29242 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29243 # -lseq on Dynix/PTX, -lgen on Unixware.
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29245 $as_echo_n "checking for library containing getmntent... " >&6; }
29246 if ${ac_cv_search_getmntent+:} false; then :
29247 $as_echo_n "(cached) " >&6
29249 ac_func_search_save_LIBS=$LIBS
29250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29251 /* end confdefs.h. */
29253 /* Override any GCC internal prototype to avoid an error.
29254 Use char because int might match the return type of a GCC
29255 builtin and then its argument prototype would still apply. */
29263 return getmntent ();
29268 for ac_lib in '' sun seq gen; do
29269 if test -z "$ac_lib"; then
29270 ac_res="none required"
29273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29275 if ac_fn_c_try_link "$LINENO"; then :
29276 ac_cv_search_getmntent=$ac_res
29278 rm -f core conftest.err conftest.$ac_objext \
29280 if ${ac_cv_search_getmntent+:} false; then :
29284 if ${ac_cv_search_getmntent+:} false; then :
29287 ac_cv_search_getmntent=no
29289 rm conftest.$ac_ext
29290 LIBS=$ac_func_search_save_LIBS
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29293 $as_echo "$ac_cv_search_getmntent" >&6; }
29294 ac_res=$ac_cv_search_getmntent
29295 if test "$ac_res" != no; then :
29296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29297 ac_cv_func_getmntent=yes
29299 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29302 ac_cv_func_getmntent=no
29306 for ac_func in getmntinfo
29308 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29309 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29310 cat >>confdefs.h <<_ACEOF
29311 #define HAVE_GETMNTINFO 1
29313 $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29319 $as_echo_n "checking whether closedir returns void... " >&6; }
29320 if ${ac_cv_func_closedir_void+:} false; then :
29321 $as_echo_n "(cached) " >&6
29323 if test "$cross_compiling" = yes; then :
29324 ac_cv_func_closedir_void=yes
29326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29327 /* end confdefs.h. */
29328 $ac_includes_default
29329 #include <$ac_header_dirent>
29330 #ifndef __cplusplus
29337 return closedir (opendir (".")) != 0;
29342 if ac_fn_c_try_run "$LINENO"; then :
29343 ac_cv_func_closedir_void=no
29345 ac_cv_func_closedir_void=yes
29347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29348 conftest.$ac_objext conftest.beam conftest.$ac_ext
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29353 $as_echo "$ac_cv_func_closedir_void" >&6; }
29354 if test $ac_cv_func_closedir_void = yes; then
29356 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29361 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29362 if ${ac_cv_func_setpgrp_void+:} false; then :
29363 $as_echo_n "(cached) " >&6
29365 if test "$cross_compiling" = yes; then :
29366 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29369 /* end confdefs.h. */
29370 $ac_includes_default
29374 /* If this system has a BSD-style setpgrp which takes arguments,
29375 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29376 exit successfully. */
29377 return setpgrp (1,1) != -1;
29382 if ac_fn_c_try_run "$LINENO"; then :
29383 ac_cv_func_setpgrp_void=no
29385 ac_cv_func_setpgrp_void=yes
29387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29388 conftest.$ac_objext conftest.beam conftest.$ac_ext
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29393 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29394 if test $ac_cv_func_setpgrp_void = yes; then
29396 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29399 # AC_FUNC_FNMATCH dnl use local version
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29402 $as_echo_n "checking for gettext in -lintl... " >&6; }
29403 if ${ac_cv_lib_intl_gettext+:} false; then :
29404 $as_echo_n "(cached) " >&6
29406 ac_check_lib_save_LIBS=$LIBS
29407 LIBS="-lintl $LIBS"
29408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29409 /* end confdefs.h. */
29411 /* Override any GCC internal prototype to avoid an error.
29412 Use char because int might match the return type of a GCC
29413 builtin and then its argument prototype would still apply. */
29426 if ac_fn_c_try_link "$LINENO"; then :
29427 ac_cv_lib_intl_gettext=yes
29429 ac_cv_lib_intl_gettext=no
29431 rm -f core conftest.err conftest.$ac_objext \
29432 conftest$ac_exeext conftest.$ac_ext
29433 LIBS=$ac_check_lib_save_LIBS
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29436 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29437 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29438 LIBS="$LIBS -lintl"
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29443 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29444 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29445 $as_echo_n "(cached) " >&6
29447 ac_check_lib_save_LIBS=$LIBS
29449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29450 /* end confdefs.h. */
29452 /* Override any GCC internal prototype to avoid an error.
29453 Use char because int might match the return type of a GCC
29454 builtin and then its argument prototype would still apply. */
29462 return getpwnam ();
29467 if ac_fn_c_try_link "$LINENO"; then :
29468 ac_cv_lib_sun_getpwnam=yes
29470 ac_cv_lib_sun_getpwnam=no
29472 rm -f core conftest.err conftest.$ac_objext \
29473 conftest$ac_exeext conftest.$ac_ext
29474 LIBS=$ac_check_lib_save_LIBS
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29477 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29478 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29479 cat >>confdefs.h <<_ACEOF
29480 #define HAVE_LIBSUN 1
29488 for ac_header in zlib.h
29490 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29491 if test "x$ac_cv_header_zlib_h" = xyes; then :
29492 cat >>confdefs.h <<_ACEOF
29493 #define HAVE_ZLIB_H 1
29500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29501 $as_echo_n "checking for deflate in -lz... " >&6; }
29502 if ${ac_cv_lib_z_deflate+:} false; then :
29503 $as_echo_n "(cached) " >&6
29505 ac_check_lib_save_LIBS=$LIBS
29507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29508 /* end confdefs.h. */
29510 /* Override any GCC internal prototype to avoid an error.
29511 Use char because int might match the return type of a GCC
29512 builtin and then its argument prototype would still apply. */
29525 if ac_fn_c_try_link "$LINENO"; then :
29526 ac_cv_lib_z_deflate=yes
29528 ac_cv_lib_z_deflate=no
29530 rm -f core conftest.err conftest.$ac_objext \
29531 conftest$ac_exeext conftest.$ac_ext
29532 LIBS=$ac_check_lib_save_LIBS
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29535 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29536 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29541 if test x$ZLIBS = x-lz; then
29542 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29551 # Check whether --enable-afs was given.
29552 if test "${enable_afs+set}" = set; then :
29553 enableval=$enable_afs;
29554 if test x$enableval = xyes; then
29556 elif test x$enableval = xno; then
29565 if test x$support_afs = xyes -o x$support_afs = xauto; then
29567 # Check whether --with-afsdir was given.
29568 if test "${with_afsdir+set}" = set; then :
29569 withval=$with_afsdir; with_afsdir=$withval
29574 if test x$with_afsdir = x; then
29575 for root in /usr /usr/local; do
29576 if test -d ${root}/include/afs/ ; then
29577 with_afsdir=${root}
29580 if test -d ${root}/include/openafs/afs/ ; then
29581 with_afsdir=${root}
29587 if test -d ${with_afsdir}/include/afs/ ; then
29588 AFS_CFLAGS="-I${with_afsdir}/include"
29590 if test -d ${with_afsdir}/include/openafs/afs/ ; then
29591 AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29595 saved_CFLAGS="${CFLAGS}"
29596 saved_CPPFLAGS="${CPPFLAGS}"
29597 CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29598 CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29600 for ac_header in afs/afsint.h
29602 ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29603 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29604 cat >>confdefs.h <<_ACEOF
29605 #define HAVE_AFS_AFSINT_H 1
29612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29613 /* end confdefs.h. */
29615 #include <afs/afsint.h>
29616 #include <afs/venus.h>
29619 if ac_fn_c_try_cpp "$LINENO"; then :
29621 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29625 rm -f conftest.err conftest.i conftest.$ac_ext
29627 CFLAGS="${saved_CFLAGS}"
29628 CPPFLAGS="${saved_CPPFLAGS}"
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29631 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29632 for dir in ${with_afsdir}/lib \
29633 ${with_afsdir}/lib/afs \
29634 ${with_afsdir}/lib/openafs \
29635 ${with_afsdir}/lib64 \
29636 ${with_afsdir}/lib64/afs \
29637 ${with_afsdir}/lib64/openafs
29639 for arch_type in .a .so
29641 A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29643 if test $pkg = 0; then
29645 AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29651 if test $have_afs = yes; then
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29653 $as_echo "yes" >&6; }
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29656 $as_echo "no" >&6; }
29659 if test x$support_afs = xyes -a $have_afs != yes; then
29660 as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29661 please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29663 if test $have_afs = yes; then
29665 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29668 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29677 # Check whether --enable-lzo was given.
29678 if test "${enable_lzo+set}" = set; then :
29679 enableval=$enable_lzo;
29680 if test x$enableval = xno; then
29693 if test x$support_lzo = xyes; then
29695 # Check whether --with-lzo was given.
29696 if test "${with_lzo+set}" = set; then :
29698 case "$with_lzo" in
29703 if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29704 LZO_INC="-I${with_lzo}/include"
29705 LZO_LDFLAGS="-L${with_lzo}/lib"
29706 with_lzo="${with_lzo}/include"
29708 with_lzo="/usr/include"
29711 as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29712 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29716 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29718 LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29724 echo "lzoconf.h not found. lzo turned off ..."
29736 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29737 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29739 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29740 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29743 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29744 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29745 $as_echo_n "(cached) " >&6
29747 ac_check_lib_save_LIBS=$LIBS
29748 LIBS="-llzo2 $LIBS"
29749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29750 /* end confdefs.h. */
29752 /* Override any GCC internal prototype to avoid an error.
29753 Use char because int might match the return type of a GCC
29754 builtin and then its argument prototype would still apply. */
29758 char lzo1x_1_compress ();
29762 return lzo1x_1_compress ();
29767 if ac_fn_c_try_link "$LINENO"; then :
29768 ac_cv_lib_lzo2_lzo1x_1_compress=yes
29770 ac_cv_lib_lzo2_lzo1x_1_compress=no
29772 rm -f core conftest.err conftest.$ac_objext \
29773 conftest$ac_exeext conftest.$ac_ext
29774 LIBS=$ac_check_lib_save_LIBS
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29777 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29778 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29782 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29806 # Check whether --enable-acl was given.
29807 if test "${enable_acl+set}" = set; then :
29808 enableval=$enable_acl;
29809 if test x$enableval = xyes; then
29811 elif test x$enableval = xno; then
29820 have_extended_acl=no
29821 if test x$support_acl = xyes -o x$support_acl = xauto; then
29822 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29823 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29825 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29831 ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29832 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29840 if test $have_acl = no; then
29841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29842 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29843 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29844 $as_echo_n "(cached) " >&6
29846 ac_check_lib_save_LIBS=$LIBS
29848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h. */
29851 /* Override any GCC internal prototype to avoid an error.
29852 Use char because int might match the return type of a GCC
29853 builtin and then its argument prototype would still apply. */
29857 char acl_get_file ();
29861 return acl_get_file ();
29866 if ac_fn_c_try_link "$LINENO"; then :
29867 ac_cv_lib_acl_acl_get_file=yes
29869 ac_cv_lib_acl_acl_get_file=no
29871 rm -f core conftest.err conftest.$ac_objext \
29872 conftest$ac_exeext conftest.$ac_ext
29873 LIBS=$ac_check_lib_save_LIBS
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29876 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29877 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29880 if test $have_afs = yes; then
29881 if test -d /usr/lib64/; then
29882 FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29884 FDLIBS="-L/usr/lib -lacl $FDLIBS"
29887 FDLIBS="-lacl $FDLIBS"
29895 if test $have_acl = no -a \
29896 x${HAVE_OSF1_OS_TRUE} = x; then
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29898 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29899 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29900 $as_echo_n "(cached) " >&6
29902 ac_check_lib_save_LIBS=$LIBS
29903 LIBS="-lpacl $LIBS"
29904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29905 /* end confdefs.h. */
29907 /* Override any GCC internal prototype to avoid an error.
29908 Use char because int might match the return type of a GCC
29909 builtin and then its argument prototype would still apply. */
29913 char acl_get_file ();
29917 return acl_get_file ();
29922 if ac_fn_c_try_link "$LINENO"; then :
29923 ac_cv_lib_pacl_acl_get_file=yes
29925 ac_cv_lib_pacl_acl_get_file=no
29927 rm -f core conftest.err conftest.$ac_objext \
29928 conftest$ac_exeext conftest.$ac_ext
29929 LIBS=$ac_check_lib_save_LIBS
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29932 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29933 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29936 FDLIBS="-lpacl $FDLIBS"
29942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29943 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29944 grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29945 if test $? = 0; then
29947 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29950 $as_echo "yes" >&6; }
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29953 $as_echo "no" >&6; }
29957 if test $have_acl = yes -a \
29958 x${HAVE_DARWIN_OS_TRUE} = x; then
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29960 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29961 grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29962 if test $? = 0; then
29964 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29967 $as_echo "yes" >&6; }
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29970 $as_echo "no" >&6; }
29974 if test $have_acl = yes -a \
29975 x${HAVE_FREEBSD_OS_TRUE} = x; then
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29977 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29978 grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29979 if test $? = 0; then
29981 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29984 $as_echo "yes" >&6; }
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29987 $as_echo "no" >&6; }
29991 if test $have_acl = no -a \
29992 x${HAVE_SUN_OS_TRUE} = x; then
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29994 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29995 if ${ac_cv_lib_sec_acltotext+:} false; then :
29996 $as_echo_n "(cached) " >&6
29998 ac_check_lib_save_LIBS=$LIBS
30000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30001 /* end confdefs.h. */
30003 /* Override any GCC internal prototype to avoid an error.
30004 Use char because int might match the return type of a GCC
30005 builtin and then its argument prototype would still apply. */
30013 return acltotext ();
30018 if ac_fn_c_try_link "$LINENO"; then :
30019 ac_cv_lib_sec_acltotext=yes
30021 ac_cv_lib_sec_acltotext=no
30023 rm -f core conftest.err conftest.$ac_objext \
30024 conftest$ac_exeext conftest.$ac_ext
30025 LIBS=$ac_check_lib_save_LIBS
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
30028 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
30029 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
30032 FDLIBS="-lsec $FDLIBS"
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
30035 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
30036 if ${ac_cv_lib_sec_acl_totext+:} false; then :
30037 $as_echo_n "(cached) " >&6
30039 ac_check_lib_save_LIBS=$LIBS
30041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30042 /* end confdefs.h. */
30044 /* Override any GCC internal prototype to avoid an error.
30045 Use char because int might match the return type of a GCC
30046 builtin and then its argument prototype would still apply. */
30050 char acl_totext ();
30054 return acl_totext ();
30059 if ac_fn_c_try_link "$LINENO"; then :
30060 ac_cv_lib_sec_acl_totext=yes
30062 ac_cv_lib_sec_acl_totext=no
30064 rm -f core conftest.err conftest.$ac_objext \
30065 conftest$ac_exeext conftest.$ac_ext
30066 LIBS=$ac_check_lib_save_LIBS
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
30069 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
30070 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
30072 have_extended_acl=yes
30083 if test $have_acl = no -a \
30084 x${HAVE_AIX_OS_TRUE} = x; then
30085 ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
30086 if test "x$ac_cv_func_acl_get" = xyes; then :
30090 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30091 if test "x$ac_cv_func_aclx_get" = xyes; then :
30093 have_extended_acl=yes
30104 if test x$support_acl = xyes -a $have_acl != yes; then
30105 as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
30106 please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
30108 if test $have_acl = yes; then
30110 $as_echo "#define HAVE_ACL 1" >>confdefs.h
30114 if test $have_extended_acl = yes; then
30116 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
30123 # Check whether --enable-xattr was given.
30124 if test "${enable_xattr+set}" = set; then :
30125 enableval=$enable_xattr;
30126 if test x$enableval = xyes; then
30128 elif test x$enableval = xno; then
30137 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
30138 if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
30139 x${HAVE_NETBSD_OS_TRUE} = x -o \
30140 x${HAVE_OPENBSD_OS_TRUE} = x; then
30141 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
30142 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
30144 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
30149 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
30150 if test "x$ac_cv_header_libutil_h" = xyes; then :
30152 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30157 for ac_func in extattr_get_link extattr_set_link extattr_list_link
30159 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30160 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30161 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30162 cat >>confdefs.h <<_ACEOF
30163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30168 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30171 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30174 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30182 if test $have_xattr = no; then
30183 for ac_func in extattr_get_file extattr_set_file extattr_list_file
30185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30187 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30188 cat >>confdefs.h <<_ACEOF
30189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30194 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30197 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30200 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30209 if test $have_xattr = yes; then
30210 have_extattr_string_in_libc=no
30211 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30216 cat >>confdefs.h <<_ACEOF
30217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30220 have_extattr_string_in_libc=yes
30222 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30225 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30233 if test $have_extattr_string_in_libc = no; then
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30235 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30236 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30237 $as_echo_n "(cached) " >&6
30239 ac_check_lib_save_LIBS=$LIBS
30240 LIBS="-lutil $LIBS"
30241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30242 /* end confdefs.h. */
30244 /* Override any GCC internal prototype to avoid an error.
30245 Use char because int might match the return type of a GCC
30246 builtin and then its argument prototype would still apply. */
30250 char extattr_namespace_to_string extattr_string_to_namespace ();
30254 return extattr_namespace_to_string extattr_string_to_namespace ();
30259 if ac_fn_c_try_link "$LINENO"; then :
30260 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30262 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30264 rm -f core conftest.err conftest.$ac_objext \
30265 conftest$ac_exeext conftest.$ac_ext
30266 LIBS=$ac_check_lib_save_LIBS
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30269 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30270 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30273 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30276 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30278 FDLIBS="-lutil $FDLIBS"
30287 if test $have_xattr = no -a \
30288 x${HAVE_AIX_OS_TRUE} = x; then
30289 ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30290 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30292 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30297 for ac_func in llistea lgetea lsetea
30299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30300 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30301 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30302 cat >>confdefs.h <<_ACEOF
30303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30308 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30311 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30314 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30322 if test $have_xattr = no; then
30323 for ac_func in listea getea setea
30325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30328 cat >>confdefs.h <<_ACEOF
30329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30334 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30337 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30340 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30350 if test $have_xattr = no -a \
30351 x${HAVE_OSF1_OS_TRUE} = x; then
30352 ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30353 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30355 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30360 for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30365 cat >>confdefs.h <<_ACEOF
30366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30371 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30374 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30377 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30380 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30383 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30392 if test $have_xattr = no -a \
30393 x${HAVE_SUN_OS_TRUE} = x; then
30394 ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30395 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30397 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30402 ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30403 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30405 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30410 ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30411 if test "x$ac_cv_header_attr_h" = xyes; then :
30413 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30419 for ac_func in openat fstatat unlinkat fchownat futimesat
30421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30422 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30423 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30424 cat >>confdefs.h <<_ACEOF
30425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30430 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30433 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30436 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30439 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30442 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30450 if test $have_xattr = yes; then
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30452 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30453 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30454 $as_echo_n "(cached) " >&6
30456 ac_check_lib_save_LIBS=$LIBS
30457 LIBS="-lnvpair $LIBS"
30458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30459 /* end confdefs.h. */
30461 /* Override any GCC internal prototype to avoid an error.
30462 Use char because int might match the return type of a GCC
30463 builtin and then its argument prototype would still apply. */
30467 char nvlist_next_nvpair ();
30471 return nvlist_next_nvpair ();
30476 if ac_fn_c_try_link "$LINENO"; then :
30477 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30479 ac_cv_lib_nvpair_nvlist_next_nvpair=no
30481 rm -f core conftest.err conftest.$ac_objext \
30482 conftest$ac_exeext conftest.$ac_ext
30483 LIBS=$ac_check_lib_save_LIBS
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30486 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30487 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30490 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30492 FDLIBS="-lnvpair $FDLIBS"
30500 if test $have_xattr = no; then
30501 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30502 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30504 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30509 for ac_func in llistxattr lgetxattr lsetxattr
30511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30513 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30514 cat >>confdefs.h <<_ACEOF
30515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30520 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30523 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30526 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30534 if test $have_xattr = no; then
30535 for ac_func in listxattr getxattr setxattr
30537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30540 cat >>confdefs.h <<_ACEOF
30541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30546 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30549 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30552 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30562 if test x$support_xattr = xyes -a $have_xattr != yes; then
30563 as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30564 please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30566 if test $have_xattr = yes; then
30568 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30576 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30577 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30578 $as_echo_n "(cached) " >&6
30580 ac_check_lib_save_LIBS=$LIBS
30581 LIBS="-lpthread $LIBS"
30582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30583 /* end confdefs.h. */
30585 /* Override any GCC internal prototype to avoid an error.
30586 Use char because int might match the return type of a GCC
30587 builtin and then its argument prototype would still apply. */
30591 char pthread_create ();
30595 return pthread_create ();
30600 if ac_fn_c_try_link "$LINENO"; then :
30601 ac_cv_lib_pthread_pthread_create=yes
30603 ac_cv_lib_pthread_pthread_create=no
30605 rm -f core conftest.err conftest.$ac_objext \
30606 conftest$ac_exeext conftest.$ac_ext
30607 LIBS=$ac_check_lib_save_LIBS
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30610 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30611 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30612 PTHREAD_LIB="-lpthread"
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30616 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30617 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30618 $as_echo_n "(cached) " >&6
30620 ac_check_lib_save_LIBS=$LIBS
30621 LIBS="-lpthreads $LIBS"
30622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30623 /* end confdefs.h. */
30625 /* Override any GCC internal prototype to avoid an error.
30626 Use char because int might match the return type of a GCC
30627 builtin and then its argument prototype would still apply. */
30631 char pthread_create ();
30635 return pthread_create ();
30640 if ac_fn_c_try_link "$LINENO"; then :
30641 ac_cv_lib_pthreads_pthread_create=yes
30643 ac_cv_lib_pthreads_pthread_create=no
30645 rm -f core conftest.err conftest.$ac_objext \
30646 conftest$ac_exeext conftest.$ac_ext
30647 LIBS=$ac_check_lib_save_LIBS
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30650 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30651 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30652 PTHREAD_LIB="-lpthreads"
30655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30656 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30657 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30658 $as_echo_n "(cached) " >&6
30660 ac_check_lib_save_LIBS=$LIBS
30662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30663 /* end confdefs.h. */
30665 /* Override any GCC internal prototype to avoid an error.
30666 Use char because int might match the return type of a GCC
30667 builtin and then its argument prototype would still apply. */
30671 char pthread_create ();
30675 return pthread_create ();
30680 if ac_fn_c_try_link "$LINENO"; then :
30681 ac_cv_lib_c_r_pthread_create=yes
30683 ac_cv_lib_c_r_pthread_create=no
30685 rm -f core conftest.err conftest.$ac_objext \
30686 conftest$ac_exeext conftest.$ac_ext
30687 LIBS=$ac_check_lib_save_LIBS
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30690 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30691 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30692 PTHREAD_LIB="-lc_r"
30695 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30696 if test "x$ac_cv_func_pthread_create" = xyes; then :
30713 for ac_header in sys/prctl.h sys/capability.h
30715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30716 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30717 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30718 cat >>confdefs.h <<_ACEOF
30719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30726 for ac_func in prctl setreuid
30728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30731 cat >>confdefs.h <<_ACEOF
30732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30739 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30740 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30741 $as_echo_n "(cached) " >&6
30743 ac_check_lib_save_LIBS=$LIBS
30745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30746 /* end confdefs.h. */
30748 /* Override any GCC internal prototype to avoid an error.
30749 Use char because int might match the return type of a GCC
30750 builtin and then its argument prototype would still apply. */
30754 char cap_set_proc ();
30758 return cap_set_proc ();
30763 if ac_fn_c_try_link "$LINENO"; then :
30764 ac_cv_lib_cap_cap_set_proc=yes
30766 ac_cv_lib_cap_cap_set_proc=no
30768 rm -f core conftest.err conftest.$ac_objext \
30769 conftest$ac_exeext conftest.$ac_ext
30770 LIBS=$ac_check_lib_save_LIBS
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30773 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30774 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30780 if test x$CAP_LIBS = x-lcap; then
30782 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30788 $as_echo "#define FDLIBS 1" >>confdefs.h
30791 CFLAGS=${CFLAGS--O}
30793 if test x$have_gcc = xyes ; then
30794 CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30795 CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30797 LDFLAGS=${LDFLAGS--O}
30798 CPPFLAGS="$CPPFLAGS"
30827 COMPRESS_MANPAGES=yes
30829 case "$DISTNAME" in
30832 PSCMD="ps -e -o pid,comm"
30833 PFILES="${PFILES} platforms/aix/Makefile"
30834 TAPEDRIVE="/dev/rmt0.1"
30838 PTHREAD_LIB="-lpthread -lexc"
30839 if test "${CC}" = "gcc" ; then
30846 TAPEDRIVE="/dev/nrmt0"
30849 DISTVER=`uname -a |awk '{print $3}'`
30850 TAPEDRIVE="/dev/nrmt0"
30851 PTHREAD_LIB="-pthread"
30852 CFLAGS="${CFLAGS} -pthread"
30853 PSCMD="ps -ax -o pid,command"
30856 PFILES="${PFILES} \
30857 platforms/bsdi/Makefile \
30858 platforms/bsdi/bacula-fd \
30859 platforms/bsdi/bacula-sd \
30860 platforms/bsdi/bacula-dir"
30861 largefile_support="yes"
30864 DISTVER=`uname -a |awk '{print $3}'`
30865 TAPEDRIVE="/dev/nrst0"
30867 WCFLAGS="-mwindows"
30868 WLDFLAGS="-mwindows"
30872 TAPEDRIVE="/dev/nst0"
30873 PSCMD="ps -e -o pid,command"
30875 PFILES="${PFILES} \
30876 platforms/darwin/Makefile"
30880 TAPEDRIVE="/dev/nst0"
30881 PSCMD="ps -e -o pid,command"
30883 PFILES="${PFILES} \
30884 platforms/osx/Makefile"
30887 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30890 DISTVER=`cat /etc/debian_version`
30891 if test -f /etc/lsb-release ; then
30893 if test "x$DISTRIB_ID" != "x" ; then
30894 DISTNAME=$DISTRIB_ID
30896 if test "x$DISTRIB_RELEASE" != "x" ; then
30897 DISTVER=$DISTRIB_RELEASE
30900 if test "$DISTNAME" = "Ubuntu" ; then
30903 TAPEDRIVE="/dev/nst0"
30904 PSCMD="ps -e -o pid,command"
30905 if test "$DISTNAME" = "ubuntu" ; then
30906 PFILES="${PFILES} \
30907 platforms/ubuntu/Makefile \
30908 platforms/ubuntu/bacula-fd \
30909 platforms/ubuntu/bacula-sd \
30910 platforms/ubuntu/bacula-dir"
30912 PFILES="${PFILES} \
30913 platforms/debian/Makefile \
30914 platforms/debian/bacula-fd \
30915 platforms/debian/bacula-sd \
30916 platforms/debian/bacula-dir"
30920 DISTVER=`uname -a |awk '{print $3}'`
30921 VER=`echo $DISTVER | cut -c 1`
30922 if test x$VER = x4 ; then
30923 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30924 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30928 TAPEDRIVE="/dev/nrsa0"
30929 PSCMD="ps -ax -o pid,command"
30930 PFILES="${PFILES} \
30931 platforms/freebsd/Makefile \
30932 platforms/freebsd/bacula-fd \
30933 platforms/freebsd/bacula-sd \
30934 platforms/freebsd/bacula-dir"
30935 largefile_support="yes"
30939 TAPEDRIVE="/dev/nst0"
30940 PSCMD="ps -e -o pid,command"
30941 PFILES="${PFILES} \
30942 platforms/hurd/Makefile \
30943 platforms/hurd/bacula-fd \
30944 platforms/hurd/bacula-sd \
30945 platforms/hurd/bacula-dir"
30948 PSCMD="UNIX95=1; ps -e -o pid,comm"
30949 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30951 TAPEDRIVE="/dev/rmt/0hnb"
30952 PTHREAD_LIB="-lpthread"
30953 $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30958 TAPEDRIVE="/dev/rmt/0cbn"
30959 PSCMD="ps -e -o pid,comm"
30960 PFILES="${PFILES} \
30961 platforms/irix/Makefile \
30962 platforms/irix/bacula-fd \
30963 platforms/irix/bacula-sd \
30964 platforms/irix/bacula-dir"
30967 DISTVER=`uname -a |awk '{print $3}'`
30970 TAPEDRIVE="/dev/nrst0"
30971 PSCMD="ps -ax -o pid,command"
30972 PTHREAD_LIB="-pthread"
30973 CFLAGS="${CFLAGS} -pthread"
30976 DISTVER=`uname -a |awk '{print $3}'`
30979 TAPEDRIVE="/dev/nrst0"
30980 PSCMD="ps -ax -o pid,command"
30981 PTHREAD_LIB="-pthread"
30982 CFLAGS="${CFLAGS} -pthread"
30983 PFILES="${PFILES} \
30984 platforms/openbsd/Makefile \
30985 platforms/openbsd/bacula-fd \
30986 platforms/openbsd/bacula-sd \
30987 platforms/openbsd/bacula-dir"
30990 if test -f /etc/whitebox-release ; then
30991 f=/etc/whitebox-release
30993 f=/etc/redhat-release
30995 if test `cat $f | grep release |\
30996 cut -f 3 -d ' '`x = "Enterprise"x ; then
30997 DISTVER="Enterprise "`cat $f | grep release |\
31000 DISTVER=`cat /etc/redhat-release | grep release |\
31003 TAPEDRIVE="/dev/nst0"
31004 PSCMD="ps -e -o pid,command"
31005 PFILES="${PFILES} \
31006 platforms/redhat/Makefile \
31007 platforms/redhat/bacula-fd \
31008 platforms/redhat/bacula-sd \
31009 platforms/redhat/bacula-dir
31013 DISTVER=`cat /etc/mandrake-release | grep release |\
31015 TAPEDRIVE="/dev/nst0"
31016 PSCMD="ps -e -o pid,command"
31017 PFILES="${PFILES} \
31018 platforms/mandrake/Makefile \
31019 platforms/mandrake/bacula-fd \
31020 platforms/mandrake/bacula-sd \
31021 platforms/mandrake/bacula-dir \
31025 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
31026 TAPEDRIVE="/dev/nst0"
31027 PSCMD="ps -e -o pid,command"
31028 PFILES="${PFILES} \
31029 platforms/gentoo/Makefile \
31030 platforms/gentoo/bacula-init \
31031 platforms/gentoo/bacula-fd \
31032 platforms/gentoo/bacula-sd \
31033 platforms/gentoo/bacula-dir"
31036 DISTVER=`cat /etc/slackware-version`
31037 TAPEDRIVE="/dev/nst0"
31038 PSCMD="ps -e -o pid,command"
31039 PFILES="${PFILES} \
31040 platforms/slackware/Makefile \
31041 platforms/slackware/rc.bacula-fd \
31042 platforms/slackware/rc.bacula-sd \
31043 platforms/slackware/rc.bacula-dir\
31044 platforms/slackware/functions.bacula"
31048 TAPEDRIVE="/dev/rmt/0cbn"
31049 PSCMD="ps -e -o pid,comm"
31050 PFILES="${PFILES} \
31051 platforms/solaris/Makefile \
31052 platforms/solaris/bacula-fd \
31053 platforms/solaris/bacula-sd \
31054 platforms/solaris/bacula-dir"
31058 $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
31060 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31064 $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31069 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
31075 LIBS="$LIBS -lresolv -lrt"
31078 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
31080 TAPEDRIVE="/dev/nst0"
31081 PSCMD="ps -e -o pid,command"
31082 PFILES="${PFILES} \
31083 platforms/suse/Makefile \
31084 platforms/suse/bacula-fd \
31085 platforms/suse/bacula-sd \
31086 platforms/suse/bacula-dir \
31087 platforms/suse/bacula"
31092 TAPEDRIVE="/dev/nst0"
31093 PSCMD="ps -e -o pid,command"
31094 PFILES="${PFILES} \
31095 platforms/suse/Makefile \
31096 platforms/suse/bacula-fd \
31097 platforms/suse/bacula-sd \
31098 platforms/suse/bacula-dir"
31102 TAPEDRIVE="/dev/nst0"
31105 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
31110 $as_echo_n "checking for systemd support... " >&6; }
31112 # Check whether --with-systemd was given.
31113 if test "${with_systemd+set}" = set; then :
31114 withval=$with_systemd;
31115 if test "$withval" != "no"; then
31116 if test "$withval" = "yes"; then
31117 SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
31119 SYSTEMD_UNITDIR="${withval}"
31122 PFILES="${PFILES} \
31123 platforms/systemd/Makefile \
31124 platforms/systemd/bacula.conf \
31125 platforms/systemd/bacula-dir.service \
31126 platforms/systemd/bacula-fd.service \
31127 platforms/systemd/bacula-sd.service"
31129 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
31131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31132 $as_echo "yes" >&6; }
31133 support_systemd="yes"
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31136 $as_echo "no" >&6; }
31137 support_systemd="no"
31142 support_systemd="no"
31143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31144 $as_echo "no" >&6; }
31153 LIBS="$PTHREAD_LIB $LIBS"
31155 cat >>confdefs.h <<_ACEOF
31159 cat >>confdefs.h <<_ACEOF
31171 MCOMMON=./autoconf/Make.common
31174 if test "x${subsysdir}" = "x${sbindir}" ; then
31177 echo "You have set both --sbindir and --with-subsys-dir"
31178 echo " equal to: ${subsysdir} "
31179 echo "This is not permitted. Please reconfigure."
31181 echo "Aborting configuration ..."
31188 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/baculabackupreport scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps scripts/bacula-tray-monitor.desktop src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile po/Makefile.in updatedb/update_mysql_tables updatedb/update_sqlite3_tables updatedb/update_postgresql_tables updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
31190 ac_config_commands="$ac_config_commands default"
31192 cat >confcache <<\_ACEOF
31193 # This file is a shell script that caches the results of configure
31194 # tests run on this system so they can be shared between configure
31195 # scripts and configure runs, see configure's option --config-cache.
31196 # It is not useful on other systems. If it contains results you don't
31197 # want to keep, you may remove or edit it.
31199 # config.status only pays attention to the cache file if you give it
31200 # the --recheck option to rerun configure.
31202 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31203 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31204 # following values.
31208 # The following way of writing the cache mishandles newlines in values,
31209 # but we know of no workaround that is simple, portable, and efficient.
31210 # So, we kill variables containing newlines.
31211 # Ultrix sh set writes to stderr and can't be redirected directly,
31212 # and sets the high bit in the cache file unless we assign to the vars.
31214 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31215 eval ac_val=\$$ac_var
31219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31223 _ | IFS | as_nl) ;; #(
31224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31225 *) { eval $ac_var=; unset $ac_var;} ;;
31231 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31232 *${as_nl}ac_space=\ *)
31233 # `set' does not quote correctly, so add quotes: double-quote
31234 # substitution turns \\\\ into \\, and sed turns \\ into \.
31237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31240 # `set' quotes correctly as required by POSIX, so do not add quotes.
31241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31252 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31254 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31255 if test -w "$cache_file"; then
31256 if test "x$cache_file" != "x/dev/null"; then
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31258 $as_echo "$as_me: updating cache $cache_file" >&6;}
31259 if test ! -f "$cache_file" || test -h "$cache_file"; then
31260 cat confcache >"$cache_file"
31262 case $cache_file in #(
31264 mv -f confcache "$cache_file"$$ &&
31265 mv -f "$cache_file"$$ "$cache_file" ;; #(
31267 mv -f confcache "$cache_file" ;;
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31273 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31279 # Let make expand exec_prefix.
31280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31282 DEFS=-DHAVE_CONFIG_H
31287 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31288 # 1. Remove the extension, and $U if already installed.
31289 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31290 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31291 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31292 # will be set to the directory where LIBOBJS objects are built.
31293 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31294 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31296 LIBOBJS=$ac_libobjs
31298 LTLIBOBJS=$ac_ltlibobjs
31303 : "${CONFIG_STATUS=./config.status}"
31305 ac_clean_files_save=$ac_clean_files
31306 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31308 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31310 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31312 # Generated by $as_me.
31313 # Run this file to recreate the current configuration.
31314 # Compiler output produced by configure, useful for debugging
31315 # configure, is in config.log if it exists.
31318 ac_cs_recheck=false
31321 SHELL=\${CONFIG_SHELL-$SHELL}
31324 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31325 ## -------------------- ##
31326 ## M4sh Initialization. ##
31327 ## -------------------- ##
31329 # Be more Bourne compatible
31330 DUALCASE=1; export DUALCASE # for MKS sh
31331 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31334 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31335 # is contrary to our usage. Disable this feature.
31336 alias -g '${1+"$@"}'='"$@"'
31337 setopt NO_GLOB_SUBST
31339 case `(set -o) 2>/dev/null` in #(
31351 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31352 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31355 # Prefer a ksh shell builtin over an external printf program on Solaris,
31356 # but without wasting forks for bash or zsh.
31357 if test -z "$BASH_VERSION$ZSH_VERSION" \
31358 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31359 as_echo='print -r --'
31360 as_echo_n='print -rn --'
31361 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31362 as_echo='printf %s\n'
31363 as_echo_n='printf %s'
31365 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31366 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31367 as_echo_n='/usr/ucb/echo -n'
31369 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31370 as_echo_n_body='eval
31374 expr "X$arg" : "X\\(.*\\)$as_nl";
31375 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31377 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31379 export as_echo_n_body
31380 as_echo_n='sh -c $as_echo_n_body as_echo'
31382 export as_echo_body
31383 as_echo='sh -c $as_echo_body as_echo'
31386 # The user is always right.
31387 if test "${PATH_SEPARATOR+set}" != set; then
31389 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31390 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31397 # We need space, tab and new line, in precisely that order. Quoting is
31398 # there to prevent editors from complaining about space-tab.
31399 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31400 # splitting by setting IFS to empty value.)
31403 # Find who we are. Look in the path if we contain no directory separator.
31406 *[\\/]* ) as_myself=$0 ;;
31407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31408 for as_dir in $PATH
31411 test -z "$as_dir" && as_dir=.
31412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31418 # We did not find ourselves, most probably we were run as `sh COMMAND'
31419 # in which case we are not to be found in the path.
31420 if test "x$as_myself" = x; then
31423 if test ! -f "$as_myself"; then
31424 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31428 # Unset variables that we do not need and which cause bugs (e.g. in
31429 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31430 # suppresses any "Segmentation fault" message there. '((' could
31431 # trigger a bug in pdksh 5.2.14.
31432 for as_var in BASH_ENV ENV MAIL MAILPATH
31433 do eval test x\${$as_var+set} = xset \
31434 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31450 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31451 # ----------------------------------------
31452 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31453 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31454 # script with STATUS, using 1 if that was 0.
31457 as_status=$1; test $as_status -eq 0 && as_status=1
31459 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31460 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31462 $as_echo "$as_me: error: $2" >&2
31463 as_fn_exit $as_status
31467 # as_fn_set_status STATUS
31468 # -----------------------
31469 # Set $? to STATUS, without forking.
31470 as_fn_set_status ()
31473 } # as_fn_set_status
31475 # as_fn_exit STATUS
31476 # -----------------
31477 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31481 as_fn_set_status $1
31487 # Portably unset VAR.
31490 { eval $1=; unset $1;}
31492 as_unset=as_fn_unset
31493 # as_fn_append VAR VALUE
31494 # ----------------------
31495 # Append the text in VALUE to the end of the definition contained in VAR. Take
31496 # advantage of any shell optimizations that allow amortized linear growth over
31497 # repeated appends, instead of the typical quadratic growth present in naive
31499 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31500 eval 'as_fn_append ()
31511 # as_fn_arith ARG...
31512 # ------------------
31513 # Perform arithmetic evaluation on the ARGs, and store the result in the
31514 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31515 # must be portable across $(()) and expr.
31516 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31517 eval 'as_fn_arith ()
31524 as_val=`expr "$@" || test $? -eq 1`
31529 if expr a : '\(a\)' >/dev/null 2>&1 &&
31530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31537 as_basename=basename
31542 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31548 as_me=`$as_basename -- "$0" ||
31549 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31550 X"$0" : 'X\(//\)$' \| \
31551 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31553 sed '/^.*\/\([^/][^/]*\)\/*$/{
31567 # Avoid depending upon Character Ranges.
31568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31571 as_cr_digits='0123456789'
31572 as_cr_alnum=$as_cr_Letters$as_cr_digits
31574 ECHO_C= ECHO_N= ECHO_T=
31575 case `echo -n x` in #(((((
31577 case `echo 'xy\c'` in
31578 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31580 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31587 rm -f conf$$ conf$$.exe conf$$.file
31588 if test -d conf$$.dir; then
31589 rm -f conf$$.dir/conf$$.file
31592 mkdir conf$$.dir 2>/dev/null
31594 if (echo >conf$$.file) 2>/dev/null; then
31595 if ln -s conf$$.file conf$$ 2>/dev/null; then
31597 # ... but there are two gotchas:
31598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31600 # In both cases, we have to default to `cp -pR'.
31601 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31603 elif ln conf$$.file conf$$ 2>/dev/null; then
31611 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31612 rmdir conf$$.dir 2>/dev/null
31617 # Create "$as_dir" as a directory, including parents if necessary.
31622 -*) as_dir=./$as_dir;;
31624 test -d "$as_dir" || eval $as_mkdir_p || {
31628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31629 *) as_qdir=$as_dir;;
31631 as_dirs="'$as_qdir' $as_dirs"
31632 as_dir=`$as_dirname -- "$as_dir" ||
31633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31634 X"$as_dir" : 'X\(//\)[^/]' \| \
31635 X"$as_dir" : 'X\(//\)$' \| \
31636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31637 $as_echo X"$as_dir" |
31638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31642 /^X\(\/\/\)[^/].*/{
31655 test -d "$as_dir" && break
31657 test -z "$as_dirs" || eval "mkdir $as_dirs"
31658 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31662 if mkdir -p . 2>/dev/null; then
31663 as_mkdir_p='mkdir -p "$as_dir"'
31665 test -d ./-p && rmdir ./-p
31670 # as_fn_executable_p FILE
31671 # -----------------------
31672 # Test if FILE is an executable regular file.
31673 as_fn_executable_p ()
31675 test -f "$1" && test -x "$1"
31676 } # as_fn_executable_p
31677 as_test_x='test -x'
31678 as_executable_p=as_fn_executable_p
31680 # Sed expression to map a string onto a valid CPP name.
31681 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31683 # Sed expression to map a string onto a valid variable name.
31684 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31688 ## ----------------------------------- ##
31689 ## Main body of $CONFIG_STATUS script. ##
31690 ## ----------------------------------- ##
31692 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31695 # Save the log message, to keep $0 and so on meaningful, and to
31696 # report actual input values of CONFIG_FILES etc. instead of their
31697 # values after options handling.
31699 This file was extended by bacula $as_me 9.0.6, which was
31700 generated by GNU Autoconf 2.69. Invocation command line was
31702 CONFIG_FILES = $CONFIG_FILES
31703 CONFIG_HEADERS = $CONFIG_HEADERS
31704 CONFIG_LINKS = $CONFIG_LINKS
31705 CONFIG_COMMANDS = $CONFIG_COMMANDS
31708 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31713 case $ac_config_files in *"
31714 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31717 case $ac_config_headers in *"
31718 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31723 # Files that config.status was made for.
31724 config_files="$ac_config_files"
31725 config_headers="$ac_config_headers"
31726 config_commands="$ac_config_commands"
31730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31732 \`$as_me' instantiates files and other configuration actions
31733 from templates according to the current configuration. Unless the files
31734 and actions are specified as TAGs, all are instantiated by default.
31736 Usage: $0 [OPTION]... [TAG]...
31738 -h, --help print this help, then exit
31739 -V, --version print version number and configuration settings, then exit
31740 --config print configuration, then exit
31741 -q, --quiet, --silent
31742 do not print progress messages
31743 -d, --debug don't remove temporary files
31744 --recheck update $as_me by reconfiguring in the same conditions
31745 --file=FILE[:TEMPLATE]
31746 instantiate the configuration file FILE
31747 --header=FILE[:TEMPLATE]
31748 instantiate the configuration header FILE
31750 Configuration files:
31753 Configuration headers:
31756 Configuration commands:
31759 Report bugs to the package provider."
31762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31763 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31765 bacula config.status 9.0.6
31766 configured by $0, generated by GNU Autoconf 2.69,
31767 with options \\"\$ac_cs_config\\"
31769 Copyright (C) 2012 Free Software Foundation, Inc.
31770 This config.status script is free software; the Free Software Foundation
31771 gives unlimited permission to copy, distribute and modify it."
31777 test -n "\$AWK" || AWK=awk
31780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31781 # The default lists apply if the user does not specify any file.
31787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31788 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31804 # Handling of the options.
31805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31807 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31808 $as_echo "$ac_cs_version"; exit ;;
31809 --config | --confi | --conf | --con | --co | --c )
31810 $as_echo "$ac_cs_config"; exit ;;
31811 --debug | --debu | --deb | --de | --d | -d )
31813 --file | --fil | --fi | --f )
31816 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31817 '') as_fn_error $? "missing file argument" ;;
31819 as_fn_append CONFIG_FILES " '$ac_optarg'"
31820 ac_need_defaults=false;;
31821 --header | --heade | --head | --hea )
31824 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31826 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31827 ac_need_defaults=false;;
31829 # Conflict between --help and --header
31830 as_fn_error $? "ambiguous option: \`$1'
31831 Try \`$0 --help' for more information.";;
31832 --help | --hel | -h )
31833 $as_echo "$ac_cs_usage"; exit ;;
31834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31838 # This is an error.
31839 -*) as_fn_error $? "unrecognized option: \`$1'
31840 Try \`$0 --help' for more information." ;;
31842 *) as_fn_append ac_config_targets " $1"
31843 ac_need_defaults=false ;;
31849 ac_configure_extra_args=
31851 if $ac_cs_silent; then
31853 ac_configure_extra_args="$ac_configure_extra_args --silent"
31857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31858 if \$ac_cs_recheck; then
31859 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31861 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31862 CONFIG_SHELL='$SHELL'
31863 export CONFIG_SHELL
31868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31873 ## Running $as_me. ##
31879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31885 # The HP-UX ksh and POSIX shell print the target directory to stdout
31886 # if CDPATH is set.
31887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31889 sed_quote_subst='$sed_quote_subst'
31890 double_quote_subst='$double_quote_subst'
31891 delay_variable_subst='$delay_variable_subst'
31892 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31893 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31894 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31895 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31896 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31897 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31925 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31926 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31927 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31928 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31929 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31930 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31931 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31932 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31933 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31934 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31935 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31936 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31937 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31938 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31939 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31940 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31941 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31942 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31943 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31944 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31945 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31946 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31947 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31948 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"`'
31949 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31950 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31951 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31952 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31953 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31954 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31955 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31956 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31957 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31958 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31959 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31960 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31961 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31962 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31963 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31964 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31965 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31966 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31967 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31968 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31969 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31970 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31971 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31972 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31973 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31974 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31975 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31976 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31977 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31978 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31979 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31980 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31981 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31982 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31983 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31984 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31985 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31986 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31987 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31988 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31989 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31990 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31991 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31992 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31993 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31994 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31995 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31996 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31997 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31998 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31999 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32000 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32001 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32002 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32003 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32004 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32005 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32006 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32007 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32008 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32009 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32010 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32011 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32012 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32013 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32014 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32015 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32016 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32017 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32018 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32019 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32020 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32021 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32022 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32023 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32024 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32025 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32026 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32027 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32028 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32029 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32030 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32031 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32032 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32033 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32034 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32035 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32036 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32037 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32038 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32039 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32040 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32041 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32042 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32043 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32044 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32045 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32046 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32047 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32048 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32049 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32050 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32051 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32052 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32053 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32054 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32055 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32056 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32057 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32058 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32059 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32060 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32061 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32062 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32063 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32064 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32065 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32066 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32067 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32068 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32069 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32070 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32071 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32072 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32073 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32074 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32075 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32078 LTCFLAGS='$LTCFLAGS'
32079 compiler='$compiler_DEFAULT'
32081 # A function that is used when there is no print builtin or printf.
32082 func_fallback_echo ()
32084 eval 'cat <<_LTECHO_EOF
32089 # Quote evaled strings.
32104 deplibs_check_method \
32109 sharedlib_from_linklib_cmd \
32112 archiver_list_spec \
32118 lt_cv_sys_global_symbol_pipe \
32119 lt_cv_sys_global_symbol_to_cdecl \
32120 lt_cv_sys_global_symbol_to_c_name_address \
32121 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32122 nm_file_list_spec \
32123 lt_prog_compiler_no_builtin_flag \
32124 lt_prog_compiler_pic \
32125 lt_prog_compiler_wl \
32126 lt_prog_compiler_static \
32127 lt_cv_prog_compiler_c_o \
32136 export_dynamic_flag_spec \
32137 whole_archive_flag_spec \
32138 compiler_needs_object \
32140 allow_undefined_flag \
32141 no_undefined_flag \
32142 hardcode_libdir_flag_spec \
32143 hardcode_libdir_separator \
32147 variables_saved_for_relink \
32149 library_names_spec \
32151 install_override_mode \
32155 compiler_lib_search_dirs \
32160 compiler_lib_search_path \
32164 lt_prog_compiler_no_builtin_flag_CXX \
32165 lt_prog_compiler_pic_CXX \
32166 lt_prog_compiler_wl_CXX \
32167 lt_prog_compiler_static_CXX \
32168 lt_cv_prog_compiler_c_o_CXX \
32169 export_dynamic_flag_spec_CXX \
32170 whole_archive_flag_spec_CXX \
32171 compiler_needs_object_CXX \
32173 allow_undefined_flag_CXX \
32174 no_undefined_flag_CXX \
32175 hardcode_libdir_flag_spec_CXX \
32176 hardcode_libdir_separator_CXX \
32177 exclude_expsyms_CXX \
32178 include_expsyms_CXX \
32179 file_list_spec_CXX \
32180 compiler_lib_search_dirs_CXX \
32181 predep_objects_CXX \
32182 postdep_objects_CXX \
32185 compiler_lib_search_path_CXX; do
32186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32187 *[\\\\\\\`\\"\\\$]*)
32188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32196 # Double-quote double-evaled strings.
32197 for var in reload_cmds \
32198 old_postinstall_cmds \
32199 old_postuninstall_cmds \
32201 extract_expsyms_cmds \
32202 old_archive_from_new_cmds \
32203 old_archive_from_expsyms_cmds \
32205 archive_expsym_cmds \
32207 module_expsym_cmds \
32208 export_symbols_cmds \
32212 postuninstall_cmds \
32214 sys_lib_search_path_spec \
32215 sys_lib_dlsearch_path_spec \
32217 old_archive_cmds_CXX \
32218 old_archive_from_new_cmds_CXX \
32219 old_archive_from_expsyms_cmds_CXX \
32221 archive_expsym_cmds_CXX \
32223 module_expsym_cmds_CXX \
32224 export_symbols_cmds_CXX \
32226 postlink_cmds_CXX; do
32227 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32228 *[\\\\\\\`\\"\\\$]*)
32229 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32232 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32237 ac_aux_dir='$ac_aux_dir'
32238 xsi_shell='$xsi_shell'
32239 lt_shell_append='$lt_shell_append'
32241 # See if we are running on zsh, and set the options which allow our
32242 # commands through without removal of \ escapes INIT.
32243 if test -n "\${ZSH_VERSION+set}" ; then
32244 setopt NO_GLOB_SUBST
32250 TIMESTAMP='$TIMESTAMP'
32258 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32259 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32261 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32262 # Capture the value of LINGUAS because we need it to compute CATALOGS.
32263 LINGUAS="${LINGUAS-%UNSET%}"
32268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32270 # Handling of arguments.
32271 for ac_config_target in $ac_config_targets
32273 case $ac_config_target in
32274 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32275 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32276 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32277 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32278 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32279 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32280 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32281 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32282 "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32283 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32284 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32285 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32286 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32287 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32288 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32289 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32290 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32291 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32292 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32293 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32294 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32295 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32296 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32297 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32298 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32299 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32300 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32301 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32302 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32303 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32304 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32305 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32306 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32307 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32308 "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32309 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32310 "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32311 "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32312 "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32313 "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32314 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32315 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32316 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32317 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32318 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32319 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32320 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32321 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32322 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32323 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32324 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32325 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32326 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32327 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32328 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32329 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32330 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32331 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32332 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32333 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32334 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32335 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32336 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32337 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32338 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32339 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32340 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32341 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32342 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32343 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32344 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32345 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32346 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32347 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32348 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32349 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32350 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32351 "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32352 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32353 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32354 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32355 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32356 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32357 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32358 "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32359 "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32360 "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32361 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32362 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32363 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32364 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32365 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32366 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32367 "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32368 "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32369 "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32370 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32371 "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32372 "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32373 "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32374 "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32375 "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32376 "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32377 "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32378 "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32379 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32380 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32382 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32387 # If the user did not use the arguments to specify the items to instantiate,
32388 # then the envvar interface is used. Set only those that are not.
32389 # We use the long form for the default assignment because of an extremely
32390 # bizarre bug on SunOS 4.1.3.
32391 if $ac_need_defaults; then
32392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32397 # Have a temporary directory for convenience. Make it in the build tree
32398 # simply because there is no reason against having it here, and in addition,
32399 # creating and moving files from /tmp can sometimes cause problems.
32400 # Hook for its removal unless debugging.
32401 # Note that there is a small window in which the directory will not be cleaned:
32402 # after its creation but before its name has been assigned to `$tmp'.
32406 trap 'exit_status=$?
32407 : "${ac_tmp:=$tmp}"
32408 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32410 trap 'as_fn_exit 1' 1 2 13 15
32412 # Create a (secure) tmp directory for tmp files.
32415 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32419 tmp=./conf$$-$RANDOM
32420 (umask 077 && mkdir "$tmp")
32421 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32424 # Set up the scripts for CONFIG_FILES section.
32425 # No need to generate them if there are no CONFIG_FILES.
32426 # This happens for instance with `./config.status config.h'.
32427 if test -n "$CONFIG_FILES"; then
32429 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32430 ac_cs_awk_getline=:
32431 ac_cs_awk_pipe_init=
32432 ac_cs_awk_read_file='
32433 while ((getline aline < (F[key])) > 0)
32436 ac_cs_awk_pipe_fini=
32438 ac_cs_awk_getline=false
32439 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32440 ac_cs_awk_read_file='
32442 print "cat " F[key] " &&"
32443 '$ac_cs_awk_pipe_init
32444 # The final `:' finishes the AND list.
32445 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32447 ac_cr=`echo X | tr X '\015'`
32448 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32449 # But we know of no other shell where ac_cr would be empty at this
32450 # point, so we can use a bashism as a fallback.
32451 if test "x$ac_cr" = x; then
32452 eval ac_cr=\$\'\\r\'
32454 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32455 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32458 ac_cs_awk_cr=$ac_cr
32461 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32464 # Create commands to substitute file output variables.
32466 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32467 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32468 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32471 } >conf$$files.sh &&
32472 . ./conf$$files.sh ||
32473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32474 rm -f conf$$files.sh
32477 echo "cat >conf$$subs.awk <<_ACEOF" &&
32478 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32480 } >conf$$subs.sh ||
32481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32482 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32484 for ac_last_try in false false false false false :; do
32485 . ./conf$$subs.sh ||
32486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32488 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32489 if test $ac_delim_n = $ac_delim_num; then
32491 elif $ac_last_try; then
32492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32497 rm -f conf$$subs.sh
32499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32500 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32504 s/^/S["/; s/!.*/"]=/
32514 s/\(.\{148\}\)..*/\1/
32516 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32521 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32528 s/\(.\{148\}\)..*/\1/
32530 s/["\\]/\\&/g; s/^/"/; s/$/"/
32534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32539 ' <conf$$subs.awk | sed '
32544 ' >>$CONFIG_STATUS || ac_write_fail=1
32545 rm -f conf$$subs.awk
32546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32548 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32549 for (key in S) S_is_set[key] = 1
32551 \$ac_cs_awk_pipe_init
32555 nfields = split(line, field, "@")
32557 len = length(field[1])
32558 for (i = 2; i < nfields; i++) {
32560 keylen = length(key)
32561 if (S_is_set[key]) {
32563 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32564 len += length(value) + length(field[++i])
32569 if (nfields == 3 && !substed) {
32571 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32572 \$ac_cs_awk_read_file
32578 \$ac_cs_awk_pipe_fini
32581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32582 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32583 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32586 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32587 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32590 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32591 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32592 # trailing colons and then remove the whole line if VPATH becomes empty
32593 # (actually we leave an empty line to preserve line numbers).
32594 if test "x$srcdir" = x.; then
32595 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32614 fi # test -n "$CONFIG_FILES"
32616 # Set up the scripts for CONFIG_HEADERS section.
32617 # No need to generate them if there are no CONFIG_HEADERS.
32618 # This happens for instance with `./config.status Makefile'.
32619 if test -n "$CONFIG_HEADERS"; then
32620 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32624 # Transform confdefs.h into an awk script `defines.awk', embedded as
32625 # here-document in config.status, that substitutes the proper values into
32626 # config.h.in to produce config.h.
32628 # Create a delimiter string that does not exist in confdefs.h, to ease
32629 # handling of long lines.
32631 for ac_last_try in false false :; do
32632 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32633 if test -z "$ac_tt"; then
32635 elif $ac_last_try; then
32636 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32642 # For the awk script, D is an array of macro values keyed by name,
32643 # likewise P contains macro parameters if any. Preserve backslash
32644 # newline sequences.
32646 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32648 s/.\{148\}/&'"$ac_delim"'/g
32651 s/^[ ]*#[ ]*define[ ][ ]*/ /
32658 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32660 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32664 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32665 D["\1"]=" \3\\\\\\n"\\/p
32667 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32672 s/.\{148\}/&'"$ac_delim"'/g
32677 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32680 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32682 ' <confdefs.h | sed '
32683 s/'"$ac_delim"'/"\\\
32684 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32687 for (key in D) D_is_set[key] = 1
32690 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32692 split(line, arg, " ")
32693 if (arg[1] == "#") {
32697 defundef = substr(arg[1], 2)
32700 split(mac1, mac2, "(") #)
32702 prefix = substr(line, 1, index(line, defundef) - 1)
32703 if (D_is_set[macro]) {
32704 # Preserve the white space surrounding the "#".
32705 print prefix "define", macro P[macro] D[macro]
32708 # Replace #undef with comments. This is necessary, for example,
32709 # in the case of _POSIX_SOURCE, which is predefined and required
32710 # on some systems where configure will not decide to define it.
32711 if (defundef == "undef") {
32712 print "/*", prefix defundef, macro, "*/"
32720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32721 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32722 fi # test -n "$CONFIG_HEADERS"
32725 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32730 :[FHLC]) ac_mode=$ac_tag; continue;;
32732 case $ac_mode$ac_tag in
32734 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32735 :[FH]-) ac_tag=-:-;;
32736 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32753 -) ac_f="$ac_tmp/stdin";;
32754 *) # Look for the file first in the build tree, then in the source tree
32755 # (if the path is not absolute). The absolute path cannot be DOS-style,
32756 # because $ac_f cannot contain `:'.
32760 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32762 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32764 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32765 as_fn_append ac_file_inputs " '$ac_f'"
32768 # Let's still pretend it is `configure' which instantiates (i.e., don't
32769 # use $as_me), people would be surprised to read:
32770 # /* config.h. Generated by config.status. */
32771 configure_input='Generated from '`
32772 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32774 if test x"$ac_file" != x-; then
32775 configure_input="$ac_file. $configure_input"
32776 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32777 $as_echo "$as_me: creating $ac_file" >&6;}
32779 # Neutralize special characters interpreted by sed in replacement strings.
32780 case $configure_input in #(
32781 *\&* | *\|* | *\\* )
32782 ac_sed_conf_input=`$as_echo "$configure_input" |
32783 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32784 *) ac_sed_conf_input=$configure_input;;
32788 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32794 ac_dir=`$as_dirname -- "$ac_file" ||
32795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32796 X"$ac_file" : 'X\(//\)[^/]' \| \
32797 X"$ac_file" : 'X\(//\)$' \| \
32798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32799 $as_echo X"$ac_file" |
32800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32804 /^X\(\/\/\)[^/].*/{
32817 as_dir="$ac_dir"; as_fn_mkdir_p
32821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32823 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32824 # A ".." for each directory in $ac_dir_suffix.
32825 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32826 case $ac_top_builddir_sub in
32827 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32828 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32831 ac_abs_top_builddir=$ac_pwd
32832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32833 # for backward compatibility:
32834 ac_top_builddir=$ac_top_build_prefix
32837 .) # We are building in place.
32839 ac_top_srcdir=$ac_top_builddir_sub
32840 ac_abs_top_srcdir=$ac_pwd ;;
32841 [\\/]* | ?:[\\/]* ) # Absolute name.
32842 ac_srcdir=$srcdir$ac_dir_suffix;
32843 ac_top_srcdir=$srcdir
32844 ac_abs_top_srcdir=$srcdir ;;
32845 *) # Relative name.
32846 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32847 ac_top_srcdir=$ac_top_build_prefix$srcdir
32848 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32860 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32861 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32866 # If the template does not know about datarootdir, expand it.
32867 # FIXME: This hack should be removed a few years after 2.60.
32868 ac_datarootdir_hack=; ac_datarootdir_seen=
32879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32880 *datarootdir*) ac_datarootdir_seen=yes;;
32881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32886 ac_datarootdir_hack='
32887 s&@datadir@&$datadir&g
32888 s&@docdir@&$docdir&g
32889 s&@infodir@&$infodir&g
32890 s&@localedir@&$localedir&g
32891 s&@mandir@&$mandir&g
32892 s&\\\${datarootdir}&$datarootdir&g' ;;
32896 # Neutralize VPATH when `$srcdir' = `.'.
32897 # Shell code in configure.ac might set extrasub.
32898 # FIXME: do we really want to maintain this feature?
32899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32900 ac_sed_extra="$ac_vpsub
32903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32906 s|@configure_input@|$ac_sed_conf_input|;t t
32907 s&@top_builddir@&$ac_top_builddir_sub&;t t
32908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32909 s&@srcdir@&$ac_srcdir&;t t
32910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32911 s&@top_srcdir@&$ac_top_srcdir&;t t
32912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32913 s&@builddir@&$ac_builddir&;t t
32914 s&@abs_builddir@&$ac_abs_builddir&;t t
32915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32916 s&@INSTALL@&$ac_INSTALL&;t t
32917 $ac_datarootdir_hack
32919 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32920 if $ac_cs_awk_getline; then
32921 $AWK -f "$ac_tmp/subs.awk"
32923 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32925 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32928 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32930 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32932 which seems to be undefined. Please make sure it is defined" >&5
32933 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32934 which seems to be undefined. Please make sure it is defined" >&2;}
32936 rm -f "$ac_tmp/stdin"
32938 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32939 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32947 if test x"$ac_file" != x-; then
32949 $as_echo "/* $configure_input */" \
32950 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32951 } >"$ac_tmp/config.h" \
32952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32953 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32955 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32958 mv "$ac_tmp/config.h" "$ac_file" \
32959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32962 $as_echo "/* $configure_input */" \
32963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32964 || as_fn_error $? "could not create -" "$LINENO" 5
32968 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32969 $as_echo "$as_me: executing $ac_file commands" >&6;}
32974 case $ac_file$ac_mode in
32977 # See if we are running on zsh, and set the options which allow our
32978 # commands through without removal of \ escapes.
32979 if test -n "${ZSH_VERSION+set}" ; then
32980 setopt NO_GLOB_SUBST
32983 cfgfile="${ofile}T"
32984 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32987 cat <<_LT_EOF >> "$cfgfile"
32990 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32991 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32993 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32995 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32996 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32998 # Written by Gordon Matzigkeit, 1996
33000 # This file is part of GNU Libtool.
33002 # GNU Libtool is free software; you can redistribute it and/or
33003 # modify it under the terms of the GNU General Public License as
33004 # published by the Free Software Foundation; either version 2 of
33005 # the License, or (at your option) any later version.
33007 # As a special exception to the GNU General Public License,
33008 # if you distribute this file as part of a program or library that
33009 # is built using GNU Libtool, you may include this file under the
33010 # same distribution terms that you use for the rest of that program.
33012 # GNU Libtool is distributed in the hope that it will be useful,
33013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33015 # GNU General Public License for more details.
33017 # You should have received a copy of the GNU General Public License
33018 # along with GNU Libtool; see the file COPYING. If not, a copy
33019 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33020 # obtained by writing to the Free Software Foundation, Inc.,
33021 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33024 # The names of the tagged configurations supported by this script.
33025 available_tags="CXX "
33027 # ### BEGIN LIBTOOL CONFIG
33029 # Which release of libtool.m4 was used?
33030 macro_version=$macro_version
33031 macro_revision=$macro_revision
33033 # Whether or not to build shared libraries.
33034 build_libtool_libs=$enable_shared
33036 # Whether or not to build static libraries.
33037 build_old_libs=$enable_static
33039 # What type of objects to build.
33042 # Whether or not to optimize for fast installation.
33043 fast_install=$enable_fast_install
33045 # Shell to use when invoking shell scripts.
33048 # An echo program that protects backslashes.
33051 # The PATH separator for the build system.
33052 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33055 host_alias=$host_alias
33059 # The build system.
33060 build_alias=$build_alias
33064 # A sed program that does not truncate output.
33067 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33068 Xsed="\$SED -e 1s/^X//"
33070 # A grep program that handles long lines.
33076 # A literal string matcher.
33079 # A BSD- or MS-compatible name lister.
33082 # Whether we need soft or hard links.
33085 # What is the maximum length of a command?
33086 max_cmd_len=$max_cmd_len
33088 # Object file suffix (normally "o").
33091 # Executable file suffix (normally "").
33094 # whether the shell understands "unset".
33097 # turn spaces into newlines.
33100 # turn newlines into spaces.
33103 # convert \$build file names to \$host format.
33104 to_host_file_cmd=$lt_cv_to_host_file_cmd
33106 # convert \$build files to toolchain format.
33107 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33109 # An object symbol dumper.
33110 OBJDUMP=$lt_OBJDUMP
33112 # Method to check whether dependent libraries are shared objects.
33113 deplibs_check_method=$lt_deplibs_check_method
33115 # Command to use when deplibs_check_method = "file_magic".
33116 file_magic_cmd=$lt_file_magic_cmd
33118 # How to find potential files when deplibs_check_method = "file_magic".
33119 file_magic_glob=$lt_file_magic_glob
33121 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33122 want_nocaseglob=$lt_want_nocaseglob
33124 # DLL creation program.
33125 DLLTOOL=$lt_DLLTOOL
33127 # Command to associate shared and link libraries.
33128 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33133 # Flags to create an archive.
33134 AR_FLAGS=$lt_AR_FLAGS
33136 # How to feed a file listing to the archiver.
33137 archiver_list_spec=$lt_archiver_list_spec
33139 # A symbol stripping program.
33142 # Commands used to install an old-style archive.
33144 old_postinstall_cmds=$lt_old_postinstall_cmds
33145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33147 # Whether to use a lock for old archive extraction.
33148 lock_old_archive_extraction=$lock_old_archive_extraction
33153 # LTCC compiler flags.
33154 LTCFLAGS=$lt_CFLAGS
33156 # Take the output of nm and produce a listing of raw symbols and C names.
33157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33159 # Transform the output of nm in a proper C declaration.
33160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33162 # Transform the output of nm in a C name address pair.
33163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33165 # Transform the output of nm in a C name address pair when lib prefix is needed.
33166 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33168 # Specify filename containing input files for \$NM.
33169 nm_file_list_spec=$lt_nm_file_list_spec
33171 # The root where to search for dependent libraries,and in which our libraries should be installed.
33172 lt_sysroot=$lt_sysroot
33174 # The name of the directory that contains temporary libtool files.
33177 # Used to examine libraries when file_magic_cmd begins with "file".
33178 MAGIC_CMD=$MAGIC_CMD
33180 # Must we lock files when doing compilation?
33181 need_locks=$lt_need_locks
33184 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33186 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33187 DSYMUTIL=$lt_DSYMUTIL
33189 # Tool to change global to local symbols on Mac OS X.
33192 # Tool to manipulate fat objects and archives on Mac OS X.
33195 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33198 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33199 OTOOL64=$lt_OTOOL64
33201 # Old archive suffix (normally "a").
33204 # Shared library suffix (normally ".so").
33205 shrext_cmds=$lt_shrext_cmds
33207 # The commands to extract the exported symbol list from a shared archive.
33208 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33210 # Variables whose values should be saved in libtool wrapper scripts and
33211 # restored at link time.
33212 variables_saved_for_relink=$lt_variables_saved_for_relink
33214 # Do we need the "lib" prefix for modules?
33215 need_lib_prefix=$need_lib_prefix
33217 # Do we need a version for libraries?
33218 need_version=$need_version
33220 # Library versioning type.
33221 version_type=$version_type
33223 # Shared library runtime path variable.
33224 runpath_var=$runpath_var
33226 # Shared library path variable.
33227 shlibpath_var=$shlibpath_var
33229 # Is shlibpath searched before the hard-coded library search path?
33230 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33232 # Format of library name prefix.
33233 libname_spec=$lt_libname_spec
33235 # List of archive names. First name is the real one, the rest are links.
33236 # The last name is the one that the linker finds with -lNAME
33237 library_names_spec=$lt_library_names_spec
33239 # The coded name of the library, if different from the real name.
33240 soname_spec=$lt_soname_spec
33242 # Permission mode override for installation of shared libraries.
33243 install_override_mode=$lt_install_override_mode
33245 # Command to use after installation of a shared archive.
33246 postinstall_cmds=$lt_postinstall_cmds
33248 # Command to use after uninstallation of a shared archive.
33249 postuninstall_cmds=$lt_postuninstall_cmds
33251 # Commands used to finish a libtool library installation in a directory.
33252 finish_cmds=$lt_finish_cmds
33254 # As "finish_cmds", except a single script fragment to be evaled but
33256 finish_eval=$lt_finish_eval
33258 # Whether we should hardcode library paths into libraries.
33259 hardcode_into_libs=$hardcode_into_libs
33261 # Compile-time system search path for libraries.
33262 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33264 # Run-time system search path for libraries.
33265 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33267 # Whether dlopen is supported.
33268 dlopen_support=$enable_dlopen
33270 # Whether dlopen of programs is supported.
33271 dlopen_self=$enable_dlopen_self
33273 # Whether dlopen of statically linked programs is supported.
33274 dlopen_self_static=$enable_dlopen_self_static
33276 # Commands to strip libraries.
33277 old_striplib=$lt_old_striplib
33278 striplib=$lt_striplib
33281 # The linker used to build libraries.
33284 # How to create reloadable object files.
33285 reload_flag=$lt_reload_flag
33286 reload_cmds=$lt_reload_cmds
33288 # Commands used to build an old-style archive.
33289 old_archive_cmds=$lt_old_archive_cmds
33291 # A language specific compiler.
33294 # Is the compiler the GNU compiler?
33297 # Compiler flag to turn off builtin functions.
33298 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33300 # Additional compiler flags for building library objects.
33301 pic_flag=$lt_lt_prog_compiler_pic
33303 # How to pass a linker flag through the compiler.
33304 wl=$lt_lt_prog_compiler_wl
33306 # Compiler flag to prevent dynamic linking.
33307 link_static_flag=$lt_lt_prog_compiler_static
33309 # Does compiler simultaneously support -c and -o options?
33310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33312 # Whether or not to add -lc for building shared libraries.
33313 build_libtool_need_lc=$archive_cmds_need_lc
33315 # Whether or not to disallow shared libs when runtime libs are static.
33316 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33318 # Compiler flag to allow reflexive dlopens.
33319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33321 # Compiler flag to generate shared objects directly from archives.
33322 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33324 # Whether the compiler copes with passing no objects directly.
33325 compiler_needs_object=$lt_compiler_needs_object
33327 # Create an old-style archive from a shared archive.
33328 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33330 # Create a temporary old-style archive to link instead of a shared archive.
33331 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33333 # Commands used to build a shared archive.
33334 archive_cmds=$lt_archive_cmds
33335 archive_expsym_cmds=$lt_archive_expsym_cmds
33337 # Commands used to build a loadable module if different from building
33338 # a shared archive.
33339 module_cmds=$lt_module_cmds
33340 module_expsym_cmds=$lt_module_expsym_cmds
33342 # Whether we are building with GNU ld or not.
33343 with_gnu_ld=$lt_with_gnu_ld
33345 # Flag that allows shared libraries with undefined symbols to be built.
33346 allow_undefined_flag=$lt_allow_undefined_flag
33348 # Flag that enforces no undefined symbols.
33349 no_undefined_flag=$lt_no_undefined_flag
33351 # Flag to hardcode \$libdir into a binary during linking.
33352 # This must work even if \$libdir does not exist
33353 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33355 # Whether we need a single "-rpath" flag with a separated argument.
33356 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33358 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33359 # DIR into the resulting binary.
33360 hardcode_direct=$hardcode_direct
33362 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33363 # DIR into the resulting binary and the resulting library dependency is
33364 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33365 # library is relocated.
33366 hardcode_direct_absolute=$hardcode_direct_absolute
33368 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33369 # into the resulting binary.
33370 hardcode_minus_L=$hardcode_minus_L
33372 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33373 # into the resulting binary.
33374 hardcode_shlibpath_var=$hardcode_shlibpath_var
33376 # Set to "yes" if building a shared library automatically hardcodes DIR
33377 # into the library and all subsequent libraries and executables linked
33379 hardcode_automatic=$hardcode_automatic
33381 # Set to yes if linker adds runtime paths of dependent libraries
33382 # to runtime path list.
33383 inherit_rpath=$inherit_rpath
33385 # Whether libtool must link a program against all its dependency libraries.
33386 link_all_deplibs=$link_all_deplibs
33388 # Set to "yes" if exported symbols are required.
33389 always_export_symbols=$always_export_symbols
33391 # The commands to list exported symbols.
33392 export_symbols_cmds=$lt_export_symbols_cmds
33394 # Symbols that should not be listed in the preloaded symbols.
33395 exclude_expsyms=$lt_exclude_expsyms
33397 # Symbols that must always be exported.
33398 include_expsyms=$lt_include_expsyms
33400 # Commands necessary for linking programs (against libraries) with templates.
33401 prelink_cmds=$lt_prelink_cmds
33403 # Commands necessary for finishing linking programs.
33404 postlink_cmds=$lt_postlink_cmds
33406 # Specify filename containing input files.
33407 file_list_spec=$lt_file_list_spec
33409 # How to hardcode a shared library path into an executable.
33410 hardcode_action=$hardcode_action
33412 # The directories searched by this compiler when creating a shared library.
33413 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33415 # Dependencies to place before and after the objects being linked to
33416 # create a shared library.
33417 predep_objects=$lt_predep_objects
33418 postdep_objects=$lt_postdep_objects
33419 predeps=$lt_predeps
33420 postdeps=$lt_postdeps
33422 # The library search path used internally by the compiler when linking
33423 # a shared library.
33424 compiler_lib_search_path=$lt_compiler_lib_search_path
33426 # ### END LIBTOOL CONFIG
33432 cat <<\_LT_EOF >> "$cfgfile"
33433 # AIX sometimes has problems with the GCC collect2 program. For some
33434 # reason, if we set the COLLECT_NAMES environment variable, the problems
33435 # vanish in a puff of smoke.
33436 if test "X${COLLECT_NAMES+set}" != Xset; then
33438 export COLLECT_NAMES
33445 ltmain="$ac_aux_dir/ltmain.sh"
33448 # We use sed instead of cat because bash on DJGPP gets confused if
33449 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33450 # text mode, it properly converts lines to CR/LF. This bash problem
33451 # is reportedly fixed, but why not run on old versions too?
33452 sed '$q' "$ltmain" >> "$cfgfile" \
33453 || (rm -f "$cfgfile"; exit 1)
33455 if test x"$xsi_shell" = xyes; then
33456 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33460 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33461 \ * ) func_dirname_result="${3}" ;;\
33463 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33464 && mv -f "$cfgfile.tmp" "$cfgfile" \
33465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33466 test 0 -eq $? || _lt_function_replace_fail=:
33469 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33472 \ func_basename_result="${1##*/}"\
33473 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33474 && mv -f "$cfgfile.tmp" "$cfgfile" \
33475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33476 test 0 -eq $? || _lt_function_replace_fail=:
33479 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33480 func_dirname_and_basename ()\
33483 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33484 \ * ) func_dirname_result="${3}" ;;\
33486 \ func_basename_result="${1##*/}"\
33487 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33488 && mv -f "$cfgfile.tmp" "$cfgfile" \
33489 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33490 test 0 -eq $? || _lt_function_replace_fail=:
33493 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33496 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33497 \ # positional parameters, so assign one to ordinary parameter first.\
33498 \ func_stripname_result=${3}\
33499 \ func_stripname_result=${func_stripname_result#"${1}"}\
33500 \ func_stripname_result=${func_stripname_result%"${2}"}\
33501 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33502 && mv -f "$cfgfile.tmp" "$cfgfile" \
33503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33504 test 0 -eq $? || _lt_function_replace_fail=:
33507 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33508 func_split_long_opt ()\
33510 \ func_split_long_opt_name=${1%%=*}\
33511 \ func_split_long_opt_arg=${1#*=}\
33512 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33513 && mv -f "$cfgfile.tmp" "$cfgfile" \
33514 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33515 test 0 -eq $? || _lt_function_replace_fail=:
33518 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33519 func_split_short_opt ()\
33521 \ func_split_short_opt_arg=${1#??}\
33522 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33523 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33524 && mv -f "$cfgfile.tmp" "$cfgfile" \
33525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33526 test 0 -eq $? || _lt_function_replace_fail=:
33529 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33533 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33534 \ *) func_lo2o_result=${1} ;;\
33536 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33537 && mv -f "$cfgfile.tmp" "$cfgfile" \
33538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33539 test 0 -eq $? || _lt_function_replace_fail=:
33542 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33545 func_xform_result=${1%.*}.lo\
33546 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33547 && mv -f "$cfgfile.tmp" "$cfgfile" \
33548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33549 test 0 -eq $? || _lt_function_replace_fail=:
33552 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33555 func_arith_result=$(( $* ))\
33556 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33557 && mv -f "$cfgfile.tmp" "$cfgfile" \
33558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33559 test 0 -eq $? || _lt_function_replace_fail=:
33562 sed -e '/^func_len ()$/,/^} # func_len /c\
33565 func_len_result=${#1}\
33566 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33567 && mv -f "$cfgfile.tmp" "$cfgfile" \
33568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33569 test 0 -eq $? || _lt_function_replace_fail=:
33573 if test x"$lt_shell_append" = xyes; then
33574 sed -e '/^func_append ()$/,/^} # func_append /c\
33577 eval "${1}+=\\${2}"\
33578 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33579 && mv -f "$cfgfile.tmp" "$cfgfile" \
33580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33581 test 0 -eq $? || _lt_function_replace_fail=:
33584 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33585 func_append_quoted ()\
33587 \ func_quote_for_eval "${2}"\
33588 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33589 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33590 && mv -f "$cfgfile.tmp" "$cfgfile" \
33591 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33592 test 0 -eq $? || _lt_function_replace_fail=:
33595 # Save a `func_append' function call where possible by direct use of '+='
33596 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33597 && mv -f "$cfgfile.tmp" "$cfgfile" \
33598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33599 test 0 -eq $? || _lt_function_replace_fail=:
33601 # Save a `func_append' function call even when '+=' is not available
33602 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33603 && mv -f "$cfgfile.tmp" "$cfgfile" \
33604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33605 test 0 -eq $? || _lt_function_replace_fail=:
33608 if test x"$_lt_function_replace_fail" = x":"; then
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33610 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33614 mv -f "$cfgfile" "$ofile" ||
33615 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33619 cat <<_LT_EOF >> "$ofile"
33621 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33623 # The linker used to build libraries.
33626 # How to create reloadable object files.
33627 reload_flag=$lt_reload_flag_CXX
33628 reload_cmds=$lt_reload_cmds_CXX
33630 # Commands used to build an old-style archive.
33631 old_archive_cmds=$lt_old_archive_cmds_CXX
33633 # A language specific compiler.
33634 CC=$lt_compiler_CXX
33636 # Is the compiler the GNU compiler?
33639 # Compiler flag to turn off builtin functions.
33640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33642 # Additional compiler flags for building library objects.
33643 pic_flag=$lt_lt_prog_compiler_pic_CXX
33645 # How to pass a linker flag through the compiler.
33646 wl=$lt_lt_prog_compiler_wl_CXX
33648 # Compiler flag to prevent dynamic linking.
33649 link_static_flag=$lt_lt_prog_compiler_static_CXX
33651 # Does compiler simultaneously support -c and -o options?
33652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33654 # Whether or not to add -lc for building shared libraries.
33655 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33657 # Whether or not to disallow shared libs when runtime libs are static.
33658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33660 # Compiler flag to allow reflexive dlopens.
33661 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33663 # Compiler flag to generate shared objects directly from archives.
33664 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33666 # Whether the compiler copes with passing no objects directly.
33667 compiler_needs_object=$lt_compiler_needs_object_CXX
33669 # Create an old-style archive from a shared archive.
33670 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33672 # Create a temporary old-style archive to link instead of a shared archive.
33673 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33675 # Commands used to build a shared archive.
33676 archive_cmds=$lt_archive_cmds_CXX
33677 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33679 # Commands used to build a loadable module if different from building
33680 # a shared archive.
33681 module_cmds=$lt_module_cmds_CXX
33682 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33684 # Whether we are building with GNU ld or not.
33685 with_gnu_ld=$lt_with_gnu_ld_CXX
33687 # Flag that allows shared libraries with undefined symbols to be built.
33688 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33690 # Flag that enforces no undefined symbols.
33691 no_undefined_flag=$lt_no_undefined_flag_CXX
33693 # Flag to hardcode \$libdir into a binary during linking.
33694 # This must work even if \$libdir does not exist
33695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33697 # Whether we need a single "-rpath" flag with a separated argument.
33698 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33700 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33701 # DIR into the resulting binary.
33702 hardcode_direct=$hardcode_direct_CXX
33704 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33705 # DIR into the resulting binary and the resulting library dependency is
33706 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33707 # library is relocated.
33708 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33710 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33711 # into the resulting binary.
33712 hardcode_minus_L=$hardcode_minus_L_CXX
33714 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33715 # into the resulting binary.
33716 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33718 # Set to "yes" if building a shared library automatically hardcodes DIR
33719 # into the library and all subsequent libraries and executables linked
33721 hardcode_automatic=$hardcode_automatic_CXX
33723 # Set to yes if linker adds runtime paths of dependent libraries
33724 # to runtime path list.
33725 inherit_rpath=$inherit_rpath_CXX
33727 # Whether libtool must link a program against all its dependency libraries.
33728 link_all_deplibs=$link_all_deplibs_CXX
33730 # Set to "yes" if exported symbols are required.
33731 always_export_symbols=$always_export_symbols_CXX
33733 # The commands to list exported symbols.
33734 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33736 # Symbols that should not be listed in the preloaded symbols.
33737 exclude_expsyms=$lt_exclude_expsyms_CXX
33739 # Symbols that must always be exported.
33740 include_expsyms=$lt_include_expsyms_CXX
33742 # Commands necessary for linking programs (against libraries) with templates.
33743 prelink_cmds=$lt_prelink_cmds_CXX
33745 # Commands necessary for finishing linking programs.
33746 postlink_cmds=$lt_postlink_cmds_CXX
33748 # Specify filename containing input files.
33749 file_list_spec=$lt_file_list_spec_CXX
33751 # How to hardcode a shared library path into an executable.
33752 hardcode_action=$hardcode_action_CXX
33754 # The directories searched by this compiler when creating a shared library.
33755 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33757 # Dependencies to place before and after the objects being linked to
33758 # create a shared library.
33759 predep_objects=$lt_predep_objects_CXX
33760 postdep_objects=$lt_postdep_objects_CXX
33761 predeps=$lt_predeps_CXX
33762 postdeps=$lt_postdeps_CXX
33764 # The library search path used internally by the compiler when linking
33765 # a shared library.
33766 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33768 # ### END LIBTOOL TAG CONFIG: CXX
33773 for ac_file in $CONFIG_FILES; do
33774 # Support "outfile[:infile[:infile...]]"
33776 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33778 # PO directories have a Makefile.in generated from Makefile.in.in.
33779 case "$ac_file" in */Makefile.in)
33780 # Adjust a relative srcdir.
33781 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33782 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33783 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33784 # In autoconf-2.13 it is called $ac_given_srcdir.
33785 # In autoconf-2.50 it is called $srcdir.
33786 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33787 case "$ac_given_srcdir" in
33788 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33789 /*) top_srcdir="$ac_given_srcdir" ;;
33790 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
33792 # Treat a directory as a PO directory if and only if it has a
33793 # POTFILES.in file. This allows packages to have multiple PO
33794 # directories under different names or in different locations.
33795 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33796 rm -f "$ac_dir/POTFILES"
33797 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33798 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33799 POMAKEFILEDEPS="POTFILES.in"
33800 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33801 # on $ac_dir but don't depend on user-specified configuration
33803 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33804 # The LINGUAS file contains the set of available languages.
33805 if test -n "$OBSOLETE_ALL_LINGUAS"; then
33806 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33808 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33809 # Hide the ALL_LINGUAS assigment from automake.
33810 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33811 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33813 # The set of available languages was given in configure.in.
33814 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33817 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33818 # Compute UPDATEPOFILES
33819 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33820 # Compute DUMMYPOFILES
33821 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33823 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33824 case "$ac_given_srcdir" in
33826 *) srcdirpre='$(srcdir)/' ;;
33832 for lang in $ALL_LINGUAS; do
33833 POFILES="$POFILES $srcdirpre$lang.po"
33834 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33835 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33836 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33838 # CATALOGS depends on both $ac_dir and the user's LINGUAS
33839 # environment variable.
33841 if test -n "$ALL_LINGUAS"; then
33842 for presentlang in $ALL_LINGUAS; do
33844 if test "%UNSET%" != "$LINGUAS"; then
33845 desiredlanguages="$LINGUAS"
33847 desiredlanguages="$ALL_LINGUAS"
33849 for desiredlang in $desiredlanguages; do
33850 # Use the presentlang catalog if desiredlang is
33851 # a. equal to presentlang, or
33852 # b. a variant of presentlang (because in this case,
33853 # presentlang can be used as a fallback for messages
33854 # which are not translated in the desiredlang catalog).
33855 case "$desiredlang" in
33856 "$presentlang"*) useit=yes;;
33859 if test $useit = yes; then
33860 INST_LINGUAS="$INST_LINGUAS $presentlang"
33865 if test -n "$INST_LINGUAS"; then
33866 for lang in $INST_LINGUAS; do
33867 CATALOGS="$CATALOGS $lang.gmo"
33870 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33871 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"
33872 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33873 if test -f "$f"; then
33875 *.orig | *.bak | *~) ;;
33876 *) cat "$f" >> "$ac_dir/Makefile" ;;
33893 ac_clean_files=$ac_clean_files_save
33895 test $ac_write_fail = 0 ||
33896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33899 # configure is writing to config.log, and then calls config.status.
33900 # config.status does its own redirection, appending to config.log.
33901 # Unfortunately, on DOS this fails, as config.log is still kept open
33902 # by configure, so config.status won't be able to write to it; its
33903 # output is simply discarded. So we exec the FD to /dev/null,
33904 # effectively closing config.log, so it can be properly (re)opened and
33905 # appended to by config.status. When coming back to configure, we
33906 # need to make the FD available again.
33907 if test "$no_create" != yes; then
33909 ac_config_status_args=
33910 test "$silent" = yes &&
33911 ac_config_status_args="$ac_config_status_args --quiet"
33913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33916 # would make configure fail if this is the last instruction.
33917 $ac_cs_success || as_fn_exit 1
33919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33921 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33925 if test "${support_bat}" = "yes" ; then
33926 if test "x$QMAKE" = "xnone"; then
33927 as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33931 echo "Creating bat Makefile"
33937 ${MAKE:-make} clean
33941 if test X"$GCC" = "Xyes" ; then
33942 echo "Doing make of dependencies"
33943 ${MAKE:-make} depend
33947 chmod 755 install_conf_file build-depkgs-qt-console
33951 chmod 755 bacula btraceback mtx-changer
33952 chmod 755 dvd-handler dvd-simulator
33953 chmod 755 bconsole disk-changer devel_bacula logrotate
33957 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
33958 chmod 755 $c/update_postgresql_tables_10_to_11
33959 chmod 755 $c/update_mysql_tables_11_to_12 $c/update_sqlite3_tables_11_to_12
33960 chmod 755 $c/update_postgresql_tables_11_to_12
33965 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
33966 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
33968 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
33969 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
33971 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
33972 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
33974 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
33975 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
33977 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
33978 chmod 755 $c/sqlite
33981 chmod 755 $c/install-default-backend
33983 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33984 largefile_support="yes"
33987 if test X"$GCC" = "Xyes" ; then
33988 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33989 if test "x${CCVERSION}" = "x" ; then
33990 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33992 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33993 if test x"${CXXVERSION}" = x ; then
33994 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33998 # clean up any old junk
34002 ${MAKE:-make} clean
34005 Configuration on `date`:
34007 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
34008 Bacula version: ${BACULA} ${VERSION} (${DATE})
34009 Source code location: ${srcdir}
34010 Install binaries: ${sbindir}
34011 Install libraries: ${libdir}
34012 Install config files: ${sysconfdir}
34013 Scripts directory: ${scriptdir}
34014 Archive directory: ${archivedir}
34015 Working directory: ${working_dir}
34016 PID directory: ${piddir}
34017 Subsys directory: ${subsysdir}
34018 Man directory: ${mandir}
34019 Data directory: ${datarootdir}
34020 Plugin directory: ${plugindir}
34021 C Compiler: ${CC} ${CCVERSION}
34022 C++ Compiler: ${CXX} ${CXXVERSION}
34023 Compiler flags: ${WCFLAGS} ${CFLAGS}
34024 Linker flags: ${WLDFLAGS} ${LDFLAGS}
34026 Statically Linked Tools: ${support_static_tools}
34027 Statically Linked FD: ${support_static_fd}
34028 Statically Linked SD: ${support_static_sd}
34029 Statically Linked DIR: ${support_static_dir}
34030 Statically Linked CONS: ${support_static_cons}
34031 Database backends: ${db_backends}
34032 Database port: ${db_port}
34033 Database name: ${db_name}
34034 Database user: ${db_user}
34035 Database SSL options: ${db_ssl_options}
34037 Job Output Email: ${job_email}
34038 Traceback Email: ${dump_email}
34039 SMTP Host Address: ${smtp_host}
34041 Director Port: ${dir_port}
34042 File daemon Port: ${fd_port}
34043 Storage daemon Port: ${sd_port}
34045 Director User: ${dir_user}
34046 Director Group: ${dir_group}
34047 Storage Daemon User: ${sd_user}
34048 Storage DaemonGroup: ${sd_group}
34049 File Daemon User: ${fd_user}
34050 File Daemon Group: ${fd_group}
34052 Large file support: $largefile_support
34053 Bacula conio support: ${got_conio} ${CONS_LIBS}
34054 readline support: ${got_readline} ${PRTREADLINE_SRC}
34055 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
34056 TLS support: ${support_tls}
34057 Encryption support: ${support_crypto}
34058 ZLIB support: ${have_zlib}
34059 LZO support: ${have_lzo}
34060 enable-smartalloc: ${support_smartalloc}
34061 enable-lockmgr: ${support_lockmgr}
34062 bat support: ${support_bat}
34063 client-only: ${build_client_only}
34064 build-dird: ${build_dird}
34065 build-stored: ${build_stored}
34066 Plugin support: ${have_plugins}
34067 AFS support: ${have_afs}
34068 ACL support: ${have_acl}
34069 XATTR support: ${have_xattr}
34070 systemd support: ${support_systemd} ${SYSTEMD_UNITDIR}
34071 Batch insert enabled: ${batch_insert_db_backends}
34075 # create a small shell script useful for support with
34076 # configure options and config.out info
34077 cat > scripts/bacula_config << EOF
34080 $ $0 $ac_configure_args
34082 cat config.out >> scripts/bacula_config
34083 echo __EOC__ >> scripts/bacula_config
34084 chmod 755 scripts/bacula_config